You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/vendors.2d4131bc.async.js

949 lines
4.5 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+BJd":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("6MrE"),v=d.n(C)},"+QRC":function(j,P,d){"use strict";var O=d("E9nw"),E={"text/plain":"Text","text/html":"Url",default:"Text"},C="Copy to clipboard: #{key}, Enter";function v(m){var h=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,h)}function w(m,h){var c,i,r,o,n,e,s=!1;h||(h={}),c=h.debug||!1;try{r=O(),o=document.createRange(),n=document.getSelection(),e=document.createElement("span"),e.textContent=m,e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(a){if(a.stopPropagation(),h.format)if(a.preventDefault(),typeof a.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 a.clipboardData.clearData(),a.clipboardData.setData(h.format,m);h.onCopy&&(a.preventDefault(),h.onCopy(a.clipboardData))}),document.body.appendChild(e),o.selectNodeContents(e),n.addRange(o);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");s=!0}catch(a){c&&console.error("unable to copy using execCommand: ",a),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"),i=v("message"in h?h.message:C),window.prompt(i,m)}}finally{n&&(typeof n.removeRange=="function"?n.removeRange(o):n.removeAllRanges()),e&&document.body.removeChild(e),r()}return s}j.exports=w},"+TT/":function(j,P,d){var O=d("bYtY"),E=d("mFDi"),C=d("OELB"),v=C.parsePercent,w=d("7aKB"),m=O.each,h=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function i(p,g,A,y,x){var T=0,S=0;y==null&&(y=Infinity),x==null&&(x=Infinity);var b=0;g.eachChild(function(_,I){var L=_.position,D=_.getBoundingRect(),N=g.childAt(I+1),M=N&&N.getBoundingRect(),B,R;if(p==="horizontal"){var H=D.width+(M?-M.x+D.x:0);B=T+H,B>y||_.newline?(T=0,B=H,S+=b+A,b=D.height):b=Math.max(b,D.height)}else{var F=D.height+(M?-M.y+D.y:0);R=S+F,R>x||_.newline?(T+=b+A,S=0,R=F,b=D.width):b=Math.max(b,D.width)}if(_.newline)return;L[0]=T,L[1]=S,p==="horizontal"?T=B+A:S=R+A})}var r=i,o=O.curry(i,"vertical"),n=O.curry(i,"horizontal");function e(p,g,A){var y=g.width,x=g.height,T=v(p.x,y),S=v(p.y,x),b=v(p.x2,y),_=v(p.y2,x);return(isNaN(T)||isNaN(parseFloat(p.x)))&&(T=0),(isNaN(b)||isNaN(parseFloat(p.x2)))&&(b=y),(isNaN(S)||isNaN(parseFloat(p.y)))&&(S=0),(isNaN(_)||isNaN(parseFloat(p.y2)))&&(_=x),A=w.normalizeCssArray(A||0),{width:Math.max(b-T-A[1]-A[3],0),height:Math.max(_-S-A[0]-A[2],0)}}function s(p,g,A){A=w.normalizeCssArray(A||0);var y=g.width,x=g.height,T=v(p.left,y),S=v(p.top,x),b=v(p.right,y),_=v(p.bottom,x),I=v(p.width,y),L=v(p.height,x),D=A[2]+A[0],N=A[1]+A[3],M=p.aspect;isNaN(I)&&(I=y-b-N-T),isNaN(L)&&(L=x-_-D-S),M!=null&&(isNaN(I)&&isNaN(L)&&(M>y/x?I=y*.8:L=x*.8),isNaN(I)&&(I=M*L),isNaN(L)&&(L=I/M)),isNaN(T)&&(T=y-b-I-N),isNaN(S)&&(S=x-_-L-D);switch(p.left||p.right){case"center":T=y/2-I/2-A[3];break;case"right":T=y-I-N;break}switch(p.top||p.bottom){case"middle":case"center":S=x/2-L/2-A[0];break;case"bottom":S=x-L-D;break}T=T||0,S=S||0,isNaN(I)&&(I=y-N-T-(b||0)),isNaN(L)&&(L=x-D-S-(_||0));var B=new E(T+A[3],S+A[0],I,L);return B.margin=A,B}function t(p,g,A,y,x){var T=!x||!x.hv||x.hv[0],S=!x||!x.hv||x.hv[1],b=x&&x.boundingMode||"all";if(!T&&!S)return;var _;if(b==="raw")_=p.type==="group"?new E(0,0,+g.width||0,+g.height||0):p.getBoundingRect();else if(_=p.getBoundingRect(),p.needLocalTransform()){var I=p.getLocalTransform();_=_.clone(),_.applyTransform(I)}g=s(O.defaults({width:_.width,height:_.height},g),A,y);var L=p.position,D=T?g.x-_.x:0,N=S?g.y-_.y:0;p.attr("position",b==="raw"?[D,N]:[L[0]+D,L[1]+N])}function a(p,g){return p[c[g][0]]!=null||p[c[g][1]]!=null&&p[c[g][2]]!=null}function l(p,g,A){!O.isObject(A)&&(A={});var y=A.ignoreSize;!O.isArray(y)&&(y=[y,y]);var x=S(c[0],0),T=S(c[1],1);I(c[0],p,x),I(c[1],p,T);function S(L,D){var N={},M=0,B={},R=0,H=2;if(m(L,function(U){B[U]=p[U]}),m(L,function(U){b(g,U)&&(N[U]=B[U]=g[U]),_(N,U)&&M++,_(B,U)&&R++}),y[D])return _(g,L[1])?B[L[2]]=null:_(g,L[2])&&(B[L[1]]=null),B;if(R===H||!M)return B;if(M>=H)return N;for(var F=0;F<L.length;F++){var K=L[F];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 I(L,D,N){m(L,function(M){D[M]=N[M]})}}function u(p){return f({},p)}function f(p,g){return g&&p&&m(h,function(A){g.hasOwnProperty(A)&&(p[A]=g[A])}),p}P.LOCATION_PARAMS=h,P.HV_NAMES=c,P.box=r,P.vbox=o,P.hbox=n,P.getAvailableSize=e,P.getLayoutRect=s,P.positionElement=t,P.sizeCalculable=a,P.mergeLayoutParam=l,P.getLayoutParams=u,P.copyLayoutParams=f},"+Zaj":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("ugBc")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="CalendarOutlined";var c=v.forwardRef(h);P.default=c},"+d4F":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("y3Yb"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},"+eQT":function(j,P,d){"use strict";var O=d("wd/R"),E=d.n(O),C=d("Kwbf"),v={getNow:function(){return E()()},getWeekDay:function(rr){var Rr=rr.clone().locale("en_US");return Rr.weekday()+Rr.localeData().firstDayOfWeek()},getYear:function(rr){return rr.year()},getMonth:function(rr){return rr.month()},getDate:function(rr){return rr.date()},getHour:function(rr){return rr.hour()},getMinute:function(rr){return rr.minute()},getSecond:function(rr){return rr.second()},addYear:function(rr,Rr){var Cr=rr.clone();return Cr.add(Rr,"year")},addMonth:function(rr,Rr){var Cr=rr.clone();return Cr.add(Rr,"month")},addDate:function(rr,Rr){var Cr=rr.clone();return Cr.add(Rr,"day")},setYear:function(rr,Rr){var Cr=rr.clone();return Cr.year(Rr)},setMonth:function(rr,Rr){var Cr=rr.clone();return Cr.month(Rr)},setDate:function(rr,Rr){var Cr=rr.clone();return Cr.date(Rr)},setHour:function(rr,Rr){var Cr=rr.clone();return Cr.hour(Rr)},setMinute:function(rr,Rr){var Cr=rr.clone();return Cr.minute(Rr)},setSecond:function(rr,Rr){var Cr=rr.clone();return Cr.second(Rr)},isAfter:function(rr,Rr){return rr.isAfter(Rr)},isValidate:function(rr){return rr.isValid()},locale:{getWeekFirstDay:function(rr){var Rr=E()().locale(rr);return Rr.localeData().firstDayOfWeek()},getWeek:function(rr,Rr){var Cr=Rr.clone(),pn=Cr.locale(rr);return pn.week()},getShortWeekDays:function(rr){var Rr=E()().locale(rr);return Rr.localeData().weekdaysMin()},getShortMonths:function(rr){var Rr=E()().locale(rr);return Rr.localeData().monthsShort()},format:function(rr,Rr,Cr){var pn=Rr.clone(),Vr=pn.locale(rr);return Vr.format(Cr)},parse:function(rr,Rr,Cr){for(var pn=[],Vr=0;Vr<Cr.length;Vr+=1){var br=Cr[Vr],In=Rr;if(br.includes("wo")||br.includes("Wo")){br=br.replace(/wo/g,"w").replace(/Wo/g,"W");var Sr=br.match(/[-YyMmDdHhSsWwGg]+/g),gn=In.match(/[-\d]+/g);Sr&&gn?(br=Sr.join(""),In=gn.join("")):pn.push(br.replace(/o/g,""))}var $n=E()(In,br,rr,!0);if($n.isValid())return $n}for(var qn=0;qn<pn.length;qn+=1){var Gn=E()(Rr,pn[qn],rr,!1);if(Gn.isValid())return Object(C.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),Gn}return null}}},w=v,m=d("pVnL"),h=d.n(m),c=d("q1tI"),i=d.n(c),r=d("2/Rp");function o(qe){return c.createElement(r.a,h()({size:"small",type:"primary"},qe))}var n=d("mr32");function e(qe){return c.createElement(n.a,h()({color:"blue"},qe))}var s=d("lSNA"),t=d.n(s),a=d("lwsE"),l=d.n(a),u=d("W8MJ"),f=d.n(u),p=d("7W2i"),g=d.n(p),A=d("LQ03"),y=d.n(A),x=d("TSYQ"),T=d.n(x),S=d("r/2G"),b=d.n(S),_=d("XzQk"),I=d.n(_),L=d("kbBi"),D=d.n(L),N=d("1OyB"),M=d("vuIU"),B=d("Ji7U"),R=d("LK+K"),H=d("rePB"),F=d("VTBJ"),K=d("ODXe"),U=d("6cGi"),V=d("U8pU"),z=d("4IlW"),Y=c.createContext({}),q=Y,ce={visibility:"hidden"};function ie(qe){var rr=qe.prefixCls,Rr=qe.prevIcon,Cr=Rr===void 0?"\u2039":Rr,pn=qe.nextIcon,Vr=pn===void 0?"\u203A":pn,br=qe.superPrevIcon,In=br===void 0?"\xAB":br,Sr=qe.superNextIcon,gn=Sr===void 0?"\xBB":Sr,$n=qe.onSuperPrev,qn=qe.onSuperNext,Gn=qe.onPrev,mi=qe.onNext,ti=qe.children,ri=c.useContext(q),li=ri.hideNextBtn,Xi=ri.hidePrevBtn;return c.createElement("div",{className:rr},$n&&c.createElement("button",{type:"button",onClick:$n,tabIndex:-1,className:"".concat(rr,"-super-prev-btn"),style:Xi?ce:{}},In),Gn&&c.createElement("button",{type:"button",onClick:Gn,tabIndex:-1,className:"".concat(rr,"-prev-btn"),style:Xi?ce:{}},Cr),c.createElement("div",{className:"".concat(rr,"-view")},ti),mi&&c.createElement("button",{type:"button",onClick:mi,tabIndex:-1,className:"".concat(rr,"-next-btn"),style:li?ce:{}},Vr),qn&&c.createElement("button",{type:"button",onClick:qn,tabIndex:-1,className:"".concat(rr,"-super-next-btn"),style:li?ce:{}},gn))}var ve=ie;function Ee(qe){var rr=c.useContext(q),Rr=rr.hideHeader;if(Rr)return null;var Cr=qe.prefixCls,pn=qe.generateConfig,Vr=qe.locale,br=qe.value,In=qe.format,Sr="".concat(Cr,"-header");return c.createElement(ve,{prefixCls:Sr},br?pn.locale.format(Vr.locale,br,In):"\xA0")}var Le=Ee,He=d("YrtM"),ge=d("KQm4"),Fe=new Map;function Q(qe,rr,Rr){if(Fe.get(qe)&&cancelAnimationFrame(Fe.get(qe)),Rr<=0){Fe.set(qe,requestAnimationFrame(function(){qe.scrollTop=rr}));return}var Cr=rr-qe.scrollTop,pn=Cr/Rr*10;Fe.set(qe,requestAnimationFrame(function(){qe.scrollTop+=pn,qe.scrollTop!==rr&&Q(qe,rr,Rr-10)}))}function fe(qe,rr){var Rr=rr.onLeftRight,Cr=rr.onCtrlLeftRight,pn=rr.onUpDown,Vr=rr.onPageUpDown,br=rr.onEnter,In=qe.which,Sr=qe.ctrlKey,gn=qe.metaKey;switch(In){case z.a.LEFT:if(Sr||gn){if(Cr)return Cr(-1),!0}else if(Rr)return Rr(-1),!0;break;case z.a.RIGHT:if(Sr||gn){if(Cr)return Cr(1),!0}else if(Rr)return Rr(1),!0;break;case z.a.UP:if(pn)return pn(-1),!0;break;case z.a.DOWN:if(pn)return pn(1),!0;break;case z.a.PAGE_UP:if(Vr)return Vr(-1),!0;break;case z.a.PAGE_DOWN:if(Vr)return Vr(1),!0;break;case z.a.ENTER:if(br)return br(),!0;break}return!1}function Je(qe,rr,Rr,Cr){var pn=qe;if(!pn)switch(rr){case"time":pn=Cr?"hh:mm:ss a":"HH:mm:ss";break;case"week":pn="gggg-wo";break;case"month":pn="YYYY-MM";break;case"quarter":pn="YYYY-[Q]Q";break;case"year":pn="YYYY";break;default:pn=Rr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return pn}function ne(qe,rr){var Rr=qe==="time"?8:10;return Math.max(Rr,rr.length)+2}var X=null,G=new Set;function te(qe){return!X&&typeof window!="undefined"&&window.addEventListener&&(X=function(Rr){Object(ge.a)(G).forEach(function(Cr){Cr(Rr)})},window.addEventListener("mousedown",X)),G.add(qe),function(){G.delete(qe),G.size===0&&(window.removeEventListener("mousedown",X),X=null)}}var we=function(rr){return rr==="month"||rr==="date"?"year":rr},he=function(rr){return rr==="date"?"month":rr},Pe=function(rr){return rr==="month"||rr==="date"?"quarter":rr},Oe=function(rr){return rr==="date"?"week":rr},le={year:we,month:he,quarter:Pe,week:Oe,time:null,date:null};function me(qe,rr){return qe.some(function(Rr){return Rr&&Rr.contains(rr)})}function _e(qe){var rr=qe.prefixCls,Rr=qe.units,Cr=qe.onSelect,pn=qe.value,Vr=qe.active,br=qe.hideDisabledOptions,In="".concat(rr,"-cell"),Sr=c.useContext(q),gn=Sr.open,$n=c.useRef(null),qn=c.useRef(new Map);return c.useLayoutEffect(function(){var Gn=qn.current.get(pn);Gn&&gn!==!1&&Q($n.current,Gn.offsetTop,120)},[pn]),c.useLayoutEffect(function(){if(gn){var Gn=qn.current.get(pn);Gn&&Q($n.current,Gn.offsetTop,0)}},[gn]),c.createElement("ul",{className:T()("".concat(rr,"-column"),Object(H.a)({},"".concat(rr,"-column-active"),Vr)),ref:$n,style:{position:"relative"}},Rr.map(function(Gn){var mi;return br&&Gn.disabled?null:c.createElement("li",{key:Gn.value,ref:function(ri){qn.current.set(Gn.value,ri)},className:T()(In,(mi={},Object(H.a)(mi,"".concat(In,"-disabled"),Gn.disabled),Object(H.a)(mi,"".concat(In,"-selected"),pn===Gn.value),mi)),onClick:function(){if(Gn.disabled)return;Cr(Gn.value)}},c.createElement("div",{className:"".concat(In,"-inner")},Gn.label))}))}var $e=_e;function gt(qe,rr){for(var Rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Cr=String(qe);Cr.length<rr;)Cr="".concat(Rr).concat(qe);return Cr}var et=function(){for(var rr=arguments.length,Rr=new Array(rr),Cr=0;Cr<rr;Cr++)Rr[Cr]=arguments[Cr];return Rr};function Ie(qe){return qe==null?[]:Array.isArray(qe)?qe:[qe]}function rt(qe){var rr={};return Object.keys(qe).forEach(function(Rr){(Rr.substr(0,5)==="data-"||Rr.substr(0,5)==="aria-"||Rr==="role"||Rr==="name")&&Rr.substr(0,7)!=="data-__"&&(rr[Rr]=qe[Rr])}),rr}function Ge(qe,rr){return qe?qe[rr]:null}function vt(qe,rr,Rr){var Cr=[Ge(qe,0),Ge(qe,1)];return Cr[Rr]=typeof rr=="function"?rr(Cr[Rr]):rr,!Cr[0]&&!Cr[1]?null:Cr}function Ot(qe,rr,Rr,Cr,pn){var Vr=qe.setHour(rr,Rr);return Vr=qe.setMinute(Vr,Cr),Vr=qe.setSecond(Vr,pn),Vr}function Et(qe,rr,Rr,Cr,pn,Vr){var br=Math.floor(qe/Cr)*Cr;if(br<qe)return[br,60-pn,60-Vr];var In=Math.floor(rr/pn)*pn;if(In<rr)return[br,In,60-Vr];var Sr=Math.floor(Rr/Vr)*Vr;return[br,In,Sr]}function Tt(qe,rr){if(qe.length!==rr.length)return!0;for(var Rr=0;Rr<qe.length;Rr+=1)if(qe[Rr].disabled!==rr[Rr].disabled)return!0;return!1}function Rt(qe,rr,Rr,Cr){for(var pn=[],Vr=qe;Vr<=rr;Vr+=Rr)pn.push({label:gt(Vr,2),value:Vr,disabled:(Cr||[]).includes(Vr)});return pn}function Be(qe){var rr=qe.generateConfig,Rr=qe.prefixCls,Cr=qe.operationRef,pn=qe.activeColumnIndex,Vr=qe.value,br=qe.showHour,In=qe.showMinute,Sr=qe.showSecond,gn=qe.use12Hours,$n=qe.hourStep,qn=$n===void 0?1:$n,Gn=qe.minuteStep,mi=Gn===void 0?1:Gn,ti=qe.secondStep,ri=ti===void 0?1:ti,li=qe.disabledHours,Xi=qe.disabledMinutes,Pi=qe.disabledSeconds,ga=qe.hideDisabledOptions,tr=qe.onSelect,Lt=[],yr="".concat(Rr,"-content"),xt="".concat(Rr,"-time-panel"),Ut,ur=Vr?rr.getHour(Vr):-1,Ct=Vr?rr.getMinute(Vr):-1,dr=Vr?rr.getSecond(Vr):-1,nr=function(ha,qi,Ma,za){var la=Vr||rr.getNow(),ao=Math.max(0,qi),ka=Math.max(0,Ma),Ba=Math.max(0,za);return la=Ot(rr,la,!gn||!ha?ao:ao+12,ka,Ba),la},Wr=Rt(0,23,qn,li&&li()),En=Object(He.a)(function(){return Wr},Wr,Tt);gn&&(Ut=ur>=12,ur%=12);var Cn=c.useMemo(function(){if(!gn)return[!1,!1];var fa=[!0,!0];return En.forEach(function(ha){var qi=ha.disabled,Ma=ha.value;if(qi)return;Ma>=12?fa[1]=!1:fa[0]=!1}),fa},[gn,En]),Nn=Object(K.a)(Cn,2),oi=Nn[0],Qn=Nn[1],Vi=c.useMemo(function(){return gn?En.filter(Ut?function(fa){return fa.value>=12}:function(fa){return fa.value<12}).map(function(fa){var ha=fa.value%12,qi=ha===0?"12":gt(ha,2);return Object(F.a)(Object(F.a)({},fa),{},{label:qi,value:ha})}):En},[gn,En]),wi=Rt(0,59,mi,Xi&&Xi(ur)),Ea=Rt(0,59,ri,Pi&&Pi(ur,Ct));Cr.current={onUpDown:function(ha){var qi=Lt[pn];if(qi)for(var Ma=qi.units.findIndex(function(ka){return ka.value===qi.value}),za=qi.units.length,la=1;la<za;la+=1){var ao=qi.units[(Ma+ha*la+za)%za];if(ao.disabled!==!0){qi.onSelect(ao.value);break}}}};function aa(fa,ha,qi,Ma,za){fa!==!1&&Lt.push({node:c.cloneElement(ha,{prefixCls:xt,value:qi,active:pn===Lt.length,onSelect:za,units:Ma,hideDisabledOptions:ga}),onSelect:za,value:qi,units:Ma})}aa(br,c.createElement($e,{key:"hour"}),ur,Vi,function(fa){tr(nr(Ut,fa,Ct,dr),"mouse")}),aa(In,c.createElement($e,{key:"minute"}),Ct,wi,function(fa){tr(nr(Ut,ur,fa,dr),"mouse")}),aa(Sr,c.createElement($e,{key:"second"}),dr,Ea,function(fa){tr(nr(Ut,ur,Ct,fa),"mouse")});var Ca=-1;return typeof Ut=="boolean"&&(Ca=Ut?1:0),aa(gn===!0,c.createElement($e,{key:"12hours"}),Ca,[{label:"AM",value:0,disabled:oi},{label:"PM",value:1,disabled:Qn}],function(fa){tr(nr(!!fa,ur,Ct,dr),"mouse")}),c.createElement("div",{className:yr},Lt.map(function(fa){var ha=fa.node;return ha}))}var Z=Be,J=function(rr){return rr.filter(function(Rr){return Rr!==!1}).length};function je(qe){var rr=qe.generateConfig,Rr=qe.format,Cr=Rr===void 0?"HH:mm:ss":Rr,pn=qe.prefixCls,Vr=qe.active,br=qe.operationRef,In=qe.showHour,Sr=qe.showMinute,gn=qe.showSecond,$n=qe.use12Hours,qn=$n===void 0?!1:$n,Gn=qe.onSelect,mi=qe.value,ti="".concat(pn,"-time-panel"),ri=c.useRef(),li=c.useState(-1),Xi=Object(K.a)(li,2),Pi=Xi[0],ga=Xi[1],tr=J([In,Sr,gn,qn]);return br.current={onKeyDown:function(yr){return fe(yr,{onLeftRight:function(Ut){ga((Pi+Ut+tr)%tr)},onUpDown:function(Ut){Pi===-1?ga(0):ri.current&&ri.current.onUpDown(Ut)},onEnter:function(){Gn(mi||rr.getNow(),"key"),ga(-1)}})},onBlur:function(){ga(-1)}},c.createElement("div",{className:T()(ti,Object(H.a)({},"".concat(ti,"-active"),Vr))},c.createElement(Le,Object.assign({},qe,{format:Cr,prefixCls:pn})),c.createElement(Z,Object.assign({},qe,{prefixCls:pn,activeColumnIndex:Pi,operationRef:ri})))}var Re=je,oe=7;function yt(qe,rr){return!qe&&!rr?!0:!qe||!rr?!1:void 0}function zt(qe,rr,Rr){var Cr=yt(rr,Rr);if(typeof Cr=="boolean")return Cr;var pn=Math.floor(qe.getYear(rr)/10),Vr=Math.floor(qe.getYear(Rr)/10);return pn===Vr}function lt(qe,rr,Rr){var Cr=yt(rr,Rr);return typeof Cr=="boolean"?Cr:qe.getYear(rr)===qe.getYear(Rr)}function $t(qe,rr){var Rr=Math.floor(qe.getMonth(rr)/3);return Rr+1}function cr(qe,rr,Rr){var Cr=yt(rr,Rr);return typeof Cr=="boolean"?Cr:lt(qe,rr,Rr)&&$t(qe,rr)===$t(qe,Rr)}function cn(qe,rr,Rr){var Cr=yt(rr,Rr);return typeof Cr=="boolean"?Cr:lt(qe,rr,Rr)&&qe.getMonth(rr)===qe.getMonth(Rr)}function pr(qe,rr,Rr){var Cr=yt(rr,Rr);return typeof Cr=="boolean"?Cr:qe.getYear(rr)===qe.getYear(Rr)&&qe.getMonth(rr)===qe.getMonth(Rr)&&qe.getDate(rr)===qe.getDate(Rr)}function gr(qe,rr,Rr){var Cr=yt(rr,Rr);return typeof Cr=="boolean"?Cr:qe.getHour(rr)===qe.getHour(Rr)&&qe.getMinute(rr)===qe.getMinute(Rr)&&qe.getSecond(rr)===qe.getSecond(Rr)}function Zt(qe,rr,Rr,Cr){var pn=yt(Rr,Cr);return typeof pn=="boolean"?pn:qe.locale.getWeek(rr,Rr)===qe.locale.getWeek(rr,Cr)}function Vt(qe,rr,Rr){return pr(qe,rr,Rr)&&gr(qe,rr,Rr)}function mt(qe,rr,Rr,Cr){return!rr||!Rr||!Cr?!1:!pr(qe,rr,Cr)&&!pr(qe,Rr,Cr)&&qe.isAfter(Cr,rr)&&qe.isAfter(Rr,Cr)}function Yr(qe,rr,Rr){var Cr=rr.locale.getWeekFirstDay(qe),pn=rr.setDate(Rr,1),Vr=rr.getWeekDay(pn),br=rr.addDate(pn,Cr-Vr);return rr.getMonth(br)===rr.getMonth(Rr)&&rr.getDate(br)>1&&(br=rr.addDate(br,-7)),br}function Tn(qe,rr,Rr){var Cr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(rr){case"year":return Rr.addYear(qe,Cr*10);case"quarter":case"month":return Rr.addYear(qe,Cr);default:return Rr.addMonth(qe,Cr)}}var Hn=c.createContext({}),ei=Hn;function ji(qe){var rr=qe.cellPrefixCls,Rr=qe.generateConfig,Cr=qe.rangedValue,pn=qe.hoverRangedValue,Vr=qe.isInView,br=qe.isSameCell,In=qe.offsetCell,Sr=qe.today,gn=qe.value;function $n(qn){var Gn,mi=In(qn,-1),ti=In(qn,1),ri=Ge(Cr,0),li=Ge(Cr,1),Xi=Ge(pn,0),Pi=Ge(pn,1),ga=mt(Rr,Xi,Pi,qn);function tr(Ct){return br(ri,Ct)}function Lt(Ct){return br(li,Ct)}var yr=br(Xi,qn),xt=br(Pi,qn),Ut=(ga||xt)&&(!Vr(mi)||Lt(mi)),ur=(ga||yr)&&(!Vr(ti)||tr(ti));return Gn={},Object(H.a)(Gn,"".concat(rr,"-in-view"),Vr(qn)),Object(H.a)(Gn,"".concat(rr,"-in-range"),mt(Rr,ri,li,qn)),Object(H.a)(Gn,"".concat(rr,"-range-start"),tr(qn)),Object(H.a)(Gn,"".concat(rr,"-range-end"),Lt(qn)),Object(H.a)(Gn,"".concat(rr,"-range-start-single"),tr(qn)&&!li),Object(H.a)(Gn,"".concat(rr,"-range-end-single"),Lt(qn)&&!ri),Object(H.a)(Gn,"".concat(rr,"-range-start-near-hover"),tr(qn)&&(br(mi,Xi)||mt(Rr,Xi,Pi,mi))),Object(H.a)(Gn,"".concat(rr,"-range-end-near-hover"),Lt(qn)&&(br(ti,Pi)||mt(Rr,Xi,Pi,ti))),Object(H.a)(Gn,"".concat(rr,"-range-hover"),ga),Object(H.a)(Gn,"".concat(rr,"-range-hover-start"),yr),Object(H.a)(Gn,"".concat(rr,"-range-hover-end"),xt),Object(H.a)(Gn,"".concat(rr,"-range-hover-edge-start"),Ut),Object(H.a)(Gn,"".concat(rr,"-range-hover-edge-end"),ur),Object(H.a)(Gn,"".concat(rr,"-range-hover-edge-start-near-range"),Ut&&br(mi,li)),Object(H.a)(Gn,"".concat(rr,"-range-hover-edge-end-near-range"),ur&&br(ti,ri)),Object(H.a)(Gn,"".concat(rr,"-today"),br(Sr,qn)),Object(H.a)(Gn,"".concat(rr,"-selected"),br(gn,qn)),Gn}return $n}function Ln(qe){for(var rr=qe.prefixCls,Rr=qe.disabledDate,Cr=qe.onSelect,pn=qe.rowNum,Vr=qe.colNum,br=qe.prefixColumn,In=qe.rowClassName,Sr=qe.baseDate,gn=qe.getCellClassName,$n=qe.getCellText,qn=qe.getCellNode,Gn=qe.getCellDate,mi=qe.titleCell,ti=qe.headerCells,ri=c.useContext(q),li=ri.onDateMouseEnter,Xi=ri.onDateMouseLeave,Pi="".concat(rr,"-cell"),ga=[],tr=0;tr<pn;tr+=1){for(var Lt=[],yr=void 0,xt=function(Ct){var dr=tr*Vr+Ct,nr=Gn(Sr,dr),Wr=Rr&&Rr(nr);Ct===0&&(yr=nr,br&&Lt.push(br(yr))),Lt.push(c.createElement("td",{key:Ct,title:mi&&mi(nr),className:T()(Pi,Object(F.a)(Object(H.a)({},"".concat(Pi,"-disabled"),Wr),gn(nr))),onClick:function(){Wr||Cr(nr)},onMouseEnter:function(){!Wr&&li&&li(nr)},onMouseLeave:function(){!Wr&&Xi&&Xi(nr)}},qn?qn(nr):c.createElement("div",{className:"".concat(Pi,"-inner")},$n(nr))))},Ut=0;Ut<Vr;Ut+=1)xt(Ut);ga.push(c.createElement("tr",{key:tr,className:In&&In(yr)},Lt))}return c.createElement("div",{className:"".concat(rr,"-body")},c.createElement("table",{className:"".concat(rr,"-content")},ti&&c.createElement("thead",null,c.createElement("tr",null,ti)),c.createElement("tbody",null,ga)))}function Vn(qe){var rr=qe.prefixCls,Rr=qe.generateConfig,Cr=qe.prefixColumn,pn=qe.locale,Vr=qe.rowCount,br=qe.viewDate,In=qe.value,Sr=qe.dateRender,gn=c.useContext(ei),$n=gn.rangedValue,qn=gn.hoverRangedValue,Gn=Yr(pn.locale,Rr,br),mi="".concat(rr,"-cell"),ti=Rr.locale.getWeekFirstDay(pn.locale),ri=Rr.getNow(),li=[],Xi=pn.shortWeekDays||(Rr.locale.getShortWeekDays?Rr.locale.getShortWeekDays(pn.locale):[]);Cr&&li.push(c.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Pi=0;Pi<oe;Pi+=1)li.push(c.createElement("th",{key:Pi},Xi[(Pi+ti)%oe]));var ga=ji({cellPrefixCls:mi,today:ri,value:In,generateConfig:Rr,rangedValue:Cr?null:$n,hoverRangedValue:Cr?null:qn,isSameCell:function(yr,xt){return pr(Rr,yr,xt)},isInView:function(yr){return cn(Rr,yr,br)},offsetCell:function(yr,xt){return Rr.addDate(yr,xt)}}),tr=Sr?function(Lt){return Sr(Lt,ri)}:void 0;return c.createElement(Ln,Object.assign({},qe,{rowNum:Vr,colNum:oe,baseDate:Gn,getCellNode:tr,getCellText:Rr.getDate,getCellClassName:ga,getCellDate:Rr.addDate,titleCell:function(yr){return Rr.locale.format(pn.locale,yr,"YYYY-MM-DD")},headerCells:li}))}var kt=Vn;function wt(qe){var rr=qe.prefixCls,Rr=qe.generateConfig,Cr=qe.locale,pn=qe.viewDate,Vr=qe.onNextMonth,br=qe.onPrevMonth,In=qe.onNextYear,Sr=qe.onPrevYear,gn=qe.onYearClick,$n=qe.onMonthClick,qn=c.useContext(q),Gn=qn.hideHeader;if(Gn)return null;var mi="".concat(rr,"-header"),ti=Cr.shortMonths||(Rr.locale.getShortMonths?Rr.locale.getShortMonths(Cr.locale):[]),ri=Rr.getMonth(pn),li=c.createElement("button",{type:"button",key:"year",onClick:gn,tabIndex:-1,className:"".concat(rr,"-year-btn")},Rr.locale.format(Cr.locale,pn,Cr.yearFormat)),Xi=c.createElement("button",{type:"button",key:"month",onClick:$n,tabIndex:-1,className:"".concat(rr,"-month-btn")},Cr.monthFormat?Rr.locale.format(Cr.locale,pn,Cr.monthFormat):ti[ri]),Pi=Cr.monthBeforeYear?[Xi,li]:[li,Xi];return c.createElement(ve,Object.assign({},qe,{prefixCls:mi,onSuperPrev:Sr,onPrev:br,onNext:Vr,onSuperNext:In}),Pi)}var Te=wt,xe=6;function Ce(qe){var rr=qe.prefixCls,Rr=qe.panelName,Cr=Rr===void 0?"date":Rr,pn=qe.keyboardConfig,Vr=qe.active,br=qe.operationRef,In=qe.generateConfig,Sr=qe.value,gn=qe.viewDate,$n=qe.onViewDateChange,qn=qe.onPanelChange,Gn=qe.onSelect,mi="".concat(rr,"-").concat(Cr,"-panel");br.current={onKeyDown:function(Xi){return fe(Xi,Object(F.a)({onLeftRight:function(ga){Gn(In.addDate(Sr||gn,ga),"key")},onCtrlLeftRight:function(ga){Gn(In.addYear(Sr||gn,ga),"key")},onUpDown:function(ga){Gn(In.addDate(Sr||gn,ga*oe),"key")},onPageUpDown:function(ga){Gn(In.addMonth(Sr||gn,ga),"key")}},pn))}};var ti=function(Xi){var Pi=In.addYear(gn,Xi);$n(Pi),qn(null,Pi)},ri=function(Xi){var Pi=In.addMonth(gn,Xi);$n(Pi),qn(null,Pi)};return c.createElement("div",{className:T()(mi,Object(H.a)({},"".concat(mi,"-active"),Vr))},c.createElement(Te,Object.assign({},qe,{prefixCls:rr,value:Sr,viewDate:gn,onPrevYear:function(){ti(-1)},onNextYear:function(){ti(1)},onPrevMonth:function(){ri(-1)},onNextMonth:function(){ri(1)},onMonthClick:function(){qn("month",gn)},onYearClick:function(){qn("year",gn)}})),c.createElement(kt,Object.assign({},qe,{onSelect:function(Xi){return Gn(Xi,"mouse")},prefixCls:rr,value:Sr,viewDate:gn,rowCount:xe})))}var Ye=Ce;function it(qe,rr,Rr){if(!Rr)return rr;var Cr=rr;return Cr=qe.setHour(Cr,qe.getHour(Rr)),Cr=qe.setMinute(Cr,qe.getMinute(Rr)),Cr=qe.setSecond(Cr,qe.getSecond(Rr)),Cr}var dt=et("date","time");function _t(qe){var rr=qe.prefixCls,Rr=qe.operationRef,Cr=qe.generateConfig,pn=qe.value,Vr=qe.defaultValue,br=qe.disabledTime,In=qe.showTime,Sr=qe.onSelect,gn="".concat(rr,"-datetime-panel"),$n=c.useState(null),qn=Object(K.a)($n,2),Gn=qn[0],mi=qn[1],ti=c.useRef({}),ri=c.useRef({}),li=Object(V.a)(In)==="object"?Object(F.a)({},In):{};function Xi(Lt){var yr=dt.indexOf(Gn)+Lt,xt=dt[yr]||null;return xt}var Pi=function(yr){ri.current.onBlur&&ri.current.onBlur(yr),mi(null)};Rr.current={onKeyDown:function(yr){if(yr.which===z.a.TAB){var xt=Xi(yr.shiftKey?-1:1);return mi(xt),xt&&yr.preventDefault(),!0}if(Gn){var Ut=Gn==="date"?ti:ri;return Ut.current&&Ut.current.onKeyDown&&Ut.current.onKeyDown(yr),!0}return[z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN].includes(yr.which)?(mi("date"),!0):!1},onBlur:Pi,onClose:Pi};var ga=function(yr,xt){var Ut=yr;xt==="date"&&!pn&&li.defaultValue?(Ut=Cr.setHour(Ut,Cr.getHour(li.defaultValue)),Ut=Cr.setMinute(Ut,Cr.getMinute(li.defaultValue)),Ut=Cr.setSecond(Ut,Cr.getSecond(li.defaultValue))):xt==="time"&&!pn&&Vr&&(Ut=Cr.setYear(Ut,Cr.getYear(Vr)),Ut=Cr.setMonth(Ut,Cr.getMonth(Vr)),Ut=Cr.setDate(Ut,Cr.getDate(Vr))),Sr&&Sr(Ut,"mouse")},tr=br?br(pn||null):{};return c.createElement("div",{className:T()(gn,Object(H.a)({},"".concat(gn,"-active"),Gn))},c.createElement(Ye,Object.assign({},qe,{operationRef:ti,active:Gn==="date",onSelect:function(yr){ga(it(Cr,yr,In&&Object(V.a)(In)==="object"?In.defaultValue:null),"date")}})),c.createElement(Re,Object.assign({},qe,{format:void 0},li,tr,{defaultValue:void 0,operationRef:ri,active:Gn==="time",onSelect:function(yr){ga(yr,"time")}})))}var vr=_t;function kr(qe){var rr=qe.prefixCls,Rr=qe.generateConfig,Cr=qe.locale,pn=qe.value,Vr="".concat(rr,"-cell"),br=function($n){return c.createElement("td",{key:"week",className:T()(Vr,"".concat(Vr,"-week"))},Rr.locale.getWeek(Cr.locale,$n))},In="".concat(rr,"-week-panel-row"),Sr=function($n){return T()(In,Object(H.a)({},"".concat(In,"-selected"),Zt(Rr,Cr.locale,pn,$n)))};return c.createElement(Ye,Object.assign({},qe,{panelName:"week",prefixColumn:br,rowClassName:Sr,keyboardConfig:{onLeftRight:null}}))}var mn=kr;function Mt(qe){var rr=qe.prefixCls,Rr=qe.generateConfig,Cr=qe.locale,pn=qe.viewDate,Vr=qe.onNextYear,br=qe.onPrevYear,In=qe.onYearClick,Sr=c.useContext(q),gn=Sr.hideHeader;if(gn)return null;var $n="".concat(rr,"-header");return c.createElement(ve,Object.assign({},qe,{prefixCls:$n,onSuperPrev:br,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:In,className:"".concat(rr,"-year-btn")},Rr.locale.format(Cr.locale,pn,Cr.yearFormat)))}var nt=Mt,st=3,Xt=4;function Dt(qe){var rr=qe.prefixCls,Rr=qe.locale,Cr=qe.value,pn=qe.viewDate,Vr=qe.generateConfig,br=qe.monthCellRender,In=c.useContext(ei),Sr=In.rangedValue,gn=In.hoverRangedValue,$n="".concat(rr,"-cell"),qn=ji({cellPrefixCls:$n,value:Cr,generateConfig:Vr,rangedValue:Sr,hoverRangedValue:gn,isSameCell:function(li,Xi){return cn(Vr,li,Xi)},isInView:function(){return!0},offsetCell:function(li,Xi){return Vr.addMonth(li,Xi)}}),Gn=Rr.shortMonths||(Vr.locale.getShortMonths?Vr.locale.getShortMonths(Rr.locale):[]),mi=Vr.setMonth(pn,0),ti=br?function(ri){return br(ri,Rr)}:void 0;return c.createElement(Ln,Object.assign({},qe,{rowNum:Xt,colNum:st,baseDate:mi,getCellNode:ti,getCellText:function(li){return Rr.monthFormat?Vr.locale.format(Rr.locale,li,Rr.monthFormat):Gn[Vr.getMonth(li)]},getCellClassName:qn,getCellDate:Vr.addMonth,titleCell:function(li){return Vr.locale.format(Rr.locale,li,"YYYY-MM")}}))}var St=Dt;function jt(qe){var rr=qe.prefixCls,Rr=qe.operationRef,Cr=qe.onViewDateChange,pn=qe.generateConfig,Vr=qe.value,br=qe.viewDate,In=qe.onPanelChange,Sr=qe.onSelect,gn="".concat(rr,"-month-panel");Rr.current={onKeyDown:function(Gn){return fe(Gn,{onLeftRight:function(ti){Sr(pn.addMonth(Vr||br,ti),"key")},onCtrlLeftRight:function(ti){Sr(pn.addYear(Vr||br,ti),"key")},onUpDown:function(ti){Sr(pn.addMonth(Vr||br,ti*st),"key")},onEnter:function(){In("date",Vr||br)}})}};var $n=function(Gn){var mi=pn.addYear(br,Gn);Cr(mi),In(null,mi)};return c.createElement("div",{className:gn},c.createElement(nt,Object.assign({},qe,{prefixCls:rr,onPrevYear:function(){$n(-1)},onNextYear:function(){$n(1)},onYearClick:function(){In("year",br)}})),c.createElement(St,Object.assign({},qe,{prefixCls:rr,onSelect:function(Gn){Sr(Gn,"mouse"),In("date",Gn)}})))}var At=jt;function Ft(qe){var rr=qe.prefixCls,Rr=qe.generateConfig,Cr=qe.locale,pn=qe.viewDate,Vr=qe.onNextYear,br=qe.onPrevYear,In=qe.onYearClick,Sr=c.useContext(q),gn=Sr.hideHeader;if(gn)return null;var $n="".concat(rr,"-header");return c.createElement(ve,Object.assign({},qe,{prefixCls:$n,onSuperPrev:br,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:In,className:"".concat(rr,"-year-btn")},Rr.locale.format(Cr.locale,pn,Cr.yearFormat)))}var wr=Ft,sr=4,mr=1;function $r(qe){var rr=qe.prefixCls,Rr=qe.locale,Cr=qe.value,pn=qe.viewDate,Vr=qe.generateConfig,br=c.useContext(ei),In=br.rangedValue,Sr=br.hoverRangedValue,gn="".concat(rr,"-cell"),$n=ji({cellPrefixCls:gn,value:Cr,generateConfig:Vr,rangedValue:In,hoverRangedValue:Sr,isSameCell:function(mi,ti){return cr(Vr,mi,ti)},isInView:function(){return!0},offsetCell:function(mi,ti){return Vr.addMonth(mi,ti*3)}}),qn=Vr.setDate(Vr.setMonth(pn,0),1);return c.createElement(Ln,Object.assign({},qe,{rowNum:mr,colNum:sr,baseDate:qn,getCellText:function(mi){return Vr.locale.format(Rr.locale,mi,Rr.quarterFormat||"[Q]Q")},getCellClassName:$n,getCellDate:function(mi,ti){return Vr.addMonth(mi,ti*3)},titleCell:function(mi){return Vr.locale.format(Rr.locale,mi,"YYYY-[Q]Q")}}))}var rn=$r;function jn(qe){var rr=qe.prefixCls,Rr=qe.operationRef,Cr=qe.onViewDateChange,pn=qe.generateConfig,Vr=qe.value,br=qe.viewDate,In=qe.onPanelChange,Sr=qe.onSelect,gn="".concat(rr,"-quarter-panel");Rr.current={onKeyDown:function(Gn){return fe(Gn,{onLeftRight:function(ti){Sr(pn.addMonth(Vr||br,ti*3),"key")},onCtrlLeftRight:function(ti){Sr(pn.addYear(Vr||br,ti),"key")},onUpDown:function(ti){Sr(pn.addYear(Vr||br,ti),"key")}})}};var $n=function(Gn){var mi=pn.addYear(br,Gn);Cr(mi),In(null,mi)};return c.createElement("div",{className:gn},c.createElement(wr,Object.assign({},qe,{prefixCls:rr,onPrevYear:function(){$n(-1)},onNextYear:function(){$n(1)},onYearClick:function(){In("year",br)}})),c.createElement(rn,Object.assign({},qe,{prefixCls:rr,onSelect:function(Gn){Sr(Gn,"mouse")}})))}var Un=jn;function ui(qe){var rr=qe.prefixCls,Rr=qe.generateConfig,Cr=qe.viewDate,pn=qe.onPrevDecade,Vr=qe.onNextDecade,br=qe.onDecadeClick,In=c.useContext(q),Sr=In.hideHeader;if(Sr)return null;var gn="".concat(rr,"-header"),$n=Rr.getYear(Cr),qn=Math.floor($n/Ne)*Ne,Gn=qn+Ne-1;return c.createElement(ve,Object.assign({},qe,{prefixCls:gn,onSuperPrev:pn,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:br,className:"".concat(rr,"-decade-btn")},qn,"-",Gn))}var yi=ui,Ii=3,Gi=4;function Qe(qe){var rr=qe.prefixCls,Rr=qe.value,Cr=qe.viewDate,pn=qe.locale,Vr=qe.generateConfig,br=c.useContext(ei),In=br.rangedValue,Sr=br.hoverRangedValue,gn="".concat(rr,"-cell"),$n=Vr.getYear(Cr),qn=Math.floor($n/Ne)*Ne,Gn=qn+Ne-1,mi=Vr.setYear(Cr,qn-Math.ceil((Ii*Gi-Ne)/2)),ti=function(Xi){var Pi=Vr.getYear(Xi);return qn<=Pi&&Pi<=Gn},ri=ji({cellPrefixCls:gn,value:Rr,generateConfig:Vr,rangedValue:In,hoverRangedValue:Sr,isSameCell:function(Xi,Pi){return lt(Vr,Xi,Pi)},isInView:ti,offsetCell:function(Xi,Pi){return Vr.addYear(Xi,Pi)}});return c.createElement(Ln,Object.assign({},qe,{rowNum:Gi,colNum:Ii,baseDate:mi,getCellText:Vr.getYear,getCellClassName:ri,getCellDate:Vr.addYear,titleCell:function(Xi){return Vr.locale.format(pn.locale,Xi,"YYYY")}}))}var be=Qe,Ne=10;function Ue(qe){var rr=qe.prefixCls,Rr=qe.operationRef,Cr=qe.onViewDateChange,pn=qe.generateConfig,Vr=qe.value,br=qe.viewDate,In=qe.sourceMode,Sr=qe.onSelect,gn=qe.onPanelChange,$n="".concat(rr,"-year-panel");Rr.current={onKeyDown:function(mi){return fe(mi,{onLeftRight:function(ri){Sr(pn.addYear(Vr||br,ri),"key")},onCtrlLeftRight:function(ri){Sr(pn.addYear(Vr||br,ri*Ne),"key")},onUpDown:function(ri){Sr(pn.addYear(Vr||br,ri*Ii),"key")},onEnter:function(){gn(In==="date"?"date":"month",Vr||br)}})}};var qn=function(mi){var ti=pn.addYear(br,mi*10);Cr(ti),gn(null,ti)};return c.createElement("div",{className:$n},c.createElement(yi,Object.assign({},qe,{prefixCls:rr,onPrevDecade:function(){qn(-1)},onNextDecade:function(){qn(1)},onDecadeClick:function(){gn("decade",br)}})),c.createElement(be,Object.assign({},qe,{prefixCls:rr,onSelect:function(mi){gn(In==="date"?"date":"month",mi),Sr(mi,"mouse")}})))}var Xe=Ue;function ze(qe){var rr=qe.prefixCls,Rr=qe.generateConfig,Cr=qe.viewDate,pn=qe.onPrevDecades,Vr=qe.onNextDecades,br=c.useContext(q),In=br.hideHeader;if(In)return null;var Sr="".concat(rr,"-header"),gn=Rr.getYear(Cr),$n=Math.floor(gn/Gr)*Gr,qn=$n+Gr-1;return c.createElement(ve,Object.assign({},qe,{prefixCls:Sr,onSuperPrev:pn,onSuperNext:Vr}),$n,"-",qn)}var Ze=ze,bt=3,ut=4;function Gt(qe){var rr=Lr-1,Rr=qe.prefixCls,Cr=qe.viewDate,pn=qe.generateConfig,Vr=qe.disabledDate,br="".concat(Rr,"-cell"),In=pn.getYear(Cr),Sr=Math.floor(In/Lr)*Lr,gn=Math.floor(In/Gr)*Gr,$n=gn+Gr-1,qn=pn.setYear(Cr,gn-Math.ceil((bt*ut*Lr-Gr)/2)),Gn=function(ti){var ri,li=Vr&&Vr(ti),Xi=pn.getYear(ti),Pi=Xi+rr;return ri={},Object(H.a)(ri,"".concat(br,"-disabled"),li),Object(H.a)(ri,"".concat(br,"-in-view"),gn<=Xi&&Pi<=$n),Object(H.a)(ri,"".concat(br,"-selected"),Xi===Sr),ri};return c.createElement(Ln,Object.assign({},qe,{rowNum:ut,colNum:bt,baseDate:qn,getCellText:function(ti){var ri=pn.getYear(ti);return"".concat(ri,"-").concat(ri+rr)},getCellClassName:Gn,getCellDate:function(ti,ri){return pn.addYear(ti,ri*Lr)}}))}var Mr=Gt,Lr=10,Gr=Lr*10;function Ht(qe){var rr=qe.prefixCls,Rr=qe.onViewDateChange,Cr=qe.generateConfig,pn=qe.viewDate,Vr=qe.operationRef,br=qe.onSelect,In=qe.onPanelChange,Sr="".concat(rr,"-decade-panel");Vr.current={onKeyDown:function(Gn){return fe(Gn,{onLeftRight:function(ti){br(Cr.addYear(pn,ti*Lr),"key")},onCtrlLeftRight:function(ti){br(Cr.addYear(pn,ti*Gr),"key")},onUpDown:function(ti){br(Cr.addYear(pn,ti*Lr*bt),"key")},onEnter:function(){In("year",pn)}})}};var gn=function(Gn){var mi=Cr.addYear(pn,Gn*Gr);Rr(mi),In(null,mi)},$n=function(Gn){br(Gn,"mouse"),In("year",Gn)};return c.createElement("div",{className:Sr},c.createElement(Ze,Object.assign({},qe,{prefixCls:rr,onPrevDecades:function(){gn(-1)},onNextDecades:function(){gn(1)}})),c.createElement(Mr,Object.assign({},qe,{prefixCls:rr,onSelect:$n})))}var hn=Ht;function or(qe,rr,Rr){return Rr?c.createElement("div",{className:"".concat(qe,"-footer-extra")},Rr(rr)):null}function vn(qe){var rr=qe.prefixCls,Rr=qe.rangeList,Cr=Rr===void 0?[]:Rr,pn=qe.components,Vr=pn===void 0?{}:pn,br=qe.needConfirmButton,In=qe.onNow,Sr=qe.onOk,gn=qe.okDisabled,$n=qe.showNow,qn=qe.locale,Gn,mi;if(Cr.length){var ti=Vr.rangeItem||"span";Gn=c.createElement(c.Fragment,null,Cr.map(function(li){var Xi=li.label,Pi=li.onClick,ga=li.onMouseEnter,tr=li.onMouseLeave;return c.createElement("li",{key:Xi,className:"".concat(rr,"-preset")},c.createElement(ti,{onClick:Pi,onMouseEnter:ga,onMouseLeave:tr},Xi))}))}if(br){var ri=Vr.button||"button";In&&!Gn&&$n!==!1&&(Gn=c.createElement("li",{className:"".concat(rr,"-now")},c.createElement("a",{className:"".concat(rr,"-now-btn"),onClick:In},qn.now))),mi=br&&c.createElement("li",{className:"".concat(rr,"-ok")},c.createElement(ri,{disabled:gn,onClick:Sr},qn.ok))}return!Gn&&!mi?null:c.createElement("ul",{className:"".concat(rr,"-ranges")},Gn,mi)}function nn(qe){var rr,Rr=qe.prefixCls,Cr=Rr===void 0?"rc-picker":Rr,pn=qe.className,Vr=qe.style,br=qe.locale,In=qe.generateConfig,Sr=qe.value,gn=qe.defaultValue,$n=qe.pickerValue,qn=qe.defaultPickerValue,Gn=qe.disabledDate,mi=qe.mode,ti=qe.picker,ri=ti===void 0?"date":ti,li=qe.tabIndex,Xi=li===void 0?0:li,Pi=qe.showNow,ga=qe.showTime,tr=qe.showToday,Lt=qe.renderExtraFooter,yr=qe.hideHeader,xt=qe.onSelect,Ut=qe.onChange,ur=qe.onPanelChange,Ct=qe.onMouseDown,dr=qe.onPickerValueChange,nr=qe.onOk,Wr=qe.components,En=qe.direction,Cn=qe.hourStep,Nn=Cn===void 0?1:Cn,oi=qe.minuteStep,Qn=oi===void 0?1:oi,Vi=qe.secondStep,wi=Vi===void 0?1:Vi,Ea=ri==="date"&&!!ga||ri==="time",aa=24%Nn===0,Ca=60%Qn===0,fa=60%wi===0,ha=c.useContext(q),qi=ha.operationRef,Ma=ha.panelRef,za=ha.onSelect,la=ha.hideRanges,ao=ha.defaultOpenValue,ka=c.useContext(ei),Ba=ka.inRange,oo=ka.panelPosition,ja=ka.rangedValue,Pa=ka.hoverRangedValue,Fr=c.useRef({}),Oa=c.useRef(!0),No=Object(U.a)(null,{value:Sr,defaultValue:gn,postState:function(Fn){return!Fn&&ao&&ri==="time"?ao:Fn}}),Po=Object(K.a)(No,2),Qo=Po[0],ss=Po[1],rs=Object(U.a)(null,{value:$n,defaultValue:qn||Qo,postState:function(Fn){return Fn||In.getNow()}}),Ko=Object(K.a)(rs,2),$o=Ko[0],Uo=Ko[1],Wo=function(Fn){Uo(Fn),dr&&dr(Fn)},Go=function(Fn){var Ai=le[ri];return Ai?Ai(Fn):Fn},Oo=Object(U.a)(function(){return ri==="time"?"time":Go("date")},{value:mi}),Ka=Object(K.a)(Oo,2),Xa=Ka[0],bo=Ka[1];c.useEffect(function(){bo(ri)},[ri]);var Eo=c.useState(function(){return Xa}),pt=Object(K.a)(Eo,2),Nt=pt[0],sn=pt[1],Mn=function(Fn,Ai){var Di=Go(Fn||Xa);sn(Xa),bo(Di),ur&&(Xa!==Di||Vt(In,$o,$o))&&ur(Ai,Di)},hi=function(Fn,Ai){var Di=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Xa===ri||Di)&&(ss(Fn),xt&&xt(Fn),za&&za(Fn,Ai),Ut&&!Vt(In,Fn,Qo)&&Ut(Fn))},ot=function(Fn){return Fr.current&&Fr.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(Fn.which)&&Fn.preventDefault(),Fr.current.onKeyDown(Fn)):(Object(C.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ae=function(Fn){Fr.current&&Fr.current.onBlur&&Fr.current.onBlur(Fn)};qi&&oo!=="right"&&(qi.current={onKeyDown:ot,onClose:function(){Fr.current&&Fr.current.onClose&&Fr.current.onClose()}}),c.useEffect(function(){Sr&&!Oa.current&&Uo(Sr)},[Sr]),c.useEffect(function(){Oa.current=!1},[]);var de,ye=Object(F.a)(Object(F.a)({},qe),{},{operationRef:Fr,prefixCls:Cr,viewDate:$o,value:Qo,onViewDateChange:Wo,sourceMode:Nt,onPanelChange:Mn,disabledDate:Xa!=="decade"?Gn:void 0});delete ye.onChange,delete ye.onSelect;switch(Xa){case"decade":de=c.createElement(hn,Object.assign({},ye,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}}));break;case"year":de=c.createElement(Xe,Object.assign({},ye,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}}));break;case"month":de=c.createElement(At,Object.assign({},ye,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}}));break;case"quarter":de=c.createElement(Un,Object.assign({},ye,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}}));break;case"week":de=c.createElement(mn,Object.assign({},ye,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}}));break;case"time":delete ye.showTime,de=c.createElement(Re,Object.assign({},ye,Object(V.a)(ga)==="object"?ga:null,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}}));break;default:ga?de=c.createElement(vr,Object.assign({},ye,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}})):de=c.createElement(Ye,Object.assign({},ye,{onSelect:function(Fn,Ai){Wo(Fn),hi(Fn,Ai)}}))}var Ke,ct,Bt=function(){var Fn=In.getNow(),Ai=Et(In.getHour(Fn),In.getMinute(Fn),In.getSecond(Fn),aa?Nn:1,Ca?Qn:1,fa?wi:1),Di=Ot(In,Fn,Ai[0],Ai[1],Ai[2]);hi(Di,"submit")};la||(Ke=or(Cr,Xa,Lt),ct=vn({prefixCls:Cr,components:Wr,needConfirmButton:Ea,okDisabled:!Qo||Gn&&Gn(Qo),locale:br,showNow:Pi,onNow:Ea&&Bt,onOk:function(){Qo&&(hi(Qo,"submit",!0),nr&&nr(Qo))}}));var Ir;if(tr&&Xa==="date"&&ri==="date"&&!ga){var Br=In.getNow(),un="".concat(Cr,"-today-btn"),zn=Gn&&Gn(Br);Ir=c.createElement("a",{className:T()(un,zn&&"".concat(un,"-disabled")),"aria-disabled":zn,onClick:function(){zn||hi(Br,"mouse",!0)}},br.today)}return c.createElement(q.Provider,{value:Object(F.a)(Object(F.a)({},ha),{},{hideHeader:"hideHeader"in qe?yr:ha.hideHeader,hidePrevBtn:Ba&&oo==="right",hideNextBtn:Ba&&oo==="left"})},c.createElement("div",{tabIndex:Xi,className:T()("".concat(Cr,"-panel"),pn,(rr={},Object(H.a)(rr,"".concat(Cr,"-panel-has-range"),ja&&ja[0]&&ja[1]),Object(H.a)(rr,"".concat(Cr,"-panel-has-range-hover"),Pa&&Pa[0]&&Pa[1]),Object(H.a)(rr,"".concat(Cr,"-panel-rtl"),En==="rtl"),rr)),style:Vr,onKeyDown:ot,onBlur:ae,onMouseDown:Ct,ref:Ma},de,Ke||ct||Ir?c.createElement("div",{className:"".concat(Cr,"-footer")},Ke,ct,Ir):null))}var Ur=nn,ni=d("JX7q"),Oi=d("i8i4"),Hi=d.n(Oi),Ri=d("l4aY"),Ni=d("m+aA"),Yi=d("c+Xe"),Qr=d("zT1h"),On=d("QC+M");function zr(qe,rr,Rr){return Rr?qe[0]===rr[0]:qe[0]===rr[0]&&qe[1]===rr[1]}function fr(qe,rr,Rr){var Cr=qe[rr]||{};return Object(F.a)(Object(F.a)({},Cr),Rr)}function Nr(qe,rr,Rr,Cr){for(var pn=Rr.points,Vr=Object.keys(qe),br=0;br<Vr.length;br+=1){var In=Vr[br];if(zr(qe[In].points,pn,Cr))return"".concat(rr,"-placement-").concat(In)}return""}var Qt=d("Ff2n"),xr=d("xEkU"),Jr=d.n(xr),Kr=d("9mu1"),en=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function ai(qe,rr){var Rr={};return Rr[qe.toLowerCase()]=rr.toLowerCase(),Rr["Webkit".concat(qe)]="webkit".concat(rr),Rr["Moz".concat(qe)]="moz".concat(rr),Rr["ms".concat(qe)]="MS".concat(rr),Rr["O".concat(qe)]="o".concat(rr.toLowerCase()),Rr}function Yn(qe,rr){var Rr={animationend:ai("Animation","AnimationEnd"),transitionend:ai("Transition","TransitionEnd")};return qe&&("AnimationEvent"in rr||delete Rr.animationend.animation,"TransitionEvent"in rr||delete Rr.transitionend.transition),Rr}var Si=Yn(en,typeof window!="undefined"?window:{}),ln={};if(en){var Or=document.createElement("div");ln=Or.style}var wn={};function Xn(qe){if(wn[qe])return wn[qe];var rr=Si[qe];if(rr)for(var Rr=Object.keys(rr),Cr=Rr.length,pn=0;pn<Cr;pn+=1){var Vr=Rr[pn];if(Object.prototype.hasOwnProperty.call(rr,Vr)&&Vr in ln)return wn[qe]=rr[Vr],wn[qe]}return""}var Zn=Xn("animationend"),ii=Xn("transitionend"),Ei=!!(Zn&&ii);function ki(qe,rr){if(!qe)return null;if(Object(V.a)(qe)==="object"){var Rr=rr.replace(/-\w/g,function(Cr){return Cr[1].toUpperCase()});return qe[Rr]}return"".concat(qe,"-").concat(rr)}var Fi="none",ra="appear",_a="enter",wa="leave";function _o(qe){var rr=qe,Rr=!!c.forwardRef;Object(V.a)(qe)==="object"&&(rr=qe.transitionSupport,Rr="forwardRef"in qe?qe.forwardRef:Rr);function Cr(Vr){return!!(Vr.motionName&&rr)}var pn=function(Vr){Object(B.a)(In,Vr);var br=Object(R.a)(In);function In(){var Sr;return Object(N.a)(this,In),Sr=br.apply(this,arguments),Sr.$cacheEle=null,Sr.node=null,Sr.raf=null,Sr.destroyed=!1,Sr.deadlineId=null,Sr.state={status:Fi,statusActive:!1,newStatus:!1,statusStyle:null},Sr.onDomUpdate=function(){var gn=Sr.state,$n=gn.status,qn=gn.newStatus,Gn=Sr.props,mi=Gn.onAppearStart,ti=Gn.onEnterStart,ri=Gn.onLeaveStart,li=Gn.onAppearActive,Xi=Gn.onEnterActive,Pi=Gn.onLeaveActive,ga=Gn.motionAppear,tr=Gn.motionEnter,Lt=Gn.motionLeave;if(!Cr(Sr.props))return;var yr=Sr.getElement();Sr.$cacheEle!==yr&&(Sr.removeEventListener(Sr.$cacheEle),Sr.addEventListener(yr),Sr.$cacheEle=yr),qn&&$n===ra&&ga?Sr.updateStatus(mi,null,null,function(){Sr.updateActiveStatus(li,ra)}):qn&&$n===_a&&tr?Sr.updateStatus(ti,null,null,function(){Sr.updateActiveStatus(Xi,_a)}):qn&&$n===wa&&Lt&&Sr.updateStatus(ri,null,null,function(){Sr.updateActiveStatus(Pi,wa)})},Sr.onMotionEnd=function(gn){if(gn&&!gn.deadline&&gn.target!==Sr.getElement())return;var $n=Sr.state,qn=$n.status,Gn=$n.statusActive,mi=Sr.props,ti=mi.onAppearEnd,ri=mi.onEnterEnd,li=mi.onLeaveEnd;qn===ra&&Gn?Sr.updateStatus(ti,{status:Fi},gn):qn===_a&&Gn?Sr.updateStatus(ri,{status:Fi},gn):qn===wa&&Gn&&Sr.updateStatus(li,{status:Fi},gn)},Sr.setNodeRef=function(gn){var $n=Sr.props.internalRef;Sr.node=gn,Object(Yi.b)($n,gn)},Sr.getElement=function(){try{return Object(Ni.a)(Sr.node||Object(ni.a)(Sr))}catch(gn){return Sr.$cacheEle}},Sr.addEventListener=function(gn){if(!gn)return;gn.addEventListener(ii,Sr.onMotionEnd),gn.addEventListener(Zn,Sr.onMotionEnd)},Sr.removeEventListener=function(gn){if(!gn)return;gn.removeEventListener(ii,Sr.onMotionEnd),gn.removeEventListener(Zn,Sr.onMotionEnd)},Sr.updateStatus=function(gn,$n,qn,Gn){var mi=gn?gn(Sr.getElement(),qn):null;if(mi===!1||Sr.destroyed)return;var ti;Gn&&(ti=function(){Sr.nextFrame(Gn)}),Sr.setState(Object(F.a)({statusStyle:Object(V.a)(mi)==="object"?mi:null,newStatus:!1},$n),ti)},Sr.updateActiveStatus=function(gn,$n){Sr.nextFrame(function(){var qn=Sr.state.status;if(qn!==$n)return;var Gn=Sr.props.motionDeadline;Sr.updateStatus(gn,{statusActive:!0}),Gn>0&&(Sr.deadlineId=setTimeout(function(){Sr.onMotionEnd({deadline:!0})},Gn))})},Sr.nextFrame=function(gn){Sr.cancelNextFrame(),Sr.raf=Jr()(gn)},Sr.cancelNextFrame=function(){Sr.raf&&(Jr.a.cancel(Sr.raf),Sr.raf=null)},Sr}return Object(M.a)(In,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var gn,$n=this.state,qn=$n.status,Gn=$n.statusActive,mi=$n.statusStyle,ti=this.props,ri=ti.children,li=ti.motionName,Xi=ti.visible,Pi=ti.removeOnLeave,ga=ti.leavedClassName,tr=ti.eventProps;return ri?qn===Fi||!Cr(this.props)?Xi?ri(Object(F.a)({},tr),this.setNodeRef):Pi?null:ri(Object(F.a)(Object(F.a)({},tr),{},{className:ga}),this.setNodeRef):ri(Object(F.a)(Object(F.a)({},tr),{},{className:T()(ki(li,qn),(gn={},Object(H.a)(gn,ki(li,"".concat(qn,"-active")),Gn),Object(H.a)(gn,li,typeof li=="string"),gn)),style:mi}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(gn,$n){var qn=$n.prevProps,Gn=$n.status;if(!Cr(gn))return{};var mi=gn.visible,ti=gn.motionAppear,ri=gn.motionEnter,li=gn.motionLeave,Xi=gn.motionLeaveImmediately,Pi={prevProps:gn};return(Gn===ra&&!ti||Gn===_a&&!ri||Gn===wa&&!li)&&(Pi.status=Fi,Pi.statusActive=!1,Pi.newStatus=!1),!qn&&mi&&ti&&(Pi.status=ra,Pi.statusActive=!1,Pi.newStatus=!0),qn&&!qn.visible&&mi&&ri&&(Pi.status=_a,Pi.statusActive=!1,Pi.newStatus=!0),(qn&&qn.visible&&!mi&&li||!qn&&Xi&&!mi&&li)&&(Pi.status=wa,Pi.statusActive=!1,Pi.newStatus=!0),Pi}}]),In}(c.Component);return pn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Rr?c.forwardRef(function(Vr,br){return c.createElement(pn,Object.assign({internalRef:br},Vr))}):pn}var bi=_o(Ei),xn="add",Zi="keep",va="remove",ta="removed";function ma(qe){var rr;return qe&&Object(V.a)(qe)==="object"&&"key"in qe?rr=qe:rr={key:qe},Object(F.a)(Object(F.a)({},rr),{},{key:String(rr.key)})}function Qi(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return qe.map(ma)}function Ya(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Rr=[],Cr=0,pn=rr.length,Vr=Qi(qe),br=Qi(rr);Vr.forEach(function(gn){for(var $n=!1,qn=Cr;qn<pn;qn+=1){var Gn=br[qn];if(Gn.key===gn.key){Cr<qn&&(Rr=Rr.concat(br.slice(Cr,qn).map(function(mi){return Object(F.a)(Object(F.a)({},mi),{},{status:xn})})),Cr=qn),Rr.push(Object(F.a)(Object(F.a)({},Gn),{},{status:Zi})),Cr+=1,$n=!0;break}}$n||Rr.push(Object(F.a)(Object(F.a)({},gn),{},{status:va}))}),Cr<pn&&(Rr=Rr.concat(br.slice(Cr).map(function(gn){return Object(F.a)(Object(F.a)({},gn),{},{status:xn})})));var In={};Rr.forEach(function(gn){var $n=gn.key;In[$n]=(In[$n]||0)+1});var Sr=Object.keys(In).filter(function(gn){return In[gn]>1});return Sr.forEach(function(gn){Rr=Rr.filter(function($n){var qn=$n.key,Gn=$n.status;return qn!==gn||Gn!==va}),Rr.forEach(function($n){$n.key===gn&&($n.status=Zi)})}),Rr}var Wa=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ao(qe){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bi,Rr=function(Cr){Object(B.a)(Vr,Cr);var pn=Object(R.a)(Vr);function Vr(){var br;return Object(N.a)(this,Vr),br=pn.apply(this,arguments),br.state={keyEntities:[]},br.removeKey=function(In){br.setState(function(Sr){var gn=Sr.keyEntities;return{keyEntities:gn.map(function($n){return $n.key!==In?$n:Object(F.a)(Object(F.a)({},$n),{},{status:ta})})}})},br}return Object(M.a)(Vr,[{key:"render",value:function(){var In=this,Sr=this.state.keyEntities,gn=this.props,$n=gn.component,qn=gn.children,Gn=Object(Qt.a)(gn,["component","children"]),mi=$n||c.Fragment,ti={};return Wa.forEach(function(ri){ti[ri]=Gn[ri],delete Gn[ri]}),delete Gn.keys,c.createElement(mi,Object.assign({},Gn),Sr.map(function(ri){var li=ri.status,Xi=Object(Qt.a)(ri,["status"]),Pi=li===xn||li===Zi;return c.createElement(rr,Object.assign({},ti,{key:Xi.key,visible:Pi,eventProps:Xi,onLeaveEnd:function(){ti.onLeaveEnd&&ti.onLeaveEnd.apply(ti,arguments),In.removeKey(Xi.key)}}),qn)}))}}],[{key:"getDerivedStateFromProps",value:function(In,Sr){var gn=In.keys,$n=Sr.keyEntities,qn=Qi(gn);if(!qe)return{keyEntities:qn.map(function(ti){return Object(F.a)(Object(F.a)({},ti),{},{status:Zi})})};var Gn=Ya($n,qn),mi=$n.length;return{keyEntities:Gn.filter(function(ti){for(var ri=null,li=0;li<mi;li+=1){var Xi=$n[li];if(Xi.key===ti.key){ri=Xi;break}}return!(ri&&ri.status===ta&&ti.status===va)})}}}]),Vr}(c.Component);return Rr.defaultProps={component:"div"},Rr}var es=Ao(Ei),so=bi,So=function(rr,Rr){var Cr=rr.prefixCls,pn=rr.className,Vr=rr.style,br=rr.children,In=rr.onMouseEnter,Sr=rr.onMouseLeave,gn=rr.onMouseDown,$n=rr.onTouchStart,qn=br;return c.Children.count(br)>1&&(qn=c.createElement("div",{className:"".concat(Cr,"-content")},br)),c.createElement("div",{ref:Rr,className:pn,onMouseEnter:In,onMouseLeave:Sr,onMouseDown:gn,onTouchStart:$n,style:Vr},qn)},xo=c.forwardRef(So);xo.displayName="PopupInner";var hr=xo;function Sn(qe){var rr=qe.prefixCls,Rr=qe.motion,Cr=qe.animation,pn=qe.transitionName;return Rr||(Cr?{motionName:"".concat(rr,"-").concat(Cr)}:pn?{motionName:pn}:null)}function dn(qe){return qe&&qe.motionName}var Kn=function(qe){Object(B.a)(Rr,qe);var rr=Object(R.a)(Rr);function Rr(){var Cr;return Object(N.a)(this,Rr),Cr=rr.apply(this,arguments),Cr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Cr.popupRef=i.a.createRef(),Cr.alignRef=i.a.createRef(),Cr.nextFrameState=null,Cr.nextFrameId=null,Cr.onAlign=function(pn,Vr){var br=Cr.state.status,In=Cr.props,Sr=In.getClassNameFromAlign,gn=In.onAlign,$n=Sr(Vr);br==="align"?Cr.setState({alignClassName:$n,status:"aligned"},function(){Cr.alignRef.current.forceAlign()}):br==="aligned"?(Cr.setState({alignClassName:$n,status:"afterAlign"}),gn(pn,Vr)):Cr.setState({alignClassName:$n})},Cr.onMotionEnd=function(){var pn=Cr.props.visible;Cr.setState({status:pn?"AfterMotion":"stable",inMotion:!1})},Cr.setStateOnNextFrame=function(pn){Cr.cancelFrameState(),Cr.nextFrameState=Object(F.a)(Object(F.a)({},Cr.nextFrameState),pn),Cr.nextFrameId=Jr()(function(){var Vr=Object(F.a)({},Cr.nextFrameState);Cr.nextFrameState=null,Cr.setState(Vr)})},Cr.getMotion=function(){return Object(F.a)({},Sn(Cr.props))},Cr.getAlignTarget=function(){var pn=Cr.props,Vr=pn.point,br=pn.getRootDomNode;return Vr||br},Cr.cancelFrameState=function(){Jr.a.cancel(Cr.nextFrameId)},Cr.renderPopupElement=function(){var pn=Cr.state,Vr=pn.status,br=pn.targetHeight,In=pn.targetWidth,Sr=pn.alignClassName,gn=Cr.props,$n=gn.prefixCls,qn=gn.className,Gn=gn.style,mi=gn.stretch,ti=gn.visible,ri=gn.align,li=gn.destroyPopupOnHide,Xi=gn.onMouseEnter,Pi=gn.onMouseLeave,ga=gn.onMouseDown,tr=gn.onTouchStart,Lt=gn.children,yr=T()($n,qn,Sr),xt="".concat($n,"-hidden"),Ut={};mi&&(mi.indexOf("height")!==-1?Ut.height=br:mi.indexOf("minHeight")!==-1&&(Ut.minHeight=br),mi.indexOf("width")!==-1?Ut.width=In:mi.indexOf("minWidth")!==-1&&(Ut.minWidth=In));var ur=Object(F.a)(Object(F.a)(Object(F.a)(Object(F.a)({},Ut),Cr.getZIndexStyle()),Gn),{},{opacity:Vr==="stable"||!ti?void 0:0,pointerEvents:Vr==="stable"||!ti?void 0:"none"}),Ct=Cr.getMotion(),dr=ti;ti&&Vr!=="beforeMotion"&&Vr!=="motion"&&Vr!=="stable"&&(Ct.motionAppear=!1,Ct.motionEnter=!1,Ct.motionLeave=!1),(Vr==="afterAlign"||Vr==="beforeMotion")&&(dr=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(En){var Cn=Ct==null?void 0:Ct[En];Ct[En]=function(){for(var Nn=arguments.length,oi=new Array(Nn),Qn=0;Qn<Nn;Qn++)oi[Qn]=arguments[Qn];Cn==null||Cn.apply(void 0,oi),Cr.setState({inMotion:!0})}});var nr=!ti||Vr!=="align"&&Vr!=="aligned"&&Vr!=="stable",Wr=!0;return Vr==="stable"&&(Wr=ti),li&&!Wr?null:i.a.createElement(so,Object.assign({visible:dr},Ct,{removeOnLeave:!1,onEnterEnd:Cr.onMotionEnd,onLeaveEnd:Cr.onMotionEnd,leavedClassName:xt}),function(En,Cn){var Nn=En.style,oi=En.className;return i.a.createElement(Kr.a,{target:Cr.getAlignTarget(),key:"popup",ref:Cr.alignRef,monitorWindowResize:!0,disabled:nr,align:ri,onAlign:Cr.onAlign},i.a.createElement(hr,{prefixCls:$n,className:T()(yr,oi),ref:Object(Yi.a)(Cn,Cr.popupRef),onMouseEnter:Xi,onMouseLeave:Pi,onMouseDown:ga,onTouchStart:tr,style:Object(F.a)(Object(F.a)({},ur),Nn)},Lt))})},Cr.renderMaskElement=function(){var pn=Cr.props,Vr=pn.mask,br=pn.maskMotion,In=pn.maskTransitionName,Sr=pn.maskAnimation,gn=pn.prefixCls,$n=pn.visible;if(!Vr)return null;var qn={};return br&&br.motionName&&(qn=Object(F.a)({motionAppear:!0},Sn({motion:br,prefixCls:gn,transitionName:In,animation:Sr}))),i.a.createElement(so,Object.assign({},qn,{visible:$n,removeOnLeave:!0}),function(Gn){var mi=Gn.className;return i.a.createElement("div",{style:Cr.getZIndexStyle(),key:"mask",className:T()("".concat(gn,"-mask"),mi)})})},Cr}return Object(M.a)(Rr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var pn=this.state.status,Vr=this.props,br=Vr.getRootDomNode,In=Vr.visible,Sr=Vr.stretch;if(this.cancelFrameState(),In&&pn!=="stable")switch(pn){case null:{this.setStateOnNextFrame({status:Sr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:dn(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var gn=["measure","align",null,"beforeMotion","motion"],$n=gn.indexOf(pn),qn=gn[$n+1];$n!==-1&&qn&&this.setStateOnNextFrame({status:qn})}}if(pn==="measure"){var Gn=br();Gn&&this.setStateOnNextFrame({targetHeight:Gn.offsetHeight,targetWidth:Gn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var pn=this.props.zIndex;return{zIndex:pn}}},{key:"render",value:function(){return i.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(pn,Vr){var br=pn.visible,In=Object(Qt.a)(pn,["visible"]),Sr=Vr.prevVisible,gn=Vr.status,$n=Vr.inMotion,qn={prevVisible:br,status:gn},Gn=Sn(In);return Sr===null&&br===!1?(qn.status="stable",qn.inMotion=!1):br!==Sr&&(qn.inMotion=!1,br||dn(Gn)&&$n?qn.status=null:qn.status="stable",br&&(qn.alignClassName=null)),qn}}]),Rr}(c.Component),si=Kn,vi=c.createContext(null),pi=vi;function di(){}function Ki(){return""}function Mi(){return window.document}var pa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function _i(qe){var rr=function(Rr){Object(B.a)(pn,Rr);var Cr=Object(R.a)(pn);function pn(Vr){var br;Object(N.a)(this,pn),br=Cr.call(this,Vr),br.popupRef=i.a.createRef(),br.triggerRef=i.a.createRef(),br.onMouseEnter=function(Sr){var gn=br.props.mouseEnterDelay;br.fireEvents("onMouseEnter",Sr),br.delaySetPopupVisible(!0,gn,gn?null:Sr)},br.onMouseMove=function(Sr){br.fireEvents("onMouseMove",Sr),br.setPoint(Sr)},br.onMouseLeave=function(Sr){br.fireEvents("onMouseLeave",Sr),br.delaySetPopupVisible(!1,br.props.mouseLeaveDelay)},br.onPopupMouseEnter=function(){br.clearDelayTimer()},br.onPopupMouseLeave=function(Sr){if(Sr.relatedTarget&&!Sr.relatedTarget.setTimeout&&br.popupRef.current&&br.popupRef.current.popupRef.current&&Object(Ri.a)(br.popupRef.current.popupRef.current,Sr.relatedTarget))return;br.delaySetPopupVisible(!1,br.props.mouseLeaveDelay)},br.onFocus=function(Sr){br.fireEvents("onFocus",Sr),br.clearDelayTimer(),br.isFocusToShow()&&(br.focusTime=Date.now(),br.delaySetPopupVisible(!0,br.props.focusDelay))},br.onMouseDown=function(Sr){br.fireEvents("onMouseDown",Sr),br.preClickTime=Date.now()},br.onTouchStart=function(Sr){br.fireEvents("onTouchStart",Sr),br.preTouchTime=Date.now()},br.onBlur=function(Sr){br.fireEvents("onBlur",Sr),br.clearDelayTimer(),br.isBlurToHide()&&br.delaySetPopupVisible(!1,br.props.blurDelay)},br.onContextMenu=function(Sr){Sr.preventDefault(),br.fireEvents("onContextMenu",Sr),br.setPopupVisible(!0,Sr)},br.onContextMenuClose=function(){br.isContextMenuToShow()&&br.close()},br.onClick=function(Sr){if(br.fireEvents("onClick",Sr),br.focusTime){var gn;if(br.preClickTime&&br.preTouchTime?gn=Math.min(br.preClickTime,br.preTouchTime):br.preClickTime?gn=br.preClickTime:br.preTouchTime&&(gn=br.preTouchTime),Math.abs(gn-br.focusTime)<20)return;br.focusTime=0}br.preClickTime=0,br.preTouchTime=0,br.isClickToShow()&&(br.isClickToHide()||br.isBlurToHide())&&Sr&&Sr.preventDefault&&Sr.preventDefault();var $n=!br.state.popupVisible;(br.isClickToHide()&&!$n||$n&&br.isClickToShow())&&br.setPopupVisible(!br.state.popupVisible,Sr)},br.onPopupMouseDown=function(){if(br.hasPopupMouseDown=!0,clearTimeout(br.mouseDownTimeout),br.mouseDownTimeout=window.setTimeout(function(){br.hasPopupMouseDown=!1},0),br.context){var Sr;(Sr=br.context).onPopupMouseDown.apply(Sr,arguments)}},br.onDocumentClick=function(Sr){if(br.props.mask&&!br.props.maskClosable)return;var gn=Sr.target,$n=br.getRootDomNode(),qn=br.getPopupDomNode();!Object(Ri.a)($n,gn)&&!Object(Ri.a)(qn,gn)&&!br.hasPopupMouseDown&&br.close()},br.getRootDomNode=function(){var Sr=br.props.getTriggerDOMNode;if(Sr)return Sr(br.triggerRef.current);try{var gn=Object(Ni.a)(br.triggerRef.current);if(gn)return gn}catch($n){}return Hi.a.findDOMNode(Object(ni.a)(br))},br.getPopupClassNameFromAlign=function(Sr){var gn=[],$n=br.props,qn=$n.popupPlacement,Gn=$n.builtinPlacements,mi=$n.prefixCls,ti=$n.alignPoint,ri=$n.getPopupClassNameFromAlign;return qn&&Gn&&gn.push(Nr(Gn,mi,Sr,ti)),ri&&gn.push(ri(Sr)),gn.join(" ")},br.getComponent=function(){var Sr=br.props,gn=Sr.prefixCls,$n=Sr.destroyPopupOnHide,qn=Sr.popupClassName,Gn=Sr.onPopupAlign,mi=Sr.popupMotion,ti=Sr.popupAnimation,ri=Sr.popupTransitionName,li=Sr.popupStyle,Xi=Sr.mask,Pi=Sr.maskAnimation,ga=Sr.maskTransitionName,tr=Sr.maskMotion,Lt=Sr.zIndex,yr=Sr.popup,xt=Sr.stretch,Ut=Sr.alignPoint,ur=br.state,Ct=ur.popupVisible,dr=ur.point,nr=br.getPopupAlign(),Wr={};return br.isMouseEnterToShow()&&(Wr.onMouseEnter=br.onPopupMouseEnter),br.isMouseLeaveToHide()&&(Wr.onMouseLeave=br.onPopupMouseLeave),Wr.onMouseDown=br.onPopupMouseDown,Wr.onTouchStart=br.onPopupMouseDown,i.a.createElement(si,Object.assign({prefixCls:gn,destroyPopupOnHide:$n,visible:Ct,point:Ut&&dr,className:qn,align:nr,onAlign:Gn,animation:ti,getClassNameFromAlign:br.getPopupClassNameFromAlign},Wr,{stretch:xt,getRootDomNode:br.getRootDomNode,style:li,mask:Xi,zIndex:Lt,transitionName:ri,maskAnimation:Pi,maskTransitionName:ga,maskMotion:tr,ref:br.popupRef,motion:mi}),typeof yr=="function"?yr():yr)},br.getContainer=function(){var Sr=Object(ni.a)(br),gn=Sr.props,$n=document.createElement("div");$n.style.position="absolute",$n.style.top="0",$n.style.left="0",$n.style.width="100%";var qn=gn.getPopupContainer?gn.getPopupContainer(br.getRootDomNode()):gn.getDocument().body;return qn.appendChild($n),$n},br.setPoint=function(Sr){var gn=br.props.alignPoint;if(!gn||!Sr)return;br.setState({point:{pageX:Sr.pageX,pageY:Sr.pageY}})},br.handlePortalUpdate=function(){br.state.prevPopupVisible!==br.state.popupVisible&&br.props.afterPopupVisibleChange(br.state.popupVisible)};var In;return"popupVisible"in Vr?In=!!Vr.popupVisible:In=!!Vr.defaultPopupVisible,br.state={prevPopupVisible:In,popupVisible:In},pa.forEach(function(Sr){br["fire".concat(Sr)]=function(gn){br.fireEvents(Sr,gn)}}),br}return Object(M.a)(pn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var br=this.props,In=this.state;if(In.popupVisible){var Sr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Sr=br.getDocument(),this.clickOutsideHandler=Object(Qr.a)(Sr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Sr=Sr||br.getDocument(),this.touchOutsideHandler=Object(Qr.a)(Sr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Sr=Sr||br.getDocument(),this.contextMenuOutsideHandler1=Object(Qr.a)(Sr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Qr.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var br=this.props,In=br.popupPlacement,Sr=br.popupAlign,gn=br.builtinPlacements;return In&&gn?fr(gn,In,Sr):Sr}},{key:"setPopupVisible",value:function(br,In){var Sr=this.props.alignPoint,gn=this.state.popupVisible;this.clearDelayTimer(),gn!==br&&("popupVisible"in this.props||this.setState({popupVisible:br,prevPopupVisible:gn}),this.props.onPopupVisibleChange(br)),Sr&&In&&this.setPoint(In)}},{key:"delaySetPopupVisible",value:function(br,In,Sr){var gn=this,$n=In*1e3;if(this.clearDelayTimer(),$n){var qn=Sr?{pageX:Sr.pageX,pageY:Sr.pageY}:null;this.delayTimer=window.setTimeout(function(){gn.setPopupVisible(br,qn),gn.clearDelayTimer()},$n)}else this.setPopupVisible(br,Sr)}},{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(br){var In=this.props.children.props,Sr=this.props;return In[br]&&Sr[br]?this["fire".concat(br)]:In[br]||Sr[br]}},{key:"isClickToShow",value:function(){var br=this.props,In=br.action,Sr=br.showAction;return In.indexOf("click")!==-1||Sr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var br=this.props,In=br.action,Sr=br.showAction;return In.indexOf("contextMenu")!==-1||Sr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var br=this.props,In=br.action,Sr=br.hideAction;return In.indexOf("click")!==-1||Sr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var br=this.props,In=br.action,Sr=br.showAction;return In.indexOf("hover")!==-1||Sr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var br=this.props,In=br.action,Sr=br.hideAction;return In.indexOf("hover")!==-1||Sr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var br=this.props,In=br.action,Sr=br.showAction;return In.indexOf("focus")!==-1||Sr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var br=this.props,In=br.action,Sr=br.hideAction;return In.indexOf("focus")!==-1||Sr.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(br,In){var Sr=this.props.children.props[br];Sr&&Sr(In);var gn=this.props[br];gn&&gn(In)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var br=this.state.popupVisible,In=this.props,Sr=In.children,gn=In.forceRender,$n=In.alignPoint,qn=In.className,Gn=In.autoDestroy,mi=i.a.Children.only(Sr),ti={key:"trigger"};this.isContextMenuToShow()?ti.onContextMenu=this.onContextMenu:ti.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(ti.onClick=this.onClick,ti.onMouseDown=this.onMouseDown,ti.onTouchStart=this.onTouchStart):(ti.onClick=this.createTwoChains("onClick"),ti.onMouseDown=this.createTwoChains("onMouseDown"),ti.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(ti.onMouseEnter=this.onMouseEnter,$n&&(ti.onMouseMove=this.onMouseMove)):ti.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?ti.onMouseLeave=this.onMouseLeave:ti.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(ti.onFocus=this.onFocus,ti.onBlur=this.onBlur):(ti.onFocus=this.createTwoChains("onFocus"),ti.onBlur=this.createTwoChains("onBlur"));var ri=T()(mi&&mi.props&&mi.props.className,qn);ri&&(ti.className=ri);var li=Object(F.a)({},ti);Object(Yi.c)(mi)&&(li.ref=Object(Yi.a)(this.triggerRef,mi.ref));var Xi=i.a.cloneElement(mi,li),Pi;return(br||this.popupRef.current||gn)&&(Pi=i.a.createElement(qe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!br&&Gn&&(Pi=null),i.a.createElement(pi.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Xi,Pi)}}],[{key:"getDerivedStateFromProps",value:function(br,In){var Sr=br.popupVisible,gn={};return Sr!==void 0&&In.popupVisible!==Sr&&(gn.popupVisible=Sr,gn.prevPopupVisible=In.popupVisible),gn}}]),pn}(i.a.Component);return rr.contextType=pi,rr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ki,getDocument:Mi,onPopupVisibleChange:di,afterPopupVisibleChange:di,onPopupAlign:di,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},rr}var da=_i(On.a),na={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 Sa(qe){var rr,Rr=qe.prefixCls,Cr=qe.popupElement,pn=qe.popupStyle,Vr=qe.visible,br=qe.dropdownClassName,In=qe.dropdownAlign,Sr=qe.transitionName,gn=qe.getPopupContainer,$n=qe.children,qn=qe.range,Gn=qe.popupPlacement,mi=qe.direction,ti="".concat(Rr,"-dropdown"),ri=function(){return Gn!==void 0?Gn:mi==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(da,{showAction:[],hideAction:[],popupPlacement:ri(),builtinPlacements:na,prefixCls:ti,popupTransitionName:Sr,popup:Cr,popupAlign:In,popupVisible:Vr,popupClassName:T()(br,(rr={},Object(H.a)(rr,"".concat(ti,"-range"),qn),Object(H.a)(rr,"".concat(ti,"-rtl"),mi==="rtl"),rr)),popupStyle:pn,getPopupContainer:gn},$n)}var Aa=Sa;function ua(qe){var rr=qe.open,Rr=qe.value,Cr=qe.isClickOutside,pn=qe.triggerOpen,Vr=qe.forwardKeyDown,br=qe.blurToCancel,In=qe.onSubmit,Sr=qe.onCancel,gn=qe.onFocus,$n=qe.onBlur,qn=Object(c.useState)(!1),Gn=Object(K.a)(qn,2),mi=Gn[0],ti=Gn[1],ri=Object(c.useState)(!1),li=Object(K.a)(ri,2),Xi=li[0],Pi=li[1],ga=Object(c.useRef)(!1),tr=Object(c.useRef)(!1),Lt={onMouseDown:function(){ti(!0),pn(!0)},onKeyDown:function(xt){switch(xt.which){case z.a.ENTER:{rr?In()!==!1&&ti(!0):pn(!0),xt.preventDefault();return}case z.a.TAB:{mi&&rr&&!xt.shiftKey?(ti(!1),xt.preventDefault()):!mi&&rr&&(!Vr(xt)&&xt.shiftKey&&(ti(!0),xt.preventDefault()));return}case z.a.ESC:{ti(!0),Sr();return}}!rr&&![z.a.SHIFT].includes(xt.which)?pn(!0):mi||Vr(xt)},onFocus:function(xt){ti(!0),Pi(!0),gn&&gn(xt)},onBlur:function(xt){if(ga.current||!Cr(document.activeElement)){ga.current=!1;return}br?setTimeout(function(){Cr(document.activeElement)&&Sr()},0):rr&&(pn(!1),tr.current&&In()),Pi(!1),$n&&$n(xt)}};return Object(c.useEffect)(function(){tr.current=!1},[rr]),Object(c.useEffect)(function(){tr.current=!0},[Rr]),Object(c.useEffect)(function(){return te(function(yr){var xt=yr.target;rr&&(Cr(xt)?Xi||pn(!1):(ga.current=!0,requestAnimationFrame(function(){ga.current=!1})))})}),[Lt,{focused:Xi,typing:mi}]}function La(qe){var rr=qe.valueTexts,Rr=qe.onTextChange,Cr=c.useState(""),pn=Object(K.a)(Cr,2),Vr=pn[0],br=pn[1],In=c.useRef([]);In.current=rr;function Sr($n){br($n),Rr($n)}function gn(){br(In.current[0])}return c.useEffect(function(){rr.every(function($n){return $n!==Vr})&&gn()},[rr.join("||")]),[Vr,Sr,gn]}var sa=d("Gytx"),co=d.n(sa);function no(qe,rr){var Rr=rr.formatList,Cr=rr.generateConfig,pn=rr.locale;return Object(He.a)(function(){if(!qe)return[[""],""];for(var Vr="",br=[],In=0;In<Rr.length;In+=1){var Sr=Rr[In],gn=Cr.locale.format(pn.locale,qe,Sr);br.push(gn),In===0&&(Vr=gn)}return[br,Vr]},[qe,Rr],function(Vr,br){return Vr[0]!==br[0]||!co()(Vr[1],br[1])})}function ca(qe,rr){var Rr=rr.formatList,Cr=rr.generateConfig,pn=rr.locale,Vr=Object(c.useState)(null),br=Object(K.a)(Vr,2),In=br[0],Sr=br[1],gn=Object(c.useRef)(null);function $n(li){var Xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(gn.current),Xi){Sr(li);return}gn.current=requestAnimationFrame(function(){Sr(li)})}var qn=no(In,{formatList:Rr,generateConfig:Cr,locale:pn}),Gn=Object(K.a)(qn,2),mi=Gn[1];function ti(li){$n(li)}function ri(){var li=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;$n(null,li)}return Object(c.useEffect)(function(){ri(!0)},[qe]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(gn.current)}},[]),[mi,ti,ri]}function yo(qe){var rr,Rr=qe.prefixCls,Cr=Rr===void 0?"rc-picker":Rr,pn=qe.id,Vr=qe.tabIndex,br=qe.style,In=qe.className,Sr=qe.dropdownClassName,gn=qe.dropdownAlign,$n=qe.popupStyle,qn=qe.transitionName,Gn=qe.generateConfig,mi=qe.locale,ti=qe.inputReadOnly,ri=qe.allowClear,li=qe.autoFocus,Xi=qe.showTime,Pi=qe.picker,ga=Pi===void 0?"date":Pi,tr=qe.format,Lt=qe.use12Hours,yr=qe.value,xt=qe.defaultValue,Ut=qe.open,ur=qe.defaultOpen,Ct=qe.defaultOpenValue,dr=qe.suffixIcon,nr=qe.clearIcon,Wr=qe.disabled,En=qe.disabledDate,Cn=qe.placeholder,Nn=qe.getPopupContainer,oi=qe.pickerRef,Qn=qe.panelRender,Vi=qe.onChange,wi=qe.onOpenChange,Ea=qe.onFocus,aa=qe.onBlur,Ca=qe.onMouseDown,fa=qe.onMouseUp,ha=qe.onMouseEnter,qi=qe.onMouseLeave,Ma=qe.onContextMenu,za=qe.onClick,la=qe.direction,ao=qe.autoComplete,ka=ao===void 0?"off":ao,Ba=c.useRef(null),oo=ga==="date"&&!!Xi||ga==="time",ja=Ie(Je(tr,ga,Xi,Lt)),Pa=c.useRef(null),Fr=c.useRef(null),Oa=Object(U.a)(null,{value:yr,defaultValue:xt}),No=Object(K.a)(Oa,2),Po=No[0],Qo=No[1],ss=c.useState(Po),rs=Object(K.a)(ss,2),Ko=rs[0],$o=rs[1],Uo=c.useRef(null),Wo=Object(U.a)(!1,{value:Ut,defaultValue:ur,postState:function(fo){return Wr?!1:fo},onChange:function(fo){wi&&wi(fo),!fo&&Uo.current&&Uo.current.onClose&&Uo.current.onClose()}}),Go=Object(K.a)(Wo,2),Oo=Go[0],Ka=Go[1],Xa=no(Ko,{formatList:ja,generateConfig:Gn,locale:mi}),bo=Object(K.a)(Xa,2),Eo=bo[0],pt=bo[1],Nt=La({valueTexts:Eo,onTextChange:function(fo){var ts=Gn.locale.parse(mi.locale,fo,ja);ts&&(!En||!En(ts))&&$o(ts)}}),sn=Object(K.a)(Nt,3),Mn=sn[0],hi=sn[1],ot=sn[2],ae=function(fo){$o(fo),Qo(fo),Vi&&!Vt(Gn,Po,fo)&&Vi(fo,fo?Gn.locale.format(mi.locale,fo,ja[0]):"")},de=function(fo){if(Wr&&fo)return;Ka(fo)},ye=function(fo){return Oo&&Uo.current&&Uo.current.onKeyDown?Uo.current.onKeyDown(fo):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ke=function(){fa&&fa.apply(void 0,arguments),Ba.current&&(Ba.current.focus(),de(!0))},ct=ua({blurToCancel:oo,open:Oo,value:Mn,triggerOpen:de,forwardKeyDown:ye,isClickOutside:function(fo){return!me([Pa.current,Fr.current],fo)},onSubmit:function(){return En&&En(Ko)?!1:(ae(Ko),de(!1),ot(),!0)},onCancel:function(){de(!1),$o(Po),ot()},onFocus:Ea,onBlur:aa}),Bt=Object(K.a)(ct,2),Ir=Bt[0],Br=Bt[1],un=Br.focused,zn=Br.typing;c.useEffect(function(){Oo||($o(Po),!Eo.length||Eo[0]===""?hi(""):pt!==Mn&&ot())},[Oo,Eo]),c.useEffect(function(){Oo||ot()},[ga]),c.useEffect(function(){$o(Po)},[Po]),oi&&(oi.current={focus:function(){Ba.current&&Ba.current.focus()},blur:function(){Ba.current&&Ba.current.blur()}});var Rn=Object(F.a)(Object(F.a)({},qe),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Fn=c.createElement(Ur,Object.assign({},Rn,{generateConfig:Gn,className:T()(Object(H.a)({},"".concat(Cr,"-panel-focused"),!zn)),value:Ko,locale:mi,tabIndex:-1,onChange:$o,direction:la}));Qn&&(Fn=Qn(Fn));var Ai=c.createElement("div",{className:"".concat(Cr,"-panel-container"),onMouseDown:function(fo){fo.preventDefault()}},Fn),Di;dr&&(Di=c.createElement("span",{className:"".concat(Cr,"-suffix")},dr));var ya;ri&&Po&&!Wr&&(ya=c.createElement("span",{onMouseDown:function(fo){fo.preventDefault(),fo.stopPropagation()},onMouseUp:function(fo){fo.preventDefault(),fo.stopPropagation(),ae(null),de(!1)},className:"".concat(Cr,"-clear")},nr||c.createElement("span",{className:"".concat(Cr,"-clear-btn")})));var Ua=function(fo,ts){(ts==="submit"||ts!=="key"&&!oo)&&(ae(fo),de(!1))},to=la==="rtl"?"bottomRight":"bottomLeft",go=ca(Mn,{formatList:ja,generateConfig:Gn,locale:mi}),wo=Object(K.a)(go,3),qo=wo[0],Mo=wo[1],$i=wo[2];return c.createElement(q.Provider,{value:{operationRef:Uo,hideHeader:ga==="time",panelRef:Pa,onSelect:Ua,open:Oo,defaultOpenValue:Ct,onDateMouseEnter:Mo,onDateMouseLeave:$i}},c.createElement(Aa,{visible:Oo,popupElement:Ai,popupStyle:$n,prefixCls:Cr,dropdownClassName:Sr,dropdownAlign:gn,getPopupContainer:Nn,transitionName:qn,popupPlacement:to,direction:la},c.createElement("div",{className:T()(Cr,In,(rr={},Object(H.a)(rr,"".concat(Cr,"-disabled"),Wr),Object(H.a)(rr,"".concat(Cr,"-focused"),un),Object(H.a)(rr,"".concat(Cr,"-rtl"),la==="rtl"),rr)),style:br,onMouseDown:Ca,onMouseUp:Ke,onMouseEnter:ha,onMouseLeave:qi,onContextMenu:Ma,onClick:za},c.createElement("div",{className:T()("".concat(Cr,"-input"),Object(H.a)({},"".concat(Cr,"-input-placeholder"),!!qo)),ref:Fr},c.createElement("input",Object.assign({id:pn,tabIndex:Vr,disabled:Wr,readOnly:ti||!zn,value:qo||Mn,onChange:function(fo){hi(fo.target.value)},autoFocus:li,placeholder:Cn,ref:Ba,title:Mn},Ir,{size:ne(ga,ja[0])},rt(qe),{autoComplete:ka})),Di,ya))))}var lo=function(qe){Object(B.a)(Rr,qe);var rr=Object(R.a)(Rr);function Rr(){var Cr;return Object(N.a)(this,Rr),Cr=rr.apply(this,arguments),Cr.pickerRef=c.createRef(),Cr.focus=function(){Cr.pickerRef.current&&Cr.pickerRef.current.focus()},Cr.blur=function(){Cr.pickerRef.current&&Cr.pickerRef.current.blur()},Cr}return Object(M.a)(Rr,[{key:"render",value:function(){return c.createElement(yo,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rr}(c.Component),Na=lo;function ho(qe,rr,Rr){var Cr=qe.picker,pn=qe.locale,Vr=qe.selectedValue,br=qe.disabledDate,In=qe.disabled,Sr=qe.generateConfig,gn=Ge(Vr,0),$n=Ge(Vr,1);function qn(li){var Xi=Sr.getYear(li),Pi=Sr.locale.getWeek(pn.locale,li);return Xi*100+Pi}function Gn(li){var Xi=Sr.getYear(li),Pi=Sr.getMonth(li);return Xi*100+Pi}function mi(li){var Xi=Sr.getYear(li),Pi=$t(Sr,li);return Xi*10+Pi}var ti=c.useCallback(function(li){if(br&&br(li))return!0;if(In[1]&&$n)return!pr(Sr,li,$n)&&Sr.isAfter(li,$n);if(rr&&$n)switch(Cr){case"quarter":return mi(li)>mi($n);case"month":return Gn(li)>Gn($n);case"week":return qn(li)>qn($n);default:return!pr(Sr,li,$n)&&Sr.isAfter(li,$n)}return!1},[br,In[1],$n,rr]),ri=c.useCallback(function(li){if(br&&br(li))return!0;if(In[0]&&gn)return!pr(Sr,li,$n)&&Sr.isAfter(gn,li);if(Rr&&gn)switch(Cr){case"quarter":return mi(li)<mi(gn);case"month":return Gn(li)<Gn(gn);case"week":return qn(li)<qn(gn);default:return!pr(Sr,li,gn)&&Sr.isAfter(gn,li)}return!1},[br,In[0],gn,Rr]);return[ti,ri]}function Io(qe,rr,Rr,Cr){var pn=Tn(qe,Rr,Cr,1);function Vr(br){return br(qe,rr)?"same":br(pn,rr)?"closing":"far"}switch(Rr){case"year":return Vr(function(br,In){return zt(Cr,br,In)});case"quarter":case"month":return Vr(function(br,In){return lt(Cr,br,In)});default:return Vr(function(br,In){return cn(Cr,br,In)})}}function eo(qe,rr,Rr,Cr){var pn=Ge(qe,0),Vr=Ge(qe,1);if(rr===0)return pn;if(pn&&Vr){var br=Io(pn,Vr,Rr,Cr);switch(br){case"same":return pn;case"closing":return pn;default:return Tn(Vr,Rr,Cr,-1)}}return pn}function Lo(qe){var rr=qe.values,Rr=qe.picker,Cr=qe.defaultDates,pn=qe.generateConfig,Vr=c.useState(function(){return[Ge(Cr,0),Ge(Cr,1)]}),br=Object(K.a)(Vr,2),In=br[0],Sr=br[1],gn=c.useState(null),$n=Object(K.a)(gn,2),qn=$n[0],Gn=$n[1],mi=Ge(rr,0),ti=Ge(rr,1);function ri(Xi){return In[Xi]?In[Xi]:Ge(qn,Xi)||eo(rr,Xi,Rr,pn)||mi||ti||pn.getNow()}function li(Xi,Pi){if(Xi){var ga=vt(qn,Xi,Pi);Sr(vt(In,null,Pi)||[null,null]);var tr=(Pi+1)%2;Ge(rr,tr)||(ga=vt(ga,Xi,tr)),Gn(ga)}else(mi||ti)&&Gn(null)}return[ri,li]}function Va(qe,rr){return qe&&qe[0]&&qe[1]&&rr.isAfter(qe[0],qe[1])?[qe[1],qe[0]]:qe}function Bo(qe,rr,Rr,Cr){return qe||Cr&&Cr[rr]?!0:!!Rr[(rr+1)%2]}function Ho(qe){var rr,Rr,Cr,pn=qe.prefixCls,Vr=pn===void 0?"rc-picker":pn,br=qe.id,In=qe.style,Sr=qe.className,gn=qe.popupStyle,$n=qe.dropdownClassName,qn=qe.transitionName,Gn=qe.dropdownAlign,mi=qe.getPopupContainer,ti=qe.generateConfig,ri=qe.locale,li=qe.placeholder,Xi=qe.autoFocus,Pi=qe.disabled,ga=qe.format,tr=qe.picker,Lt=tr===void 0?"date":tr,yr=qe.showTime,xt=qe.use12Hours,Ut=qe.separator,ur=Ut===void 0?"~":Ut,Ct=qe.value,dr=qe.defaultValue,nr=qe.defaultPickerValue,Wr=qe.open,En=qe.defaultOpen,Cn=qe.disabledDate,Nn=qe.disabledTime,oi=qe.dateRender,Qn=qe.panelRender,Vi=qe.ranges,wi=qe.allowEmpty,Ea=qe.allowClear,aa=qe.suffixIcon,Ca=qe.clearIcon,fa=qe.pickerRef,ha=qe.inputReadOnly,qi=qe.mode,Ma=qe.renderExtraFooter,za=qe.onChange,la=qe.onOpenChange,ao=qe.onPanelChange,ka=qe.onCalendarChange,Ba=qe.onFocus,oo=qe.onBlur,ja=qe.onOk,Pa=qe.components,Fr=qe.order,Oa=qe.direction,No=qe.activePickerIndex,Po=qe.autoComplete,Qo=Po===void 0?"off":Po,ss=Lt==="date"&&!!yr||Lt==="time",rs=Object(c.useRef)({}),Ko=Object(c.useRef)(null),$o=Object(c.useRef)(null),Uo=Object(c.useRef)(null),Wo=Object(c.useRef)(null),Go=Object(c.useRef)(null),Oo=Object(c.useRef)(null),Ka=Object(c.useRef)(null),Xa=Ie(Je(ga,Lt,yr,xt)),bo=Object(U.a)(0,{value:No}),Eo=Object(K.a)(bo,2),pt=Eo[0],Nt=Eo[1],sn=Object(c.useRef)(null),Mn=c.useMemo(function(){return Array.isArray(Pi)?Pi:[Pi||!1,Pi||!1]},[Pi]),hi=Object(U.a)(null,{value:Ct,defaultValue:dr,postState:function(uo){return Lt==="time"&&!Fr?uo:Va(uo,ti)}}),ot=Object(K.a)(hi,2),ae=ot[0],de=ot[1],ye=Lo({values:ae,picker:Lt,defaultDates:nr,generateConfig:ti}),Ke=Object(K.a)(ye,2),ct=Ke[0],Bt=Ke[1],Ir=Object(U.a)(ae,{postState:function(uo){var Do=uo;if(Mn[0]&&Mn[1])return Do;for(var Xo=0;Xo<2;Xo+=1)Mn[Xo]&&!Ge(Do,Xo)&&!Ge(wi,Xo)&&(Do=vt(Do,ti.getNow(),Xo));return Do}}),Br=Object(K.a)(Ir,2),un=Br[0],zn=Br[1],Rn=Object(U.a)([Lt,Lt],{value:qi}),Fn=Object(K.a)(Rn,2),Ai=Fn[0],Di=Fn[1];Object(c.useEffect)(function(){Di([Lt,Lt])},[Lt]);var ya=function(uo,Do){Di(uo),ao&&ao(Do,uo)},Ua=ho({picker:Lt,selectedValue:un,locale:ri,disabled:Mn,disabledDate:Cn,generateConfig:ti},rs.current[1],rs.current[0]),to=Object(K.a)(Ua,2),go=to[0],wo=to[1],qo=Object(U.a)(!1,{value:Wr,defaultValue:En,postState:function(uo){return Mn[pt]?!1:uo},onChange:function(uo){la&&la(uo),!uo&&sn.current&&sn.current.onClose&&sn.current.onClose()}}),Mo=Object(K.a)(qo,2),$i=Mo[0],To=Mo[1],fo=$i&&pt===0,ts=$i&&pt===1,Jo=Object(c.useState)(0),zo=Object(K.a)(Jo,2),is=zo[0],Rs=zo[1];Object(c.useEffect)(function(){!$i&&Ko.current&&Rs(Ko.current.offsetWidth)},[$i]);var gs=c.useRef();function ps(as,uo){if(as)clearTimeout(gs.current),rs.current[uo]=!0,Nt(uo),To(as),$i||Bt(null,uo);else if(pt===uo){To(as);var Do=rs.current;gs.current=setTimeout(function(){Do===rs.current&&(rs.current={})})}}function Ps(as){ps(!0,as),setTimeout(function(){var uo=[Oo,Ka][as];uo.current&&uo.current.focus()},0)}function Es(as,uo){var Do=as,Xo=Ge(Do,0),Ls=Ge(Do,1);Xo&&Ls&&ti.isAfter(Xo,Ls)&&(Lt==="week"&&!Zt(ti,ri.locale,Xo,Ls)||Lt==="quarter"&&!cr(ti,Xo,Ls)||Lt!=="week"&&Lt!=="quarter"&&Lt!=="time"&&!pr(ti,Xo,Ls)?(uo===0?(Do=[Xo,null],Ls=null):(Xo=null,Do=[null,Ls]),rs.current=Object(H.a)({},uo,!0)):(Lt!=="time"||Fr!==!1)&&(Do=Va(Do,ti))),zn(Do);var zl=Do&&Do[0]?ti.locale.format(ri.locale,Do[0],Xa[0]):"",Rl=Do&&Do[1]?ti.locale.format(ri.locale,Do[1],Xa[0]):"";if(ka){var ll={range:uo===0?"start":"end"};ka(Do,[zl,Rl],ll)}var Tl=Bo(Xo,0,Mn,wi),Ml=Bo(Ls,1,Mn,wi),Jl=Do===null||Tl&&Ml;Jl&&(de(Do),za&&(!Vt(ti,Ge(ae,0),Xo)||!Vt(ti,Ge(ae,1),Ls))&&za(Do,[zl,Rl]));var Ys=null;uo===0&&!Mn[1]?Ys=1:uo===1&&!Mn[0]&&(Ys=0),Ys!==null&&Ys!==pt&&(!rs.current[Ys]||!Ge(Do,Ys))&&Ge(Do,uo)?Ps(Ys):ps(!1,uo)}var Vs=function(uo){return $i&&sn.current&&sn.current.onKeyDown?sn.current.onKeyDown(uo):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ks={formatList:Xa,generateConfig:ti,locale:ri},Gs=no(Ge(un,0),Ks),ws=Object(K.a)(Gs,2),Os=ws[0],$s=ws[1],nl=no(Ge(un,1),Ks),il=Object(K.a)(nl,2),hl=il[0],Nl=il[1],Al=function(uo,Do){var Xo=ti.locale.parse(ri.locale,uo,Xa),Ls=Do===0?go:wo;Xo&&!Ls(Xo)&&(zn(vt(un,Xo,Do)),Bt(Xo,Do))},yl=La({valueTexts:Os,onTextChange:function(uo){return Al(uo,0)}}),al=Object(K.a)(yl,3),Ms=al[0],Ws=al[1],Is=al[2],bl=La({valueTexts:hl,onTextChange:function(uo){return Al(uo,1)}}),wl=Object(K.a)(bl,3),ol=wl[0],el=wl[1],ms=wl[2],Ss=Object(c.useState)(null),As=Object(K.a)(Ss,2),Ts=As[0],Us=As[1],_l=Object(c.useState)(null),Il=Object(K.a)(_l,2),Sl=Il[0],Zl=Il[1],iu=ca(Ms,{formatList:Xa,generateConfig:ti,locale:ri}),tl=Object(K.a)(iu,3),xl=tl[0],Ns=tl[1],Pl=tl[2],uu=ca(ol,{formatList:Xa,generateConfig:ti,locale:ri}),$l=Object(K.a)(uu,3),au=$l[0],cu=$l[1],Xs=$l[2],_s=function(uo){Zl(vt(un,uo,pt)),pt===0?Ns(uo):cu(uo)},fl=function(){Zl(vt(un,null,pt)),pt===0?Pl():Xs()},ql=function(uo,Do){return{blurToCancel:ss,forwardKeyDown:Vs,onBlur:oo,isClickOutside:function(Ls){return!me([$o.current,Uo.current,Wo.current],Ls)},onFocus:function(Ls){Nt(uo),Ba&&Ba(Ls)},triggerOpen:function(Ls){ps(Ls,uo)},onSubmit:function(){Es(un,uo),Do()},onCancel:function(){ps(!1,uo),zn(ae),Do()}}},yu=ua(Object(F.a)(Object(F.a)({},ql(0,Is)),{},{open:fo,value:Ms})),du=Object(K.a)(yu,2),Ll=du[0],Xl=du[1],Ou=Xl.focused,hu=Xl.typing,bu=ua(Object(F.a)(Object(F.a)({},ql(1,ms)),{},{open:ts,value:ol})),Dl=Object(K.a)(bu,2),Fl=Dl[0],jl=Dl[1],Hl=jl.focused,Fs=jl.typing,rl=function(uo){!$i&&!Oo.current.contains(uo.target)&&!Ka.current.contains(uo.target)&&(Mn[0]?Mn[1]||Ps(1):Ps(0))},Kl=function(uo){$i&&(Ou||Hl)&&!Oo.current.contains(uo.target)&&!Ka.current.contains(uo.target)&&uo.preventDefault()},sl=ae&&ae[0]?ti.locale.format(ri.locale,ae[0],"YYYYMMDDHHmmss"):"",Yl=ae&&ae[1]?ti.locale.format(ri.locale,ae[1],"YYYYMMDDHHmmss"):"";Object(c.useEffect)(function(){$i||(zn(ae),!Os.length||Os[0]===""?Ws(""):$s!==Ms&&Is(),!hl.length||hl[0]===""?el(""):Nl!==ol&&ms())},[$i,Os,hl]),Object(c.useEffect)(function(){zn(ae)},[sl,Yl]),fa&&(fa.current={focus:function(){Oo.current&&Oo.current.focus()},blur:function(){Oo.current&&Oo.current.blur(),Ka.current&&Ka.current.blur()}});var _u=Object.keys(Vi||{}),wu=_u.map(function(as){var uo=Vi[as],Do=typeof uo=="function"?uo():uo;return{label:as,onClick:function(){Es(Do,null),ps(!1,pt)},onMouseEnter:function(){Us(Do)},onMouseLeave:function(){Us(null)}}});function Bl(){var as=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,uo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Do=null;$i&&Sl&&Sl[0]&&Sl[1]&&ti.isAfter(Sl[1],Sl[0])&&(Do=Sl);var Xo=yr;if(yr&&Object(V.a)(yr)==="object"&&yr.defaultValue){var Ls=yr.defaultValue;Xo=Object(F.a)(Object(F.a)({},yr),{},{defaultValue:Ge(Ls,pt)||void 0})}var zl=null;return oi&&(zl=function(ll,Tl){return oi(ll,Tl,{range:pt?"end":"start"})}),c.createElement(ei.Provider,{value:{inRange:!0,panelPosition:as,rangedValue:Ts||un,hoverRangedValue:Do}},c.createElement(Ur,Object.assign({},qe,uo,{dateRender:zl,showTime:Xo,mode:Ai[pt],generateConfig:ti,style:void 0,direction:Oa,disabledDate:pt===0?go:wo,disabledTime:function(ll){return Nn?Nn(ll,pt===0?"start":"end"):!1},className:T()(Object(H.a)({},"".concat(Vr,"-panel-focused"),pt===0?!hu:!Fs)),value:Ge(un,pt),locale:ri,tabIndex:-1,onPanelChange:function(ll,Tl){ya(vt(Ai,Tl,pt),vt(un,ll,pt));var Ml=ll;as==="right"&&Ai[pt]===Tl&&(Ml=Tn(Ml,Tl,ti,-1)),Bt(Ml,pt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var El=0,Ql=0;pt&&Uo.current&&Go.current&&$o.current&&(El=Uo.current.offsetWidth+Go.current.offsetWidth,$o.current.offsetWidth&&El>$o.current.offsetWidth&&(Ql=El));var Iu=Oa==="rtl"?{right:El}:{left:El};function Lu(){var as,uo=or(Vr,Ai[pt],Ma),Do=vn({prefixCls:Vr,components:Pa,needConfirmButton:ss,okDisabled:!Ge(un,pt)||Cn&&Cn(un[pt]),locale:ri,rangeList:wu,onOk:function(){Ge(un,pt)&&(Es(un,pt),ja&&ja(un))}});if(Lt!=="time"&&!yr){var Xo=ct(pt),Ls=Tn(Xo,Lt,ti),zl=Ai[pt],Rl=zl===Lt,ll=Bl(Rl?"left":!1,{pickerValue:Xo,onPickerValueChange:function(Ys){Bt(Ys,pt)}}),Tl=Bl("right",{pickerValue:Ls,onPickerValueChange:function(Ys){Bt(Tn(Ys,Lt,ti,-1),pt)}});Oa==="rtl"?as=c.createElement(c.Fragment,null,Tl,Rl&&ll):as=c.createElement(c.Fragment,null,ll,Rl&&Tl)}else as=Bl();var Ml=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(Vr,"-panels")},as),(uo||Do)&&c.createElement("div",{className:"".concat(Vr,"-footer")},uo,Do));return Qn&&(Ml=Qn(Ml)),c.createElement("div",{className:"".concat(Vr,"-panel-container"),style:{marginLeft:Ql},ref:$o,onMouseDown:function(Ys){Ys.preventDefault()}},Ml)}var ou=c.createElement("div",{className:T()("".concat(Vr,"-range-wrapper"),"".concat(Vr,"-").concat(Lt,"-range-wrapper")),style:{minWidth:is}},c.createElement("div",{className:"".concat(Vr,"-range-arrow"),style:Iu}),Lu()),eu;aa&&(eu=c.createElement("span",{className:"".concat(Vr,"-suffix")},aa));var su;Ea&&(Ge(ae,0)&&!Mn[0]||Ge(ae,1)&&!Mn[1])&&(su=c.createElement("span",{onMouseDown:function(uo){uo.preventDefault(),uo.stopPropagation()},onMouseUp:function(uo){uo.preventDefault(),uo.stopPropagation();var Do=ae;Mn[0]||(Do=vt(Do,null,0)),Mn[1]||(Do=vt(Do,null,1)),Es(Do,null),ps(!1,pt)},className:"".concat(Vr,"-clear")},Ca||c.createElement("span",{className:"".concat(Vr,"-clear-btn")})));var Ul={size:ne(Lt,Xa[0])},fu=0,pl=0;Uo.current&&Wo.current&&Go.current&&(pt===0?pl=Uo.current.offsetWidth:(fu=El,pl=Wo.current.offsetWidth));var ml=Oa==="rtl"?{right:fu}:{left:fu},Wl=function(uo,Do){var Xo=vt(un,uo,pt);Do==="submit"||Do!=="key"&&!ss?(Es(Xo,pt),pt===0?Pl():Xs()):zn(Xo)};return c.createElement(q.Provider,{value:{operationRef:sn,hideHeader:Lt==="time",onDateMouseEnter:_s,onDateMouseLeave:fl,hideRanges:!0,onSelect:Wl,open:$i}},c.createElement(Aa,{visible:$i,popupElement:ou,popupStyle:gn,prefixCls:Vr,dropdownClassName:$n,dropdownAlign:Gn,getPopupContainer:mi,transitionName:qn,range:!0,direction:Oa},c.createElement("div",Object.assign({ref:Ko,className:T()(Vr,"".concat(Vr,"-range"),Sr,(rr={},Object(H.a)(rr,"".concat(Vr,"-disabled"),Mn[0]&&Mn[1]),Object(H.a)(rr,"".concat(Vr,"-focused"),pt===0?Ou:Hl),Object(H.a)(rr,"".concat(Vr,"-rtl"),Oa==="rtl"),rr)),style:In,onClick:rl,onMouseDown:Kl},rt(qe)),c.createElement("div",{className:T()("".concat(Vr,"-input"),(Rr={},Object(H.a)(Rr,"".concat(Vr,"-input-active"),pt===0),Object(H.a)(Rr,"".concat(Vr,"-input-placeholder"),!!xl),Rr)),ref:Uo},c.createElement("input",Object.assign({id:br,disabled:Mn[0],readOnly:ha||!hu,value:xl||Ms,onChange:function(uo){Ws(uo.target.value)},autoFocus:Xi,placeholder:Ge(li,0)||"",ref:Oo},Ll,Ul,{autoComplete:Qo}))),c.createElement("div",{className:"".concat(Vr,"-range-separator"),ref:Go},ur),c.createElement("div",{className:T()("".concat(Vr,"-input"),(Cr={},Object(H.a)(Cr,"".concat(Vr,"-input-active"),pt===1),Object(H.a)(Cr,"".concat(Vr,"-input-placeholder"),!!au),Cr)),ref:Wo},c.createElement("input",Object.assign({disabled:Mn[1],readOnly:ha||!Fs,value:au||ol,onChange:function(uo){el(uo.target.value)},placeholder:Ge(li,1)||"",ref:Ka},Fl,Ul,{autoComplete:Qo}))),c.createElement("div",{className:"".concat(Vr,"-active-bar"),style:Object(F.a)(Object(F.a)({},ml),{},{width:pl,position:"absolute"})}),eu,su)))}var Pr=function(qe){Object(B.a)(Rr,qe);var rr=Object(R.a)(Rr);function Rr(){var Cr;return Object(N.a)(this,Rr),Cr=rr.apply(this,arguments),Cr.pickerRef=c.createRef(),Cr.focus=function(){Cr.pickerRef.current&&Cr.pickerRef.current.focus()},Cr.blur=function(){Cr.pickerRef.current&&Cr.pickerRef.current.blur()},Cr}return Object(M.a)(Rr,[{key:"render",value:function(){return c.createElement(Ho,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Rr}(c.Component),An=Pr,Pn=Na,qr=d("61s2");function er(qe,rr,Rr){return Rr!==void 0?Rr:qe==="year"&&rr.lang.yearPlaceholder?rr.lang.yearPlaceholder:qe==="quarter"&&rr.lang.quarterPlaceholder?rr.lang.quarterPlaceholder:qe==="month"&&rr.lang.monthPlaceholder?rr.lang.monthPlaceholder:qe==="week"&&rr.lang.weekPlaceholder?rr.lang.weekPlaceholder:qe==="time"&&rr.timePickerLocale.placeholder?rr.timePickerLocale.placeholder:rr.lang.placeholder}function Dr(qe,rr,Rr){return Rr!==void 0?Rr:qe==="year"&&rr.lang.yearPlaceholder?rr.lang.rangeYearPlaceholder:qe==="month"&&rr.lang.monthPlaceholder?rr.lang.rangeMonthPlaceholder:qe==="week"&&rr.lang.weekPlaceholder?rr.lang.rangeWeekPlaceholder:qe==="time"&&rr.timePickerLocale.placeholder?rr.timePickerLocale.rangePlaceholder:rr.lang.rangePlaceholder}var lr=d("uaoM"),on=d("H84U"),fn=d("YMnH"),Wn=d("3Nzz"),Dn=function(qe,rr){var Rr={};for(var Cr in qe)Object.prototype.hasOwnProperty.call(qe,Cr)&&rr.indexOf(Cr)<0&&(Rr[Cr]=qe[Cr]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pn=0,Cr=Object.getOwnPropertySymbols(qe);pn<Cr.length;pn++)rr.indexOf(Cr[pn])<0&&Object.prototype.propertyIsEnumerable.call(qe,Cr[pn])&&(Rr[Cr[pn]]=qe[Cr[pn]]);return Rr};function Jn(qe){function rr(Sr,gn){var $n=function(qn){g()(mi,qn);var Gn=y()(mi);function mi(ti){var ri;return l()(this,mi),ri=Gn.call(this,ti),ri.pickerRef=c.createRef(),ri.focus=function(){ri.pickerRef.current&&ri.pickerRef.current.focus()},ri.blur=function(){ri.pickerRef.current&&ri.pickerRef.current.blur()},ri.getDefaultLocale=function(){var li=ri.props.locale,Xi=h()(h()({},qr.a),li);return Xi.lang=h()(h()({},Xi.lang),(li||{}).lang),Xi},ri.renderPicker=function(li){var Xi=ri.context,Pi=Xi.getPrefixCls,ga=Xi.direction,tr=Xi.getPopupContainer,Lt=ri.props,yr=Lt.prefixCls,xt=Lt.getPopupContainer,Ut=Lt.className,ur=Lt.size,Ct=Lt.bordered,dr=Ct===void 0?!0:Ct,nr=Lt.placeholder,Wr=Dn(Lt,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),En=ri.props,Cn=En.format,Nn=En.showTime,oi=Pi("picker",yr),Qn={showToday:!0},Vi={};Sr&&(Vi.picker=Sr);var wi=Sr||ri.props.picker;return Vi=h()(h()(h()({},Vi),Nn?io(h()({format:Cn,picker:wi},Nn)):{}),wi==="time"?io(h()(h()({format:Cn},ri.props),{picker:wi})):{}),c.createElement(Wn.b.Consumer,null,function(Ea){var aa,Ca=ur||Ea;return c.createElement(Pn,h()({ref:ri.pickerRef,placeholder:er(wi,li,nr),suffixIcon:wi==="time"?c.createElement(I.a,null):c.createElement(b.a,null),clearIcon:c.createElement(D.a,null),allowClear:!0,transitionName:"slide-up"},Qn,Wr,Vi,{locale:li.lang,className:T()(Ut,(aa={},t()(aa,"".concat(oi,"-").concat(Ca),Ca),t()(aa,"".concat(oi,"-borderless"),!dr),aa)),prefixCls:oi,getPopupContainer:xt||tr,generateConfig:qe,prevIcon:c.createElement("span",{className:"".concat(oi,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(oi,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(oi,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(oi,"-super-next-icon")}),components:Ha,direction:ga}))})},Object(lr.a)(Sr!=="quarter",gn,"DatePicker.".concat(gn," is legacy usage. Please use DatePicker[picker='").concat(Sr,"'] directly.")),ri}return f()(mi,[{key:"render",value:function(){return c.createElement(fn.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),mi}(c.Component);return $n.contextType=on.b,gn&&($n.displayName=gn),$n}var Rr=rr(),Cr=rr("week","WeekPicker"),pn=rr("month","MonthPicker"),Vr=rr("year","YearPicker"),br=rr("time","TimePicker"),In=rr("quarter","QuarterPicker");return{DatePicker:Rr,WeekPicker:Cr,MonthPicker:pn,YearPicker:Vr,TimePicker:br,QuarterPicker:In}}var Ti=d("8ISB"),xi=d.n(Ti),Bi=function(qe,rr){var Rr={};for(var Cr in qe)Object.prototype.hasOwnProperty.call(qe,Cr)&&rr.indexOf(Cr)<0&&(Rr[Cr]=qe[Cr]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pn=0,Cr=Object.getOwnPropertySymbols(qe);pn<Cr.length;pn++)rr.indexOf(Cr[pn])<0&&Object.prototype.propertyIsEnumerable.call(qe,Cr[pn])&&(Rr[Cr[pn]]=qe[Cr[pn]]);return Rr};function ea(qe){var rr=function(Rr){g()(pn,Rr);var Cr=y()(pn);function pn(){var Vr;return l()(this,pn),Vr=Cr.apply(this,arguments),Vr.pickerRef=c.createRef(),Vr.focus=function(){Vr.pickerRef.current&&Vr.pickerRef.current.focus()},Vr.blur=function(){Vr.pickerRef.current&&Vr.pickerRef.current.blur()},Vr.getDefaultLocale=function(){var br=Vr.props.locale,In=h()(h()({},qr.a),br);return In.lang=h()(h()({},In.lang),(br||{}).lang),In},Vr.renderPicker=function(br){var In=Vr.context,Sr=In.getPrefixCls,gn=In.direction,$n=In.getPopupContainer,qn=Vr.props,Gn=qn.prefixCls,mi=qn.getPopupContainer,ti=qn.className,ri=qn.size,li=qn.bordered,Xi=li===void 0?!0:li,Pi=qn.placeholder,ga=Bi(qn,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),tr=Vr.props,Lt=tr.format,yr=tr.showTime,xt=tr.picker,Ut=Sr("picker",Gn),ur={};return ur=h()(h()(h()({},ur),yr?io(h()({format:Lt,picker:xt},yr)):{}),xt==="time"?io(h()(h()({format:Lt},Vr.props),{picker:xt})):{}),c.createElement(Wn.b.Consumer,null,function(Ct){var dr,nr=ri||Ct;return c.createElement(An,h()({separator:c.createElement("span",{"aria-label":"to",className:"".concat(Ut,"-separator")},c.createElement(xi.a,null)),ref:Vr.pickerRef,placeholder:Dr(xt,br,Pi),suffixIcon:xt==="time"?c.createElement(I.a,null):c.createElement(b.a,null),clearIcon:c.createElement(D.a,null),allowClear:!0,transitionName:"slide-up"},ga,ur,{className:T()(ti,(dr={},t()(dr,"".concat(Ut,"-").concat(nr),nr),t()(dr,"".concat(Ut,"-borderless"),!Xi),dr)),locale:br.lang,prefixCls:Ut,getPopupContainer:mi||$n,generateConfig:qe,prevIcon:c.createElement("span",{className:"".concat(Ut,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(Ut,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(Ut,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(Ut,"-super-next-icon")}),components:Ha,direction:gn}))})},Vr}return f()(pn,[{key:"render",value:function(){return c.createElement(fn.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),pn}(c.Component);return rr.contextType=on.b,rr}var Ha={button:o,rangeItem:e};function Qa(qe){return qe?Array.isArray(qe)?qe:[qe]:[]}function io(qe){var rr=qe.format,Rr=qe.picker,Cr=qe.showHour,pn=qe.showMinute,Vr=qe.showSecond,br=qe.use12Hours,In=Qa(rr)[0],Sr=h()({},qe);return In&&(!In.includes("s")&&Vr===void 0&&(Sr.showSecond=!1),!In.includes("m")&&pn===void 0&&(Sr.showMinute=!1),!In.includes("H")&&!In.includes("h")&&Cr===void 0&&(Sr.showHour=!1),(In.includes("a")||In.includes("A"))&&br===void 0&&(Sr.use12Hours=!0)),Rr==="time"?Sr:{showTime:Sr}}function Ja(qe){var rr=Jn(qe),Rr=rr.DatePicker,Cr=rr.WeekPicker,pn=rr.MonthPicker,Vr=rr.YearPicker,br=rr.TimePicker,In=rr.QuarterPicker,Sr=ea(qe),gn=Rr;return gn.WeekPicker=Cr,gn.MonthPicker=pn,gn.YearPicker=Vr,gn.RangePicker=Sr,gn.TimePicker=br,gn.QuarterPicker=In,gn}var Ga=Ja,Ra=Ga(w),ia=P.a=Ra},"+lIL":function(j,P,d){var O=d("ProS");d("/ry/"),d("3OrL");var E=d("L5E0"),C=d("7Phj");O.registerVisual(E),O.registerLayout(C)},"+nKL":function(j,P,d){"use strict";var O=d("q1tI"),E=d("TSYQ"),C=d.n(E),v=d("t23M");function w(Z,J){var je=Object.keys(Z);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(Z);J&&(Re=Re.filter(function(oe){return Object.getOwnPropertyDescriptor(Z,oe).enumerable})),je.push.apply(je,Re)}return je}function m(Z){for(var J=1;J<arguments.length;J++){var je=arguments[J]!=null?arguments[J]:{};J%2?w(Object(je),!0).forEach(function(Re){h(Z,Re,je[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(je)):w(Object(je)).forEach(function(Re){Object.defineProperty(Z,Re,Object.getOwnPropertyDescriptor(je,Re))})}return Z}function h(Z,J,je){return J in Z?Object.defineProperty(Z,J,{value:je,enumerable:!0,configurable:!0,writable:!0}):Z[J]=je,Z}var c=O.forwardRef(function(Z,J){var je=Z.height,Re=Z.offset,oe=Z.children,yt=Z.prefixCls,zt=Z.onInnerResize,lt={},$t={display:"flex",flexDirection:"column"};return Re!==void 0&&(lt={height:je,position:"relative",overflow:"hidden"},$t=m(m({},$t),{},{transform:"translateY(".concat(Re,"px)"),position:"absolute",left:0,right:0,top:0})),O.createElement("div",{style:lt},O.createElement(v.a,{onResize:function(cn){var pr=cn.offsetHeight;pr&&zt&&zt()}},O.createElement("div",{style:$t,className:C()(h({},"".concat(yt,"-holder-inner"),yt)),ref:J},oe)))});c.displayName="Filler";var i=c,r=d("wgJM");function o(Z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(je){return typeof je}:o=function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},o(Z)}function n(Z,J,je){return J in Z?Object.defineProperty(Z,J,{value:je,enumerable:!0,configurable:!0,writable:!0}):Z[J]=je,Z}function e(Z,J){if(!(Z instanceof J))throw new TypeError("Cannot call a class as a function")}function s(Z,J){for(var je=0;je<J.length;je++){var Re=J[je];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(Z,Re.key,Re)}}function t(Z,J,je){return J&&s(Z.prototype,J),je&&s(Z,je),Z}function a(Z,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J&&l(Z,J)}function l(Z,J){return l=Object.setPrototypeOf||function(Re,oe){return Re.__proto__=oe,Re},l(Z,J)}function u(Z){var J=g();return function(){var Re=A(Z),oe;if(J){var yt=A(this).constructor;oe=Reflect.construct(Re,arguments,yt)}else oe=Re.apply(this,arguments);return f(this,oe)}}function f(Z,J){if(J&&(o(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(Z)}function p(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function g(){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(Z){return!1}}function A(Z){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(je){return je.__proto__||Object.getPrototypeOf(je)},A(Z)}var y=20;function x(Z){return"touches"in Z?Z.touches[0].pageY:Z.pageY}var T=function(Z){a(je,Z);var J=u(je);function je(){var Re;e(this,je);for(var oe=arguments.length,yt=new Array(oe),zt=0;zt<oe;zt++)yt[zt]=arguments[zt];return Re=J.call.apply(J,[this].concat(yt)),Re.moveRaf=null,Re.scrollbarRef=O.createRef(),Re.thumbRef=O.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(lt){lt.preventDefault()},Re.onContainerMouseDown=function(lt){lt.stopPropagation(),lt.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),r.a.cancel(Re.moveRaf)},Re.onMouseDown=function(lt){var $t=Re.props.onStartMove;Re.setState({dragging:!0,pageY:x(lt),startTop:Re.getTop()}),$t(),Re.patchEvents(),lt.stopPropagation(),lt.preventDefault()},Re.onMouseMove=function(lt){var $t=Re.state,cr=$t.dragging,cn=$t.pageY,pr=$t.startTop,gr=Re.props.onScroll;if(r.a.cancel(Re.moveRaf),cr){var Zt=x(lt)-cn,Vt=pr+Zt,mt=Re.getEnableScrollRange(),Yr=Re.getEnableHeightRange(),Tn=Yr?Vt/Yr:0,Hn=Math.ceil(Tn*mt);Re.moveRaf=Object(r.a)(function(){gr(Hn)})}},Re.onMouseUp=function(){var lt=Re.props.onStopMove;Re.setState({dragging:!1}),lt(),Re.removeEvents()},Re.getSpinHeight=function(){var lt=Re.props,$t=lt.height,cr=lt.count,cn=$t/cr*10;return cn=Math.max(cn,y),cn=Math.min(cn,$t/2),Math.floor(cn)},Re.getEnableScrollRange=function(){var lt=Re.props,$t=lt.scrollHeight,cr=lt.height;return $t-cr||0},Re.getEnableHeightRange=function(){var lt=Re.props.height,$t=Re.getSpinHeight();return lt-$t||0},Re.getTop=function(){var lt=Re.props.scrollTop,$t=Re.getEnableScrollRange(),cr=Re.getEnableHeightRange();if(lt===0||$t===0)return 0;var cn=lt/$t;return cn*cr},Re.showScroll=function(){var lt=Re.props,$t=lt.height,cr=lt.scrollHeight;return cr>$t},Re}return t(je,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(oe){oe.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var oe=this.state,yt=oe.dragging,zt=oe.visible,lt=this.props.prefixCls,$t=this.getSpinHeight(),cr=this.getTop(),cn=this.showScroll(),pr=cn&&zt;return O.createElement("div",{ref:this.scrollbarRef,className:C()("".concat(lt,"-scrollbar"),n({},"".concat(lt,"-scrollbar-show"),cn)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:pr?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},O.createElement("div",{ref:this.thumbRef,className:C()("".concat(lt,"-scrollbar-thumb"),n({},"".concat(lt,"-scrollbar-thumb-moving"),yt)),style:{width:"100%",height:$t,top:cr,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),je}(O.Component);function S(Z){var J=Z.children,je=Z.setRef,Re=O.useCallback(function(oe){je(oe)},[]);return O.cloneElement(J,{ref:Re})}function b(Z,J,je,Re,oe,yt){var zt=yt.getKey;return Z.slice(J,je+1).map(function(lt,$t){var cr=J+$t,cn=oe(lt,cr,{}),pr=zt(lt);return O.createElement(S,{key:pr,setRef:function(Zt){return Re(lt,Zt)}},cn)})}var _=d("m+aA");function I(Z,J){if(!(Z instanceof J))throw new TypeError("Cannot call a class as a function")}function L(Z,J){for(var je=0;je<J.length;je++){var Re=J[je];Re.enumerable=Re.enumerable||!1,Re.configurable=!0,"value"in Re&&(Re.writable=!0),Object.defineProperty(Z,Re.key,Re)}}function D(Z,J,je){return J&&L(Z.prototype,J),je&&L(Z,je),Z}var N=function(){function Z(){I(this,Z),this.maps=void 0,this.maps=Object.create(null)}return D(Z,[{key:"set",value:function(je,Re){this.maps[je]=Re}},{key:"get",value:function(je){return this.maps[je]}}]),Z}(),M=N;function B(Z,J){return U(Z)||K(Z,J)||H(Z,J)||R()}function R(){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 H(Z,J){if(!Z)return;if(typeof Z=="string")return F(Z,J);var je=Object.prototype.toString.call(Z).slice(8,-1);if(je==="Object"&&Z.constructor&&(je=Z.constructor.name),je==="Map"||je==="Set")return Array.from(Z);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return F(Z,J)}function F(Z,J){(J==null||J>Z.length)&&(J=Z.length);for(var je=0,Re=new Array(J);je<J;je++)Re[je]=Z[je];return Re}function K(Z,J){var je=Z==null?null:typeof Symbol!="undefined"&&Z[Symbol.iterator]||Z["@@iterator"];if(je==null)return;var Re=[],oe=!0,yt=!1,zt,lt;try{for(je=je.call(Z);!(oe=(zt=je.next()).done)&&!(Re.push(zt.value),J&&Re.length===J);oe=!0);}catch($t){yt=!0,lt=$t}finally{try{!oe&&je.return!=null&&je.return()}finally{if(yt)throw lt}}return Re}function U(Z){if(Array.isArray(Z))return Z}function V(Z,J,je){var Re=O.useState(0),oe=B(Re,2),yt=oe[0],zt=oe[1],lt=Object(O.useRef)(new Map),$t=Object(O.useRef)(new M),cr=Object(O.useRef)(0);function cn(){cr.current+=1;var gr=cr.current;Promise.resolve().then(function(){if(gr!==cr.current)return;lt.current.forEach(function(Zt,Vt){if(Zt&&Zt.offsetParent){var mt=Object(_.a)(Zt),Yr=mt.offsetHeight;$t.current.get(Vt)!==Yr&&$t.current.set(Vt,mt.offsetHeight)}}),zt(function(Zt){return Zt+1})})}function pr(gr,Zt){var Vt=Z(gr),mt=lt.current.get(Vt);Zt?(lt.current.set(Vt,Zt),cn()):lt.current.delete(Vt),!mt!==!Zt&&(Zt?J==null||J(gr):je==null||je(gr))}return[pr,cn,$t.current,yt]}function z(Z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(je){return typeof je}:z=function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},z(Z)}function Y(Z,J,je,Re,oe,yt,zt,lt){var $t=O.useRef();return function(cr){if(cr==null){lt();return}if(r.a.cancel($t.current),typeof cr=="number")zt(cr);else if(cr&&z(cr)==="object"){var cn,pr=cr.align;"index"in cr?cn=cr.index:cn=J.findIndex(function(mt){return oe(mt)===cr.key});var gr=cr.offset,Zt=gr===void 0?0:gr,Vt=function mt(Yr,Tn){if(Yr<0||!Z.current)return;var Hn=Z.current.clientHeight,ei=!1,ji=Tn;if(Hn){for(var Ln=Tn||pr,Vn=0,kt=0,wt=0,Te=Math.min(J.length,cn),xe=0;xe<=Te;xe+=1){var Ce=oe(J[xe]);kt=Vn;var Ye=je.get(Ce);wt=kt+(Ye===void 0?Re:Ye),Vn=wt,xe===cn&&Ye===void 0&&(ei=!0)}var it=null;switch(Ln){case"top":it=kt-Zt;break;case"bottom":it=wt-Hn+Zt;break;default:{var dt=Z.current.scrollTop,_t=dt+Hn;kt<dt?ji="top":wt>_t&&(ji="bottom")}}it!==null&&it!==Z.current.scrollTop&&zt(it)}$t.current=Object(r.a)(function(){ei&&yt(),mt(Yr-1,ji)})};Vt(3)}}}function q(Z,J,je,Re){var oe=je-Z,yt=J-je,zt=Math.min(oe,yt)*2;if(Re<=zt){var lt=Math.floor(Re/2);return Re%2?je+lt+1:je-lt}return oe>yt?je-(Re-yt):je+(Re-oe)}function ce(Z,J,je){var Re=Z.length,oe=J.length,yt,zt;if(Re===0&&oe===0)return null;Re<oe?(yt=Z,zt=J):(yt=J,zt=Z);var lt={__EMPTY_ITEM__:!0};function $t(Vt){return Vt!==void 0?je(Vt):lt}for(var cr=null,cn=Math.abs(Re-oe)!==1,pr=0;pr<zt.length;pr+=1){var gr=$t(yt[pr]),Zt=$t(zt[pr]);if(gr!==Zt){cr=pr,cn=cn||gr!==$t(zt[pr+1]);break}}return cr===null?null:{index:cr,multiple:cn}}function ie(Z,J){return ge(Z)||He(Z,J)||Ee(Z,J)||ve()}function ve(){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 Ee(Z,J){if(!Z)return;if(typeof Z=="string")return Le(Z,J);var je=Object.prototype.toString.call(Z).slice(8,-1);if(je==="Object"&&Z.constructor&&(je=Z.constructor.name),je==="Map"||je==="Set")return Array.from(Z);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return Le(Z,J)}function Le(Z,J){(J==null||J>Z.length)&&(J=Z.length);for(var je=0,Re=new Array(J);je<J;je++)Re[je]=Z[je];return Re}function He(Z,J){var je=Z==null?null:typeof Symbol!="undefined"&&Z[Symbol.iterator]||Z["@@iterator"];if(je==null)return;var Re=[],oe=!0,yt=!1,zt,lt;try{for(je=je.call(Z);!(oe=(zt=je.next()).done)&&!(Re.push(zt.value),J&&Re.length===J);oe=!0);}catch($t){yt=!0,lt=$t}finally{try{!oe&&je.return!=null&&je.return()}finally{if(yt)throw lt}}return Re}function ge(Z){if(Array.isArray(Z))return Z}function Fe(Z,J,je){var Re=O.useState(Z),oe=ie(Re,2),yt=oe[0],zt=oe[1],lt=O.useState(null),$t=ie(lt,2),cr=$t[0],cn=$t[1];return O.useEffect(function(){var pr=ce(yt||[],Z||[],J);(pr==null?void 0:pr.index)!==void 0&&(je==null||je(pr.index),cn(Z[pr.index])),zt(Z)},[Z]),[cr]}function Q(Z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q=function(je){return typeof je}:Q=function(je){return je&&typeof Symbol=="function"&&je.constructor===Symbol&&je!==Symbol.prototype?"symbol":typeof je},Q(Z)}var fe=(typeof navigator=="undefined"?"undefined":Q(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Je=fe,ne=function(Z,J){var je=Object(O.useRef)(!1),Re=Object(O.useRef)(null);function oe(){clearTimeout(Re.current),je.current=!0,Re.current=setTimeout(function(){je.current=!1},50)}var yt=Object(O.useRef)({top:Z,bottom:J});return yt.current.top=Z,yt.current.bottom=J,function(zt){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=zt<0&&yt.current.top||zt>0&&yt.current.bottom;return lt&&$t?(clearTimeout(Re.current),je.current=!1):(!$t||je.current)&&oe(),!je.current&&$t}};function X(Z,J,je,Re){var oe=Object(O.useRef)(0),yt=Object(O.useRef)(null),zt=Object(O.useRef)(null),lt=Object(O.useRef)(!1),$t=ne(J,je);function cr(pr){if(!Z)return;r.a.cancel(yt.current);var gr=pr.deltaY;if(oe.current+=gr,zt.current=gr,$t(gr))return;Je||pr.preventDefault(),yt.current=Object(r.a)(function(){var Zt=lt.current?10:1;Re(oe.current*Zt),oe.current=0})}function cn(pr){if(!Z)return;lt.current=pr.detail===zt.current}return[cr,cn]}var G=14/15;function te(Z,J,je){var Re=Object(O.useRef)(!1),oe=Object(O.useRef)(0),yt=Object(O.useRef)(null),zt=Object(O.useRef)(null),lt,$t=function(gr){if(Re.current){var Zt=Math.ceil(gr.touches[0].pageY),Vt=oe.current-Zt;oe.current=Zt,je(Vt)&&gr.preventDefault(),clearInterval(zt.current),zt.current=setInterval(function(){Vt*=G,(!je(Vt,!0)||Math.abs(Vt)<=.1)&&clearInterval(zt.current)},16)}},cr=function(){Re.current=!1,lt()},cn=function(gr){lt(),gr.touches.length===1&&!Re.current&&(Re.current=!0,oe.current=Math.ceil(gr.touches[0].pageY),yt.current=gr.target,yt.current.addEventListener("touchmove",$t),yt.current.addEventListener("touchend",cr))};lt=function(){yt.current&&(yt.current.removeEventListener("touchmove",$t),yt.current.removeEventListener("touchend",cr))},O.useLayoutEffect(function(){return Z&&J.current.addEventListener("touchstart",cn),function(){J.current.removeEventListener("touchstart",cn),lt(),clearInterval(zt.current)}},[Z])}var we=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function he(){return he=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var je=arguments[J];for(var Re in je)Object.prototype.hasOwnProperty.call(je,Re)&&(Z[Re]=je[Re])}return Z},he.apply(this,arguments)}function Pe(Z,J){var je=Object.keys(Z);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(Z);J&&(Re=Re.filter(function(oe){return Object.getOwnPropertyDescriptor(Z,oe).enumerable})),je.push.apply(je,Re)}return je}function Oe(Z){for(var J=1;J<arguments.length;J++){var je=arguments[J]!=null?arguments[J]:{};J%2?Pe(Object(je),!0).forEach(function(Re){le(Z,Re,je[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(je)):Pe(Object(je)).forEach(function(Re){Object.defineProperty(Z,Re,Object.getOwnPropertyDescriptor(je,Re))})}return Z}function le(Z,J,je){return J in Z?Object.defineProperty(Z,J,{value:je,enumerable:!0,configurable:!0,writable:!0}):Z[J]=je,Z}function me(Z,J){return Ie(Z)||et(Z,J)||$e(Z,J)||_e()}function _e(){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 $e(Z,J){if(!Z)return;if(typeof Z=="string")return gt(Z,J);var je=Object.prototype.toString.call(Z).slice(8,-1);if(je==="Object"&&Z.constructor&&(je=Z.constructor.name),je==="Map"||je==="Set")return Array.from(Z);if(je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je))return gt(Z,J)}function gt(Z,J){(J==null||J>Z.length)&&(J=Z.length);for(var je=0,Re=new Array(J);je<J;je++)Re[je]=Z[je];return Re}function et(Z,J){var je=Z==null?null:typeof Symbol!="undefined"&&Z[Symbol.iterator]||Z["@@iterator"];if(je==null)return;var Re=[],oe=!0,yt=!1,zt,lt;try{for(je=je.call(Z);!(oe=(zt=je.next()).done)&&!(Re.push(zt.value),J&&Re.length===J);oe=!0);}catch($t){yt=!0,lt=$t}finally{try{!oe&&je.return!=null&&je.return()}finally{if(yt)throw lt}}return Re}function Ie(Z){if(Array.isArray(Z))return Z}function rt(Z,J){if(Z==null)return{};var je=Ge(Z,J),Re,oe;if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Z);for(oe=0;oe<yt.length;oe++){if(Re=yt[oe],J.indexOf(Re)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Re))continue;je[Re]=Z[Re]}}return je}function Ge(Z,J){if(Z==null)return{};var je={},Re=Object.keys(Z),oe,yt;for(yt=0;yt<Re.length;yt++){if(oe=Re[yt],J.indexOf(oe)>=0)continue;je[oe]=Z[oe]}return je}var vt=[],Ot={overflowY:"auto",overflowAnchor:"none"};function Et(Z,J){var je=Z.prefixCls,Re=je===void 0?"rc-virtual-list":je,oe=Z.className,yt=Z.height,zt=Z.itemHeight,lt=Z.fullHeight,$t=lt===void 0?!0:lt,cr=Z.style,cn=Z.data,pr=Z.children,gr=Z.itemKey,Zt=Z.virtual,Vt=Z.component,mt=Vt===void 0?"div":Vt,Yr=Z.onScroll,Tn=Z.onVisibleChange,Hn=rt(Z,we),ei=!!(Zt!==!1&&yt&&zt),ji=ei&&cn&&zt*cn.length>yt,Ln=Object(O.useState)(0),Vn=me(Ln,2),kt=Vn[0],wt=Vn[1],Te=Object(O.useState)(!1),xe=me(Te,2),Ce=xe[0],Ye=xe[1],it=C()(Re,oe),dt=cn||vt,_t=Object(O.useRef)(),vr=Object(O.useRef)(),kr=Object(O.useRef)(),mn=O.useCallback(function(Ht){return typeof gr=="function"?gr(Ht):Ht==null?void 0:Ht[gr]},[gr]),Mt={getKey:mn};function nt(Ht){wt(function(hn){var or;typeof Ht=="function"?or=Ht(hn):or=Ht;var vn=Qe(or);return _t.current.scrollTop=vn,vn})}var st=Object(O.useRef)({start:0,end:dt.length}),Xt=Object(O.useRef)(),Dt=Fe(dt,mn),St=me(Dt,1),jt=St[0];Xt.current=jt;var At=V(mn,null,null),Ft=me(At,4),wr=Ft[0],sr=Ft[1],mr=Ft[2],$r=Ft[3],rn=O.useMemo(function(){if(!ei)return{scrollHeight:void 0,start:0,end:dt.length-1,offset:void 0};if(!ji){var Ht;return{scrollHeight:((Ht=vr.current)===null||Ht===void 0?void 0:Ht.offsetHeight)||0,start:0,end:dt.length-1,offset:void 0}}for(var hn=0,or,vn,nn,Ur=dt.length,ni=0;ni<Ur;ni+=1){var Oi=dt[ni],Hi=mn(Oi),Ri=mr.get(Hi),Ni=hn+(Ri===void 0?zt:Ri);Ni>=kt&&or===void 0&&(or=ni,vn=hn),Ni>kt+yt&&nn===void 0&&(nn=ni),hn=Ni}return or===void 0&&(or=0,vn=0),nn===void 0&&(nn=dt.length-1),nn=Math.min(nn+1,dt.length),{scrollHeight:hn,start:or,end:nn,offset:vn}},[ji,ei,kt,dt,$r,yt]),jn=rn.scrollHeight,Un=rn.start,ui=rn.end,yi=rn.offset;st.current.start=Un,st.current.end=ui;var Ii=jn-yt,Gi=Object(O.useRef)(Ii);Gi.current=Ii;function Qe(Ht){var hn=Ht;return Number.isNaN(Gi.current)||(hn=Math.min(hn,Gi.current)),hn=Math.max(hn,0),hn}var be=kt<=0,Ne=kt>=Ii,Ue=ne(be,Ne);function Xe(Ht){var hn=Ht;nt(hn)}function ze(Ht){var hn=Ht.currentTarget.scrollTop;hn!==kt&&nt(hn),Yr==null||Yr(Ht)}var Ze=X(ei,be,Ne,function(Ht){nt(function(hn){var or=hn+Ht;return or})}),bt=me(Ze,2),ut=bt[0],Gt=bt[1];te(ei,_t,function(Ht,hn){return Ue(Ht,hn)?!1:(ut({preventDefault:function(){},deltaY:Ht}),!0)}),Object(O.useLayoutEffect)(function(){function Ht(hn){ei&&hn.preventDefault()}return _t.current.addEventListener("wheel",ut),_t.current.addEventListener("DOMMouseScroll",Gt),_t.current.addEventListener("MozMousePixelScroll",Ht),function(){_t.current.removeEventListener("wheel",ut),_t.current.removeEventListener("DOMMouseScroll",Gt),_t.current.removeEventListener("MozMousePixelScroll",Ht)}},[ei]);var Mr=Y(_t,dt,mr,zt,mn,sr,nt,function(){var Ht;(Ht=kr.current)===null||Ht===void 0||Ht.delayHidden()});O.useImperativeHandle(J,function(){return{scrollTo:Mr}}),Object(O.useLayoutEffect)(function(){if(Tn){var Ht=dt.slice(Un,ui+1);Tn(Ht,dt)}},[Un,ui,dt]);var Lr=b(dt,Un,ui,wr,pr,Mt),Gr=null;return yt&&(Gr=Oe(le({},$t?"height":"maxHeight",yt),Ot),ei&&(Gr.overflowY="hidden",Ce&&(Gr.pointerEvents="none"))),O.createElement("div",he({style:Oe(Oe({},cr),{},{position:"relative"}),className:it},Hn),O.createElement(mt,{className:"".concat(Re,"-holder"),style:Gr,ref:_t,onScroll:ze},O.createElement(i,{prefixCls:Re,height:jn,offset:yi,onInnerResize:sr,ref:vr},Lr)),ei&&O.createElement(T,{ref:kr,prefixCls:Re,scrollTop:kt,height:yt,scrollHeight:jn,count:dt.length,onScroll:Xe,onStartMove:function(){Ye(!0)},onStopMove:function(){Ye(!1)}}))}var Tt=O.forwardRef(Et);Tt.displayName="List";var Rt=Tt,Be=P.a=Rt},"+rIm":function(j,P,d){var O=d("bYtY"),E=O.retrieve,C=O.defaults,v=O.extend,w=O.each,m=d("7aKB"),h=d("IwbS"),c=d("Qxkt"),i=d("OELB"),r=i.isRadianAroundZero,o=i.remRadian,n=d("oVpE"),e=n.createSymbol,s=d("Fofx"),t=d("QBsz"),a=t.applyTransform,l=d("aX7z"),u=l.shouldShowAllLabels,f=Math.PI,p=function(R,H){this.opt=H,this.axisModel=R,C(H,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new h.Group;var F=new h.Group({position:H.position.slice(),rotation:H.rotation});F.updateTransform(),this._transform=F.transform,this._dumbGroup=F};p.prototype={constructor:p,hasBuilder:function(R){return!!g[R]},add:function(R){g[R].call(this)},getGroup:function(){return this.group}};var g={axisLine:function(){var R=this.opt,H=this.axisModel;if(!H.get("axisLine.show"))return;var F=this.axisModel.axis.getExtent(),K=this._transform,U=[F[0],0],V=[F[1],0];K&&(a(U,U,K),a(V,V,K));var z=v({lineCap:"round"},H.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new h.Line({anid:"line",subPixelOptimize:!0,shape:{x1:U[0],y1:U[1],x2:V[0],y2:V[1]},style:z,strokeContainThreshold:R.strokeContainThreshold||5,silent:!0,z2:1}));var Y=H.get("axisLine.symbol"),q=H.get("axisLine.symbolSize"),ce=H.get("axisLine.symbolOffset")||0;if(typeof ce=="number"&&(ce=[ce,ce]),Y!=null){typeof Y=="string"&&(Y=[Y,Y]),(typeof q=="string"||typeof q=="number")&&(q=[q,q]);var ie=q[0],ve=q[1];w([{rotate:R.rotation+Math.PI/2,offset:ce[0],r:0},{rotate:R.rotation-Math.PI/2,offset:ce[1],r:Math.sqrt((U[0]-V[0])*(U[0]-V[0])+(U[1]-V[1])*(U[1]-V[1]))}],function(Ee,Le){if(Y[Le]!=="none"&&Y[Le]!=null){var He=e(Y[Le],-ie/2,-ve/2,ie,ve,z.stroke,!0),ge=Ee.r+Ee.offset,Fe=[U[0]+ge*Math.cos(R.rotation),U[1]-ge*Math.sin(R.rotation)];He.attr({rotation:Ee.rotate,position:Fe,silent:!0,z2:11}),this.group.add(He)}},this)}},axisTickLabel:function(){var R=this.axisModel,H=this.opt,F=D(this,R,H),K=M(this,R,H);S(R,K,F),N(this,R,H)},axisName:function(){var R=this.opt,H=this.axisModel,F=E(R.axisName,H.get("name"));if(!F)return;var K=H.get("nameLocation"),U=R.nameDirection,V=H.getModel("nameTextStyle"),z=H.get("nameGap")||0,Y=this.axisModel.axis.getExtent(),q=Y[0]>Y[1]?-1:1,ce=[K==="start"?Y[0]-q*z:K==="end"?Y[1]+q*z:(Y[0]+Y[1])/2,I(K)?R.labelOffset+U*z:0],ie,ve=H.get("nameRotate");ve!=null&&(ve=ve*f/180);var Ee;I(K)?ie=y(R.rotation,ve!=null?ve:R.rotation,U):(ie=x(R,K,ve||0,Y),Ee=R.axisNameAvailableWidth,Ee!=null&&(Ee=Math.abs(Ee/Math.sin(ie.rotation)),!isFinite(Ee)&&(Ee=null)));var Le=V.getFont(),He=H.get("nameTruncate",!0)||{},ge=He.ellipsis,Fe=E(R.nameTruncateMaxWidth,He.maxWidth,Ee),Q=ge!=null&&Fe!=null?m.truncateText(F,Fe,Le,ge,{minChar:2,placeholder:He.placeholder}):F,fe=H.get("tooltip",!0),Je=H.mainType,ne={componentType:Je,name:F,$vars:["name"]};ne[Je+"Index"]=H.componentIndex;var X=new h.Text({anid:"name",__fullText:F,__truncatedText:Q,position:ce,rotation:ie.rotation,silent:T(H),z2:1,tooltip:fe&&fe.show?v({content:F,formatter:function(){return F},formatterParams:ne},fe):null});h.setTextStyle(X.style,V,{text:Q,textFont:Le,textFill:V.getTextColor()||H.get("axisLine.lineStyle.color"),textAlign:V.get("align")||ie.textAlign,textVerticalAlign:V.get("verticalAlign")||ie.textVerticalAlign}),H.get("triggerEvent")&&(X.eventData=A(H),X.eventData.targetType="axisName",X.eventData.name=F),this._dumbGroup.add(X),X.updateTransform(),this.group.add(X),X.decomposeTransform()}},A=p.makeAxisEventDataBase=function(R){var H={componentType:R.mainType,componentIndex:R.componentIndex};return H[R.mainType+"Index"]=R.componentIndex,H},y=p.innerTextLayout=function(R,H,F){var K=o(H-R),U,V;return r(K)?(V=F>0?"top":"bottom",U="center"):r(K-f)?(V=F>0?"bottom":"top",U="center"):(V="middle",K>0&&K<f?U=F>0?"right":"left":U=F>0?"left":"right"),{rotation:K,textAlign:U,textVerticalAlign:V}};function x(R,H,F,K){var U=o(F-R.rotation),V,z,Y=K[0]>K[1],q=H==="start"&&!Y||H!=="start"&&Y;return r(U-f/2)?(z=q?"bottom":"top",V="center"):r(U-f*1.5)?(z=q?"top":"bottom",V="center"):(z="middle",U<f*1.5&&U>f/2?V=q?"left":"right":V=q?"right":"left"),{rotation:U,textAlign:V,textVerticalAlign:z}}var T=p.isLabelSilent=function(R){var H=R.get("tooltip");return R.get("silent")||!(R.get("triggerEvent")||H&&H.show)};function S(R,H,F){if(u(R.axis))return;var K=R.get("axisLabel.showMinLabel"),U=R.get("axisLabel.showMaxLabel");H=H||[],F=F||[];var V=H[0],z=H[1],Y=H[H.length-1],q=H[H.length-2],ce=F[0],ie=F[1],ve=F[F.length-1],Ee=F[F.length-2];K===!1?(b(V),b(ce)):_(V,z)&&(K?(b(z),b(ie)):(b(V),b(ce))),U===!1?(b(Y),b(ve)):_(q,Y)&&(U?(b(q),b(Ee)):(b(Y),b(ve)))}function b(R){R&&(R.ignore=!0)}function _(R,H,F){var K=R&&R.getBoundingRect().clone(),U=H&&H.getBoundingRect().clone();if(!K||!U)return;var V=s.identity([]);return s.rotate(V,V,-R.rotation),K.applyTransform(s.mul([],V,R.getLocalTransform())),U.applyTransform(s.mul([],V,H.getLocalTransform())),K.intersect(U)}function I(R){return R==="middle"||R==="center"}function L(R,H,F,K,U){for(var V=[],z=[],Y=[],q=0;q<R.length;q++){var ce=R[q].coord;z[0]=ce,z[1]=0,Y[0]=ce,Y[1]=F,H&&(a(z,z,H),a(Y,Y,H));var ie=new h.Line({anid:U+"_"+R[q].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:Y[0],y2:Y[1]},style:K,z2:2,silent:!0});V.push(ie)}return V}function D(R,H,F){var K=H.axis,U=H.getModel("axisTick");if(!U.get("show")||K.scale.isBlank())return;for(var V=U.getModel("lineStyle"),z=F.tickDirection*U.get("length"),Y=K.getTicksCoords(),q=L(Y,R._transform,z,C(V.getLineStyle(),{stroke:H.get("axisLine.lineStyle.color")}),"ticks"),ce=0;ce<q.length;ce++)R.group.add(q[ce]);return q}function N(R,H,F){var K=H.axis,U=H.getModel("minorTick");if(!U.get("show")||K.scale.isBlank())return;var V=K.getMinorTicksCoords();if(!V.length)return;for(var z=U.getModel("lineStyle"),Y=F.tickDirection*U.get("length"),q=C(z.getLineStyle(),C(H.getModel("axisTick").getLineStyle(),{stroke:H.get("axisLine.lineStyle.color")})),ce=0;ce<V.length;ce++)for(var ie=L(V[ce],R._transform,Y,q,"minorticks_"+ce),ve=0;ve<ie.length;ve++)R.group.add(ie[ve])}function M(R,H,F){var K=H.axis,U=E(F.axisLabelShow,H.get("axisLabel.show"));if(!U||K.scale.isBlank())return;var V=H.getModel("axisLabel"),z=V.get("margin"),Y=K.getViewLabels(),q=(E(F.labelRotate,V.get("rotate"))||0)*f/180,ce=y(F.rotation,q,F.labelDirection),ie=H.getCategories&&H.getCategories(!0),ve=[],Ee=T(H),Le=H.get("triggerEvent");return w(Y,function(He,ge){var Fe=He.tickValue,Q=He.formattedLabel,fe=He.rawLabel,Je=V;ie&&ie[Fe]&&ie[Fe].textStyle&&(Je=new c(ie[Fe].textStyle,V,H.ecModel));var ne=Je.getTextColor()||H.get("axisLine.lineStyle.color"),X=K.dataToCoord(Fe),G=[X,F.labelOffset+F.labelDirection*z],te=new h.Text({anid:"label_"+Fe,position:G,rotation:ce.rotation,silent:Ee,z2:10});h.setTextStyle(te.style,Je,{text:Q,textAlign:Je.getShallow("align",!0)||ce.textAlign,textVerticalAlign:Je.getShallow("verticalAlign",!0)||Je.getShallow("baseline",!0)||ce.textVerticalAlign,textFill:typeof ne=="function"?ne(K.type==="category"?fe:K.type==="value"?Fe+"":Fe,ge):ne}),Le&&(te.eventData=A(H),te.eventData.targetType="axisLabel",te.eventData.value=fe),R._dumbGroup.add(te),te.updateTransform(),ve.push(te),R.group.add(te),te.decomposeTransform()}),ve}var B=p;j.exports=B},"+wW9":function(j,P,d){var O=d("bYtY"),E=O.each,C=O.isArray,v=O.isObject,w=d("JuEJ"),m=d("4NO4"),h=m.normalizeToArray;function c(s,t){t=t.split(",");for(var a=s,l=0;l<t.length&&!(a=a&&a[t[l]],a==null);l++);return a}function i(s,t,a,l){t=t.split(",");for(var u=s,f,p=0;p<t.length-1;p++)f=t[p],u[f]==null&&(u[f]={}),u=u[f];(l||u[t[p]]==null)&&(u[t[p]]=a)}function r(s){E(o,function(t){t[0]in s&&!(t[1]in s)&&(s[t[1]]=s[t[0]])})}var o=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(s,t){w(s,t),s.series=h(s.series),E(s.series,function(a){if(!v(a))return;var l=a.type;if(l==="line")a.clipOverflow!=null&&(a.clip=a.clipOverflow);else if(l==="pie"||l==="gauge")a.clockWise!=null&&(a.clockwise=a.clockWise);else if(l==="gauge"){var u=c(a,"pointer.color");u!=null&&i(a,"itemStyle.color",u)}r(a)}),s.dataRange&&(s.visualMap=s.dataRange),E(n,function(a){var l=s[a];l&&(C(l)||(l=[l]),E(l,function(u){r(u)}))})}j.exports=e},"/IIm":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("H6uX"),w=d("IwbS"),m=d("pP6R"),h=d("gPAo"),c=C.curry,i=C.each,r=C.map,o=Math.min,n=Math.max,e=Math.pow,s=1e4,t=6,a=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},g=0;function A(le){v.call(this),this._zr=le,this.group=new w.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+g++,this._handlers={},i(G,function(me,_e){this._handlers[_e]=C.bind(me,this)},this)}A.prototype={constructor:A,enableBrush:function(le){return this._brushType&&x(this),le.brushType&&y(this,le),this},setPanels:function(le){if(le&&le.length){var me=this._panels={};C.each(le,function(_e){me[_e.panelId]=C.clone(_e)})}else this._panels=null;return this},mount:function(le){le=le||{},this._enableGlobalPan=le.enableGlobalPan;var me=this.group;return this._zr.add(me),me.attr({position:le.position||[0,0],rotation:le.rotation||0,scale:le.scale||[1,1]}),this._transform=me.getLocalTransform(),this},eachCover:function(le,me){i(this._covers,le,me)},updateCovers:function(le){le=C.map(le,function(Ot){return C.merge(C.clone(p),Ot,!0)});var me="\0-brush-index-",_e=this._covers,$e=this._covers=[],gt=this,et=this._creatingCover;return new h(_e,le,rt,Ie).add(Ge).update(Ge).remove(vt).execute(),this;function Ie(Ot,Et){return(Ot.id!=null?Ot.id:me+Et)+"-"+Ot.brushType}function rt(Ot,Et){return Ie(Ot.__brushOption,Et)}function Ge(Ot,Et){var Tt=le[Ot];if(Et!=null&&_e[Et]===et)$e[Ot]=_e[Et];else{var Rt=$e[Ot]=Et!=null?(_e[Et].__brushOption=Tt,_e[Et]):_(gt,b(gt,Tt));D(gt,Rt)}}function vt(Ot){_e[Ot]!==et&&gt.group.remove(_e[Ot])}},unmount:function(){return this.enableBrush(!1),R(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},C.mixin(A,v);function y(le,me){var _e=le._zr;le._enableGlobalPan||m.take(_e,l,le._uid),T(_e,le._handlers),le._brushType=me.brushType,le._brushOption=C.merge(C.clone(p),me,!0)}function x(le){var me=le._zr;m.release(me,l,le._uid),S(me,le._handlers),le._brushType=le._brushOption=null}function T(le,me){i(me,function(_e,$e){le.on($e,_e)})}function S(le,me){i(me,function(_e,$e){le.off($e,_e)})}function b(le,me){var _e=he[me.brushType].createCover(le,me);return _e.__brushOption=me,L(_e,me),le.group.add(_e),_e}function _(le,me){var _e=N(me);return _e.endCreating&&(_e.endCreating(le,me),L(me,me.__brushOption)),me}function I(le,me){var _e=me.__brushOption;N(me).updateCoverShape(le,me,_e.range,_e)}function L(le,me){var _e=me.z;_e==null&&(_e=s),le.traverse(function($e){$e.z=_e,$e.z2=_e})}function D(le,me){N(me).updateCommon(le,me),I(le,me)}function N(le){return he[le.__brushOption.brushType]}function M(le,me,_e){var $e=le._panels;if(!$e)return!0;var gt,et=le._transform;return i($e,function(Ie){Ie.isTargetByCursor(me,_e,et)&&(gt=Ie)}),gt}function B(le,me){var _e=le._panels;if(!_e)return!0;var $e=me.__brushOption.panelId;return $e!=null?_e[$e]:!0}function R(le){var me=le._covers,_e=me.length;return i(me,function($e){le.group.remove($e)},le),me.length=0,!!_e}function H(le,me){var _e=r(le._covers,function($e){var gt=$e.__brushOption,et=C.clone(gt.range);return{brushType:gt.brushType,panelId:gt.panelId,range:et}});le.trigger("brush",_e,{isEnd:!!me.isEnd,removeOnClick:!!me.removeOnClick})}function F(le){var me=le._track;if(!me.length)return!1;var _e=me[me.length-1],$e=me[0],gt=_e[0]-$e[0],et=_e[1]-$e[1],Ie=e(gt*gt+et*et,.5);return Ie>t}function K(le){var me=le.length-1;return me<0&&(me=0),[le[0],le[me]]}function U(le,me,_e,$e){var gt=new w.Group;return gt.add(new w.Rect({name:"main",style:q(_e),silent:!0,draggable:!0,cursor:"move",drift:c(le,me,gt,"nswe"),ondragend:c(H,me,{isEnd:!0})})),i($e,function(et){gt.add(new w.Rect({name:et,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(le,me,gt,et),ondragend:c(H,me,{isEnd:!0})}))}),gt}function V(le,me,_e,$e){var gt=$e.brushStyle.lineWidth||0,et=n(gt,a),Ie=_e[0][0],rt=_e[1][0],Ge=Ie-gt/2,vt=rt-gt/2,Ot=_e[0][1],Et=_e[1][1],Tt=Ot-et+gt/2,Rt=Et-et+gt/2,Be=Ot-Ie,Z=Et-rt,J=Be+gt,je=Z+gt;Y(le,me,"main",Ie,rt,Be,Z),$e.transformable&&(Y(le,me,"w",Ge,vt,et,je),Y(le,me,"e",Tt,vt,et,je),Y(le,me,"n",Ge,vt,J,et),Y(le,me,"s",Ge,Rt,J,et),Y(le,me,"nw",Ge,vt,et,et),Y(le,me,"ne",Tt,vt,et,et),Y(le,me,"sw",Ge,Rt,et,et),Y(le,me,"se",Tt,Rt,et,et))}function z(le,me){var _e=me.__brushOption,$e=_e.transformable,gt=me.childAt(0);gt.useStyle(q(_e)),gt.attr({silent:!$e,cursor:$e?"move":"default"}),i(["w","e","n","s","se","sw","ne","nw"],function(et){var Ie=me.childOfName(et),rt=ve(le,et);Ie&&Ie.attr({silent:!$e,invisible:!$e,cursor:$e?f[rt]+"-resize":null})})}function Y(le,me,_e,$e,gt,et,Ie){var rt=me.childOfName(_e);rt&&rt.setShape(Fe(ge(le,me,[[$e,gt],[$e+et,gt+Ie]])))}function q(le){return C.defaults({strokeNoScale:!0},le.brushStyle)}function ce(le,me,_e,$e){var gt=[o(le,_e),o(me,$e)],et=[n(le,_e),n(me,$e)];return[[gt[0],et[0]],[gt[1],et[1]]]}function ie(le){return w.getTransform(le.group)}function ve(le,me){if(me.length>1){me=me.split("");var _e=[ve(le,me[0]),ve(le,me[1])];return(_e[0]==="e"||_e[0]==="w")&&_e.reverse(),_e.join("")}else{var $e={w:"left",e:"right",n:"top",s:"bottom"},gt={left:"w",right:"e",top:"n",bottom:"s"},_e=w.transformDirection($e[me],ie(le));return gt[_e]}}function Ee(le,me,_e,$e,gt,et,Ie,rt){var Ge=$e.__brushOption,vt=le(Ge.range),Ot=He(_e,et,Ie);i(gt.split(""),function(Et){var Tt=u[Et];vt[Tt[0]][Tt[1]]+=Ot[Tt[0]]}),Ge.range=me(ce(vt[0][0],vt[1][0],vt[0][1],vt[1][1])),D(_e,$e),H(_e,{isEnd:!1})}function Le(le,me,_e,$e,gt){var et=me.__brushOption.range,Ie=He(le,_e,$e);i(et,function(rt){rt[0]+=Ie[0],rt[1]+=Ie[1]}),D(le,me),H(le,{isEnd:!1})}function He(le,me,_e){var $e=le.group,gt=$e.transformCoordToLocal(me,_e),et=$e.transformCoordToLocal(0,0);return[gt[0]-et[0],gt[1]-et[1]]}function ge(le,me,_e){var $e=B(le,me);return $e&&$e!==!0?$e.clipPath(_e,le._transform):C.clone(_e)}function Fe(le){var me=o(le[0][0],le[1][0]),_e=o(le[0][1],le[1][1]),$e=n(le[0][0],le[1][0]),gt=n(le[0][1],le[1][1]);return{x:me,y:_e,width:$e-me,height:gt-_e}}function Q(le,me,_e){if(!le._brushType||we(le,me))return;var $e=le._zr,gt=le._covers,et=M(le,me,_e);if(!le._dragging)for(var Ie=0;Ie<gt.length;Ie++){var rt=gt[Ie].__brushOption;if(et&&(et===!0||rt.panelId===et.panelId)&&he[rt.brushType].contain(gt[Ie],_e[0],_e[1]))return}et&&$e.setCursorStyle("crosshair")}function fe(le){var me=le.event;me.preventDefault&&me.preventDefault()}function Je(le,me,_e){return le.childOfName("main").contain(me,_e)}function ne(le,me,_e,$e){var gt=le._creatingCover,et=le._creatingPanel,Ie=le._brushOption,rt;if(le._track.push(_e.slice()),F(le)||gt){if(et&&!gt){Ie.brushMode==="single"&&R(le);var Ge=C.clone(Ie);Ge.brushType=X(Ge.brushType,et),Ge.panelId=et===!0?null:et.panelId,gt=le._creatingCover=b(le,Ge),le._covers.push(gt)}if(gt){var vt=he[X(le._brushType,et)],Ot=gt.__brushOption;Ot.range=vt.getCreatingRange(ge(le,gt,le._track)),$e&&(_(le,gt),vt.updateCommon(le,gt)),I(le,gt),rt={isEnd:$e}}}else $e&&Ie.brushMode==="single"&&Ie.removeOnClick&&(M(le,me,_e)&&R(le)&&(rt={isEnd:$e,removeOnClick:!0}));return rt}function X(le,me){return le==="auto"?me.defaultBrushType:le}var G={mousedown:function(le){if(this._dragging)te(this,le);else if(!le.target||!le.target.draggable){fe(le);var me=this.group.transformCoordToLocal(le.offsetX,le.offsetY);this._creatingCover=null;var _e=this._creatingPanel=M(this,le,me);_e&&(this._dragging=!0,this._track=[me.slice()])}},mousemove:function(le){var me=le.offsetX,_e=le.offsetY,$e=this.group.transformCoordToLocal(me,_e);if(Q(this,le,$e),this._dragging){fe(le);var gt=ne(this,le,$e,!1);gt&&H(this,gt)}},mouseup:function(le){te(this,le)}};function te(le,me){if(le._dragging){fe(me);var _e=me.offsetX,$e=me.offsetY,gt=le.group.transformCoordToLocal(_e,$e),et=ne(le,me,gt,!0);le._dragging=!1,le._track=[],le._creatingCover=null,et&&H(le,et)}}function we(le,me,_e){var $e=le._zr;return me<0||me>$e.getWidth()||_e<0||_e>$e.getHeight()}var he={lineX:Pe(0),lineY:Pe(1),rect:{createCover:function(le,me){return U(c(Ee,function(_e){return _e},function(_e){return _e}),le,me,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(le){var me=K(le);return ce(me[1][0],me[1][1],me[0][0],me[0][1])},updateCoverShape:function(le,me,_e,$e){V(le,me,_e,$e)},updateCommon:z,contain:Je},polygon:{createCover:function(le,me){var _e=new w.Group;return _e.add(new w.Polyline({name:"main",style:q(me),silent:!0})),_e},getCreatingRange:function(le){return le},endCreating:function(le,me){me.remove(me.childAt(0)),me.add(new w.Polygon({name:"main",draggable:!0,drift:c(Le,le,me),ondragend:c(H,le,{isEnd:!0})}))},updateCoverShape:function(le,me,_e,$e){me.childAt(0).setShape({points:ge(le,me,_e)})},updateCommon:z,contain:Je}};function Pe(le){return{createCover:function(me,_e){return U(c(Ee,function($e){var gt=[$e,[0,100]];return le&&gt.reverse(),gt},function($e){return $e[le]}),me,_e,[["w","e"],["n","s"]][le])},getCreatingRange:function(me){var _e=K(me),$e=o(_e[0][le],_e[1][le]),gt=n(_e[0][le],_e[1][le]);return[$e,gt]},updateCoverShape:function(me,_e,$e,gt){var et,Ie=B(me,_e);if(Ie!==!0&&Ie.getLinearBrushOtherExtent)et=Ie.getLinearBrushOtherExtent(le,me._transform);else{var rt=me._zr;et=[0,[rt.getWidth(),rt.getHeight()][1-le]]}var Ge=[$e,et];le&&Ge.reverse(),V(me,_e,Ge,gt)},updateCommon:z,contain:Je}}var Oe=A;j.exports=Oe},"/MfK":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="DeleteOutlined";var h=P.a=E.forwardRef(m)},"/POA":function(j,P,d){!function(O,E){if(!0)j.exports=E();else var C,v}(window,function(){return function(O){var E={};function C(v){if(E[v])return E[v].exports;var w=E[v]={i:v,l:!1,exports:{}};return O[v].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=O,C.c=E,C.d=function(v,w,m){C.o(v,w)||Object.defineProperty(v,w,{enumerable:!0,get:m})},C.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},C.t=function(v,w){if(1&w&&(v=C(v)),8&w)return v;if(4&w&&typeof v=="object"&&v&&v.__esModule)return v;var m=Object.create(null);if(C.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:v}),2&w&&typeof v!="string")for(var h in v)C.d(m,h,function(c){return v[c]}.bind(null,h));return m},C.n=function(v){var w=v&&v.__esModule?function(){return v.default}:function(){return v};return C.d(w,"a",w),w},C.o=function(v,w){return Object.prototype.hasOwnProperty.call(v,w)},C.p="",C(C.s=34)}([function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.forwardEvent=E.EventEmitter=void 0;var v=function(){function w(){this._listeners=[],this._disposed=!1}return Object.defineProperty(w.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}),w.prototype.fire=function(m,h){for(var c=[],i=0;i<this._listeners.length;i++)c.push(this._listeners[i]);for(i=0;i<c.length;i++)c[i].call(void 0,m,h)},w.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},w}();E.EventEmitter=v,E.forwardEvent=function(w,m){return w(function(h){return m.fire(h)})}},function(O,E,C){"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 v=C(14);E.IBufferService=v.createDecorator("BufferService"),E.ICoreMouseService=v.createDecorator("CoreMouseService"),E.ICoreService=v.createDecorator("CoreService"),E.ICharsetService=v.createDecorator("CharsetService"),E.IDirtyRowService=v.createDecorator("DirtyRowService"),E.IInstantiationService=v.createDecorator("InstantiationService"),E.ILogService=v.createDecorator("LogService"),E.IOptionsService=v.createDecorator("OptionsService"),E.IUnicodeService=v.createDecorator("UnicodeService")},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.getDisposeArrayDisposable=E.disposeArray=E.Disposable=void 0;var v=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 w(m){for(var h=0,c=m;h<c.length;h++)c[h].dispose();m.length=0}E.Disposable=v,E.disposeArray=w,E.getDisposeArrayDisposable=function(m){return{dispose:function(){return w(m)}}}},function(O,E,C){"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(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(o,n){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(o,n)},function(r,o){function n(){this.constructor=r}v(r,o),r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)});Object.defineProperty(E,"__esModule",{value:!0}),E.CellData=void 0;var m=C(8),h=C(3),c=C(6),i=function(r){function o(){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 w(o,r),o.fromCharData=function(n){var e=new o;return e.setFromCharData(n),e},o.prototype.isCombined=function(){return 2097152&this.content},o.prototype.getWidth=function(){return this.content>>22},o.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?m.stringFromCodePoint(2097151&this.content):""},o.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},o.prototype.setFromCharData=function(n){this.fg=n[h.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(n[h.CHAR_DATA_CHAR_INDEX].length>2)e=!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 t=n[h.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(s-55296)+t-56320+65536|n[h.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=n[h.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[h.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=n[h.CHAR_DATA_CHAR_INDEX],this.content=2097152|n[h.CHAR_DATA_WIDTH_INDEX]<<22)},o.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},o}(c.AttributeData);E.CellData=i},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ISoundService=E.ISelectionService=E.IRenderService=E.IMouseService=E.ICoreBrowserService=E.ICharSizeService=void 0;var v=C(14);E.ICharSizeService=v.createDecorator("CharSizeService"),E.ICoreBrowserService=v.createDecorator("CoreBrowserService"),E.IMouseService=v.createDecorator("MouseService"),E.IRenderService=v.createDecorator("RenderService"),E.ISelectionService=v.createDecorator("SelectionService"),E.ISoundService=v.createDecorator("SoundService")},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ExtendedAttrs=E.AttributeData=void 0;var v=function(){function m(){this.fg=0,this.bg=0,this.extended=new w}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=v;var w=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=w},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.addDisposableDomListener=void 0,E.addDisposableDomListener=function(v,w,m,h){v.addEventListener(w,m,h);var c=!1;return{dispose:function(){c||(c=!0,v.removeEventListener(w,m,h))}}}},function(O,E,C){"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 i="",r=h;r<c;++r){var o=m[r];o>65535?(o-=65536,i+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):i+=String.fromCharCode(o)}return i};var v=function(){function m(){this._interim=0}return m.prototype.clear=function(){this._interim=0},m.prototype.decode=function(h,c){var i=h.length;if(!i)return 0;var r=0,o=0;this._interim&&(56320<=(s=h.charCodeAt(o++))&&s<=57343?c[r++]=1024*(this._interim-55296)+s-56320+65536:(c[r++]=this._interim,c[r++]=s),this._interim=0);for(var n=o;n<i;++n){var e=h.charCodeAt(n);if(55296<=e&&e<=56319){if(++n>=i)return this._interim=e,r;var s;56320<=(s=h.charCodeAt(n))&&s<=57343?c[r++]=1024*(e-55296)+s-56320+65536:(c[r++]=e,c[r++]=s)}else c[r++]=e}return r},m}();E.StringToUtf32=v;var w=function(){function m(){this.interim=new Uint8Array(3)}return m.prototype.clear=function(){this.interim.fill(0)},m.prototype.decode=function(h,c){var i=h.length;if(!i)return 0;var r,o,n,e,s=0,t=0,a=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 g=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,A=g-f;a<A;){if(a>=i)return 0;if((192&(p=h[a++]))!=128){a--,l=!0;break}this.interim[f++]=p,u<<=6,u|=63&p}l||(g===2?u<128?a--:c[s++]=u:g===3?u<2048||u>=55296&&u<=57343||(c[s++]=u):u<65536||u>1114111||(c[s++]=u)),this.interim.fill(0)}for(var y=i-4,x=a;x<i;){for(;!(!(x<y)||128&(r=h[x])||128&(o=h[x+1])||128&(n=h[x+2])||128&(e=h[x+3]));)c[s++]=r,c[s++]=o,c[s++]=n,c[s++]=e,x+=4;if((r=h[x++])<128)c[s++]=r;else if((224&r)==192){if(x>=i)return this.interim[0]=r,s;if((192&(o=h[x++]))!=128){x--;continue}if((t=(31&r)<<6|63&o)<128){x--;continue}c[s++]=t}else if((240&r)==224){if(x>=i)return this.interim[0]=r,s;if((192&(o=h[x++]))!=128){x--;continue}if(x>=i)return this.interim[0]=r,this.interim[1]=o,s;if((192&(n=h[x++]))!=128){x--;continue}if((t=(15&r)<<12|(63&o)<<6|63&n)<2048||t>=55296&&t<=57343)continue;c[s++]=t}else if((248&r)==240){if(x>=i)return this.interim[0]=r,s;if((192&(o=h[x++]))!=128){x--;continue}if(x>=i)return this.interim[0]=r,this.interim[1]=o,s;if((192&(n=h[x++]))!=128){x--;continue}if(x>=i)return this.interim[0]=r,this.interim[1]=o,this.interim[2]=n,s;if((192&(e=h[x++]))!=128){x--;continue}if((t=(7&r)<<18|(63&o)<<12|(63&n)<<6|63&e)<65536||t>1114111)continue;c[s++]=t}}return s},m}();E.Utf8ToUtf32=w},function(O,E,C){"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(O,E,C){"use strict";var v,w,m,h;function c(r){var o=r.toString(16);return o.length<2?"0"+o:o}function i(r,o){return r<o?(o+.05)/(r+.05):(r+.05)/(o+.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(o,n,e,s){return s!==void 0?"#"+c(o)+c(n)+c(e)+c(s):"#"+c(o)+c(n)+c(e)},r.toRgba=function(o,n,e,s){return s===void 0&&(s=255),(o<<24|n<<16|e<<8|s)>>>0}}(v=E.channels||(E.channels={})),(w=E.color||(E.color={})).blend=function(r,o){var n=(255&o.rgba)/255;if(n===1)return{css:o.css,rgba:o.rgba};var e=o.rgba>>24&255,s=o.rgba>>16&255,t=o.rgba>>8&255,a=r.rgba>>24&255,l=r.rgba>>16&255,u=r.rgba>>8&255,f=a+Math.round((e-a)*n),p=l+Math.round((s-l)*n),g=u+Math.round((t-u)*n);return{css:v.toCss(f,p,g),rgba:v.toRgba(f,p,g)}},w.isOpaque=function(r){return(255&r.rgba)==255},w.ensureContrastRatio=function(r,o,n){var e=h.ensureContrastRatio(r.rgba,o.rgba,n);if(e)return h.toColor(e>>24&255,e>>16&255,e>>8&255)},w.opaque=function(r){var o=(255|r.rgba)>>>0,n=h.toChannels(o),e=n[0],s=n[1],t=n[2];return{css:v.toCss(e,s,t),rgba:o}},w.opacity=function(r,o){var n=Math.round(255*o),e=h.toChannels(r.rgba),s=e[0],t=e[1],a=e[2];return{css:v.toCss(s,t,a,n),rgba:v.toRgba(s,t,a,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 o(n,e,s){var t=n/255,a=e/255,l=s/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))}r.relativeLuminance=function(n){return o(n>>16&255,n>>8&255,255&n)},r.relativeLuminance2=o}(m=E.rgb||(E.rgb={})),function(r){function o(e,s,t){for(var a=e>>24&255,l=e>>16&255,u=e>>8&255,f=s>>24&255,p=s>>16&255,g=s>>8&255,A=i(m.relativeLuminance2(f,g,p),m.relativeLuminance2(a,l,u));A<t&&(f>0||p>0||g>0);)f-=Math.max(0,Math.ceil(.1*f)),p-=Math.max(0,Math.ceil(.1*p)),g-=Math.max(0,Math.ceil(.1*g)),A=i(m.relativeLuminance2(f,g,p),m.relativeLuminance2(a,l,u));return(f<<24|p<<16|g<<8|255)>>>0}function n(e,s,t){for(var a=e>>24&255,l=e>>16&255,u=e>>8&255,f=s>>24&255,p=s>>16&255,g=s>>8&255,A=i(m.relativeLuminance2(f,g,p),m.relativeLuminance2(a,l,u));A<t&&(f<255||p<255||g<255);)f=Math.min(255,f+Math.ceil(.1*(255-f))),p=Math.min(255,p+Math.ceil(.1*(255-p))),g=Math.min(255,g+Math.ceil(.1*(255-g))),A=i(m.relativeLuminance2(f,g,p),m.relativeLuminance2(a,l,u));return(f<<24|p<<16|g<<8|255)>>>0}r.ensureContrastRatio=function(e,s,t){var a=m.relativeLuminance(e>>8),l=m.relativeLuminance(s>>8);if(i(a,l)<t)return l<a?o(e,s,t):n(e,s,t)},r.reduceLuminance=o,r.increaseLuminance=n,r.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},r.toColor=function(e,s,t){return{css:v.toCss(e,s,t),rgba:v.toRgba(e,s,t)}}}(h=E.rgba||(E.rgba={})),E.toPaddedHex=c,E.contrastRatio=i},function(O,E,C){"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 v=typeof navigator=="undefined",w=v?"node":navigator.userAgent,m=v?"node":navigator.platform;function h(c,i){return c.indexOf(i)>=0}E.isFirefox=!!~w.indexOf("Firefox"),E.isSafari=/^((?!chrome|android).)*safari/i.test(w),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(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.C1=E.C0=void 0,function(v){v.NUL="\0",v.SOH="",v.STX="",v.ETX="",v.EOT="",v.ENQ="",v.ACK="",v.BEL="\x07",v.BS="\b",v.HT=" ",v.LF=`
`,v.VT="\v",v.FF="\f",v.CR="\r",v.SO="",v.SI="",v.DLE="",v.DC1="",v.DC2="",v.DC3="",v.DC4="",v.NAK="",v.SYN="",v.ETB="",v.CAN="",v.EM="",v.SUB="",v.ESC="",v.FS="",v.GS="",v.RS="",v.US="",v.SP=" ",v.DEL="\x7F"}(E.C0||(E.C0={})),function(v){v.PAD="\x80",v.HOP="\x81",v.BPH="\x82",v.NBH="\x83",v.IND="\x84",v.NEL="\x85",v.SSA="\x86",v.ESA="\x87",v.HTS="\x88",v.HTJ="\x89",v.VTS="\x8A",v.PLD="\x8B",v.PLU="\x8C",v.RI="\x8D",v.SS2="\x8E",v.SS3="\x8F",v.DCS="\x90",v.PU1="\x91",v.PU2="\x92",v.STS="\x93",v.CCH="\x94",v.MW="\x95",v.SPA="\x96",v.EPA="\x97",v.SOS="\x98",v.SGCI="\x99",v.SCI="\x9A",v.CSI="\x9B",v.ST="\x9C",v.OSC="\x9D",v.PM="\x9E",v.APC="\x9F"}(E.C1||(E.C1={}))},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BaseRenderLayer=void 0;var v=C(3),w=C(9),m=C(25),h=C(6),c=C(28),i=C(10),r=C(17),o=function(){function n(e,s,t,a,l,u,f,p){this._container=e,this._alpha=a,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=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return n.prototype.dispose=function(){var e;r.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.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(e,s){},n.prototype.onSelectionChanged=function(e,s,t){t===void 0&&(t=!1)},n.prototype.setColors=function(e){this._refreshCharAtlas(e)},n.prototype._setTransparency=function(e){if(e!==this._alpha){var s=this._canvas;this._alpha=e,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(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=m.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},n.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},n.prototype._fillCells=function(e,s,t,a){this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(e,s,t){t===void 0&&(t=1),this._ctx.fillRect(e*this._scaledCellWidth,(s+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(e,s,t){this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(e,s,t,a){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,s*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,a*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(e,s,t,a){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(e,s,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(e.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(e,s,t){var a,l,u=this._getContrastColor(e);u||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,s,t,u):(e.isInverse()?(a=e.isBgDefault()?w.INVERTED_DEFAULT_COLOR:e.getBgColor(),l=e.isFgDefault()?w.INVERTED_DEFAULT_COLOR:e.getFgColor()):(l=e.isBgDefault()?v.DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?v.DEFAULT_COLOR:e.getFgColor()),a+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&a<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||v.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||v.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=l,this._currentGlyphIdentifier.fg=a,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,s,t))},n.prototype._drawUncachedChars=function(e,s,t,a){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(a)this._ctx.fillStyle=a.css;else if(e.isBgDefault())this._ctx.fillStyle=i.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(a)this._ctx.fillStyle=a.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+h.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var u=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}this._clipRow(t),e.isDim()&&(this._ctx.globalAlpha=w.DIM_OPACITY),this._ctx.fillText(e.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},n.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},n.prototype._getFont=function(e,s){return(s?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},n.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var s=this._colors.contrastCache.getColor(e.bg,e.fg);if(s!==void 0)return s||void 0;var t=e.getFgColor(),a=e.getFgColorMode(),l=e.getBgColor(),u=e.getBgColorMode(),f=!!e.isInverse(),p=!!e.isInverse();if(f){var g=t;t=l,l=g;var A=a;a=u,u=A}var y=this._resolveBackgroundRgba(u,l,f),x=this._resolveForegroundRgba(a,t,f,p),T=i.rgba.ensureContrastRatio(y,x,this._optionsService.options.minimumContrastRatio);if(T){var S={css:i.channels.toCss(T>>24&255,T>>16&255,T>>8&255),rgba:T};return this._colors.contrastCache.setColor(e.bg,e.fg,S),S}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},n.prototype._resolveBackgroundRgba=function(e,s,t){switch(e){case 16777216:case 33554432:return this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(e,s,t,a){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&a&&s<8&&(s+=8),this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},n}();E.BaseRenderLayer=o},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.createDecorator=E.getServiceDependencies=E.serviceRegistry=void 0;function v(w,m,h){m.di$target===m?m.di$dependencies.push({id:w,index:h}):(m.di$dependencies=[{id:w,index:h}],m.di$target=m)}E.serviceRegistry=new Map,E.getServiceDependencies=function(w){return w.di$dependencies||[]},E.createDecorator=function(w){if(E.serviceRegistry.has(w))return E.serviceRegistry.get(w);var m=function h(c,i,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");v(h,c,r)};return m.toString=function(){return w},E.serviceRegistry.set(w,m),m}},function(O,E,C){"use strict";function v(w,m,h,c){if(h===void 0&&(h=0),c===void 0&&(c=w.length),h>=w.length)return w;h=(w.length+h)%w.length,c=c>=w.length?w.length:(w.length+c)%w.length;for(var i=h;i<c;++i)w[i]=m;return w}Object.defineProperty(E,"__esModule",{value:!0}),E.concat=E.fillFallback=E.fill=void 0,E.fill=function(w,m,h,c){return w.fill?w.fill(m,h,c):v(w,m,h,c)},E.fillFallback=v,E.concat=function(w,m){var h=new w.constructor(w.length+m.length);return h.set(w),h.set(m,w.length),h}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BufferLine=E.DEFAULT_ATTR_DATA=void 0;var v=C(8),w=C(3),m=C(4),h=C(6);E.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);var c=function(){function i(r,o,n){n===void 0&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*r);for(var e=o||m.CellData.fromCharData([0,w.NULL_CELL_CHAR,w.NULL_CELL_WIDTH,w.NULL_CELL_CODE]),s=0;s<r;++s)this.setCell(s,e);this.length=r}return i.prototype.get=function(r){var o=this._data[3*r+0],n=2097151&o;return[this._data[3*r+1],2097152&o?this._combined[r]:n?v.stringFromCodePoint(n):"",o>>22,2097152&o?this._combined[r].charCodeAt(this._combined[r].length-1):n]},i.prototype.set=function(r,o){this._data[3*r+1]=o[w.CHAR_DATA_ATTR_INDEX],o[w.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[r]=o[1],this._data[3*r+0]=2097152|r|o[w.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*r+0]=o[w.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|o[w.CHAR_DATA_WIDTH_INDEX]<<22},i.prototype.getWidth=function(r){return this._data[3*r+0]>>22},i.prototype.hasWidth=function(r){return 12582912&this._data[3*r+0]},i.prototype.getFg=function(r){return this._data[3*r+1]},i.prototype.getBg=function(r){return this._data[3*r+2]},i.prototype.hasContent=function(r){return 4194303&this._data[3*r+0]},i.prototype.getCodePoint=function(r){var o=this._data[3*r+0];return 2097152&o?this._combined[r].charCodeAt(this._combined[r].length-1):2097151&o},i.prototype.isCombined=function(r){return 2097152&this._data[3*r+0]},i.prototype.getString=function(r){var o=this._data[3*r+0];return 2097152&o?this._combined[r]:2097151&o?v.stringFromCodePoint(2097151&o):""},i.prototype.loadCell=function(r,o){var n=3*r;return o.content=this._data[n+0],o.fg=this._data[n+1],o.bg=this._data[n+2],2097152&o.content&&(o.combinedData=this._combined[r]),268435456&o.bg&&(o.extended=this._extendedAttrs[r]),o},i.prototype.setCell=function(r,o){2097152&o.content&&(this._combined[r]=o.combinedData),268435456&o.bg&&(this._extendedAttrs[r]=o.extended),this._data[3*r+0]=o.content,this._data[3*r+1]=o.fg,this._data[3*r+2]=o.bg},i.prototype.setCellFromCodePoint=function(r,o,n,e,s,t){268435456&s&&(this._extendedAttrs[r]=t),this._data[3*r+0]=o|n<<22,this._data[3*r+1]=e,this._data[3*r+2]=s},i.prototype.addCodepointToCell=function(r,o){var n=this._data[3*r+0];2097152&n?this._combined[r]+=v.stringFromCodePoint(o):(2097151&n?(this._combined[r]=v.stringFromCodePoint(2097151&n)+v.stringFromCodePoint(o),n&=-2097152,n|=2097152):n=o|1<<22,this._data[3*r+0]=n)},i.prototype.insertCells=function(r,o,n,e){if((r%=this.length)&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),o<this.length-r){for(var s=new m.CellData,t=this.length-r-o-1;t>=0;--t)this.setCell(r+o+t,this.loadCell(r+t,s));for(t=0;t<o;++t)this.setCell(r+t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs)},i.prototype.deleteCells=function(r,o,n,e){if(r%=this.length,o<this.length-r){for(var s=new m.CellData,t=0;t<this.length-r-o;++t)this.setCell(r+t,this.loadCell(r+o+t,s));for(t=this.length-o;t<this.length;++t)this.setCell(t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),this.getWidth(r)!==0||this.hasContent(r)||this.setCellFromCodePoint(r,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs)},i.prototype.replaceCells=function(r,o,n,e){for(r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs),o<this.length&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new h.ExtendedAttrs);r<o&&r<this.length;)this.setCell(r++,n)},i.prototype.resize=function(r,o){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 e=this.length;e<r;++e)this.setCell(e,o)}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(e=0;e<s.length;e++){var t=parseInt(s[e],10);t>=r&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},i.prototype.fill=function(r){this._combined={},this._extendedAttrs={};for(var o=0;o<this.length;++o)this.setCell(o,r)},i.prototype.copyFrom=function(r){for(var o 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[o]=r._combined[o];for(var o in this._extendedAttrs={},r._extendedAttrs)this._extendedAttrs[o]=r._extendedAttrs[o];this.isWrapped=r.isWrapped},i.prototype.clone=function(){var r=new i(0);for(var o in r._data=new Uint32Array(this._data),r.length=this.length,this._combined)r._combined[o]=this._combined[o];for(var o in this._extendedAttrs)r._extendedAttrs[o]=this._extendedAttrs[o];return r.isWrapped=this.isWrapped,r},i.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},i.prototype.copyCellsFrom=function(r,o,n,e,s){var t=r._data;if(s)for(var a=e-1;a>=0;a--)for(var l=0;l<3;l++)this._data[3*(n+a)+l]=t[3*(o+a)+l];else for(a=0;a<e;a++)for(l=0;l<3;l++)this._data[3*(n+a)+l]=t[3*(o+a)+l];var u=Object.keys(r._combined);for(l=0;l<u.length;l++){var f=parseInt(u[l],10);f>=o&&(this._combined[f-o+n]=r._combined[f])}},i.prototype.translateToString=function(r,o,n){r===void 0&&(r=!1),o===void 0&&(o=0),n===void 0&&(n=this.length),r&&(n=Math.min(n,this.getTrimmedLength()));for(var e="";o<n;){var s=this._data[3*o+0],t=2097151&s;e+=2097152&s?this._combined[o]:t?v.stringFromCodePoint(t):w.WHITESPACE_CELL_CHAR,o+=s>>22||1}return e},i}();E.BufferLine=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.removeElementFromParent=void 0,E.removeElementFromParent=function(){for(var v,w=[],m=0;m<arguments.length;m++)w[m]=arguments[m];for(var h=0,c=w;h<c.length;h++){var i=c[h];(v=i==null?void 0:i.parentElement)===null||v===void 0||v.removeChild(i)}}},function(O,E,C){"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(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(T,S){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,_){b.__proto__=_}||function(b,_){for(var I in _)_.hasOwnProperty(I)&&(b[I]=_[I])})(T,S)},function(x,T){function S(){this.constructor=x}v(x,T),x.prototype=T===null?Object.create(T):(S.prototype=T.prototype,new S)});Object.defineProperty(E,"__esModule",{value:!0}),E.InputHandler=E.WindowsOptionsReportType=void 0;var m,h=C(12),c=C(20),i=C(39),r=C(2),o=C(15),n=C(8),e=C(16),s=C(0),t=C(3),a=C(4),l=C(6),u=C(22),f=C(24),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function g(x,T){if(x>24)return T.setWinLines||!1;switch(x){case 1:return!!T.restoreWin;case 2:return!!T.minimizeWin;case 3:return!!T.setWinPosition;case 4:return!!T.setWinSizePixels;case 5:return!!T.raiseWin;case 6:return!!T.lowerWin;case 7:return!!T.refreshWin;case 8:return!!T.setWinSizeChars;case 9:return!!T.maximizeWin;case 10:return!!T.fullscreenWin;case 11:return!!T.getWinState;case 13:return!!T.getWinPosition;case 14:return!!T.getWinSizePixels;case 15:return!!T.getScreenSizePixels;case 16:return!!T.getCellSizePixels;case 18:return!!T.getWinSizeChars;case 19:return!!T.getScreenSizeChars;case 20:return!!T.getIconTitle;case 21:return!!T.getWinTitle;case 22:return!!T.pushTitle;case 23:return!!T.popTitle;case 24:return!!T.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(T,S,b,_){this._bufferService=T,this._coreService=S,this._logService=b,this._optionsService=_,this._data=new Uint32Array(0)}return x.prototype.hook=function(T){this._data=new Uint32Array(0)},x.prototype.put=function(T,S,b){this._data=o.concat(this._data,T.subarray(S,b))},x.prototype.unhook=function(T){if(T){var S=n.utf32ToString(this._data);switch(this._data=new Uint32Array(0),S){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",S),this._coreService.triggerDataEvent(h.C0.ESC+"P0$r"+h.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},x}(),y=function(x){function T(S,b,_,I,L,D,N,M,B){B===void 0&&(B=new i.EscapeSequenceParser);var R=x.call(this)||this;R._bufferService=S,R._charsetService=b,R._coreService=_,R._dirtyRowService=I,R._logService=L,R._optionsService=D,R._coreMouseService=N,R._unicodeService=M,R._parser=B,R._parseBuffer=new Uint32Array(4096),R._stringDecoder=new n.StringToUtf32,R._utf8Decoder=new n.Utf8ToUtf32,R._workCell=new a.CellData,R._windowTitle="",R._iconName="",R._windowTitleStack=[],R._iconNameStack=[],R._curAttrData=e.DEFAULT_ATTR_DATA.clone(),R._eraseAttrDataInternal=e.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,V){R._logService.debug("Unknown CSI code: ",{identifier:R._parser.identToString(U),params:V.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,V,z){R._logService.debug("Unknown OSC code: ",{identifier:U,action:V,data:z})}),R._parser.setDcsHandlerFallback(function(U,V,z){V==="HOOK"&&(z=z.toArray()),R._logService.debug("Unknown DCS code: ",{identifier:R._parser.identToString(U),action:V,payload:z})}),R._parser.setPrintHandler(function(U,V,z){return R.print(U,V,z)}),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 H=function(V){F._parser.setEscHandler({intermediates:"(",final:V},function(){return R.selectCharset("("+V)}),F._parser.setEscHandler({intermediates:")",final:V},function(){return R.selectCharset(")"+V)}),F._parser.setEscHandler({intermediates:"*",final:V},function(){return R.selectCharset("*"+V)}),F._parser.setEscHandler({intermediates:"+",final:V},function(){return R.selectCharset("+"+V)}),F._parser.setEscHandler({intermediates:"-",final:V},function(){return R.selectCharset("-"+V)}),F._parser.setEscHandler({intermediates:".",final:V},function(){return R.selectCharset("."+V)}),F._parser.setEscHandler({intermediates:"/",final:V},function(){return R.selectCharset("/"+V)})},F=this;for(var K in c.CHARSETS)H(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 w(T,x),Object.defineProperty(T.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){x.prototype.dispose.call(this)},T.prototype.parse=function(S){var b=this._bufferService.buffer,_=b.x,I=b.y;if(this._logService.debug("parsing data",S),this._parseBuffer.length<S.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(S.length,131072))),this._dirtyRowService.clearRange(),S.length>131072)for(var L=0;L<S.length;L+=131072){var D=L+131072<S.length?L+131072:S.length,N=typeof S=="string"?this._stringDecoder.decode(S.substring(L,D),this._parseBuffer):this._utf8Decoder.decode(S.subarray(L,D),this._parseBuffer);this._parser.parse(this._parseBuffer,N)}else N=typeof S=="string"?this._stringDecoder.decode(S,this._parseBuffer):this._utf8Decoder.decode(S,this._parseBuffer),this._parser.parse(this._parseBuffer,N);(b=this._bufferService.buffer).x===_&&b.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},T.prototype.print=function(S,b,_){var I,L,D=this._bufferService.buffer,N=this._charsetService.charset,M=this._optionsService.options.screenReaderMode,B=this._bufferService.cols,R=this._coreService.decPrivateModes.wraparound,H=this._coreService.modes.insertMode,F=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,F.fg,F.bg,F.extended);for(var U=b;U<_;++U){if(I=S[U],L=this._unicodeService.wcwidth(I),I<127&&N){var V=N[String.fromCharCode(I)];V&&(I=V.charCodeAt(0))}if(M&&this._onA11yChar.fire(n.stringFromCodePoint(I)),L||!D.x){if(D.x+L-1>=B){if(R){for(;D.x<B;)K.setCellFromCodePoint(D.x++,0,1,F.fg,F.bg,F.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=B-1,L===2)continue}if(H&&(K.insertCells(D.x,L,D.getNullCell(F),F),K.getWidth(B-1)===2&&K.setCellFromCodePoint(B-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,F.fg,F.bg,F.extended)),K.setCellFromCodePoint(D.x++,I,L,F.fg,F.bg,F.extended),L>0)for(;--L;)K.setCellFromCodePoint(D.x++,0,0,F.fg,F.bg,F.extended)}else K.getWidth(D.x-1)?K.addCodepointToCell(D.x-1,I):K.addCodepointToCell(D.x-2,I)}_-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<B&&_-b>0&&K.getWidth(D.x)===0&&!K.hasContent(D.x)&&K.setCellFromCodePoint(D.x,0,1,F.fg,F.bg,F.extended),this._dirtyRowService.markDirty(D.y)},T.prototype.addCsiHandler=function(S,b){var _=this;return S.final!=="t"||S.prefix||S.intermediates?this._parser.addCsiHandler(S,b):this._parser.addCsiHandler(S,function(I){return!g(I.params[0],_._optionsService.options.windowOptions)||b(I)})},T.prototype.addDcsHandler=function(S,b){return this._parser.addDcsHandler(S,new f.DcsHandler(b))},T.prototype.addEscHandler=function(S,b){return this._parser.addEscHandler(S,b)},T.prototype.addOscHandler=function(S,b){return this._parser.addOscHandler(S,new u.OscHandler(b))},T.prototype.bell=function(){this._onRequestBell.fire()},T.prototype.lineFeed=function(){var S=this._bufferService.buffer;this._dirtyRowService.markDirty(S.y),this._optionsService.options.convertEol&&(S.x=0),S.y++,S.y===S.scrollBottom+1?(S.y--,this._onRequestScroll.fire(this._eraseAttrData())):S.y>=this._bufferService.rows&&(S.y=this._bufferService.rows-1),S.x>=this._bufferService.cols&&S.x--,this._dirtyRowService.markDirty(S.y),this._onLineFeed.fire()},T.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},T.prototype.backspace=function(){var S,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&&((S=b.lines.get(b.ybase+b.y))===null||S===void 0?void 0:S.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()},T.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var S=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-S)}},T.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},T.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},T.prototype._restrictCursor=function(S){S===void 0&&(S=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(S,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)},T.prototype._setCursor=function(S,b){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=S,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+b):(this._bufferService.buffer.x=S,this._bufferService.buffer.y=b),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype._moveCursor=function(S,b){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+S,this._bufferService.buffer.y+b)},T.prototype.cursorUp=function(S){var b=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;b>=0?this._moveCursor(0,-Math.min(b,S.params[0]||1)):this._moveCursor(0,-(S.params[0]||1))},T.prototype.cursorDown=function(S){var b=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;b>=0?this._moveCursor(0,Math.min(b,S.params[0]||1)):this._moveCursor(0,S.params[0]||1)},T.prototype.cursorForward=function(S){this._moveCursor(S.params[0]||1,0)},T.prototype.cursorBackward=function(S){this._moveCursor(-(S.params[0]||1),0)},T.prototype.cursorNextLine=function(S){this.cursorDown(S),this._bufferService.buffer.x=0},T.prototype.cursorPrecedingLine=function(S){this.cursorUp(S),this._bufferService.buffer.x=0},T.prototype.cursorCharAbsolute=function(S){this._setCursor((S.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.cursorPosition=function(S){this._setCursor(S.length>=2?(S.params[1]||1)-1:0,(S.params[0]||1)-1)},T.prototype.charPosAbsolute=function(S){this._setCursor((S.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.hPositionRelative=function(S){this._moveCursor(S.params[0]||1,0)},T.prototype.linePosAbsolute=function(S){this._setCursor(this._bufferService.buffer.x,(S.params[0]||1)-1)},T.prototype.vPositionRelative=function(S){this._moveCursor(0,S.params[0]||1)},T.prototype.hVPosition=function(S){this.cursorPosition(S)},T.prototype.tabClear=function(S){var b=S.params[0];b===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:b===3&&(this._bufferService.buffer.tabs={})},T.prototype.cursorForwardTab=function(S){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=S.params[0]||1;b--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},T.prototype.cursorBackwardTab=function(S){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=S.params[0]||1,_=this._bufferService.buffer;b--;)_.x=_.prevStop()},T.prototype._eraseInBufferLine=function(S,b,_,I){I===void 0&&(I=!1);var L=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+S);L.replaceCells(b,_,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(L.isWrapped=!1)},T.prototype._resetBufferLine=function(S){var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+S);b.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),b.isWrapped=!1},T.prototype.eraseInDisplay=function(S){var b;switch(this._restrictCursor(),S.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))}},T.prototype.eraseInLine=function(S){switch(this._restrictCursor(),S.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)},T.prototype.insertLines=function(S){this._restrictCursor();var b=S.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){for(var I=_.ybase+_.y,L=this._bufferService.rows-1-_.scrollBottom,D=this._bufferService.rows-1+_.ybase-L+1;b--;)_.lines.splice(D-1,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.deleteLines=function(S){this._restrictCursor();var b=S.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){var I,L=_.ybase+_.y;for(I=this._bufferService.rows-1-_.scrollBottom,I=this._bufferService.rows-1+_.ybase-I;b--;)_.lines.splice(L,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.insertChars=function(S){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.insertCells(this._bufferService.buffer.x,S.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.deleteChars=function(S){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.deleteCells(this._bufferService.buffer.x,S.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.scrollUp=function(S){for(var b=S.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)},T.prototype.scrollDown=function(S){for(var b=S.params[0]||1,_=this._bufferService.buffer;b--;)_.lines.splice(_.ybase+_.scrollBottom,1),_.lines.splice(_.ybase+_.scrollTop,0,_.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},T.prototype.scrollLeft=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.deleteCells(0,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.scrollRight=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.insertCells(0,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.insertColumns=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=this._bufferService.buffer.lines.get(b.ybase+I);L.insertCells(b.x,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.deleteColumns=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var _=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.deleteCells(b.x,_,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},T.prototype.eraseChars=function(S){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+(S.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.repeatPrecedingCharacter=function(S){if(this._parser.precedingCodepoint){for(var b=S.params[0]||1,_=new Uint32Array(b),I=0;I<b;++I)_[I]=this._parser.precedingCodepoint;this.print(_,0,_.length)}},T.prototype.sendDeviceAttributesPrimary=function(S){S.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"))},T.prototype.sendDeviceAttributesSecondary=function(S){S.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(S.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(h.C0.ESC+"[>83;40003;0c"))},T.prototype._is=function(S){return(this._optionsService.options.termName+"").indexOf(S)===0},T.prototype.setMode=function(S){for(var b=0;b<S.length;b++)switch(S.params[b]){case 4:this._coreService.modes.insertMode=!0}},T.prototype.setModePrivate=function(S){for(var b=0;b<S.length;b++)switch(S.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}},T.prototype.resetMode=function(S){for(var b=0;b<S.length;b++)switch(S.params[b]){case 4:this._coreService.modes.insertMode=!1}},T.prototype.resetModePrivate=function(S){for(var b=0;b<S.length;b++)switch(S.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(),S.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}},T.prototype._updateAttrColor=function(S,b,_,I,L){return b===2?(S|=50331648,S&=-16777216,S|=l.AttributeData.fromColorRGB([_,I,L])):b===5&&(S&=-50331904,S|=33554432|255&_),S},T.prototype._extractColor=function(S,b,_){var I=[0,0,-1,0,0,0],L=0,D=0;do{if(I[D+L]=S.params[b+D],S.hasSubParams(b+D)){var N=S.getSubParams(b+D),M=0;do I[1]===5&&(L=1),I[D+M+1+L]=N[M];while(++M<N.length&&M+D+1+L<I.length);break}if(I[1]===5&&D+L>=2||I[1]===2&&D+L>=5)break;I[1]&&(L=1)}while(++D+b<S.length&&D+L<I.length);for(M=2;M<I.length;++M)I[M]===-1&&(I[M]=0);switch(I[0]){case 38:_.fg=this._updateAttrColor(_.fg,I[1],I[3],I[4],I[5]);break;case 48:_.bg=this._updateAttrColor(_.bg,I[1],I[3],I[4],I[5]);break;case 58:_.extended=_.extended.clone(),_.extended.underlineColor=this._updateAttrColor(_.extended.underlineColor,I[1],I[3],I[4],I[5])}return D},T.prototype._processUnderline=function(S,b){b.extended=b.extended.clone(),(!~S||S>5)&&(S=1),b.extended.underlineStyle=S,b.fg|=268435456,S===0&&(b.fg&=-268435457),b.updateExtended()},T.prototype.charAttributes=function(S){if(S.length===1&&S.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var b,_=S.length,I=this._curAttrData,L=0;L<_;L++)(b=S.params[L])>=30&&b<=37?(I.fg&=-50331904,I.fg|=16777216|b-30):b>=40&&b<=47?(I.bg&=-50331904,I.bg|=16777216|b-40):b>=90&&b<=97?(I.fg&=-50331904,I.fg|=16777224|b-90):b>=100&&b<=107?(I.bg&=-50331904,I.bg|=16777224|b-100):b===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):b===1?I.fg|=134217728:b===3?I.bg|=67108864:b===4?(I.fg|=268435456,this._processUnderline(S.hasSubParams(L)?S.getSubParams(L)[0]:1,I)):b===5?I.fg|=536870912:b===7?I.fg|=67108864:b===8?I.fg|=1073741824:b===2?I.bg|=134217728:b===21?this._processUnderline(2,I):b===22?(I.fg&=-134217729,I.bg&=-134217729):b===23?I.bg&=-67108865:b===24?I.fg&=-268435457:b===25?I.fg&=-536870913:b===27?I.fg&=-67108865:b===28?I.fg&=-1073741825:b===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):b===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):b===38||b===48||b===58?L+=this._extractColor(S,L,I):b===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):b===100?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",b)},T.prototype.deviceStatus=function(S){switch(S.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")}},T.prototype.deviceStatusPrivate=function(S){switch(S.params[0]){case 6:var b=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(h.C0.ESC+"[?"+b+";"+_+"R")}},T.prototype.softReset=function(S){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},T.prototype.setCursorStyle=function(S){var b=S.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=_},T.prototype.setScrollRegion=function(S){var b,_=S.params[0]||1;(S.length<2||(b=S.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))},T.prototype.windowOptions=function(S){if(g(S.params[0],this._optionsService.options.windowOptions)){var b=S.length>1?S.params[1]:0;switch(S.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())}}},T.prototype.saveCursor=function(S){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},T.prototype.restoreCursor=function(S){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()},T.prototype.setTitle=function(S){this._windowTitle=S,this._onTitleChange.fire(S)},T.prototype.setIconName=function(S){this._iconName=S},T.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},T.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},T.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},T.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,c.DEFAULT_CHARSET)},T.prototype.selectCharset=function(S){S.length===2?S[0]!=="/"&&this._charsetService.setgCharset(p[S[0]],c.CHARSETS[S[1]]||c.DEFAULT_CHARSET):this.selectDefaultCharset()},T.prototype.index=function(){this._restrictCursor();var S=this._bufferService.buffer;this._bufferService.buffer.y++,S.y===S.scrollBottom+1?(S.y--,this._onRequestScroll.fire(this._eraseAttrData())):S.y>=this._bufferService.rows&&(S.y=this._bufferService.rows-1),this._restrictCursor()},T.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},T.prototype.reverseIndex=function(){this._restrictCursor();var S=this._bufferService.buffer;if(S.y===S.scrollTop){var b=S.scrollBottom-S.scrollTop;S.lines.shiftElements(S.ybase+S.y,b,1),S.lines.set(S.ybase+S.y,S.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}else S.y--,this._restrictCursor()},T.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},T.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},T.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},T.prototype.setgLevel=function(S){this._charsetService.setgLevel(S)},T.prototype.screenAlignmentPattern=function(){var S=new a.CellData;S.content=1<<22|"E".charCodeAt(0),S.fg=this._curAttrData.fg,S.bg=this._curAttrData.bg;var b=this._bufferService.buffer;this._setCursor(0,0);for(var _=0;_<this._bufferService.rows;++_){var I=b.ybase+b.y+_,L=b.lines.get(I);L&&(L.fill(S),L.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},T}(r.Disposable);E.InputHandler=y},function(O,E,C){"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(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Params=void 0;var v=function(){function w(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 w.fromArray=function(m){var h=new w;if(!m.length)return h;for(var c=m[0]instanceof Array?1:0;c<m.length;++c){var i=m[c];if(i instanceof Array)for(var r=0;r<i.length;++r)h.addSubParam(i[r]);else h.addParam(i)}return h},w.prototype.clone=function(){var m=new w(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},w.prototype.toArray=function(){for(var m=[],h=0;h<this.length;++h){m.push(this.params[h]);var c=this._subParamsIdx[h]>>8,i=255&this._subParamsIdx[h];i-c>0&&m.push(Array.prototype.slice.call(this._subParams,c,i))}return m},w.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},w.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}},w.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]++}},w.prototype.hasSubParams=function(m){return(255&this._subParamsIdx[m])-(this._subParamsIdx[m]>>8)>0},w.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},w.prototype.getSubParamsAll=function(){for(var m={},h=0;h<this.length;++h){var c=this._subParamsIdx[h]>>8,i=255&this._subParamsIdx[h];i-c>0&&(m[h]=this._subParams.slice(c,i))}return m},w.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,i=c[h-1];c[h-1]=~i?Math.min(10*i+m,2147483647):m}},w}();E.Params=v},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OscHandler=E.OscParser=void 0;var v=C(23),w=C(8),m=function(){function c(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return c.prototype.addHandler=function(i,r){this._handlers[i]===void 0&&(this._handlers[i]=[]);var o=this._handlers[i];return o.push(r),{dispose:function(){var e=o.indexOf(r);e!==-1&&o.splice(e,1)}}},c.prototype.setHandler=function(i,r){this._handlers[i]=[r]},c.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},c.prototype.setHandlerFallback=function(i){this._handlerFb=i},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 i=this._handlers[this._id];if(i)for(var r=i.length-1;r>=0;r--)i[r].start();else this._handlerFb(this._id,"START")},c.prototype._put=function(i,r,o){var n=this._handlers[this._id];if(n)for(var e=n.length-1;e>=0;e--)n[e].put(i,r,o);else this._handlerFb(this._id,"PUT",w.utf32ToString(i,r,o))},c.prototype._end=function(i){var r=this._handlers[this._id];if(r){for(var o=r.length-1;o>=0&&r[o].end(i)===!1;o--);for(o--;o>=0;o--)r[o].end(!1)}else this._handlerFb(this._id,"END",i)},c.prototype.start=function(){this.reset(),this._id=-1,this._state=1},c.prototype.put=function(i,r,o){if(this._state!==3){if(this._state===1)for(;r<o;){var n=i[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&&o-r>0&&this._put(i,r,o)}},c.prototype.end=function(i){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(i)),this._id=-1,this._state=0)},c}();E.OscParser=m;var h=function(){function c(i){this._handler=i,this._data="",this._hitLimit=!1}return c.prototype.start=function(){this._data="",this._hitLimit=!1},c.prototype.put=function(i,r,o){this._hitLimit||(this._data+=w.utf32ToString(i,r,o),this._data.length>v.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},c.prototype.end=function(i){var r;return this._hitLimit?r=!1:i&&(r=this._handler(this._data)),this._data="",this._hitLimit=!1,r},c}();E.OscHandler=h},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PAYLOAD_LIMIT=void 0,E.PAYLOAD_LIMIT=1e7},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DcsHandler=E.DcsParser=void 0;var v=C(8),w=C(21),m=C(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(o,n){this._handlers[o]===void 0&&(this._handlers[o]=[]);var e=this._handlers[o];return e.push(n),{dispose:function(){var t=e.indexOf(n);t!==-1&&e.splice(t,1)}}},r.prototype.setHandler=function(o,n){this._handlers[o]=[n]},r.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},r.prototype.setHandlerFallback=function(o){this._handlerFb=o},r.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=h,this._ident=0},r.prototype.hook=function(o,n){if(this.reset(),this._ident=o,this._active=this._handlers[o]||h,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(n);else this._handlerFb(this._ident,"HOOK",n)},r.prototype.put=function(o,n,e){if(this._active.length)for(var s=this._active.length-1;s>=0;s--)this._active[s].put(o,n,e);else this._handlerFb(this._ident,"PUT",v.utf32ToString(o,n,e))},r.prototype.unhook=function(o){if(this._active.length){for(var n=this._active.length-1;n>=0&&this._active[n].unhook(o)===!1;n--);for(n--;n>=0;n--)this._active[n].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",o);this._active=h,this._ident=0},r}();E.DcsParser=c;var i=function(){function r(o){this._handler=o,this._data="",this._hitLimit=!1}return r.prototype.hook=function(o){this._params=o.clone(),this._data="",this._hitLimit=!1},r.prototype.put=function(o,n,e){this._hitLimit||(this._data+=v.utf32ToString(o,n,e),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},r.prototype.unhook=function(o){var n;return this._hitLimit?n=!1:o&&(n=this._handler(this._data,this._params||new w.Params)),this._params=void 0,this._data="",this._hitLimit=!1,n},r}();E.DcsHandler=i},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.removeTerminalFromCache=E.acquireCharAtlas=void 0;var v=C(26),w=C(43),m=[];E.acquireCharAtlas=function(h,c,i,r,o){for(var n=v.generateConfig(r,o,h,i),e=0;e<m.length;e++){var s=(t=m[e]).ownedBy.indexOf(c);if(s>=0){if(v.configEquals(t.config,n))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),m.splice(e,1)):t.ownedBy.splice(s,1);break}}for(e=0;e<m.length;e++){var t=m[e];if(v.configEquals(t.config,n))return t.ownedBy.push(c),t.atlas}var a={atlas:new w.DynamicCharAtlas(document,n),config:n,ownedBy:[c]};return m.push(a),a.atlas},E.removeTerminalFromCache=function(h){for(var c=0;c<m.length;c++){var i=m[c].ownedBy.indexOf(h);if(i!==-1){m[c].ownedBy.length===1?(m[c].atlas.dispose(),m.splice(c,1)):m[c].ownedBy.splice(i,1);break}}}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.is256Color=E.configEquals=E.generateConfig=void 0;var v=C(3);E.generateConfig=function(w,m,h,c){var i={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:w,scaledCharHeight:m,fontFamily:h.fontFamily,fontSize:h.fontSize,fontWeight:h.fontWeight,fontWeightBold:h.fontWeightBold,allowTransparency:h.allowTransparency,colors:i}},E.configEquals=function(w,m){for(var h=0;h<w.colors.ansi.length;h++)if(w.colors.ansi[h].rgba!==m.colors.ansi[h].rgba)return!1;return w.devicePixelRatio===m.devicePixelRatio&&w.fontFamily===m.fontFamily&&w.fontSize===m.fontSize&&w.fontWeight===m.fontWeight&&w.fontWeightBold===m.fontWeightBold&&w.allowTransparency===m.allowTransparency&&w.scaledCharWidth===m.scaledCharWidth&&w.scaledCharHeight===m.scaledCharHeight&&w.colors.foreground===m.colors.foreground&&w.colors.background===m.colors.background},E.is256Color=function(w){return w<v.DEFAULT_COLOR}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ColorManager=E.DEFAULT_ANSI_COLORS=void 0;var v=C(10),w=C(45),m=v.css.toColor("#ffffff"),h=v.css.toColor("#000000"),c=v.css.toColor("#ffffff"),i=v.css.toColor("#000000"),r={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};E.DEFAULT_ANSI_COLORS=function(){for(var n=[v.css.toColor("#2e3436"),v.css.toColor("#cc0000"),v.css.toColor("#4e9a06"),v.css.toColor("#c4a000"),v.css.toColor("#3465a4"),v.css.toColor("#75507b"),v.css.toColor("#06989a"),v.css.toColor("#d3d7cf"),v.css.toColor("#555753"),v.css.toColor("#ef2929"),v.css.toColor("#8ae234"),v.css.toColor("#fce94f"),v.css.toColor("#729fcf"),v.css.toColor("#ad7fa8"),v.css.toColor("#34e2e2"),v.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],s=0;s<216;s++){var t=e[s/36%6|0],a=e[s/6%6|0],l=e[s%6];n.push({css:v.channels.toCss(t,a,l),rgba:v.channels.toRgba(t,a,l)})}for(s=0;s<24;s++){var u=8+10*s;n.push({css:v.channels.toCss(u,u,u),rgba:v.channels.toRgba(u,u,u)})}return n}();var o=function(){function n(e,s){this.allowTransparency=s;var t=e.createElement("canvas");t.width=1,t.height=1;var a=t.getContext("2d");if(!a)throw new Error("Could not get rendering context");this._ctx=a,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new w.ColorContrastCache,this.colors={foreground:m,background:h,cursor:c,cursorAccent:i,selectionTransparent:r,selectionOpaque:v.color.blend(h,r),ansi:E.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return n.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},n.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,m),this.colors.background=this._parseColor(e.background,h),this.colors.cursor=this._parseColor(e.cursor,c,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,i,!0),this.colors.selectionTransparent=this._parseColor(e.selection,r,!0),this.colors.selectionOpaque=v.color.blend(this.colors.background,this.colors.selectionTransparent),v.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=v.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,E.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,E.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,E.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,E.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,E.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,E.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,E.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,E.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,E.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,E.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,E.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,E.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,E.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,E.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,E.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,E.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},n.prototype._parseColor=function(e,s,t){if(t===void 0&&(t=this.allowTransparency),e===void 0)return s;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+s.css),s;this._ctx.fillRect(0,0,1,1);var a=this._ctx.getImageData(0,0,1,1).data;if(a[3]!==255){if(!t)return console.warn("Color: "+e+" 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],g=l[3],A=Math.round(255*g);return{rgba:v.channels.toRgba(u,f,p,A),css:e}}return{css:this._ctx.fillStyle,rgba:v.channels.toRgba(a[0],a[1],a[2],a[3])}},n}();E.ColorManager=o},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.throwIfFalsy=void 0,E.throwIfFalsy=function(v){if(!v)throw new Error("value must not be falsy");return v}},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(n,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,t){s.__proto__=t}||function(s,t){for(var a in t)t.hasOwnProperty(a)&&(s[a]=t[a])})(n,e)},function(o,n){function e(){this.constructor=o}v(o,n),o.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(E,"__esModule",{value:!0}),E.CharacterJoinerRegistry=E.JoinedCellData=void 0;var m=C(6),h=C(3),c=C(4),i=function(o){function n(e,s,t){var a=o.call(this)||this;return a.content=0,a.combinedData="",a.fg=e.fg,a.bg=e.bg,a.combinedData=s,a._width=t,a}return w(n,o),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(e){throw new Error("not implemented")},n.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},n}(m.AttributeData);E.JoinedCellData=i;var r=function(){function o(n){this._bufferService=n,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return o.prototype.registerCharacterJoiner=function(n){var e={id:this._nextCharacterJoinerId++,handler:n};return this._characterJoiners.push(e),e.id},o.prototype.deregisterCharacterJoiner=function(n){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===n)return this._characterJoiners.splice(e,1),!0;return!1},o.prototype.getJoinedCharacters=function(n){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(n);if(!e||e.length===0)return[];for(var s=[],t=e.translateToString(!0),a=0,l=0,u=0,f=e.getFg(0),p=e.getBg(0),g=0;g<e.getTrimmedLength();g++)if(e.loadCell(g,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==f||this._workCell.bg!==p){if(g-a>1)for(var A=this._getJoinedRanges(t,u,l,e,a),y=0;y<A.length;y++)s.push(A[y]);a=g,u=l,f=this._workCell.fg,p=this._workCell.bg}l+=this._workCell.getChars().length||h.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-a>1)for(A=this._getJoinedRanges(t,u,l,e,a),y=0;y<A.length;y++)s.push(A[y]);return s},o.prototype._getJoinedRanges=function(n,e,s,t,a){for(var l=n.substring(e,s),u=this._characterJoiners[0].handler(l),f=1;f<this._characterJoiners.length;f++)for(var p=this._characterJoiners[f].handler(l),g=0;g<p.length;g++)o._mergeRanges(u,p[g]);return this._stringRangesToCellRanges(u,t,a),u},o.prototype._stringRangesToCellRanges=function(n,e,s){var t=0,a=!1,l=0,u=n[t];if(u){for(var f=s;f<this._bufferService.cols;f++){var p=e.getWidth(f),g=e.getString(f).length||h.WHITESPACE_CELL_CHAR.length;if(p!==0){if(!a&&u[0]<=l&&(u[0]=f,a=!0),u[1]<=l){if(u[1]=f,!(u=n[++t]))break;u[0]<=l?(u[0]=f,a=!0):a=!1}l+=g}}u&&(u[1]=this._bufferService.cols)}},o._mergeRanges=function(n,e){for(var s=!1,t=0;t<n.length;t++){var a=n[t];if(s){if(e[1]<=a[0])return n[t-1][1]=e[1],n;if(e[1]<=a[1])return n[t-1][1]=Math.max(e[1],a[1]),n.splice(t,1),n;n.splice(t,1),t--}else{if(e[1]<=a[0])return n.splice(t,0,e),n;if(e[1]<=a[1])return a[0]=Math.min(e[0],a[0]),n;e[0]<a[1]&&(a[0]=Math.min(e[0],a[0]),s=!0)}}return s?n[n.length-1][1]=e[1]:n.push(e),n},o}();E.CharacterJoinerRegistry=r},function(O,E,C){"use strict";function v(w,m){var h=m.getBoundingClientRect();return[w.clientX-h.left,w.clientY-h.top]}Object.defineProperty(E,"__esModule",{value:!0}),E.getRawByteCoords=E.getCoords=E.getCoordsRelativeToElement=void 0,E.getCoordsRelativeToElement=v,E.getCoords=function(w,m,h,c,i,r,o,n){if(i){var e=v(w,m);if(e)return e[0]=Math.ceil((e[0]+(n?r/2:0))/r),e[1]=Math.ceil(e[1]/o),e[0]=Math.min(Math.max(e[0],1),h+(n?1:0)),e[1]=Math.min(Math.max(e[1],1),c),e}},E.getRawByteCoords=function(w){if(w)return{x:w[0]+32,y:w[1]+32}}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.RenderDebouncer=void 0;var v=function(){function w(m){this._renderCallback=m}return w.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},w.prototype.refresh=function(m,h,c){var i=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 i._innerRefresh()}))},w.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)}},w}();E.RenderDebouncer=v},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(c,i){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)o.hasOwnProperty(n)&&(r[n]=o[n])})(c,i)},function(h,c){function i(){this.constructor=h}v(h,c),h.prototype=c===null?Object.create(c):(i.prototype=c.prototype,new i)});Object.defineProperty(E,"__esModule",{value:!0}),E.ScreenDprMonitor=void 0;var m=function(h){function c(){var i=h!==null&&h.apply(this,arguments)||this;return i._currentDevicePixelRatio=window.devicePixelRatio,i}return w(c,h),c.prototype.setListener=function(i){var r=this;this._listener&&this.clearListener(),this._listener=i,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 i;this._outerListener&&((i=this._resolutionMediaMatchList)===null||i===void 0||i.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}(C(2).Disposable);E.ScreenDprMonitor=m},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.clone=void 0,E.clone=function v(w,m){if(m===void 0&&(m=5),typeof w!="object")return w;var h=Array.isArray(w)?[]:{};for(var c in w)h[c]=m<=1?w[c]:w[c]?v(w[c],m-1):w[c];return h}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Terminal=void 0;var v=C(4),w=C(35),m=C(18),h=C(0),c=C(83),i=function(){function t(a){this._core=new w.Terminal(a),this._addonManager=new c.AddonManager}return t.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(t.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unicode",{get:function(){return this._checkProposedApi(),new s(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._checkProposedApi(),new o(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),t.prototype.blur=function(){this._core.blur()},t.prototype.focus=function(){this._core.focus()},t.prototype.resize=function(a,l){this._verifyIntegers(a,l),this._core.resize(a,l)},t.prototype.open=function(a){this._core.open(a)},t.prototype.attachCustomKeyEventHandler=function(a){this._core.attachCustomKeyEventHandler(a)},t.prototype.registerLinkMatcher=function(a,l,u){return this._checkProposedApi(),this._core.registerLinkMatcher(a,l,u)},t.prototype.deregisterLinkMatcher=function(a){this._checkProposedApi(),this._core.deregisterLinkMatcher(a)},t.prototype.registerLinkProvider=function(a){return this._checkProposedApi(),this._core.registerLinkProvider(a)},t.prototype.registerCharacterJoiner=function(a){return this._checkProposedApi(),this._core.registerCharacterJoiner(a)},t.prototype.deregisterCharacterJoiner=function(a){this._checkProposedApi(),this._core.deregisterCharacterJoiner(a)},t.prototype.registerMarker=function(a){return this._checkProposedApi(),this._verifyIntegers(a),this._core.addMarker(a)},t.prototype.addMarker=function(a){return this.registerMarker(a)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.select=function(a,l,u){this._verifyIntegers(a,l,u),this._core.select(a,l,u)},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(a,l){this._verifyIntegers(a,l),this._core.selectLines(a,l)},t.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},t.prototype.scrollLines=function(a){this._verifyIntegers(a),this._core.scrollLines(a)},t.prototype.scrollPages=function(a){this._verifyIntegers(a),this._core.scrollPages(a)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(a){this._verifyIntegers(a),this._core.scrollToLine(a)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(a,l){this._core.write(a,l)},t.prototype.writeUtf8=function(a,l){this._core.write(a,l)},t.prototype.writeln=function(a,l){this._core.write(a),this._core.write(`\r
`,l)},t.prototype.paste=function(a){this._core.paste(a)},t.prototype.getOption=function(a){return this._core.optionsService.getOption(a)},t.prototype.setOption=function(a,l){this._core.optionsService.setOption(a,l)},t.prototype.refresh=function(a,l){this._verifyIntegers(a,l),this._core.refresh(a,l)},t.prototype.reset=function(){this._core.reset()},t.prototype.loadAddon=function(a){return this._addonManager.loadAddon(this,a)},Object.defineProperty(t,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];for(var u=0,f=a;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")}},t}();E.Terminal=i;var r=function(){function t(a,l){this._buffer=a,this.type=l}return t.prototype.init=function(a){return this._buffer=a,this},Object.defineProperty(t.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),t.prototype.getLine=function(a){var l=this._buffer.lines.get(a);if(l)return new n(l)},t.prototype.getNullCell=function(){return new v.CellData},t}(),o=function(){function t(a){var l=this;this._buffers=a,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(t.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.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(t.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),t}(),n=function(){function t(a){this._line=a}return Object.defineProperty(t.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),t.prototype.getCell=function(a,l){if(!(a<0||a>=this._line.length))return l?(this._line.loadCell(a,l),l):this._line.loadCell(a,new v.CellData)},t.prototype.translateToString=function(a,l,u){return this._line.translateToString(a,l,u)},t}(),e=function(){function t(a){this._core=a}return t.prototype.registerCsiHandler=function(a,l){return this._core.addCsiHandler(a,function(u){return l(u.toArray())})},t.prototype.addCsiHandler=function(a,l){return this.registerCsiHandler(a,l)},t.prototype.registerDcsHandler=function(a,l){return this._core.addDcsHandler(a,function(u,f){return l(u,f.toArray())})},t.prototype.addDcsHandler=function(a,l){return this.registerDcsHandler(a,l)},t.prototype.registerEscHandler=function(a,l){return this._core.addEscHandler(a,l)},t.prototype.addEscHandler=function(a,l){return this.registerEscHandler(a,l)},t.prototype.registerOscHandler=function(a,l){return this._core.addOscHandler(a,l)},t.prototype.addOscHandler=function(a,l){return this.registerOscHandler(a,l)},t}(),s=function(){function t(a){this._core=a}return t.prototype.register=function(a){this._core.unicodeService.register(a)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(l){this._core.unicodeService.activeVersion=l},enumerable:!1,configurable:!0}),t}()},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(R,H){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,K){F.__proto__=K}||function(F,K){for(var U in K)K.hasOwnProperty(U)&&(F[U]=K[U])})(R,H)},function(B,R){function H(){this.constructor=B}v(B,R),B.prototype=R===null?Object.create(R):(H.prototype=R.prototype,new H)});Object.defineProperty(E,"__esModule",{value:!0}),E.Terminal=void 0;var m=C(36),h=C(37),c=C(38),i=C(12),r=C(19),o=C(40),n=C(50),e=C(51),s=C(11),t=C(7),a=C(18),l=C(54),u=C(55),f=C(56),p=C(57),g=C(59),A=C(0),y=C(16),x=C(27),T=C(60),S=C(5),b=C(61),_=C(62),I=C(63),L=C(64),D=C(65),N=typeof window!="undefined"?window.document:null,M=function(B){function R(H){H===void 0&&(H={});var F=B.call(this,H)||this;return F.browser=s,F._keyDownHandled=!1,F._onCursorMove=new A.EventEmitter,F._onKey=new A.EventEmitter,F._onRender=new A.EventEmitter,F._onSelectionChange=new A.EventEmitter,F._onTitleChange=new A.EventEmitter,F._onFocus=new A.EventEmitter,F._onBlur=new A.EventEmitter,F._onA11yCharEmitter=new A.EventEmitter,F._onA11yTabEmitter=new A.EventEmitter,F._setup(),F.linkifier=F._instantiationService.createInstance(n.Linkifier),F.linkifier2=F.register(F._instantiationService.createInstance(I.Linkifier2)),F.register(F._inputHandler.onRequestBell(function(){return F.bell()})),F.register(F._inputHandler.onRequestRefreshRows(function(K,U){return F.refresh(K,U)})),F.register(F._inputHandler.onRequestReset(function(){return F.reset()})),F.register(F._inputHandler.onRequestScroll(function(K,U){return F.scroll(K,U||void 0)})),F.register(F._inputHandler.onRequestWindowsOptionsReport(function(K){return F._reportWindowsOptions(K)})),F.register(A.forwardEvent(F._inputHandler.onCursorMove,F._onCursorMove)),F.register(A.forwardEvent(F._inputHandler.onTitleChange,F._onTitleChange)),F.register(A.forwardEvent(F._inputHandler.onA11yChar,F._onA11yCharEmitter)),F.register(A.forwardEvent(F._inputHandler.onA11yTab,F._onA11yTabEmitter)),F.register(F._bufferService.onResize(function(K){return F._afterResize(K.cols,K.rows)})),F}return w(R,B),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 H,F,K;this._isDisposed||(B.prototype.dispose.call(this),(H=this._renderService)===null||H===void 0||H.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(K=(F=this.element)===null||F===void 0?void 0:F.parentNode)===null||K===void 0||K.removeChild(this.element))},R.prototype._setup=function(){B.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(H){var F,K,U,V;switch(B.prototype._updateOptions.call(this,H),H){case"fontFamily":case"fontSize":(F=this._renderService)===null||F===void 0||F.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)):((V=this._accessibilityManager)===null||V===void 0||V.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},R.prototype._onTextAreaFocus=function(H){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(i.C0.ESC+"[I"),this.updateCursorStyle(H),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},R.prototype.blur=function(){var H;return(H=this.textarea)===null||H===void 0?void 0:H.blur()},R.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(i.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},R.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var H=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),F=this._bufferService.buffer.y*H,K=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=K+"px",this.textarea.style.top=F+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=H+"px",this.textarea.style.lineHeight=H+"px",this.textarea.style.zIndex="-5"}},R.prototype._initGlobal=function(){var H=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(K){H.hasSelection()&&c.copyHandler(K,H._selectionService)}));var F=function(U){return c.handlePasteEvent(U,H.textarea,H._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",F)),this.register(t.addDisposableDomListener(this.element,"paste",F)),s.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(K){K.button===2&&c.rightClickHandler(K,H.textarea,H.screenElement,H._selectionService,H.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(K){c.rightClickHandler(K,H.textarea,H.screenElement,H._selectionService,H.options.rightClickSelectsWord)})),s.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(K){K.button===1&&c.moveTextAreaUnderMouseCursor(K,H.textarea,H.screenElement)}))},R.prototype._bindKeys=function(){var H=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(F){return H._keyUp(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(F){return H._keyDown(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(F){return H._keyPress(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return H._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(F){return H._compositionHelper.compositionupdate(F)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return H._compositionHelper.compositionend()})),this.register(this.onRender(function(){return H._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(F){return H._queueLinkification(F.start,F.end)}))},R.prototype.open=function(H){var F=this;if(!H)throw new Error("Terminal requires a parent element.");N.body.contains(H)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=H.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"),H.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",a.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(t.addDisposableDomListener(this.textarea,"focus",function(z){return F._onTextAreaFocus(z)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return F._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var U=this._instantiationService.createInstance(L.CoreBrowserService,this.textarea);this._instantiationService.setService(S.ICoreBrowserService,U),this._charSizeService=this._instantiationService.createInstance(b.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.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(z){return F._colorManager.onOptionsChange(z)})),this._colorManager.setTheme(this._theme);var V=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(T.RenderService,V,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(z){return F._onRender.fire(z)})),this.onResize(function(z){return F._renderService.resize(z.cols,z.rows)}),this._soundService=this._instantiationService.createInstance(l.SoundService),this._instantiationService.setService(S.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(_.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,function(z,Y){return F.scrollLines(z,Y)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return F.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){F._renderService.onCursorMove(),F._syncTextArea()})),this.register(this.onResize(function(){return F._renderService.onResize(F.cols,F.rows)})),this.register(this.onBlur(function(){return F._renderService.onBlur()})),this.register(this.onFocus(function(){return F._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return F.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(z){return F.scrollLines(z.amount,z.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return F._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(z){return F._renderService.onSelectionChanged(z.start,z.end,z.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(z){F.textarea.value=z,F.textarea.focus(),F.textarea.select()})),this.register(this.onScroll(function(){F.viewport.syncScrollArea(),F._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return F._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(u.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return F._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(z){return F._selectionService.onMouseDown(z)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new 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(o.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(H){var F,K,U;this._theme=H,(F=this._colorManager)===null||F===void 0||F.setTheme(H),(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 H=this,F=this,K=this.element;function U(ie){var ve,Ee,Le=F._mouseService.getRawByteCoords(ie,F.screenElement,F.cols,F.rows);if(!Le)return!1;switch(ie.overrideType||ie.type){case"mousemove":Ee=32,ie.buttons===void 0?(ve=3,ie.button!==void 0&&(ve=ie.button<3?ie.button:3)):ve=1&ie.buttons?0:4&ie.buttons?1:2&ie.buttons?2:3;break;case"mouseup":Ee=0,ve=ie.button<3?ie.button:3;break;case"mousedown":Ee=1,ve=ie.button<3?ie.button:3;break;case"wheel":ie.deltaY!==0&&(Ee=ie.deltaY<0?0:1),ve=4;break;default:return!1}return!(Ee===void 0||ve===void 0||ve>4)&&F._coreMouseService.triggerMouseEvent({col:Le.x-33,row:Le.y-33,button:ve,action:Ee,ctrl:ie.ctrlKey,alt:ie.altKey,shift:ie.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(ve){return U(ve),ve.buttons||(H._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&H._document.removeEventListener("mousemove",V.mousedrag)),H.cancel(ve)},Y=function(ve){return U(ve),ve.preventDefault(),H.cancel(ve)},q=function(ve){ve.buttons&&U(ve)},ce=function(ve){ve.buttons||U(ve)};this.register(this._coreMouseService.onProtocolChange(function(ie){ie?(H.optionsService.options.logLevel==="debug"&&H._logService.debug("Binding to mouse events:",H._coreMouseService.explainEvents(ie)),H.element.classList.add("enable-mouse-events"),H._selectionService.disable()):(H._logService.debug("Unbinding from mouse events."),H.element.classList.remove("enable-mouse-events"),H._selectionService.enable()),8&ie?V.mousemove||(K.addEventListener("mousemove",ce),V.mousemove=ce):(K.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&ie?V.wheel||(K.addEventListener("wheel",Y,{passive:!1}),V.wheel=Y):(K.removeEventListener("wheel",V.wheel),V.wheel=null),2&ie?V.mouseup||(V.mouseup=z):(H._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&ie?V.mousedrag||(V.mousedrag=q):(H._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(K,"mousedown",function(ie){if(ie.preventDefault(),H.focus(),H._coreMouseService.areMouseEventsActive&&!H._selectionService.shouldForceSelection(ie))return U(ie),V.mouseup&&H._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&H._document.addEventListener("mousemove",V.mousedrag),H.cancel(ie)})),this.register(t.addDisposableDomListener(K,"wheel",function(ie){if(!V.wheel){if(!H.buffer.hasScrollback){var ve=H.viewport.getLinesScrolled(ie);if(ve===0)return;for(var Ee=i.C0.ESC+(H._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ie.deltaY<0?"A":"B"),Le="",He=0;He<Math.abs(ve);He++)Le+=Ee;H._coreService.triggerDataEvent(Le,!0)}}},{passive:!0})),this.register(t.addDisposableDomListener(K,"wheel",function(ie){if(!V.wheel)return H.viewport.onWheel(ie)?void 0:H.cancel(ie)},{passive:!1})),this.register(t.addDisposableDomListener(K,"touchstart",function(ie){if(!H._coreMouseService.areMouseEventsActive)return H.viewport.onTouchStart(ie),H.cancel(ie)},{passive:!0})),this.register(t.addDisposableDomListener(K,"touchmove",function(ie){if(!H._coreMouseService.areMouseEventsActive)return H.viewport.onTouchMove(ie)?void 0:H.cancel(ie)},{passive:!1}))},R.prototype.refresh=function(H,F){var K;(K=this._renderService)===null||K===void 0||K.refreshRows(H,F)},R.prototype._queueLinkification=function(H,F){var K;(K=this.linkifier)===null||K===void 0||K.linkifyRows(H,F)},R.prototype.updateCursorStyle=function(H){this._selectionService&&this._selectionService.shouldColumnSelect(H)?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(H,F){B.prototype.scrollLines.call(this,H,F),this.refresh(0,this.rows-1)},R.prototype.paste=function(H){c.paste(H,this.textarea,this._coreService)},R.prototype.attachCustomKeyEventHandler=function(H){this._customKeyEventHandler=H},R.prototype.registerLinkMatcher=function(H,F,K){var U=this.linkifier.registerLinkMatcher(H,F,K);return this.refresh(0,this.rows-1),U},R.prototype.deregisterLinkMatcher=function(H){this.linkifier.deregisterLinkMatcher(H)&&this.refresh(0,this.rows-1)},R.prototype.registerLinkProvider=function(H){return this.linkifier2.registerLinkProvider(H)},R.prototype.registerCharacterJoiner=function(H){var F=this._renderService.registerCharacterJoiner(H);return this.refresh(0,this.rows-1),F},R.prototype.deregisterCharacterJoiner=function(H){this._renderService.deregisterCharacterJoiner(H)&&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(H){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+H)},R.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},R.prototype.select=function(H,F,K){this._selectionService.setSelection(H,F,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 H;(H=this._selectionService)===null||H===void 0||H.clearSelection()},R.prototype.selectAll=function(){var H;(H=this._selectionService)===null||H===void 0||H.selectAll()},R.prototype.selectLines=function(H,F){var K;(K=this._selectionService)===null||K===void 0||K.selectLines(H,F)},R.prototype._keyDown=function(H){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1)return!1;if(!this._compositionHelper.keydown(H))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var F=g.evaluateKeyboardEvent(H,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(H),F.type===3||F.type===2){var K=this.rows-1;return this.scrollLines(F.type===2?-K:K),this.cancel(H,!0)}return F.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,H)||(F.cancel&&this.cancel(H,!0),!F.key||(F.key!==i.C0.ETX&&F.key!==i.C0.CR||(this.textarea.value=""),this._onKey.fire({key:F.key,domEvent:H}),this._showCursor(),this._coreService.triggerDataEvent(F.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(H,!0)))},R.prototype._isThirdLevelShift=function(H,F){var K=H.isMac&&!this.options.macOptionIsMeta&&F.altKey&&!F.ctrlKey&&!F.metaKey||H.isWindows&&F.altKey&&F.ctrlKey&&!F.metaKey;return F.type==="keypress"?K:K&&(!F.keyCode||F.keyCode>47)},R.prototype._keyUp=function(H){this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1||(function(F){return F.keyCode===16||F.keyCode===17||F.keyCode===18}(H)||this.focus(),this.updateCursorStyle(H))},R.prototype._keyPress=function(H){var F;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1)return!1;if(this.cancel(H),H.charCode)F=H.charCode;else if(H.which===null||H.which===void 0)F=H.keyCode;else{if(H.which===0||H.charCode===0)return!1;F=H.which}return!(!F||(H.altKey||H.ctrlKey||H.metaKey)&&!this._isThirdLevelShift(this.browser,H))&&(F=String.fromCharCode(F),this._onKey.fire({key:F,domEvent:H}),this._showCursor(),this._coreService.triggerDataEvent(F,!0),!0)},R.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},R.prototype.resize=function(H,F){H!==this.cols||F!==this.rows?B.prototype.resize.call(this,H,F):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},R.prototype._afterResize=function(H,F){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 H=1;H<this.rows;H++)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 H,F;this.options.rows=this.rows,this.options.cols=this.cols;var K=this._customKeyEventHandler;this._setup(),B.prototype.reset.call(this),(H=this._selectionService)===null||H===void 0||H.reset(),this._customKeyEventHandler=K,this.refresh(0,this.rows-1),(F=this.viewport)===null||F===void 0||F.syncScrollArea()},R.prototype._reportWindowsOptions=function(H){if(this._renderService)switch(H){case r.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var F=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),K=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(i.C0.ESC+"[4;"+K+";"+F+"t");break;case r.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var U=this._renderService.dimensions.scaledCellWidth.toFixed(0),V=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(i.C0.ESC+"[6;"+V+";"+U+"t")}},R.prototype.cancel=function(H,F){if(this.options.cancelEvents||F)return H.preventDefault(),H.stopPropagation(),!1},R.prototype._visualBell=function(){return!1},R.prototype._soundBell=function(){return this.options.bellStyle==="sound"},R}(D.CoreTerminal);E.Terminal=M},function(O,E,C){"use strict";var v=this&&this.__decorate||function(i,r,o,n){var e,s=arguments.length,t=s<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,r,o,n);else for(var a=i.length-1;a>=0;a--)(e=i[a])&&(t=(s<3?e(t):s>3?e(r,o,t):e(r,o))||t);return s>3&&t&&Object.defineProperty(r,o,t),t},w=this&&this.__param||function(i,r){return function(o,n){r(o,n,i)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CompositionHelper=void 0;var m=C(5),h=C(1),c=function(){function i(r,o,n,e,s,t){this._textarea=r,this._compositionView=o,this._bufferService=n,this._optionsService=e,this._charSizeService=s,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(i.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),i.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},i.prototype.compositionupdate=function(r){var o=this;this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout(function(){o._compositionPosition.end=o._textarea.value.length},0)},i.prototype.compositionend=function(){this._finalizeComposition(!0)},i.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)},i.prototype._finalizeComposition=function(r){var o=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(o._isSendingComposition){o._isSendingComposition=!1;var s=void 0;s=o._isComposing?o._textarea.value.substring(n.start,n.end):o._textarea.value.substring(n.start),o._coreService.triggerDataEvent(s,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},i.prototype._handleAnyTextareaChanges=function(){var r=this,o=this._textarea.value;setTimeout(function(){if(!r._isComposing){var n=r._textarea.value.replace(o,"");n.length>0&&r._coreService.triggerDataEvent(n,!0)}},0)},i.prototype.updateCompositionElements=function(r){var o=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*n,s=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=s+"px",this._compositionView.style.top=e+"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 t=this._compositionView.getBoundingClientRect();this._textarea.style.left=s+"px",this._textarea.style.top=e+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}r||setTimeout(function(){return o.updateCompositionElements(!0)},0)}},i=v([w(2,h.IBufferService),w(3,h.IOptionsService),w(4,m.ICharSizeService),w(5,h.ICoreService)],i)}();E.CompositionHelper=c},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,f=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(f=(u<3?l(f):u>3?l(s,t,f):l(s,t))||f);return u>3&&f&&Object.defineProperty(s,t,f),f},h=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Viewport=void 0;var c=C(2),i=C(7),r=C(5),o=C(1),n=function(e){function s(t,a,l,u,f,p,g){var A=e.call(this)||this;return A._scrollLines=t,A._viewportElement=a,A._scrollArea=l,A._bufferService=u,A._optionsService=f,A._charSizeService=p,A._renderService=g,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(i.addDisposableDomListener(A._viewportElement,"scroll",A._onScroll.bind(A))),setTimeout(function(){return A.syncScrollArea()},0),A}return w(s,e),s.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},s.prototype._refresh=function(t){var a=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return a._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==a&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=a),this._refreshAnimationFrame=null},s.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===a&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},s.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var a=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(a,!0)}},s.prototype._bubbleScroll=function(t,a){var l=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(a<0&&this._viewportElement.scrollTop!==0||a>0&&l<this._lastRecordedBufferHeight)||(t.cancelable&&t.preventDefault(),!1)},s.prototype.onWheel=function(t){var a=this._getPixelsScrolled(t);return a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},s.prototype._getPixelsScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_LINE?a*=this._currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._currentRowHeight*this._bufferService.rows),a},s.prototype.getLinesScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(a/=this._currentRowHeight+0,this._wheelPartialScroll+=a,a=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._bufferService.rows),a},s.prototype._applyScrollModifier=function(t,a){var l=this._optionsService.options.fastScrollModifier;return l==="alt"&&a.altKey||l==="ctrl"&&a.ctrlKey||l==="shift"&&a.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},s.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},s.prototype.onTouchMove=function(t){var a=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},s=m([h(3,o.IBufferService),h(4,o.IOptionsService),h(5,r.ICharSizeService),h(6,r.IRenderService)],s)}(c.Disposable);E.Viewport=n},function(O,E,C){"use strict";function v(c){return c.replace(/\r?\n/g,"\r")}function w(c,i){return i?"[200~"+c+"[201~":c}function m(c,i,r){c=w(c=v(c),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(c,!0),i.value=""}function h(c,i,r){var o=r.getBoundingClientRect(),n=c.clientX-o.left-10,e=c.clientY-o.top-10;i.style.width="20px",i.style.height="20px",i.style.left=n+"px",i.style.top=e+"px",i.style.zIndex="1000",i.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=v,E.bracketTextForPaste=w,E.copyHandler=function(c,i){c.clipboardData&&c.clipboardData.setData("text/plain",i.selectionText),c.preventDefault()},E.handlePasteEvent=function(c,i,r){c.stopPropagation(),c.clipboardData&&m(c.clipboardData.getData("text/plain"),i,r)},E.paste=m,E.moveTextAreaUnderMouseCursor=h,E.rightClickHandler=function(c,i,r,o,n){h(c,i,r),n&&!o.isClickInSelection(c)&&o.selectWordAtCursor(c),i.value=o.selectionText,i.select()}},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)});Object.defineProperty(E,"__esModule",{value:!0}),E.EscapeSequenceParser=E.VT500_TRANSITION_TABLE=E.TransitionTable=void 0;var m=C(2),h=C(15),c=C(21),i=C(22),r=C(24),o=function(){function e(s){this.table=new Uint8Array(s)}return e.prototype.setDefault=function(s,t){h.fill(this.table,s<<4|t)},e.prototype.add=function(s,t,a,l){this.table[t<<8|s]=a<<4|l},e.prototype.addMany=function(s,t,a,l){for(var u=0;u<s.length;u++)this.table[t<<8|s[u]]=a<<4|l},e}();E.TransitionTable=o,E.VT500_TRANSITION_TABLE=function(){var e=new o(4095),s=Array.apply(null,Array(256)).map(function(p,g){return g}),t=function(g,A){return s.slice(g,A)},a=t(32,127),l=t(0,24);l.push(25),l.push.apply(l,t(28,32));var u,f=t(0,14);for(u in e.setDefault(1,0),e.addMany(a,0,2,0),f)e.addMany([24,26,153,154],u,3,0),e.addMany(t(128,144),u,3,0),e.addMany(t(144,152),u,3,0),e.add(156,u,0,0),e.add(27,u,11,1),e.add(157,u,4,8),e.addMany([152,158,159],u,0,7),e.add(155,u,11,3),e.add(144,u,11,9);return e.addMany(l,0,3,0),e.addMany(l,1,3,1),e.add(127,1,0,1),e.addMany(l,8,0,8),e.addMany(l,3,3,3),e.add(127,3,0,3),e.addMany(l,4,3,4),e.add(127,4,0,4),e.addMany(l,6,3,6),e.addMany(l,5,3,5),e.add(127,5,0,5),e.addMany(l,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(a,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(a,7,0,7),e.addMany(l,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(l,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(l,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(l,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(l,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(l,13,13,13),e.addMany(a,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var n=function(e){function s(t){t===void 0&&(t=E.VT500_TRANSITION_TABLE);var a=e.call(this)||this;return a._transitions=t,a.initialState=0,a.currentState=a.initialState,a._params=new c.Params,a._params.addParam(0),a._collect=0,a.precedingCodepoint=0,a._printHandlerFb=function(l,u,f){},a._executeHandlerFb=function(l){},a._csiHandlerFb=function(l,u){},a._escHandlerFb=function(l){},a._errorHandlerFb=function(l){return l},a._printHandler=a._printHandlerFb,a._executeHandlers=Object.create(null),a._csiHandlers=Object.create(null),a._escHandlers=Object.create(null),a._oscParser=new i.OscParser,a._dcsParser=new r.DcsParser,a._errorHandler=a._errorHandlerFb,a.setEscHandler({final:"\\"},function(){}),a}return w(s,e),s.prototype._identifier=function(t,a){a===void 0&&(a=[64,126]);var l=0;if(t.prefix){if(t.prefix.length>1)throw new Error("only one byte as prefix supported");if((l=t.prefix.charCodeAt(0))&&60>l||l>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var u=0;u<t.intermediates.length;++u){var f=t.intermediates.charCodeAt(u);if(32>f||f>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");l<<=8,l|=f}}if(t.final.length!==1)throw new Error("final must be a single byte");var p=t.final.charCodeAt(0);if(a[0]>p||p>a[1])throw new Error("final must be in range "+a[0]+" .. "+a[1]);return l<<=8,l|=p},s.prototype.identToString=function(t){for(var a=[];t;)a.push(String.fromCharCode(255&t)),t>>=8;return a.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(t){this._printHandler=t},s.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},s.prototype.addEscHandler=function(t,a){var l=this._identifier(t,[48,126]);this._escHandlers[l]===void 0&&(this._escHandlers[l]=[]);var u=this._escHandlers[l];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},s.prototype.setEscHandler=function(t,a){this._escHandlers[this._identifier(t,[48,126])]=[a]},s.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},s.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},s.prototype.setExecuteHandler=function(t,a){this._executeHandlers[t.charCodeAt(0)]=a},s.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},s.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},s.prototype.addCsiHandler=function(t,a){var l=this._identifier(t);this._csiHandlers[l]===void 0&&(this._csiHandlers[l]=[]);var u=this._csiHandlers[l];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},s.prototype.setCsiHandler=function(t,a){this._csiHandlers[this._identifier(t)]=[a]},s.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},s.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},s.prototype.addDcsHandler=function(t,a){return this._dcsParser.addHandler(this._identifier(t),a)},s.prototype.setDcsHandler=function(t,a){this._dcsParser.setHandler(this._identifier(t),a)},s.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},s.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},s.prototype.addOscHandler=function(t,a){return this._oscParser.addHandler(t,a)},s.prototype.setOscHandler=function(t,a){this._oscParser.setHandler(t,a)},s.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},s.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},s.prototype.setErrorHandler=function(t){this._errorHandler=t},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(t,a){for(var l=0,u=0,f=this.currentState,p=this._oscParser,g=this._dcsParser,A=this._collect,y=this._params,x=this._transitions.table,T=0;T<a;++T){switch((u=x[f<<8|((l=t[T])<160?l:160)])>>4){case 2:for(var S=T+1;;++S){if(S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(l=t[S])<32||l>126&&l<160){this._printHandler(t,T,S),T=S-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:T,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(++T<a&&(l=t[T])>47&&l<60);T--;break;case 9:A<<=8,A|=l;break;case 10:for(var I=this._escHandlers[A<<8|l],L=I?I.length-1:-1;L>=0&&I[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:g.hook(A<<8|l,y);break;case 13:for(var D=T+1;;++D)if(D>=a||(l=t[D])===24||l===26||l===27||l>127&&l<160){g.put(t,T,D),T=D-1;break}break;case 14:g.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=T+1;;N++)if(N>=a||(l=t[N])<32||l>127&&l<=159){p.put(t,T,N),T=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(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(g,A){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var T in x)x.hasOwnProperty(T)&&(y[T]=x[T])})(g,A)},function(p,g){function A(){this.constructor=p}v(p,g),p.prototype=g===null?Object.create(g):(A.prototype=g.prototype,new A)}),m=this&&this.__decorate||function(p,g,A,y){var x,T=arguments.length,S=T<3?g:y===null?y=Object.getOwnPropertyDescriptor(g,A):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(p,g,A,y);else for(var b=p.length-1;b>=0;b--)(x=p[b])&&(S=(T<3?x(S):T>3?x(g,A,S):x(g,A))||S);return T>3&&S&&Object.defineProperty(g,A,S),S},h=this&&this.__param||function(p,g){return function(A,y){g(A,y,p)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Renderer=void 0;var c=C(41),i=C(47),r=C(48),o=C(49),n=C(29),e=C(2),s=C(5),t=C(1),a=C(25),l=C(0),u=1,f=function(p){function g(A,y,x,T,S,b,_,I,L){var D=p.call(this)||this;D._colors=A,D._screenElement=y,D._bufferService=S,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 i.SelectionRenderLayer(D._screenElement,1,D._colors,D._id,D._bufferService,_),new o.LinkRenderLayer(D._screenElement,2,D._colors,D._id,x,T,D._bufferService,_),new r.CursorRenderLayer(D._screenElement,3,D._colors,D._id,D._onRequestRedraw,D._bufferService,_,I,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 w(g,p),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){for(var A=0,y=this._renderLayers;A<y.length;A++)y[A].dispose();p.prototype.dispose.call(this),a.removeTerminalFromCache(this._id)},g.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},g.prototype.setColors=function(A){this._colors=A;for(var y=0,x=this._renderLayers;y<x.length;y++){var T=x[y];T.setColors(this._colors),T.reset()}},g.prototype.onResize=function(A,y){this._updateDimensions();for(var x=0,T=this._renderLayers;x<T.length;x++)T[x].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},g.prototype.onBlur=function(){this._runOperation(function(A){return A.onBlur()})},g.prototype.onFocus=function(){this._runOperation(function(A){return A.onFocus()})},g.prototype.onSelectionChanged=function(A,y,x){x===void 0&&(x=!1),this._runOperation(function(T){return T.onSelectionChanged(A,y,x)})},g.prototype.onCursorMove=function(){this._runOperation(function(A){return A.onCursorMove()})},g.prototype.onOptionsChanged=function(){this._runOperation(function(A){return A.onOptionsChanged()})},g.prototype.clear=function(){this._runOperation(function(A){return A.reset()})},g.prototype._runOperation=function(A){for(var y=0,x=this._renderLayers;y<x.length;y++)A(x[y])},g.prototype.renderRows=function(A,y){for(var x=0,T=this._renderLayers;x<T.length;x++)T[x].onGridChanged(A,y)},g.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)},g.prototype.registerCharacterJoiner=function(A){return this._characterJoinerRegistry.registerCharacterJoiner(A)},g.prototype.deregisterCharacterJoiner=function(A){return this._characterJoinerRegistry.deregisterCharacterJoiner(A)},g=m([h(4,t.IBufferService),h(5,s.ICharSizeService),h(6,t.IOptionsService),h(7,t.ICoreService),h(8,s.ICoreBrowserService)],g)}(e.Disposable);E.Renderer=f},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)});Object.defineProperty(E,"__esModule",{value:!0}),E.TextRenderLayer=void 0;var m=C(42),h=C(13),c=C(6),i=C(3),r=C(29),o=C(4),n=function(e){function s(t,a,l,u,f,p,g,A){var y=e.call(this,t,"text",a,f,l,p,g,A)||this;return y._characterWidth=0,y._characterFont="",y._characterOverlapCache={},y._workCell=new o.CellData,y._state=new m.GridCache,y._characterJoinerRegistry=u,y}return w(s,e),s.prototype.resize=function(t){e.prototype.resize.call(this,t);var a=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===a||(this._characterWidth=t.scaledCharWidth,this._characterFont=a,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(t,a,l,u){for(var f=t;f<=a;f++)for(var p=f+this._bufferService.buffer.ydisp,g=this._bufferService.buffer.lines.get(p),A=l?l.getJoinedCharacters(p):[],y=0;y<this._bufferService.cols;y++){g.loadCell(y,this._workCell);var x=this._workCell,T=!1,S=y;if(x.getWidth()!==0){if(A.length>0&&y===A[0][0]){T=!0;var b=A.shift();x=new r.JoinedCellData(this._workCell,g.translateToString(!0,b[0],b[1]),b[1]-b[0]),S=b[1]-1}!T&&this._isOverlapping(x)&&S<g.length-1&&g.getCodePoint(S+1)===i.NULL_CELL_CODE&&(x.content&=-12582913,x.content|=2<<22),u(x,y,f),y=S}}},s.prototype._drawBackground=function(t,a){var l=this,u=this._ctx,f=this._bufferService.cols,p=0,g=0,A=null;u.save(),this._forEachCell(t,a,null,function(y,x,T){var S=null;y.isInverse()?S=y.isFgDefault()?l._colors.foreground.css:y.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(y.getFgColor()).join(",")+")":l._colors.ansi[y.getFgColor()].css:y.isBgRGB()?S="rgb("+c.AttributeData.toColorRGB(y.getBgColor()).join(",")+")":y.isBgPalette()&&(S=l._colors.ansi[y.getBgColor()].css),A===null&&(p=x,g=T),T!==g?(u.fillStyle=A||"",l._fillCells(p,g,f-p,1),p=x,g=T):A!==S&&(u.fillStyle=A||"",l._fillCells(p,g,x-p,1),p=x,g=T),A=S}),A!==null&&(u.fillStyle=A,this._fillCells(p,g,f-p,1)),u.restore()},s.prototype._drawForeground=function(t,a){var l=this;this._forEachCell(t,a,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 g=u.getBgColor();l._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&g<8&&(g+=8),l._ctx.fillStyle=l._colors.ansi[g].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(t,a){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,t,this._bufferService.cols,a-t+1),this._drawBackground(t,a),this._drawForeground(t,a))},s.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},s.prototype._isOverlapping=function(t){if(t.getWidth()!==1)return!1;if(t.getCode()<256)return!1;var a=t.getChars();if(this._characterOverlapCache.hasOwnProperty(a))return this._characterOverlapCache[a];this._ctx.save(),this._ctx.font=this._characterFont;var l=Math.floor(this._ctx.measureText(a).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[a]=l,l},s}(h.BaseRenderLayer);E.TextRenderLayer=n},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.GridCache=void 0;var v=function(){function w(){this.cache=[]}return w.prototype.resize=function(m,h){for(var c=0;c<m;c++){this.cache.length<=c&&this.cache.push([]);for(var i=this.cache[c].length;i<h;i++)this.cache[c].push(void 0);this.cache[c].length=h}this.cache.length=m},w.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},w}();E.GridCache=v},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(u,f){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var A in g)g.hasOwnProperty(A)&&(p[A]=g[A])})(u,f)},function(l,u){function f(){this.constructor=l}v(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=C(9),h=C(44),c=C(27),i=C(46),r=C(11),o=C(28),n=C(10),e={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 t=function(l){function u(f,p){var g=l.call(this)||this;g._config=p,g._drawToCacheCount=0,g._glyphsWaitingOnBitmap=[],g._bitmapCommitTimeout=null,g._bitmap=null,g._cacheCanvas=f.createElement("canvas"),g._cacheCanvas.width=1024,g._cacheCanvas.height=1024,g._cacheCtx=o.throwIfFalsy(g._cacheCanvas.getContext("2d",{alpha:!0}));var A=f.createElement("canvas");A.width=g._config.scaledCharWidth,A.height=g._config.scaledCharHeight,g._tmpCtx=o.throwIfFalsy(A.getContext("2d",{alpha:g._config.allowTransparency})),g._width=Math.floor(1024/g._config.scaledCharWidth),g._height=Math.floor(1024/g._config.scaledCharHeight);var y=g._width*g._height;return g._cacheMap=new i.LRUMap(y),g._cacheMap.prealloc(y),g}return w(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,g,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,g,A),!0;if(this._drawToCacheCount<100){var T=void 0;T=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var S=this._drawToCache(p,T);return this._cacheMap.set(y,S),this._drawFromCache(f,S,g,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,g,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,g,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?e: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 g=this._getBackgroundColor(f);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=g.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),T=!1;this._config.allowTransparency||(T=function(I,L){for(var D=!0,N=L.rgba>>>24,M=L.rgba>>>16&255,B=L.rgba>>>8&255,R=0;R<I.data.length;R+=4)I.data[R]===N&&I.data[R+1]===M&&I.data[R+2]===B?I.data[R+3]=0:D=!1;return D}(x,g));var S=this._toCoordinateX(p),b=this._toCoordinateY(p);this._cacheCtx.putImageData(x,S,b);var _={index:p,isEmpty:T,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(g){f._bitmap=g;for(var A=0;A<p.length;A++)p[A].inBitmap=!0}),this._bitmapCommitTimeout=null},u}(h.BaseCharAtlas);E.DynamicCharAtlas=t;var a=function(l){function u(f,p){return l.call(this)||this}return w(u,l),u.prototype.draw=function(f,p,g,A){return!1},u}(h.BaseCharAtlas);E.NoneCharAtlas=a},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BaseCharAtlas=void 0;var v=function(){function w(){this._didWarmUp=!1}return w.prototype.dispose=function(){},w.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},w.prototype._doWarmUp=function(){},w.prototype.beginFrame=function(){},w}();E.BaseCharAtlas=v},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ColorContrastCache=void 0;var v=function(){function w(){this._color={},this._rgba={}}return w.prototype.clear=function(){this._color={},this._rgba={}},w.prototype.setCss=function(m,h,c){this._rgba[m]||(this._rgba[m]={}),this._rgba[m][h]=c},w.prototype.getCss=function(m,h){return this._rgba[m]?this._rgba[m][h]:void 0},w.prototype.setColor=function(m,h,c){this._color[m]||(this._color[m]={}),this._color[m][h]=c},w.prototype.getColor=function(m,h){return this._color[m]?this._color[m][h]:void 0},w}();E.ColorContrastCache=v},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.LRUMap=void 0;var v=function(){function w(m){this.capacity=m,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return w.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)},w.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)},w.prototype.prealloc=function(m){for(var h=this._nodePool,c=0;c<m;c++)h.push({prev:null,next:null,key:null,value:null})},w.prototype.get=function(m){var h=this._map[m];return h!==void 0?(this._unlinkNode(h),this._appendNode(h),h.value):null},w.prototype.peekValue=function(m){var h=this._map[m];return h!==void 0?h.value:null},w.prototype.peek=function(){var m=this._head;return m===null?null:m.value},w.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 i=this._nodePool;i.length>0?((c=i.pop()).key=m,c.value=h):c={prev:null,next:null,key:m,value:h},this._map[m]=c,this.size++}this._appendNode(c)},w}();E.LRUMap=v},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(c,i){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)o.hasOwnProperty(n)&&(r[n]=o[n])})(c,i)},function(h,c){function i(){this.constructor=h}v(h,c),h.prototype=c===null?Object.create(c):(i.prototype=c.prototype,new i)});Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionRenderLayer=void 0;var m=function(h){function c(i,r,o,n,e,s){var t=h.call(this,i,"selection",r,!0,o,n,e,s)||this;return t._clearState(),t}return w(c,h),c.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},c.prototype.resize=function(i){h.prototype.resize.call(this,i),this._clearState()},c.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},c.prototype.onSelectionChanged=function(i,r,o){if(this._didStateChange(i,r,o,this._bufferService.buffer.ydisp))if(this._clearAll(),i&&r){var n=i[1]-this._bufferService.buffer.ydisp,e=r[1]-this._bufferService.buffer.ydisp,s=Math.max(n,0),t=Math.min(e,this._bufferService.rows-1);if(!(s>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,o){var a=i[0],l=r[0]-a,u=t-s+1;this._fillCells(a,s,l,u)}else{a=n===s?i[0]:0;var f=s===t?r[0]:this._bufferService.cols;this._fillCells(a,s,f-a,1);var p=Math.max(t-s-1,0);if(this._fillCells(0,s+1,this._bufferService.cols,p),s!==t){var g=e===t?r[0]:this._bufferService.cols;this._fillCells(0,t,g,1)}}this._state.start=[i[0],i[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=o,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},c.prototype._didStateChange=function(i,r,o,n){return!this._areCoordinatesEqual(i,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||o!==this._state.columnSelectMode||n!==this._state.ydisp},c.prototype._areCoordinatesEqual=function(i,r){return!(!i||!r)&&i[0]===r[0]&&i[1]===r[1]},c}(C(13).BaseRenderLayer);E.SelectionRenderLayer=m},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(o,n){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(o,n)},function(r,o){function n(){this.constructor=r}v(r,o),r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)});Object.defineProperty(E,"__esModule",{value:!0}),E.CursorRenderLayer=void 0;var m=C(13),h=C(4),c=function(r){function o(n,e,s,t,a,l,u,f,p){var g=r.call(this,n,"cursor",e,!0,s,t,l,u)||this;return g._onRequestRedraw=a,g._coreService=f,g._coreBrowserService=p,g._cell=new h.CellData,g._state={x:0,y:0,isFocused:!1,style:"",width:0},g._cursorRenderers={bar:g._renderBarCursor.bind(g),block:g._renderBlockCursor.bind(g),underline:g._renderUnderlineCursor.bind(g)},g}return w(o,r),o.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},o.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},o.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},o.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},o.prototype.onOptionsChanged=function(){var n,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new i(this._coreBrowserService.isFocused,function(){e._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})},o.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},o.prototype.onGridChanged=function(n,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},o.prototype._render=function(n){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,s=e-this._bufferService.buffer.ydisp;if(s<0||s>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var a=this._optionsService.options.cursorStyle;return a&&a!=="block"?this._cursorRenderers[a](t,s,this._cell):this._renderBlurCursor(t,s,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=s,this._state.isFocused=!1,this._state.style=a,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&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"](t,s,this._cell),this._ctx.restore(),this._state.x=t,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()},o.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})},o.prototype._renderBarCursor=function(n,e,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(n,e,this._optionsService.options.cursorWidth),this._ctx.restore()},o.prototype._renderBlockCursor=function(n,e,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,e,s.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(s,n,e),this._ctx.restore()},o.prototype._renderUnderlineCursor=function(n,e,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,e),this._ctx.restore()},o.prototype._renderBlurCursor=function(n,e,s){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,e,s.getWidth(),1),this._ctx.restore()},o}(m.BaseRenderLayer);E.CursorRenderLayer=c;var i=function(){function r(o,n){this._renderCallback=n,this.isCursorVisible=!0,o&&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 o=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){o._renderCallback(),o._animationFrame=void 0})))},r.prototype._restartInterval=function(o){var n=this;o===void 0&&(o=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(n._animationTimeRestarted){var e=600-(Date.now()-n._animationTimeRestarted);if(n._animationTimeRestarted=void 0,e>0)return void n._restartInterval(e)}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)},o)},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(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(o,n){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(o,n)},function(r,o){function n(){this.constructor=r}v(r,o),r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)});Object.defineProperty(E,"__esModule",{value:!0}),E.LinkRenderLayer=void 0;var m=C(13),h=C(9),c=C(26),i=function(r){function o(n,e,s,t,a,l,u,f){var p=r.call(this,n,"link",e,!0,s,t,u,f)||this;return a.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),a.onHideLinkUnderline(function(g){return p._onHideLinkUnderline(g)}),l.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),l.onHideLinkUnderline(function(g){return p._onHideLinkUnderline(g)}),p}return w(o,r),o.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state=void 0},o.prototype.reset=function(){this._clearCurrentLink()},o.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}},o.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 e=n.y1+1;e<n.y2;e++)this._fillBottomLineAtCells(0,e,n.cols);this._fillBottomLineAtCells(0,n.y2,n.x2)}this._state=n},o.prototype._onHideLinkUnderline=function(n){this._clearCurrentLink()},o}(m.BaseRenderLayer);E.LinkRenderLayer=i},function(O,E,C){"use strict";var v=this&&this.__decorate||function(r,o,n,e){var s,t=arguments.length,a=t<3?o:e===null?e=Object.getOwnPropertyDescriptor(o,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,o,n,e);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(t<3?s(a):t>3?s(o,n,a):s(o,n))||a);return t>3&&a&&Object.defineProperty(o,n,a),a},w=this&&this.__param||function(r,o){return function(n,e){o(n,e,r)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseZone=E.Linkifier=void 0;var m=C(0),h=C(1),c=function(){function r(o,n,e){this._bufferService=o,this._logService=n,this._unicodeService=e,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(o,n){this._element=o,this._mouseZoneManager=n},r.prototype.linkifyRows=function(o,n){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=o,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,o),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(o,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var o=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var n=o.ydisp+this._rowsToLinkify.start;if(!(n>=o.lines.length)){for(var e=o.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,s=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,n,e,s,s);t.hasNext();)for(var a=t.next(),l=0;l<this._linkMatchers.length;l++)this._doLinkifyRow(a.range.first,a.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(o,n,e){if(e===void 0&&(e={}),!n)throw new Error("handler must be defined");var s={id:this._nextLinkMatcherId++,regex:o,handler:n,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(s),s.id},r.prototype._addLinkMatcherToList=function(o){if(this._linkMatchers.length!==0){for(var n=this._linkMatchers.length-1;n>=0;n--)if(o.priority<=this._linkMatchers[n].priority)return void this._linkMatchers.splice(n+1,0,o);this._linkMatchers.splice(0,0,o)}else this._linkMatchers.push(o)},r.prototype.deregisterLinkMatcher=function(o){for(var n=0;n<this._linkMatchers.length;n++)if(this._linkMatchers[n].id===o)return this._linkMatchers.splice(n,1),!0;return!1},r.prototype._doLinkifyRow=function(o,n,e){for(var s,t=this,a=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),l=-1,u=function(){var g=s[typeof e.matchIndex!="number"?0:e.matchIndex];if(!g)return f._logService.debug("match found without corresponding matchIndex",s,e),"break";if(l=n.indexOf(g,l+1),a.lastIndex=l+g.length,l<0)return"break";var A=f._bufferService.buffer.stringIndexToBufferIndex(o,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]),T=x?x>>9&511:void 0;e.validationCallback?e.validationCallback(g,function(S){t._rowsTimeoutId||S&&t._addLink(A[1],A[0]-t._bufferService.buffer.ydisp,g,e,T)}):f._addLink(A[1],A[0]-f._bufferService.buffer.ydisp,g,e,T)},f=this;(s=a.exec(n))!==null&&!(u()==="break"););},r.prototype._addLink=function(o,n,e,s,t){var a=this;if(this._mouseZoneManager&&this._element){var l=this._unicodeService.getStringCellWidth(e),u=o%this._bufferService.cols,f=n+Math.floor(o/this._bufferService.cols),p=(u+l)%this._bufferService.cols,g=f+Math.floor((u+l)/this._bufferService.cols);p===0&&(p=this._bufferService.cols,g--),this._mouseZoneManager.add(new i(u+1,f+1,p+1,g+1,function(A){if(s.handler)return s.handler(A,e);var y=window.open();y?(y.opener=null,y.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){a._onShowLinkUnderline.fire(a._createLinkHoverEvent(u,f,p,g,t)),a._element.classList.add("xterm-cursor-pointer")},function(A){a._onLinkTooltip.fire(a._createLinkHoverEvent(u,f,p,g,t)),s.hoverTooltipCallback&&s.hoverTooltipCallback(A,e,{start:{x:u,y:f},end:{x:p,y:g}})},function(){a._onHideLinkUnderline.fire(a._createLinkHoverEvent(u,f,p,g,t)),a._element.classList.remove("xterm-cursor-pointer"),s.hoverLeaveCallback&&s.hoverLeaveCallback()},function(A){return!s.willLinkActivate||s.willLinkActivate(A,e)}))}},r.prototype._createLinkHoverEvent=function(o,n,e,s,t){return{x1:o,y1:n,x2:e,y2:s,cols:this._bufferService.cols,fg:t}},r._timeBeforeLatency=200,r=v([w(0,h.IBufferService),w(1,h.ILogService),w(2,h.IUnicodeService)],r)}();E.Linkifier=c;var i=function(o,n,e,s,t,a,l,u,f){this.x1=o,this.y1=n,this.x2=e,this.y2=s,this.clickCallback=t,this.hoverCallback=a,this.tooltipCallback=l,this.leaveCallback=u,this.willLinkActivate=f};E.MouseZone=i},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(g,A){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var T in x)x.hasOwnProperty(T)&&(y[T]=x[T])})(g,A)},function(p,g){function A(){this.constructor=p}v(p,g),p.prototype=g===null?Object.create(g):(A.prototype=g.prototype,new A)}),m=this&&this.__decorate||function(p,g,A,y){var x,T=arguments.length,S=T<3?g:y===null?y=Object.getOwnPropertyDescriptor(g,A):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(p,g,A,y);else for(var b=p.length-1;b>=0;b--)(x=p[b])&&(S=(T<3?x(S):T>3?x(g,A,S):x(g,A))||S);return T>3&&S&&Object.defineProperty(g,A,S),S},h=this&&this.__param||function(p,g){return function(A,y){g(A,y,p)}};Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionService=void 0;var c=C(11),i=C(52),r=C(4),o=C(0),n=C(5),e=C(1),s=C(30),t=C(53),a=C(2),l=String.fromCharCode(160),u=new RegExp(l,"g"),f=function(p){function g(A,y,x,T,S,b,_){var I=p.call(this)||this;return I._element=A,I._screenElement=y,I._bufferService=x,I._coreService=T,I._mouseService=S,I._optionsService=b,I._renderService=_,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new r.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new o.EventEmitter),I._onRedrawRequest=I.register(new o.EventEmitter),I._onSelectionChange=I.register(new o.EventEmitter),I._onRequestScrollLines=I.register(new o.EventEmitter),I._mouseMoveListener=function(L){return I._onMouseMove(L)},I._mouseUpListener=function(L){return I._onMouseUp(L)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(L){return I._onTrim(L)}),I.register(I._bufferService.buffers.onBufferActivate(function(L){return I._onBufferActivate(L)})),I.enable(),I._model=new i.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return w(g,p),Object.defineProperty(g.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._removeMouseDownListeners()},g.prototype.reset=function(){this.clearSelection()},g.prototype.disable=function(){this.clearSelection(),this._enabled=!1},g.prototype.enable=function(){this._enabled=!0},Object.defineProperty(g.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(g.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(g.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;if(!y||!x)return"";var T=this._bufferService.buffer,S=[];if(this._activeSelectionMode===3){if(y[0]===x[0])return"";for(var b=y[1];b<=x[1];b++){var _=T.translateBufferLineToString(b,!0,y[0],x[0]);S.push(_)}}else{var I=y[1]===x[1]?x[0]:void 0;for(S.push(T.translateBufferLineToString(y[1],!0,y[0],I)),b=y[1]+1;b<=x[1]-1;b++){var L=T.lines.get(b);_=T.translateBufferLineToString(b,!0),L&&L.isWrapped?S[S.length-1]+=_:S.push(_)}y[1]!==x[1]&&(L=T.lines.get(x[1]),_=T.translateBufferLineToString(x[1],!0,0,x[0]),L&&L.isWrapped?S[S.length-1]+=_:S.push(_))}return S.map(function(D){return D.replace(u," ")}).join(c.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),g.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},g.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)},g.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},g.prototype.isClickInSelection=function(A){var y=this._getMouseBufferCoords(A),x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!!(x&&T&&y)&&this._areCoordsInSelection(y,x,T)},g.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]},g.prototype.selectWordAtCursor=function(A){var y=this._getMouseBufferCoords(A);y&&(this._selectWordAt(y,!1),this._model.selectionEnd=void 0,this.refresh(!0))},g.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},g.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()},g.prototype._onTrim=function(A){this._model.onTrim(A)&&this.refresh()},g.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},g.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))},g.prototype.shouldForceSelection=function(A){return c.isMac?A.altKey&&this._optionsService.options.macOptionClickForcesSelection:A.shiftKey},g.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)}},g.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)},g.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},g.prototype._onIncrementalClick=function(A){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(A))},g.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]++}},g.prototype._onDoubleClick=function(A){var y=this._getMouseBufferCoords(A);y&&(this._activeSelectionMode=1,this._selectWordAt(y,!0))},g.prototype._onTripleClick=function(A){var y=this._getMouseBufferCoords(A);y&&(this._activeSelectionMode=2,this._selectLineAt(y[1]))},g.prototype.shouldColumnSelect=function(A){return A.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},g.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 T=x.lines.get(this._model.selectionEnd[1]);T&&T.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)}},g.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()}},g.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 T=t.moveToCellSequence(x[0]-1,x[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(T,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},g.prototype._onBufferActivate=function(A){var y=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=A.activeBuffer.lines.onTrim(function(x){return y._onTrim(x)})},g.prototype._convertViewportColToCharacterIndex=function(A,y){for(var x=y[0],T=0;y[0]>=T;T++){var S=A.loadCell(T,this._workCell).getChars().length;this._workCell.getWidth()===0?x--:S>1&&y[0]!==T&&(x+=S-1)}return x},g.prototype.setSelection=function(A,y,x){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[A,y],this._model.selectionStartLength=x,this.refresh()},g.prototype._getWordAt=function(A,y,x,T){if(x===void 0&&(x=!0),T===void 0&&(T=!0),!(A[0]>=this._bufferService.cols)){var S=this._bufferService.buffer,b=S.lines.get(A[1]);if(b){var _=S.translateBufferLineToString(A[1],!1),I=this._convertViewportColToCharacterIndex(b,A),L=I,D=A[0]-I,N=0,M=0,B=0,R=0;if(_.charAt(I)===" "){for(;I>0&&_.charAt(I-1)===" ";)I--;for(;L<_.length&&_.charAt(L+1)===" ";)L++}else{var H=A[0],F=A[0];b.getWidth(H)===0&&(N++,H--),b.getWidth(F)===2&&(M++,F++);var K=b.getString(F).length;for(K>1&&(R+=K-1,L+=K-1);H>0&&I>0&&!this._isCharWordSeparator(b.loadCell(H-1,this._workCell));){b.loadCell(H-1,this._workCell);var U=this._workCell.getChars().length;this._workCell.getWidth()===0?(N++,H--):U>1&&(B+=U-1,I-=U-1),I--,H--}for(;F<b.length&&L+1<_.length&&!this._isCharWordSeparator(b.loadCell(F+1,this._workCell));){b.loadCell(F+1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===2?(M++,F++):V>1&&(R+=V-1,L+=V-1),L++,F++}}L++;var z=I+D-N+B,Y=Math.min(this._bufferService.cols,L-I+N+M-B-R);if(y||_.slice(I,L).trim()!==""){if(x&&z===0&&b.getCodePoint(0)!==32){var q=S.lines.get(A[1]-1);if(q&&b.isWrapped&&q.getCodePoint(this._bufferService.cols-1)!==32){var ce=this._getWordAt([this._bufferService.cols-1,A[1]-1],!1,!0,!1);if(ce){var ie=this._bufferService.cols-ce.start;z-=ie,Y+=ie}}}if(T&&z+Y===this._bufferService.cols&&b.getCodePoint(this._bufferService.cols-1)!==32){var ve=S.lines.get(A[1]+1);if(ve&&ve.isWrapped&&ve.getCodePoint(0)!==32){var Ee=this._getWordAt([0,A[1]+1],!1,!1,!0);Ee&&(Y+=Ee.length)}}return{start:z,length:Y}}}}},g.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}},g.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]}},g.prototype._isCharWordSeparator=function(A){return A.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(A.getChars())>=0},g.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},g=m([h(2,e.IBufferService),h(3,e.ICoreService),h(4,n.IMouseService),h(5,e.IOptionsService),h(6,n.IRenderService)],g)}(a.Disposable);E.SelectionService=f},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SelectionModel=void 0;var v=function(){function w(m){this._bufferService=m,this.isSelectAllActive=!1,this.selectionStartLength=0}return w.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(w.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(w.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}),w.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])},w.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)},w}();E.SelectionModel=v},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.moveToCellSequence=void 0;var v=C(12);function w(o,n,e,s){var t=o-m(e,o),a=n-m(e,n);return r(Math.abs(t-a)-function(l,u,f){for(var p=0,g=l-m(f,l),A=u-m(f,u),y=0;y<Math.abs(g-A);y++){var x=h(l,u)==="A"?-1:1,T=f.buffer.lines.get(g+x*y);T&&T.isWrapped&&p++}return p}(o,n,e),i(h(o,n),s))}function m(o,n){for(var e=0,s=o.buffer.lines.get(n),t=s&&s.isWrapped;t&&n>=0&&n<o.rows;)e++,t=(s=o.buffer.lines.get(--n))&&s.isWrapped;return e}function h(o,n){return o>n?"A":"B"}function c(o,n,e,s,t,a){for(var l=o,u=n,f="";l!==e||u!==s;)l+=t?1:-1,t&&l>a.cols-1?(f+=a.buffer.translateBufferLineToString(u,!1,o,l),l=0,o=0,u++):!t&&l<0&&(f+=a.buffer.translateBufferLineToString(u,!1,0,o+1),o=l=a.cols-1,u--);return f+a.buffer.translateBufferLineToString(u,!1,o,l)}function i(o,n){var e=n?"O":"[";return v.C0.ESC+e+o}function r(o,n){o=Math.floor(o);for(var e="",s=0;s<o;s++)e+=n;return e}E.moveToCellSequence=function(o,n,e,s){var t,a=e.buffer.x,l=e.buffer.y;if(!e.buffer.hasScrollback)return function(f,p,g,A,y,x){return w(p,A,y,x).length===0?"":r(c(f,p,f,p-m(y,p),!1,y).length,i("D",x))}(a,l,0,n,e,s)+w(l,n,e,s)+function(f,p,g,A,y,x){var T;T=w(p,A,y,x).length>0?A-m(y,A):p;var S=A,b=function(_,I,L,D,N,M){var B;return B=w(L,D,N,M).length>0?D-m(N,D):I,_<L&&B<=D||_>=L&&B<D?"C":"D"}(f,p,g,A,y,x);return r(c(f,T,g,S,b==="C",y).length,i(b,x))}(a,l,o,n,e,s);if(l===n)return t=a>o?"D":"C",r(Math.abs(a-o),i(t,s));t=l>n?"D":"C";var u=Math.abs(l-n);return r(function(f,p){return p.cols-f}(l>n?o:a,e)+(u-1)*e.cols+1+((l>n?a:o)-1),i(t,s))}},function(O,E,C){"use strict";var v=this&&this.__decorate||function(c,i,r,o){var n,e=arguments.length,s=e<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,i,r,o);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(s=(e<3?n(s):e>3?n(i,r,s):n(i,r))||s);return e>3&&s&&Object.defineProperty(i,r,s),s},w=this&&this.__param||function(c,i){return function(r,o){i(r,o,c)}};Object.defineProperty(E,"__esModule",{value:!0}),E.SoundService=void 0;var m=C(1),h=function(){function c(i){this._optionsService=i}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 i=c.audioContext;if(i){var r=i.createBufferSource();i.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(o){r.buffer=o,r.connect(i.destination),r.start(0)})}},c.prototype._base64ToArrayBuffer=function(i){for(var r=window.atob(i),o=r.length,n=new Uint8Array(o),e=0;e<o;e++)n[e]=r.charCodeAt(e);return n.buffer},c.prototype._removeMimeType=function(i){return i.split(",")[1]},c=v([w(0,m.IOptionsService)],c)}();E.SoundService=h},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,f=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(f=(u<3?l(f):u>3?l(s,t,f):l(s,t))||f);return u>3&&f&&Object.defineProperty(s,t,f),f},h=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseZoneManager=void 0;var c=C(2),i=C(7),r=C(5),o=C(1),n=function(e){function s(t,a,l,u,f,p){var g=e.call(this)||this;return g._element=t,g._screenElement=a,g._bufferService=l,g._mouseService=u,g._selectionService=f,g._optionsService=p,g._zones=[],g._areZonesActive=!1,g._lastHoverCoords=[void 0,void 0],g._initialSelectionLength=0,g.register(i.addDisposableDomListener(g._element,"mousedown",function(A){return g._onMouseDown(A)})),g._mouseMoveListener=function(A){return g._onMouseMove(A)},g._mouseLeaveListener=function(A){return g._onMouseLeave(A)},g._clickListener=function(A){return g._onClick(A)},g}return w(s,e),s.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},s.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},s.prototype.clearAll=function(t,a){if(this._zones.length!==0){t&&a||(t=0,a=this._bufferService.rows-1);for(var l=0;l<this._zones.length;l++){var u=this._zones[l];(u.y1>t&&u.y1<=a+1||u.y2>t&&u.y2<=a+1||u.y1<t&&u.y2>a+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(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},s.prototype._onHover=function(t){var a=this,l=this._findZoneEventAt(t);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(t),this._tooltipTimeout=window.setTimeout(function(){return a._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},s.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var a=this._findZoneEventAt(t);a&&a.tooltipCallback&&a.tooltipCallback(t)},s.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var a=this._findZoneEventAt(t);(a==null?void 0:a.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},s.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},s.prototype._onClick=function(t){var a=this._findZoneEventAt(t),l=this._getSelectionLength();a&&l===this._initialSelectionLength&&(a.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},s.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},s.prototype._findZoneEventAt=function(t){var a=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(a)for(var l=a[0],u=a[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,o.IBufferService),h(3,r.IMouseService),h(4,r.ISelectionService),h(5,o.IOptionsService)],s)}(c.Disposable);E.MouseZoneManager=n},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(t,a){return(v=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])})(t,a)},function(s,t){function a(){this.constructor=s}v(s,t),s.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(E,"__esModule",{value:!0}),E.AccessibilityManager=void 0;var m=C(18),h=C(11),c=C(31),i=C(7),r=C(2),o=C(32),n=C(17),e=function(s){function t(a,l){var u=s.call(this)||this;u._terminal=a,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 o.ScreenDprMonitor,u.register(u._screenDprMonitor),u._screenDprMonitor.setListener(function(){return u._refreshRowsDimensions()}),u.register(i.addDisposableDomListener(window,"resize",function(){return u._refreshRowsDimensions()})),u}return w(t,s),t.prototype.dispose=function(){s.prototype.dispose.call(this),n.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(a,l){var u=a.target,f=this._rowElements[l===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")!==(l===0?"1":""+this._terminal.buffer.lines.length)&&a.relatedTarget===f){var p,g;if(l===0?(p=u,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(p=this._rowElements.shift(),g=u,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),g.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(),a.preventDefault(),a.stopImmediatePropagation()}},t.prototype._onResize=function(a){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>a;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var a=document.createElement("div");return a.setAttribute("role","listitem"),a.tabIndex=-1,this._refreshRowDimensions(a),a},t.prototype._onTab=function(a){for(var l=0;l<a;l++)this._onChar(" ")},t.prototype._onChar=function(a){var l=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==a&&(this._charsToAnnounce+=a):this._charsToAnnounce+=a,a===`
`&&(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))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,h.isMac&&n.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(a){this._clearLiveRegion(),this._charsToConsume.push(a)},t.prototype._refreshRows=function(a,l){this._renderRowsDebouncer.refresh(a,l,this._terminal.rows)},t.prototype._renderRows=function(a,l){for(var u=this._terminal.buffer,f=u.lines.length.toString(),p=a;p<=l;p++){var g=u.translateBufferLineToString(u.ydisp+p,!0),A=(u.ydisp+p+1).toString(),y=this._rowElements[p];y&&(g.length===0?y.innerHTML="&nbsp;":y.textContent=g,y.setAttribute("aria-posinset",A),y.setAttribute("aria-setsize",f))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var a=0;a<this._terminal.rows;a++)this._refreshRowDimensions(this._rowElements[a])}},t.prototype._refreshRowDimensions=function(a){a.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(r.Disposable);E.AccessibilityManager=e},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(f,p){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,A){g.__proto__=A}||function(g,A){for(var y in A)A.hasOwnProperty(y)&&(g[y]=A[y])})(f,p)},function(u,f){function p(){this.constructor=u}v(u,f),u.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}),m=this&&this.__decorate||function(u,f,p,g){var A,y=arguments.length,x=y<3?f:g===null?g=Object.getOwnPropertyDescriptor(f,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(u,f,p,g);else for(var T=u.length-1;T>=0;T--)(A=u[T])&&(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,g){f(p,g,u)}};Object.defineProperty(E,"__esModule",{value:!0}),E.DomRenderer=void 0;var c=C(58),i=C(9),r=C(2),o=C(5),n=C(1),e=C(0),s=C(10),t=C(17),a=1,l=function(u){function f(p,g,A,y,x,T,S,b,_){var I=u.call(this)||this;return I._colors=p,I._element=g,I._screenElement=A,I._viewportElement=y,I._linkifier=x,I._linkifier2=T,I._charSizeService=S,I._optionsService=b,I._bufferService=_,I._terminalClass=a++,I._rowElements=[],I._rowContainer=document.createElement("div"),I._rowContainer.classList.add("xterm-rows"),I._rowContainer.style.lineHeight="normal",I._rowContainer.setAttribute("aria-hidden","true"),I._refreshRowElements(I._bufferService.cols,I._bufferService.rows),I._selectionContainer=document.createElement("div"),I._selectionContainer.classList.add("xterm-selection"),I._selectionContainer.setAttribute("aria-hidden","true"),I.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},I._updateDimensions(),I._injectCss(),I._rowFactory=new c.DomRendererRowFactory(document,I._optionsService,I._colors),I._element.classList.add("xterm-dom-renderer-owner-"+I._terminalClass),I._screenElement.appendChild(I._rowContainer),I._screenElement.appendChild(I._selectionContainer),I._linkifier.onShowLinkUnderline(function(L){return I._onLinkHover(L)}),I._linkifier.onHideLinkUnderline(function(L){return I._onLinkLeave(L)}),I._linkifier2.onShowLinkUnderline(function(L){return I._onLinkHover(L)}),I._linkifier2.onHideLinkUnderline(function(L){return I._onLinkLeave(L)}),I}return w(f,u),Object.defineProperty(f.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),f.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),t.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,g=this._rowElements;p<g.length;p++){var A=g[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 g=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";g+=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;}",g+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",g+="@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+"; }}",g+=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;}",g+=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){g+=p._terminalSelector+" .xterm-fg-"+y+" { color: "+A.css+"; }"+p._terminalSelector+" .xterm-bg-"+y+" { background-color: "+A.css+"; }"}),g+=this._terminalSelector+" .xterm-fg-"+i.INVERTED_DEFAULT_COLOR+" { color: "+s.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+i.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=g},f.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},f.prototype._refreshRowElements=function(p,g){for(var A=this._rowElements.length;A<=g;A++){var y=document.createElement("div");this._rowContainer.appendChild(y),this._rowElements.push(y)}for(;this._rowElements.length>g;)this._rowContainer.removeChild(this._rowElements.pop())},f.prototype.onResize=function(p,g){this._refreshRowElements(p,g),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,g,A){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(p&&g){var y=p[1]-this._bufferService.buffer.ydisp,x=g[1]-this._bufferService.buffer.ydisp,T=Math.max(y,0),S=Math.min(x,this._bufferService.rows-1);if(!(T>=this._bufferService.rows||S<0)){var b=document.createDocumentFragment();if(A)b.appendChild(this._createSelectionElement(T,p[0],g[0],S-T+1));else{var _=y===T?p[0]:0,I=T===S?g[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(T,_,I));var L=S-T-1;if(b.appendChild(this._createSelectionElement(T+1,0,this._bufferService.cols,L)),T!==S){var D=x===S?g[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(S,0,D))}}this._selectionContainer.appendChild(b)}}},f.prototype._createSelectionElement=function(p,g,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=g*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(A-g)+"px",x},f.prototype.onCursorMove=function(){},f.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},f.prototype.clear=function(){for(var p=0,g=this._rowElements;p<g.length;p++)g[p].innerHTML=""},f.prototype.renderRows=function(p,g){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,T=p;T<=g;T++){var S=this._rowElements[T];S.innerHTML="";var b=T+this._bufferService.buffer.ydisp,_=this._bufferService.buffer.lines.get(b),I=this._optionsService.options.cursorStyle;S.appendChild(this._rowFactory.createRow(_,b===A,I,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,g,A,y,x,T){for(;p!==g||A!==y;){var S=this._rowElements[A];if(!S)return;var b=S.children[p];b&&(b.style.textDecoration=T?"underline":"none"),++p>=x&&(p=0,A++)}},f=m([h(6,o.ICharSizeService),h(7,n.IOptionsService),h(8,n.IBufferService)],f)}(r.Disposable);E.DomRenderer=l},function(O,E,C){"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 v=C(9),w=C(3),m=C(4),h=C(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(o,n,e){this._document=o,this._optionsService=n,this._colors=e,this._workCell=new m.CellData}return r.prototype.setColors=function(o){this._colors=o},r.prototype.createRow=function(o,n,e,s,t,a,l){for(var u=this._document.createDocumentFragment(),f=0,p=Math.min(o.length,l)-1;p>=0;p--)if(o.loadCell(p,this._workCell).getCode()!==w.NULL_CELL_CODE||n&&p===s){f=p+1;break}for(p=0;p<f;p++){o.loadCell(p,this._workCell);var g=this._workCell.getWidth();if(g!==0){var A=this._document.createElement("span");if(g>1&&(A.style.width=a*g+"px"),n&&p===s)switch(A.classList.add(E.CURSOR_CLASS),t&&A.classList.add(E.CURSOR_BLINK_CLASS),e){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=w.WHITESPACE_CELL_CHAR:A.textContent=this._workCell.getChars()||w.WHITESPACE_CELL_CHAR;var y=this._workCell.getFgColor(),x=this._workCell.getFgColorMode(),T=this._workCell.getBgColor(),S=this._workCell.getBgColorMode(),b=!!this._workCell.isInverse();if(b){var _=y;y=T,T=_;var I=x;x=S,S=I}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:#"+i(y.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(A,this._colors.background,this._colors.foreground)||b&&A.classList.add("xterm-fg-"+v.INVERTED_DEFAULT_COLOR)}switch(S){case 16777216:case 33554432:A.classList.add("xterm-bg-"+T);break;case 50331648:this._addStyle(A,"background-color:#"+i(T.toString(16),"0",6));break;case 0:default:b&&A.classList.add("xterm-bg-"+v.INVERTED_DEFAULT_COLOR)}u.appendChild(A)}}return u},r.prototype._applyMinimumContrast=function(o,n,e){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,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,s!=null?s:null)),!!s&&(this._addStyle(o,"color:"+s.css),!0)},r.prototype._addStyle=function(o,n){o.setAttribute("style",""+(o.getAttribute("style")||"")+n+";")},r}();function i(r,o,n){for(;r.length<n;)r=o+r;return r}E.DomRendererRowFactory=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.evaluateKeyboardEvent=void 0;var v=C(12),w={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,i){var r={type:0,cancel:!1,key:void 0},o=(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?v.C0.ESC+"OA":v.C0.ESC+"[A":m.key==="UIKeyInputLeftArrow"?r.key=h?v.C0.ESC+"OD":v.C0.ESC+"[D":m.key==="UIKeyInputRightArrow"?r.key=h?v.C0.ESC+"OC":v.C0.ESC+"[C":m.key==="UIKeyInputDownArrow"&&(r.key=h?v.C0.ESC+"OB":v.C0.ESC+"[B");break;case 8:if(m.shiftKey){r.key=v.C0.BS;break}if(m.altKey){r.key=v.C0.ESC+v.C0.DEL;break}r.key=v.C0.DEL;break;case 9:if(m.shiftKey){r.key=v.C0.ESC+"[Z";break}r.key=v.C0.HT,r.cancel=!0;break;case 13:r.key=m.altKey?v.C0.ESC+v.C0.CR:v.C0.CR,r.cancel=!0;break;case 27:r.key=v.C0.ESC,m.altKey&&(r.key=v.C0.ESC+v.C0.ESC),r.cancel=!0;break;case 37:if(m.metaKey)break;o?(r.key=v.C0.ESC+"[1;"+(o+1)+"D",r.key===v.C0.ESC+"[1;3D"&&(r.key=v.C0.ESC+(c?"b":"[1;5D"))):r.key=h?v.C0.ESC+"OD":v.C0.ESC+"[D";break;case 39:if(m.metaKey)break;o?(r.key=v.C0.ESC+"[1;"+(o+1)+"C",r.key===v.C0.ESC+"[1;3C"&&(r.key=v.C0.ESC+(c?"f":"[1;5C"))):r.key=h?v.C0.ESC+"OC":v.C0.ESC+"[C";break;case 38:if(m.metaKey)break;o?(r.key=v.C0.ESC+"[1;"+(o+1)+"A",c||r.key!==v.C0.ESC+"[1;3A"||(r.key=v.C0.ESC+"[1;5A")):r.key=h?v.C0.ESC+"OA":v.C0.ESC+"[A";break;case 40:if(m.metaKey)break;o?(r.key=v.C0.ESC+"[1;"+(o+1)+"B",c||r.key!==v.C0.ESC+"[1;3B"||(r.key=v.C0.ESC+"[1;5B")):r.key=h?v.C0.ESC+"OB":v.C0.ESC+"[B";break;case 45:m.shiftKey||m.ctrlKey||(r.key=v.C0.ESC+"[2~");break;case 46:r.key=o?v.C0.ESC+"[3;"+(o+1)+"~":v.C0.ESC+"[3~";break;case 36:r.key=o?v.C0.ESC+"[1;"+(o+1)+"H":h?v.C0.ESC+"OH":v.C0.ESC+"[H";break;case 35:r.key=o?v.C0.ESC+"[1;"+(o+1)+"F":h?v.C0.ESC+"OF":v.C0.ESC+"[F";break;case 33:m.shiftKey?r.type=2:r.key=v.C0.ESC+"[5~";break;case 34:m.shiftKey?r.type=3:r.key=v.C0.ESC+"[6~";break;case 112:r.key=o?v.C0.ESC+"[1;"+(o+1)+"P":v.C0.ESC+"OP";break;case 113:r.key=o?v.C0.ESC+"[1;"+(o+1)+"Q":v.C0.ESC+"OQ";break;case 114:r.key=o?v.C0.ESC+"[1;"+(o+1)+"R":v.C0.ESC+"OR";break;case 115:r.key=o?v.C0.ESC+"[1;"+(o+1)+"S":v.C0.ESC+"OS";break;case 116:r.key=o?v.C0.ESC+"[15;"+(o+1)+"~":v.C0.ESC+"[15~";break;case 117:r.key=o?v.C0.ESC+"[17;"+(o+1)+"~":v.C0.ESC+"[17~";break;case 118:r.key=o?v.C0.ESC+"[18;"+(o+1)+"~":v.C0.ESC+"[18~";break;case 119:r.key=o?v.C0.ESC+"[19;"+(o+1)+"~":v.C0.ESC+"[19~";break;case 120:r.key=o?v.C0.ESC+"[20;"+(o+1)+"~":v.C0.ESC+"[20~";break;case 121:r.key=o?v.C0.ESC+"[21;"+(o+1)+"~":v.C0.ESC+"[21~";break;case 122:r.key=o?v.C0.ESC+"[23;"+(o+1)+"~":v.C0.ESC+"[23~";break;case 123:r.key=o?v.C0.ESC+"[24;"+(o+1)+"~":v.C0.ESC+"[24~";break;default:if(!m.ctrlKey||m.shiftKey||m.altKey||m.metaKey)if(c&&!i||!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=v.C0.US);else{var n=w[m.keyCode],e=n&&n[m.shiftKey?1:0];if(e)r.key=v.C0.ESC+e;else if(m.keyCode>=65&&m.keyCode<=90){var s=m.ctrlKey?m.keyCode-64:m.keyCode+32;r.key=v.C0.ESC+String.fromCharCode(s)}}else m.keyCode>=65&&m.keyCode<=90?r.key=String.fromCharCode(m.keyCode-64):m.keyCode===32?r.key=v.C0.NUL:m.keyCode>=51&&m.keyCode<=55?r.key=String.fromCharCode(m.keyCode-51+27):m.keyCode===56?r.key=v.C0.DEL:m.keyCode===219?r.key=v.C0.ESC:m.keyCode===220?r.key=v.C0.FS:m.keyCode===221&&(r.key=v.C0.GS)}return r}},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(l,u){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])})(l,u)},function(a,l){function u(){this.constructor=a}v(a,l),a.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}),m=this&&this.__decorate||function(a,l,u,f){var p,g=arguments.length,A=g<3?l:f===null?f=Object.getOwnPropertyDescriptor(l,u):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(a,l,u,f);else for(var y=a.length-1;y>=0;y--)(p=a[y])&&(A=(g<3?p(A):g>3?p(l,u,A):p(l,u))||A);return g>3&&A&&Object.defineProperty(l,u,A),A},h=this&&this.__param||function(a,l){return function(u,f){l(u,f,a)}};Object.defineProperty(E,"__esModule",{value:!0}),E.RenderService=void 0;var c=C(31),i=C(0),r=C(2),o=C(32),n=C(7),e=C(1),s=C(5),t=function(a){function l(u,f,p,g,A,y){var x=a.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 i.EventEmitter,x._onRender=new i.EventEmitter,x._onRefreshRequest=new i.EventEmitter,x.register({dispose:function(){return x._renderer.dispose()}}),x._renderDebouncer=new c.RenderDebouncer(function(S,b){return x._renderRows(S,b)}),x.register(x._renderDebouncer),x._screenDprMonitor=new o.ScreenDprMonitor,x._screenDprMonitor.setListener(function(){return x.onDevicePixelRatioChange()}),x.register(x._screenDprMonitor),x.register(y.onResize(function(S){return x._fullRefresh()})),x.register(g.onOptionChange(function(){return x._renderer.onOptionsChanged()})),x.register(A.onCharSizeChange(function(){return x.onCharSizeChanged()})),x._renderer.onRequestRedraw(function(S){return x.refreshRows(S.start,S.end,!0)}),x.register(n.addDisposableDomListener(window,"resize",function(){return x.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var T=new IntersectionObserver(function(S){return x._onIntersectionChange(S[S.length-1])},{threshold:0});T.observe(p),x.register({dispose:function(){return T.disconnect()}})}return x}return w(l,a),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(){a.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,e.IOptionsService),h(4,s.ICharSizeService),h(5,e.IBufferService)],l)}(r.Disposable);E.RenderService=t},function(O,E,C){"use strict";var v=this&&this.__decorate||function(r,o,n,e){var s,t=arguments.length,a=t<3?o:e===null?e=Object.getOwnPropertyDescriptor(o,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,o,n,e);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(t<3?s(a):t>3?s(o,n,a):s(o,n))||a);return t>3&&a&&Object.defineProperty(o,n,a),a},w=this&&this.__param||function(r,o){return function(n,e){o(n,e,r)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CharSizeService=void 0;var m=C(1),h=C(0),c=function(){function r(o,n,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new h.EventEmitter,this._measureStrategy=new i(o,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 o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())},r=v([w(2,m.IOptionsService)],r)}();E.CharSizeService=c;var i=function(){function r(o,n,e){this._document=o,this._parentElement=n,this._optionsService=e,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return r.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var o=this._measureElement.getBoundingClientRect();return o.width!==0&&o.height!==0&&(this._result.width=o.width,this._result.height=Math.ceil(o.height)),this._result},r}()},function(O,E,C){"use strict";var v=this&&this.__decorate||function(i,r,o,n){var e,s=arguments.length,t=s<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,r,o,n);else for(var a=i.length-1;a>=0;a--)(e=i[a])&&(t=(s<3?e(t):s>3?e(r,o,t):e(r,o))||t);return s>3&&t&&Object.defineProperty(r,o,t),t},w=this&&this.__param||function(i,r){return function(o,n){r(o,n,i)}};Object.defineProperty(E,"__esModule",{value:!0}),E.MouseService=void 0;var m=C(5),h=C(30),c=function(){function i(r,o){this._renderService=r,this._charSizeService=o}return i.prototype.getCoords=function(r,o,n,e,s){return h.getCoords(r,o,n,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,s)},i.prototype.getRawByteCoords=function(r,o,n,e){var s=this.getCoords(r,o,n,e);return h.getRawByteCoords(s)},i=v([w(0,m.IRenderService),w(1,m.ICharSizeService)],i)}();E.MouseService=c},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,f=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(f=(u<3?l(f):u>3?l(s,t,f):l(s,t))||f);return u>3&&f&&Object.defineProperty(s,t,f),f},h=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.Linkifier2=void 0;var c=C(1),i=C(0),r=C(2),o=C(7),n=function(e){function s(t){var a=e.call(this)||this;return a._bufferService=t,a._linkProviders=[],a._linkCacheDisposables=[],a._isMouseOut=!0,a._activeLine=-1,a._onShowLinkUnderline=a.register(new i.EventEmitter),a._onHideLinkUnderline=a.register(new i.EventEmitter),a.register(r.getDisposeArrayDisposable(a._linkCacheDisposables)),a}return w(s,e),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(t){var a=this;return this._linkProviders.push(t),{dispose:function(){var u=a._linkProviders.indexOf(t);u!==-1&&a._linkProviders.splice(u,1)}}},s.prototype.attachToDom=function(t,a,l){var u=this;this._element=t,this._mouseService=a,this._renderService=l,this.register(o.addDisposableDomListener(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register(o.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(o.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},s.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);if(a){this._isMouseOut=!1;for(var l=t.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&&a.x===this._lastBufferCell.x&&a.y===this._lastBufferCell.y||(this._onHover(a),this._lastBufferCell=a)}}},s.prototype._onHover=function(t){if(this._activeLine!==t.y)return this._clearCurrentLink(),void this._askForLink(t,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,t)||(this._clearCurrentLink(),this._askForLink(t,!0))},s.prototype._askForLink=function(t,a){var l=this;this._activeProviderReplies&&a||(this._activeProviderReplies=new Map,this._activeLine=t.y);var u=!1;this._linkProviders.forEach(function(f,p){var g;a?((g=l._activeProviderReplies)===null||g===void 0?void 0:g.get(p))&&(u=l._checkLinkProviderResult(p,t,u)):f.provideLinks(t.y,function(A){var y,x;if(!l._isMouseOut){var T=A==null?void 0:A.map(function(S){return{link:S}});(y=l._activeProviderReplies)===null||y===void 0||y.set(p,T),u=l._checkLinkProviderResult(p,t,u),((x=l._activeProviderReplies)===null||x===void 0?void 0:x.size)===l._linkProviders.length&&l._removeIntersectingLinks(t.y,l._activeProviderReplies)}})})},s.prototype._removeIntersectingLinks=function(t,a){for(var l=new Set,u=0;u<a.size;u++){var f=a.get(u);if(f)for(var p=0;p<f.length;p++)for(var g=f[p],A=g.link.range.start.y<t?0:g.link.range.start.x,y=g.link.range.end.y>t?this._bufferService.cols:g.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(t,a,l){var u,f=this;if(!this._activeProviderReplies)return l;for(var p=this._activeProviderReplies.get(t),g=!1,A=0;A<t;A++)this._activeProviderReplies.has(A)&&!this._activeProviderReplies.get(A)||(g=!0);if(!g&&p){var y=p.find(function(T){return f._linkAtPosition(T.link,a)});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(T){return f._linkAtPosition(T.link,a)});if(x){l=!0,this._handleNewLink(x);break}}return l},s.prototype._onClick=function(t){if(this._element&&this._mouseService&&this._currentLink){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);a&&this._linkAtPosition(this._currentLink.link,a)&&this._currentLink.link.activate(t,this._currentLink.link.text)}},s.prototype._clearCurrentLink=function(t,a){this._element&&this._currentLink&&this._lastMouseEvent&&(!t||!a||this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=a)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,r.disposeArray(this._linkCacheDisposables))},s.prototype._handleNewLink=function(t){var a=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(t.link,l)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var f,p;return(p=(f=a._currentLink)===null||f===void 0?void 0:f.state)===null||p===void 0?void 0:p.decorations.pointerCursor},set:function(f){var p,g;((p=a._currentLink)===null||p===void 0?void 0:p.state)&&a._currentLink.state.decorations.pointerCursor!==f&&(a._currentLink.state.decorations.pointerCursor=f,a._currentLink.state.isHovered&&((g=a._element)===null||g===void 0||g.classList.toggle("xterm-cursor-pointer",f)))}},underline:{get:function(){var f,p;return(p=(f=a._currentLink)===null||f===void 0?void 0:f.state)===null||p===void 0?void 0:p.decorations.underline},set:function(f){var p,g,A;((p=a._currentLink)===null||p===void 0?void 0:p.state)&&((A=(g=a._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.underline)!==f&&(a._currentLink.state.decorations.underline=f,a._currentLink.state.isHovered&&a._fireUnderlineEvent(t.link,f))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(u){var f=u.start===0?0:u.start+1+a._bufferService.buffer.ydisp;a._clearCurrentLink(f,u.end+1+a._bufferService.buffer.ydisp)})))}},s.prototype._linkHover=function(t,a,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(a,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),a.hover&&a.hover(l,a.text)},s.prototype._fireUnderlineEvent=function(t,a){var l=t.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);(a?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)},s.prototype._linkLeave=function(t,a,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(a,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),a.leave&&a.leave(l,a.text)},s.prototype._linkAtPosition=function(t,a){var l=t.range.start.y===t.range.end.y,u=t.range.start.y<a.y,f=t.range.end.y>a.y;return(l&&t.range.start.x<=a.x&&t.range.end.x>=a.x||u&&t.range.end.x>=a.x||f&&t.range.start.x<=a.x||u&&f)&&t.range.start.y<=a.y&&t.range.end.y>=a.y},s.prototype._positionFromMouseEvent=function(t,a,l){var u=l.getCoords(t,a,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},s.prototype._createLinkUnderlineEvent=function(t,a,l,u,f){return{x1:t,y1:a,x2:l,y2:u,cols:this._bufferService.cols,fg:f}},s=m([h(0,c.IBufferService)],s)}(r.Disposable);E.Linkifier2=n},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CoreBrowserService=void 0;var v=function(){function w(m){this._textarea=m}return Object.defineProperty(w.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),w}();E.CoreBrowserService=v},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(y,x){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,S){T.__proto__=S}||function(T,S){for(var b in S)S.hasOwnProperty(b)&&(T[b]=S[b])})(y,x)},function(A,y){function x(){this.constructor=A}v(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=C(2),h=C(1),c=C(66),i=C(67),r=C(68),o=C(74),n=C(75),e=C(0),s=C(76),t=C(77),a=C(78),l=C(80),u=C(81),f=C(19),p=C(82),g=function(A){function y(x){var T=A.call(this)||this;return T._onBinary=new e.EventEmitter,T._onData=new e.EventEmitter,T._onLineFeed=new e.EventEmitter,T._onResize=new e.EventEmitter,T._onScroll=new e.EventEmitter,T._instantiationService=new c.InstantiationService,T.optionsService=new o.OptionsService(x),T._instantiationService.setService(h.IOptionsService,T.optionsService),T._bufferService=T.register(T._instantiationService.createInstance(r.BufferService)),T._instantiationService.setService(h.IBufferService,T._bufferService),T._logService=T._instantiationService.createInstance(i.LogService),T._instantiationService.setService(h.ILogService,T._logService),T._coreService=T.register(T._instantiationService.createInstance(n.CoreService,function(){return T.scrollToBottom()})),T._instantiationService.setService(h.ICoreService,T._coreService),T._coreMouseService=T._instantiationService.createInstance(s.CoreMouseService),T._instantiationService.setService(h.ICoreMouseService,T._coreMouseService),T._dirtyRowService=T._instantiationService.createInstance(t.DirtyRowService),T._instantiationService.setService(h.IDirtyRowService,T._dirtyRowService),T.unicodeService=T._instantiationService.createInstance(a.UnicodeService),T._instantiationService.setService(h.IUnicodeService,T.unicodeService),T._charsetService=T._instantiationService.createInstance(l.CharsetService),T._instantiationService.setService(h.ICharsetService,T._charsetService),T._inputHandler=new f.InputHandler(T._bufferService,T._charsetService,T._coreService,T._dirtyRowService,T._logService,T.optionsService,T._coreMouseService,T.unicodeService),T.register(e.forwardEvent(T._inputHandler.onLineFeed,T._onLineFeed)),T.register(T._inputHandler),T.register(e.forwardEvent(T._bufferService.onResize,T._onResize)),T.register(e.forwardEvent(T._coreService.onData,T._onData)),T.register(e.forwardEvent(T._coreService.onBinary,T._onBinary)),T.register(T.optionsService.onOptionChange(function(S){return T._updateOptions(S)})),T._writeBuffer=new p.WriteBuffer(function(S){return T._inputHandler.parse(S)}),T}return w(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,T){this._writeBuffer.write(x,T)},y.prototype.writeSync=function(x){this._writeBuffer.writeSync(x)},y.prototype.resize=function(x,T){isNaN(x)||isNaN(T)||(x=Math.max(x,r.MINIMUM_COLS),T=Math.max(T,r.MINIMUM_ROWS),this._bufferService.resize(x,T))},y.prototype.scroll=function(x,T){T===void 0&&(T=!1);var S,b=this._bufferService.buffer;(S=this._cachedBlankLine)&&S.length===this.cols&&S.getFg(0)===x.fg&&S.getBg(0)===x.bg||(S=b.getBlankLine(x,T),this._cachedBlankLine=S),S.isWrapped=T;var _=b.ybase+b.scrollTop,I=b.ybase+b.scrollBottom;if(b.scrollTop===0){var L=b.lines.isFull;I===b.lines.length-1?L?b.lines.recycle().copyFrom(S):b.lines.push(S.clone()):b.lines.splice(I+1,0,S.clone()),L?this._bufferService.isUserScrolling&&(b.ydisp=Math.max(b.ydisp-1,0)):(b.ybase++,this._bufferService.isUserScrolling||b.ydisp++)}else{var D=I-_+1;b.lines.shiftElements(_+1,D-1,-1),b.lines.set(I,S.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,T){var S=this._bufferService.buffer;if(x<0){if(S.ydisp===0)return;this._bufferService.isUserScrolling=!0}else x+S.ydisp>=S.ybase&&(this._bufferService.isUserScrolling=!1);var b=S.ydisp;S.ydisp=Math.max(Math.min(S.ydisp+x,S.ybase),0),b!==S.ydisp&&(T||this._onScroll.fire(S.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 T=x-this._bufferService.buffer.ydisp;T!==0&&this.scrollLines(T)},y.prototype.addEscHandler=function(x,T){return this._inputHandler.addEscHandler(x,T)},y.prototype.addDcsHandler=function(x,T){return this._inputHandler.addDcsHandler(x,T)},y.prototype.addCsiHandler=function(x,T){return this._inputHandler.addCsiHandler(x,T)},y.prototype.addOscHandler=function(x,T){return this._inputHandler.addOscHandler(x,T)},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 T;switch(x){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)}},y.prototype._enableWindowsMode=function(){var x=this;if(!this._windowsMode){var T=[];T.push(this.onLineFeed(u.updateWindowsModeWrappedState.bind(null,this._bufferService))),T.push(this.addCsiHandler({final:"H"},function(){return u.updateWindowsModeWrappedState(x._bufferService),!1})),this._windowsMode={dispose:function(){for(var b=0,_=T;b<_.length;b++)_[b].dispose()}}}},y}(m.Disposable);E.CoreTerminal=g},function(O,E,C){"use strict";var v=this&&this.__spreadArrays||function(){for(var i=0,r=0,o=arguments.length;r<o;r++)i+=arguments[r].length;var n=Array(i),e=0;for(r=0;r<o;r++)for(var s=arguments[r],t=0,a=s.length;t<a;t++,e++)n[e]=s[t];return n};Object.defineProperty(E,"__esModule",{value:!0}),E.InstantiationService=E.ServiceCollection=void 0;var w=C(1),m=C(14),h=function(){function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];this._entries=new Map;for(var n=0,e=r;n<e.length;n++){var s=e[n],t=s[0],a=s[1];this.set(t,a)}}return i.prototype.set=function(r,o){var n=this._entries.get(r);return this._entries.set(r,o),n},i.prototype.forEach=function(r){this._entries.forEach(function(o,n){return r(n,o)})},i.prototype.has=function(r){return this._entries.has(r)},i.prototype.get=function(r){return this._entries.get(r)},i}();E.ServiceCollection=h;var c=function(){function i(){this._services=new h,this._services.set(w.IInstantiationService,this)}return i.prototype.setService=function(r,o){this._services.set(r,o)},i.prototype.getService=function(r){return this._services.get(r)},i.prototype.createInstance=function(r){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];for(var e=m.getServiceDependencies(r).sort(function(p,g){return p.index-g.index}),s=[],t=0,a=e;t<a.length;t++){var l=a[t],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=e.length>0?e[0].index:o.length;if(o.length!==f)throw new Error("[createInstance] First service dependency of "+r.name+" at position "+(f+1)+" conflicts with "+o.length+" static arguments");return new(r.bind.apply(r,v([void 0],v(o,s))))},i}();E.InstantiationService=c},function(O,E,C){"use strict";var v=this&&this.__decorate||function(o,n,e,s){var t,a=arguments.length,l=a<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,e):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(o,n,e,s);else for(var u=o.length-1;u>=0;u--)(t=o[u])&&(l=(a<3?t(l):a>3?t(n,e,l):t(n,e))||l);return a>3&&l&&Object.defineProperty(n,e,l),l},w=this&&this.__param||function(o,n){return function(e,s){n(e,s,o)}},m=this&&this.__spreadArrays||function(){for(var o=0,n=0,e=arguments.length;n<e;n++)o+=arguments[n].length;var s=Array(o),t=0;for(n=0;n<e;n++)for(var a=arguments[n],l=0,u=a.length;l<u;l++,t++)s[t]=a[l];return s};Object.defineProperty(E,"__esModule",{value:!0}),E.LogService=E.LogLevel=void 0;var h,c=C(1);!function(o){o[o.DEBUG=0]="DEBUG",o[o.INFO=1]="INFO",o[o.WARN=2]="WARN",o[o.ERROR=3]="ERROR",o[o.OFF=4]="OFF"}(h=E.LogLevel||(E.LogLevel={}));var i={debug:h.DEBUG,info:h.INFO,warn:h.WARN,error:h.ERROR,off:h.OFF},r=function(){function o(n){var e=this;this._optionsService=n,this._updateLogLevel(),this._optionsService.onOptionChange(function(s){s==="logLevel"&&e._updateLogLevel()})}return o.prototype._updateLogLevel=function(){this._logLevel=i[this._optionsService.options.logLevel]},o.prototype._evalLazyOptionalParams=function(n){for(var e=0;e<n.length;e++)typeof n[e]=="function"&&(n[e]=n[e]())},o.prototype._log=function(n,e,s){this._evalLazyOptionalParams(s),n.call.apply(n,m([console,"xterm.js: "+e],s))},o.prototype.debug=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=h.DEBUG&&this._log(console.log,n,e)},o.prototype.info=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=h.INFO&&this._log(console.info,n,e)},o.prototype.warn=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=h.WARN&&this._log(console.warn,n,e)},o.prototype.error=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=h.ERROR&&this._log(console.error,n,e)},o=v([w(0,c.IOptionsService)],o)}();E.LogService=r},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var u in l)l.hasOwnProperty(u)&&(a[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,f=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(f=(u<3?l(f):u>3?l(s,t,f):l(s,t))||f);return u>3&&f&&Object.defineProperty(s,t,f),f},h=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.BufferService=E.MINIMUM_ROWS=E.MINIMUM_COLS=void 0;var c=C(1),i=C(69),r=C(0),o=C(2);E.MINIMUM_COLS=2,E.MINIMUM_ROWS=1;var n=function(e){function s(t){var a=e.call(this)||this;return a._optionsService=t,a.isUserScrolling=!1,a._onResize=new r.EventEmitter,a.cols=Math.max(t.options.cols,E.MINIMUM_COLS),a.rows=Math.max(t.options.rows,E.MINIMUM_ROWS),a.buffers=new i.BufferSet(t,a),a}return w(s,e),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(){e.prototype.dispose.call(this),this.buffers.dispose()},s.prototype.resize=function(t,a){this.cols=t,this.rows=a,this.buffers.resize(t,a),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:a})},s.prototype.reset=function(){this.buffers.dispose(),this.buffers=new i.BufferSet(this._optionsService,this),this.isUserScrolling=!1},s=m([h(0,c.IOptionsService)],s)}(o.Disposable);E.BufferService=n},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(r,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var s in e)e.hasOwnProperty(s)&&(n[s]=e[s])})(r,o)},function(i,r){function o(){this.constructor=i}v(i,r),i.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)});Object.defineProperty(E,"__esModule",{value:!0}),E.BufferSet=void 0;var m=C(70),h=C(0),c=function(i){function r(o,n){var e=i.call(this)||this;return e._onBufferActivate=e.register(new h.EventEmitter),e._normal=new m.Buffer(!0,o,n),e._normal.fillViewportRows(),e._alt=new m.Buffer(!1,o,n),e._activeBuffer=e._normal,e.setupTabStops(),e}return w(r,i),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(o){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(o),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(o,n){this._normal.resize(o,n),this._alt.resize(o,n)},r.prototype.setupTabStops=function(o){this._normal.setupTabStops(o),this._alt.setupTabStops(o)},r}(C(2).Disposable);E.BufferSet=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.BufferStringIterator=E.Buffer=E.MAX_BUFFER_SIZE=void 0;var v=C(71),w=C(16),m=C(4),h=C(3),c=C(72),i=C(73),r=C(20),o=C(6);E.MAX_BUFFER_SIZE=4294967295;var n=function(){function s(t,a,l){this._hasScrollback=t,this._optionsService=a,this._bufferService=l,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=w.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 v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return s.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new o.ExtendedAttrs),this._nullCell},s.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new o.ExtendedAttrs),this._whitespaceCell},s.prototype.getBlankLine=function(t,a){return new w.BufferLine(this._bufferService.cols,this.getNullCell(t),a)},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 a=this.ybase+this.y-this.ydisp;return a>=0&&a<this._rows},enumerable:!1,configurable:!0}),s.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var a=t+this._optionsService.options.scrollback;return a>E.MAX_BUFFER_SIZE?E.MAX_BUFFER_SIZE:a},s.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=w.DEFAULT_ATTR_DATA);for(var a=this._rows;a--;)this.lines.push(this.getBlankLine(t))}},s.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},s.prototype.resize=function(t,a){var l=this.getNullCell(w.DEFAULT_ATTR_DATA),u=this._getCorrectBufferLength(a);if(u>this.lines.maxLength&&(this.lines.maxLength=u),this.lines.length>0){if(this._cols<t)for(var f=0;f<this.lines.length;f++)this.lines.get(f).resize(t,l);var p=0;if(this._rows<a)for(var g=this._rows;g<a;g++)this.lines.length<a+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new w.BufferLine(t,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 w.BufferLine(t,l)));else for(g=this._rows;g>a;g--)this.lines.length>a+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,t-1),this.y=Math.min(this.y,a-1),p&&(this.y+=p),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=a-1,this._isReflowEnabled&&(this._reflow(t,a),this._cols>t))for(f=0;f<this.lines.length;f++)this.lines.get(f).resize(t,l);this._cols=t,this._rows=a},Object.defineProperty(s.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),s.prototype._reflow=function(t,a){this._cols!==t&&(t>this._cols?this._reflowLarger(t,a):this._reflowSmaller(t,a))},s.prototype._reflowLarger=function(t,a){var l=c.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(w.DEFAULT_ATTR_DATA));if(l.length>0){var u=c.reflowLargerCreateNewLayout(this.lines,l);c.reflowLargerApplyNewLayout(this.lines,u.layout),this._reflowLargerAdjustViewport(t,a,u.countRemoved)}},s.prototype._reflowLargerAdjustViewport=function(t,a,l){for(var u=this.getNullCell(w.DEFAULT_ATTR_DATA),f=l;f-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<a&&this.lines.push(new w.BufferLine(t,u))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-l,0)},s.prototype._reflowSmaller=function(t,a){for(var l=this.getNullCell(w.DEFAULT_ATTR_DATA),u=[],f=0,p=this.lines.length-1;p>=0;p--){var g=this.lines.get(p);if(!(!g||!g.isWrapped&&g.getTrimmedLength()<=t)){for(var A=[g];g.isWrapped&&p>0;)g=this.lines.get(--p),A.unshift(g);var y=this.ybase+this.y;if(!(y>=p&&y<p+A.length)){var x=A[A.length-1].getTrimmedLength(),T=c.reflowSmallerGetNewLineLengths(A,this._cols,t),S=T.length-A.length,b=void 0;b=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+S):Math.max(0,this.lines.length-this.lines.maxLength+S);for(var _=[],I=0;I<S;I++){var L=this.getBlankLine(w.DEFAULT_ATTR_DATA,!0);_.push(L)}_.length>0&&(u.push({start:p+A.length+f,newLines:_}),f+=_.length),A.push.apply(A,_);var D=T.length-1,N=T[D];N===0&&(N=T[--D]);for(var M=A.length-S-1,B=x;M>=0;){var R=Math.min(B,N);if(A[D].copyCellsFrom(A[M],B-R,N-R,R,!0),(N-=R)===0&&(N=T[--D]),(B-=R)===0){M--;var H=Math.max(M,0);B=c.getWrappedLineTrimmedLength(A,H,this._cols)}}for(I=0;I<A.length;I++)T[I]<t&&A[I].setCell(T[I],l);for(var F=S-b;F-- >0;)this.ybase===0?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+f)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+S,this.ybase+a-1)}}}if(u.length>0){var K=[],U=[];for(I=0;I<this.lines.length;I++)U.push(this.lines.get(I));var V=this.lines.length,z=V-1,Y=0,q=u[Y];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+f);var ce=0;for(I=Math.min(this.lines.maxLength-1,V+f-1);I>=0;I--)if(q&&q.start>z+ce){for(var ie=q.newLines.length-1;ie>=0;ie--)this.lines.set(I--,q.newLines[ie]);I++,K.push({index:z+1,amount:q.newLines.length}),ce+=q.newLines.length,q=u[++Y]}else this.lines.set(I,U[z--]);var ve=0;for(I=K.length-1;I>=0;I--)K[I].index+=ve,this.lines.onInsertEmitter.fire(K[I]),ve+=K[I].amount;var Ee=Math.max(0,V+f-this.lines.maxLength);Ee>0&&this.lines.onTrimEmitter.fire(Ee)}},s.prototype.stringIndexToBufferIndex=function(t,a,l){for(l===void 0&&(l=!1);a;){var u=this.lines.get(t);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]&&(a-=u.get(p)[h.CHAR_DATA_CHAR_INDEX].length||1),a<0)return[t,p];t++}return[t,0]},s.prototype.translateBufferLineToString=function(t,a,l,u){l===void 0&&(l=0);var f=this.lines.get(t);return f?f.translateToString(a,l,u):""},s.prototype.getWrappedRangeForLine=function(t){for(var a=t,l=t;a>0&&this.lines.get(a).isWrapped;)a--;for(;l+1<this.lines.length&&this.lines.get(l+1).isWrapped;)l++;return{first:a,last:l}},s.prototype.setupTabStops=function(t){for(t!=null?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this._cols;t+=this._optionsService.options.tabStopWidth)this.tabs[t]=!0},s.prototype.prevStop=function(t){for(t==null&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this._cols?this._cols-1:t<0?0:t},s.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t<this._cols;);return t>=this._cols?this._cols-1:t<0?0:t},s.prototype.addMarker=function(t){var a=this,l=new i.Marker(t);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 a._removeMarker(l)})),l},s.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},s.prototype.iterator=function(t,a,l,u,f){return new e(this,t,a,l,u,f)},s}();E.Buffer=n;var e=function(){function s(t,a,l,u,f,p){l===void 0&&(l=0),u===void 0&&(u=t.lines.length),f===void 0&&(f=0),p===void 0&&(p=0),this._buffer=t,this._trimRight=a,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 t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var a="",l=t.first;l<=t.last;++l)a+=this._buffer.translateBufferLineToString(l,this._trimRight);return this._current=t.last+1,{range:t,content:a}},s}();E.BufferStringIterator=e},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CircularList=void 0;var v=C(0),w=function(){function m(h){this._maxLength=h,this.onDeleteEmitter=new v.EventEmitter,this.onInsertEmitter=new v.EventEmitter,this.onTrimEmitter=new v.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 i=new Array(c),r=0;r<Math.min(c,this.length);r++)i[r]=this._array[this._getCyclicIndex(r)];this._array=i,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 i=this._length;i<c;i++)this._array[i]=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 i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];if(c){for(var o=h;o<this._length-c;o++)this._array[this._getCyclicIndex(o)]=this._array[this._getCyclicIndex(o+c)];this._length-=c}for(o=this._length-1;o>=h;o--)this._array[this._getCyclicIndex(o+i.length)]=this._array[this._getCyclicIndex(o)];for(o=0;o<i.length;o++)this._array[this._getCyclicIndex(h+o)]=i[o];if(this._length+i.length>this._maxLength){var n=this._length+i.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}else this._length+=i.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,i){if(!(c<=0)){if(h<0||h>=this._length)throw new Error("start argument out of range");if(h+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(var r=c-1;r>=0;r--)this.set(h+r+i,this.get(h+r));var o=h+c+i-this._length;if(o>0)for(this._length+=o;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<c;r++)this.set(h+r+i,this.get(h+r))}},m.prototype._getCyclicIndex=function(h){return(this._startIndex+h)%this._maxLength},m}();E.CircularList=w},function(O,E,C){"use strict";function v(w,m,h){if(m===w.length-1)return w[m].getTrimmedLength();var c=!w[m].hasContent(h-1)&&w[m].getWidth(h-1)===1,i=w[m+1].getWidth(0)===2;return c&&i?h-1:h}Object.defineProperty(E,"__esModule",{value:!0}),E.getWrappedLineTrimmedLength=E.reflowSmallerGetNewLineLengths=E.reflowLargerApplyNewLayout=E.reflowLargerCreateNewLayout=E.reflowLargerGetLinesToRemove=void 0,E.reflowLargerGetLinesToRemove=function(w,m,h,c,i){for(var r=[],o=0;o<w.length-1;o++){var n=o,e=w.get(++n);if(e.isWrapped){for(var s=[w.get(o)];n<w.length&&e.isWrapped;)s.push(e),e=w.get(++n);if(c>=o&&c<n)o+=s.length-1;else{for(var t=0,a=v(s,t,m),l=1,u=0;l<s.length;){var f=v(s,l,m),p=f-u,g=h-a,A=Math.min(p,g);s[t].copyCellsFrom(s[l],u,a,A,!1),(a+=A)===h&&(t++,a=0),(u+=A)===f&&(l++,u=0),a===0&&t!==0&&s[t-1].getWidth(h-1)===2&&(s[t].copyCellsFrom(s[t-1],h-1,a++,1,!1),s[t-1].setCell(h-1,i))}s[t].replaceCells(a,h,i);for(var y=0,x=s.length-1;x>0&&(x>t||s[x].getTrimmedLength()===0);x--)y++;y>0&&(r.push(o+s.length-y),r.push(y)),o+=s.length-1}}}return r},E.reflowLargerCreateNewLayout=function(w,m){for(var h=[],c=0,i=m[c],r=0,o=0;o<w.length;o++)if(i===o){var n=m[++c];w.onDeleteEmitter.fire({index:o-r,amount:n}),o+=n-1,r+=n,i=m[++c]}else h.push(o);return{layout:h,countRemoved:r}},E.reflowLargerApplyNewLayout=function(w,m){for(var h=[],c=0;c<m.length;c++)h.push(w.get(m[c]));for(c=0;c<h.length;c++)w.set(c,h[c]);w.length=m.length},E.reflowSmallerGetNewLineLengths=function(w,m,h){for(var c=[],i=w.map(function(a,l){return v(w,l,m)}).reduce(function(a,l){return a+l}),r=0,o=0,n=0;n<i;){if(i-n<h){c.push(i-n);break}r+=h;var e=v(w,o,m);r>e&&(r-=e,o++);var s=w[o].getWidth(r-1)===2;s&&r--;var t=s?h-1:h;c.push(t),n+=t}return c},E.getWrappedLineTrimmedLength=v},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(i,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var e in n)n.hasOwnProperty(e)&&(o[e]=n[e])})(i,r)},function(c,i){function r(){this.constructor=c}v(c,i),c.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)});Object.defineProperty(E,"__esModule",{value:!0}),E.Marker=void 0;var m=C(0),h=function(c){function i(r){var o=c.call(this)||this;return o.line=r,o._id=i._nextId++,o.isDisposed=!1,o._onDispose=new m.EventEmitter,o}return w(i,c),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},i._nextId=1,i}(C(2).Disposable);E.Marker=h},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OptionsService=E.DEFAULT_OPTIONS=E.DEFAULT_BELL_SOUND=void 0;var v=C(0),w=C(11),m=C(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:w.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var h=["cols","rows"],c=function(){function i(r){this._onOptionChange=new v.EventEmitter,this.options=m.clone(E.DEFAULT_OPTIONS);for(var o=0,n=Object.keys(r);o<n.length;o++){var e=n[o];if(e in this.options){var s=r[e];this.options[e]=s}}}return Object.defineProperty(i.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),i.prototype.setOption=function(r,o){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]!==o&&(o=this._sanitizeAndValidateOption(r,o),this.options[r]!==o&&(this.options[r]=o,this._onOptionChange.fire(r)))},i.prototype._sanitizeAndValidateOption=function(r,o){switch(r){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":o||(o=E.DEFAULT_OPTIONS[r]);break;case"cursorWidth":o=Math.floor(o);case"lineHeight":case"tabStopWidth":if(o<1)throw new Error(r+" cannot be less than 1, value: "+o);break;case"minimumContrastRatio":o=Math.max(1,Math.min(21,Math.round(10*o)/10));break;case"scrollback":if((o=Math.min(o,4294967295))<0)throw new Error(r+" cannot be less than 0, value: "+o);break;case"fastScrollSensitivity":case"scrollSensitivity":if(o<=0)throw new Error(r+" cannot be less than or equal to 0, value: "+o)}return o},i.prototype.getOption=function(r){if(!(r in E.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return this.options[r]},i}();E.OptionsService=c},function(O,E,C){"use strict";var v,w=this&&this.__extends||(v=function(a,l){return(v=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])})(a,l)},function(t,a){function l(){this.constructor=t}v(t,a),t.prototype=a===null?Object.create(a):(l.prototype=a.prototype,new l)}),m=this&&this.__decorate||function(t,a,l,u){var f,p=arguments.length,g=p<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,l):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(t,a,l,u);else for(var A=t.length-1;A>=0;A--)(f=t[A])&&(g=(p<3?f(g):p>3?f(a,l,g):f(a,l))||g);return p>3&&g&&Object.defineProperty(a,l,g),g},h=this&&this.__param||function(t,a){return function(l,u){a(l,u,t)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CoreService=void 0;var c=C(1),i=C(0),r=C(33),o=C(2),n=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),s=function(t){function a(l,u,f,p){var g=t.call(this)||this;return g._bufferService=u,g._logService=f,g._optionsService=p,g.isCursorInitialized=!1,g.isCursorHidden=!1,g._onData=g.register(new i.EventEmitter),g._onUserInput=g.register(new i.EventEmitter),g._onBinary=g.register(new i.EventEmitter),g._scrollToBottom=l,g.register({dispose:function(){return g._scrollToBottom=void 0}}),g.modes=r.clone(n),g.decPrivateModes=r.clone(e),g}return w(a,t),Object.defineProperty(a.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),a.prototype.reset=function(){this.modes=r.clone(n),this.decPrivateModes=r.clone(e)},a.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)}},a.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))},a=m([h(1,c.IBufferService),h(2,c.ILogService),h(3,c.IOptionsService)],a)}(o.Disposable);E.CoreService=s},function(O,E,C){"use strict";var v=this&&this.__decorate||function(e,s,t,a){var l,u=arguments.length,f=u<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,s,t,a);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(f=(u<3?l(f):u>3?l(s,t,f):l(s,t))||f);return u>3&&f&&Object.defineProperty(s,t,f),f},w=this&&this.__param||function(e,s){return function(t,a){s(t,a,e)}};Object.defineProperty(E,"__esModule",{value:!0}),E.CoreMouseService=void 0;var m=C(1),h=C(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 i(e,s){var t=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(t|=64,t|=e.action):(t|=3&e.button,4&e.button&&(t|=64),8&e.button&&(t|=128),e.action===32?t|=32:e.action!==0||s||(t|=3)),t}var r=String.fromCharCode,o={DEFAULT:function(s){var t=[i(s,!1)+32,s.col+32,s.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+r(t[0])+r(t[1])+r(t[2])},SGR:function(s){var t=s.action===0&&s.button!==4?"m":"M";return"[<"+i(s,!0)+";"+s.col+";"+s.row+t}},n=function(){function e(s,t){this._bufferService=s,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new h.EventEmitter,this._lastEvent=null;for(var a=0,l=Object.keys(c);a<l.length;a++){var u=l[a];this.addProtocol(u,c[u])}for(var f=0,p=Object.keys(o);f<p.length;f++){var g=p[f];this.addEncoding(g,o[g])}this.reset()}return e.prototype.addProtocol=function(s,t){this._protocols[s]=t},e.prototype.addEncoding=function(s,t){this._encodings[s]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(t){if(!this._protocols[t])throw new Error('unknown protocol "'+t+'"');this._activeProtocol=t,this._onProtocolChange.fire(this._protocols[t].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(t){if(!this._encodings[t])throw new Error('unknown encoding "'+t+'"');this._activeEncoding=t},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(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 t=this._encodings[this._activeEncoding](s);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=s,!0},e.prototype.explainEvents=function(s){return{down:!!(1&s),up:!!(2&s),drag:!!(4&s),move:!!(8&s),wheel:!!(16&s)}},e.prototype._compareEvents=function(s,t){return s.col===t.col&&s.row===t.row&&s.button===t.button&&s.action===t.action&&s.ctrl===t.ctrl&&s.alt===t.alt&&s.shift===t.shift},e=v([w(0,m.IBufferService),w(1,m.ICoreService)],e)}();E.CoreMouseService=n},function(O,E,C){"use strict";var v=this&&this.__decorate||function(c,i,r,o){var n,e=arguments.length,s=e<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,r):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,i,r,o);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(s=(e<3?n(s):e>3?n(i,r,s):n(i,r))||s);return e>3&&s&&Object.defineProperty(i,r,s),s},w=this&&this.__param||function(c,i){return function(r,o){i(r,o,c)}};Object.defineProperty(E,"__esModule",{value:!0}),E.DirtyRowService=void 0;var m=C(1),h=function(){function c(i){this._bufferService=i,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(i){i<this._start?this._start=i:i>this._end&&(this._end=i)},c.prototype.markRangeDirty=function(i,r){if(i>r){var o=i;i=r,r=o}i<this._start&&(this._start=i),r>this._end&&(this._end=r)},c.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},c=v([w(0,m.IBufferService)],c)}();E.DirtyRowService=h},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UnicodeService=void 0;var v=C(0),w=C(79),m=function(){function h(){this._providers=Object.create(null),this._active="",this._onChange=new v.EventEmitter;var c=new w.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(i){if(!this._providers[i])throw new Error('unknown Unicode version "'+i+'"');this._active=i,this._activeProvider=this._providers[i],this._onChange.fire(i)},enumerable:!1,configurable:!0}),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 i=0,r=c.length,o=0;o<r;++o){var n=c.charCodeAt(o);if(55296<=n&&n<=56319){if(++o>=r)return i+this.wcwidth(n);var e=c.charCodeAt(o);56320<=e&&e<=57343?n=1024*(n-55296)+e-56320+65536:i+=this.wcwidth(e)}i+=this.wcwidth(n)}return i},h}();E.UnicodeService=m},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UnicodeV6=void 0;var v,w=C(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 i(){if(this.version="6",!v){v=new Uint8Array(65536),w.fill(v,1),v[0]=0,w.fill(v,0,1,32),w.fill(v,0,127,160),w.fill(v,2,4352,4448),v[9001]=2,v[9002]=2,w.fill(v,2,11904,42192),v[12351]=1,w.fill(v,2,44032,55204),w.fill(v,2,63744,64256),w.fill(v,2,65040,65050),w.fill(v,2,65072,65136),w.fill(v,2,65280,65377),w.fill(v,2,65504,65511);for(var r=0;r<m.length;++r)w.fill(v,0,m[r][0],m[r][1]+1)}}return i.prototype.wcwidth=function(r){return r<32?0:r<127?1:r<65536?v[r]:function(o,n){var e,s=0,t=n.length-1;if(o<n[0][0]||o>n[t][1])return!1;for(;t>=s;)if(o>n[e=s+t>>1][1])s=e+1;else{if(!(o<n[e][0]))return!0;t=e-1}return!1}(r,h)?0:r>=131072&&r<=196605||r>=196608&&r<=262141?2:1},i}();E.UnicodeV6=c},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CharsetService=void 0;var v=function(){function w(){this.glevel=0,this._charsets=[]}return w.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},w.prototype.setgLevel=function(m){this.glevel=m,this.charset=this._charsets[m]},w.prototype.setgCharset=function(m,h){this._charsets[m]=h,this.glevel===m&&(this.charset=h)},w}();E.CharsetService=v},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.updateWindowsModeWrappedState=void 0;var v=C(3);E.updateWindowsModeWrappedState=function(w){var m=w.buffer.lines.get(w.buffer.ybase+w.buffer.y-1),h=m==null?void 0:m.get(w.cols-1),c=w.buffer.lines.get(w.buffer.ybase+w.buffer.y);c&&h&&(c.isWrapped=h[v.CHAR_DATA_CODE_INDEX]!==v.NULL_CELL_CODE&&h[v.CHAR_DATA_CODE_INDEX]!==v.WHITESPACE_CELL_CODE)}},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.WriteBuffer=void 0;var v=function(){function w(m){this._action=m,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return w.prototype.writeSync=function(m){if(this._writeBuffer.length){for(var h=this._bufferOffset;h<this._writeBuffer.length;++h){var c=this._writeBuffer[h],i=this._callbacks[h];this._action(c),i&&i()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(m)},w.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)},w.prototype._innerWrite=function(){for(var m=this,h=Date.now();this._writeBuffer.length>this._bufferOffset;){var c=this._writeBuffer[this._bufferOffset],i=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(c),this._pendingData-=c.length,i&&i(),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)},w}();E.WriteBuffer=v},function(O,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AddonManager=void 0;var v=function(){function w(){this._addons=[]}return w.prototype.dispose=function(){for(var m=this._addons.length-1;m>=0;m--)this._addons[m].instance.dispose()},w.prototype.loadAddon=function(m,h){var c=this,i={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(i),h.dispose=function(){return c._wrappedAddonDispose(i)},h.activate(m)},w.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)}},w}();E.AddonManager=v}])})},"/SeX":function(j,P,d){var O=d("knOB"),E=d("qZFw"),C=function(w){this.name=w||"",this.cx=0,this.cy=0,this._radiusAxis=new O,this._angleAxis=new E,this._radiusAxis.polar=this._angleAxis.polar=this};C.prototype={type:"polar",axisPointerEnabled:!0,constructor:C,dimensions:["radius","angle"],model:null,containPoint:function(w){var m=this.pointToCoord(w);return this._radiusAxis.contain(m[0])&&this._angleAxis.contain(m[1])},containData:function(w){return this._radiusAxis.containData(w[0])&&this._angleAxis.containData(w[1])},getAxis:function(w){return this["_"+w+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(w){var m=[],h=this._angleAxis,c=this._radiusAxis;return h.scale.type===w&&m.push(h),c.scale.type===w&&m.push(c),m},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(w){var m=this._angleAxis;return w===m?this._radiusAxis:m},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(w){var m=w!=null&&w!=="auto"?this.getAxis(w):this.getBaseAxis();return{baseAxes:[m],otherAxes:[this.getOtherAxis(m)]}},dataToPoint:function(w,m){return this.coordToPoint([this._radiusAxis.dataToRadius(w[0],m),this._angleAxis.dataToAngle(w[1],m)])},pointToData:function(w,m){var h=this.pointToCoord(w);return[this._radiusAxis.radiusToData(h[0],m),this._angleAxis.angleToData(h[1],m)]},pointToCoord:function(w){var m=w[0]-this.cx,h=w[1]-this.cy,c=this.getAngleAxis(),i=c.getExtent(),r=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);c.inverse?r=o-360:o=r+360;var n=Math.sqrt(m*m+h*h);m/=n,h/=n;for(var e=Math.atan2(-h,m)/Math.PI*180,s=e<r?1:-1;e<r||e>o;)e+=s*360;return[n,e]},coordToPoint:function(w){var m=w[0],h=w[1]/180*Math.PI,c=Math.cos(h)*m+this.cx,i=-Math.sin(h)*m+this.cy;return[c,i]},getArea:function(){var w=this.getAngleAxis(),m=this.getRadiusAxis(),h=m.getExtent().slice();h[0]>h[1]&&h.reverse();var c=w.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:h[0],r:h[1],startAngle:-c[0]*i,endAngle:-c[1]*i,clockwise:w.inverse,contain:function(r,o){var n=r-this.cx,e=o-this.cy,s=n*n+e*e,t=this.r,a=this.r0;return s<=t*t&&s>=a*a}}}};var v=C;j.exports=v},"/WM3":function(j,P,d){var O=d("QuXc"),E=d("bYtY"),C=E.isFunction,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(w,m){var h=w.getData(),c=(w.visualColorAccessPath||"itemStyle.color").split("."),i=w.get(c),r=C(i)&&!(i instanceof O)?i:null;(!i||r)&&(i=w.getColorFromPalette(w.name,null,m.getSeriesCount())),h.setVisual("color",i);var o=(w.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),n=w.get(o);if(h.setVisual("borderColor",n),!m.isSeriesFiltered(w)){r&&h.each(function(s){h.setItemVisual(s,"color",r(w.getDataParams(s)))});var e=function(s,t){var a=s.getItemModel(t),l=a.get(c,!0),u=a.get(o,!0);l!=null&&s.setItemVisual(t,"color",l),u!=null&&s.setItemVisual(t,"borderColor",u)};return{dataEach:h.hasItemOption?e:null}}}};j.exports=v},"/d5a":function(j,P){var d={average:function(C){for(var v=0,w=0,m=0;m<C.length;m++)isNaN(C[m])||(v+=C[m],w++);return w===0?NaN:v/w},sum:function(C){for(var v=0,w=0;w<C.length;w++)v+=C[w]||0;return v},max:function(C){for(var v=-Infinity,w=0;w<C.length;w++)C[w]>v&&(v=C[w]);return isFinite(v)?v:NaN},min:function(C){for(var v=Infinity,w=0;w<C.length;w++)C[w]<v&&(v=C[w]);return isFinite(v)?v:NaN},nearest:function(C){return C[0]}},O=function(C,v){return Math.round(C.length/2)};function E(C){return{seriesType:C,modifyOutputEnd:!0,reset:function(v,w,m){var h=v.getData(),c=v.get("sampling"),i=v.coordinateSystem;if(i.type==="cartesian2d"&&c){var r=i.getBaseAxis(),o=i.getOtherAxis(r),n=r.getExtent(),e=n[1]-n[0],s=Math.round(h.count()/e);if(s>1){var t;typeof c=="string"?t=d[c]:typeof c=="function"&&(t=c),t&&v.setData(h.downSample(h.mapDimension(o.dim),1/s,t,O))}}}}}j.exports=E},"/ezw":function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("cDf5"),m=d.n(w),h=d("q1tI"),c=d("TSYQ"),i=d.n(c),r=function(F){var K=F.prefixCls,U=F.className,V=F.width,z=F.style;return h.createElement("h3",{className:i()(K,U),style:v()({width:V},z)})},o=r,n=d("RIqP"),e=d.n(n),s=function(F){var K=function(ie){var ve=F.width,Ee=F.rows,Le=Ee===void 0?2:Ee;return Array.isArray(ve)?ve[ie]:Le-1===ie?ve:void 0},U=F.prefixCls,V=F.className,z=F.style,Y=F.rows,q=e()(Array(Y)).map(function(ce,ie){return h.createElement("li",{key:ie,style:{width:K(ie)}})});return h.createElement("ul",{className:i()(U,V),style:z},q)},t=s,a=d("H84U"),l=function(F){var K,U,V=F.prefixCls,z=F.className,Y=F.style,q=F.size,ce=F.shape,ie=i()((K={},E()(K,"".concat(V,"-lg"),q==="large"),E()(K,"".concat(V,"-sm"),q==="small"),K)),ve=i()((U={},E()(U,"".concat(V,"-circle"),ce==="circle"),E()(U,"".concat(V,"-square"),ce==="square"),E()(U,"".concat(V,"-round"),ce==="round"),U)),Ee=typeof q=="number"?{width:q,height:q,lineHeight:"".concat(q,"px")}:{};return h.createElement("span",{className:i()(V,z,ie,ve),style:v()(v()({},Ee),Y)})},u=l,f=d("BGR+"),p=function(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,q=F.className,ce=F.active,ie=z("skeleton",Y),ve=Object(f.default)(F,["prefixCls"]),Ee=i()(ie,q,"".concat(ie,"-element"),E()({},"".concat(ie,"-active"),ce));return h.createElement("div",{className:Ee},h.createElement(u,v()({prefixCls:"".concat(ie,"-avatar")},ve)))};return h.createElement(a.a,null,K)};p.defaultProps={size:"default",shape:"circle"};var g=p,A=function(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,q=F.className,ce=F.active,ie=z("skeleton",Y),ve=Object(f.default)(F,["prefixCls"]),Ee=i()(ie,q,"".concat(ie,"-element"),E()({},"".concat(ie,"-active"),ce));return h.createElement("div",{className:Ee},h.createElement(u,v()({prefixCls:"".concat(ie,"-button")},ve)))};return h.createElement(a.a,null,K)};A.defaultProps={size:"default"};var y=A,x=function(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,q=F.className,ce=F.active,ie=z("skeleton",Y),ve=Object(f.default)(F,["prefixCls"]),Ee=i()(ie,q,"".concat(ie,"-element"),E()({},"".concat(ie,"-active"),ce));return h.createElement("div",{className:Ee},h.createElement(u,v()({prefixCls:"".concat(ie,"-input")},ve)))};return h.createElement(a.a,null,K)};x.defaultProps={size:"default"};var T=x,S="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(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,q=F.className,ce=F.style,ie=z("skeleton",Y),ve=i()(ie,q,"".concat(ie,"-element"));return h.createElement("div",{className:ve},h.createElement("div",{className:i()("".concat(ie,"-image"),q),style:ce},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(ie,"-image-svg")},h.createElement("path",{d:S,className:"".concat(ie,"-image-path")}))))};return h.createElement(a.a,null,K)},_=b;function I(H){return H&&m()(H)==="object"?H:{}}function L(H,F){return H&&!F?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function D(H,F){return!H&&F?{width:"38%"}:H&&F?{width:"50%"}:{}}function N(H,F){var K={};return(!H||!F)&&(K.width="61%"),!H&&F?K.rows=3:K.rows=2,K}var M=function(F){var K=function(V){var z=V.getPrefixCls,Y=V.direction,q=F.prefixCls,ce=F.loading,ie=F.className,ve=F.children,Ee=F.avatar,Le=F.title,He=F.paragraph,ge=F.active,Fe=F.round,Q=z("skeleton",q);if(ce||!("loading"in F)){var fe,Je=!!Ee,ne=!!Le,X=!!He,G;if(Je){var te=v()(v()({prefixCls:"".concat(Q,"-avatar")},L(ne,X)),I(Ee));G=h.createElement("div",{className:"".concat(Q,"-header")},h.createElement(u,te))}var we;if(ne||X){var he;if(ne){var Pe=v()(v()({prefixCls:"".concat(Q,"-title")},D(Je,X)),I(Le));he=h.createElement(o,Pe)}var Oe;if(X){var le=v()(v()({prefixCls:"".concat(Q,"-paragraph")},N(Je,ne)),I(He));Oe=h.createElement(t,le)}we=h.createElement("div",{className:"".concat(Q,"-content")},he,Oe)}var me=i()(Q,ie,(fe={},E()(fe,"".concat(Q,"-with-avatar"),Je),E()(fe,"".concat(Q,"-active"),ge),E()(fe,"".concat(Q,"-rtl"),Y==="rtl"),E()(fe,"".concat(Q,"-round"),Fe),fe));return h.createElement("div",{className:me},G,we)}return ve};return h.createElement(a.a,null,K)};M.defaultProps={avatar:!1,title:!0,paragraph:!0},M.Button=y,M.Avatar=g,M.Input=T,M.Image=_;var B=M,R=P.a=B},"/iHx":function(j,P,d){var O=d("6GrX"),E=d("IwbS"),C=["textStyle","color"],v={getTextColor:function(w){var m=this.ecModel;return this.getShallow("color")||(!w&&m?m.get(C):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(w){return O.getBoundingRect(w,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};j.exports=v},"/ry/":function(j,P,d){var O=d("bYtY"),E=d("T4UG"),C=d("5GhG"),v=C.seriesModelMixin,w=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}});O.mixin(w,v,!0);var m=w;j.exports=m},"/stD":function(j,P,d){var O=d("bYtY"),E=d("IUWy"),C=d("Kagy"),v=C.toolbox.brush;function w(c,i,r){this.model=c,this.ecModel=i,this.api=r,this._brushType,this._brushMode}w.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:O.clone(v.title)};var m=w.prototype;m.render=m.updateView=function(c,i,r){var o,n,e;i.eachComponent({mainType:"brush"},function(s){o=s.brushType,n=s.brushOption.brushMode||"single",e|=s.areas.length}),this._brushType=o,this._brushMode=n,O.each(c.get("type",!0),function(s){c.setIconStatus(s,(s==="keep"?n==="multiple":s==="clear"?e:s===o)?"emphasis":"normal")})},m.getIcons=function(){var c=this.model,i=c.get("icon",!0),r={};return O.each(c.get("type",!0),function(o){i[o]&&(r[o]=i[o])}),r},m.onclick=function(c,i,r){var o=this._brushType,n=this._brushMode;r==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?o:o===r?!1:r,brushMode:r==="keep"?n==="multiple"?"single":"multiple":n}})},E.register("brush",w);var h=w;j.exports=h},"/wGt":function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("PJYZ"),r=d.n(i),o=d("7W2i"),n=d.n(o),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d("Ff2n"),l=d("1OyB"),u=d("vuIU"),f=d("Ji7U"),p=d("md7G"),g=d("foSv"),A=d("1W/9"),y=d("rePB"),x=d("JX7q"),T=d("TSYQ"),S=d.n(T),b=d("qx4F"),_=d("4IlW");function I(he){return Array.isArray(he)?he:[he]}var L={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},D=Object.keys(L).filter(function(he){if(typeof document=="undefined")return!1;var Pe=document.getElementsByTagName("html")[0];return he in(Pe?Pe.style:{})})[0],N=L[D];function M(he,Pe,Oe,le){he.addEventListener?he.addEventListener(Pe,Oe,le):he.attachEvent&&he.attachEvent("on".concat(Pe),Oe)}function B(he,Pe,Oe,le){he.removeEventListener?he.removeEventListener(Pe,Oe,le):he.attachEvent&&he.detachEvent("on".concat(Pe),Oe)}function R(he,Pe){var Oe=typeof he=="function"?he(Pe):he;return Array.isArray(Oe)?Oe.length===2?Oe:[Oe[0],Oe[1]]:[Oe]}var H=function(Pe){return!isNaN(parseFloat(Pe))&&isFinite(Pe)},F=!(typeof window!="undefined"&&window.document&&window.document.createElement),K=function he(Pe,Oe,le,me){if(!Oe||Oe===document||Oe instanceof Document)return!1;if(Oe===Pe.parentNode)return!0;var _e=Math.max(Math.abs(le),Math.abs(me))===Math.abs(me),$e=Math.max(Math.abs(le),Math.abs(me))===Math.abs(le),gt=Oe.scrollHeight-Oe.clientHeight,et=Oe.scrollWidth-Oe.clientWidth,Ie=document.defaultView.getComputedStyle(Oe),rt=Ie.overflowY==="auto"||Ie.overflowY==="scroll",Ge=Ie.overflowX==="auto"||Ie.overflowX==="scroll",vt=gt&&rt,Ot=et&&Ge;return _e&&(!vt||vt&&(Oe.scrollTop>=gt&&me<0||Oe.scrollTop<=0&&me>0))||$e&&(!Ot||Ot&&(Oe.scrollLeft>=et&&le<0||Oe.scrollLeft<=0&&le>0))?he(Pe,Oe.parentNode,le,me):!1};function U(he){var Pe=V();return function(){var le=Object(g.a)(he),me;if(Pe){var _e=Object(g.a)(this).constructor;me=Reflect.construct(le,arguments,_e)}else me=le.apply(this,arguments);return Object(p.a)(this,me)}}function V(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(he){return!1}}var z={},Y=function(he){Object(f.a)(Oe,he);var Pe=U(Oe);function Oe(le){var me;return Object(l.a)(this,Oe),me=Pe.call(this,le),me.domFocus=function(){me.dom&&me.dom.focus()},me.removeStartHandler=function(_e){if(_e.touches.length>1)return;me.startPos={x:_e.touches[0].clientX,y:_e.touches[0].clientY}},me.removeMoveHandler=function(_e){if(_e.changedTouches.length>1)return;var $e=_e.currentTarget,gt=_e.changedTouches[0].clientX-me.startPos.x,et=_e.changedTouches[0].clientY-me.startPos.y;($e===me.maskDom||$e===me.handlerDom||$e===me.contentDom&&K($e,_e.target,gt,et))&&_e.cancelable&&_e.preventDefault()},me.transitionEnd=function(_e){var $e=_e.target;B($e,N,me.transitionEnd),$e.style.transition=""},me.onKeyDown=function(_e){if(_e.keyCode===_.a.ESC){var $e=me.props.onClose;_e.stopPropagation(),$e&&$e(_e)}},me.onWrapperTransitionEnd=function(_e){var $e=me.props,gt=$e.open,et=$e.afterVisibleChange;_e.target===me.contentWrapper&&_e.propertyName.match(/transform$/)&&(me.dom.style.transition="",!gt&&me.getCurrentDrawerSome()&&(document.body.style.overflowX="",me.maskDom&&(me.maskDom.style.left="",me.maskDom.style.width="")),et&&et(!!gt))},me.openLevelTransition=function(){var _e=me.props,$e=_e.open,gt=_e.width,et=_e.height,Ie=me.getHorizontalBoolAndPlacementName(),rt=Ie.isHorizontal,Ge=Ie.placementName,vt=me.contentDom?me.contentDom.getBoundingClientRect()[rt?"width":"height"]:0,Ot=(rt?gt:et)||vt;me.setLevelAndScrolling($e,Ge,Ot)},me.setLevelTransform=function(_e,$e,gt,et){var Ie=me.props,rt=Ie.placement,Ge=Ie.levelMove,vt=Ie.duration,Ot=Ie.ease,Et=Ie.showMask;me.levelDom.forEach(function(Tt){Tt.style.transition="transform ".concat(vt," ").concat(Ot),M(Tt,N,me.transitionEnd);var Rt=_e?gt:0;if(Ge){var Be=R(Ge,{target:Tt,open:_e});Rt=_e?Be[0]:Be[1]||0}var Z=typeof Rt=="number"?"".concat(Rt,"px"):Rt,J=rt==="left"||rt==="top"?Z:"-".concat(Z);J=Et&&rt==="right"&&et?"calc(".concat(J," + ").concat(et,"px)"):J,Tt.style.transform=Rt?"".concat($e,"(").concat(J,")"):""})},me.setLevelAndScrolling=function(_e,$e,gt){var et=me.props.onChange;if(!F){var Ie=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(b.a)(!0):0;me.setLevelTransform(_e,$e,gt,Ie),me.toggleScrollingToDrawerAndBody(Ie)}et&&et(_e)},me.toggleScrollingToDrawerAndBody=function(_e){var $e=me.props,gt=$e.getOpenCount,et=$e.getContainer,Ie=$e.showMask,rt=$e.open,Ge=et&&et(),vt=gt&&gt();if(Ge&&Ge.parentNode===document.body&&Ie){var Ot=["touchstart"],Et=[document.body,me.maskDom,me.handlerDom,me.contentDom];rt&&document.body.style.overflow!=="hidden"?(_e&&me.addScrollingEffect(_e),vt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Et.forEach(function(Tt,Rt){if(!Tt)return;M(Tt,Ot[Rt]||"touchmove",Rt?me.removeMoveHandler:me.removeStartHandler,me.passive)})):me.getCurrentDrawerSome()&&(vt||(document.body.style.overflow=""),document.body.style.touchAction="",_e&&me.remScrollingEffect(_e),Et.forEach(function(Tt,Rt){if(!Tt)return;B(Tt,Ot[Rt]||"touchmove",Rt?me.removeMoveHandler:me.removeStartHandler,me.passive)}))}},me.addScrollingEffect=function(_e){var $e=me.props,gt=$e.placement,et=$e.duration,Ie=$e.ease,rt=$e.getOpenCount,Ge=$e.switchScrollingEffect,vt=rt&&rt();vt===1&&Ge();var Ot="width ".concat(et," ").concat(Ie),Et="transform ".concat(et," ").concat(Ie);me.dom.style.transition="none";switch(gt){case"right":me.dom.style.transform="translateX(-".concat(_e,"px)");break;case"top":case"bottom":me.dom.style.width="calc(100% - ".concat(_e,"px)"),me.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(me.timeout),me.timeout=setTimeout(function(){me.dom&&(me.dom.style.transition="".concat(Et,",").concat(Ot),me.dom.style.width="",me.dom.style.transform="")})},me.remScrollingEffect=function(_e){var $e=me.props,gt=$e.placement,et=$e.duration,Ie=$e.ease,rt=$e.getOpenCount,Ge=$e.switchScrollingEffect,vt=rt&&rt();vt||Ge(!0),D&&(document.body.style.overflowX="hidden"),me.dom.style.transition="none";var Ot,Et="width ".concat(et," ").concat(Ie),Tt="transform ".concat(et," ").concat(Ie);switch(gt){case"left":{me.dom.style.width="100%",Et="width 0s ".concat(Ie," ").concat(et);break}case"right":{me.dom.style.transform="translateX(".concat(_e,"px)"),me.dom.style.width="100%",Et="width 0s ".concat(Ie," ").concat(et),me.maskDom&&(me.maskDom.style.left="-".concat(_e,"px"),me.maskDom.style.width="calc(100% + ".concat(_e,"px)"));break}case"top":case"bottom":{me.dom.style.width="calc(100% + ".concat(_e,"px)"),me.dom.style.height="100%",me.dom.style.transform="translateZ(0)",Ot="height 0s ".concat(Ie," ").concat(et);break}default:break}clearTimeout(me.timeout),me.timeout=setTimeout(function(){me.dom&&(me.dom.style.transition="".concat(Tt,",").concat(Ot?"".concat(Ot,","):"").concat(Et),me.dom.style.transform="",me.dom.style.width="",me.dom.style.height="")})},me.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(_e){return z[_e]})},me.getLevelDom=function(_e){var $e=_e.level,gt=_e.getContainer;if(F)return;var et=gt&&gt(),Ie=et?et.parentNode:null;if(me.levelDom=[],$e==="all"){var rt=Ie?Array.prototype.slice.call(Ie.children):[];rt.forEach(function(Ge){Ge.nodeName!=="SCRIPT"&&Ge.nodeName!=="STYLE"&&Ge.nodeName!=="LINK"&&Ge!==et&&me.levelDom.push(Ge)})}else $e&&I($e).forEach(function(Ge){document.querySelectorAll(Ge).forEach(function(vt){me.levelDom.push(vt)})})},me.getHorizontalBoolAndPlacementName=function(){var _e=me.props.placement,$e=_e==="left"||_e==="right",gt="translate".concat($e?"X":"Y");return{isHorizontal:$e,placementName:gt}},me.state={_self:Object(x.a)(me)},me}return Object(u.a)(Oe,[{key:"componentDidMount",value:function(){var me=this;if(!F){var _e=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return _e=!0,null}}))}catch(rt){}this.passive=_e?{passive:!1}:!1}var $e=this.props,gt=$e.open,et=$e.getContainer,Ie=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),gt&&(Ie&&Ie.parentNode===document.body&&(z[this.drawerId]=gt),this.openLevelTransition(),this.forceUpdate(function(){me.domFocus()}))}},{key:"componentDidUpdate",value:function(me){var _e=this.props,$e=_e.open,gt=_e.getContainer,et=gt&&gt();$e!==me.open&&($e&&this.domFocus(),et&&et.parentNode===document.body&&(z[this.drawerId]=!!$e),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var me=this.props,_e=me.getOpenCount,$e=me.open,gt=me.switchScrollingEffect,et=typeof _e=="function"&&_e();delete z[this.drawerId],$e&&(this.setLevelTransform(!1),document.body.style.touchAction=""),et||(document.body.style.overflow="",gt(!0))}},{key:"render",value:function(){var me,_e=this,$e=this.props,gt=$e.className,et=$e.children,Ie=$e.style,rt=$e.width,Ge=$e.height,vt=$e.defaultOpen,Ot=$e.open,Et=$e.prefixCls,Tt=$e.placement,Rt=$e.level,Be=$e.levelMove,Z=$e.ease,J=$e.duration,je=$e.getContainer,Re=$e.handler,oe=$e.onChange,yt=$e.afterVisibleChange,zt=$e.showMask,lt=$e.maskClosable,$t=$e.maskStyle,cr=$e.onClose,cn=$e.onHandleClick,pr=$e.keyboard,gr=$e.getOpenCount,Zt=$e.switchScrollingEffect,Vt=Object(a.a)($e,["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"]),mt=this.dom?Ot:!1,Yr=S()(Et,(me={},Object(y.a)(me,"".concat(Et,"-").concat(Tt),!0),Object(y.a)(me,"".concat(Et,"-open"),mt),Object(y.a)(me,gt||"",!!gt),Object(y.a)(me,"no-mask",!zt),me)),Tn=this.getHorizontalBoolAndPlacementName(),Hn=Tn.placementName,ei=Tt==="left"||Tt==="top"?"-100%":"100%",ji=mt?"":"".concat(Hn,"(").concat(ei,")"),Ln=Re&&t.cloneElement(Re,{onClick:function(kt){Re.props.onClick&&Re.props.onClick(),cn&&cn(kt)},ref:function(kt){_e.handlerDom=kt}});return t.createElement("div",Object.assign({},Vt,{tabIndex:-1,className:Yr,style:Ie,ref:function(kt){_e.dom=kt},onKeyDown:mt&&pr?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),zt&&t.createElement("div",{className:"".concat(Et,"-mask"),onClick:lt?cr:void 0,style:$t,ref:function(kt){_e.maskDom=kt}}),t.createElement("div",{className:"".concat(Et,"-content-wrapper"),style:{transform:ji,msTransform:ji,width:H(rt)?"".concat(rt,"px"):rt,height:H(Ge)?"".concat(Ge,"px"):Ge},ref:function(kt){_e.contentWrapper=kt}},t.createElement("div",{className:"".concat(Et,"-content"),ref:function(kt){_e.contentDom=kt},onTouchStart:mt&&zt?this.removeStartHandler:void 0,onTouchMove:mt&&zt?this.removeMoveHandler:void 0},et),Ln))}}],[{key:"getDerivedStateFromProps",value:function(me,_e){var $e=_e.prevProps,gt=_e._self,et={prevProps:me};if($e!==void 0){var Ie=me.placement,rt=me.level;Ie!==$e.placement&&(gt.contentDom=null),rt!==$e.level&&gt.getLevelDom(me)}return et}}]),Oe}(t.Component);Y.defaultProps={switchScrollingEffect:function(){}};var q=Y;function ce(he){var Pe=ie();return function(){var le=Object(g.a)(he),me;if(Pe){var _e=Object(g.a)(this).constructor;me=Reflect.construct(le,arguments,_e)}else me=le.apply(this,arguments);return Object(p.a)(this,me)}}function ie(){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(he){return!1}}var ve=function(he){Object(f.a)(Oe,he);var Pe=ce(Oe);function Oe(le){var me;Object(l.a)(this,Oe),me=Pe.call(this,le),me.onHandleClick=function($e){var gt=me.props,et=gt.onHandleClick,Ie=gt.open;if(et&&et($e),typeof Ie=="undefined"){var rt=me.state.open;me.setState({open:!rt})}},me.onClose=function($e){var gt=me.props,et=gt.onClose,Ie=gt.open;et&&et($e),typeof Ie=="undefined"&&me.setState({open:!1})};var _e=typeof le.open!="undefined"?le.open:!!le.defaultOpen;return me.state={open:_e},"onMaskClick"in le&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),me}return Object(u.a)(Oe,[{key:"render",value:function(){var me=this,_e=this.props,$e=_e.defaultOpen,gt=_e.getContainer,et=_e.wrapperClassName,Ie=_e.forceRender,rt=_e.handler,Ge=Object(a.a)(_e,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),vt=this.state.open;if(!gt)return t.createElement("div",{className:et,ref:function(Tt){me.dom=Tt}},t.createElement(q,Object.assign({},Ge,{open:vt,handler:rt,getContainer:function(){return me.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ot=!!rt||Ie;return t.createElement(A.a,{visible:vt,forceRender:Ot,getContainer:gt,wrapperClassName:et},function(Et){var Tt=Et.visible,Rt=Et.afterClose,Be=Object(a.a)(Et,["visible","afterClose"]);return t.createElement(q,Object.assign({},Ge,Be,{open:Tt!==void 0?Tt:vt,afterVisibleChange:Rt!==void 0?Rt:Ge.afterVisibleChange,handler:rt,onClose:me.onClose,onHandleClick:me.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(me,_e){var $e=_e.prevProps,gt={prevProps:me};return typeof $e!="undefined"&&me.open!==$e.open&&(gt.open=me.open),gt}}]),Oe}(t.Component);ve.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:t.createElement("div",{className:"drawer-handle"},t.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var Ee=ve,Le=Ee,He=d("V/uB"),ge=d.n(He),Fe=d("BGR+"),Q=d("H84U"),fe=d("CWQg"),Je=function(he,Pe){var Oe={};for(var le in he)Object.prototype.hasOwnProperty.call(he,le)&&Pe.indexOf(le)<0&&(Oe[le]=he[le]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,le=Object.getOwnPropertySymbols(he);me<le.length;me++)Pe.indexOf(le[me])<0&&Object.prototype.propertyIsEnumerable.call(he,le[me])&&(Oe[le[me]]=he[le[me]]);return Oe},ne=t.createContext(null),X=Object(fe.a)("top","right","bottom","left"),G={distance:180},te=function(he){n()(Oe,he);var Pe=s()(Oe);function Oe(){var le;return m()(this,Oe),le=Pe.apply(this,arguments),le.state={push:!1},le.push=function(){le.props.push&&le.setState({push:!0})},le.pull=function(){le.props.push&&le.setState({push:!1})},le.onDestroyTransitionEnd=function(){var me=le.getDestroyOnClose();if(!me)return;le.props.visible||(le.destroyClose=!0,le.forceUpdate())},le.getDestroyOnClose=function(){return le.props.destroyOnClose&&!le.props.visible},le.getPushDistance=function(){var me=le.props.push,_e;return typeof me=="boolean"?_e=me?G.distance:0:_e=me.distance,parseFloat(String(_e||0))},le.getPushTransform=function(me){var _e=le.getPushDistance();if(me==="left"||me==="right")return"translateX(".concat(me==="left"?_e:-_e,"px)");if(me==="top"||me==="bottom")return"translateY(".concat(me==="top"?_e:-_e,"px)")},le.getRcDrawerStyle=function(){var me=le.props,_e=me.zIndex,$e=me.placement,gt=me.mask,et=me.style,Ie=le.state.push,rt=gt?{}:le.getOffsetStyle();return v()(v()({zIndex:_e,transform:Ie?le.getPushTransform($e):void 0},rt),et)},le.renderBody=function(){var me=le.props,_e=me.bodyStyle,$e=me.drawerStyle,gt=me.prefixCls,et=me.visible;if(le.destroyClose&&!et)return null;le.destroyClose=!1;var Ie={},rt=le.getDestroyOnClose();return rt&&(Ie.opacity=0,Ie.transition="opacity .3s"),t.createElement("div",{className:"".concat(gt,"-wrapper-body"),style:v()(v()({},Ie),$e),onTransitionEnd:le.onDestroyTransitionEnd},le.renderHeader(),t.createElement("div",{className:"".concat(gt,"-body"),style:_e},le.props.children),le.renderFooter())},le.renderProvider=function(me){return le.parentDrawer=me,t.createElement(Q.a,null,function(_e){var $e=_e.getPopupContainer,gt=_e.getPrefixCls,et=le.props,Ie=et.prefixCls,rt=et.placement,Ge=et.className,vt=et.mask,Ot=et.direction,Et=et.visible,Tt=Je(et,["prefixCls","placement","className","mask","direction","visible"]),Rt=gt("select",Ie),Be=S()(Ge,E()({"no-mask":!vt},"".concat(Rt,"-rtl"),Ot==="rtl")),Z=vt?le.getOffsetStyle():{};return t.createElement(ne.Provider,{value:r()(le)},t.createElement(Le,v()({handler:!1},Object(Fe.default)(Tt,["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:Tt.getContainer===void 0&&$e?function(){return $e(document.body)}:Tt.getContainer},Z,{prefixCls:Rt,open:Et,showMask:vt,placement:rt,style:le.getRcDrawerStyle(),className:Be}),le.renderBody()))})},le}return c()(Oe,[{key:"componentDidMount",value:function(){var me=this.props.visible;me&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(me){var _e=this.props.visible;me.visible!==_e&&this.parentDrawer&&(_e?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var me=this.props,_e=me.placement,$e=me.width,gt=me.height,et=me.visible,Ie=me.mask;if(!et&&!Ie)return{};var rt={};return _e==="left"||_e==="right"?rt.width=$e:rt.height=gt,rt}},{key:"renderHeader",value:function(){var me=this.props,_e=me.title,$e=me.prefixCls,gt=me.closable,et=me.headerStyle;if(!_e&&!gt)return null;var Ie=_e?"".concat($e,"-header"):"".concat($e,"-header-no-title");return t.createElement("div",{className:Ie,style:et},_e&&t.createElement("div",{className:"".concat($e,"-title")},_e),gt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var me=this.props,_e=me.footer,$e=me.footerStyle,gt=me.prefixCls;if(!_e)return null;var et="".concat(gt,"-footer");return t.createElement("div",{className:et,style:$e},_e)}},{key:"renderCloseIcon",value:function(){var me=this.props,_e=me.closable,$e=me.closeIcon,gt=$e===void 0?t.createElement(ge.a,null):$e,et=me.prefixCls,Ie=me.onClose;return _e&&t.createElement("button",{onClick:Ie,"aria-label":"Close",className:"".concat(et,"-close"),style:{"--scroll-bar":"".concat(Object(b.a)(),"px")}},gt)}},{key:"render",value:function(){return t.createElement(ne.Consumer,null,this.renderProvider)}}]),Oe}(t.Component);te.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:G};var we=P.a=Object(Q.c)({prefixCls:"drawer"})(te)},"/y7N":function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("6GrX"),v=d("7aKB"),w=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 i(l,u,f,p,g){var A=f.get("value"),y=o(A,u.axis,u.ecModel,f.get("seriesDataIndices"),{precision:f.get("label.precision"),formatter:f.get("label.formatter")}),x=f.getModel("label"),T=v.normalizeCssArray(x.get("padding")||0),S=x.getFont(),b=C.getBoundingRect(y,S),_=g.position,I=b.width+T[1]+T[3],L=b.height+T[0]+T[2],D=g.align;D==="right"&&(_[0]-=I),D==="center"&&(_[0]-=I/2);var N=g.verticalAlign;N==="bottom"&&(_[1]-=L),N==="middle"&&(_[1]-=L/2),r(_,I,L,p);var M=x.get("backgroundColor");(!M||M==="auto")&&(M=u.get("axisLine.lineStyle.color")),l.label={shape:{x:0,y:0,width:I,height:L,r:x.get("borderRadius")},position:_.slice(),style:{text:y,textFont:S,textFill:x.getTextColor(),textPosition:"inside",textPadding:T,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 g=p.getWidth(),A=p.getHeight();l[0]=Math.min(l[0]+u,g)-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 o(l,u,f,p,g){l=u.scale.parse(l);var A=u.scale.getLabel(l,{precision:g.precision}),y=g.formatter;if(y){var x={value:m.getAxisRawValue(u,l),axisDimension:u.dim,axisIndex:u.index,seriesData:[]};O.each(p,function(T){var S=f.getSeriesByIndex(T.seriesIndex),b=T.dataIndexInside,_=S&&S.getDataParams(b);_&&x.seriesData.push(_)}),O.isString(y)?A=y.replace("{value}",A):O.isFunction(y)&&(A=y(x))}return A}function n(l,u,f){var p=w.create();return w.rotate(p,p,f.rotation),w.translate(p,p,f.position),E.applyTransform([l.dataToCoord(u),(f.labelOffset||0)+(f.labelDirection||1)*(f.labelMargin||0)],p)}function e(l,u,f,p,g,A){var y=h.innerTextLayout(f.rotation,0,f.labelDirection);f.labelMargin=g.get("label.margin"),i(u,p,g,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 t(l,u,f){return f=f||0,{x:l[f],y:l[1-f],width:u[f],height:u[1-f]}}function a(l,u,f,p,g,A){return{cx:l,cy:u,r0:f,r:p,startAngle:g,endAngle:A,clockwise:!0}}P.buildElStyle=c,P.buildLabelElOption=i,P.getValueLabel=o,P.getTransformedPosition=n,P.buildCartesianSingleLabelElOption=e,P.makeLineShape=s,P.makeRectShape=t,P.makeSectorShape=a},"/zsF":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("bE4E"),v=d.n(C)},"0/Rx":function(j,P){function d(O){return{seriesType:O,reset:function(E,C){var v=C.findComponents({mainType:"legend"});if(!v||!v.length)return;var w=E.getData();w.filterSelf(function(m){for(var h=w.getName(m),c=0;c<v.length;c++)if(!v[c].isSelected(h))return!1;return!0})}}}j.exports=d},"01d+":function(j,P,d){var O=d("bYtY"),E=O.each,C=d("HF/U"),v=C.simpleLayout,w=C.simpleLayoutEdge;function m(h,c){h.eachSeriesByType("graph",function(i){var r=i.get("layout"),o=i.coordinateSystem;if(o&&o.type!=="view"){var n=i.getData(),e=[];E(o.dimensions,function(f){e=e.concat(n.mapDimension(f,!0))});for(var s=0;s<n.count();s++){for(var t=[],a=!1,l=0;l<e.length;l++){var u=n.get(e[l],s);isNaN(u)||(a=!0),t.push(u)}a?n.setItemLayout(s,o.dataToPoint(t)):n.setItemLayout(s,[NaN,NaN])}w(n.graph)}else(!r||r==="none")&&v(i)})}j.exports=m},"06DH":function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("Kagy"),v=d("IUWy"),w=C.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(w.title),option:{},seriesIndex:{}};var c=h.prototype;c.getIcons=function(){var n=this.model,e=n.get("icon"),s={};return E.each(n.get("type"),function(t){e[t]&&(s[t]=e[t])}),s};var i={line:function(n,e,s,t){if(n==="bar")return E.merge({id:e,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},t.get("option.line")||{},!0)},bar:function(n,e,s,t){if(n==="line")return E.merge({id:e,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},t.get("option.bar")||{},!0)},stack:function(n,e,s,t){var a=s.get("stack")===m;if(n==="line"||n==="bar")return t.setIconStatus("stack",a?"normal":"emphasis"),E.merge({id:e,stack:a?"":m},t.get("option.stack")||{},!0)}},r=[["line","bar"],["stack"]];c.onclick=function(n,e,s){var t=this.model,a=t.get("seriesIndex."+s);if(!i[s])return;var l={series:[]},u=function(g){var A=g.subType,y=g.id,x=i[s](A,y,g,t);x&&(E.defaults(x,g.option),l.series.push(x));var T=g.coordinateSystem;if(T&&T.type==="cartesian2d"&&(s==="line"||s==="bar")){var S=T.getAxesByScale("ordinal")[0];if(S){var b=S.dim,_=b+"Axis",I=n.queryComponents({mainType:_,index:g.get(name+"Index"),id:g.get(name+"Id")})[0],L=I.componentIndex;l[_]=l[_]||[];for(var D=0;D<=L;D++)l[_][L]=l[_][L]||{};l[_][L].boundaryGap=s==="bar"}}};E.each(r,function(g){E.indexOf(g,s)>=0&&E.each(g,function(A){t.setIconStatus(A,"normal")})}),t.setIconStatus(s,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},u);var f;if(s==="stack"){var p=l.series&&l.series[0]&&l.series[0].stack===m;f=p?E.merge({stack:w.title.tiled},w.title):E.clone(w.title)}e.dispatchAction({type:"changeMagicType",currentType:s,newOption:l,newTitle:f,featureName:"magicType"})},O.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)}),v.register("magicType",h);var o=h;j.exports=o},"06Qe":function(j,P,d){var O=d("ItGF"),E="urn:schemas-microsoft-com:vml",C=typeof window=="undefined"?null:window,v=!1,w=C&&C.document;function m(i){return h(i)}var h;if(w&&!O.canvasSupported)try{!w.namespaces.zrvml&&w.namespaces.add("zrvml",E),h=function(r){return w.createElement("<zrvml:"+r+' class="zrvml">')}}catch(i){h=function(o){return w.createElement("<"+o+' xmlns="'+E+'" class="zrvml">')}}function c(){if(v||!w)return;v=!0;var i=w.styleSheets;i.length<31?w.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):i[0].addRule(".zrvml","behavior:url(#default#VML)")}P.doc=w,P.createNode=m,P.initVML=c},"09Wf":function(j,P,d){"use strict";d.d(P,"b",function(){return E}),d.d(P,"a",function(){return C});var O=d("CWQg"),E=Object(O.a)("success","processing","error","default","warning"),C=Object(O.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(j,P,d){var O=d("T4UG"),E=d("I3/A"),C=d("7aKB"),v=C.encodeHTML,w=d("Qxkt"),m=d("Tghj"),h=m.__DEV__,c=O.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(r,o){for(var n=r.edges||r.links,e=r.data||r.nodes,s=r.levels,t=this.levelModels={},a=0;a<s.length;a++)s[a].depth!=null&&s[a].depth>=0&&(t[s[a].depth]=new w(s[a],this,o));if(e&&n){var l=E(e,n,this,!0,u);return l.data}function u(f,p){f.wrapMethod("getItemModel",function(g,A){return g.customizeGetParent(function(y){var x=this.parentModel,T=x.getData().getItemLayout(A).depth,S=x.levelModels[T];return S||this.parentModel}),g}),p.wrapMethod("getItemModel",function(g,A){return g.customizeGetParent(function(y){var x=this.parentModel,T=x.getGraph().getEdgeByIndex(A),S=T.node1.getLayout().depth,b=x.levelModels[S];return b||this.parentModel}),g})}},setNodePosition:function(r,o){var n=this.option.data[r];n.localX=o[0],n.localY=o[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(r,o,n){if(n==="edge"){var e=this.getDataParams(r,n),s=e.data,t=s.source+" -- "+s.target;return e.value&&(t+=" : "+e.value),v(t)}else if(n==="node"){var a=this.getGraph().getNodeByIndex(r),l=a.getLayout().value,u=this.getDataParams(r,n).data.name;if(l)var t=u+" : "+l;return v(t)}return c.superCall(this,"formatTooltip",r,o)},optionUpdated:function(){var r=this.option;r.focusNodeAdjacency===!0&&(r.focusNodeAdjacency="allEdges")},getDataParams:function(r,o){var n=c.superCall(this,"getDataParams",r,o);if(n.value==null&&o==="node"){var e=this.getGraph().getNodeByIndex(r),s=e.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}}),i=c;j.exports=i},"0HBW":function(j,P,d){var O=d("ProS"),E=d("bYtY");d("Hxpc"),d("7uqq"),d("dmGj"),d("SehX");function C(v,w){w.update="updateView",O.registerAction(w,function(m,h){var c={};return h.eachComponent({mainType:"geo",query:m},function(i){i[v](m.name);var r=i.coordinateSystem;E.each(r.regions,function(o){c[o.name]=i.isSelected(o.name)||!1})}),{selected:c,name:m.name}})}C("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),C("select",{type:"geoSelect",event:"geoselected"}),C("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(j,P,d){var O=d("bYtY"),E=d("+TT/"),C=d("OELB"),v=d("IDmD"),w=864e5;function m(i,r,o){this._model=i}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(i){i=C.parseDate(i);var r=i.getFullYear(),o=i.getMonth()+1;o=o<10?"0"+o:o;var n=i.getDate();n=n<10?"0"+n:n;var e=i.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:r,m:o,d:n,day:e,time:i.getTime(),formatedDate:r+"-"+o+"-"+n,date:i}},getNextNDay:function(i,r){return r=r||0,r===0?this.getDateInfo(i):(i=new Date(this.getDateInfo(i).time),i.setDate(i.getDate()+r),this.getDateInfo(i))},update:function(i,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 o=this._rangeInfo.weeks||1,n=["width","height"],e=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),t=this._orient==="horizontal"?[o,7]:[7,o];O.each([0,1],function(f){u(e,f)&&(s[n[f]]=e[f]*t[f])});var a={width:r.getWidth(),height:r.getHeight()},l=this._rect=E.getLayoutRect(s,a);O.each([0,1],function(f){u(e,f)||(e[f]=l[n[f]]/t[f])});function u(f,p){return f[p]!=null&&f[p]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(i,r){O.isArray(i)&&(i=i[0]),r==null&&(r=!0);var o=this.getDateInfo(i),n=this._rangeInfo,e=o.formatedDate;if(r&&!(o.time>=n.start.time&&o.time<n.end.time+w))return[NaN,NaN];var s=o.day,t=this._getRangeInfo([n.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+s*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]},pointToData:function(i){var r=this.pointToDate(i);return r&&r.time},dataToRect:function(i,r){var o=this.dataToPoint(i,r);return{contentShape:{x:o[0]-(this._sw-this._lineWidth)/2,y:o[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:o,tl:[o[0]-this._sw/2,o[1]-this._sh/2],tr:[o[0]+this._sw/2,o[1]-this._sh/2],br:[o[0]+this._sw/2,o[1]+this._sh/2],bl:[o[0]-this._sw/2,o[1]+this._sh/2]}},pointToDate:function(i){var r=Math.floor((i[0]-this._rect.x)/this._sw)+1,o=Math.floor((i[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(o,r-1,n):this._getDateByWeeksAndDay(r,o-1,n)},convertToPixel:O.curry(h,"dataToPoint"),convertFromPixel:O.curry(h,"pointToData"),_initRangeOption:function(){var i=this._model.get("range"),r=i;if(O.isArray(r)&&r.length===1&&(r=r[0]),/^\d{4}$/.test(r)&&(i=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var o=this.getDateInfo(r),n=o.date;n.setMonth(n.getMonth()+1);var e=this.getNextNDay(n,-1);i=[o.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(i=[r,r]);var s=this._getRangeInfo(i);return s.start.time>s.end.time&&i.reverse(),i},_getRangeInfo:function(i){i=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];var r;i[0].time>i[1].time&&(r=!0,i.reverse());var o=Math.floor(i[1].time/w)-Math.floor(i[0].time/w)+1,n=new Date(i[0].time),e=n.getDate(),s=i[1].date.getDate();n.setDate(e+o-1);var t=n.getDate();if(t!==s)for(var a=n.getTime()-i[1].time>0?1:-1;(t=n.getDate())!==s&&(n.getTime()-i[1].time)*a>0;)o-=a,n.setDate(t-a);var l=Math.floor((o+i[0].day+6)/7),u=r?-l+1:l-1;return r&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:o,weeks:l,nthWeek:u,fweek:i[0].day,lweek:i[1].day}},_getDateByWeeksAndDay:function(i,r,o){var n=this._getRangeInfo(o);if(i>n.weeks||i===0&&r<n.fweek||i===n.weeks&&r>n.lweek)return!1;var e=(i-1)*7-n.fweek+r,s=new Date(n.start.time);return s.setDate(n.start.d+e),this.getDateInfo(s)}},m.dimensions=m.prototype.dimensions,m.getDimensionsInfo=m.prototype.getDimensionsInfo,m.create=function(i,r){var o=[];return i.eachComponent("calendar",function(n){var e=new m(n,i,r);o.push(e),n.coordinateSystem=e}),i.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=o[n.get("calendarIndex")||0])}),o};function h(i,r,o,n){var e=o.calendarModel,s=o.seriesModel,t=e?e.coordinateSystem:s?s.coordinateSystem:null;return t===this?t[i](n):null}v.register("calendar",m);var c=m;j.exports=c},"0JQy":function(j,P){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",v=O+E+C,w="\\ufe0e\\ufe0f",m="["+d+"]",h="["+v+"]",c="\\ud83c[\\udffb-\\udfff]",i="(?:"+h+"|"+c+")",r="[^"+d+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",s=i+"?",t="["+w+"]?",a="(?:"+e+"(?:"+[r,o,n].join("|")+")"+t+s+")*",l=t+s+a,u="(?:"+[r+h+"?",h,o,n,m].join("|")+")",f=RegExp(c+"(?="+c+")|"+u+l,"g");function p(g){return g.match(f)||[]}j.exports=p},"0NbB":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="CaretDownOutlined";var h=P.a=E.forwardRef(m)},"0V0F":function(j,P,d){var O=d("bYtY"),E=O.createHashMap,C=O.each;function v(m){var h=E();m.eachSeries(function(c){var i=c.get("stack");if(i){var r=h.get(i)||h.set(i,[]),o=c.getData(),n={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:c};if(!n.stackedDimension||!(n.isStackedByIndex||n.stackedByDimension))return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(n)}}),h.each(w)}function w(m){C(m,function(h,c){var i=[],r=[NaN,NaN],o=[h.stackResultDimension,h.stackedOverDimension],n=h.data,e=h.isStackedByIndex,s=n.map(o,function(t,a,l){var u=n.get(h.stackedDimension,l);if(isNaN(u))return r;var f,p;e?p=n.getRawIndex(l):f=n.get(h.stackedByDimension,l);for(var g=NaN,A=c-1;A>=0;A--){var y=m[A];if(e||(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,g=x;break}}}return i[0]=u,i[1]=g,i});n.hostModel.setData(s),h.data=s})}j.exports=v},"0XgM":function(j,P,d){},"0fbx":function(j,P,d){},"0o9m":function(j,P,d){var O=d("ProS");d("hNWo"),d("RlCK"),d("XpcN");var E=d("kDyi"),C=d("bLfw");O.registerProcessor(O.PRIORITY.PROCESSOR.SERIES_FILTER,E),C.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(j,P,d){var O=d("ProS");O.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),O.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(j,P){var d=arguments[3],O=arguments[4],E=arguments[5],C=JSON.stringify;j.exports=function(v,w){for(var m,h=Object.keys(E),c=0,i=h.length;c<i;c++){var r=h[c],o=E[r].exports;if(o===v||o&&o.default===v){m=r;break}}if(!m){m=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var n={},c=0,i=h.length;c<i;c++){var r=h[c];n[r]=r}O[m]=["function(require,module,exports){"+v+"(self); }",n]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),s={};s[m]=m,O[e]=["function(require,module,exports){var f = require("+C(m)+");(f.default ? f.default : f)(self);}",s];var t={};a(e);function a(A){t[A]=!0;for(var y in O[A][1]){var x=O[A][1][y];t[x]||a(x)}}var l="("+d+")({"+Object.keys(t).map(function(A){return C(A)+":["+O[A][0]+","+C(O[A][1])+"]"}).join(",")+"},{},["+C(e)+"])",u=window.URL||window.webkitURL||window.mozURL||window.msURL,f=new Blob([l],{type:"text/javascript"});if(w&&w.bare)return f;var p=u.createObjectURL(f),g=new Worker(p);return g.objectURL=p,g}},"0s+r":function(j,P,d){var O=d("bYtY"),E=d("QBsz"),C=d("y23F"),v=d("H6uX"),w=d("YH21"),m=d("C0SR"),h="silent";function c(a,l,u){return{type:a,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:i}}function i(){w.stop(this.event)}function r(){}r.prototype.dispose=function(){};var o=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n=function(l,u,f,p){v.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,C.call(this),this.setHandlerProxy(f)};n.prototype={constructor:n,setHandlerProxy:function(l){this.proxy&&this.proxy.dispose(),l&&(O.each(o,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),g=this._hovered,A=g.target;A&&!A.__zr&&(g=this.findHover(g.x,g.y),A=g.target);var y=this._hovered=p?{x:u,y:f}:this.findHover(u,f),x=y.target,T=this.proxy;T.setCursor&&T.setCursor(x?x.cursor:"default"),A&&x!==A&&this.dispatchToElement(g,"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 g="on"+u,A=c(u,l,f);p&&!(p[g]&&(A.cancelBubble=p[g].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[g]=="function"&&y[g].call(y,A),y.trigger&&y.trigger(u,A)}))},findHover:function(l,u,f){for(var p=this.storage.getDisplayList(),g={x:l,y:u},A=p.length-1;A>=0;A--){var y;if(p[A]!==f&&!p[A].ignore&&(y=e(p[A],l,u))&&(!g.topTarget&&(g.topTarget=p[A]),y!==h)){g.target=p[A];break}}return g},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 g=p.type;l.gestureEvent=g,this.dispatchToElement({target:p.target},g,p.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){n.prototype[a]=function(l){var u=l.zrX,f=l.zrY,p=s(this,u,f),g,A;if((a!=="mouseup"||!p)&&(g=this.findHover(u,f),A=g.target),a==="mousedown")this._downEl=A,this._downPoint=[l.zrX,l.zrY],this._upEl=A;else if(a==="mouseup")this._upEl=A;else if(a==="click"){if(this._downEl!==this._upEl||!this._downPoint||E.dist(this._downPoint,[l.zrX,l.zrY])>4)return;this._downPoint=null}this.dispatchToElement(g,a,l)}});function e(a,l,u){if(a[a.rectHover?"rectContain":"contain"](l,u)){for(var f=a,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(a,l,u){var f=a.painter;return l<0||l>f.getWidth()||u<0||u>f.getHeight()}O.mixin(n,v),O.mixin(n,C);var t=n;j.exports=t},"10cm":function(j,P,d){var O=d("ProS"),E=d("2B6p"),C=E.updateCenterAndZoom;d("0qV/");var v={type:"graphRoam",event:"graphRoam",update:"none"};O.registerAction(v,function(w,m){m.eachComponent({mainType:"series",query:w},function(h){var c=h.coordinateSystem,i=C(c,w);h.setCenter&&h.setCenter(i.center),h.setZoom&&h.setZoom(i.zoom)})})},"15/o":function(j,P,d){},"19Vz":function(j,P,d){(function(O){O(d("VrN/"))})(function(O){O.defineOption("placeholder","",function(c,i,r){var o=r&&r!=O.Init;if(i&&!o)c.on("blur",w),c.on("change",m),c.on("swapDoc",m),O.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){v(c)}),m(c);else if(!i&&o){c.off("blur",w),c.off("change",m),c.off("swapDoc",m),O.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),E(c);var n=c.getWrapperElement();n.className=n.className.replace(" CodeMirror-empty","")}i&&!c.hasFocus()&&w(c)});function E(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function C(c){E(c);var i=c.state.placeholder=document.createElement("pre");i.style.cssText="height: 0; overflow: visible",i.style.direction=c.getOption("direction"),i.className="CodeMirror-placeholder CodeMirror-line-like";var r=c.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),i.appendChild(r),c.display.lineSpace.insertBefore(i,c.display.lineSpace.firstChild)}function v(c){setTimeout(function(){var i=!1,r=c.getInputField();r.nodeName=="TEXTAREA"?i=!r.value:c.lineCount()==1&&(i=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),i?C(c):E(c)},20)}function w(c){h(c)&&C(c)}function m(c){var i=c.getWrapperElement(),r=h(c);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?C(c):E(c)}function h(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(j,P,d){var O=d("y+Vt"),E=d("T6xi"),C=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(w,m){E.buildPath(w,m,!1)}});j.exports=C},"1LEl":function(j,P,d){var O=d("ProS"),E=d("F9bG"),C=O.extendComponentView({type:"axisPointer",render:function(w,m,h){var c=m.getComponent("tooltip"),i=w.get("triggerOn")||c&&c.get("triggerOn")||"mousemove|click";E.register("axisPointer",h,function(r,o,n){i!=="none"&&(r==="leave"||i.indexOf(r)>=0)&&n({type:"updateAxisPointer",currTrigger:r,x:o&&o.offsetX,y:o&&o.offsetY})})},remove:function(w,m){E.unregister(m.getZr(),"axisPointer"),C.superApply(this._model,"remove",arguments)},dispose:function(w,m){E.unregister("axisPointer",m),C.superApply(this._model,"dispose",arguments)}}),v=C;j.exports=v},"1MYJ":function(j,P,d){var O=d("y+Vt"),E=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var v=this.__dirtyPath,w=this.shape.paths,m=0;m<w.length;m++)v=v||w[m].__dirtyPath;this.__dirtyPath=v,this.__dirty=this.__dirty||v},beforeBrush:function(){this._updatePathDirty();for(var v=this.shape.paths||[],w=this.getGlobalScale(),m=0;m<v.length;m++)v[m].path||v[m].createPathProxy(),v[m].path.setScale(w[0],w[1],v[m].segmentIgnoreThreshold)},buildPath:function(v,w){for(var m=w.paths||[],h=0;h<m.length;h++)m[h].buildPath(v,m[h].shape,!0)},afterBrush:function(){for(var v=this.shape.paths||[],w=0;w<v.length;w++)v[w].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),O.prototype.getBoundingRect.call(this)}});j.exports=E},"1NG9":function(j,P,d){var O=d("y+Vt"),E=d("QBsz"),C=d("iXp4"),v=E.min,w=E.max,m=E.scaleAndAdd,h=E.copy,c=[],i=[],r=[];function o(u){return isNaN(u[0])||isNaN(u[1])}function n(u,f,p,g,A,y,x,T,S,b,_){return b==="none"||!b?s.apply(this,arguments):e.apply(this,arguments)}function e(u,f,p,g,A,y,x,T,S,b,_){for(var I=0,L=p,D=0;D<g;D++){var N=f[L];if(L>=A||L<0)break;if(o(N)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](N[0],N[1]);else if(S>0){var M=f[I],B=b==="y"?1:0,R=(N[B]-M[B])*S;h(i,M),i[B]=M[B]+R,h(r,N),r[B]=N[B]-R,u.bezierCurveTo(i[0],i[1],r[0],r[1],N[0],N[1])}else u.lineTo(N[0],N[1]);I=L,L+=y}return D}function s(u,f,p,g,A,y,x,T,S,b,_){for(var I=0,L=p,D=0;D<g;D++){var N=f[L];if(L>=A||L<0)break;if(o(N)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](N[0],N[1]),h(i,N);else if(S>0){var M=L+y,B=f[M];if(_)for(;B&&o(f[M]);)M+=y,B=f[M];var R=.5,H=f[I],B=f[M];if(!B||o(B))h(r,N);else{o(B)&&!_&&(B=N),E.sub(c,B,H);var F,K;if(b==="x"||b==="y"){var U=b==="x"?0:1;F=Math.abs(N[U]-H[U]),K=Math.abs(N[U]-B[U])}else F=E.dist(N,H),K=E.dist(N,B);R=K/(K+F),m(r,N,c,-S*(1-R))}v(i,i,T),w(i,i,x),v(r,r,T),w(r,r,x),u.bezierCurveTo(i[0],i[1],r[0],r[1],N[0],N[1]),m(i,N,c,S*R)}else u.lineTo(N[0],N[1]);I=L,L+=y}return D}function t(u,f){var p=[Infinity,Infinity],g=[-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]>g[0]&&(g[0]=y[0]),y[1]>g[1]&&(g[1]=y[1])}return{min:f?p:g,max:f?g:p}}var a=O.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:C(O.prototype.brush),buildPath:function(u,f){var p=f.points,g=0,A=p.length,y=t(p,f.smoothConstraint);if(f.connectNulls){for(;A>0&&o(p[A-1]);A--);for(;g<A&&o(p[g]);g++);}for(;g<A;)g+=n(u,p,g,A,A,1,y.min,y.max,f.smooth,f.smoothMonotone,f.connectNulls)+1}}),l=O.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:C(O.prototype.brush),buildPath:function(u,f){var p=f.points,g=f.stackedOnPoints,A=0,y=p.length,x=f.smoothMonotone,T=t(p,f.smoothConstraint),S=t(g,f.smoothConstraint);if(f.connectNulls){for(;y>0&&o(p[y-1]);y--);for(;A<y&&o(p[A]);A++);}for(;A<y;){var b=n(u,p,A,y,y,1,T.min,T.max,f.smooth,x,f.connectNulls);n(u,g,A+b-1,b,y,-1,S.min,S.max,f.stackedOnSmooth,x,f.connectNulls),A+=b+1,u.closePath()}}});P.Polyline=a,P.Polygon=l},"1RvN":function(j,P){var d=function(){this.head=null,this.tail=null,this._len=0},O=d.prototype;O.insert=function(m){var h=new E(m);return this.insertEntry(h),h},O.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++},O.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--},O.len=function(){return this._len},O.clear=function(){this.head=this.tail=null,this._len=0};var E=function(h){this.value=h,this.next,this.prev},C=function(h){this._list=new d,this._map={},this._maxSize=h||10,this._lastRemovedEntry=null},v=C.prototype;v.put=function(m,h){var c=this._list,i=this._map,r=null;if(i[m]==null){var o=c.len(),n=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var e=c.head;c.remove(e),delete i[e.key],r=e.value,this._lastRemovedEntry=e}n?n.value=h:n=new E(h),n.key=m,c.insertEntry(n),i[m]=n}return r},v.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},v.clear=function(){this._list.clear(),this._map={}};var w=C;j.exports=w},"1bdT":function(j,P,d){var O=d("3gBT"),E=d("H6uX"),C=d("DN4a"),v=d("vWvF"),w=d("bYtY"),m=function(i){C.call(this,i),E.call(this,i),v.call(this,i),this.id=i.id||O()};m.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(i,r){switch(this.draggable){case"horizontal":r=0;break;case"vertical":i=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=i,o[5]+=r,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(i,r){},attrKV:function(i,r){if(i==="position"||i==="scale"||i==="origin"){if(r){var o=this[i];o||(o=this[i]=[]),o[0]=r[0],o[1]=r[1]}}else this[i]=r},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(i,r){if(typeof i=="string")this.attrKV(i,r);else if(w.isObject(i))for(var o in i)i.hasOwnProperty(o)&&this.attrKV(o,i[o]);return this.dirty(!1),this},setClipPath:function(i){var r=this.__zr;r&&i.addSelfToZr(r),this.clipPath&&this.clipPath!==i&&this.removeClipPath(),this.clipPath=i,i.__zr=r,i.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var i=this.clipPath;i&&(i.__zr&&i.removeSelfFromZr(i.__zr),i.__zr=null,i.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(i){this.__zr=i;var r=this.animators;if(r)for(var o=0;o<r.length;o++)i.animation.addAnimator(r[o]);this.clipPath&&this.clipPath.addSelfToZr(i)},removeSelfFromZr:function(i){this.__zr=null;var r=this.animators;if(r)for(var o=0;o<r.length;o++)i.animation.removeAnimator(r[o]);this.clipPath&&this.clipPath.removeSelfFromZr(i)}},w.mixin(m,v),w.mixin(m,C),w.mixin(m,E);var h=m;j.exports=h},"1dTM":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("GQ8N"),E=b(d("Lo0S")),C=d("VSMT"),v=d("GdRQ"),w=d("SZEN"),m=d("vewr"),h=T(d("YJ9k")),c=T(d("MZdM")),i=T(d("ItS6")),r=T(d("whVF")),o=T(d("Fv0C")),n=T(d("LCi9")),e=T(d("rwxt")),s=T(d("Mmt2")),t=T(d("iUHT")),a=T(d("mHUz")),l=T(d("P2ho")),u=d("NBmB");d("mdZa");var f=T(d("34/K")),p=T(d("hXwI")),g=T(d("SgaC")),A=T(d("3690")),y=T(d("8K/p")),x=T(d("xO64"));function T(we){return we&&we.__esModule?we:{default:we}}function S(){if(typeof WeakMap!="function")return null;var we=new WeakMap;return S=function(){return we},we}function b(we){if(we&&we.__esModule)return we;if(we===null||_(we)!=="object"&&typeof we!="function")return{default:we};var he=S();if(he&&he.has(we))return he.get(we);var Pe={},Oe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var le in we)if(Object.prototype.hasOwnProperty.call(we,le)){var me=Oe?Object.getOwnPropertyDescriptor(we,le):null;me&&(me.get||me.set)?Object.defineProperty(Pe,le,me):Pe[le]=we[le]}return Pe.default=we,he&&he.set(we,Pe),Pe}function _(we){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(Pe){return typeof Pe}:_=function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},_(we)}function I(we,he){if(!(we instanceof he))throw new TypeError("Cannot call a class as a function")}function L(we,he){for(var Pe=0;Pe<he.length;Pe++){var Oe=he[Pe];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(we,Oe.key,Oe)}}function D(we,he,Pe){return he&&L(we.prototype,he),Pe&&L(we,Pe),we}function N(we,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create(he&&he.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),he&&M(we,he)}function M(we,he){return M=Object.setPrototypeOf||function(Oe,le){return Oe.__proto__=le,Oe},M(we,he)}function B(we){var he=F();return function(){var Oe=K(we),le;if(he){var me=K(this).constructor;le=Reflect.construct(Oe,arguments,me)}else le=Oe.apply(this,arguments);return R(this,le)}}function R(we,he){return he&&(_(he)==="object"||typeof he=="function")?he:H(we)}function H(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}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(we){return!1}}function K(we){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(Pe){return Pe.__proto__||Object.getPrototypeOf(Pe)},K(we)}var U=3,V="rgb(40, 40, 40)",z=17,Y=50,q=19,ce=75,ie=50,ve=1e3,Ee=50,Le=1,He=1<<1,ge=1<<2,Fe=1<<3,Q=1<<4,fe=1<<24,Je=1<<25,ne=1<<26,X=1<<27,G=1<<28,te=function(we){N(Pe,we);var he=B(Pe);function Pe(Oe,le,me){var _e;if(I(this,Pe),!Oe)throw new Error("Must specify target");if(!le)throw new Error("Must specify URL");_e=he.call(this),_e._target=Oe,_e._url=le,me=me||{},_e._rfbCredentials=me.credentials||{},_e._shared="shared"in me?!!me.shared:!0,_e._repeaterID=me.repeaterID||"",_e._wsProtocols=me.wsProtocols||[],_e._rfbConnectionState="",_e._rfbInitState="",_e._rfbAuthScheme=-1,_e._rfbCleanDisconnect=!0,_e._rfbVersion=0,_e._rfbMaxVersion=3.8,_e._rfbTightVNC=!1,_e._rfbVeNCryptState=0,_e._rfbXvpVer=0,_e._fbWidth=0,_e._fbHeight=0,_e._fbName="",_e._capabilities={power:!1},_e._supportsFence=!1,_e._supportsContinuousUpdates=!1,_e._enabledContinuousUpdates=!1,_e._supportsSetDesktopSize=!1,_e._screenID=0,_e._screenFlags=0,_e._qemuExtKeyEventSupported=!1,_e._clipboardText=null,_e._clipboardServerCapabilitiesActions={},_e._clipboardServerCapabilitiesFormats={},_e._sock=null,_e._display=null,_e._flushing=!1,_e._keyboard=null,_e._gestures=null,_e._disconnTimer=null,_e._resizeTimeout=null,_e._mouseMoveTimer=null,_e._decoders={},_e._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},_e._mousePos={},_e._mouseButtonMask=0,_e._mouseLastMoveTime=0,_e._viewportDragging=!1,_e._viewportDragPos={},_e._viewportHasMoved=!1,_e._accumulatedWheelDeltaX=0,_e._accumulatedWheelDeltaY=0,_e._gestureLastTapTime=null,_e._gestureFirstDoubleTapEv=null,_e._gestureLastMagnitudeX=0,_e._gestureLastMagnitudeY=0,_e._eventHandlers={focusCanvas:_e._focusCanvas.bind(H(_e)),windowResize:_e._windowResize.bind(H(_e)),handleMouse:_e._handleMouse.bind(H(_e)),handleWheel:_e._handleWheel.bind(H(_e)),handleGesture:_e._handleGesture.bind(H(_e))},E.Debug(">> RFB.constructor"),_e._screen=document.createElement("div"),_e._screen.style.display="flex",_e._screen.style.width="100%",_e._screen.style.height="100%",_e._screen.style.overflow="auto",_e._screen.style.background=V,_e._canvas=document.createElement("canvas"),_e._canvas.style.margin="auto",_e._canvas.style.outline="none",_e._canvas.style.flexShrink="0",_e._canvas.width=0,_e._canvas.height=0,_e._canvas.tabIndex=-1,_e._screen.appendChild(_e._canvas),_e._cursor=new e.default,_e._cursorImage=Pe.cursors.none,_e._decoders[u.encodings.encodingRaw]=new f.default,_e._decoders[u.encodings.encodingCopyRect]=new p.default,_e._decoders[u.encodings.encodingRRE]=new g.default,_e._decoders[u.encodings.encodingHextile]=new A.default,_e._decoders[u.encodings.encodingTight]=new y.default,_e._decoders[u.encodings.encodingTightPNG]=new x.default;try{_e._display=new c.default(_e._canvas)}catch($e){throw E.Error("Display exception: "+$e),$e}return _e._display.onflush=_e._onFlush.bind(H(_e)),_e._keyboard=new o.default(_e._canvas),_e._keyboard.onkeyevent=_e._handleKeyEvent.bind(H(_e)),_e._gestures=new n.default,_e._sock=new s.default,_e._sock.on("message",function(){_e._handleMessage()}),_e._sock.on("open",function(){_e._rfbConnectionState==="connecting"&&_e._rfbInitState===""?(_e._rfbInitState="ProtocolVersion",E.Debug("Starting VNC handshake")):_e._fail("Unexpected server connection while "+_e._rfbConnectionState)}),_e._sock.on("close",function($e){E.Debug("WebSocket on-close event");var gt="";$e.code&&(gt="(code: "+$e.code,$e.reason&&(gt+=", reason: "+$e.reason),gt+=")");switch(_e._rfbConnectionState){case"connecting":_e._fail("Connection closed "+gt);break;case"connected":_e._updateConnectionState("disconnecting"),_e._updateConnectionState("disconnected");break;case"disconnecting":_e._updateConnectionState("disconnected");break;case"disconnected":_e._fail("Unexpected server disconnect when already disconnected "+gt);break;default:_e._fail("Unexpected server disconnect before connecting "+gt);break}_e._sock.off("close")}),_e._sock.on("error",function($e){return E.Warn("WebSocket on-error event")}),setTimeout(_e._updateConnectionState.bind(H(_e),"connecting")),E.Debug("<< RFB.constructor"),_e.dragViewport=!1,_e.focusOnClick=!0,_e._viewOnly=!1,_e._clipViewport=!1,_e._scaleViewport=!1,_e._resizeSession=!1,_e._showDotCursor=!1,me.showDotCursor!==void 0&&(E.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),_e._showDotCursor=me.showDotCursor),_e._qualityLevel=6,_e._compressionLevel=2,_e}return D(Pe,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(le){this._rfbCredentials=le,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(a.default.XK_Control_L,"ControlLeft",!0),this.sendKey(a.default.XK_Alt_L,"AltLeft",!0),this.sendKey(a.default.XK_Delete,"Delete",!0),this.sendKey(a.default.XK_Delete,"Delete",!1),this.sendKey(a.default.XK_Alt_L,"AltLeft",!1),this.sendKey(a.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(le,me,_e){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(_e===void 0){this.sendKey(le,me,!0),this.sendKey(le,me,!1);return}var $e=l.default[me];if(this._qemuExtKeyEventSupported&&$e)le=le||0,E.Info("Sending key ("+(_e?"down":"up")+"): keysym "+le+", scancode "+$e),Pe.messages.QEMUExtendedKeyEvent(this._sock,le,_e,$e);else{if(!le)return;E.Info("Sending keysym ("+(_e?"down":"up")+"): "+le),Pe.messages.keyEvent(this._sock,le,_e?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(le){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Le]&&this._clipboardServerCapabilitiesActions[X])this._clipboardText=le,Pe.messages.extendedClipboardNotify(this._sock,[Le]);else{for(var me=new Uint8Array(le.length),_e=0;_e<le.length;_e++)me[_e]=le.charCodeAt(_e);Pe.messages.clientCutText(this._sock,me)}}},{key:"_connect",value:function(){E.Debug(">> RFB.connect"),E.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(le){le.name==="SyntaxError"?this._fail("Invalid host or port ("+le+")"):this._fail("Error when opening socket ("+le+")")}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(le){if(!(le.name==="NotFoundError"))throw le}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),E.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(le){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(le){this._fbName=le,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(le){var me=this;window.requestAnimationFrame(function(){me._updateClip(),me._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var le=this._display.clipViewport,me=this._clipViewport;if(this._scaleViewport&&(me=!1),le!==me&&(this._display.clipViewport=me),me){var _e=this._screenSize();this._display.viewportChangeSize(_e.w,_e.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var le=this._screenSize();this._display.autoscale(le.w,le.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var le=this._screenSize();Pe.messages.setDesktopSize(this._sock,Math.floor(le.w),Math.floor(le.h),this._screenID,this._screenFlags),E.Debug("Requested new desktop size: "+le.w+"x"+le.h)}},{key:"_screenSize",value:function(){var le=this._screen.getBoundingClientRect();return{w:le.width,h:le.height}}},{key:"_fixScrollbars",value:function(){var le=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=le}},{key:"_updateConnectionState",value:function(le){var me=this,_e=this._rfbConnectionState;if(le===_e){E.Debug("Already in state '"+le+"', ignoring");return}if(_e==="disconnected"){E.Error("Tried changing state of a disconnected RFB object");return}switch(le){case"connected":if(_e!=="connecting"){E.Error("Bad transition to connected state, previous connection state: "+_e);return}break;case"disconnected":if(_e!=="disconnecting"){E.Error("Bad transition to disconnected state, previous connection state: "+_e);return}break;case"connecting":if(_e!==""){E.Error("Bad transition to connecting state, previous connection state: "+_e);return}break;case"disconnecting":if(_e!=="connected"&&_e!=="connecting"){E.Error("Bad transition to disconnecting state, previous connection state: "+_e);return}break;default:E.Error("Unknown connection state: "+le);return}this._rfbConnectionState=le,E.Debug("New state '"+le+"', was '"+_e+"'."),this._disconnTimer&&le!=="disconnecting"&&(E.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(le){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."),me._updateConnectionState("disconnected")},U*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(le){switch(this._rfbConnectionState){case"disconnecting":E.Error("Failed when disconnecting: "+le);break;case"connected":E.Error("Failed while connected: "+le);break;case"connecting":E.Error("Failed when connecting: "+le);break;default:E.Error("RFB failure: "+le);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(le,me){this._capabilities[le]=me,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(le,me,_e){this.sendKey(le,me,_e)}},{key:"_handleMouse",value:function(le){if(le.type==="click"&&le.target!==this._canvas)return;if(le.stopPropagation(),le.preventDefault(),le.type==="click"||le.type==="contextmenu")return;var me=(0,w.clientToElement)(le.clientX,le.clientY,this._canvas);switch(le.type){case"mousedown":(0,m.setCapture)(this._canvas),this._handleMouseButton(me.x,me.y,!0,1<<le.button);break;case"mouseup":this._handleMouseButton(me.x,me.y,!1,1<<le.button);break;case"mousemove":this._handleMouseMove(me.x,me.y);break}}},{key:"_handleMouseButton",value:function(le,me,_e,$e){if(this.dragViewport)if(_e&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:le,y:me},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(le,me,$e)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(le,me,this._mouseButtonMask)),_e?this._mouseButtonMask|=$e:this._mouseButtonMask&=~$e,this._sendMouse(le,me,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(le,me){var _e=this;if(this._viewportDragging){var $e=this._viewportDragPos.x-le,gt=this._viewportDragPos.y-me;(this._viewportHasMoved||Math.abs($e)>v.dragThreshold||Math.abs(gt)>v.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:le,y:me},this._display.viewportChangePos($e,gt));return}if(this._mousePos={x:le,y:me},this._mouseMoveTimer==null){var et=Date.now()-this._mouseLastMoveTime;et>z?(this._sendMouse(le,me,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){_e._handleDelayedMouseMove()},z-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(le,me,_e){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Pe.messages.pointerEvent(this._sock,this._display.absX(le),this._display.absY(me),_e)}},{key:"_handleWheel",value:function(le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;le.stopPropagation(),le.preventDefault();var me=(0,w.clientToElement)(le.clientX,le.clientY,this._canvas),_e=le.deltaX,$e=le.deltaY;le.deltaMode!==0&&(_e*=q,$e*=q),this._accumulatedWheelDeltaX+=_e,this._accumulatedWheelDeltaY+=$e,Math.abs(this._accumulatedWheelDeltaX)>=Y&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(me.x,me.y,!0,1<<5),this._handleMouseButton(me.x,me.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(me.x,me.y,!0,1<<6),this._handleMouseButton(me.x,me.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=Y&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(me.x,me.y,!0,1<<3),this._handleMouseButton(me.x,me.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(me.x,me.y,!0,1<<4),this._handleMouseButton(me.x,me.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(le,me,_e){this._handleMouseMove(me,_e),this._cursor.move(le.detail.clientX,le.detail.clientY)}},{key:"_handleTapEvent",value:function(le,me){var _e=(0,w.clientToElement)(le.detail.clientX,le.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<ve&&this._gestureFirstDoubleTapEv.detail.type===le.detail.type){var $e=this._gestureFirstDoubleTapEv.detail.clientX-le.detail.clientX,gt=this._gestureFirstDoubleTapEv.detail.clientY-le.detail.clientY,et=Math.hypot($e,gt);et<Ee?_e=(0,w.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=le}else this._gestureFirstDoubleTapEv=le;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!0,me),this._handleMouseButton(_e.x,_e.y,!1,me)}},{key:"_handleGesture",value:function(le){var me,_e=(0,w.clientToElement)(le.detail.clientX,le.detail.clientY,this._canvas);switch(le.type){case"gesturestart":switch(le.detail.type){case"onetap":this._handleTapEvent(le,1);break;case"twotap":this._handleTapEvent(le,4);break;case"threetap":this._handleTapEvent(le,2);break;case"drag":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!0,1);break;case"longpress":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=le.detail.magnitudeX,this._gestureLastMagnitudeY=le.detail.magnitudeY,this._fakeMouseMove(le,_e.x,_e.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),this._fakeMouseMove(le,_e.x,_e.y);break}break;case"gesturemove":switch(le.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(le,_e.x,_e.y);break;case"twodrag":for(this._fakeMouseMove(le,_e.x,_e.y);le.detail.magnitudeY-this._gestureLastMagnitudeY>ie;)this._handleMouseButton(_e.x,_e.y,!0,8),this._handleMouseButton(_e.x,_e.y,!1,8),this._gestureLastMagnitudeY+=ie;for(;le.detail.magnitudeY-this._gestureLastMagnitudeY<-ie;)this._handleMouseButton(_e.x,_e.y,!0,16),this._handleMouseButton(_e.x,_e.y,!1,16),this._gestureLastMagnitudeY-=ie;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX>ie;)this._handleMouseButton(_e.x,_e.y,!0,32),this._handleMouseButton(_e.x,_e.y,!1,32),this._gestureLastMagnitudeX+=ie;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX<-ie;)this._handleMouseButton(_e.x,_e.y,!0,64),this._handleMouseButton(_e.x,_e.y,!1,64),this._gestureLastMagnitudeX-=ie;break;case"pinch":if(this._fakeMouseMove(le,_e.x,_e.y),me=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),Math.abs(me-this._gestureLastMagnitudeX)>ce){for(this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!0);me-this._gestureLastMagnitudeX>ce;)this._handleMouseButton(_e.x,_e.y,!0,8),this._handleMouseButton(_e.x,_e.y,!1,8),this._gestureLastMagnitudeX+=ce;for(;me-this._gestureLastMagnitudeX<-ce;)this._handleMouseButton(_e.x,_e.y,!0,16),this._handleMouseButton(_e.x,_e.y,!1,16),this._gestureLastMagnitudeX-=ce}this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(le.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!1,1);break;case"longpress":this._fakeMouseMove(le,_e.x,_e.y),this._handleMouseButton(_e.x,_e.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var le=this._sock.rQshiftStr(12).substr(4,7);E.Info("Server ProtocolVersion: "+le);var me=0;switch(le){case"000.000":me=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+le)}if(me){for(var _e="ID:"+this._repeaterID;_e.length<250;)_e+="\0";return this._sock.sendString(_e),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var $e="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+$e+`
`),E.Debug("Sent ProtocolVersion: "+$e),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function le($e,gt){for(var et=0;et<gt.length;et++)if(gt[et]===$e)return!0;return!1}if(this._rfbVersion>=3.7){var me=this._sock.rQshift8();if(this._sock.rQwait("security type",me,1))return!1;if(me===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var _e=this._sock.rQshiftBytes(me);if(E.Debug("Server security types: "+_e),le(1,_e))this._rfbAuthScheme=1;else if(le(22,_e))this._rfbAuthScheme=22;else if(le(16,_e))this._rfbAuthScheme=16;else if(le(2,_e))this._rfbAuthScheme=2;else if(le(19,_e))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+_e+")");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 le=this._sock.rQshift32(),me="";if(le>0){if(this._sock.rQwait("reason",le,4))return!1;me=this._sock.rQshiftStr(le)}return me!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:me}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+me+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var le=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(le),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var le=this._sock.rQshift8(),me=this._sock.rQshift8();if(!(le==0&&me==2))return this._fail("Unsupported VeNCrypt version "+le+"."+me);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var _e=this._sock.rQshift8();if(_e!=0)return this._fail("VeNCrypt failure "+_e);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var $e=this._sock.rQshift8();if($e<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=$e,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var gt=[],et=0;et<this._rfbVeNCryptSubtypesLength;et++)gt.push(this._sock.rQshift32());if(gt.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 Ie=(0,C.encodeUTF8)(this._rfbCredentials.username),rt=(0,C.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Ie.length]),this._sock.send([0,0,0,rt.length]),this._sock.sendString(Ie),this._sock.sendString(rt),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 le=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),me=Pe.genDES(this._rfbCredentials.password,le);return this._sock.send(me),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(le){for(var me={0:{vendor:"TGHT",signature:"NOTUNNEL"}},_e={},$e=0;$e<le;$e++){var gt=this._sock.rQshift32(),et=this._sock.rQshiftStr(4),Ie=this._sock.rQshiftStr(8);_e[gt]={vendor:et,signature:Ie}}return E.Debug("Server Tight tunnel types: "+_e),_e[1]&&_e[1].vendor==="SICR"&&_e[1].signature==="SCHANNEL"&&(E.Debug("Detected Siemens server. Assuming NOTUNNEL support."),_e[0]={vendor:"TGHT",signature:"NOTUNNEL"}),_e[0]?_e[0].vendor!=me[0].vendor||_e[0].signature!=me[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(E.Debug("Selected tunnel type: "+me[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var le=this._sock.rQshift32();if(le>0&&this._sock.rQwait("tunnel capabilities",16*le,4))return!1;if(this._rfbTightVNC=!0,le>0)return this._negotiateTightTunnels(le),!1}if(this._sock.rQwait("sub auth count",4))return!1;var me=this._sock.rQshift32();if(me===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*me,4))return!1;for(var _e={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},$e=[],gt=0;gt<me;gt++){this._sock.rQshift32();var et=this._sock.rQshiftStr(12);$e.push(et)}E.Debug("Server Tight authentication types: "+$e);for(var Ie in _e)if($e.indexOf(Ie)!=-1){this._sock.send([0,0,0,_e[Ie]]),E.Debug("Selected authentication type: "+Ie);switch(Ie){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: "+Ie+")")}}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 le=this._sock.rQshift32();return le===0?(this._rfbInitState="ClientInitialisation",E.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=le,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:le}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var le=this._sock.rQshift16(),me=this._sock.rQshift16(),_e=this._sock.rQshift8(),$e=this._sock.rQshift8(),gt=this._sock.rQshift8(),et=this._sock.rQshift8(),Ie=this._sock.rQshift16(),rt=this._sock.rQshift16(),Ge=this._sock.rQshift16(),vt=this._sock.rQshift8(),Ot=this._sock.rQshift8(),Et=this._sock.rQshift8();this._sock.rQskipBytes(3);var Tt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Tt,24))return!1;var Rt=this._sock.rQshiftStr(Tt);if(Rt=(0,C.decodeUTF8)(Rt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Tt))return!1;var Be=this._sock.rQshift16(),Z=this._sock.rQshift16(),J=this._sock.rQshift16();this._sock.rQskipBytes(2);var je=(Be+Z+J)*16;if(this._sock.rQwait("TightVNC extended server init header",je,32+Tt))return!1;this._sock.rQskipBytes(16*Be),this._sock.rQskipBytes(16*Z),this._sock.rQskipBytes(16*J)}return E.Info("Screen: "+le+"x"+me+", bpp: "+_e+", depth: "+$e+", bigEndian: "+gt+", trueColor: "+et+", redMax: "+Ie+", greenMax: "+rt+", blueMax: "+Ge+", redShift: "+vt+", greenShift: "+Ot+", blueShift: "+Et),this._setDesktopName(Rt),this._resize(le,me),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),Pe.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Pe.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var le=[];le.push(u.encodings.encodingCopyRect),this._fbDepth==24&&(le.push(u.encodings.encodingTight),le.push(u.encodings.encodingTightPNG),le.push(u.encodings.encodingHextile),le.push(u.encodings.encodingRRE)),le.push(u.encodings.encodingRaw),le.push(u.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),le.push(u.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),le.push(u.encodings.pseudoEncodingDesktopSize),le.push(u.encodings.pseudoEncodingLastRect),le.push(u.encodings.pseudoEncodingQEMUExtendedKeyEvent),le.push(u.encodings.pseudoEncodingExtendedDesktopSize),le.push(u.encodings.pseudoEncodingXvp),le.push(u.encodings.pseudoEncodingFence),le.push(u.encodings.pseudoEncodingContinuousUpdates),le.push(u.encodings.pseudoEncodingDesktopName),le.push(u.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(le.push(u.encodings.pseudoEncodingVMwareCursor),le.push(u.encodings.pseudoEncodingCursor)),Pe.messages.clientEncodings(this._sock,le)}},{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 le=this._sock.rQshift32();if(le=(0,O.toSigned32bit)(le),this._sock.rQwait("ServerCutText content",Math.abs(le),8))return!1;if(le>=0){var me=this._sock.rQshiftStr(le);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:me}}))}else{le=Math.abs(le);var _e=this._sock.rQshift32(),$e=_e&65535,gt=_e&4278190080,et=!!(gt&fe);if(et){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Ie=0;Ie<=15;Ie++){var rt=1<<Ie;$e&rt&&(this._clipboardServerCapabilitiesFormats[rt]=!0,this._sock.rQshift32())}for(var Ge=24;Ge<=31;Ge++){var vt=1<<Ge;this._clipboardServerCapabilitiesActions[vt]=!!(gt&vt)}var Ot=[fe,Je,ne,X,G];Pe.messages.extendedClipboardCaps(this._sock,Ot,{extendedClipboardFormatText:0})}else if(gt===Je){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[G]&&($e&Le&&Pe.messages.extendedClipboardProvide(this._sock,[Le],[this._clipboardText]))}else if(gt===ne){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[X]&&(this._clipboardText!=null?Pe.messages.extendedClipboardNotify(this._sock,[Le]):Pe.messages.extendedClipboardNotify(this._sock,[]))}else if(gt===X){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Je]&&($e&Le&&Pe.messages.extendedClipboardRequest(this._sock,[Le]))}else if(gt===G){if(this._viewOnly)return!0;if(!($e&Le))return!0;this._clipboardText=null;var Et=this._sock.rQshiftBytes(le-4),Tt=new i.default,Rt=null;Tt.setInput(Et);for(var Be=0;Be<=15;Be++){var Z=1<<Be;if($e&Z){var J=0,je=Tt.inflate(4);J|=je[0]<<24,J|=je[1]<<16,J|=je[2]<<8,J|=je[3];var Re=Tt.inflate(J);Z===Le&&(Rt=Re)}}if(Tt.setInput(null),Rt!==null){for(var oe="",yt=0;yt<Rt.length;yt++)oe+=String.fromCharCode(Rt[yt]);Rt=oe,Rt=(0,C.decodeUTF8)(Rt),Rt.length>0&&Rt.charAt(Rt.length-1)==="\0"&&(Rt=Rt.slice(0,-1)),Rt=Rt.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Rt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+gt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var le=this._sock.rQshift32(),me=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",me,9))return!1;me>64&&(E.Warn("Bad payload length ("+me+") in fence response"),me=64);var _e=this._sock.rQshiftStr(me);return this._supportsFence=!0,le&1<<31?(le&=1<<0|1<<1,Pe.messages.clientFence(this._sock,le,_e),!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 le=this._sock.rQshift8(),me=this._sock.rQshift8();switch(me){case 0:E.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=le,E.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+me+")");break}return!0}},{key:"_normalMsg",value:function(){var le;this._FBU.rects>0?le=0:le=this._sock.rQshift8();var me,_e;switch(le){case 0:return _e=this._framebufferUpdate(),_e&&!this._enabledContinuousUpdates&&Pe.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),_e;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 me=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,me&&(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 "+le+")"),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 le=this._sock.rQshiftBytes(12);this._FBU.x=(le[0]<<8)+le[1],this._FBU.y=(le[2]<<8)+le[3],this._FBU.width=(le[4]<<8)+le[5],this._FBU.height=(le[6]<<8)+le[7],this._FBU.encoding=parseInt((le[8]<<24)+(le[9]<<16)+(le[10]<<8)+le[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 le=document.createEvent("keyboardEvent");le.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(me){}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 le=this._FBU.x,me=this._FBU.y,_e=this._FBU.width,$e=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var gt=this._sock.rQshift8();this._sock.rQshift8();var et,Ie=4;if(gt==0){var rt=4294967040|0;if(et=new Array(_e*$e*Ie),this._sock.rQwait("VMware cursor classic encoding",_e*$e*Ie*2,2))return!1;for(var Ge=new Array(_e*$e),vt=0;vt<_e*$e;vt++)Ge[vt]=this._sock.rQshift32();for(var Ot=new Array(_e*$e),Et=0;Et<_e*$e;Et++)Ot[Et]=this._sock.rQshift32();for(var Tt=0;Tt<_e*$e;Tt++)if(Ge[Tt]==0){var Rt=Ot[Tt],Be=Rt>>8&255,Z=Rt>>16&255,J=Rt>>24&255;et[Tt*Ie]=Be,et[Tt*Ie+1]=Z,et[Tt*Ie+2]=J,et[Tt*Ie+3]=255}else(Ge[Tt]&rt)==rt?Ot[Tt]==0?(et[Tt*Ie]=0,et[Tt*Ie+1]=0,et[Tt*Ie+2]=0,et[Tt*Ie+3]=0):((Ot[Tt]&rt)==rt,et[Tt*Ie]=0,et[Tt*Ie+1]=0,et[Tt*Ie+2]=0,et[Tt*Ie+3]=255):(et[Tt*Ie]=0,et[Tt*Ie+1]=0,et[Tt*Ie+2]=0,et[Tt*Ie+3]=255)}else if(gt==1){if(this._sock.rQwait("VMware cursor alpha encoding",_e*$e*4,2))return!1;et=new Array(_e*$e*Ie);for(var je=0;je<_e*$e;je++){var Re=this._sock.rQshift32();et[je*4]=Re>>24&255,et[je*4+1]=Re>>16&255,et[je*4+2]=Re>>8&255,et[je*4+3]=Re&255}}else return E.Warn("The given cursor type is not supported: "+gt+" given."),!1;return this._updateCursor(et,le,me,_e,$e),!0}},{key:"_handleCursor",value:function(){var le=this._FBU.x,me=this._FBU.y,_e=this._FBU.width,$e=this._FBU.height,gt=_e*$e*4,et=Math.ceil(_e/8)*$e,Ie=gt+et;if(this._sock.rQwait("cursor encoding",Ie))return!1;for(var rt=this._sock.rQshiftBytes(gt),Ge=this._sock.rQshiftBytes(et),vt=new Uint8Array(_e*$e*4),Ot=0,Et=0;Et<$e;Et++)for(var Tt=0;Tt<_e;Tt++){var Rt=Et*Math.ceil(_e/8)+Math.floor(Tt/8),Be=Ge[Rt]<<Tt%8&128?255:0;vt[Ot]=rt[Ot+2],vt[Ot+1]=rt[Ot+1],vt[Ot+2]=rt[Ot],vt[Ot+3]=Be,Ot+=4}return this._updateCursor(vt,le,me,_e,$e),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var le=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",le,4))return!1;var me=this._sock.rQshiftStr(le);return me=(0,C.decodeUTF8)(me,!0),this._setDesktopName(me),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var le=this._sock.rQpeek8(),me=4+le*16;if(this._sock.rQwait("ExtendedDesktopSize",me))return!1;var _e=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,_e&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var $e=0;$e<le;$e+=1)$e===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 gt="";switch(this._FBU.y){case 1:gt="Resize is administratively prohibited";break;case 2:gt="Out of resources";break;case 3:gt="Invalid screen layout";break;default:gt="Unknown reason";break}E.Warn("Server did not accept the resize request: "+gt)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var le=this._decoders[this._FBU.encoding];if(!le)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return le.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(me){return this._fail("Error decoding rect: "+me),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Pe.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(le,me){this._fbWidth=le,this._fbHeight=me,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(le,me){if(this._rfbXvpVer<le)return;E.Info("Sending XVP operation "+me+" (version "+le+")"),Pe.messages.xvpOp(this._sock,le,me)}},{key:"_updateCursor",value:function(le,me,_e,$e,gt){this._cursorImage={rgbaPixels:le,hotx:me,hoty:_e,w:$e,h:gt},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var le=3;le<this._cursorImage.rgbaPixels.length;le+=4)if(this._cursorImage.rgbaPixels[le])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var le=this._shouldShowDotCursor()?Pe.cursors.dot:this._cursorImage;this._cursor.change(le.rgbaPixels,le.hotx,le.hoty,le.w,le.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(le){this._viewOnly=le,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(le?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(le){E.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(le){this._clipViewport=le,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(le){this._scaleViewport=le,le&&this._clipViewport&&this._updateClip(),this._updateScale(),!le&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(le){this._resizeSession=le,le&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(le){this._showDotCursor=le,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(le){this._screen.style.background=le}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(le){if(!Number.isInteger(le)||le<0||le>9){E.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===le)return;this._qualityLevel=le,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(le){if(!Number.isInteger(le)||le<0||le>9){E.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===le)return;this._compressionLevel=le,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(le,me){var _e=le.split("").map(function($e){return $e.charCodeAt(0)});return new t.default(_e).encrypt(me)}}]),Pe}(h.default);P.default=te,te.messages={keyEvent:function(he,Pe,Oe){var le=he._sQ,me=he._sQlen;le[me]=4,le[me+1]=Oe,le[me+2]=0,le[me+3]=0,le[me+4]=Pe>>24,le[me+5]=Pe>>16,le[me+6]=Pe>>8,le[me+7]=Pe,he._sQlen+=8,he.flush()},QEMUExtendedKeyEvent:function(he,Pe,Oe,le){function me(et){var Ie=le>>8,rt=le&255;return Ie===224&&rt<127?rt|128:et}var _e=he._sQ,$e=he._sQlen;_e[$e]=255,_e[$e+1]=0,_e[$e+2]=Oe>>8,_e[$e+3]=Oe,_e[$e+4]=Pe>>24,_e[$e+5]=Pe>>16,_e[$e+6]=Pe>>8,_e[$e+7]=Pe;var gt=me(le);_e[$e+8]=gt>>24,_e[$e+9]=gt>>16,_e[$e+10]=gt>>8,_e[$e+11]=gt,he._sQlen+=12,he.flush()},pointerEvent:function(he,Pe,Oe,le){var me=he._sQ,_e=he._sQlen;me[_e]=5,me[_e+1]=le,me[_e+2]=Pe>>8,me[_e+3]=Pe,me[_e+4]=Oe>>8,me[_e+5]=Oe,he._sQlen+=6,he.flush()},_buildExtendedClipboardFlags:function(he,Pe){for(var Oe=new Uint8Array(4),le=0,me=0,_e=0;_e<he.length;_e++)me|=he[_e];for(var $e=0;$e<Pe.length;$e++)le|=Pe[$e];return Oe[0]=me>>24,Oe[1]=0,Oe[2]=0,Oe[3]=le,Oe},extendedClipboardProvide:function(he,Pe,Oe){for(var le=new r.default,me=[],_e=0;_e<Pe.length;_e++){if(Pe[_e]!=Le)throw new Error("Unsupported extended clipboard format for Provide message.");Oe[_e]=Oe[_e].replace(/\r\n|\r|\n/gm,`\r
`);var $e=(0,C.encodeUTF8)(Oe[_e]+"\0");me.push($e.length>>24&255,$e.length>>16&255,$e.length>>8&255,$e.length&255);for(var gt=0;gt<$e.length;gt++)me.push($e.charCodeAt(gt))}var et=le.deflate(new Uint8Array(me)),Ie=new Uint8Array(4+et.length);Ie.set(te.messages._buildExtendedClipboardFlags([G],Pe)),Ie.set(et,4),te.messages.clientCutText(he,Ie,!0)},extendedClipboardNotify:function(he,Pe){var Oe=te.messages._buildExtendedClipboardFlags([X],Pe);te.messages.clientCutText(he,Oe,!0)},extendedClipboardRequest:function(he,Pe){var Oe=te.messages._buildExtendedClipboardFlags([Je],Pe);te.messages.clientCutText(he,Oe,!0)},extendedClipboardCaps:function(he,Pe,Oe){var le=Object.keys(Oe),me=new Uint8Array(4+4*le.length);le.map(function(gt){return parseInt(gt)}),le.sort(function(gt,et){return gt-et}),me.set(te.messages._buildExtendedClipboardFlags(Pe,[]));for(var _e=4,$e=0;$e<le.length;$e++)me[_e]=Oe[le[$e]]>>24,me[_e+1]=Oe[le[$e]]>>16,me[_e+2]=Oe[le[$e]]>>8,me[_e+3]=Oe[le[$e]]>>0,_e+=4,me[3]|=1<<le[$e];te.messages.clientCutText(he,me,!0)},clientCutText:function(he,Pe){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,le=he._sQ,me=he._sQlen;le[me]=6,le[me+1]=0,le[me+2]=0,le[me+3]=0;var _e;Oe?_e=(0,O.toUnsigned32bit)(-Pe.length):_e=Pe.length,le[me+4]=_e>>24,le[me+5]=_e>>16,le[me+6]=_e>>8,le[me+7]=_e,he._sQlen+=8;for(var $e=0,gt=Pe.length;gt>0;){for(var et=Math.min(gt,he._sQbufferSize-he._sQlen),Ie=0;Ie<et;Ie++)le[he._sQlen+Ie]=Pe[$e+Ie];he._sQlen+=et,he.flush(),gt-=et,$e+=et}},setDesktopSize:function(he,Pe,Oe,le,me){var _e=he._sQ,$e=he._sQlen;_e[$e]=251,_e[$e+1]=0,_e[$e+2]=Pe>>8,_e[$e+3]=Pe,_e[$e+4]=Oe>>8,_e[$e+5]=Oe,_e[$e+6]=1,_e[$e+7]=0,_e[$e+8]=le>>24,_e[$e+9]=le>>16,_e[$e+10]=le>>8,_e[$e+11]=le,_e[$e+12]=0,_e[$e+13]=0,_e[$e+14]=0,_e[$e+15]=0,_e[$e+16]=Pe>>8,_e[$e+17]=Pe,_e[$e+18]=Oe>>8,_e[$e+19]=Oe,_e[$e+20]=me>>24,_e[$e+21]=me>>16,_e[$e+22]=me>>8,_e[$e+23]=me,he._sQlen+=24,he.flush()},clientFence:function(he,Pe,Oe){var le=he._sQ,me=he._sQlen;le[me]=248,le[me+1]=0,le[me+2]=0,le[me+3]=0,le[me+4]=Pe>>24,le[me+5]=Pe>>16,le[me+6]=Pe>>8,le[me+7]=Pe;var _e=Oe.length;le[me+8]=_e;for(var $e=0;$e<_e;$e++)le[me+9+$e]=Oe.charCodeAt($e);he._sQlen+=9+_e,he.flush()},enableContinuousUpdates:function(he,Pe,Oe,le,me,_e){var $e=he._sQ,gt=he._sQlen;$e[gt]=150,$e[gt+1]=Pe,$e[gt+2]=Oe>>8,$e[gt+3]=Oe,$e[gt+4]=le>>8,$e[gt+5]=le,$e[gt+6]=me>>8,$e[gt+7]=me,$e[gt+8]=_e>>8,$e[gt+9]=_e,he._sQlen+=10,he.flush()},pixelFormat:function(he,Pe,Oe){var le=he._sQ,me=he._sQlen,_e;Pe>16?_e=32:Pe>8?_e=16:_e=8;var $e=Math.floor(Pe/3);le[me]=0,le[me+1]=0,le[me+2]=0,le[me+3]=0,le[me+4]=_e,le[me+5]=Pe,le[me+6]=0,le[me+7]=Oe?1:0,le[me+8]=0,le[me+9]=(1<<$e)-1,le[me+10]=0,le[me+11]=(1<<$e)-1,le[me+12]=0,le[me+13]=(1<<$e)-1,le[me+14]=$e*2,le[me+15]=$e*1,le[me+16]=$e*0,le[me+17]=0,le[me+18]=0,le[me+19]=0,he._sQlen+=20,he.flush()},clientEncodings:function(he,Pe){var Oe=he._sQ,le=he._sQlen;Oe[le]=2,Oe[le+1]=0,Oe[le+2]=Pe.length>>8,Oe[le+3]=Pe.length;for(var me=le+4,_e=0;_e<Pe.length;_e++){var $e=Pe[_e];Oe[me]=$e>>24,Oe[me+1]=$e>>16,Oe[me+2]=$e>>8,Oe[me+3]=$e,me+=4}he._sQlen+=me-le,he.flush()},fbUpdateRequest:function(he,Pe,Oe,le,me,_e){var $e=he._sQ,gt=he._sQlen;typeof Oe=="undefined"&&(Oe=0),typeof le=="undefined"&&(le=0),$e[gt]=3,$e[gt+1]=Pe?1:0,$e[gt+2]=Oe>>8&255,$e[gt+3]=Oe&255,$e[gt+4]=le>>8&255,$e[gt+5]=le&255,$e[gt+6]=me>>8&255,$e[gt+7]=me&255,$e[gt+8]=_e>>8&255,$e[gt+9]=_e&255,he._sQlen+=10,he.flush()},xvpOp:function(he,Pe,Oe){var le=he._sQ,me=he._sQlen;le[me]=250,le[me+1]=0,le[me+2]=Pe,le[me+3]=Oe,he._sQlen+=4,he.flush()}},te.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(j,P,d){(function(O){O(d("VrN/"))})(function(O){"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},C={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};O.defineMode("xml",function(v,w){var m=v.indentUnit,h={},c=w.htmlMode?E:C;for(var i in c)h[i]=c[i];for(var i in w)h[i]=w[i];var r,o;function n(I,L){function D(B){return L.tokenize=B,B(I,L)}var N=I.next();if(N=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?D(t("atom","]]>")):null:I.match("--")?D(t("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),D(a(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),L.tokenize=t("meta","?>"),"meta"):(r=I.eat("/")?"closeTag":"openTag",L.tokenize=e,"tag bracket");if(N=="&"){var M;return I.eat("#")?I.eat("x")?M=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):M=I.eatWhile(/[\d]/)&&I.eat(";"):M=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),M?"atom":"error"}else return I.eatWhile(/[^&<]/),null}n.isInText=!0;function e(I,L){var D=I.next();if(D==">"||D=="/"&&I.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(I,L);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(D)?(L.tokenize=s(D),L.stringStartCol=I.column(),L.tokenize(I,L)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(I){var L=function(N,M){for(;!N.eol();)if(N.next()==I){M.tokenize=e;break}return"string"};return L.isInAttribute=!0,L}function t(I,L){return function(D,N){for(;!D.eol();){if(D.match(L)){N.tokenize=n;break}D.next()}return I}}function a(I){return function(L,D){for(var N;(N=L.next())!=null;){if(N=="<")return D.tokenize=a(I+1),D.tokenize(L,D);if(N==">")if(I==1){D.tokenize=n;break}else return D.tokenize=a(I-1),D.tokenize(L,D)}return"meta"}}function l(I,L,D){this.prev=I.context,this.tagName=L,this.indent=I.indented,this.startOfLine=D,(h.doNotIndent.hasOwnProperty(L)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function u(I){I.context&&(I.context=I.context.prev)}function f(I,L){for(var D;;){if(!I.context)return;if(D=I.context.tagName,!h.contextGrabbers.hasOwnProperty(D)||!h.contextGrabbers[D].hasOwnProperty(L))return;u(I)}}function p(I,L,D){return I=="openTag"?(D.tagStart=L.column(),g):I=="closeTag"?A:p}function g(I,L,D){return I=="word"?(D.tagName=L.current(),o="tag",T):h.allowMissingTagName&&I=="endTag"?(o="tag bracket",T(I,L,D)):(o="error",g)}function A(I,L,D){if(I=="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?(o="tag",y):(o="tag error",x)}else return h.allowMissingTagName&&I=="endTag"?(o="tag bracket",y(I,L,D)):(o="error",x)}function y(I,L,D){return I!="endTag"?(o="error",y):(u(D),p)}function x(I,L,D){return o="error",y(I,L,D)}function T(I,L,D){if(I=="word")return o="attribute",S;if(I=="endTag"||I=="selfcloseTag"){var N=D.tagName,M=D.tagStart;return D.tagName=D.tagStart=null,I=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(N)?f(D,N):(f(D,N),D.context=new l(D,N,M==D.indented)),p}return o="error",T}function S(I,L,D){return I=="equals"?b:(h.allowMissing||(o="error"),T(I,L,D))}function b(I,L,D){return I=="string"?_:I=="word"&&h.allowUnquoted?(o="string",T):(o="error",T(I,L,D))}function _(I,L,D){return I=="string"?_:T(I,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"&&(o=null,D.state=D.state(r||N,L,D),o&&(N=o=="error"?N+" error":o)),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 O.Pass;if(L.tokenize!=e&&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 B=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(B&&B[1])for(;M;)if(M.tagName==B[2]){M=M.prev;break}else if(h.implicitlyClosed.hasOwnProperty(M.tagName))M=M.prev;else break;else if(B)for(;M;){var R=h.contextGrabbers[M.tagName];if(R&&R.hasOwnProperty(B[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=T)},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()}}}),O.defineMIME("text/xml","xml"),O.defineMIME("application/xml","xml"),O.mimeModes.hasOwnProperty("text/html")||O.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1n7x":function(j,P,d){(function(O,E){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(v,w){j.exports=w(d("dtIV"),d("wOnQ"))})(self,function(C,v){return function(){var w={"./src/plugin/hyperlinks.js":function(r,o,n){"use strict";n.r(o);var e=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.string.link.js"),a=n.n(t),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"),T=(0,u.unitConvert)(y.getBoundingClientRect(),this.prop.pageSize.k);f=[],Array.prototype.forEach.call(x,function(S){for(var b=S.getClientRects(),_=0;_<b.length;_++){var I=(0,u.unitConvert)(b[_],this.prop.pageSize.k);I.left-=T.left,I.top-=T.top;var L=Math.floor(I.top/this.prop.pageSize.inner.height)+1,D=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,N=this.opt.margin[1]+I.left;f.push({page:L,top:D,left:N,clientRect:I,link:S})}},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,o,n){"use strict";n.r(o);var e=n("./node_modules/core-js/modules/es.symbol.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.description.js"),a=n.n(t),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),g=n("./node_modules/core-js/modules/es.array.iterator.js"),A=n.n(g),y=n("./node_modules/core-js/modules/es.string.iterator.js"),x=n.n(y),T=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),S=n.n(T),b=n("jspdf"),_=n.n(b);function I(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(N){return typeof N}:I=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},I(L)}b.jsPDF.getPageSize=function(L,D,N){if(I(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 B=(""+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 H=1;break;case"mm":var H=72/25.4;break;case"cm":var H=72/2.54;break;case"in":var H=72;break;case"px":var H=72/96;break;case"pc":var H=12;break;case"em":var H=12;break;case"ex":var H=6;break;default:throw"Invalid unit: "+D}if(R.hasOwnProperty(B))var F=R[B][1]/H,K=R[B][0]/H;else try{var F=N[1],K=N[0]}catch(z){throw new Error("Invalid format: "+N)}if(L==="p"||L==="portrait"){if(L="p",K>F){var U=K;K=F,F=U}}else if(L==="l"||L==="landscape"){if(L="l",F>K){var U=K;K=F,F=U}}else throw"Invalid orientation: "+L;var V={width:K,height:F,unit:D,k:H};return V},o.default=b.jsPDF},"./src/plugin/pagebreaks.js":function(r,o,n){"use strict";n.r(o);var e=n("./node_modules/core-js/modules/es.array.concat.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.array.slice.js"),a=n.n(t),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),g=n("./node_modules/core-js/modules/es.object.keys.js"),A=n.n(g),y=n("./src/worker.js"),x=n("./src/utils.js"),T={toContainer:y.default.prototype.toContainer};y.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},y.default.prototype.toContainer=function(){return T.toContainer.call(this).then(function(){var _=this.prop.container,I=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(H){var F=D.avoidAll&&H==="avoid";N[H]=F?[]:[].concat(M.opt.pagebreak[H]||[]),N[H].length>0&&(N[H]=Array.prototype.slice.call(_.querySelectorAll(N[H].join(", "))))});var B=_.querySelectorAll(".html2pdf__page-break");B=Array.prototype.slice.call(B);var R=_.querySelectorAll("*");Array.prototype.forEach.call(R,function(F){var K={before:!1,after:D.legacy&&B.indexOf(F)!==-1,avoid:D.avoidAll};if(D.css){var U=window.getComputedStyle(F),V=["always","page","left","right"],z=["avoid","avoid-page"];K={before:K.before||V.indexOf(U.breakBefore||U.pageBreakBefore)!==-1,after:K.after||V.indexOf(U.breakAfter||U.pageBreakAfter)!==-1,avoid:K.avoid||z.indexOf(U.breakInside||U.pageBreakInside)!==-1}}Object.keys(K).forEach(function(Ee){K[Ee]=K[Ee]||N[Ee].indexOf(F)!==-1});var Y=F.getBoundingClientRect();if(K.avoid&&!K.before){var q=Math.floor(Y.top/I),ce=Math.floor(Y.bottom/I),ie=Math.abs(Y.bottom-Y.top)/I;ce!==q&&ie<=1&&(K.before=!0)}if(K.before){var ve=(0,x.createElement)("div",{style:{display:"block",height:I-Y.top%I+"px"}});F.parentNode.insertBefore(ve,F)}if(K.after){var ve=(0,x.createElement)("div",{style:{display:"block",height:I-Y.bottom%I+"px"}});F.parentNode.insertBefore(ve,F.nextSibling)}})})}},"./src/utils.js":function(r,o,n){"use strict";n.r(o),n.d(o,{objType:function(){return L},createElement:function(){return D},cloneNode:function(){return N},unitConvert:function(){return M},toPx:function(){return B}});var e=n("./node_modules/core-js/modules/es.number.constructor.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.js"),a=n.n(t),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),g=n("./node_modules/core-js/modules/es.symbol.iterator.js"),A=n.n(g),y=n("./node_modules/core-js/modules/es.array.iterator.js"),x=n.n(y),T=n("./node_modules/core-js/modules/es.string.iterator.js"),S=n.n(T),b=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),_=n.n(b);function I(R){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(F){return typeof F}:I=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},I(R)}var L=function(H){var F=I(H);return F==="undefined"?"undefined":F==="string"||H instanceof String?"string":F==="number"||H instanceof Number?"number":F==="function"||H instanceof Function?"function":!!H&&H.constructor===Array?"array":H&&H.nodeType===1?"element":F==="object"?"object":"unknown"},D=function(H,F){var K=document.createElement(H);if(F.className&&(K.className=F.className),F.innerHTML){K.innerHTML=F.innerHTML;for(var U=K.getElementsByTagName("script"),V=U.length;V-- >0;null)U[V].parentNode.removeChild(U[V])}for(var z in F.style)K.style[z]=F.style[z];return K},N=function R(H,F){for(var K=H.nodeType===3?document.createTextNode(H.nodeValue):H.cloneNode(!1),U=H.firstChild;U;U=U.nextSibling)(F===!0||U.nodeType!==1||U.nodeName!=="SCRIPT")&&K.appendChild(R(U,F));return H.nodeType===1&&(H.nodeName==="CANVAS"?(K.width=H.width,K.height=H.height,K.getContext("2d").drawImage(H,0,0)):(H.nodeName==="TEXTAREA"||H.nodeName==="SELECT")&&(K.value=H.value),K.addEventListener("load",function(){K.scrollTop=H.scrollTop,K.scrollLeft=H.scrollLeft},!0)),K},M=function(H,F){if(L(H)==="number")return H*72/96/F;var K={};for(var U in H)K[U]=H[U]*72/96/F;return K},B=function(H,F){return Math.floor(H*F/72*96)}},"./src/worker.js":function(r,o,n){"use strict";n.r(o);var e=n("./node_modules/core-js/modules/es.object.assign.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.array.map.js"),a=n.n(t),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),g=n("./node_modules/core-js/modules/es.object.to-string.js"),A=n.n(g),y=n("./node_modules/core-js/modules/es.regexp.to-string.js"),x=n.n(y),T=n("./node_modules/core-js/modules/es.function.name.js"),S=n.n(T),b=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=n.n(b),I=n("jspdf"),L=n.n(I),D=n("html2canvas"),N=n.n(D),M=n("./src/utils.js"),B=n("./node_modules/es6-promise/dist/es6-promise.js"),R=n.n(B),H=R().Promise,F=function K(U){var V=Object.assign(K.convert(H.resolve()),JSON.parse(JSON.stringify(K.template))),z=K.convert(H.resolve(),V);return z=z.setProgress(1,K,1,[K]),z=z.set(U),z};F.prototype=Object.create(H.prototype),F.prototype.constructor=F,F.convert=function(U,V){return U.__proto__=V||F.prototype,U},F.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:{}}},F.prototype.from=function(U,V){function z(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(){V=V||z(U);switch(V){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.")}})},F.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.")}},F.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 z={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"};z.opacity=0;var q=(0,M.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,M.createElement)("div",{className:"html2pdf__overlay",style:z}),this.prop.container=(0,M.createElement)("div",{className:"html2pdf__container",style:Y}),this.prop.container.appendChild(q),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},F.prototype.toCanvas=function(){var U=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(U).then(function(){var z=Object.assign({},this.opt.html2canvas);return delete z.onrendered,D(this.prop.container,z)}).then(function(z){var Y=this.opt.html2canvas.onrendered||function(){};Y(z),this.prop.canvas=z,document.body.removeChild(this.prop.overlay)})},F.prototype.toImg=function(){var U=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(U).then(function(){var z=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=z})},F.prototype.toPdf=function(){var U=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(U).then(function(){var z=this.prop.canvas,Y=this.opt,q=z.height,ce=Math.floor(z.width*this.prop.pageSize.inner.ratio),ie=Math.ceil(q/ce),ve=this.prop.pageSize.inner.height,Ee=document.createElement("canvas"),Le=Ee.getContext("2d");Ee.width=z.width,Ee.height=ce,this.prop.pdf=this.prop.pdf||new I.jsPDF(Y.jsPDF);for(var He=0;He<ie;He++){He===ie-1&&q%ce!==0&&(Ee.height=q%ce,ve=Ee.height*this.prop.pageSize.inner.width/Ee.width);var ge=Ee.width,Fe=Ee.height;Le.fillStyle="white",Le.fillRect(0,0,ge,Fe),Le.drawImage(z,0,He*ce,ge,Fe,0,0,ge,Fe),He&&this.prop.pdf.addPage();var Q=Ee.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,ve)}})},F.prototype.output=function(U,V,z){return z=z||"pdf",z.toLowerCase()==="img"||z.toLowerCase()==="image"?this.outputImg(U,V):this.outputPdf(U,V)},F.prototype.outputPdf=function(U,V){var z=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(z).then(function(){return this.prop.pdf.output(U,V)})},F.prototype.outputImg=function(U,V){var z=[function(){return this.prop.img||this.toImg()}];return this.thenList(z).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.'}})},F.prototype.save=function(U){var V=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(V).set(U?{filename:U}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},F.prototype.set=function(U){if((0,M.objType)(U)!=="object")return this;var V=Object.keys(U||{}).map(function(z){switch(z){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 z in F.template.prop?function(){this.prop[z]=U[z]}:function(){this.opt[z]=U[z]}}},this);return this.then(function(){return this.thenList(V)})},F.prototype.get=function(U,V){return this.then(function(){var Y=U in F.template.prop?this.prop[U]:this.opt[U];return V?V(Y):Y})},F.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)},F.prototype.setPageSize=function(U){return this.then(function(){U=U||I.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})},F.prototype.setProgress=function(U,V,z,Y){return U!=null&&(this.progress.val=U),V!=null&&(this.progress.state=V),z!=null&&(this.progress.n=z),Y!=null&&(this.progress.stack=Y),this.progress.ratio=this.progress.val/this.progress.state,this},F.prototype.updateProgress=function(U,V,z,Y){return this.setProgress(U?this.progress.val+U:null,V||null,z?this.progress.n+z:null,Y?this.progress.stack.concat(Y):null)},F.prototype.then=function(U,V){var z=this;return this.thenCore(U,V,function(q,ce){return z.updateProgress(null,null,1,[q]),H.prototype.then.call(this,function(ve){return z.updateProgress(null,q),ve}).then(q,ce).then(function(ve){return z.updateProgress(1),ve})})},F.prototype.thenCore=function(U,V,z){z=z||H.prototype.then;var Y=this;U&&(U=U.bind(Y)),V&&(V=V.bind(Y));var q=H.toString().indexOf("[native code]")!==-1&&H.name==="Promise",ce=q?Y:F.convert(Object.assign({},Y),H.prototype),ie=z.call(ce,U,V);return F.convert(ie,Y.__proto__)},F.prototype.thenExternal=function(U,V){return H.prototype.then.call(this,U,V)},F.prototype.thenList=function(U){var V=this;return U.forEach(function(Y){V=V.thenCore(Y)}),V},F.prototype.catch=function(K){K&&(K=K.bind(this));var U=H.prototype.catch.call(this,K);return F.convert(U,this)},F.prototype.catchExternal=function(U){return H.prototype.catch.call(this,U)},F.prototype.error=function(U){return this.then(function(){throw new Error(U)})},F.prototype.using=F.prototype.set,F.prototype.saveAs=F.prototype.save,F.prototype.export=F.prototype.output,F.prototype.run=F.prototype.then,o.default=F},"./node_modules/core-js/internals/a-function.js":function(r){r.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"./node_modules/core-js/internals/a-possible-prototype.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s){if(!e(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,o,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),s=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/object-define-property.js"),a=e("unscopables"),l=Array.prototype;l[a]==null&&t.f(l,a,{configurable:!0,value:s(null)}),r.exports=function(u){l[a][u]=!0}},"./node_modules/core-js/internals/an-object.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s){if(!e(s))throw TypeError(String(s)+" is not an object");return s}},"./node_modules/core-js/internals/array-for-each.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/array-iteration.js").forEach,s=n("./node_modules/core-js/internals/array-method-is-strict.js"),t=s("forEach");r.exports=t?[].forEach:function(l){return e(this,l,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-length.js"),t=n("./node_modules/core-js/internals/to-absolute-index.js"),a=function(u){return function(f,p,g){var A=e(f),y=s(A.length),x=t(g,y),T;if(u&&p!=p){for(;y>x;)if(T=A[x++],T!=T)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:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(r,o,n){var e=n("./node_modules/core-js/internals/function-bind-context.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/array-species-create.js"),u=[].push,f=function(g){var A=g==1,y=g==2,x=g==3,T=g==4,S=g==6,b=g==7,_=g==5||S;return function(I,L,D,N){for(var M=t(I),B=s(M),R=e(L,D,3),H=a(B.length),F=0,K=N||l,U=A?K(I,H):y||b?K(I,0):void 0,V,z;H>F;F++)if((_||F in B)&&(V=B[F],z=R(V,F,M),g))if(A)U[F]=z;else if(z)switch(g){case 3:return!0;case 5:return V;case 6:return F;case 2:u.call(U,V)}else switch(g){case 4:return!1;case 7:u.call(U,V)}return S?-1:x||T?T: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,o,n){var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),t=n("./node_modules/core-js/internals/engine-v8-version.js"),a=s("species");r.exports=function(l){return t>=51||!e(function(){var u=[],f=u.constructor={};return f[a]=function(){return{foo:1}},u[l](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(s,t){var a=[][s];return!!a&&e(function(){a.call(null,t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-array.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("species");r.exports=function(l){var u;return s(l)&&(u=l.constructor,typeof u=="function"&&(u===Array||s(u.prototype))?u=void 0:e(u)&&(u=u[a],u===null&&(u=void 0))),u===void 0?Array:u}},"./node_modules/core-js/internals/array-species-create.js":function(r,o,n){var e=n("./node_modules/core-js/internals/array-species-constructor.js");r.exports=function(s,t){return new(e(s))(t===0?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(r){var o={}.toString;r.exports=function(n){return o.call(n).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag"),l=s(function(){return arguments}())=="Arguments",u=function(p,g){try{return p[g]}catch(A){}};r.exports=e?s:function(f){var p,g,A;return f===void 0?"Undefined":f===null?"Null":typeof(g=u(p=Object(f),a))=="string"?g:l?s(p):(A=s(p))=="Object"&&typeof p.callee=="function"?"Arguments":A}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(r,o,n){var e=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/own-keys.js"),t=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");r.exports=function(l,u){for(var f=s(u),p=a.f,g=t.f,A=0;A<f.length;A++){var y=f[A];e(l,y)||p(l,y,g(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(r,o,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=!e(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},"./node_modules/core-js/internals/create-html.js":function(r,o,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=/"/g;r.exports=function(a,l,u,f){var p=s(e(a)),g="<"+l;return u!==""&&(g+=" "+u+'="'+s(f).replace(t,"&quot;")+'"'),g+">"+p+"</"+l+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,s=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=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,g){var A=p+" Iterator";return f.prototype=s(e,{next:t(1,g)}),a(f,A,!1,!0),l[A]=u,f}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(r,o,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=e?function(a,l,u){return s.f(a,l,t(1,u))}:function(a,l,u){return a[l]=u,a}},"./node_modules/core-js/internals/create-property-descriptor.js":function(r){r.exports=function(o,n){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:n}}},"./node_modules/core-js/internals/create-property.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/to-property-key.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=function(a,l,u){var f=e(l);f in a?s.f(a,f,t(0,u)):a[f]=u}},"./node_modules/core-js/internals/define-iterator.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/create-iterator-constructor.js"),t=n("./node_modules/core-js/internals/object-get-prototype-of.js"),a=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"),g=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,T=y.BUGGY_SAFARI_ITERATORS,S=p("iterator"),b="keys",_="values",I="entries",L=function(){return this};r.exports=function(D,N,M,B,R,H,F){s(M,N,B);var K=function(He){if(He===R&&q)return q;if(!T&&He in z)return z[He];switch(He){case b:return function(){return new M(this,He)};case _:return function(){return new M(this,He)};case I:return function(){return new M(this,He)}}return function(){return new M(this)}},U=N+" Iterator",V=!1,z=D.prototype,Y=z[S]||z["@@iterator"]||R&&z[R],q=!T&&Y||K(R),ce=N=="Array"&&z.entries||Y,ie,ve,Ee;if(ce&&(ie=t(ce.call(new D)),x!==Object.prototype&&ie.next&&(!g&&t(ie)!==x&&(a?a(ie,x):typeof ie[S]!="function"&&u(ie,S,L)),l(ie,U,!0,!0),g&&(A[U]=L))),R==_&&Y&&Y.name!==_&&(V=!0,q=function(){return Y.call(this)}),(!g||F)&&z[S]!==q&&u(z,S,q),A[N]=q,R)if(ve={values:K(_),keys:H?q:K(b),entries:K(I)},F)for(Ee in ve)(T||V||!(Ee in z))&&f(z,Ee,ve[Ee]);else e({target:N,proto:!0,forced:T||V},ve);return ve}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(r,o,n){var e=n("./node_modules/core-js/internals/path.js"),s=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=n("./node_modules/core-js/internals/object-define-property.js").f;r.exports=function(l){var u=e.Symbol||(e.Symbol={});s(u,l)||a(u,l,{value:t.f(l)})}},"./node_modules/core-js/internals/descriptors.js":function(r,o,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/is-object.js"),t=e.document,a=s(t)&&s(t.createElement);r.exports=function(l){return a?t.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,o,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/engine-user-agent.js"),t=e.process,a=e.Deno,l=t&&t.versions||a&&a.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,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=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,g){var A=p.target,y=p.global,x=p.stat,T,S,b,_,I,L;if(y?S=e:x?S=e[A]||l(A,{}):S=(e[A]||{}).prototype,S)for(b in g){if(I=g[b],p.noTargetGet?(L=s(S,b),_=L&&L.value):_=S[b],T=f(y?b:A+(x?".":"#")+b,p.forced),!T&&_!==void 0){if(typeof I===typeof _)continue;u(I,_)}(p.sham||_&&_.sham)&&t(I,"sham",!0),a(S,b,I,p)}}},"./node_modules/core-js/internals/fails.js":function(r){r.exports=function(o){try{return!!o()}catch(n){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(r,o,n){var e=n("./node_modules/core-js/internals/a-function.js");r.exports=function(s,t,a){if(e(s),t===void 0)return s;switch(a){case 0:return function(){return s.call(t)};case 1:return function(l){return s.call(t,l)};case 2:return function(l,u){return s.call(t,l,u)};case 3:return function(l,u,f){return s.call(t,l,u,f)}}return function(){return s.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=function(a){return typeof a=="function"?a:void 0};r.exports=function(t,a){return arguments.length<2?s(e[t]):e[t]&&e[t][a]}},"./node_modules/core-js/internals/global.js":function(r){var o=function(e){return e&&e.Math==Math&&e};r.exports=o(typeof globalThis=="object"&&globalThis)||o(typeof window=="object"&&window)||o(typeof self=="object"&&self)||o(typeof O=="object"&&O)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-object.js"),s={}.hasOwnProperty;r.exports=Object.hasOwn||function(a,l){return s.call(e(a),l)}},"./node_modules/core-js/internals/hidden-keys.js":function(r){r.exports={}},"./node_modules/core-js/internals/html.js":function(r,o,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(r,o,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/document-create-element.js");r.exports=!e&&!s(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(r,o,n){var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),t="".split;r.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return s(a)=="String"?t.call(a,""):Object(a)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/object-set-prototype-of.js");r.exports=function(t,a,l){var u,f;return s&&typeof(u=a.constructor)=="function"&&u!==l&&e(f=u.prototype)&&f!==l.prototype&&s(t,f),t}},"./node_modules/core-js/internals/inspect-source.js":function(r,o,n){var e=n("./node_modules/core-js/internals/shared-store.js"),s=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(t){return s.call(t)}),r.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(r,o,n){var e=n("./node_modules/core-js/internals/native-weak-map.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-object.js"),a=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"),g="Object already initialized",A=s.WeakMap,y,x,T,S=function(B){return T(B)?x(B):y(B,{})},b=function(B){return function(R){var H;if(!t(R)||(H=x(R)).type!==B)throw TypeError("Incompatible receiver, "+B+" required");return H}};if(e||u.state){var _=u.state||(u.state=new A),I=_.get,L=_.has,D=_.set;y=function(B,R){if(L.call(_,B))throw new TypeError(g);return R.facade=B,D.call(_,B,R),R},x=function(B){return I.call(_,B)||{}},T=function(B){return L.call(_,B)}}else{var N=f("state");p[N]=!0,y=function(B,R){if(l(B,N))throw new TypeError(g);return R.facade=B,a(B,N,R),R},x=function(B){return l(B,N)?B[N]:{}},T=function(B){return l(B,N)}}r.exports={set:y,get:x,has:T,enforce:S,getterFor:b}},"./node_modules/core-js/internals/is-array.js":function(r,o,n){var e=n("./node_modules/core-js/internals/classof-raw.js");r.exports=Array.isArray||function(t){return e(t)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(r,o,n){var e=n("./node_modules/core-js/internals/fails.js"),s=/#|\.prototype\./,t=function(g,A){var y=l[a(g)];return y==f?!0:y==u?!1:typeof A=="function"?e(A):!!A},a=t.normalize=function(p){return String(p).replace(s,".").toLowerCase()},l=t.data={},u=t.NATIVE="N",f=t.POLYFILL="P";r.exports=t},"./node_modules/core-js/internals/is-object.js":function(r){r.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},"./node_modules/core-js/internals/is-pure.js":function(r){r.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(r,o,n){var e=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(t){return typeof t=="symbol"}:function(t){var a=e("Symbol");return typeof a=="function"&&Object(t)instanceof a}},"./node_modules/core-js/internals/iterators-core.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/object-get-prototype-of.js"),t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=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,g=function(){return this},A,y,x;[].keys&&(x=[].keys(),"next"in x?(y=s(s(x)),y!==Object.prototype&&(A=y)):p=!0);var T=A==null||e(function(){var S={};return A[f].call(S)!==S});T&&(A={}),(!u||T)&&!a(A,f)&&t(A,f,g),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,o,n){var e=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 t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/inspect-source.js"),t=e.WeakMap;r.exports=typeof t=="function"&&/native code/.test(s(t))},"./node_modules/core-js/internals/object-assign.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=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,g=Object.defineProperty;r.exports=!p||s(function(){if(e&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var A={},y={},x=Symbol(),T="abcdefghijklmnopqrst";return A[x]=7,T.split("").forEach(function(S){y[S]=S}),p({},A)[x]!=7||t(p({},y)).join("")!=T})?function(y,x){for(var T=u(y),S=arguments.length,b=1,_=a.f,I=l.f;S>b;)for(var L=f(arguments[b++]),D=_?t(L).concat(_(L)):t(L),N=D.length,M=0,B;N>M;)B=D[M++],(!e||I.call(L,B))&&(T[B]=L[B]);return T}:p},"./node_modules/core-js/internals/object-create.js":function(r,o,n){var e=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/object-define-properties.js"),t=n("./node_modules/core-js/internals/enum-bug-keys.js"),a=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=">",g="<",A="prototype",y="script",x=f("IE_PROTO"),T=function(){},S=function(N){return g+y+p+N+g+"/"+y+p},b=function(N){N.write(S("")),N.close();var M=N.parentWindow.Object;return N=null,M},_=function(){var N=u("iframe"),M="java"+y+":",B;if(N.style)return N.style.display="none",l.appendChild(N),N.src=String(M),B=N.contentWindow.document,B.open(),B.write(S("document.F=Object")),B.close(),B.F},I,L=function(){try{I=new ActiveXObject("htmlfile")}catch(M){}L=document.domain&&I?b(I):_()||b(I);for(var N=t.length;N--;)delete L[A][t[N]];return L()};a[x]=!0,r.exports=Object.create||function(N,M){var B;return N!==null?(T[A]=e(N),B=new T,T[A]=null,B[x]=N):B=L(),M===void 0?B:s(B,M)}},"./node_modules/core-js/internals/object-define-properties.js":function(r,o,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/object-keys.js");r.exports=e?Object.defineProperties:function(u,f){t(u);for(var p=a(f),g=p.length,A=0,y;g>A;)s.f(u,y=p[A++],f[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(r,o,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/ie8-dom-define.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-property-key.js"),l=Object.defineProperty;o.f=e?l:function(f,p,g){if(t(f),p=a(p),t(g),s)try{return l(f,p,g)}catch(A){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(f[p]=g.value),f}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(r,o,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=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;o.f=e?p:function(A,y){if(A=a(A),y=l(y),f)try{return p(A,y)}catch(x){}if(u(A,y))return t(!s.f.call(A,y),A[y])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,t={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(f){try{return s(f)}catch(p){return a.slice()}};r.exports.f=function(f){return a&&t.call(f)=="[object Window]"?l(f):s(e(f))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(r,o,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js"),t=s.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(l){return e(l,t)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(r,o){o.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(r,o,n){var e=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),l=t("IE_PROTO"),u=Object.prototype;r.exports=a?Object.getPrototypeOf:function(f){return f=s(f),e(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,o,n){var e=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/to-indexed-object.js"),t=n("./node_modules/core-js/internals/array-includes.js").indexOf,a=n("./node_modules/core-js/internals/hidden-keys.js");r.exports=function(l,u){var f=s(l),p=0,g=[],A;for(A in f)!e(a,A)&&e(f,A)&&g.push(A);for(;u.length>p;)e(f,A=u[p++])&&(~t(g,A)||g.push(A));return g}},"./node_modules/core-js/internals/object-keys.js":function(r,o,n){var e=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(a){return e(a,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(r,o){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,s=e&&!n.call({1:2},1);o.f=s?function(a){var l=e(this,a);return!!l&&l.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(r,o,n){var e=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 t=!1,a={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(a,[]),t=a instanceof Array}catch(u){}return function(f,p){return e(f),s(p),t?l.call(f,p):f.__proto__=p,f}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/classof.js");r.exports=e?{}.toString:function(){return"[object "+s(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s,t){var a,l;if(t==="string"&&typeof(a=s.toString)=="function"&&!e(l=a.call(s)))return l;if(typeof(a=s.valueOf)=="function"&&!e(l=a.call(s)))return l;if(t!=="string"&&typeof(a=s.toString)=="function"&&!e(l=a.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(r,o,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js"),t=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js");r.exports=e("Reflect","ownKeys")||function(u){var f=s.f(a(u)),p=t.f;return p?f.concat(p(u)):f}},"./node_modules/core-js/internals/path.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=e},"./node_modules/core-js/internals/redefine.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),t=n("./node_modules/core-js/internals/has.js"),a=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,g=String(String).split("String");(r.exports=function(A,y,x,T){var S=T?!!T.unsafe:!1,b=T?!!T.enumerable:!1,_=T?!!T.noTargetGet:!1,I;if(typeof x=="function"&&(typeof y=="string"&&!t(x,"name")&&s(x,"name",y),I=p(x),I.source||(I.source=g.join(typeof y=="string"?y:""))),A===e){b?A[y]=x:a(y,x);return}else S?!_&&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,o,n){"use strict";var e=n("./node_modules/core-js/internals/an-object.js");r.exports=function(){var s=e(this),t="";return s.global&&(t+="g"),s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.dotAll&&(t+="s"),s.unicode&&(t+="u"),s.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(r){r.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"./node_modules/core-js/internals/set-global.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=function(s,t){try{Object.defineProperty(e,s,{value:t,configurable:!0,writable:!0})}catch(a){e[s]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(r,o,n){var e=n("./node_modules/core-js/internals/object-define-property.js").f,s=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag");r.exports=function(l,u,f){l&&!s(l=f?l:l.prototype,a)&&e(l,a,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(r,o,n){var e=n("./node_modules/core-js/internals/shared.js"),s=n("./node_modules/core-js/internals/uid.js"),t=e("keys");r.exports=function(a){return t[a]||(t[a]=s(a))}},"./node_modules/core-js/internals/shared-store.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/set-global.js"),t="__core-js_shared__",a=e[t]||s(t,{});r.exports=a},"./node_modules/core-js/internals/shared.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/shared-store.js");(r.exports=function(t,a){return s[t]||(s[t]=a!==void 0?a:{})})("versions",[]).push({version:"3.16.0",mode:e?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(r,o,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(s){return e(function(){var t=""[s]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-integer.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/require-object-coercible.js"),a=function(u){return function(f,p){var g=s(t(f)),A=e(p),y=g.length,x,T;return A<0||A>=y?u?"":void 0:(x=g.charCodeAt(A),x<55296||x>56319||A+1===y||(T=g.charCodeAt(A+1))<56320||T>57343?u?g.charAt(A):x:u?g.slice(A,A+2):(x-55296<<10)+(T-56320)+65536)}};r.exports={codeAt:a(!1),charAt:a(!0)}},"./node_modules/core-js/internals/string-trim.js":function(r,o,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/whitespaces.js"),a="["+t+"]",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),f=function(g){return function(A){var y=s(e(A));return g&1&&(y=y.replace(l,"")),g&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,o,n){var e=n("./node_modules/core-js/internals/to-integer.js"),s=Math.max,t=Math.min;r.exports=function(a,l){var u=e(a);return u<0?s(u+l,0):t(u,l)}},"./node_modules/core-js/internals/to-indexed-object.js":function(r,o,n){var e=n("./node_modules/core-js/internals/indexed-object.js"),s=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(t){return e(s(t))}},"./node_modules/core-js/internals/to-integer.js":function(r){var o=Math.ceil,n=Math.floor;r.exports=function(e){return isNaN(e=+e)?0:(e>0?n:o)(e)}},"./node_modules/core-js/internals/to-length.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-integer.js"),s=Math.min;r.exports=function(t){return t>0?s(e(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(r,o,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(s){return Object(e(s))}},"./node_modules/core-js/internals/to-primitive.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-symbol.js"),t=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js"),l=a("toPrimitive");r.exports=function(u,f){if(!e(u)||s(u))return u;var p=u[l],g;if(p!==void 0){if(f===void 0&&(f="default"),g=p.call(u,f),!e(g)||s(g))return g;throw TypeError("Can't convert object to primitive value")}return f===void 0&&(f="number"),t(u,f)}},"./node_modules/core-js/internals/to-property-key.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-primitive.js"),s=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(t){var a=e(t,"string");return s(a)?a:String(a)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(r,o,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),s=e("toStringTag"),t={};t[s]="z",r.exports=String(t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(r,o,n){var e=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(s){if(e(s))throw TypeError("Cannot convert a Symbol value to a string");return String(s)}},"./node_modules/core-js/internals/uid.js":function(r){var o=0,n=Math.random();r.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++o+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(r,o,n){var e=n("./node_modules/core-js/internals/native-symbol.js");r.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(r,o,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js");o.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/shared.js"),t=n("./node_modules/core-js/internals/has.js"),a=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=e.Symbol,g=u?p:p&&p.withoutSetter||a;r.exports=function(A){return(!t(f,A)||!(l||typeof f[A]=="string"))&&(l&&t(p,A)?f[A]=p[A]:f[A]=g("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,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=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"),g=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"),T=9007199254740991,S="Maximum allowed index exceeded",b=y>=51||!s(function(){var D=[];return D[x]=!1,D.concat()[0]!==D}),_=g("concat"),I=function(N){if(!a(N))return!1;var M=N[x];return M!==void 0?!!M:t(N)},L=!b||!_;e({target:"Array",proto:!0,forced:L},{concat:function(N){var M=l(this),B=p(M,0),R=0,H,F,K,U,V;for(H=-1,K=arguments.length;H<K;H++)if(V=H===-1?M:arguments[H],I(V)){if(U=u(V.length),R+U>T)throw TypeError(S);for(F=0;F<U;F++,R++)F in V&&f(B,R,V[F])}else{if(R>=T)throw TypeError(S);f(B,R++,V)}return B.length=R,B}})},"./node_modules/core-js/modules/es.array.iterator.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/add-to-unscopables.js"),t=n("./node_modules/core-js/internals/iterators.js"),a=n("./node_modules/core-js/internals/internal-state.js"),l=n("./node_modules/core-js/internals/define-iterator.js"),u="Array Iterator",f=a.set,p=a.getterFor(u);r.exports=l(Array,"Array",function(g,A){f(this,{type:u,target:e(g),index:0,kind:A})},function(){var g=p(this),A=g.target,y=g.kind,x=g.index++;return!A||x>=A.length?(g.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"),t.Arguments=t.Array,s("keys"),s("values"),s("entries")},"./node_modules/core-js/modules/es.array.join.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/array-method-is-strict.js"),l=[].join,u=s!=Object,f=a("join",",");e({target:"Array",proto:!0,forced:u||!f},{join:function(g){return l.call(t(this),g===void 0?",":g)}})},"./node_modules/core-js/modules/es.array.map.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/array-iteration.js").map,t=n("./node_modules/core-js/internals/array-method-has-species-support.js"),a=t("map");e({target:"Array",proto:!0,forced:!a},{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,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/is-object.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=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"),g=n("./node_modules/core-js/internals/array-method-has-species-support.js"),A=g("slice"),y=p("species"),x=[].slice,T=Math.max;e({target:"Array",proto:!0,forced:!A},{slice:function(b,_){var I=u(this),L=l(I.length),D=a(b,L),N=a(_===void 0?L:_,L),M,B,R;if(t(I)&&(M=I.constructor,typeof M=="function"&&(M===Array||t(M.prototype))?M=void 0:s(M)&&(M=M[y],M===null&&(M=void 0)),M===Array||M===void 0))return x.call(I,D,N);for(B=new(M===void 0?Array:M)(T(N-D,0)),R=0;D<N;D++,R++)D in I&&f(B,R,I[D]);return B.length=R,B}})},"./node_modules/core-js/modules/es.function.name.js":function(r,o,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js").f,t=Function.prototype,a=t.toString,l=/^\s*function ([^ (]*)/,u="name";e&&!(u in t)&&s(t,u,{configurable:!0,get:function(){try{return a.call(this).match(l)[1]}catch(p){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-forced.js"),a=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"),g=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,T=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,S=n("./node_modules/core-js/internals/object-define-property.js").f,b=n("./node_modules/core-js/internals/string-trim.js").trim,_="Number",I=s[_],L=I.prototype,D=u(y(L))==_,N=function(K){if(p(K))throw TypeError("Cannot convert a Symbol value to a number");var U=g(K,"number"),V,z,Y,q,ce,ie,ve,Ee;if(typeof U=="string"&&U.length>2){if(U=b(U),V=U.charCodeAt(0),V===43||V===45){if(z=U.charCodeAt(2),z===88||z===120)return NaN}else if(V===48){switch(U.charCodeAt(1)){case 66:case 98:Y=2,q=49;break;case 79:case 111:Y=8,q=55;break;default:return+U}for(ce=U.slice(2),ie=ce.length,ve=0;ve<ie;ve++)if(Ee=ce.charCodeAt(ve),Ee<48||Ee>q)return NaN;return parseInt(ce,Y)}}return+U};if(t(_,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var M=function(K){var U=arguments.length<1?0:K,V=this;return V instanceof M&&(D?A(function(){L.valueOf.call(V)}):u(V)!=_)?f(new I(N(U)),V,M):N(U)},B=e?x(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),R=0,H;B.length>R;R++)l(I,H=B[R])&&!l(M,H)&&S(M,H,T(I,H));M.prototype=L,L.constructor=M,a(s,_,M)}},"./node_modules/core-js/modules/es.object.assign.js":function(r,o,n){var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==s},{assign:s})},"./node_modules/core-js/modules/es.object.keys.js":function(r,o,n){var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/fails.js"),l=a(function(){t(1)});e({target:"Object",stat:!0,forced:l},{keys:function(f){return t(s(f))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(r,o,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/redefine.js"),t=n("./node_modules/core-js/internals/object-to-string.js");e||s(Object.prototype,"toString",t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/an-object.js"),t=n("./node_modules/core-js/internals/to-string.js"),a=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],g=a(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),A=p.name!=u;(g||A)&&e(RegExp.prototype,u,function(){var x=s(this),T=t(x.source),S=x.flags,b=t(S===void 0&&x instanceof RegExp&&!("flags"in f)?l.call(x):S);return"/"+T+"/"+b},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/string-multibyte.js").charAt,s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/internal-state.js"),a=n("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=t.set,f=t.getterFor(l);a(String,"String",function(p){u(this,{type:l,string:s(p),index:0})},function(){var g=f(this),A=g.string,y=g.index,x;return y>=A.length?{value:void 0,done:!0}:(x=e(A,y),g.index+=x.length,{value:x,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/create-html.js"),t=n("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:t("link")},{link:function(l){return s(this,"a","href",l)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/descriptors.js"),t=n("./node_modules/core-js/internals/global.js"),a=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=t.Symbol;if(s&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var g={},A=function(){var _=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof A?new p(_):_===void 0?p():p(_);return _===""&&(g[I]=!0),I};f(A,p);var y=A.prototype=p.prototype;y.constructor=A;var x=y.toString,T=String(p("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var _=l(this)?this.valueOf():this,I=x.call(_);if(a(g,_))return"";var L=T?I.slice(7,-1):I.replace(S,"$1");return L===""?void 0:L}}),e({global:!0,forced:!0},{Symbol:A})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(r,o,n){var e=n("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(r,o,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/get-built-in.js"),a=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"),g=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"),T=n("./node_modules/core-js/internals/to-object.js"),S=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"),I=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"),B=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"),H=n("./node_modules/core-js/internals/object-define-property.js"),F=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"),V=n("./node_modules/core-js/internals/shared.js"),z=n("./node_modules/core-js/internals/shared-key.js"),Y=n("./node_modules/core-js/internals/hidden-keys.js"),q=n("./node_modules/core-js/internals/uid.js"),ce=n("./node_modules/core-js/internals/well-known-symbol.js"),ie=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ve=n("./node_modules/core-js/internals/define-well-known-symbol.js"),Ee=n("./node_modules/core-js/internals/set-to-string-tag.js"),Le=n("./node_modules/core-js/internals/internal-state.js"),He=n("./node_modules/core-js/internals/array-iteration.js").forEach,ge=z("hidden"),Fe="Symbol",Q="prototype",fe=ce("toPrimitive"),Je=Le.set,ne=Le.getterFor(Fe),X=Object[Q],G=s.Symbol,te=t("JSON","stringify"),we=R.f,he=H.f,Pe=M.f,Oe=F.f,le=V("symbols"),me=V("op-symbols"),_e=V("string-to-symbol-registry"),$e=V("symbol-to-string-registry"),gt=V("wks"),et=s.QObject,Ie=!et||!et[Q]||!et[Q].findChild,rt=l&&f(function(){return L(he({},"a",{get:function(){return he(this,"a",{value:7}).a}})).a!=7})?function(je,Re,oe){var yt=we(X,Re);yt&&delete X[Re],he(je,Re,oe),yt&&je!==X&&he(X,Re,yt)}:he,Ge=function(Re,oe){var yt=le[Re]=L(G[Q]);return Je(yt,{type:Fe,tag:Re,description:oe}),l||(yt.description=oe),yt},vt=function(Re,oe,yt){Re===X&&vt(me,oe,yt),x(Re);var zt=b(oe);return x(yt),p(le,zt)?(yt.enumerable?(p(Re,ge)&&Re[ge][zt]&&(Re[ge][zt]=!1),yt=L(yt,{enumerable:I(0,!1)})):(p(Re,ge)||he(Re,ge,I(1,{})),Re[ge][zt]=!0),rt(Re,zt,yt)):he(Re,zt,yt)},Ot=function(Re,oe){x(Re);var yt=S(oe),zt=D(yt).concat(Z(yt));return He(zt,function(lt){(!l||Tt.call(yt,lt))&&vt(Re,lt,yt[lt])}),Re},Et=function(Re,oe){return oe===void 0?L(Re):Ot(L(Re),oe)},Tt=function(Re){var oe=b(Re),yt=Oe.call(this,oe);return this===X&&p(le,oe)&&!p(me,oe)?!1:yt||!p(this,oe)||!p(le,oe)||p(this,ge)&&this[ge][oe]?yt:!0},Rt=function(Re,oe){var yt=S(Re),zt=b(oe);if(yt===X&&p(le,zt)&&!p(me,zt))return;var lt=we(yt,zt);return lt&&p(le,zt)&&!(p(yt,ge)&&yt[ge][zt])&&(lt.enumerable=!0),lt},Be=function(Re){var oe=Pe(S(Re)),yt=[];return He(oe,function(zt){!p(le,zt)&&!p(Y,zt)&&yt.push(zt)}),yt},Z=function(Re){var oe=Re===X,yt=Pe(oe?me:S(Re)),zt=[];return He(yt,function(lt){p(le,lt)&&(!oe||p(X,lt))&&zt.push(le[lt])}),zt};if(u||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var Re=!arguments.length||arguments[0]===void 0?void 0:_(arguments[0]),oe=q(Re),yt=function zt(lt){this===X&&zt.call(me,lt),p(this,ge)&&p(this[ge],oe)&&(this[ge][oe]=!1),rt(this,oe,I(1,lt))};return l&&Ie&&rt(X,oe,{configurable:!0,set:yt}),Ge(oe,Re)},U(G[Q],"toString",function(){return ne(this).tag}),U(G,"withoutSetter",function(je){return Ge(q(je),je)}),F.f=Tt,H.f=vt,R.f=Rt,N.f=M.f=Be,B.f=Z,ie.f=function(je){return Ge(ce(je),je)},l&&(he(G[Q],"description",{configurable:!0,get:function(){return ne(this).description}}),a||U(X,"propertyIsEnumerable",Tt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),He(D(gt),function(je){ve(je)}),e({target:Fe,stat:!0,forced:!u},{for:function(Re){var oe=_(Re);if(p(_e,oe))return _e[oe];var yt=G(oe);return _e[oe]=yt,$e[yt]=oe,yt},keyFor:function(Re){if(!y(Re))throw TypeError(Re+" is not a symbol");if(p($e,Re))return $e[Re]},useSetter:function(){Ie=!0},useSimple:function(){Ie=!1}}),e({target:"Object",stat:!0,forced:!u,sham:!l},{create:Et,defineProperty:vt,defineProperties:Ot,getOwnPropertyDescriptor:Rt}),e({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Be,getOwnPropertySymbols:Z}),e({target:"Object",stat:!0,forced:f(function(){B.f(1)})},{getOwnPropertySymbols:function(Re){return B.f(T(Re))}}),te){var J=!u||f(function(){var je=G();return te([je])!="[null]"||te({a:je})!="{}"||te(Object(je))!="{}"});e({target:"JSON",stat:!0,forced:J},{stringify:function(Re,oe,yt){for(var zt=[Re],lt=1,$t;arguments.length>lt;)zt.push(arguments[lt++]);return $t=oe,!A(oe)&&Re===void 0||y(Re)?void 0:(g(oe)||(oe=function(cn,pr){if(typeof $t=="function"&&(pr=$t.call(this,cn,pr)),!y(pr))return pr}),zt[1]=oe,te.apply(null,zt))}})}G[Q][fe]||K(G[Q],fe,G[Q].valueOf),Ee(G,Fe),Y[ge]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/internals/array-for-each.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var l in s){var u=e[l],f=u&&u.prototype;if(f&&f.forEach!==t)try{a(f,"forEach",t)}catch(p){f.forEach=t}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(r,o,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/modules/es.array.iterator.js"),a=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=t.values;for(var g in s){var A=e[g],y=A&&A.prototype;if(y){if(y[u]!==p)try{a(y,u,p)}catch(T){y[u]=p}if(y[f]||a(y,f,g),s[g]){for(var x in t)if(y[x]!==t[x])try{a(y,x,t[x])}catch(T){y[x]=t[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(o,n){r.exports=n()})(this,function(){"use strict";function o(et){var Ie=typeof et;return et!==null&&(Ie==="object"||Ie==="function")}function n(et){return typeof et=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Ie){return Object.prototype.toString.call(Ie)==="[object Array]"};var s=e,t=0,a=void 0,l=void 0,u=function(Ie,rt){D[t]=Ie,D[t+1]=rt,t+=2,t===2&&(l?l(N):B())};function f(et){l=et}function p(et){u=et}var g=typeof window!="undefined"?window:void 0,A=g||{},y=A.MutationObserver||A.WebKitMutationObserver,x=typeof self=="undefined"&&typeof E!="undefined"&&{}.toString.call(E)==="[object process]",T=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function S(){return function(){return E.nextTick(N)}}function b(){return typeof a!="undefined"?function(){a(N)}:L()}function _(){var et=0,Ie=new y(N),rt=document.createTextNode("");return Ie.observe(rt,{characterData:!0}),function(){rt.data=et=++et%2}}function I(){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<t;et+=2){var Ie=D[et],rt=D[et+1];Ie(rt),D[et]=void 0,D[et+1]=void 0}t=0}function M(){try{var et=Function("return this")().require("vertx");return a=et.runOnLoop||et.runOnContext,b()}catch(Ie){return L()}}var B=void 0;x?B=S():y?B=_():T?B=I():g===void 0&&!0?B=M():B=L();function R(et,Ie){var rt=this,Ge=new this.constructor(K);Ge[F]===void 0&&te(Ge);var vt=rt._state;if(vt){var Ot=arguments[vt-1];u(function(){return Je(vt,Ge,Ot,rt._result)})}else Q(rt,Ge,et,Ie);return Ge}function H(et){var Ie=this;if(et&&typeof et=="object"&&et.constructor===Ie)return et;var rt=new Ie(K);return Le(rt,et),rt}var F=Math.random().toString(36).substring(2);function K(){}var U=void 0,V=1,z=2;function Y(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function ce(et,Ie,rt,Ge){try{et.call(Ie,rt,Ge)}catch(vt){return vt}}function ie(et,Ie,rt){u(function(Ge){var vt=!1,Ot=ce(rt,Ie,function(Et){if(vt)return;vt=!0,Ie!==Et?Le(Ge,Et):ge(Ge,Et)},function(Et){if(vt)return;vt=!0,Fe(Ge,Et)},"Settle: "+(Ge._label||" unknown promise"));!vt&&Ot&&(vt=!0,Fe(Ge,Ot))},et)}function ve(et,Ie){Ie._state===V?ge(et,Ie._result):Ie._state===z?Fe(et,Ie._result):Q(Ie,void 0,function(rt){return Le(et,rt)},function(rt){return Fe(et,rt)})}function Ee(et,Ie,rt){Ie.constructor===et.constructor&&rt===R&&Ie.constructor.resolve===H?ve(et,Ie):rt===void 0?ge(et,Ie):n(rt)?ie(et,Ie,rt):ge(et,Ie)}function Le(et,Ie){if(et===Ie)Fe(et,Y());else if(o(Ie)){var rt=void 0;try{rt=Ie.then}catch(Ge){Fe(et,Ge);return}Ee(et,Ie,rt)}else ge(et,Ie)}function He(et){et._onerror&&et._onerror(et._result),fe(et)}function ge(et,Ie){if(et._state!==U)return;et._result=Ie,et._state=V,et._subscribers.length!==0&&u(fe,et)}function Fe(et,Ie){if(et._state!==U)return;et._state=z,et._result=Ie,u(He,et)}function Q(et,Ie,rt,Ge){var vt=et._subscribers,Ot=vt.length;et._onerror=null,vt[Ot]=Ie,vt[Ot+V]=rt,vt[Ot+z]=Ge,Ot===0&&et._state&&u(fe,et)}function fe(et){var Ie=et._subscribers,rt=et._state;if(Ie.length===0)return;for(var Ge=void 0,vt=void 0,Ot=et._result,Et=0;Et<Ie.length;Et+=3)Ge=Ie[Et],vt=Ie[Et+rt],Ge?Je(rt,Ge,vt,Ot):vt(Ot);et._subscribers.length=0}function Je(et,Ie,rt,Ge){var vt=n(rt),Ot=void 0,Et=void 0,Tt=!0;if(vt){try{Ot=rt(Ge)}catch(Rt){Tt=!1,Et=Rt}if(Ie===Ot){Fe(Ie,q());return}}else Ot=Ge;Ie._state!==U||(vt&&Tt?Le(Ie,Ot):Tt===!1?Fe(Ie,Et):et===V?ge(Ie,Ot):et===z&&Fe(Ie,Ot))}function ne(et,Ie){try{Ie(function(Ge){Le(et,Ge)},function(Ge){Fe(et,Ge)})}catch(rt){Fe(et,rt)}}var X=0;function G(){return X++}function te(et){et[F]=X++,et._state=void 0,et._result=void 0,et._subscribers=[]}function we(){return new Error("Array Methods must be provided an Array")}var he=function(){function et(Ie,rt){this._instanceConstructor=Ie,this.promise=new Ie(K),this.promise[F]||te(this.promise),s(rt)?(this.length=rt.length,this._remaining=rt.length,this._result=new Array(this.length),this.length===0?ge(this.promise,this._result):(this.length=this.length||0,this._enumerate(rt),this._remaining===0&&ge(this.promise,this._result))):Fe(this.promise,we())}return et.prototype._enumerate=function(rt){for(var Ge=0;this._state===U&&Ge<rt.length;Ge++)this._eachEntry(rt[Ge],Ge)},et.prototype._eachEntry=function(rt,Ge){var vt=this._instanceConstructor,Ot=vt.resolve;if(Ot===H){var Et=void 0,Tt=void 0,Rt=!1;try{Et=rt.then}catch(Z){Rt=!0,Tt=Z}if(Et===R&&rt._state!==U)this._settledAt(rt._state,Ge,rt._result);else if(typeof Et!="function")this._remaining--,this._result[Ge]=rt;else if(vt===$e){var Be=new vt(K);Rt?Fe(Be,Tt):Ee(Be,rt,Et),this._willSettleAt(Be,Ge)}else this._willSettleAt(new vt(function(Z){return Z(rt)}),Ge)}else this._willSettleAt(Ot(rt),Ge)},et.prototype._settledAt=function(rt,Ge,vt){var Ot=this.promise;Ot._state===U&&(this._remaining--,rt===z?Fe(Ot,vt):this._result[Ge]=vt),this._remaining===0&&ge(Ot,this._result)},et.prototype._willSettleAt=function(rt,Ge){var vt=this;Q(rt,void 0,function(Ot){return vt._settledAt(V,Ge,Ot)},function(Ot){return vt._settledAt(z,Ge,Ot)})},et}();function Pe(et){return new he(this,et).promise}function Oe(et){var Ie=this;return s(et)?new Ie(function(rt,Ge){for(var vt=et.length,Ot=0;Ot<vt;Ot++)Ie.resolve(et[Ot]).then(rt,Ge)}):new Ie(function(rt,Ge){return Ge(new TypeError("You must pass an array to race."))})}function le(et){var Ie=this,rt=new Ie(K);return Fe(rt,et),rt}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function _e(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var $e=function(){function et(Ie){this[F]=G(),this._result=this._state=void 0,this._subscribers=[],K!==Ie&&(typeof Ie!="function"&&me(),this instanceof et?ne(this,Ie):_e())}return et.prototype.catch=function(rt){return this.then(null,rt)},et.prototype.finally=function(rt){var Ge=this,vt=Ge.constructor;return n(rt)?Ge.then(function(Ot){return vt.resolve(rt()).then(function(){return Ot})},function(Ot){return vt.resolve(rt()).then(function(){throw Ot})}):Ge.then(rt,rt)},et}();$e.prototype.then=R,$e.all=Pe,$e.race=Oe,$e.resolve=H,$e.reject=le,$e._setScheduler=f,$e._setAsap=p,$e._asap=u;function gt(){var et=void 0;if(typeof O!="undefined")et=O;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 Ie=et.Promise;if(Ie){var rt=null;try{rt=Object.prototype.toString.call(Ie.resolve())}catch(Ge){}if(rt==="[object Promise]"&&!Ie.cast)return}et.Promise=$e}return $e.polyfill=gt,$e.Promise=$e,$e})},html2canvas:function(r){"use strict";r.exports=v},jspdf:function(r){"use strict";r.exports=C}},m={};function h(i){var r=m[i];if(r!==void 0)return r.exports;var o=m[i]={exports:{}};return w[i].call(o.exports,o,o.exports,h),o.exports}!function(){h.n=function(i){var r=i&&i.__esModule?function(){return i.default}:function(){return i};return h.d(r,{a:r}),r}}(),!function(){h.d=function(i,r){for(var o in r)h.o(r,o)&&!h.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:r[o]})}}(),!function(){h.o=function(i,r){return Object.prototype.hasOwnProperty.call(i,r)}}(),!function(){h.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}}();var c={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/h.r(c);var i=h("./src/worker.js"),r=h("./src/plugin/jspdf-plugin.js"),o=h("./src/plugin/pagebreaks.js"),n=h("./src/plugin/hyperlinks.js"),e=function s(t,a){var l=new s.Worker(a);return t?l.from(t).save():l};e.Worker=i.default,c.default=e}(),c=c.default,c}()})}).call(this,d("IyRk"),d("Q2Ig"))},"1q3G":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=O;function O(){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(j,P,d){var O=d("MBQ8"),E=O.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(v){return v.stack=null,E.superApply(this,"getInitialData",arguments)}}),C=E;j.exports=C},"1u/T":function(j,P,d){var O=d("ProS"),E={type:"selectDataRange",event:"dataRangeSelected",update:"update"};O.registerAction(E,function(C,v){v.eachComponent({mainType:"visualMap",query:C},function(w){w.setSelected(C.selected)})})},"1uat":function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("MlIO"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.Hasher,w=E.x64,m=w.Word,h=w.WordArray,c=E.algo;function i(){return m.create.apply(m,arguments)}var r=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],o=[];(function(){for(var e=0;e<80;e++)o[e]=i()})();var n=c.SHA512=v.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,t){for(var a=this._hash.words,l=a[0],u=a[1],f=a[2],p=a[3],g=a[4],A=a[5],y=a[6],x=a[7],T=l.high,S=l.low,b=u.high,_=u.low,I=f.high,L=f.low,D=p.high,N=p.low,M=g.high,B=g.low,R=A.high,H=A.low,F=y.high,K=y.low,U=x.high,V=x.low,z=T,Y=S,q=b,ce=_,ie=I,ve=L,Ee=D,Le=N,He=M,ge=B,Fe=R,Q=H,fe=F,Je=K,ne=U,X=V,G=0;G<80;G++){var te,we,he=o[G];if(G<16)we=he.high=s[t+G*2]|0,te=he.low=s[t+G*2+1]|0;else{var Pe=o[G-15],Oe=Pe.high,le=Pe.low,me=(Oe>>>1|le<<31)^(Oe>>>8|le<<24)^Oe>>>7,_e=(le>>>1|Oe<<31)^(le>>>8|Oe<<24)^(le>>>7|Oe<<25),$e=o[G-2],gt=$e.high,et=$e.low,Ie=(gt>>>19|et<<13)^(gt<<3|et>>>29)^gt>>>6,rt=(et>>>19|gt<<13)^(et<<3|gt>>>29)^(et>>>6|gt<<26),Ge=o[G-7],vt=Ge.high,Ot=Ge.low,Et=o[G-16],Tt=Et.high,Rt=Et.low;te=_e+Ot,we=me+vt+(te>>>0<_e>>>0?1:0),te=te+rt,we=we+Ie+(te>>>0<rt>>>0?1:0),te=te+Rt,we=we+Tt+(te>>>0<Rt>>>0?1:0),he.high=we,he.low=te}var Be=He&Fe^~He&fe,Z=ge&Q^~ge&Je,J=z&q^z&ie^q&ie,je=Y&ce^Y&ve^ce&ve,Re=(z>>>28|Y<<4)^(z<<30|Y>>>2)^(z<<25|Y>>>7),oe=(Y>>>28|z<<4)^(Y<<30|z>>>2)^(Y<<25|z>>>7),yt=(He>>>14|ge<<18)^(He>>>18|ge<<14)^(He<<23|ge>>>9),zt=(ge>>>14|He<<18)^(ge>>>18|He<<14)^(ge<<23|He>>>9),lt=r[G],$t=lt.high,cr=lt.low,cn=X+zt,pr=ne+yt+(cn>>>0<X>>>0?1:0),cn=cn+Z,pr=pr+Be+(cn>>>0<Z>>>0?1:0),cn=cn+cr,pr=pr+$t+(cn>>>0<cr>>>0?1:0),cn=cn+te,pr=pr+we+(cn>>>0<te>>>0?1:0),gr=oe+je,Zt=Re+J+(gr>>>0<oe>>>0?1:0);ne=fe,X=Je,fe=Fe,Je=Q,Fe=He,Q=ge,ge=Le+cn|0,He=Ee+pr+(ge>>>0<Le>>>0?1:0)|0,Ee=ie,Le=ve,ie=q,ve=ce,q=z,ce=Y,Y=cn+gr|0,z=pr+Zt+(Y>>>0<cn>>>0?1:0)|0}S=l.low=S+Y,l.high=T+z+(S>>>0<Y>>>0?1:0),_=u.low=_+ce,u.high=b+q+(_>>>0<ce>>>0?1:0),L=f.low=L+ve,f.high=I+ie+(L>>>0<ve>>>0?1:0),N=p.low=N+Le,p.high=D+Ee+(N>>>0<Le>>>0?1:0),B=g.low=B+ge,g.high=M+He+(B>>>0<ge>>>0?1:0),H=A.low=H+Q,A.high=R+Fe+(H>>>0<Q>>>0?1:0),K=y.low=K+Je,y.high=F+fe+(K>>>0<Je>>>0?1:0),V=x.low=V+X,x.high=U+ne+(V>>>0<X>>>0?1:0)},_doFinalize:function(){var s=this._data,t=s.words,a=this._nDataBytes*8,l=s.sigBytes*8;t[l>>>5]|=128<<24-l%32,t[(l+128>>>10<<5)+30]=Math.floor(a/4294967296),t[(l+128>>>10<<5)+31]=a,s.sigBytes=t.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var s=v.clone.call(this);return s._hash=this._hash.clone(),s},blockSize:1024/32});E.SHA512=v._createHelper(n),E.HmacSHA512=v._createHmacHelper(n)}(),O.SHA512})},"1vzs":function(j,P,d){"use strict";d.d(P,"a",function(){return t});var O=d("q1tI"),E=d.n(O),C=d("HQEm"),v=d.n(C),w=d("gZBC"),m=d.n(w),h=d("NAnI"),c=d.n(h),i=d("V/uB"),r=d.n(i),o=d("kbBi"),n=d.n(o),e=d("w6Tc"),s=d.n(e);function t(a){var l=a.suffixIcon,u=a.clearIcon,f=a.menuItemSelectedIcon,p=a.removeIcon,g=a.loading,A=a.multiple,y=a.prefixCls,x=u;u||(x=O.createElement(n.a,null));var T=null;if(l!==void 0)T=l;else if(g)T=O.createElement(m.a,{spin:!0});else{var S="".concat(y,"-suffix");T=function(L){var D=L.open,N=L.showSearch;return D&&N?O.createElement(s.a,{className:S}):O.createElement(v.a,{className:S})}}var b=null;f!==void 0?b=f:A?b=O.createElement(c.a,null):b=null;var _=null;return p!==void 0?_=p:_=O.createElement(r.a,null),{clearIcon:x,suffixIcon:T,itemIcon:b,removeIcon:_}}},"1xaR":function(j,P,d){var O=d("ProS"),E=d("bYtY");d("qgGe"),d("NA0q"),d("RPvy");var C=d("mOdp"),v=d("y3NT"),w=d("0/Rx");O.registerVisual(E.curry(C,"sunburst")),O.registerLayout(E.curry(v,"sunburst")),O.registerProcessor(E.curry(w,"sunburst"))},"24YM":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.SensorTabIndex=P.SensorClassName=P.SizeSensorId=void 0;var O="size-sensor-id";P.SizeSensorId=O;var E="size-sensor-object";P.SensorClassName=E;var C="-1";P.SensorTabIndex=C},"2548":function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("6GrX"),v=d("IUWy"),w=d("IwbS"),m=d("Qxkt"),h=d("gPAo"),c=d("eRkO"),i=O.extendComponentView({type:"toolbox",render:function(o,n,e,s){var t=this.group;if(t.removeAll(),!o.get("show"))return;var a=+o.get("itemSize"),l=o.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],T=f[y],S=l[x],b=new m(S,o,o.ecModel),_;if(s&&s.newTitle!=null&&s.featureName===x&&(S.title=s.newTitle),x&&!T){if(r(x))_={model:b,onclick:b.option.onclick,featureName:x};else{var I=v.get(x);if(!I)return;_=new I(b,n,e)}u[x]=_}else{if(_=u[T],!_)return;_.model=b,_.ecModel=n,_.api=e}if(!x&&T){_.dispose&&_.dispose(n,e);return}if(!b.get("show")||_.unusable){_.remove&&_.remove(n,e);return}g(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,e,s)}function g(A,y,x){var T=A.getModel("iconStyle"),S=A.getModel("emphasis.iconStyle"),b=y.getIcons?y.getIcons():A.get("icon"),_=A.get("title")||{};if(typeof b=="string"){var I=b,L=_;b={},_={},b[x]=I,_[x]=L}var D=A.iconPaths={};E.each(b,function(N,M){var B=w.createIcon(N,{},{x:-a/2,y:-a/2,width:a,height:a});B.setStyle(T.getItemStyle()),B.hoverStyle=S.getItemStyle(),B.setStyle({text:_[M],textAlign:S.get("textAlign"),textBorderRadius:S.get("textBorderRadius"),textPadding:S.get("textPadding"),textFill:null});var R=o.getModel("tooltip");R&&R.get("show")&&B.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)),w.setHoverStyle(B),o.get("showTitle")&&(B.__title=_[M],B.on("mouseover",function(){var H=S.getItemStyle(),F=o.get("orient")==="vertical"?o.get("right")==null?"right":"left":o.get("bottom")==null?"bottom":"top";B.setStyle({textFill:S.get("textFill")||H.fill||H.stroke||"#000",textBackgroundColor:S.get("textBackgroundColor"),textPosition:S.get("textPosition")||F})}).on("mouseout",function(){B.setStyle({textFill:null,textBackgroundColor:null})})),B.trigger(A.get("iconStatus."+M)||"normal"),t.add(B),B.on("click",E.bind(y.onclick,y,n,e,M)),D[M]=B})}c.layout(t,o,e),t.add(c.makeBackground(t.getBoundingRect(),o)),t.eachChild(function(A){var y=A.__title,x=A.hoverStyle;if(x&&y){var T=C.getBoundingRect(y,C.makeFont(x)),S=A.position[0]+t.position[0],b=A.position[1]+t.position[1]+a,_=!1;b+T.height>e.getHeight()&&(x.textPosition="top",_=!0);var I=_?-5-T.height:a+8;S+T.width/2>e.getWidth()?(x.textPosition=["100%",I],x.textAlign="right"):S-T.width/2<0&&(x.textPosition=[0,I],x.textAlign="left")}})},updateView:function(o,n,e,s){E.each(this._features,function(t){t.updateView&&t.updateView(t.model,n,e,s)})},remove:function(o,n){E.each(this._features,function(e){e.remove&&e.remove(o,n)}),this.group.removeAll()},dispose:function(o,n){E.each(this._features,function(e){e.dispose&&e.dispose(o,n)})}});function r(o){return o.indexOf("my")===0}j.exports=i},"2B6p":function(j,P){function d(O,E,C){var v=O.getZoom(),w=O.getCenter(),m=E.zoom,h=O.dataToPoint(w);if(E.dx!=null&&E.dy!=null){h[0]-=E.dx,h[1]-=E.dy;var w=O.pointToData(h);O.setCenter(w)}if(m!=null){if(C){var c=C.min||0,i=C.max||Infinity;m=Math.max(Math.min(v*m,i),c)/v}O.scale[0]*=m,O.scale[1]*=m;var r=O.position,o=(E.originX-r[0])*(m-1),n=(E.originY-r[1])*(m-1);r[0]-=o,r[1]-=n,O.updateTransform();var w=O.pointToData(h);O.setCenter(w),O.setZoom(m*v)}return{center:O.getCenter(),zoom:O.getZoom()}}P.updateCenterAndZoom=d},"2BaD":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="CloseCircleOutlined";var h=P.a=E.forwardRef(m)},"2DNl":function(j,P,d){var O=d("IMiH"),E=d("loD1"),C=d("59Ip"),v=d("aKvl"),w=d("n1HI"),m=d("hX1E"),h=m.normalizeRadian,c=d("Sj9i"),i=d("hyiK"),r=O.CMD,o=Math.PI*2,n=1e-4;function e(y,x){return Math.abs(y-x)<n}var s=[-1,-1,-1],t=[-1,-1];function a(){var y=t[0];t[0]=t[1],t[1]=y}function l(y,x,T,S,b,_,I,L,D,N){if(N>x&&N>S&&N>_&&N>L||N<x&&N<S&&N<_&&N<L)return 0;var M=c.cubicRootAt(x,S,_,L,N,s);if(M===0)return 0;for(var B=0,R=-1,H,F,K=0;K<M;K++){var U=s[K],V=U===0||U===1?.5:1,z=c.cubicAt(y,T,b,I,U);if(z<D)continue;R<0&&(R=c.cubicExtrema(x,S,_,L,t),t[1]<t[0]&&R>1&&a(),H=c.cubicAt(x,S,_,L,t[0]),R>1&&(F=c.cubicAt(x,S,_,L,t[1]))),R===2?U<t[0]?B+=H<x?V:-V:U<t[1]?B+=F<H?V:-V:B+=L<F?V:-V:U<t[0]?B+=H<x?V:-V:B+=L<H?V:-V}return B}function u(y,x,T,S,b,_,I,L){if(L>x&&L>S&&L>_||L<x&&L<S&&L<_)return 0;var D=c.quadraticRootAt(x,S,_,L,s);if(D===0)return 0;var N=c.quadraticExtremum(x,S,_);if(N>=0&&N<=1){for(var M=0,B=c.quadraticAt(x,S,_,N),R=0;R<D;R++){var H=s[R]===0||s[R]===1?.5:1,F=c.quadraticAt(y,T,b,s[R]);if(F<I)continue;s[R]<N?M+=B<x?H:-H:M+=_<B?H:-H}return M}else{var H=s[0]===0||s[0]===1?.5:1,F=c.quadraticAt(y,T,b,s[0]);return F<I?0:_<x?H:-H}}function f(y,x,T,S,b,_,I,L){if(L-=x,L>T||L<-T)return 0;var D=Math.sqrt(T*T-L*L);s[0]=-D,s[1]=D;var N=Math.abs(S-b);if(N<1e-4)return 0;if(N%o<1e-4){S=0,b=o;var M=_?1:-1;return I>=s[0]+y&&I<=s[1]+y?M:0}if(_){var D=S;S=h(b),b=h(D)}else S=h(S),b=h(b);S>b&&(b+=o);for(var B=0,R=0;R<2;R++){var H=s[R];if(H+y>I){var F=Math.atan2(L,H),M=_?1:-1;F<0&&(F=o+F),(F>=S&&F<=b||F+o>=S&&F+o<=b)&&(F>Math.PI/2&&F<Math.PI*1.5&&(M=-M),B+=M)}}return B}function p(y,x,T,S,b){for(var _=0,I=0,L=0,D=0,N=0,M=0;M<y.length;){var B=y[M++];B===r.M&&M>1&&(T||(_+=i(I,L,D,N,S,b))),M===1&&(I=y[M],L=y[M+1],D=I,N=L);switch(B){case r.M:D=y[M++],N=y[M++],I=D,L=N;break;case r.L:if(T){if(E.containStroke(I,L,y[M],y[M+1],x,S,b))return!0}else _+=i(I,L,y[M],y[M+1],S,b)||0;I=y[M++],L=y[M++];break;case r.C:if(T){if(C.containStroke(I,L,y[M++],y[M++],y[M++],y[M++],y[M],y[M+1],x,S,b))return!0}else _+=l(I,L,y[M++],y[M++],y[M++],y[M++],y[M],y[M+1],S,b)||0;I=y[M++],L=y[M++];break;case r.Q:if(T){if(v.containStroke(I,L,y[M++],y[M++],y[M],y[M+1],x,S,b))return!0}else _+=u(I,L,y[M++],y[M++],y[M],y[M+1],S,b)||0;I=y[M++],L=y[M++];break;case r.A:var R=y[M++],H=y[M++],F=y[M++],K=y[M++],U=y[M++],V=y[M++];M+=1;var z=1-y[M++],Y=Math.cos(U)*F+R,q=Math.sin(U)*K+H;M>1?_+=i(I,L,Y,q,S,b):(D=Y,N=q);var ce=(S-R)*K/F+R;if(T){if(w.containStroke(R,H,K,U,U+V,z,x,ce,b))return!0}else _+=f(R,H,K,U,U+V,z,ce,b);I=Math.cos(U+V)*F+R,L=Math.sin(U+V)*K+H;break;case r.R:D=I=y[M++],N=L=y[M++];var ie=y[M++],ve=y[M++],Y=D+ie,q=N+ve;if(T){if(E.containStroke(D,N,Y,N,x,S,b)||E.containStroke(Y,N,Y,q,x,S,b)||E.containStroke(Y,q,D,q,x,S,b)||E.containStroke(D,q,D,N,x,S,b))return!0}else _+=i(Y,N,Y,q,S,b),_+=i(D,q,D,N,S,b);break;case r.Z:if(T){if(E.containStroke(I,L,D,N,x,S,b))return!0}else _+=i(I,L,D,N,S,b);I=D,L=N;break}}return!T&&!e(L,N)&&(_+=i(I,L,D,N,S,b)||0),_!==0}function g(y,x,T){return p(y,0,!1,x,T)}function A(y,x,T,S){return p(y,x,!0,T,S)}P.contain=g,P.containStroke=A},"2dDv":function(j,P,d){var O=d("bYtY"),E=d("Fofx"),C=d("+TT/"),v=d("aX7z"),w=d("D1WM"),m=d("IwbS"),h=d("OELB"),c=d("72pK"),i=O.each,r=Math.min,o=Math.max,n=Math.floor,e=Math.ceil,s=h.round,t=Math.PI;function a(g,A,y){this._axesMap=O.createHashMap(),this._axesLayout={},this.dimensions=g.dimensions,this._rect,this._model=g,this._init(g,A,y)}a.prototype={type:"parallel",constructor:a,_init:function(g,A,y){var x=g.dimensions,T=g.parallelAxisIndex;i(x,function(S,b){var _=T[b],I=A.getComponent("parallelAxis",_),L=this._axesMap.set(S,new w(S,v.createScaleByModel(I),[0,0],I.get("type"),_)),D=L.type==="category";L.onBand=D&&I.get("boundaryGap"),L.inverse=I.get("inverse"),I.axis=L,L.model=I,L.coordinateSystem=I.coordinateSystem=this},this)},update:function(g,A){this._updateAxesFromSeries(this._model,g)},containPoint:function(g){var A=this._makeLayoutInfo(),y=A.axisBase,x=A.layoutBase,T=A.pixelDimIndex,S=g[1-T],b=g[T];return S>=y&&S<=y+A.axisLength&&b>=x&&b<=x+A.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(g,A){A.eachSeries(function(y){if(!g.contains(y,A))return;var x=y.getData();i(this.dimensions,function(T){var S=this._axesMap.get(T);S.scale.unionExtentFromData(x,x.mapDimension(T)),v.niceScaleExtent(S.scale,S.model)},this)},this)},resize:function(g,A){this._rect=C.getLayoutRect(g.getBoxLayoutParams(),{width:A.getWidth(),height:A.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var g=this._model,A=this._rect,y=["x","y"],x=["width","height"],T=g.get("layout"),S=T==="horizontal"?0:1,b=A[x[S]],_=[0,b],I=this.dimensions.length,L=l(g.get("axisExpandWidth"),_),D=l(g.get("axisExpandCount")||0,[0,I]),N=g.get("axisExpandable")&&I>3&&I>D&&D>1&&L>0&&b>0,M=g.get("axisExpandWindow"),B;if(M)B=l(M[1]-M[0],_),M[1]=M[0]+B;else{B=l(L*(D-1),_);var R=g.get("axisExpandCenter")||n(I/2);M=[L*R-B/2],M[1]=M[0]+B}var H=(b-B)/(I-D);H<3&&(H=0);var F=[n(s(M[0]/L,1))+1,e(s(M[1]/L,1))-1],K=H/L*M[0];return{layout:T,pixelDimIndex:S,layoutBase:A[y[S]],layoutLength:b,axisBase:A[y[1-S]],axisLength:A[x[1-S]],axisExpandable:N,axisExpandWidth:L,axisCollapseWidth:H,axisExpandWindow:M,axisCount:I,winInnerIndices:F,axisExpandWindow0Pos:K}},_layoutAxes:function(){var g=this._rect,A=this._axesMap,y=this.dimensions,x=this._makeLayoutInfo(),T=x.layout;A.each(function(S){var b=[0,x.axisLength],_=S.inverse?1:0;S.setExtent(b[_],b[1-_])}),i(y,function(S,b){var _=(x.axisExpandable?f:u)(b,x),I={horizontal:{x:_.position,y:x.axisLength},vertical:{x:0,y:_.position}},L={horizontal:t/2,vertical:0},D=[I[T].x+g.x,I[T].y+g.y],N=L[T],M=E.create();E.rotate(M,M,N),E.translate(M,M,D),this._axesLayout[S]={position:D,rotation:N,transform:M,axisNameAvailableWidth:_.axisNameAvailableWidth,axisLabelShow:_.axisLabelShow,nameTruncateMaxWidth:_.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(g){return this._axesMap.get(g)},dataToPoint:function(g,A){return this.axisCoordToPoint(this._axesMap.get(A).dataToCoord(g),A)},eachActiveState:function(g,A,y,x){y==null&&(y=0),x==null&&(x=g.count());var T=this._axesMap,S=this.dimensions,b=[],_=[];O.each(S,function(H){b.push(g.mapDimension(H)),_.push(T.get(H).model)});for(var I=this.hasAxisBrushed(),L=y;L<x;L++){var D;if(!I)D="normal";else{D="active";for(var N=g.getValues(b,L),M=0,B=S.length;M<B;M++){var R=_[M].getActiveState(N[M]);if(R==="inactive"){D="inactive";break}}}A(D,L)}},hasAxisBrushed:function(){for(var g=this.dimensions,A=this._axesMap,y=!1,x=0,T=g.length;x<T;x++)A.get(g[x]).model.getActiveState()!=="normal"&&(y=!0);return y},axisCoordToPoint:function(g,A){var y=this._axesLayout[A];return m.applyTransform([g,0],y.transform)},getAxisLayout:function(g){return O.clone(this._axesLayout[g])},getSlidedAxisExpandWindow:function(g){var A=this._makeLayoutInfo(),y=A.pixelDimIndex,x=A.axisExpandWindow.slice(),T=x[1]-x[0],S=[0,A.axisExpandWidth*(A.axisCount-1)];if(!this.containPoint(g))return{behavior:"none",axisExpandWindow:x};var b=g[y]-A.layoutBase-A.axisExpandWindow0Pos,_,I="slide",L=A.axisCollapseWidth,D=this._model.get("axisExpandSlideTriggerArea"),N=D[0]!=null;if(L)N&&L&&b<T*D[0]?(I="jump",_=b-T*D[2]):N&&L&&b>T*(1-D[0])?(I="jump",_=b-T*(1-D[2])):(_=b-T*D[1])>=0&&(_=b-T*(1-D[1]))<=0&&(_=0),_*=A.axisExpandWidth/L,_?c(_,x,S,"all"):I="none";else{var T=x[1]-x[0],M=S[1]*b/T;x=[o(0,M-T/2)],x[1]=r(S[1],x[0]+T),x[0]=x[1]-T}return{axisExpandWindow:x,behavior:I}}};function l(g,A){return r(o(g,A[0]),A[1])}function u(g,A){var y=A.layoutLength/(A.axisCount-1);return{position:y*g,axisNameAvailableWidth:y,axisLabelShow:!0}}function f(g,A){var y=A.layoutLength,x=A.axisExpandWidth,T=A.axisCount,S=A.axisCollapseWidth,b=A.winInnerIndices,_,I=S,L=!1,D;return g<b[0]?(_=g*S,D=S):g<=b[1]?(_=A.axisExpandWindow0Pos+g*x-A.axisExpandWindow[0],I=x,L=!0):(_=y-(T-1-g)*S,D=S),{position:_,axisNameAvailableWidth:I,axisLabelShow:L,nameTruncateMaxWidth:D}}var p=a;j.exports=p},"2fGM":function(j,P,d){var O=d("bYtY"),E=d("bLfw"),C=d("nkfE"),v=d("ICMv"),w=E.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});O.merge(w.prototype,v);var m={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function h(c,i){return i.type||(i.data?"category":"value")}C("angle",w,h,m.angle),C("radius",w,h,m.radius)},"2fM7":function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("7W2i"),r=d.n(i),o=d("LQ03"),n=d.n(o),e=d("q1tI"),s=d("BGR+"),t=d("TSYQ"),a=d.n(t),l=d("1OyB"),u=d("vuIU"),f=d("Ji7U"),p=d("LK+K"),g=d("rePB"),A=d("Ff2n"),y=d("ODXe"),x=d("4IlW"),T=d("bX4T"),S=d("YrtM"),b=d("+nKL"),_=function(xe){var Ce=xe.className,Ye=xe.customizeIcon,it=xe.customizeIconProps,dt=xe.onMouseDown,_t=xe.onClick,vr=xe.children,kr;return typeof Ye=="function"?kr=Ye(it):kr=Ye,e.createElement("span",{className:Ce,onMouseDown:function(Mt){Mt.preventDefault(),dt&&dt(Mt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:_t,"aria-hidden":!0},kr!==void 0?kr:e.createElement("span",{className:a()(Ce.split(/\s+/).map(function(mn){return"".concat(mn,"-icon")}))},vr))},I=_,L=function(xe,Ce){var Ye=xe.prefixCls,it=xe.id,dt=xe.flattenOptions,_t=xe.childrenAsData,vr=xe.values,kr=xe.searchValue,mn=xe.multiple,Mt=xe.defaultActiveFirstOption,nt=xe.height,st=xe.itemHeight,Xt=xe.notFoundContent,Dt=xe.open,St=xe.menuItemSelectedIcon,jt=xe.virtual,At=xe.onSelect,Ft=xe.onToggleOpen,wr=xe.onActiveValue,sr=xe.onScroll,mr=xe.onMouseEnter,$r="".concat(Ye,"-item"),rn=Object(S.a)(function(){return dt},[Dt,dt],function(ze,Ze){return Ze[0]&&ze[1]!==Ze[1]}),jn=e.useRef(null),Un=function(Ze){Ze.preventDefault()},ui=function(Ze){jn.current&&jn.current.scrollTo({index:Ze})},yi=function(Ze){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ut=rn.length,Gt=0;Gt<ut;Gt+=1){var Mr=(Ze+Gt*bt+ut)%ut,Lr=rn[Mr],Gr=Lr.group,Ht=Lr.data;if(!Gr&&!Ht.disabled)return Mr}return-1},Ii=e.useState(function(){return yi(0)}),Gi=Object(y.a)(Ii,2),Qe=Gi[0],be=Gi[1],Ne=function(Ze){be(Ze);var bt=rn[Ze];if(!bt){wr(null,-1);return}wr(bt.data.value,Ze)};e.useEffect(function(){Ne(Mt!==!1?yi(0):-1)},[rn.length,kr]),e.useEffect(function(){var ze=setTimeout(function(){if(!mn&&Dt&&vr.size===1){var Ze=Array.from(vr)[0],bt=rn.findIndex(function(ut){var Gt=ut.data;return Gt.value===Ze});Ne(bt),ui(bt)}});return function(){return clearTimeout(ze)}},[Dt]);var Ue=function(Ze){Ze!==void 0&&At(Ze,{selected:!vr.has(Ze)}),mn||Ft(!1)};if(e.useImperativeHandle(Ce,function(){return{onKeyDown:function(Ze){var bt=Ze.which;switch(bt){case x.a.UP:case x.a.DOWN:{var ut=0;if(bt===x.a.UP?ut=-1:bt===x.a.DOWN&&(ut=1),ut!==0){var Gt=yi(Qe+ut,ut);ui(Gt),Ne(Gt)}break}case x.a.ENTER:{var Mr=rn[Qe];Mr&&!Mr.data.disabled?Ue(Mr.data.value):Ue(void 0),Dt&&Ze.preventDefault();break}case x.a.ESC:Ft(!1)}},onKeyUp:function(){},scrollTo:function(Ze){ui(Ze)}}}),rn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(it,"_list"),className:"".concat($r,"-empty"),onMouseDown:Un},Xt);function Xe(ze){var Ze=rn[ze];if(!Ze)return null;var bt=Ze.data||{},ut=bt.value,Gt=bt.label,Mr=bt.children,Lr=Object(T.a)(bt,!0),Gr=_t?Mr:Gt;return Ze?e.createElement("div",Object.assign({"aria-label":typeof Gr=="string"?Gr:null},Lr,{key:ze,role:"option",id:"".concat(it,"_list_").concat(ze),"aria-selected":vr.has(ut)}),ut):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(it,"_list"),style:{height:0,width:0,overflow:"hidden"}},Xe(Qe-1),Xe(Qe),Xe(Qe+1)),e.createElement(b.a,{itemKey:"key",ref:jn,data:rn,height:nt,itemHeight:st,fullHeight:!1,onMouseDown:Un,onScroll:sr,virtual:jt,onMouseEnter:mr},function(ze,Ze){var bt,ut=ze.group,Gt=ze.groupOption,Mr=ze.data,Lr=Mr.label,Gr=Mr.key;if(ut)return e.createElement("div",{className:a()($r,"".concat($r,"-group"))},Lr!==void 0?Lr:Gr);var Ht=Mr.disabled,hn=Mr.value,or=Mr.title,vn=Mr.children,nn=Mr.style,Ur=Mr.className,ni=Object(A.a)(Mr,["disabled","value","title","children","style","className"]),Oi=vr.has(hn),Hi="".concat($r,"-option"),Ri=a()($r,Hi,Ur,(bt={},Object(g.a)(bt,"".concat(Hi,"-grouped"),Gt),Object(g.a)(bt,"".concat(Hi,"-active"),Qe===Ze&&!Ht),Object(g.a)(bt,"".concat(Hi,"-disabled"),Ht),Object(g.a)(bt,"".concat(Hi,"-selected"),Oi),bt)),Ni=_t?vn:Lr,Yi=!St||typeof St=="function"||Oi;return e.createElement("div",Object.assign({},ni,{"aria-selected":Oi,className:Ri,title:or,onMouseMove:function(){if(Qe===Ze||Ht)return;Ne(Ze)},onClick:function(){Ht||Ue(hn)},style:nn}),e.createElement("div",{className:"".concat(Hi,"-content")},Ni||hn),e.isValidElement(St)||Oi,Yi&&e.createElement(I,{className:"".concat($r,"-option-state"),customizeIcon:St,customizeIconProps:{isSelected:Oi}},Oi?"\u2713":null))}))},D=e.forwardRef(L);D.displayName="OptionList";var N=D,M=function(){return null};M.isSelectOption=!0;var B=M,R=function(){return null};R.isSelectOptGroup=!0;var H=R,F=d("VTBJ"),K=d("Zm9Q");function U(Te){var xe=Te.key,Ce=Te.props,Ye=Ce.children,it=Ce.value,dt=Object(A.a)(Ce,["children","value"]);return Object(F.a)({key:xe,value:it!==void 0?it:xe,children:Ye},dt)}function V(Te){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(K.a)(Te).map(function(Ce,Ye){if(!e.isValidElement(Ce)||!Ce.type)return null;var it=Ce.type.isSelectOptGroup,dt=Ce.key,_t=Ce.props,vr=_t.children,kr=Object(A.a)(_t,["children"]);return xe||!it?U(Ce):Object(F.a)(Object(F.a)({key:"__RC_SELECT_GRP__".concat(dt===null?Ye:dt,"__"),label:dt},kr),{},{options:V(vr)})}).filter(function(Ce){return Ce})}var z=d("KQm4"),Y=d("T5bk"),q=d("U8pU"),ce=d("Kwbf");function ie(Te){return Array.isArray(Te)?Te:Te!==void 0?[Te]:[]}function ve(Te,xe){var Ce=xe.labelInValue,Ye=xe.combobox;if(Te===void 0||Te===""&&Ye)return[];var it=Array.isArray(Te)?Te:[Te];return Ce?it.map(function(dt){var _t=dt.key,vr=dt.value;return vr!==void 0?vr:_t}):it}function Ee(Te,xe){var Ce=xe.optionLabelProp,Ye=xe.labelInValue,it=xe.prevValue,dt=xe.options,_t=xe.getLabeledValue,vr=Te;return Ye&&(vr=vr.map(function(kr){return _t(kr,{options:dt,prevValue:it,labelInValue:Ye,optionLabelProp:Ce})})),vr}function Le(Te,xe){var Ce=Object(z.a)(xe),Ye;for(Ye=Te.length-1;Ye>=0&&Te[Ye].disabled;Ye-=1);var it=null;return Ye!==-1&&(it=Ce[Ye],Ce.splice(Ye,1)),{values:Ce,removedValue:it}}var He=typeof window!="undefined"&&window.document&&window.document.documentElement,ge=He,Fe=0;function Q(){var Te;return ge?(Te=Fe,Fe+=1):Te="TEST_OR_SSR",Te}function fe(Te,xe){var Ce=Te.key,Ye;return"value"in Te&&(Ye=Te.value),Ce!=null?Ce:Ye!==void 0?Ye:"rc-index-key-".concat(xe)}function Je(Te){var xe=[];function Ce(Ye,it){Ye.forEach(function(dt){it||!("options"in dt)?xe.push({key:fe(dt,xe.length),groupOption:it,data:dt}):(xe.push({key:fe(dt,xe.length),group:!0,data:dt}),Ce(dt.options,!0))})}return Ce(Te,!1),xe}function ne(Te){var xe=Object(F.a)({},Te);return"props"in xe||Object.defineProperty(xe,"props",{get:function(){return Object(ce.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),xe}}),xe}function X(Te,xe){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ye=Ce.prevValueOptions,it=Ye===void 0?[]:Ye,dt=new Map;return xe.forEach(function(_t){if(!_t.group){var vr=_t.data;dt.set(vr.value,vr)}}),Te.map(function(_t){var vr=dt.get(_t);return vr||(vr=Object(F.a)({},it.find(function(kr){return kr._INTERNAL_OPTION_VALUE_===_t}))),ne(vr)})}var G=function(xe,Ce){var Ye=Ce.options,it=Ce.prevValue,dt=Ce.labelInValue,_t=Ce.optionLabelProp,vr=X([xe],Ye)[0],kr={value:xe},mn,Mt=ie(it);return dt&&(mn=Mt.find(function(nt){return Object(q.a)(nt)==="object"&&"value"in nt?nt.value===xe:nt.key===xe})),mn&&Object(q.a)(mn)==="object"&&"label"in mn?(kr.label=mn.label,vr&&typeof mn.label=="string"&&typeof vr[_t]=="string"&&mn.label.trim()!==vr[_t].trim()&&Object(ce.a)(!1,"`label` of `value` is not same as `label` in Select options.")):vr&&_t in vr?kr.label=vr[_t]:kr.label=xe,kr.key=kr.value,kr};function te(Te){return ie(Te).join("")}function we(Te){return function(xe,Ce){var Ye=xe.toLowerCase();if("options"in Ce)return te(Ce.label).toLowerCase().includes(Ye);var it=Ce[Te],dt=te(it).toLowerCase();return dt.includes(Ye)}}function he(Te,xe,Ce){var Ye=Ce.optionFilterProp,it=Ce.filterOption,dt=[],_t;return it===!1?xe:(typeof it=="function"?_t=it:_t=we(Ye),xe.forEach(function(vr){if("options"in vr){var kr=_t(Te,vr);if(kr)dt.push(vr);else{var mn=vr.options.filter(function(Mt){return _t(Te,Mt)});mn.length&&dt.push(Object(F.a)(Object(F.a)({},vr),{},{options:mn}))}return}_t(Te,ne(vr))&&dt.push(vr)}),dt)}function Pe(Te,xe){if(!xe||!xe.length)return null;var Ce=!1;function Ye(dt,_t){var vr=Object(Y.a)(_t),kr=vr[0],mn=vr.slice(1);if(!kr)return[dt];var Mt=dt.split(kr);return Ce=Ce||Mt.length>1,Mt.reduce(function(nt,st){return[].concat(Object(z.a)(nt),Object(z.a)(Ye(st,mn)))},[]).filter(function(nt){return nt})}var it=Ye(Te,xe);return Ce?it:null}function Oe(Te,xe){var Ce=X([Te],xe)[0];return Ce.disabled}function le(Te,xe,Ce,Ye){var it=ie(xe).slice().sort(),dt=Object(z.a)(Te),_t=new Set;return Te.forEach(function(vr){vr.options?vr.options.forEach(function(kr){_t.add(kr.value)}):_t.add(vr.value)}),it.forEach(function(vr){var kr=Ye?vr.value:vr;if(!_t.has(kr)){var mn;dt.push(Ye?(mn={},Object(g.a)(mn,Ce,vr.label),Object(g.a)(mn,"value",kr),mn):{value:kr})}}),dt}var me=d("6cGi"),_e=d("HTfv"),$e=d("c+Xe"),gt=function(xe,Ce){var Ye=xe.prefixCls,it=xe.id,dt=xe.inputElement,_t=xe.disabled,vr=xe.tabIndex,kr=xe.autoFocus,mn=xe.autoComplete,Mt=xe.editable,nt=xe.accessibilityIndex,st=xe.value,Xt=xe.onKeyDown,Dt=xe.onMouseDown,St=xe.onChange,jt=xe.onPaste,At=xe.onCompositionStart,Ft=xe.onCompositionEnd,wr=xe.open,sr=xe.attrs,mr=dt||e.createElement("input",null),$r=mr,rn=$r.ref,jn=$r.props,Un=jn.onKeyDown,ui=jn.onChange,yi=jn.onMouseDown,Ii=jn.onCompositionStart,Gi=jn.onCompositionEnd,Qe=jn.style;return mr=e.cloneElement(mr,Object(F.a)(Object(F.a)({id:it,ref:Object($e.a)(Ce,rn),disabled:_t,tabIndex:vr,autoComplete:mn||"off",autoFocus:kr,className:"".concat(Ye,"-selection-search-input"),style:Object(F.a)(Object(F.a)({},Qe),{},{opacity:Mt?null:0}),role:"combobox","aria-expanded":wr,"aria-haspopup":"listbox","aria-owns":"".concat(it,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(it,"_list"),"aria-activedescendant":"".concat(it,"_list_").concat(nt)},sr),{},{value:Mt?st:"",readOnly:!Mt,unselectable:Mt?null:"on",onKeyDown:function(Ne){Xt(Ne),Un&&Un(Ne)},onMouseDown:function(Ne){Dt(Ne),yi&&yi(Ne)},onChange:function(Ne){St(Ne),ui&&ui(Ne)},onCompositionStart:function(Ne){At(Ne),Ii&&Ii(Ne)},onCompositionEnd:function(Ne){Ft(Ne),Gi&&Gi(Ne)},onPaste:jt})),mr},et=e.forwardRef(gt);et.displayName="Input";var Ie=et;function rt(Te,xe){ge?e.useLayoutEffect(Te,xe):e.useEffect(Te,xe)}var Ge="__RC_SELECT_MAX_REST_COUNT__",vt=function(xe){var Ce=xe.id,Ye=xe.prefixCls,it=xe.values,dt=xe.open,_t=xe.searchValue,vr=xe.inputRef,kr=xe.placeholder,mn=xe.disabled,Mt=xe.mode,nt=xe.showSearch,st=xe.autoFocus,Xt=xe.autoComplete,Dt=xe.accessibilityIndex,St=xe.tabIndex,jt=xe.removeIcon,At=xe.choiceTransitionName,Ft=xe.maxTagCount,wr=xe.maxTagTextLength,sr=xe.maxTagPlaceholder,mr=sr===void 0?function(hn){return"+ ".concat(hn.length," ...")}:sr,$r=xe.tagRender,rn=xe.onSelect,jn=xe.onInputChange,Un=xe.onInputPaste,ui=xe.onInputKeyDown,yi=xe.onInputMouseDown,Ii=xe.onInputCompositionStart,Gi=xe.onInputCompositionEnd,Qe=e.useState(!1),be=Object(y.a)(Qe,2),Ne=be[0],Ue=be[1],Xe=e.useRef(null),ze=e.useState(0),Ze=Object(y.a)(ze,2),bt=Ze[0],ut=Ze[1];e.useEffect(function(){Ue(!0)},[]);var Gt=dt||Mt==="tags"?_t:"",Mr=Mt==="tags"||dt&&nt;rt(function(){ut(Xe.current.scrollWidth)},[Gt]);var Lr=it,Gr;typeof Ft=="number"&&(Gr=it.length-Ft,Lr=it.slice(0,Ft)),typeof wr=="number"&&(Lr=Lr.map(function(hn){var or=hn.label,vn=Object(A.a)(hn,["label"]),nn=or;if(typeof or=="string"||typeof or=="number"){var Ur=String(nn);Ur.length>wr&&(nn="".concat(Ur.slice(0,wr),"..."))}return Object(F.a)(Object(F.a)({},vn),{},{label:nn})})),Gr>0&&Lr.push({key:Ge,label:typeof mr=="function"?mr(it.slice(Ft)):mr});var Ht=e.createElement(_e.CSSMotionList,{component:!1,keys:Lr,motionName:At,motionAppear:Ne},function(hn){var or=hn.key,vn=hn.label,nn=hn.value,Ur=hn.disabled,ni=hn.className,Oi=hn.style,Hi=or||nn,Ri=or!==Ge&&!Ur,Ni=function(On){On.preventDefault(),On.stopPropagation()},Yi=function(On){On&&On.stopPropagation(),rn(nn,{selected:!1})};return typeof $r=="function"?e.createElement("span",{key:Hi,onMouseDown:Ni,className:ni,style:Oi},$r({label:vn,value:nn,disabled:Ur,closable:Ri,onClose:Yi})):e.createElement("span",{key:Hi,className:a()(ni,"".concat(Ye,"-selection-item"),Object(g.a)({},"".concat(Ye,"-selection-item-disabled"),Ur)),style:Oi},e.createElement("span",{className:"".concat(Ye,"-selection-item-content")},vn),Ri&&e.createElement(I,{className:"".concat(Ye,"-selection-item-remove"),onMouseDown:Ni,onClick:Yi,customizeIcon:jt},"\xD7"))});return e.createElement(e.Fragment,null,Ht,e.createElement("span",{className:"".concat(Ye,"-selection-search"),style:{width:bt}},e.createElement(Ie,{ref:vr,open:dt,prefixCls:Ye,id:Ce,inputElement:null,disabled:mn,autoFocus:st,autoComplete:Xt,editable:Mr,accessibilityIndex:Dt,value:Gt,onKeyDown:ui,onMouseDown:yi,onChange:jn,onPaste:Un,onCompositionStart:Ii,onCompositionEnd:Gi,tabIndex:St,attrs:Object(T.a)(xe,!0)}),e.createElement("span",{ref:Xe,className:"".concat(Ye,"-selection-search-mirror"),"aria-hidden":!0},Gt,"\xA0")),!it.length&&!Gt&&e.createElement("span",{className:"".concat(Ye,"-selection-placeholder")},kr))},Ot=vt,Et=function(xe){var Ce=xe.inputElement,Ye=xe.prefixCls,it=xe.id,dt=xe.inputRef,_t=xe.disabled,vr=xe.autoFocus,kr=xe.autoComplete,mn=xe.accessibilityIndex,Mt=xe.mode,nt=xe.open,st=xe.values,Xt=xe.placeholder,Dt=xe.tabIndex,St=xe.showSearch,jt=xe.searchValue,At=xe.activeValue,Ft=xe.onInputKeyDown,wr=xe.onInputMouseDown,sr=xe.onInputChange,mr=xe.onInputPaste,$r=xe.onInputCompositionStart,rn=xe.onInputCompositionEnd,jn=e.useState(!1),Un=Object(y.a)(jn,2),ui=Un[0],yi=Un[1],Ii=Mt==="combobox",Gi=Ii||St&&nt,Qe=st[0],be=jt||"";Ii&&At&&!ui&&(be=At),e.useEffect(function(){Ii&&yi(!1)},[Ii,At]);var Ne=Mt!=="combobox"&&!nt?!1:!!be,Ue=Qe&&(typeof Qe.label=="string"||typeof Qe.label=="number")?Qe.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(Ye,"-selection-search")},e.createElement(Ie,{ref:dt,prefixCls:Ye,id:it,open:nt,inputElement:Ce,disabled:_t,autoFocus:vr,autoComplete:kr,editable:Gi,accessibilityIndex:mn,value:be,onKeyDown:Ft,onMouseDown:wr,onChange:function(ze){yi(!0),sr(ze)},onPaste:mr,onCompositionStart:$r,onCompositionEnd:rn,tabIndex:Dt,attrs:Object(T.a)(xe,!0)})),!Ii&&Qe&&!Ne&&e.createElement("span",{className:"".concat(Ye,"-selection-item"),title:Ue},Qe.label),!Qe&&!Ne&&e.createElement("span",{className:"".concat(Ye,"-selection-placeholder")},Xt))},Tt=Et;function Rt(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,xe=e.useRef(null),Ce=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Ce.current)}},[]);function Ye(it){(it||xe.current===null)&&(xe.current=it),window.clearTimeout(Ce.current),Ce.current=window.setTimeout(function(){xe.current=null},Te)}return[function(){return xe.current},Ye]}var Be=function(xe,Ce){var Ye=Object(e.useRef)(null),it=Object(e.useRef)(!1),dt=xe.prefixCls,_t=xe.multiple,vr=xe.open,kr=xe.mode,mn=xe.showSearch,Mt=xe.tokenWithEnter,nt=xe.onSearch,st=xe.onSearchSubmit,Xt=xe.onToggleOpen,Dt=xe.onInputKeyDown,St=xe.domRef;e.useImperativeHandle(Ce,function(){return{focus:function(){Ye.current.focus()},blur:function(){Ye.current.blur()}}});var jt=Rt(0),At=Object(y.a)(jt,2),Ft=At[0],wr=At[1],sr=function(Ne){var Ue=Ne.which;(Ue===x.a.UP||Ue===x.a.DOWN)&&Ne.preventDefault(),Dt&&Dt(Ne),Ue===x.a.ENTER&&kr==="tags"&&!it.current&&!vr&&st(Ne.target.value),[x.a.SHIFT,x.a.TAB,x.a.BACKSPACE,x.a.ESC].includes(Ue)||Xt(!0)},mr=function(){wr(!0)},$r=Object(e.useRef)(null),rn=function(Ne){nt(Ne,!0,it.current)!==!1&&Xt(!0)},jn=function(){it.current=!0},Un=function(){it.current=!1},ui=function(Ne){var Ue=Ne.target.value;if(Mt&&$r.current&&/[\r\n]/.test($r.current)){var Xe=$r.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ue=Ue.replace(Xe,$r.current)}$r.current=null,rn(Ue)},yi=function(Ne){var Ue=Ne.clipboardData,Xe=Ue.getData("text");$r.current=Xe},Ii=function(Ne){var Ue=Ft();if(Ne.target!==Ye.current){Ue||Ne.preventDefault();var Xe=document.body.style.msTouchAction!==void 0;Xe?setTimeout(function(){Ye.current.focus()}):Ye.current.focus()}(kr!=="combobox"&&(!mn||!Ue)||!vr)&&(vr&&nt("",!0,!1),Xt())},Gi={inputRef:Ye,onInputKeyDown:sr,onInputMouseDown:mr,onInputChange:ui,onInputPaste:yi,onInputCompositionStart:jn,onInputCompositionEnd:Un},Qe=_t?e.createElement(Ot,Object.assign({},xe,Gi)):e.createElement(Tt,Object.assign({},xe,Gi));return e.createElement("div",{ref:St,className:"".concat(dt,"-selector"),onMouseDown:Ii},Qe)},Z=e.forwardRef(Be);Z.displayName="Selector";var J=Z,je=d("Uaa1"),Re=function(xe){var Ce=typeof xe!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1}}}},oe=function(xe,Ce){var Ye=xe.prefixCls,it=xe.disabled,dt=xe.visible,_t=xe.children,vr=xe.popupElement,kr=xe.containerWidth,mn=xe.animation,Mt=xe.transitionName,nt=xe.dropdownStyle,st=xe.dropdownClassName,Xt=xe.direction,Dt=Xt===void 0?"ltr":Xt,St=xe.dropdownMatchSelectWidth,jt=St===void 0?!0:St,At=xe.dropdownRender,Ft=xe.dropdownAlign,wr=xe.getPopupContainer,sr=xe.empty,mr=xe.getTriggerDOMNode,$r=Object(A.a)(xe,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),rn="".concat(Ye,"-dropdown"),jn=vr;At&&(jn=At(vr));var Un=e.useMemo(function(){return Re(jt)},[jt]),ui=mn?"".concat(rn,"-").concat(mn):Mt,yi=e.useRef(null);e.useImperativeHandle(Ce,function(){return{getPopupElement:function(){return yi.current}}});var Ii=Object(F.a)({minWidth:kr},nt);return typeof jt=="number"?Ii.width=jt:jt&&(Ii.width=kr),e.createElement(je.a,Object.assign({},$r,{showAction:[],hideAction:[],popupPlacement:Dt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Un,prefixCls:rn,popupTransitionName:ui,popup:e.createElement("div",{ref:yi},jn),popupAlign:Ft,popupVisible:dt,getPopupContainer:wr,popupClassName:a()(st,Object(g.a)({},"".concat(rn,"-empty"),sr)),popupStyle:Ii,getTriggerDOMNode:mr}),_t)},yt=e.forwardRef(oe);yt.displayName="SelectTrigger";var zt=yt,lt="RC_SELECT_INTERNAL_PROPS_MARK";function $t(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,xe=e.useState(!1),Ce=Object(y.a)(xe,2),Ye=Ce[0],it=Ce[1],dt=e.useRef(null),_t=function(){window.clearTimeout(dt.current)};e.useEffect(function(){return _t},[]);var vr=function(mn,Mt){_t(),dt.current=window.setTimeout(function(){it(mn),Mt&&Mt()},Te)};return[Ye,vr,_t]}function cr(Te,xe,Ce){var Ye=e.useRef(null);Ye.current={elements:Te.filter(function(it){return it}),open:xe,triggerOpen:Ce},e.useEffect(function(){function it(dt){var _t=dt.target;Ye.current.open&&Ye.current.elements.every(function(vr){return!vr.contains(_t)&&vr!==_t})&&Ye.current.triggerOpen(!1)}return window.addEventListener("mousedown",it),function(){return window.removeEventListener("mousedown",it)}},[])}function cn(Te){var xe=e.useRef(Te),Ce=e.useMemo(function(){var Ye=new Map;xe.current.forEach(function(dt){var _t=dt.value,vr=dt.label;_t!==vr&&Ye.set(_t,vr)});var it=Te.map(function(dt){var _t=Ye.get(dt.value);return dt.value===dt.label&&_t?Object(F.a)(Object(F.a)({},dt),{},{label:_t}):dt});return xe.current=it,it},[Te]);return Ce}function pr(Te,xe){var Ce=e.useRef(null),Ye=e.useMemo(function(){var dt=new Map;return xe.forEach(function(_t){var vr=_t.data.value;dt.set(vr,_t)}),dt},[Te,xe]);Ce.current=Ye;var it=function(_t){return _t.map(function(vr){return Ce.current.get(vr)}).filter(Boolean)};return it}var gr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Zt(Te){var xe=Te.prefixCls,Ce=Te.components.optionList,Ye=Te.convertChildrenToData,it=Te.flattenOptions,dt=Te.getLabeledValue,_t=Te.filterOptions,vr=Te.isValueDisabled,kr=Te.findValueOption,mn=Te.warningProps,Mt=Te.fillOptionsWithMissingValue,nt=Te.omitDOMProps;function st(Dt,St){var jt,At=Dt.prefixCls,Ft=At===void 0?xe:At,wr=Dt.className,sr=Dt.id,mr=Dt.open,$r=Dt.defaultOpen,rn=Dt.options,jn=Dt.children,Un=Dt.mode,ui=Dt.value,yi=Dt.defaultValue,Ii=Dt.labelInValue,Gi=Dt.showSearch,Qe=Dt.inputValue,be=Dt.searchValue,Ne=Dt.filterOption,Ue=Dt.optionFilterProp,Xe=Ue===void 0?"value":Ue,ze=Dt.autoClearSearchValue,Ze=ze===void 0?!0:ze,bt=Dt.onSearch,ut=Dt.allowClear,Gt=Dt.clearIcon,Mr=Dt.showArrow,Lr=Dt.inputIcon,Gr=Dt.menuItemSelectedIcon,Ht=Dt.disabled,hn=Dt.loading,or=Dt.defaultActiveFirstOption,vn=Dt.notFoundContent,nn=vn===void 0?"Not Found":vn,Ur=Dt.optionLabelProp,ni=Dt.backfill,Oi=Dt.getInputElement,Hi=Dt.getPopupContainer,Ri=Dt.listHeight,Ni=Ri===void 0?200:Ri,Yi=Dt.listItemHeight,Qr=Yi===void 0?20:Yi,On=Dt.animation,zr=Dt.transitionName,fr=Dt.virtual,Nr=Dt.dropdownStyle,Qt=Dt.dropdownClassName,xr=Dt.dropdownMatchSelectWidth,Jr=Dt.dropdownRender,Kr=Dt.dropdownAlign,en=Dt.showAction,ai=en===void 0?[]:en,Yn=Dt.direction,Si=Dt.tokenSeparators,ln=Dt.tagRender,Or=Dt.onPopupScroll,wn=Dt.onDropdownVisibleChange,Xn=Dt.onFocus,Zn=Dt.onBlur,ii=Dt.onKeyUp,Ei=Dt.onKeyDown,ki=Dt.onMouseDown,Fi=Dt.onChange,ra=Dt.onSelect,_a=Dt.onDeselect,wa=Dt.onClear,_o=Dt.internalProps,bi=_o===void 0?{}:_o,xn=Object(A.a)(Dt,["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"]),Zi=bi.mark===lt,va=nt?nt(xn):xn;gr.forEach(function(dr){delete va[dr]});var ta=Object(e.useRef)(null),ma=Object(e.useRef)(null),Qi=Object(e.useRef)(null),Ya=Object(e.useRef)(null),Wa=Object(e.useMemo)(function(){return(Si||[]).some(function(dr){return[`
`,`\r
`].includes(dr)})},[Si]),Ao=$t(),es=Object(y.a)(Ao,3),so=es[0],So=es[1],xo=es[2],hr=Object(e.useState)(),Sn=Object(y.a)(hr,2),dn=Sn[0],Kn=Sn[1];Object(e.useEffect)(function(){Kn("rc_select_".concat(Q()))},[]);var si=sr||dn,vi=Ur;vi===void 0&&(vi=rn?"label":"children");var pi=Un==="combobox"?!1:Ii,di=Un==="tags"||Un==="multiple",Ki=Gi!==void 0?Gi:di||Un==="combobox",Mi=Object(e.useRef)(null);e.useImperativeHandle(St,function(){return{focus:Qi.current.focus,blur:Qi.current.blur}});var pa=Object(me.a)(yi,{value:ui}),_i=Object(y.a)(pa,2),da=_i[0],na=_i[1],Sa=Object(e.useMemo)(function(){return ve(da,{labelInValue:pi,combobox:Un==="combobox"})},[da,pi]),Aa=Object(e.useMemo)(function(){return new Set(Sa)},[Sa]),ua=Object(e.useState)(null),La=Object(y.a)(ua,2),sa=La[0],co=La[1],no=Object(e.useState)(""),ca=Object(y.a)(no,2),yo=ca[0],lo=ca[1],Na=yo;Un==="combobox"&&da!==void 0?Na=da:be!==void 0?Na=be:Qe&&(Na=Qe);var ho=Object(e.useMemo)(function(){var dr=rn;return dr===void 0&&(dr=Ye(jn)),Un==="tags"&&Mt&&(dr=Mt(dr,da,vi,Ii)),dr||[]},[rn,jn,Un,da]),Io=Object(e.useMemo)(function(){return it(ho,Dt)},[ho]),eo=pr(Sa,Io),Lo=Object(e.useMemo)(function(){if(!Na||!Ki)return Object(z.a)(ho);var dr=_t(Na,ho,{optionFilterProp:Xe,filterOption:Un==="combobox"&&Ne===void 0?function(){return!0}:Ne});return Un==="tags"&&dr.every(function(nr){return nr[Xe]!==Na})&&dr.unshift({value:Na,label:Na,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),dr},[ho,Na,Un,Ki]),Va=Object(e.useMemo)(function(){return it(Lo,Dt)},[Lo]);Object(e.useEffect)(function(){Ya.current&&Ya.current.scrollTo&&Ya.current.scrollTo(0)},[Na]);var Bo=Object(e.useMemo)(function(){var dr=Sa.map(function(nr){var Wr=eo([nr]),En=dt(nr,{options:Wr,prevValue:da,labelInValue:pi,optionLabelProp:vi});return Object(F.a)(Object(F.a)({},En),{},{disabled:vr(nr,Wr)})});return!Un&&dr.length===1&&dr[0].value===null&&dr[0].label===null?[]:dr},[da,ho,Un]);Bo=cn(Bo);var Ho=function(nr,Wr,En){var Cn=eo([nr]),Nn=kr([nr],Cn)[0];if(!bi.skipTriggerSelect){var oi=pi?dt(nr,{options:Cn,prevValue:da,labelInValue:pi,optionLabelProp:vi}):nr;Wr&&ra?ra(oi,Nn):!Wr&&_a&&_a(oi,Nn)}Zi&&(Wr&&bi.onRawSelect?bi.onRawSelect(nr,Nn,En):!Wr&&bi.onRawDeselect&&bi.onRawDeselect(nr,Nn,En))},Pr=Object(e.useState)([]),An=Object(y.a)(Pr,2),Pn=An[0],qr=An[1],er=function(nr){if(Zi&&bi.skipTriggerChange)return;var Wr=eo(nr),En=Ee(Array.from(nr),{labelInValue:pi,options:Wr,getLabeledValue:dt,prevValue:da,optionLabelProp:vi}),Cn=di?En:En[0];if(Fi&&(Sa.length!==0||En.length!==0)){var Nn=kr(nr,Wr,{prevValueOptions:Pn});qr(Nn.map(function(oi,Qn){var Vi=Object(F.a)({},oi);return Object.defineProperty(Vi,"_INTERNAL_OPTION_VALUE_",{get:function(){return nr[Qn]}}),Vi})),Fi(Cn,di?Nn:Nn[0])}na(Cn)},Dr=function(nr,Wr){var En=Wr.selected,Cn=Wr.source;if(Ht)return;var Nn;di?(Nn=new Set(Sa),En?Nn.add(nr):Nn.delete(nr)):(Nn=new Set,Nn.add(nr)),(di||!di&&Array.from(Sa)[0]!==nr)&&er(Array.from(Nn)),Ho(nr,!di||En,Cn),Un==="combobox"?(lo(String(nr)),co("")):(!di||Ze)&&(lo(""),co(""))},lr=function(nr,Wr){Dr(nr,Object(F.a)(Object(F.a)({},Wr),{},{source:"option"}))},on=function(nr,Wr){Dr(nr,Object(F.a)(Object(F.a)({},Wr),{},{source:"selection"}))},fn=Un==="combobox"&&Oi&&Oi()||null,Wn=Object(me.a)(void 0,{defaultValue:$r,value:mr}),Dn=Object(y.a)(Wn,2),Jn=Dn[0],Ti=Dn[1],xi=Jn,Bi=!nn&&!Lo.length;(Ht||Bi&&xi&&Un==="combobox")&&(xi=!1);var ea=Bi?!1:xi,Ha=function(nr){var Wr=nr!==void 0?nr:!xi;Jn!==Wr&&!Ht&&(Ti(Wr),wn&&wn(Wr))};cr([ta.current,ma.current&&ma.current.getPopupElement()],ea,Ha);var Qa=function(nr,Wr,En){var Cn=!0,Nn=nr;co(null);var oi=En?null:Pe(nr,Si),Qn=oi;if(Un==="combobox")Wr&&er([Nn]);else if(oi){Nn="",Un!=="tags"&&(Qn=oi.map(function(wi){var Ea=Io.find(function(aa){var Ca=aa.data;return Ca[vi]===wi});return Ea?Ea.data.value:null}).filter(function(wi){return wi!==null}));var Vi=Array.from(new Set([].concat(Object(z.a)(Sa),Object(z.a)(Qn))));er(Vi),Vi.forEach(function(wi){Ho(wi,!0,"input")}),Ha(!1),Cn=!1}return lo(Nn),bt&&Na!==Nn&&bt(Nn),Cn},io=function(nr){var Wr=Array.from(new Set([].concat(Object(z.a)(Sa),[nr])));er(Wr),Wr.forEach(function(En){Ho(En,!0,"input")}),lo("")};Object(e.useEffect)(function(){Jn&&!!Ht&&Ti(!1)},[Ht]),Object(e.useEffect)(function(){!xi&&!di&&Un!=="combobox"&&Qa("",!1,!1)},[xi]);var Ja=Rt(),Ga=Object(y.a)(Ja,2),Ra=Ga[0],ia=Ga[1],qe=function(nr){var Wr=Ra(),En=nr.which;if(!xi&&En===x.a.ENTER&&Ha(!0),ia(!!Na),En===x.a.BACKSPACE&&!Wr&&di&&!Na&&Sa.length){var Cn=Le(Bo,Sa);Cn.removedValue!==null&&(er(Cn.values),Ho(Cn.removedValue,!1,"input"))}for(var Nn=arguments.length,oi=new Array(Nn>1?Nn-1:0),Qn=1;Qn<Nn;Qn++)oi[Qn-1]=arguments[Qn];if(xi&&Ya.current){var Vi;(Vi=Ya.current).onKeyDown.apply(Vi,[nr].concat(oi))}Ei&&Ei.apply(void 0,[nr].concat(oi))},rr=function(nr){for(var Wr=arguments.length,En=new Array(Wr>1?Wr-1:0),Cn=1;Cn<Wr;Cn++)En[Cn-1]=arguments[Cn];if(xi&&Ya.current){var Nn;(Nn=Ya.current).onKeyUp.apply(Nn,[nr].concat(En))}ii&&ii.apply(void 0,[nr].concat(En))},Rr=Object(e.useRef)(!1),Cr=function(){So(!0),Ht||(Xn&&!Rr.current&&Xn.apply(void 0,arguments),ai.includes("focus")&&Ha(!0)),Rr.current=!0},pn=function(){if(So(!1,function(){Rr.current=!1,Ha(!1)}),Ht)return;Na&&(Un==="tags"?(Qa("",!1,!1),er(Array.from(new Set([].concat(Object(z.a)(Sa),[Na]))))):Un==="multiple"&&lo("")),Zn&&Zn.apply(void 0,arguments)},Vr=[];Object(e.useEffect)(function(){return function(){Vr.forEach(function(dr){return clearTimeout(dr)}),Vr.splice(0,Vr.length)}},[]);var br=function(nr){var Wr=nr.target,En=ma.current&&ma.current.getPopupElement();if(En&&En.contains(Wr)){var Cn=setTimeout(function(){var Vi=Vr.indexOf(Cn);Vi!==-1&&Vr.splice(Vi,1),xo(),En.contains(document.activeElement)||Qi.current.focus()});Vr.push(Cn)}if(ki){for(var Nn=arguments.length,oi=new Array(Nn>1?Nn-1:0),Qn=1;Qn<Nn;Qn++)oi[Qn-1]=arguments[Qn];ki.apply(void 0,[nr].concat(oi))}},In=Object(e.useState)(0),Sr=Object(y.a)(In,2),gn=Sr[0],$n=Sr[1],qn=or!==void 0?or:Un!=="combobox",Gn=function(nr,Wr){$n(Wr),ni&&Un==="combobox"&&nr!==null&&co(String(nr))},mi=Object(e.useState)(null),ti=Object(y.a)(mi,2),ri=ti[0],li=ti[1],Xi=Object(e.useState)({}),Pi=Object(y.a)(Xi,2),ga=Pi[1];function tr(){ga({})}rt(function(){if(ea){var dr=Math.ceil(ta.current.offsetWidth);ri!==dr&&li(dr)}},[ea]);var Lt=e.createElement(Ce,{ref:Ya,prefixCls:Ft,id:si,open:xi,childrenAsData:!rn,options:Lo,flattenOptions:Va,multiple:di,values:Aa,height:Ni,itemHeight:Qr,onSelect:lr,onToggleOpen:Ha,onActiveValue:Gn,defaultActiveFirstOption:qn,notFoundContent:nn,onScroll:Or,searchValue:Na,menuItemSelectedIcon:Gr,virtual:fr!==!1&&xr!==!1,onMouseEnter:tr}),yr,xt=function(){Zi&&bi.onClear&&bi.onClear(),wa&&wa(),er([]),Qa("",!1,!1)};!Ht&&ut&&(Sa.length||Na)&&(yr=e.createElement(I,{className:"".concat(Ft,"-clear"),onMouseDown:xt,customizeIcon:Gt},"\xD7"));var Ut=Mr!==void 0?Mr:hn||!di&&Un!=="combobox",ur;Ut&&(ur=e.createElement(I,{className:a()("".concat(Ft,"-arrow"),Object(g.a)({},"".concat(Ft,"-arrow-loading"),hn)),customizeIcon:Lr,customizeIconProps:{loading:hn,searchValue:Na,open:xi,focused:so,showSearch:Ki}}));var Ct=a()(Ft,wr,(jt={},Object(g.a)(jt,"".concat(Ft,"-focused"),so),Object(g.a)(jt,"".concat(Ft,"-multiple"),di),Object(g.a)(jt,"".concat(Ft,"-single"),!di),Object(g.a)(jt,"".concat(Ft,"-allow-clear"),ut),Object(g.a)(jt,"".concat(Ft,"-show-arrow"),Ut),Object(g.a)(jt,"".concat(Ft,"-disabled"),Ht),Object(g.a)(jt,"".concat(Ft,"-loading"),hn),Object(g.a)(jt,"".concat(Ft,"-open"),xi),Object(g.a)(jt,"".concat(Ft,"-customize-input"),fn),Object(g.a)(jt,"".concat(Ft,"-show-search"),Ki),jt));return e.createElement("div",Object.assign({className:Ct},va,{ref:ta,onMouseDown:br,onKeyDown:qe,onKeyUp:rr,onFocus:Cr,onBlur:pn}),so&&!xi&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Sa.join(", "))),e.createElement(zt,{ref:ma,disabled:Ht,prefixCls:Ft,visible:ea,popupElement:Lt,containerWidth:ri,animation:On,transitionName:zr,dropdownStyle:Nr,dropdownClassName:Qt,direction:Yn,dropdownMatchSelectWidth:xr,dropdownRender:Jr,dropdownAlign:Kr,getPopupContainer:Hi,empty:!ho.length,getTriggerDOMNode:function(){return Mi.current}},e.createElement(J,Object.assign({},Dt,{domRef:Mi,prefixCls:Ft,inputElement:fn,ref:Qi,id:si,showSearch:Ki,mode:Un,accessibilityIndex:gn,multiple:di,tagRender:ln,values:Bo,open:xi,onToggleOpen:Ha,searchValue:Na,activeValue:sa,onSearch:Qa,onSearchSubmit:io,onSelect:on,tokenWithEnter:Wa}))),ur,yr)}var Xt=e.forwardRef(st);return Xt}function Vt(Te){var xe=Te.mode,Ce=Te.options,Ye=Te.children,it=Te.backfill,dt=Te.allowClear,_t=Te.placeholder,vr=Te.getInputElement,kr=Te.showSearch,mn=Te.onSearch,Mt=Te.defaultOpen,nt=Te.autoFocus,st=Te.labelInValue,Xt=Te.value,Dt=Te.inputValue,St=Te.optionLabelProp,jt=xe==="multiple"||xe==="tags",At=kr!==void 0?kr:jt||xe==="combobox",Ft=Ce||V(Ye);if(Object(ce.a)(xe!=="tags"||Ft.every(function($r){return!$r.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),xe==="tags"||xe==="combobox"){var wr=Ft.some(function($r){return $r.options?$r.options.some(function(rn){return typeof("value"in rn?rn.value:rn.key)=="number"}):typeof("value"in $r?$r.value:$r.key)=="number"});Object(ce.a)(!wr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ce.a)(xe!=="combobox"||!St,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ce.a)(xe==="combobox"||!it,"`backfill` only works with `combobox` mode."),Object(ce.a)(xe==="combobox"||!vr,"`getInputElement` only work with `combobox` mode."),Object(ce.b)(xe!=="combobox"||!vr||!dt||!_t,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),mn&&!At&&xe!=="combobox"&&xe!=="tags"&&Object(ce.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ce.b)(!Mt||nt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Xt!=null){var sr=ie(Xt);Object(ce.a)(!st||sr.every(function($r){return Object(q.a)($r)==="object"&&("key"in $r||"value"in $r)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ce.a)(!jt||Array.isArray(Xt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ye){var mr=null;Object(K.a)(Ye).some(function($r){if(!e.isValidElement($r)||!$r.type)return!1;var rn=$r.type;if(rn.isSelectOption)return!1;if(rn.isSelectOptGroup){var jn=Object(K.a)($r.props.children).every(function(Un){return!e.isValidElement(Un)||!$r.type||Un.type.isSelectOption?!0:(mr=Un.type,!1)});return!jn}return mr=rn,!0}),mr&&Object(ce.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(mr.displayName||mr.name||mr,"`.")),Object(ce.a)(Dt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var mt=Vt,Yr=Zt({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:V,flattenOptions:Je,getLabeledValue:G,filterOptions:he,isValueDisabled:Oe,findValueOption:X,warningProps:mt,fillOptionsWithMissingValue:le}),Tn=function(Te){Object(f.a)(Ce,Te);var xe=Object(p.a)(Ce);function Ce(){var Ye;return Object(l.a)(this,Ce),Ye=xe.apply(this,arguments),Ye.selectRef=e.createRef(),Ye.focus=function(){Ye.selectRef.current.focus()},Ye.blur=function(){Ye.selectRef.current.blur()},Ye}return Object(u.a)(Ce,[{key:"render",value:function(){return e.createElement(Yr,Object.assign({ref:this.selectRef},this.props))}}]),Ce}(e.Component);Tn.Option=B,Tn.OptGroup=H;var Hn=Tn,ei=Hn,ji=d("H84U"),Ln=d("1vzs"),Vn=d("3Nzz"),kt=function(Te){r()(Ce,Te);var xe=n()(Ce);function Ce(){var Ye;return m()(this,Ce),Ye=xe.apply(this,arguments),Ye.selectRef=e.createRef(),Ye.focus=function(){Ye.selectRef.current&&Ye.selectRef.current.focus()},Ye.blur=function(){Ye.selectRef.current&&Ye.selectRef.current.blur()},Ye.getMode=function(){var it=Ye.props.mode;return it==="combobox"?void 0:it===Ce.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":it},Ye.renderSelect=function(it){var dt=it.getPopupContainer,_t=it.getPrefixCls,vr=it.renderEmpty,kr=it.direction,mn=it.virtual,Mt=it.dropdownMatchSelectWidth,nt=Ye.props,st=nt.prefixCls,Xt=nt.notFoundContent,Dt=nt.className,St=nt.size,jt=nt.listHeight,At=jt===void 0?256:jt,Ft=nt.listItemHeight,wr=Ft===void 0?24:Ft,sr=nt.getPopupContainer,mr=nt.dropdownClassName,$r=nt.bordered,rn=_t("select",st),jn=Ye.getMode(),Un=jn==="multiple"||jn==="tags",ui;Xt!==void 0?ui=Xt:jn==="combobox"?ui=null:ui=vr("Select");var yi=Object(Ln.a)(v()(v()({},Ye.props),{multiple:Un,prefixCls:rn})),Ii=yi.suffixIcon,Gi=yi.itemIcon,Qe=yi.removeIcon,be=yi.clearIcon,Ne=Object(s.default)(Ye.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Ue=a()(mr,E()({},"".concat(rn,"-dropdown-").concat(kr),kr==="rtl"));return e.createElement(Vn.b.Consumer,null,function(Xe){var ze,Ze=St||Xe,bt=a()(Dt,(ze={},E()(ze,"".concat(rn,"-lg"),Ze==="large"),E()(ze,"".concat(rn,"-sm"),Ze==="small"),E()(ze,"".concat(rn,"-rtl"),kr==="rtl"),E()(ze,"".concat(rn,"-borderless"),!$r),ze));return e.createElement(ei,v()({ref:Ye.selectRef,virtual:mn,dropdownMatchSelectWidth:Mt},Ne,{listHeight:At,listItemHeight:wr,mode:jn,prefixCls:rn,direction:kr,inputIcon:Ii,menuItemSelectedIcon:Gi,removeIcon:Qe,clearIcon:be,notFoundContent:ui,className:bt,getPopupContainer:sr||dt,dropdownClassName:Ue}))})},Ye}return c()(Ce,[{key:"render",value:function(){return e.createElement(ji.a,null,this.renderSelect)}}]),Ce}(e.Component);kt.Option=B,kt.OptGroup=H,kt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",kt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var wt=P.a=kt},"2fw6":function(j,P,d){var O=d("y+Vt"),E=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(v,w,m){m&&v.moveTo(w.cx+w.r,w.cy),v.arc(w.cx,w.cy,w.r,0,Math.PI*2,!0)}});j.exports=E},"2jpz":function(j,P,d){"use strict";d.d(P,"a",function(){return u});var O=d("cDf5"),E=d.n(O),C=d("q1tI"),v=d.n(C),w=d("TSYQ"),m=d.n(w),h=d("gZBC"),c=d.n(h),i=d("vk+C"),r=d.n(i),o=d("pG52"),n=d.n(o),e=d("Csr3"),s=d.n(e),t=d("e5VY"),a=d.n(t),l=d("0n0R");function u(f,p,g,A){var y=A.isLeaf,x=A.expanded,T=A.loading;if(T)return C.createElement(c.a,{className:"".concat(f,"-switcher-loading-icon")});var S;if(g&&E()(g)==="object"&&(S=g.showLeafIcon),y)return g?E()(g)==="object"&&!S?C.createElement("span",{className:"".concat(f,"-switcher-leaf-line")}):C.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||(g?x?C.createElement(n.a,{className:"".concat(f,"-switcher-line-icon")}):C.createElement(s.a,{className:"".concat(f,"-switcher-line-icon")}):C.createElement(a.a,{className:b}))}},"2oIt":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},"2uGb":function(j,P,d){var O=d("ProS");d("ko1b"),d("s2lz"),d("RBEP");var E=d("kMLO"),C=d("nKiI");O.registerVisual(E),O.registerLayout(C)},"2w7y":function(j,P,d){var O=d("ProS");d("qMZE"),d("g0SD"),O.registerPreprocessor(function(E){E.markPoint=E.markPoint||{}})},"33Ds":function(j,P,d){var O=d("ProS"),E=d("b9oc"),C=d("Kagy"),v=d("IUWy"),w=C.toolbox.restore;function m(i){this.model=i}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:w.title};var h=m.prototype;h.onclick=function(i,r,o){E.clear(i),r.dispatchAction({type:"restore",from:this.uid})},v.register("restore",m),O.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(i,r){r.resetOption("recreate")});var c=m;j.exports=c},"34/K":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,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(w,c.key,c)}}function C(w,m,h){return m&&E(w.prototype,m),h&&E(w,h),w}var v=function(){function w(){O(this,w),this._lines=0}return C(w,[{key:"decodeRect",value:function(h,c,i,r,o,n,e){this._lines===0&&(this._lines=r);var s=e==8?1:4,t=i*s;if(o.rQwait("RAW",t))return!1;var a=c+(r-this._lines),l=Math.min(this._lines,Math.floor(o.rQlen/t)),u=o.rQ,f=o.rQi;if(e==8){for(var p=i*l,g=new Uint8Array(p*4),A=0;A<p;A++)g[A*4+0]=(u[f+A]>>0&3)*255/3,g[A*4+1]=(u[f+A]>>2&3)*255/3,g[A*4+2]=(u[f+A]>>4&3)*255/3,g[A*4+4]=0;u=g,f=0}return n.blitImage(h,a,i,l,u,f),o.rQskipBytes(l*t),this._lines-=l,!(this._lines>0)}}]),w}();P.default=v},"3690":function(j,P,d){"use strict";function O(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(o){return typeof o}:O=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},O(i)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var E=v(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return C=function(){return i},i}function v(i){if(i&&i.__esModule)return i;if(i===null||O(i)!=="object"&&typeof i!="function")return{default:i};var r=C();if(r&&r.has(i))return r.get(i);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var s=n?Object.getOwnPropertyDescriptor(i,e):null;s&&(s.get||s.set)?Object.defineProperty(o,e,s):o[e]=i[e]}return o.default=i,r&&r.set(i,o),o}function w(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function m(i,r){for(var o=0;o<r.length;o++){var n=r[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function h(i,r,o){return r&&m(i.prototype,r),o&&m(i,o),i}var c=function(){function i(){w(this,i),this._tiles=0,this._lastsubencoding=0}return h(i,[{key:"decodeRect",value:function(o,n,e,s,t,a,l){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(s/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var u=1;if(t.rQwait("HEXTILE",u))return!1;var f=t.rQ,p=t.rQi,g=f[p];if(g>30)throw new Error("Illegal hextile subencoding (subencoding: "+g+")");var A=this._totalTiles-this._tiles,y=A%this._tilesX,x=Math.floor(A/this._tilesX),T=o+y*16,S=n+x*16,b=Math.min(16,o+e-T),_=Math.min(16,n+s-S);if(g&1)u+=b*_*4;else if(g&2&&(u+=4),g&4&&(u+=4),g&8){if(u++,t.rQwait("HEXTILE",u))return!1;var I=f[p+u-1];g&16?u+=I*(4+2):u+=I*2}if(t.rQwait("HEXTILE",u))return!1;if(p++,g===0)this._lastsubencoding&1?E.Debug(" Ignoring blank after RAW"):a.fillRect(T,S,b,_,this._background);else if(g&1)a.blitImage(T,S,b,_,f,p),p+=u-1;else{if(g&2&&(this._background=[f[p],f[p+1],f[p+2],f[p+3]],p+=4),g&4&&(this._foreground=[f[p],f[p+1],f[p+2],f[p+3]],p+=4),a.startTile(T,S,b,_,this._background),g&8){var L=f[p];p++;for(var D=0;D<L;D++){var N=void 0;g&16?(N=[f[p],f[p+1],f[p+2],f[p+3]],p+=4):N=this._foreground;var M=f[p];p++;var B=M>>4,R=M&15,H=f[p];p++;var F=(H>>4)+1,K=(H&15)+1;a.subTile(B,R,F,K,N)}}a.finishTile()}t.rQi=p,this._lastsubencoding=g,this._tiles--}return!0}}]),i}();P.default=c},"3C/r":function(j,P){var d=function(C,v){this.image=C,this.repeat=v,this.type="pattern"};d.prototype.getCanvasPattern=function(E){return E.createPattern(this.image,this.repeat||"repeat")};var O=d;j.exports=O},"3CBa":function(j,P,d){var O=d("hydK"),E=O.createElement,C=d("bYtY"),v=d("SUKs"),w=d("y+Vt"),m=d("Dagg"),h=d("dqUG"),c=d("DBLp"),i=d("sW+o"),r=d("n6Mw"),o=d("vKoX"),n=d("P47w"),e=n.path,s=n.image,t=n.text;function a(b){return parseInt(b,10)}function l(b){return b instanceof w?e:b instanceof m?s:b instanceof h?t:e}function u(b,_){return _&&b&&_.parentNode!==b}function f(b,_,I){if(u(b,_)&&I){var L=I.nextSibling;L?b.insertBefore(_,L):b.appendChild(_)}}function p(b,_){if(u(b,_)){var I=b.firstChild;I?b.insertBefore(_,I):b.appendChild(_)}}function g(b,_){_&&b&&_.parentNode===b&&b.removeChild(_)}function A(b){return b.__textSvgEl}function y(b){return b.__svgEl}var x=function(_,I,L,D){this.root=_,this.storage=I,this._opts=L=C.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 B=E("g");N.appendChild(B),this.gradientManager=new i(D,B),this.clipPathManager=new r(D,B),this.shadowManager=new o(D,B);var R=document.createElement("div");R.style.cssText="overflow:hidden;position:relative",this._svgDom=N,this._svgRoot=B,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 I=E("rect");I.setAttribute("width",this.getWidth()),I.setAttribute("height",this.getHeight()),I.setAttribute("x",0),I.setAttribute("y",0),I.setAttribute("id",0),I.style.fill=_,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(_){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,L=this._visibleList,D=_.length,N=[],M;for(M=0;M<D;M++){var B=_[M],R=l(B),H=y(B)||A(B);B.invisible||(B.__dirty&&(R&&R.brush(B),this.clipPathManager.update(B),B.style&&(this.gradientManager.update(B.style.fill),this.gradientManager.update(B.style.stroke),this.shadowManager.update(H,B)),B.__dirty=!1),N.push(B))}var F=c(L,N),K;for(M=0;M<F.length;M++){var U=F[M];if(U.removed)for(var V=0;V<U.count;V++){var B=L[U.indices[V]],H=y(B),z=A(B);g(I,H),g(I,z)}}for(M=0;M<F.length;M++){var U=F[M];if(U.added)for(var V=0;V<U.count;V++){var B=N[U.indices[V]],H=y(B),z=A(B);K?f(I,H,K):p(I,H),H?f(I,z,H):K?f(I,z,K):p(I,z),f(I,z,H),K=z||H||K,this.gradientManager.addWithoutUpdate(H||z,B),this.shadowManager.addWithoutUpdate(H||z,B),this.clipPathManager.markUsed(B)}else if(!U.removed)for(var V=0;V<U.count;V++){var B=N[U.indices[V]],H=y(B),z=A(B),H=y(B),z=A(B);this.gradientManager.markUsed(B),this.gradientManager.addWithoutUpdate(H||z,B),this.shadowManager.markUsed(B),this.shadowManager.addWithoutUpdate(H||z,B),this.clipPathManager.markUsed(B),z&&f(I,z,H),K=H||z||K}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=N},_getDefs:function(_){var I=this._svgDom,L=I.getElementsByTagName("defs");if(L.length===0)if(_){var L=I.insertBefore(E("defs"),I.firstChild);return L.contains||(L.contains=function(N){var M=L.children;if(!M)return!1;for(var B=M.length-1;B>=0;--B)if(M[B]===N)return!0;return!1}),L}else return null;else return L[0]},resize:function(_,I){var L=this._viewport;L.style.display="none";var D=this._opts;if(_!=null&&(D.width=_),I!=null&&(D.height=I),_=this._getSize(0),I=this._getSize(1),L.style.display="",this._width!==_||this._height!==I){this._width=_,this._height=I;var N=L.style;N.width=_+"px",N.height=I+"px";var M=this._svgDom;M.setAttribute("width",_),M.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",_),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(_){var I=this._opts,L=["width","height"][_],D=["clientWidth","clientHeight"][_],N=["paddingLeft","paddingTop"][_],M=["paddingRight","paddingBottom"][_];if(I[L]!=null&&I[L]!=="auto")return parseFloat(I[L]);var B=this.root,R=document.defaultView.getComputedStyle(B);return(B[D]||a(R[L])||a(B.style[L]))-(a(R[N])||0)-(a(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 T(b){return function(){v('In SVG mode painter not support method "'+b+'"')}}C.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(b){x.prototype[b]=T(b)});var S=x;j.exports=S},"3LNs":function(j,P,d){var O=d("bYtY"),E=d("Yl7c"),C=d("IwbS"),v=d("zTMp"),w=d("YH21"),m=d("iLNv"),h=d("4NO4"),c=h.makeInner,i=c(),r=O.clone,o=O.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,g,A){var y=p.get("value"),x=p.get("status");if(this._axisModel=f,this._axisPointerModel=p,this._api=g,!A&&this._lastValue===y&&this._lastStatus===x)return;this._lastValue=y,this._lastStatus=x;var T=this._group,S=this._handle;if(!x||x==="hide"){T&&T.hide(),S&&S.hide();return}T&&T.show(),S&&S.show();var b={};this.makeElOption(b,y,f,p,g);var _=b.graphicKey;_!==this._lastGraphicKey&&this.clear(g),this._lastGraphicKey=_;var I=this._moveAnimation=this.determineAnimation(f,p);if(!T)T=this._group=new C.Group,this.createPointerEl(T,b,f,p),this.createLabelEl(T,b,f,p),g.getZr().add(T);else{var L=O.curry(e,p,I);this.updatePointerEl(T,b,L,p),this.updateLabelEl(T,b,L,p)}l(T,p,!0),this._renderHandle(y)},remove:function(f){this.clear(f)},dispose:function(f){this.clear(f)},determineAnimation:function(f,p){var g=p.get("animation"),A=f.axis,y=A.type==="category",x=p.get("snap");if(!x&&!y)return!1;if(g==="auto"||g==null){var T=this.animationThreshold;if(y&&A.getBandWidth()>T)return!0;if(x){var S=v.getAxisInfo(f).seriesDataCount,b=A.getExtent();return Math.abs(b[0]-b[1])/S>T}return!1}return g===!0},makeElOption:function(f,p,g,A,y){},createPointerEl:function(f,p,g,A){var y=p.pointer;if(y){var x=i(f).pointerEl=new C[y.type](r(p.pointer));f.add(x)}},createLabelEl:function(f,p,g,A){if(p.label){var y=i(f).labelEl=new C.Rect(r(p.label));f.add(y),t(y,A)}},updatePointerEl:function(f,p,g){var A=i(f).pointerEl;A&&p.pointer&&(A.setStyle(p.pointer.style),g(A,{shape:p.pointer.shape}))},updateLabelEl:function(f,p,g,A){var y=i(f).labelEl;y&&(y.setStyle(p.label.style),g(y,{shape:p.label.shape,position:p.label.position}),t(y,A))},_renderHandle:function(f){if(this._dragging||!this.updateHandleTransform)return;var p=this._axisPointerModel,g=this._api.getZr(),A=this._handle,y=p.getModel("handle"),x=p.get("status");if(!y.get("show")||!x||x==="hide"){A&&g.remove(A),this._handle=null;return}var T;this._handle||(T=!0,A=this._handle=C.createIcon(y.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(_){w.stop(_.event)},onmousedown:o(this._onHandleDragMove,this,0,0),drift:o(this._onHandleDragMove,this),ondragend:o(this._onHandleDragEnd,this)}),g.add(A)),l(A,p,!1);var S=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];A.setStyle(y.getItemStyle(null,S));var b=y.get("size");O.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,T)},_moveHandleToValue:function(f,p){e(this._axisPointerModel,!p&&this._moveAnimation,this._handle,a(this.getHandleTransform(f,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(f,p){var g=this._handle;if(!g)return;this._dragging=!0;var A=this.updateHandleTransform(a(g),[f,p],this._axisModel,this._axisPointerModel);this._payloadInfo=A,g.stopAnimation(),g.attr(a(A)),i(g).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var f=this._handle;if(!f)return;var p=this._payloadInfo,g=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:p.cursorPoint[0],y:p.cursorPoint[1],tooltipOption:p.tooltipOption,axesInfo:[{axisDim:g.axis.dim,axisIndex:g.componentIndex}]})},_onHandleDragEnd:function(f){this._dragging=!1;var p=this._handle;if(!p)return;var g=this._axisPointerModel.get("value");this._moveHandleToValue(g),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(f){this._lastValue=null,this._lastStatus=null;var p=f.getZr(),g=this._group,A=this._handle;p&&g&&(this._lastGraphicKey=null,g&&p.remove(g),A&&p.remove(A),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(f,p,g){return g=g||0,{x:f[g],y:f[1-g],width:p[g],height:p[1-g]}}},n.prototype.constructor=n;function e(f,p,g,A){s(i(g).lastProp,A)||(i(g).lastProp=A,p?C.updateProps(g,A,f):(g.stopAnimation(),g.attr(A)))}function s(f,p){if(O.isObject(f)&&O.isObject(p)){var g=!0;return O.each(p,function(A,y){g=g&&s(f[y],A)}),!!g}else return f===p}function t(f,p){f[p.get("label.show")?"show":"hide"]()}function a(f){return{position:f.position.slice(),rotation:f.rotation||0}}function l(f,p,g){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=g)})}E.enableClassExtend(n);var u=n;j.exports=u},"3OrL":function(j,P,d){var O=d("bYtY"),E=d("6Ic6"),C=d("IwbS"),v=d("y+Vt"),w=["itemStyle"],m=["emphasis","itemStyle"],h=E.extend({type:"boxplot",render:function(e,s,t){var a=e.getData(),l=this.group,u=this._data;this._data||l.removeAll();var f=e.get("layout")==="horizontal"?1:0;a.diff(u).add(function(p){if(a.hasValue(p)){var g=a.getItemLayout(p),A=i(g,a,p,f,!0);a.setItemGraphicEl(p,A),l.add(A)}}).update(function(p,g){var A=u.getItemGraphicEl(g);if(!a.hasValue(p)){l.remove(A);return}var y=a.getItemLayout(p);A?r(y,A,a,p):A=i(y,a,p,f),l.add(A),a.setItemGraphicEl(p,A)}).remove(function(p){var g=u.getItemGraphicEl(p);g&&l.remove(g)}).execute(),this._data=a},remove:function(e){var s=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(a){a&&s.remove(a)})},dispose:O.noop}),c=v.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,s){var t=s.points,a=0;for(e.moveTo(t[a][0],t[a][1]),a++;a<4;a++)e.lineTo(t[a][0],t[a][1]);for(e.closePath();a<t.length;a++)e.moveTo(t[a][0],t[a][1]),a++,e.lineTo(t[a][0],t[a][1])}});function i(e,s,t,a,l){var u=e.ends,f=new c({shape:{points:l?o(u,a,e):u}});return r(e,f,s,t,l),f}function r(e,s,t,a,l){var u=t.hostModel,f=C[l?"initProps":"updateProps"];f(s,{shape:{points:e.ends}},u,a);var p=t.getItemModel(a),g=p.getModel(w),A=t.getItemVisual(a,"color"),y=g.getItemStyle(["borderColor"]);y.stroke=A,y.strokeNoScale=!0,s.useStyle(y),s.z2=100;var x=p.getModel(m).getItemStyle();C.setHoverStyle(s,x)}function o(e,s,t){return O.map(e,function(a){return a=a.slice(),a[s]=t.initBaseline,a})}var n=h;j.exports=n},"3S7+":function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("J4zp"),v=d.n(C),w=d("pVnL"),m=d.n(w),h=d("q1tI"),c=d.n(h),i=d("U8pU"),r=d("VTBJ"),o=d("Ff2n"),n=d("1OyB"),e=d("vuIU"),s=d("JX7q"),t=d("Ji7U"),a=d("LK+K"),l=d("i8i4"),u=d.n(l),f=d("l4aY"),p=d("m+aA"),g=d("c+Xe"),A=d("zT1h"),y=d("QC+M"),x=d("TSYQ"),T=d.n(x);function S(Ln,Vn,kt){return kt?Ln[0]===Vn[0]:Ln[0]===Vn[0]&&Ln[1]===Vn[1]}function b(Ln,Vn,kt){var wt=Ln[Vn]||{};return Object(r.a)(Object(r.a)({},wt),kt)}function _(Ln,Vn,kt,wt){for(var Te=kt.points,xe=Object.keys(Ln),Ce=0;Ce<xe.length;Ce+=1){var Ye=xe[Ce];if(S(Ln[Ye].points,Te,wt))return"".concat(Vn,"-placement-").concat(Ye)}return""}var I=d("xEkU"),L=d.n(I),D=d("9mu1"),N=d("rePB"),M=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function B(Ln,Vn){var kt={};return kt[Ln.toLowerCase()]=Vn.toLowerCase(),kt["Webkit".concat(Ln)]="webkit".concat(Vn),kt["Moz".concat(Ln)]="moz".concat(Vn),kt["ms".concat(Ln)]="MS".concat(Vn),kt["O".concat(Ln)]="o".concat(Vn.toLowerCase()),kt}function R(Ln,Vn){var kt={animationend:B("Animation","AnimationEnd"),transitionend:B("Transition","TransitionEnd")};return Ln&&("AnimationEvent"in Vn||delete kt.animationend.animation,"TransitionEvent"in Vn||delete kt.transitionend.transition),kt}var H=R(M,typeof window!="undefined"?window:{}),F={};if(M){var K=document.createElement("div");F=K.style}var U={};function V(Ln){if(U[Ln])return U[Ln];var Vn=H[Ln];if(Vn)for(var kt=Object.keys(Vn),wt=kt.length,Te=0;Te<wt;Te+=1){var xe=kt[Te];if(Object.prototype.hasOwnProperty.call(Vn,xe)&&xe in F)return U[Ln]=Vn[xe],U[Ln]}return""}var z=V("animationend"),Y=V("transitionend"),q=!!(z&&Y);function ce(Ln,Vn){if(!Ln)return null;if(Object(i.a)(Ln)==="object"){var kt=Vn.replace(/-\w/g,function(wt){return wt[1].toUpperCase()});return Ln[kt]}return"".concat(Ln,"-").concat(Vn)}var ie="none",ve="appear",Ee="enter",Le="leave";function He(Ln){var Vn=Ln,kt=!!h.forwardRef;Object(i.a)(Ln)==="object"&&(Vn=Ln.transitionSupport,kt="forwardRef"in Ln?Ln.forwardRef:kt);function wt(xe){return!!(xe.motionName&&Vn)}var Te=function(xe){Object(t.a)(Ye,xe);var Ce=Object(a.a)(Ye);function Ye(){var it;return Object(n.a)(this,Ye),it=Ce.apply(this,arguments),it.$cacheEle=null,it.node=null,it.raf=null,it.destroyed=!1,it.deadlineId=null,it.state={status:ie,statusActive:!1,newStatus:!1,statusStyle:null},it.onDomUpdate=function(){var dt=it.state,_t=dt.status,vr=dt.newStatus,kr=it.props,mn=kr.onAppearStart,Mt=kr.onEnterStart,nt=kr.onLeaveStart,st=kr.onAppearActive,Xt=kr.onEnterActive,Dt=kr.onLeaveActive,St=kr.motionAppear,jt=kr.motionEnter,At=kr.motionLeave;if(!wt(it.props))return;var Ft=it.getElement();it.$cacheEle!==Ft&&(it.removeEventListener(it.$cacheEle),it.addEventListener(Ft),it.$cacheEle=Ft),vr&&_t===ve&&St?it.updateStatus(mn,null,null,function(){it.updateActiveStatus(st,ve)}):vr&&_t===Ee&&jt?it.updateStatus(Mt,null,null,function(){it.updateActiveStatus(Xt,Ee)}):vr&&_t===Le&&At&&it.updateStatus(nt,null,null,function(){it.updateActiveStatus(Dt,Le)})},it.onMotionEnd=function(dt){if(dt&&!dt.deadline&&dt.target!==it.getElement())return;var _t=it.state,vr=_t.status,kr=_t.statusActive,mn=it.props,Mt=mn.onAppearEnd,nt=mn.onEnterEnd,st=mn.onLeaveEnd;vr===ve&&kr?it.updateStatus(Mt,{status:ie},dt):vr===Ee&&kr?it.updateStatus(nt,{status:ie},dt):vr===Le&&kr&&it.updateStatus(st,{status:ie},dt)},it.setNodeRef=function(dt){var _t=it.props.internalRef;it.node=dt,Object(g.b)(_t,dt)},it.getElement=function(){try{return Object(p.a)(it.node||Object(s.a)(it))}catch(dt){return it.$cacheEle}},it.addEventListener=function(dt){if(!dt)return;dt.addEventListener(Y,it.onMotionEnd),dt.addEventListener(z,it.onMotionEnd)},it.removeEventListener=function(dt){if(!dt)return;dt.removeEventListener(Y,it.onMotionEnd),dt.removeEventListener(z,it.onMotionEnd)},it.updateStatus=function(dt,_t,vr,kr){var mn=dt?dt(it.getElement(),vr):null;if(mn===!1||it.destroyed)return;var Mt;kr&&(Mt=function(){it.nextFrame(kr)}),it.setState(Object(r.a)({statusStyle:Object(i.a)(mn)==="object"?mn:null,newStatus:!1},_t),Mt)},it.updateActiveStatus=function(dt,_t){it.nextFrame(function(){var vr=it.state.status;if(vr!==_t)return;var kr=it.props.motionDeadline;it.updateStatus(dt,{statusActive:!0}),kr>0&&(it.deadlineId=setTimeout(function(){it.onMotionEnd({deadline:!0})},kr))})},it.nextFrame=function(dt){it.cancelNextFrame(),it.raf=L()(dt)},it.cancelNextFrame=function(){it.raf&&(L.a.cancel(it.raf),it.raf=null)},it}return Object(e.a)(Ye,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var dt,_t=this.state,vr=_t.status,kr=_t.statusActive,mn=_t.statusStyle,Mt=this.props,nt=Mt.children,st=Mt.motionName,Xt=Mt.visible,Dt=Mt.removeOnLeave,St=Mt.leavedClassName,jt=Mt.eventProps;return nt?vr===ie||!wt(this.props)?Xt?nt(Object(r.a)({},jt),this.setNodeRef):Dt?null:nt(Object(r.a)(Object(r.a)({},jt),{},{className:St}),this.setNodeRef):nt(Object(r.a)(Object(r.a)({},jt),{},{className:T()(ce(st,vr),(dt={},Object(N.a)(dt,ce(st,"".concat(vr,"-active")),kr),Object(N.a)(dt,st,typeof st=="string"),dt)),style:mn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(dt,_t){var vr=_t.prevProps,kr=_t.status;if(!wt(dt))return{};var mn=dt.visible,Mt=dt.motionAppear,nt=dt.motionEnter,st=dt.motionLeave,Xt=dt.motionLeaveImmediately,Dt={prevProps:dt};return(kr===ve&&!Mt||kr===Ee&&!nt||kr===Le&&!st)&&(Dt.status=ie,Dt.statusActive=!1,Dt.newStatus=!1),!vr&&mn&&Mt&&(Dt.status=ve,Dt.statusActive=!1,Dt.newStatus=!0),vr&&!vr.visible&&mn&&nt&&(Dt.status=Ee,Dt.statusActive=!1,Dt.newStatus=!0),(vr&&vr.visible&&!mn&&st||!vr&&Xt&&!mn&&st)&&(Dt.status=Le,Dt.statusActive=!1,Dt.newStatus=!0),Dt}}]),Ye}(h.Component);return Te.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},kt?h.forwardRef(function(xe,Ce){return h.createElement(Te,Object.assign({internalRef:Ce},xe))}):Te}var ge=He(q),Fe="add",Q="keep",fe="remove",Je="removed";function ne(Ln){var Vn;return Ln&&Object(i.a)(Ln)==="object"&&"key"in Ln?Vn=Ln:Vn={key:Ln},Object(r.a)(Object(r.a)({},Vn),{},{key:String(Vn.key)})}function X(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ln.map(ne)}function G(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=[],wt=0,Te=Vn.length,xe=X(Ln),Ce=X(Vn);xe.forEach(function(dt){for(var _t=!1,vr=wt;vr<Te;vr+=1){var kr=Ce[vr];if(kr.key===dt.key){wt<vr&&(kt=kt.concat(Ce.slice(wt,vr).map(function(mn){return Object(r.a)(Object(r.a)({},mn),{},{status:Fe})})),wt=vr),kt.push(Object(r.a)(Object(r.a)({},kr),{},{status:Q})),wt+=1,_t=!0;break}}_t||kt.push(Object(r.a)(Object(r.a)({},dt),{},{status:fe}))}),wt<Te&&(kt=kt.concat(Ce.slice(wt).map(function(dt){return Object(r.a)(Object(r.a)({},dt),{},{status:Fe})})));var Ye={};kt.forEach(function(dt){var _t=dt.key;Ye[_t]=(Ye[_t]||0)+1});var it=Object.keys(Ye).filter(function(dt){return Ye[dt]>1});return it.forEach(function(dt){kt=kt.filter(function(_t){var vr=_t.key,kr=_t.status;return vr!==dt||kr!==fe}),kt.forEach(function(_t){_t.key===dt&&(_t.status=Q)})}),kt}var te=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function we(Ln){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge,kt=function(wt){Object(t.a)(xe,wt);var Te=Object(a.a)(xe);function xe(){var Ce;return Object(n.a)(this,xe),Ce=Te.apply(this,arguments),Ce.state={keyEntities:[]},Ce.removeKey=function(Ye){Ce.setState(function(it){var dt=it.keyEntities;return{keyEntities:dt.map(function(_t){return _t.key!==Ye?_t:Object(r.a)(Object(r.a)({},_t),{},{status:Je})})}})},Ce}return Object(e.a)(xe,[{key:"render",value:function(){var Ye=this,it=this.state.keyEntities,dt=this.props,_t=dt.component,vr=dt.children,kr=Object(o.a)(dt,["component","children"]),mn=_t||h.Fragment,Mt={};return te.forEach(function(nt){Mt[nt]=kr[nt],delete kr[nt]}),delete kr.keys,h.createElement(mn,Object.assign({},kr),it.map(function(nt){var st=nt.status,Xt=Object(o.a)(nt,["status"]),Dt=st===Fe||st===Q;return h.createElement(Vn,Object.assign({},Mt,{key:Xt.key,visible:Dt,eventProps:Xt,onLeaveEnd:function(){Mt.onLeaveEnd&&Mt.onLeaveEnd.apply(Mt,arguments),Ye.removeKey(Xt.key)}}),vr)}))}}],[{key:"getDerivedStateFromProps",value:function(Ye,it){var dt=Ye.keys,_t=it.keyEntities,vr=X(dt);if(!Ln)return{keyEntities:vr.map(function(Mt){return Object(r.a)(Object(r.a)({},Mt),{},{status:Q})})};var kr=G(_t,vr),mn=_t.length;return{keyEntities:kr.filter(function(Mt){for(var nt=null,st=0;st<mn;st+=1){var Xt=_t[st];if(Xt.key===Mt.key){nt=Xt;break}}return!(nt&&nt.status===Je&&Mt.status===fe)})}}}]),xe}(h.Component);return kt.defaultProps={component:"div"},kt}var he=we(q),Pe=ge,Oe=function(Vn,kt){var wt=Vn.prefixCls,Te=Vn.className,xe=Vn.style,Ce=Vn.children,Ye=Vn.onMouseEnter,it=Vn.onMouseLeave,dt=Vn.onMouseDown,_t=Vn.onTouchStart,vr=Ce;return h.Children.count(Ce)>1&&(vr=h.createElement("div",{className:"".concat(wt,"-content")},Ce)),h.createElement("div",{ref:kt,className:Te,onMouseEnter:Ye,onMouseLeave:it,onMouseDown:dt,onTouchStart:_t,style:xe},vr)},le=h.forwardRef(Oe);le.displayName="PopupInner";var me=le;function _e(Ln){var Vn=Ln.prefixCls,kt=Ln.motion,wt=Ln.animation,Te=Ln.transitionName;return kt||(wt?{motionName:"".concat(Vn,"-").concat(wt)}:Te?{motionName:Te}:null)}function $e(Ln){return Ln&&Ln.motionName}var gt=function(Ln){Object(t.a)(kt,Ln);var Vn=Object(a.a)(kt);function kt(){var wt;return Object(n.a)(this,kt),wt=Vn.apply(this,arguments),wt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},wt.popupRef=c.a.createRef(),wt.alignRef=c.a.createRef(),wt.nextFrameState=null,wt.nextFrameId=null,wt.onAlign=function(Te,xe){var Ce=wt.state.status,Ye=wt.props,it=Ye.getClassNameFromAlign,dt=Ye.onAlign,_t=it(xe);Ce==="align"?wt.setState({alignClassName:_t,status:"aligned"},function(){wt.alignRef.current.forceAlign()}):Ce==="aligned"?(wt.setState({alignClassName:_t,status:"afterAlign"}),dt(Te,xe)):wt.setState({alignClassName:_t})},wt.onMotionEnd=function(){var Te=wt.props.visible;wt.setState({status:Te?"AfterMotion":"stable",inMotion:!1})},wt.setStateOnNextFrame=function(Te){wt.cancelFrameState(),wt.nextFrameState=Object(r.a)(Object(r.a)({},wt.nextFrameState),Te),wt.nextFrameId=L()(function(){var xe=Object(r.a)({},wt.nextFrameState);wt.nextFrameState=null,wt.setState(xe)})},wt.getMotion=function(){return Object(r.a)({},_e(wt.props))},wt.getAlignTarget=function(){var Te=wt.props,xe=Te.point,Ce=Te.getRootDomNode;return xe||Ce},wt.cancelFrameState=function(){L.a.cancel(wt.nextFrameId)},wt.renderPopupElement=function(){var Te=wt.state,xe=Te.status,Ce=Te.targetHeight,Ye=Te.targetWidth,it=Te.alignClassName,dt=wt.props,_t=dt.prefixCls,vr=dt.className,kr=dt.style,mn=dt.stretch,Mt=dt.visible,nt=dt.align,st=dt.destroyPopupOnHide,Xt=dt.onMouseEnter,Dt=dt.onMouseLeave,St=dt.onMouseDown,jt=dt.onTouchStart,At=dt.children,Ft=T()(_t,vr,it),wr="".concat(_t,"-hidden"),sr={};mn&&(mn.indexOf("height")!==-1?sr.height=Ce:mn.indexOf("minHeight")!==-1&&(sr.minHeight=Ce),mn.indexOf("width")!==-1?sr.width=Ye:mn.indexOf("minWidth")!==-1&&(sr.minWidth=Ye));var mr=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},sr),wt.getZIndexStyle()),kr),{},{opacity:xe==="stable"||!Mt?void 0:0,pointerEvents:xe==="stable"||!Mt?void 0:"none"}),$r=wt.getMotion(),rn=Mt;Mt&&xe!=="beforeMotion"&&xe!=="motion"&&xe!=="stable"&&($r.motionAppear=!1,$r.motionEnter=!1,$r.motionLeave=!1),(xe==="afterAlign"||xe==="beforeMotion")&&(rn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ui){var yi=$r==null?void 0:$r[ui];$r[ui]=function(){for(var Ii=arguments.length,Gi=new Array(Ii),Qe=0;Qe<Ii;Qe++)Gi[Qe]=arguments[Qe];yi==null||yi.apply(void 0,Gi),wt.setState({inMotion:!0})}});var jn=!Mt||xe!=="align"&&xe!=="aligned"&&xe!=="stable",Un=!0;return xe==="stable"&&(Un=Mt),st&&!Un?null:c.a.createElement(Pe,Object.assign({visible:rn},$r,{removeOnLeave:!1,onEnterEnd:wt.onMotionEnd,onLeaveEnd:wt.onMotionEnd,leavedClassName:wr}),function(ui,yi){var Ii=ui.style,Gi=ui.className;return c.a.createElement(D.a,{target:wt.getAlignTarget(),key:"popup",ref:wt.alignRef,monitorWindowResize:!0,disabled:jn,align:nt,onAlign:wt.onAlign},c.a.createElement(me,{prefixCls:_t,className:T()(Ft,Gi),ref:Object(g.a)(yi,wt.popupRef),onMouseEnter:Xt,onMouseLeave:Dt,onMouseDown:St,onTouchStart:jt,style:Object(r.a)(Object(r.a)({},mr),Ii)},At))})},wt.renderMaskElement=function(){var Te=wt.props,xe=Te.mask,Ce=Te.maskMotion,Ye=Te.maskTransitionName,it=Te.maskAnimation,dt=Te.prefixCls,_t=Te.visible;if(!xe)return null;var vr={};return Ce&&Ce.motionName&&(vr=Object(r.a)({motionAppear:!0},_e({motion:Ce,prefixCls:dt,transitionName:Ye,animation:it}))),c.a.createElement(Pe,Object.assign({},vr,{visible:_t,removeOnLeave:!0}),function(kr){var mn=kr.className;return c.a.createElement("div",{style:wt.getZIndexStyle(),key:"mask",className:T()("".concat(dt,"-mask"),mn)})})},wt}return Object(e.a)(kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this.state.status,xe=this.props,Ce=xe.getRootDomNode,Ye=xe.visible,it=xe.stretch;if(this.cancelFrameState(),Ye&&Te!=="stable")switch(Te){case null:{this.setStateOnNextFrame({status:it?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:$e(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var dt=["measure","align",null,"beforeMotion","motion"],_t=dt.indexOf(Te),vr=dt[_t+1];_t!==-1&&vr&&this.setStateOnNextFrame({status:vr})}}if(Te==="measure"){var kr=Ce();kr&&this.setStateOnNextFrame({targetHeight:kr.offsetHeight,targetWidth:kr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Te=this.props.zIndex;return{zIndex:Te}}},{key:"render",value:function(){return c.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Te,xe){var Ce=Te.visible,Ye=Object(o.a)(Te,["visible"]),it=xe.prevVisible,dt=xe.status,_t=xe.inMotion,vr={prevVisible:Ce,status:dt},kr=_e(Ye);return it===null&&Ce===!1?(vr.status="stable",vr.inMotion=!1):Ce!==it&&(vr.inMotion=!1,Ce||$e(kr)&&_t?vr.status=null:vr.status="stable",Ce&&(vr.alignClassName=null)),vr}}]),kt}(h.Component),et=gt,Ie=h.createContext(null),rt=Ie;function Ge(){}function vt(){return""}function Ot(){return window.document}var Et=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Tt(Ln){var Vn=function(kt){Object(t.a)(Te,kt);var wt=Object(a.a)(Te);function Te(xe){var Ce;Object(n.a)(this,Te),Ce=wt.call(this,xe),Ce.popupRef=c.a.createRef(),Ce.triggerRef=c.a.createRef(),Ce.onMouseEnter=function(it){var dt=Ce.props.mouseEnterDelay;Ce.fireEvents("onMouseEnter",it),Ce.delaySetPopupVisible(!0,dt,dt?null:it)},Ce.onMouseMove=function(it){Ce.fireEvents("onMouseMove",it),Ce.setPoint(it)},Ce.onMouseLeave=function(it){Ce.fireEvents("onMouseLeave",it),Ce.delaySetPopupVisible(!1,Ce.props.mouseLeaveDelay)},Ce.onPopupMouseEnter=function(){Ce.clearDelayTimer()},Ce.onPopupMouseLeave=function(it){if(it.relatedTarget&&!it.relatedTarget.setTimeout&&Ce.popupRef.current&&Ce.popupRef.current.popupRef.current&&Object(f.a)(Ce.popupRef.current.popupRef.current,it.relatedTarget))return;Ce.delaySetPopupVisible(!1,Ce.props.mouseLeaveDelay)},Ce.onFocus=function(it){Ce.fireEvents("onFocus",it),Ce.clearDelayTimer(),Ce.isFocusToShow()&&(Ce.focusTime=Date.now(),Ce.delaySetPopupVisible(!0,Ce.props.focusDelay))},Ce.onMouseDown=function(it){Ce.fireEvents("onMouseDown",it),Ce.preClickTime=Date.now()},Ce.onTouchStart=function(it){Ce.fireEvents("onTouchStart",it),Ce.preTouchTime=Date.now()},Ce.onBlur=function(it){Ce.fireEvents("onBlur",it),Ce.clearDelayTimer(),Ce.isBlurToHide()&&Ce.delaySetPopupVisible(!1,Ce.props.blurDelay)},Ce.onContextMenu=function(it){it.preventDefault(),Ce.fireEvents("onContextMenu",it),Ce.setPopupVisible(!0,it)},Ce.onContextMenuClose=function(){Ce.isContextMenuToShow()&&Ce.close()},Ce.onClick=function(it){if(Ce.fireEvents("onClick",it),Ce.focusTime){var dt;if(Ce.preClickTime&&Ce.preTouchTime?dt=Math.min(Ce.preClickTime,Ce.preTouchTime):Ce.preClickTime?dt=Ce.preClickTime:Ce.preTouchTime&&(dt=Ce.preTouchTime),Math.abs(dt-Ce.focusTime)<20)return;Ce.focusTime=0}Ce.preClickTime=0,Ce.preTouchTime=0,Ce.isClickToShow()&&(Ce.isClickToHide()||Ce.isBlurToHide())&&it&&it.preventDefault&&it.preventDefault();var _t=!Ce.state.popupVisible;(Ce.isClickToHide()&&!_t||_t&&Ce.isClickToShow())&&Ce.setPopupVisible(!Ce.state.popupVisible,it)},Ce.onPopupMouseDown=function(){if(Ce.hasPopupMouseDown=!0,clearTimeout(Ce.mouseDownTimeout),Ce.mouseDownTimeout=window.setTimeout(function(){Ce.hasPopupMouseDown=!1},0),Ce.context){var it;(it=Ce.context).onPopupMouseDown.apply(it,arguments)}},Ce.onDocumentClick=function(it){if(Ce.props.mask&&!Ce.props.maskClosable)return;var dt=it.target,_t=Ce.getRootDomNode(),vr=Ce.getPopupDomNode();!Object(f.a)(_t,dt)&&!Object(f.a)(vr,dt)&&!Ce.hasPopupMouseDown&&Ce.close()},Ce.getRootDomNode=function(){var it=Ce.props.getTriggerDOMNode;if(it)return it(Ce.triggerRef.current);try{var dt=Object(p.a)(Ce.triggerRef.current);if(dt)return dt}catch(_t){}return u.a.findDOMNode(Object(s.a)(Ce))},Ce.getPopupClassNameFromAlign=function(it){var dt=[],_t=Ce.props,vr=_t.popupPlacement,kr=_t.builtinPlacements,mn=_t.prefixCls,Mt=_t.alignPoint,nt=_t.getPopupClassNameFromAlign;return vr&&kr&&dt.push(_(kr,mn,it,Mt)),nt&&dt.push(nt(it)),dt.join(" ")},Ce.getComponent=function(){var it=Ce.props,dt=it.prefixCls,_t=it.destroyPopupOnHide,vr=it.popupClassName,kr=it.onPopupAlign,mn=it.popupMotion,Mt=it.popupAnimation,nt=it.popupTransitionName,st=it.popupStyle,Xt=it.mask,Dt=it.maskAnimation,St=it.maskTransitionName,jt=it.maskMotion,At=it.zIndex,Ft=it.popup,wr=it.stretch,sr=it.alignPoint,mr=Ce.state,$r=mr.popupVisible,rn=mr.point,jn=Ce.getPopupAlign(),Un={};return Ce.isMouseEnterToShow()&&(Un.onMouseEnter=Ce.onPopupMouseEnter),Ce.isMouseLeaveToHide()&&(Un.onMouseLeave=Ce.onPopupMouseLeave),Un.onMouseDown=Ce.onPopupMouseDown,Un.onTouchStart=Ce.onPopupMouseDown,c.a.createElement(et,Object.assign({prefixCls:dt,destroyPopupOnHide:_t,visible:$r,point:sr&&rn,className:vr,align:jn,onAlign:kr,animation:Mt,getClassNameFromAlign:Ce.getPopupClassNameFromAlign},Un,{stretch:wr,getRootDomNode:Ce.getRootDomNode,style:st,mask:Xt,zIndex:At,transitionName:nt,maskAnimation:Dt,maskTransitionName:St,maskMotion:jt,ref:Ce.popupRef,motion:mn}),typeof Ft=="function"?Ft():Ft)},Ce.getContainer=function(){var it=Object(s.a)(Ce),dt=it.props,_t=document.createElement("div");_t.style.position="absolute",_t.style.top="0",_t.style.left="0",_t.style.width="100%";var vr=dt.getPopupContainer?dt.getPopupContainer(Ce.getRootDomNode()):dt.getDocument().body;return vr.appendChild(_t),_t},Ce.setPoint=function(it){var dt=Ce.props.alignPoint;if(!dt||!it)return;Ce.setState({point:{pageX:it.pageX,pageY:it.pageY}})},Ce.handlePortalUpdate=function(){Ce.state.prevPopupVisible!==Ce.state.popupVisible&&Ce.props.afterPopupVisibleChange(Ce.state.popupVisible)};var Ye;return"popupVisible"in xe?Ye=!!xe.popupVisible:Ye=!!xe.defaultPopupVisible,Ce.state={prevPopupVisible:Ye,popupVisible:Ye},Et.forEach(function(it){Ce["fire".concat(it)]=function(dt){Ce.fireEvents(it,dt)}}),Ce}return Object(e.a)(Te,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ce=this.props,Ye=this.state;if(Ye.popupVisible){var it;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(it=Ce.getDocument(),this.clickOutsideHandler=Object(A.a)(it,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(it=it||Ce.getDocument(),this.touchOutsideHandler=Object(A.a)(it,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(it=it||Ce.getDocument(),this.contextMenuOutsideHandler1=Object(A.a)(it,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(A.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Ce=this.props,Ye=Ce.popupPlacement,it=Ce.popupAlign,dt=Ce.builtinPlacements;return Ye&&dt?b(dt,Ye,it):it}},{key:"setPopupVisible",value:function(Ce,Ye){var it=this.props.alignPoint,dt=this.state.popupVisible;this.clearDelayTimer(),dt!==Ce&&("popupVisible"in this.props||this.setState({popupVisible:Ce,prevPopupVisible:dt}),this.props.onPopupVisibleChange(Ce)),it&&Ye&&this.setPoint(Ye)}},{key:"delaySetPopupVisible",value:function(Ce,Ye,it){var dt=this,_t=Ye*1e3;if(this.clearDelayTimer(),_t){var vr=it?{pageX:it.pageX,pageY:it.pageY}:null;this.delayTimer=window.setTimeout(function(){dt.setPopupVisible(Ce,vr),dt.clearDelayTimer()},_t)}else this.setPopupVisible(Ce,it)}},{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(Ce){var Ye=this.props.children.props,it=this.props;return Ye[Ce]&&it[Ce]?this["fire".concat(Ce)]:Ye[Ce]||it[Ce]}},{key:"isClickToShow",value:function(){var Ce=this.props,Ye=Ce.action,it=Ce.showAction;return Ye.indexOf("click")!==-1||it.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Ce=this.props,Ye=Ce.action,it=Ce.showAction;return Ye.indexOf("contextMenu")!==-1||it.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ce=this.props,Ye=Ce.action,it=Ce.hideAction;return Ye.indexOf("click")!==-1||it.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ce=this.props,Ye=Ce.action,it=Ce.showAction;return Ye.indexOf("hover")!==-1||it.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ce=this.props,Ye=Ce.action,it=Ce.hideAction;return Ye.indexOf("hover")!==-1||it.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ce=this.props,Ye=Ce.action,it=Ce.showAction;return Ye.indexOf("focus")!==-1||it.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ce=this.props,Ye=Ce.action,it=Ce.hideAction;return Ye.indexOf("focus")!==-1||it.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Ce,Ye){var it=this.props.children.props[Ce];it&&it(Ye);var dt=this.props[Ce];dt&&dt(Ye)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ce=this.state.popupVisible,Ye=this.props,it=Ye.children,dt=Ye.forceRender,_t=Ye.alignPoint,vr=Ye.className,kr=Ye.autoDestroy,mn=c.a.Children.only(it),Mt={key:"trigger"};this.isContextMenuToShow()?Mt.onContextMenu=this.onContextMenu:Mt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Mt.onClick=this.onClick,Mt.onMouseDown=this.onMouseDown,Mt.onTouchStart=this.onTouchStart):(Mt.onClick=this.createTwoChains("onClick"),Mt.onMouseDown=this.createTwoChains("onMouseDown"),Mt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Mt.onMouseEnter=this.onMouseEnter,_t&&(Mt.onMouseMove=this.onMouseMove)):Mt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Mt.onMouseLeave=this.onMouseLeave:Mt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Mt.onFocus=this.onFocus,Mt.onBlur=this.onBlur):(Mt.onFocus=this.createTwoChains("onFocus"),Mt.onBlur=this.createTwoChains("onBlur"));var nt=T()(mn&&mn.props&&mn.props.className,vr);nt&&(Mt.className=nt);var st=Object(r.a)({},Mt);Object(g.c)(mn)&&(st.ref=Object(g.a)(this.triggerRef,mn.ref));var Xt=c.a.cloneElement(mn,st),Dt;return(Ce||this.popupRef.current||dt)&&(Dt=c.a.createElement(Ln,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ce&&kr&&(Dt=null),c.a.createElement(rt.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Xt,Dt)}}],[{key:"getDerivedStateFromProps",value:function(Ce,Ye){var it=Ce.popupVisible,dt={};return it!==void 0&&Ye.popupVisible!==it&&(dt.popupVisible=it,dt.prevPopupVisible=Ye.popupVisible),dt}}]),Te}(c.a.Component);return Vn.contextType=rt,Vn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:vt,getDocument:Ot,onPopupVisibleChange:Ge,afterPopupVisibleChange:Ge,onPopupAlign:Ge,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Vn}var Rt=Tt(y.a),Be={adjustX:1,adjustY:1},Z=[0,0],J={left:{points:["cr","cl"],overflow:Be,offset:[-4,0],targetOffset:Z},right:{points:["cl","cr"],overflow:Be,offset:[4,0],targetOffset:Z},top:{points:["bc","tc"],overflow:Be,offset:[0,-4],targetOffset:Z},bottom:{points:["tc","bc"],overflow:Be,offset:[0,4],targetOffset:Z},topLeft:{points:["bl","tl"],overflow:Be,offset:[0,-4],targetOffset:Z},leftTop:{points:["tr","tl"],overflow:Be,offset:[-4,0],targetOffset:Z},topRight:{points:["br","tr"],overflow:Be,offset:[0,-4],targetOffset:Z},rightTop:{points:["tl","tr"],overflow:Be,offset:[4,0],targetOffset:Z},bottomRight:{points:["tr","br"],overflow:Be,offset:[0,4],targetOffset:Z},rightBottom:{points:["bl","br"],overflow:Be,offset:[4,0],targetOffset:Z},bottomLeft:{points:["tl","bl"],overflow:Be,offset:[0,4],targetOffset:Z},leftBottom:{points:["br","bl"],overflow:Be,offset:[-4,0],targetOffset:Z}},je=J,Re=function(Vn){var kt=Vn.overlay,wt=Vn.prefixCls,Te=Vn.id,xe=Vn.overlayInnerStyle;return h.createElement("div",{className:"".concat(wt,"-inner"),id:Te,role:"tooltip",style:xe},typeof kt=="function"?kt():kt)},oe=Re,yt=function(Vn,kt){var wt=Vn.overlayClassName,Te=Vn.trigger,xe=Te===void 0?["hover"]:Te,Ce=Vn.mouseEnterDelay,Ye=Ce===void 0?0:Ce,it=Vn.mouseLeaveDelay,dt=it===void 0?.1:it,_t=Vn.overlayStyle,vr=Vn.prefixCls,kr=vr===void 0?"rc-tooltip":vr,mn=Vn.children,Mt=Vn.onVisibleChange,nt=Vn.afterVisibleChange,st=Vn.transitionName,Xt=Vn.animation,Dt=Vn.placement,St=Dt===void 0?"right":Dt,jt=Vn.align,At=jt===void 0?{}:jt,Ft=Vn.destroyTooltipOnHide,wr=Ft===void 0?!1:Ft,sr=Vn.defaultVisible,mr=Vn.getTooltipContainer,$r=Vn.overlayInnerStyle,rn=Object(o.a)(Vn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),jn=Object(h.useRef)(null);Object(h.useImperativeHandle)(kt,function(){return jn.current});var Un=Object(r.a)({},rn);"visible"in Vn&&(Un.popupVisible=Vn.visible);var ui=function(){var be=Vn.arrowContent,Ne=be===void 0?null:be,Ue=Vn.overlay,Xe=Vn.id;return[h.createElement("div",{className:"".concat(kr,"-arrow"),key:"arrow"},Ne),h.createElement(oe,{key:"content",prefixCls:kr,id:Xe,overlay:Ue,overlayInnerStyle:$r})]},yi=!1,Ii=!1;if(typeof wr=="boolean")yi=wr;else if(wr&&Object(i.a)(wr)==="object"){var Gi=wr.keepParent;yi=Gi===!0,Ii=Gi===!1}return h.createElement(Rt,Object.assign({popupClassName:wt,prefixCls:kr,popup:ui,action:xe,builtinPlacements:J,popupPlacement:St,ref:jn,popupAlign:At,getPopupContainer:mr,onPopupVisibleChange:Mt,afterPopupVisibleChange:nt,popupTransitionName:st,popupAnimation:Xt,defaultPopupVisible:sr,destroyPopupOnHide:yi,autoDestroy:Ii,mouseLeaveDelay:dt,popupStyle:_t,mouseEnterDelay:Ye},Un),mn)},zt=Object(h.forwardRef)(yt),lt=zt,$t={adjustX:1,adjustY:1},cr={adjustX:0,adjustY:0},cn=[0,0];function pr(Ln){return typeof Ln=="boolean"?Ln?$t:cr:m()(m()({},cr),Ln)}function gr(Ln){var Vn=Ln.arrowWidth,kt=Vn===void 0?5:Vn,wt=Ln.horizontalArrowShift,Te=wt===void 0?16:wt,xe=Ln.verticalArrowShift,Ce=xe===void 0?8:xe,Ye=Ln.autoAdjustOverflow,it={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:[-(Te+kt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Ce+kt)]},topRight:{points:["br","tc"],offset:[Te+kt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Ce+kt)]},bottomRight:{points:["tr","bc"],offset:[Te+kt,4]},rightBottom:{points:["bl","cr"],offset:[4,Ce+kt]},bottomLeft:{points:["tl","bc"],offset:[-(Te+kt),4]},leftBottom:{points:["br","cl"],offset:[-4,Ce+kt]}};return Object.keys(it).forEach(function(dt){it[dt]=Ln.arrowPointAtCenter?m()(m()({},it[dt]),{overflow:pr(Ye),targetOffset:cn}):m()(m()({},J[dt]),{overflow:pr(Ye)}),it[dt].ignoreShake=!0}),it}var Zt=d("0n0R"),Vt=d("H84U"),mt=d("09Wf"),Yr=function(Vn,kt){var wt={},Te=m()({},Vn);return kt.forEach(function(xe){Vn&&xe in Vn&&(wt[xe]=Vn[xe],delete Te[xe])}),{picked:wt,omitted:Te}},Tn=new RegExp("^(".concat(mt.a.join("|"),")(-inverse)?$"));function Hn(Ln,Vn){var kt=Ln.type;if((kt.__ANT_BUTTON===!0||kt.__ANT_SWITCH===!0||kt.__ANT_CHECKBOX===!0||Ln.type==="button")&&Ln.props.disabled){var wt=Yr(Ln.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Te=wt.picked,xe=wt.omitted,Ce=m()(m()({display:"inline-block"},Te),{cursor:"not-allowed",width:Ln.props.block?"100%":null}),Ye=m()(m()({},xe),{pointerEvents:"none"}),it=Object(Zt.a)(Ln,{style:Ye,className:null});return h.createElement("span",{style:Ce,className:T()(Ln.props.className,"".concat(Vn,"-disabled-compatible-wrapper"))},it)}return Ln}var ei=h.forwardRef(function(Ln,Vn){var kt,wt=h.useContext(Vt.b),Te=wt.getPopupContainer,xe=wt.getPrefixCls,Ce=wt.direction,Ye=h.useState(!!Ln.visible||!!Ln.defaultVisible),it=v()(Ye,2),dt=it[0],_t=it[1];h.useEffect(function(){"visible"in Ln&&_t(Ln.visible)},[Ln.visible]);var vr=function(){var Gi=Ln.title,Qe=Ln.overlay;return!Gi&&!Qe&&Gi!==0},kr=function(Gi){"visible"in Ln||_t(vr()?!1:Gi),Ln.onVisibleChange&&!vr()&&Ln.onVisibleChange(Gi)},mn=function(){var Gi=Ln.builtinPlacements,Qe=Ln.arrowPointAtCenter,be=Ln.autoAdjustOverflow;return Gi||gr({arrowPointAtCenter:Qe,autoAdjustOverflow:be})},Mt=function(Gi,Qe){var be=mn(),Ne=Object.keys(be).filter(function(ze){return be[ze].points[0]===Qe.points[0]&&be[ze].points[1]===Qe.points[1]})[0];if(!Ne)return;var Ue=Gi.getBoundingClientRect(),Xe={top:"50%",left:"50%"};Ne.indexOf("top")>=0||Ne.indexOf("Bottom")>=0?Xe.top="".concat(Ue.height-Qe.offset[1],"px"):(Ne.indexOf("Top")>=0||Ne.indexOf("bottom")>=0)&&(Xe.top="".concat(-Qe.offset[1],"px")),Ne.indexOf("left")>=0||Ne.indexOf("Right")>=0?Xe.left="".concat(Ue.width-Qe.offset[0],"px"):(Ne.indexOf("right")>=0||Ne.indexOf("Left")>=0)&&(Xe.left="".concat(-Qe.offset[0],"px")),Gi.style.transformOrigin="".concat(Xe.left," ").concat(Xe.top)},nt=function(){var Gi=Ln.title,Qe=Ln.overlay;return Gi===0?Gi:Qe||Gi||""},st=Ln.prefixCls,Xt=Ln.openClassName,Dt=Ln.getPopupContainer,St=Ln.getTooltipContainer,jt=Ln.overlayClassName,At=Ln.color,Ft=Ln.overlayInnerStyle,wr=Ln.children,sr=xe("tooltip",st),mr=dt;!("visible"in Ln)&&vr()&&(mr=!1);var $r=Hn(Object(Zt.b)(wr)?wr:h.createElement("span",null,wr),sr),rn=$r.props,jn=T()(rn.className,E()({},Xt||"".concat(sr,"-open"),!0)),Un=T()(jt,(kt={},E()(kt,"".concat(sr,"-rtl"),Ce==="rtl"),E()(kt,"".concat(sr,"-").concat(At),At&&Tn.test(At)),kt)),ui,yi;return At&&!Tn.test(At)&&(ui=m()(m()({},Ft),{background:At}),yi={background:At}),h.createElement(lt,m()({},Ln,{prefixCls:sr,overlayClassName:Un,getTooltipContainer:Dt||St||Te,ref:Vn,builtinPlacements:mn(),overlay:nt(),visible:mr,onVisibleChange:kr,onPopupAlign:Mt,overlayInnerStyle:ui,arrowContent:h.createElement("span",{className:"".concat(sr,"-arrow-content"),style:yi})}),mr?Object(Zt.a)($r,{className:jn}):$r)});ei.displayName="Tooltip",ei.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var ji=P.a=ei},"3TkU":function(j,P,d){d("aTJb"),d("OlYY"),d("fc+c"),d("QUw5"),d("Swgg"),d("LBfv"),d("noeP")},"3X6L":function(j,P,d){var O=d("bYtY"),E=d("7a+S"),C=d("OKJ2"),v=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:[]}});O.mixin(v,C);var w=v;j.exports=w},"3e3G":function(j,P,d){var O=d("bYtY"),E=d("QuXc"),C=function(m,h,c,i,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,i)};C.prototype={constructor:C},O.inherits(C,E);var v=C;j.exports=v},"3gBT":function(j,P){var d=2311;function O(){return d++}j.exports=O},"3hzK":function(j,P){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")}}};j.exports=d},"3m61":function(j,P){function d(E){return E instanceof Array||(E=[E,E]),E}function O(E){E.eachSeriesByType("graph",function(C){var v=C.getGraph(),w=C.getEdgeData(),m=d(C.get("edgeSymbol")),h=d(C.get("edgeSymbolSize")),c="lineStyle.color".split("."),i="lineStyle.opacity".split(".");w.setVisual("fromSymbol",m&&m[0]),w.setVisual("toSymbol",m&&m[1]),w.setVisual("fromSymbolSize",h&&h[0]),w.setVisual("toSymbolSize",h&&h[1]),w.setVisual("color",C.get(c)),w.setVisual("opacity",C.get(i)),w.each(function(r){var o=w.getItemModel(r),n=v.getEdgeByIndex(r),e=d(o.getShallow("symbol",!0)),s=d(o.getShallow("symbolSize",!0)),t=o.get(c),a=o.get(i);switch(t){case"source":t=n.node1.getVisual("color");break;case"target":t=n.node2.getVisual("color");break}e[0]&&n.setVisual("fromSymbol",e[0]),e[1]&&n.setVisual("toSymbol",e[1]),s[0]&&n.setVisual("fromSymbolSize",s[0]),s[1]&&n.setVisual("toSymbolSize",s[1]),n.setVisual("color",t),n.setVisual("opacity",a)})})}j.exports=O},"3ouR":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="CloseSquareOutlined";var h=P.a=E.forwardRef(m)},"3y9D":function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.WordArray,w=C.Hasher,m=E.algo,h=[],c=m.SHA1=w.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,o){for(var n=this._hash.words,e=n[0],s=n[1],t=n[2],a=n[3],l=n[4],u=0;u<80;u++){if(u<16)h[u]=r[o+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=(e<<5|e>>>27)+l+h[u];u<20?p+=(s&t|~s&a)+1518500249:u<40?p+=(s^t^a)+1859775393:u<60?p+=(s&t|s&a|t&a)-1894007588:p+=(s^t^a)-899497514,l=a,a=t,t=s<<30|s>>>2,s=e,e=p}n[0]=n[0]+e|0,n[1]=n[1]+s|0,n[2]=n[2]+t|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0},_doFinalize:function(){var r=this._data,o=r.words,n=this._nDataBytes*8,e=r.sigBytes*8;return o[e>>>5]|=128<<24-e%32,o[(e+64>>>9<<4)+14]=Math.floor(n/4294967296),o[(e+64>>>9<<4)+15]=n,r.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var r=w.clone.call(this);return r._hash=this._hash.clone(),r}});E.SHA1=w._createHelper(c),E.HmacSHA1=w._createHmacHelper(c)}(),O.SHA1})},"3zoK":function(j,P,d){var O=d("bYtY"),E=d("bLfw"),C=d("KCsZ"),v=d("nkfE"),w=d("OELB"),m=d("ICMv"),h=E.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return C([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(o){var n=this.activeIntervals=O.clone(o);if(n)for(var e=n.length-1;e>=0;e--)w.asc(n[e])},getActiveState:function(o){var n=this.activeIntervals;if(!n.length)return"normal";if(o==null||isNaN(o))return"inactive";if(n.length===1){var e=n[0];if(e[0]<=o&&o<=e[1])return"active"}else for(var s=0,t=n.length;s<t;s++)if(n[s][0]<=o&&o<=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};O.merge(h.prototype,m);function i(o,n){return n.type||(n.data?"category":"value")}v("parallel",h,i,c);var r=h;j.exports=r},"49sm":function(j,P){var d={}.toString;j.exports=Array.isArray||function(O){return d.call(O)=="[object Array]"}},"4Feb":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("IwbS"),w=d("x3X8"),m=w.getDefaultLabel,h=d("MwEJ"),c=d("nVfU"),i=c.getLayoutOnAxis,r=d("gPAo"),o=d("T4UG"),n=d("Qxkt"),e=d("6Ic6"),s=d("sK/D"),t=s.createClipPath,a=d("qj72"),l=d("ANjR"),u=d("MHtr"),f=d("6usn"),p=d("Rx6q"),g=v.CACHED_LABEL_STYLE_PROPERTIES,A=["itemStyle"],y=["emphasis","itemStyle"],x=["label"],T=["emphasis","label"],S="e\0\0",b={cartesian2d:a,geo:l,singleAxis:u,polar:f,calendar:p};o.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(ie,ve){return h(this.getSource(),this)},getDataParams:function(ie,ve,Ee){var Le=o.prototype.getDataParams.apply(this,arguments);return Ee&&(Le.info=Ee.info),Le}}),e.extend({type:"custom",_data:null,render:function(ie,ve,Ee,Le){var He=this._data,ge=ie.getData(),Fe=this.group,Q=D(ie,ge,ve,Ee);ge.diff(He).add(function(Je){M(null,Je,Q(Je,Le),ie,Fe,ge)}).update(function(Je,ne){var X=He.getItemGraphicEl(ne);M(X,Je,Q(Je,Le),ie,Fe,ge)}).remove(function(Je){var ne=He.getItemGraphicEl(Je);ne&&Fe.remove(ne)}).execute();var fe=ie.get("clip",!0)?t(ie.coordinateSystem,!1,ie):null;fe?Fe.setClipPath(fe):Fe.removeClipPath(),this._data=ge},incrementalPrepareRender:function(ie,ve,Ee){this.group.removeAll(),this._data=null},incrementalRender:function(ie,ve,Ee,Le,He){var ge=ve.getData(),Fe=D(ve,ge,Ee,Le);function Q(ne){ne.isGroup||(ne.incremental=!0,ne.useHoverLayer=!0)}for(var fe=ie.start;fe<ie.end;fe++){var Je=M(null,fe,Fe(fe,He),ve,this.group,ge);Je.traverse(Q)}},dispose:C.noop,filterForExposedEvent:function(ie,ve,Ee,Le){var He=ve.element;if(He==null||Ee.name===He)return!0;for(;(Ee=Ee.parent)&&Ee!==this.group;)if(Ee.name===He)return!0;return!1}});function _(ie){var ve=ie.type,Ee;if(ve==="path"){var Le=ie.shape,He=Le.width!=null&&Le.height!=null?{x:Le.x||0,y:Le.y||0,width:Le.width,height:Le.height}:null,ge=Y(Le);Ee=v.makePath(ge,null,He,Le.layout||"center"),Ee.__customPathData=ge}else if(ve==="image")Ee=new v.Image({}),Ee.__customImagePath=ie.style.image;else if(ve==="text")Ee=new v.Text({}),Ee.__customText=ie.style.text;else if(ve==="group")Ee=new v.Group;else{if(ve==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var Fe=v.getShapeClass(ve);Ee=new Fe}return Ee.__customGraphicType=ve,Ee.name=ie.name,Ee}function I(ie,ve,Ee,Le,He,ge,Fe){var Q={},fe=Ee.style||{};if(Ee.shape&&(Q.shape=C.clone(Ee.shape)),Ee.position&&(Q.position=Ee.position.slice()),Ee.scale&&(Q.scale=Ee.scale.slice()),Ee.origin&&(Q.origin=Ee.origin.slice()),Ee.rotation&&(Q.rotation=Ee.rotation),ie.type==="image"&&Ee.style){var Je=Q.style={};C.each(["x","y","width","height"],function(G){L(G,Je,fe,ie.style,ge)})}if(ie.type==="text"&&Ee.style){var Je=Q.style={};C.each(["x","y"],function(te){L(te,Je,fe,ie.style,ge)}),!fe.hasOwnProperty("textFill")&&fe.fill&&(fe.textFill=fe.fill),!fe.hasOwnProperty("textStroke")&&fe.stroke&&(fe.textStroke=fe.stroke)}if(ie.type!=="group"&&(ie.useStyle(fe),ge)){ie.style.opacity=0;var ne=fe.opacity;ne==null&&(ne=1),v.initProps(ie,{style:{opacity:ne}},Le,ve)}ge?ie.attr(Q):v.updateProps(ie,Q,Le,ve),Ee.hasOwnProperty("z2")&&ie.attr("z2",Ee.z2||0),Ee.hasOwnProperty("silent")&&ie.attr("silent",Ee.silent),Ee.hasOwnProperty("invisible")&&ie.attr("invisible",Ee.invisible),Ee.hasOwnProperty("ignore")&&ie.attr("ignore",Ee.ignore),Ee.hasOwnProperty("info")&&ie.attr("info",Ee.info);var X=Ee.styleEmphasis;v.setElementHoverStyle(ie,X),Fe&&v.setAsHighDownDispatcher(ie,X!==!1)}function L(ie,ve,Ee,Le,He){Ee[ie]!=null&&!He&&(ve[ie]=Ee[ie],Ee[ie]=Le[ie])}function D(ie,ve,Ee,Le){var He=ie.get("renderItem"),ge=ie.coordinateSystem,Fe={};ge&&(Fe=ge.prepareCustoms?ge.prepareCustoms():b[ge.type](ge));var Q=C.defaults({getWidth:Le.getWidth,getHeight:Le.getHeight,getZr:Le.getZr,getDevicePixelRatio:Le.getDevicePixelRatio,value:Pe,style:Oe,styleEmphasis:le,visual:me,barLayout:_e,currentSeriesIndices:$e,font:gt},Fe.api||{}),fe={context:{},seriesId:ie.id,seriesName:ie.name,seriesIndex:ie.seriesIndex,coordSys:Fe.coordSys,dataInsideLength:ve.count(),encode:N(ie.getData())},Je,ne=!0,X,G,te,we;return function(et,Ie){return Je=et,ne=!0,He&&He(C.defaults({dataIndexInside:et,dataIndex:ve.getRawIndex(et),actionType:Ie?Ie.type:null},fe),Q)};function he(et){et==null&&(et=Je),ne&&(X=ve.getItemModel(et),G=X.getModel(x),te=X.getModel(T),we=ve.getItemVisual(et,"color"),ne=!1)}function Pe(et,Ie){return Ie==null&&(Ie=Je),ve.get(ve.getDimension(et||0),Ie)}function Oe(et,Ie){Ie==null&&(Ie=Je),he(Ie);var rt=X.getModel(A).getItemStyle();we!=null&&(rt.fill=we);var Ge=ve.getItemVisual(Ie,"opacity");Ge!=null&&(rt.opacity=Ge);var vt=et?U(et,G):G;return v.setTextStyle(rt,vt,null,{autoColor:we,isRectText:!0}),rt.text=vt.getShallow("show")?C.retrieve2(ie.getFormattedLabel(Ie,"normal"),m(ve,Ie)):null,et&&V(rt,et),rt}function le(et,Ie){Ie==null&&(Ie=Je),he(Ie);var rt=X.getModel(y).getItemStyle(),Ge=et?U(et,te):te;return v.setTextStyle(rt,Ge,null,{isRectText:!0},!0),rt.text=Ge.getShallow("show")?C.retrieve3(ie.getFormattedLabel(Ie,"emphasis"),ie.getFormattedLabel(Ie,"normal"),m(ve,Ie)):null,et&&V(rt,et),rt}function me(et,Ie){return Ie==null&&(Ie=Je),ve.getItemVisual(Ie,et)}function _e(et){if(ge.getBaseAxis){var Ie=ge.getBaseAxis();return i(C.defaults({axis:Ie},et),Le)}}function $e(){return Ee.getCurrentSeriesIndices()}function gt(et){return v.getFont(et,Ee)}}function N(ie){var ve={};return C.each(ie.dimensions,function(Ee,Le){var He=ie.getDimensionInfo(Ee);if(!He.isExtraCoord){var ge=He.coordDim,Fe=ve[ge]=ve[ge]||[];Fe[He.coordDimIndex]=Le}}),ve}function M(ie,ve,Ee,Le,He,ge){return ie=B(ie,ve,Ee,Le,He,ge,!0),ie&&ge.setItemGraphicEl(ve,ie),ie}function B(ie,ve,Ee,Le,He,ge,Fe){var Q=!Ee;Ee=Ee||{};var fe=Ee.type,Je=Ee.shape,ne=Ee.style;if(ie&&(Q||fe!=null&&fe!==ie.__customGraphicType||fe==="path"&&q(Je)&&Y(Je)!==ie.__customPathData||fe==="image"&&ce(ne,"image")&&ne.image!==ie.__customImagePath||fe==="text"&&ce(Je,"text")&&ne.text!==ie.__customText)&&(He.remove(ie),ie=null),Q)return;var X=!ie;return!ie&&(ie=_(Ee)),I(ie,ve,Ee,Le,ge,X,Fe),fe==="group"&&R(ie,ve,Ee,Le,ge),He.add(ie),ie}function R(ie,ve,Ee,Le,He){var ge=Ee.children,Fe=ge?ge.length:0,Q=Ee.$mergeChildren,fe=Q==="byName"||Ee.diffChildrenByName,Je=Q===!1;if(!Fe&&!fe&&!Je)return;if(fe){H({oldChildren:ie.children()||[],newChildren:ge||[],dataIndex:ve,animatableModel:Le,group:ie,data:He});return}Je&&ie.removeAll();for(var ne=0;ne<Fe;ne++)ge[ne]&&B(ie.childAt(ne),ve,ge[ne],Le,ie,He)}function H(ie){new r(ie.oldChildren,ie.newChildren,F,F,ie).add(K).update(K).remove(z).execute()}function F(ie,ve){var Ee=ie&&ie.name;return Ee!=null?Ee:S+ve}function K(ie,ve){var Ee=this.context,Le=ie!=null?Ee.newChildren[ie]:null,He=ve!=null?Ee.oldChildren[ve]:null;B(He,Ee.dataIndex,Le,Ee.animatableModel,Ee.group,Ee.data)}function U(ie,ve){var Ee=new n({},ve);return C.each(g,function(Le,He){ie.hasOwnProperty(Le)&&(Ee.option[He]=ie[Le])}),Ee}function V(ie,ve){for(var Ee in ve)(ve.hasOwnProperty(Ee)||!g.hasOwnProperty(Ee))&&(ie[Ee]=ve[Ee])}function z(ie){var ve=this.context,Ee=ve.oldChildren[ie];Ee&&ve.group.remove(Ee)}function Y(ie){return ie&&(ie.pathData||ie.d)}function q(ie){return ie&&(ie.hasOwnProperty("pathData")||ie.hasOwnProperty("d"))}function ce(ie,ve){return ie&&ie.hasOwnProperty(ve)}},"4HMb":function(j,P,d){var O=d("bYtY"),E=d("6GrX"),C=d("4NO4"),v=C.makeInner,w=d("aX7z"),m=w.makeLabelFormatter,h=w.getOptionCategoryInterval,c=w.shouldShowAllLabels,i=v();function r(x){return x.type==="category"?n(x):t(x)}function o(x,T){return x.type==="category"?s(x,T):{ticks:x.scale.getTicks()}}function n(x){var T=x.getLabelModel(),S=e(x,T);return!T.get("show")||x.scale.isBlank()?{labels:[],labelCategoryInterval:S.labelCategoryInterval}:S}function e(x,T){var S=a(x,"labels"),b=h(T),_=l(S,b);if(_)return _;var I,L;return O.isFunction(b)?I=y(x,b):(L=b==="auto"?f(x):b,I=A(x,L)),u(S,b,{labels:I,labelCategoryInterval:L})}function s(x,T){var S=a(x,"ticks"),b=h(T),_=l(S,b);if(_)return _;var I,L;if((!T.get("show")||x.scale.isBlank())&&(I=[]),O.isFunction(b))I=y(x,b,!0);else if(b==="auto"){var D=e(x,x.getLabelModel());L=D.labelCategoryInterval,I=O.map(D.labels,function(N){return N.tickValue})}else L=b,I=A(x,L,!0);return u(S,b,{ticks:I,tickCategoryInterval:L})}function t(x){var T=x.scale.getTicks(),S=m(x);return{labels:O.map(T,function(b,_){return{formattedLabel:S(b,_),rawLabel:x.scale.getLabel(b),tickValue:b}})}}function a(x,T){return i(x)[T]||(i(x)[T]=[])}function l(x,T){for(var S=0;S<x.length;S++)if(x[S].key===T)return x[S].value}function u(x,T,S){return x.push({key:T,value:S}),S}function f(x){var T=i(x).autoInterval;return T!=null?T:i(x).autoInterval=x.calculateCategoryInterval()}function p(x){var T=g(x),S=m(x),b=(T.axisRotate-T.labelRotate)/180*Math.PI,_=x.scale,I=_.getExtent(),L=_.count();if(I[1]-I[0]<1)return 0;var D=1;L>40&&(D=Math.max(1,Math.floor(L/40)));for(var N=I[0],M=x.dataToCoord(N+1)-x.dataToCoord(N),B=Math.abs(M*Math.cos(b)),R=Math.abs(M*Math.sin(b)),H=0,F=0;N<=I[1];N+=D){var K=0,U=0,V=E.getBoundingRect(S(N),T.font,"center","top");K=V.width*1.3,U=V.height*1.3,H=Math.max(H,K,7),F=Math.max(F,U,7)}var z=H/B,Y=F/R;isNaN(z)&&(z=Infinity),isNaN(Y)&&(Y=Infinity);var q=Math.max(0,Math.floor(Math.min(z,Y))),ce=i(x.model),ie=x.getExtent(),ve=ce.lastAutoInterval,Ee=ce.lastTickCount;return ve!=null&&Ee!=null&&Math.abs(ve-q)<=1&&Math.abs(Ee-L)<=1&&ve>q&&ce.axisExtend0===ie[0]&&ce.axisExtend1===ie[1]?q=ve:(ce.lastTickCount=L,ce.lastAutoInterval=q,ce.axisExtend0=ie[0],ce.axisExtend1=ie[1]),q}function g(x){var T=x.getLabelModel();return{axisRotate:x.getRotate?x.getRotate():x.isHorizontal&&!x.isHorizontal()?90:0,labelRotate:T.get("rotate")||0,font:T.getFont()}}function A(x,T,S){var b=m(x),_=x.scale,I=_.getExtent(),L=x.getLabelModel(),D=[],N=Math.max((T||0)+1,1),M=I[0],B=_.count();M!==0&&N>1&&B/N>2&&(M=Math.round(Math.ceil(M/N)*N));var R=c(x),H=L.get("showMinLabel")||R,F=L.get("showMaxLabel")||R;H&&M!==I[0]&&U(I[0]);for(var K=M;K<=I[1];K+=N)U(K);F&&K-N!==I[1]&&U(I[1]);function U(V){D.push(S?V:{formattedLabel:b(V),rawLabel:_.getLabel(V),tickValue:V})}return D}function y(x,T,S){var b=x.scale,_=m(x),I=[];return O.each(b.getTicks(),function(L){var D=b.getLabel(L);T(L,D)&&I.push(S?L:{formattedLabel:_(L),rawLabel:D,tickValue:L})}),I}P.createAxisLabels=r,P.createAxisTicks=o,P.calculateCategoryInterval=p},"4NO4":function(j,P,d){var O=d("bYtY"),E=d("ItGF"),C=O.each,v=O.isObject,w=O.isArray,m="series\0";function h(S){return S instanceof Array?S:S==null?[]:[S]}function c(S,b,_){if(S){S[b]=S[b]||{},S.emphasis=S.emphasis||{},S.emphasis[b]=S.emphasis[b]||{};for(var I=0,L=_.length;I<L;I++){var D=_[I];!S.emphasis[b].hasOwnProperty(D)&&S[b].hasOwnProperty(D)&&(S.emphasis[b][D]=S[b][D])}}}var i=["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(S){return v(S)&&!w(S)&&!(S instanceof Date)?S.value:S}function o(S){return v(S)&&!(S instanceof Array)}function n(S,b){b=(b||[]).slice();var _=O.map(S||[],function(I,L){return{exist:I}});return C(b,function(I,L){if(!v(I))return;for(var D=0;D<_.length;D++)if(!_[D].option&&I.id!=null&&_[D].exist.id===I.id+""){_[D].option=I,b[L]=null;return}for(var D=0;D<_.length;D++){var N=_[D].exist;if(!_[D].option&&(N.id==null||I.id==null)&&I.name!=null&&!t(I)&&!t(N)&&N.name===I.name+""){_[D].option=I,b[L]=null;return}}}),C(b,function(I,L){if(!v(I))return;for(var D=0;D<_.length;D++){var N=_[D].exist;if(!_[D].option&&!t(N)&&I.id==null){_[D].option=I;break}}D>=_.length&&_.push({option:I})}),_}function e(S){var b=O.createHashMap();C(S,function(_,I){var L=_.exist;L&&b.set(L.id,_)}),C(S,function(_,I){var L=_.option;O.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={})}),C(S,function(_,I){var L=_.exist,D=_.option,N=_.keyInfo;if(!v(D))return;if(N.name=D.name!=null?D.name+"":L?L.name:m+I,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(S){var b=S.name;return!!(b&&b.indexOf(m))}function t(S){return v(S)&&S.id&&(S.id+"").indexOf("\0_ec_\0")===0}function a(S,b){var _={},I={};return L(S||[],_),L(b||[],I,_),[D(_),D(I)];function L(N,M,B){for(var R=0,H=N.length;R<H;R++)for(var F=N[R].seriesId,K=h(N[R].dataIndex),U=B&&B[F],V=0,z=K.length;V<z;V++){var Y=K[V];U&&U[Y]?U[Y]=null:(M[F]||(M[F]={}))[Y]=1}}function D(N,M){var B=[];for(var R in N)if(N.hasOwnProperty(R)&&N[R]!=null)if(M)B.push(+R);else{var H=D(N[R],!0);H.length&&B.push({seriesId:R,dataIndex:H})}return B}}function l(S,b){if(b.dataIndexInside!=null)return b.dataIndexInside;if(b.dataIndex!=null)return O.isArray(b.dataIndex)?O.map(b.dataIndex,function(_){return S.indexOfRawIndex(_)}):S.indexOfRawIndex(b.dataIndex);if(b.name!=null)return O.isArray(b.name)?O.map(b.name,function(_){return S.indexOfName(_)}):S.indexOfName(b.name)}function u(){var S="__\0ec_inner_"+f+++"_"+Math.random().toFixed(5);return function(b){return b[S]||(b[S]={})}}var f=0;function p(S,b,_){if(O.isString(b)){var I={};I[b+"Index"]=0,b=I}var L=_&&_.defaultMainType;L&&!g(b,L+"Index")&&!g(b,L+"Id")&&!g(b,L+"Name")&&(b[L+"Index"]=0);var D={};return C(b,function(N,M){var N=b[M];if(M==="dataIndex"||M==="dataIndexInside"){D[M]=N;return}var B=M.match(/^(\w+)(Index|Id|Name)$/)||[],R=B[1],H=(B[2]||"").toLowerCase();if(!R||!H||N==null||H==="index"&&N==="none"||_&&_.includeMainTypes&&O.indexOf(_.includeMainTypes,R)<0)return;var F={mainType:R};(H!=="index"||N!=="all")&&(F[H]=N);var K=S.queryComponents(F);D[R+"Models"]=K,D[R+"Model"]=K[0]}),D}function g(S,b){return S&&S.hasOwnProperty(b)}function A(S,b,_){S.setAttribute?S.setAttribute(b,_):S[b]=_}function y(S,b){return S.getAttribute?S.getAttribute(b):S[b]}function x(S){return S==="auto"?E.domSupported?"html":"richText":S||"html"}function T(S,b){var _=O.createHashMap(),I=[];return O.each(S,function(L){var D=b(L);(_.get(D)||(I.push(D),_.set(D,[]))).push(L)}),{keys:I,buckets:_}}P.normalizeToArray=h,P.defaultEmphasis=c,P.TEXT_STYLE_OPTIONS=i,P.getDataItemValue=r,P.isDataItemOption=o,P.mappingToExists=n,P.makeIdAndName=e,P.isNameSpecified=s,P.isIdInner=t,P.compressBatches=a,P.queryDataIndex=l,P.makeInner=u,P.parseFinder=p,P.setAttribute=A,P.getAttribute=y,P.getTooltipRenderMode=x,P.groupData=T},"4NgU":function(j,P,d){var O=d("Yl7c");function E(v){this._setting=v||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}E.prototype.parse=function(v){return v},E.prototype.getSetting=function(v){return this._setting[v]},E.prototype.contain=function(v){var w=this._extent;return v>=w[0]&&v<=w[1]},E.prototype.normalize=function(v){var w=this._extent;return w[1]===w[0]?.5:(v-w[0])/(w[1]-w[0])},E.prototype.scale=function(v){var w=this._extent;return v*(w[1]-w[0])+w[0]},E.prototype.unionExtent=function(v){var w=this._extent;v[0]<w[0]&&(w[0]=v[0]),v[1]>w[1]&&(w[1]=v[1])},E.prototype.unionExtentFromData=function(v,w){this.unionExtent(v.getApproximateExtent(w))},E.prototype.getExtent=function(){return this._extent.slice()},E.prototype.setExtent=function(v,w){var m=this._extent;isNaN(v)||(m[0]=v),isNaN(w)||(m[1]=w)},E.prototype.isBlank=function(){return this._isBlank},E.prototype.setBlank=function(v){this._isBlank=v},E.prototype.getLabel=null,O.enableClassExtend(E),O.enableClassManagement(E,{registerWhenExtend:!0});var C=E;j.exports=C},"4fz+":function(j,P,d){var O=d("bYtY"),E=d("1bdT"),C=d("mFDi"),v=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};v.prototype={constructor:v,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,i=0;i<c.length;i++)if(c[i].name===h)return c[i]},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 i=this._children,r=i.indexOf(c);r>=0&&(i.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,i=this.__zr;c&&c!==h.__storage&&(c.addToStorage(h),h instanceof v&&h.addChildrenToStorage(c)),i&&i.refresh()},remove:function(h){var c=this.__zr,i=this.__storage,r=this._children,o=O.indexOf(r,h);return o<0?this:(r.splice(o,1),h.parent=null,i&&(i.delFromStorage(h),h instanceof v&&h.delChildrenFromStorage(i)),c&&c.refresh(),this)},removeAll:function(){var h=this._children,c=this.__storage,i,r;for(r=0;r<h.length;r++)i=h[r],c&&(c.delFromStorage(i),i instanceof v&&i.delChildrenFromStorage(c)),i.parent=null;return h.length=0,this},eachChild:function(h,c){for(var i=this._children,r=0;r<i.length;r++){var o=i[r];h.call(c,o,r)}return this},traverse:function(h,c){for(var i=0;i<this._children.length;i++){var r=this._children[i];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 i=this._children[c];h.addToStorage(i),i instanceof v&&i.addChildrenToStorage(h)}},delChildrenFromStorage:function(h){for(var c=0;c<this._children.length;c++){var i=this._children[c];h.delFromStorage(i),i instanceof v&&i.delChildrenFromStorage(h)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(h){for(var c=null,i=new C(0,0,0,0),r=h||this._children,o=[],n=0;n<r.length;n++){var e=r[n];if(e.ignore||e.invisible)continue;var s=e.getBoundingRect(),t=e.getLocalTransform(o);t?(i.copy(s),i.applyTransform(t),c=c||i.clone(),c.union(i)):(c=c||s.clone(),c.union(s))}return c||i}},O.inherits(v,E);var w=v;j.exports=w},"4i/N":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="CloseOutlined";var h=P.a=E.forwardRef(m)},"4mN7":function(j,P,d){var O=d("QBsz"),E=d("Sj9i"),C=Math.min,v=Math.max,w=Math.sin,m=Math.cos,h=Math.PI*2,c=O.create(),i=O.create(),r=O.create();function o(u,f,p){if(u.length===0)return;var g=u[0],A=g[0],y=g[0],x=g[1],T=g[1],S;for(S=1;S<u.length;S++)g=u[S],A=C(A,g[0]),y=v(y,g[0]),x=C(x,g[1]),T=v(T,g[1]);f[0]=A,f[1]=x,p[0]=y,p[1]=T}function n(u,f,p,g,A,y){A[0]=C(u,p),A[1]=C(f,g),y[0]=v(u,p),y[1]=v(f,g)}var e=[],s=[];function t(u,f,p,g,A,y,x,T,S,b){var _=E.cubicExtrema,I=E.cubicAt,L,D=_(u,p,A,x,e);for(S[0]=Infinity,S[1]=Infinity,b[0]=-Infinity,b[1]=-Infinity,L=0;L<D;L++){var N=I(u,p,A,x,e[L]);S[0]=C(N,S[0]),b[0]=v(N,b[0])}for(D=_(f,g,y,T,s),L=0;L<D;L++){var M=I(f,g,y,T,s[L]);S[1]=C(M,S[1]),b[1]=v(M,b[1])}S[0]=C(u,S[0]),b[0]=v(u,b[0]),S[0]=C(x,S[0]),b[0]=v(x,b[0]),S[1]=C(f,S[1]),b[1]=v(f,b[1]),S[1]=C(T,S[1]),b[1]=v(T,b[1])}function a(u,f,p,g,A,y,x,T){var S=E.quadraticExtremum,b=E.quadraticAt,_=v(C(S(u,p,A),1),0),I=v(C(S(f,g,y),1),0),L=b(u,p,A,_),D=b(f,g,y,I);x[0]=C(u,A,L),x[1]=C(f,y,D),T[0]=v(u,A,L),T[1]=v(f,y,D)}function l(u,f,p,g,A,y,x,T,S){var b=O.min,_=O.max,I=Math.abs(A-y);if(I%h<1e-4&&I>1e-4){T[0]=u-p,T[1]=f-g,S[0]=u+p,S[1]=f+g;return}if(c[0]=m(A)*p+u,c[1]=w(A)*g+f,i[0]=m(y)*p+u,i[1]=w(y)*g+f,b(T,c,i),_(S,c,i),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]=w(D)*g+f,b(T,r,T),_(S,r,S))}P.fromPoints=o,P.fromLine=n,P.fromCubic=t,P.fromQuadratic=a,P.fromArc=l},"4vCz":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("X2/X")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="PlusSquareOutlined";var c=v.forwardRef(h);P.default=c},"4xFK":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},"56rv":function(j,P,d){var O=d("IwbS"),E=d("x3X8"),C=E.getDefaultLabel;function v(m,h,c,i,r,o,n){var e=c.getModel("label"),s=c.getModel("emphasis.label");O.setLabelStyle(m,h,e,s,{labelFetcher:r,labelDataIndex:o,defaultText:C(r.getData(),o),isRectText:!0,autoColor:i}),w(m),w(h)}function w(m,h){m.textPosition==="outside"&&(m.textPosition=h)}P.setLabel=v},"59Ip":function(j,P,d){var O=d("Sj9i");function E(C,v,w,m,h,c,i,r,o,n,e){if(o===0)return!1;var s=o;if(e>v+s&&e>m+s&&e>c+s&&e>r+s||e<v-s&&e<m-s&&e<c-s&&e<r-s||n>C+s&&n>w+s&&n>h+s&&n>i+s||n<C-s&&n<w-s&&n<h-s&&n<i-s)return!1;var t=O.cubicProjectPoint(C,v,w,m,h,c,i,r,n,e,null);return t<=s/2}P.containStroke=E},"5Dmo":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("5YgA"),v=d.n(C)},"5GOC":function(j,P,d){"use strict";var O=d("cIOH"),E=d("b56q"),C=d("15/o")},"5GhG":function(j,P,d){var O=d("5GtS"),E=d("bYtY"),C=d("L0Ub"),v=C.getDimensionTypeByAxis,w=d("D5nY"),m=w.makeSeriesEncodeForAxisCoordSys,h={_baseAxisDim:null,getInitialData:function(c,i){var r,o=i.getComponent("xAxis",this.get("xAxisIndex")),n=i.getComponent("yAxis",this.get("yAxisIndex")),e=o.get("type"),s=n.get("type"),t;e==="category"?(c.layout="horizontal",r=o.getOrdinalMeta(),t=!0):s==="category"?(c.layout="vertical",r=n.getOrdinalMeta(),t=!0):c.layout=c.layout||"horizontal";var a=["x","y"],l=c.layout==="horizontal"?0:1,u=this._baseAxisDim=a[l],f=a[1-l],p=[o,n],g=p[l].get("type"),A=p[1-l].get("type"),y=c.data;if(y&&t){var x=[];E.each(y,function(b,_){var I;b.value&&E.isArray(b.value)?(I=b.value.slice(),b.value.unshift(_)):E.isArray(b)?(I=b.slice(),b.unshift(_)):I=b,x.push(I)}),c.data=x}var T=this.defaultValueDimensions,S=[{name:u,type:v(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:v(A),dimsDef:T.slice()}];return O(this,{coordDimensions:S,dimensionsCount:T.length+1,encodeDefaulter:E.curry(m,S,this)})},getBaseAxis:function(){var c=this._baseAxisDim;return this.ecModel.getComponent(c+"Axis",this.get(c+"AxisIndex")).axis}};P.seriesModelMixin=h},"5GtS":function(j,P,d){var O=d("sdST"),E=d("YXkt"),C=d("bYtY"),v=C.extend,w=C.isArray;function m(h,c,i){c=w(c)&&{coordDimensions:c}||v({},c);var r=h.getSource(),o=O(r,c),n=new E(o,h);return n.initData(r,i),n}j.exports=m},"5Hur":function(j,P,d){var O=d("4NO4"),E=O.makeInner,C=O.normalizeToArray,v=E();function w(h,c){for(var i=h.length,r=0;r<i;r++)if(h[r].length>c)return h[r];return h[i-1]}var m={clearColorPalette:function(){v(this).colorIdx=0,v(this).colorNameMap={}},getColorFromPalette:function(h,c,i){c=c||this;var r=v(c),o=r.colorIdx||0,n=r.colorNameMap=r.colorNameMap||{};if(n.hasOwnProperty(h))return n[h];var e=C(this.get("color",!0)),s=this.get("colorLayer",!0),t=i==null||!s?e:w(s,i);if(t=t||e,!t||!t.length)return;var a=t[o];return h&&(n[h]=a),r.colorIdx=(o+1)%t.length,a}};j.exports=m},"5NDa":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("OnYD"),v=d.n(C),w=d("+L6B")},"5NHt":function(j,P,d){d("aTJb"),d("OlYY"),d("fc+c"),d("N5BQ"),d("IyUQ"),d("LBfv"),d("noeP")},"5OYt":function(j,P,d){"use strict";var O=d("J4zp"),E=d.n(O),C=d("q1tI"),v=d.n(C),w=d("ACnJ");function m(){var h=Object(C.useState)({}),c=E()(h,2),i=c[0],r=c[1];return Object(C.useEffect)(function(){var o=w.a.subscribe(function(n){r(n)});return function(){return w.a.unsubscribe(o)}},[]),i}P.a=m},"5RzL":function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("7W2i"),r=d.n(i),o=d("LQ03"),n=d.n(o),e=d("q1tI"),s=d.n(e),t=d("1OyB"),a=d("vuIU"),l=d("Ji7U"),u=d("LK+K"),f=d("KQm4"),p=d("U8pU"),g=d("ODXe"),A=d("VTBJ"),y=d("rePB"),x=d("Ff2n"),T=d("4IlW"),S=d("TSYQ"),b=d.n(S),_=d("6cGi"),I=d("bX4T"),L=d("m+aA"),D=d("c+Xe"),N=d("MNnm");function M(tr,Lt){var yr={};return yr[tr.toLowerCase()]=Lt.toLowerCase(),yr["Webkit".concat(tr)]="webkit".concat(Lt),yr["Moz".concat(tr)]="moz".concat(Lt),yr["ms".concat(tr)]="MS".concat(Lt),yr["O".concat(tr)]="o".concat(Lt.toLowerCase()),yr}function B(tr,Lt){var yr={animationend:M("Animation","AnimationEnd"),transitionend:M("Transition","TransitionEnd")};return tr&&("AnimationEvent"in Lt||delete yr.animationend.animation,"TransitionEvent"in Lt||delete yr.transitionend.transition),yr}var R=B(Object(N.a)(),typeof window!="undefined"?window:{}),H={};if(Object(N.a)()){var F=document.createElement("div");H=F.style}var K={};function U(tr){if(K[tr])return K[tr];var Lt=R[tr];if(Lt)for(var yr=Object.keys(Lt),xt=yr.length,Ut=0;Ut<xt;Ut+=1){var ur=yr[Ut];if(Object.prototype.hasOwnProperty.call(Lt,ur)&&ur in H)return K[tr]=Lt[ur],K[tr]}return""}var V=U("animationend"),z=U("transitionend"),Y=!!(V&&z),q=V||"animationend",ce=z||"transitionend";function ie(tr,Lt){if(!tr)return null;if(Object(p.a)(tr)==="object"){var yr=Lt.replace(/-\w/g,function(xt){return xt[1].toUpperCase()});return tr[yr]}return"".concat(tr,"-").concat(Lt)}var ve="none",Ee="appear",Le="enter",He="leave",ge="none",Fe="prepare",Q="start",fe="active",Je="end";function ne(tr){var Lt=Object(e.useRef)(!1),yr=Object(e.useState)(tr),xt=Object(g.a)(yr,2),Ut=xt[0],ur=xt[1];function Ct(dr){Lt.current||ur(dr)}return Object(e.useEffect)(function(){return function(){Lt.current=!0}},[]),[Ut,Ct]}var X=Object(N.a)()?e.useLayoutEffect:e.useEffect,G=X,te=d("wgJM"),we=function(){var tr=e.useRef(null);function Lt(){te.a.cancel(tr.current)}function yr(xt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Lt();var ur=Object(te.a)(function(){Ut<=1?xt({isCanceled:function(){return ur!==tr.current}}):yr(xt,Ut-1)});tr.current=ur}return e.useEffect(function(){return function(){Lt()}},[]),[yr,Lt]},he=[Fe,Q,fe,Je],Pe=!1,Oe=!0;function le(tr){return tr===fe||tr===Je}var me=function(tr,Lt){var yr=e.useState(ge),xt=Object(g.a)(yr,2),Ut=xt[0],ur=xt[1],Ct=we(),dr=Object(g.a)(Ct,2),nr=dr[0],Wr=dr[1];function En(){ur(Fe)}return G(function(){if(Ut!==ge&&Ut!==Je){var Cn=he.indexOf(Ut),Nn=he[Cn+1],oi=Lt(Ut);oi===Pe?ur(Nn):nr(function(Qn){function Vi(){if(Qn.isCanceled())return;ur(Nn)}oi===!0?Vi():Promise.resolve(oi).then(Vi)})}},[tr,Ut]),e.useEffect(function(){return function(){Wr()}},[]),[En,Ut]},_e=function(tr){var Lt=Object(e.useRef)(),yr=Object(e.useRef)(tr);yr.current=tr;var xt=e.useCallback(function(Ct){yr.current(Ct)},[]);function Ut(Ct){Ct&&(Ct.removeEventListener(ce,xt),Ct.removeEventListener(q,xt))}function ur(Ct){Lt.current&&Lt.current!==Ct&&Ut(Lt.current),Ct&&Ct!==Lt.current&&(Ct.addEventListener(ce,xt),Ct.addEventListener(q,xt),Lt.current=Ct)}return e.useEffect(function(){return function(){Ut(Lt.current)}},[]),[ur,Ut]};function $e(tr,Lt,yr,xt){var Ut=xt.motionEnter,ur=Ut===void 0?!0:Ut,Ct=xt.motionAppear,dr=Ct===void 0?!0:Ct,nr=xt.motionLeave,Wr=nr===void 0?!0:nr,En=xt.motionDeadline,Cn=xt.motionLeaveImmediately,Nn=xt.onAppearPrepare,oi=xt.onEnterPrepare,Qn=xt.onLeavePrepare,Vi=xt.onAppearStart,wi=xt.onEnterStart,Ea=xt.onLeaveStart,aa=xt.onAppearActive,Ca=xt.onEnterActive,fa=xt.onLeaveActive,ha=xt.onAppearEnd,qi=xt.onEnterEnd,Ma=xt.onLeaveEnd,za=xt.onVisibleChanged,la=ne(),ao=Object(g.a)(la,2),ka=ao[0],Ba=ao[1],oo=ne(ve),ja=Object(g.a)(oo,2),Pa=ja[0],Fr=ja[1],Oa=ne(null),No=Object(g.a)(Oa,2),Po=No[0],Qo=No[1],ss=Object(e.useRef)(!1),rs=Object(e.useRef)(null),Ko=Object(e.useRef)(!1),$o=Object(e.useRef)(null);function Uo(){var ot=yr();return ot||$o.current}var Wo=Object(e.useRef)(!1);function Go(ot){var ae=Uo();if(ot&&!ot.deadline&&ot.target!==ae)return;var de;Pa===Ee&&Wo.current?de=ha==null?void 0:ha(ae,ot):Pa===Le&&Wo.current?de=qi==null?void 0:qi(ae,ot):Pa===He&&Wo.current&&(de=Ma==null?void 0:Ma(ae,ot)),de!==!1&&!Ko.current&&(Fr(ve),Qo(null))}var Oo=_e(Go),Ka=Object(g.a)(Oo,1),Xa=Ka[0],bo=e.useMemo(function(){var ot,ae,de;switch(Pa){case"appear":return ot={},Object(y.a)(ot,Fe,Nn),Object(y.a)(ot,Q,Vi),Object(y.a)(ot,fe,aa),ot;case"enter":return ae={},Object(y.a)(ae,Fe,oi),Object(y.a)(ae,Q,wi),Object(y.a)(ae,fe,Ca),ae;case"leave":return de={},Object(y.a)(de,Fe,Qn),Object(y.a)(de,Q,Ea),Object(y.a)(de,fe,fa),de;default:return{}}},[Pa]),Eo=me(Pa,function(ot){if(ot===Fe){var ae=bo[Fe];return ae?ae(Uo()):Pe}if(sn in bo){var de;Qo(((de=bo[sn])===null||de===void 0?void 0:de.call(bo,Uo(),null))||null)}return sn===fe&&(Xa(Uo()),En>0&&(clearTimeout(rs.current),rs.current=setTimeout(function(){Go({deadline:!0})},En))),Oe}),pt=Object(g.a)(Eo,2),Nt=pt[0],sn=pt[1],Mn=le(sn);Wo.current=Mn,G(function(){Ba(Lt);var ot=ss.current;if(ss.current=!0,!tr)return;var ae;!ot&&Lt&&dr&&(ae=Ee),ot&&Lt&&ur&&(ae=Le),(ot&&!Lt&&Wr||!ot&&Cn&&!Lt&&Wr)&&(ae=He),ae&&(Fr(ae),Nt())},[Lt]),Object(e.useEffect)(function(){(Pa===Ee&&!dr||Pa===Le&&!ur||Pa===He&&!Wr)&&Fr(ve)},[dr,ur,Wr]),Object(e.useEffect)(function(){return function(){clearTimeout(rs.current),Ko.current=!0}},[]),Object(e.useEffect)(function(){ka!==void 0&&Pa===ve&&(za==null||za(ka))},[ka,Pa]);var hi=Po;return bo[Fe]&&sn===Q&&(hi=Object(A.a)({transition:"none"},hi)),[Pa,sn,hi,ka!=null?ka:Lt]}var gt=function(tr){Object(l.a)(yr,tr);var Lt=Object(u.a)(yr);function yr(){return Object(t.a)(this,yr),Lt.apply(this,arguments)}return Object(a.a)(yr,[{key:"render",value:function(){return this.props.children}}]),yr}(e.Component),et=gt;function Ie(tr){var Lt=tr;Object(p.a)(tr)==="object"&&(Lt=tr.transitionSupport);function yr(Ut){return!!(Ut.motionName&&Lt)}var xt=e.forwardRef(function(Ut,ur){var Ct=Ut.visible,dr=Ct===void 0?!0:Ct,nr=Ut.removeOnLeave,Wr=nr===void 0?!0:nr,En=Ut.forceRender,Cn=Ut.children,Nn=Ut.motionName,oi=Ut.leavedClassName,Qn=Ut.eventProps,Vi=yr(Ut),wi=Object(e.useRef)(),Ea=Object(e.useRef)();function aa(){try{return Object(L.a)(wi.current||Ea.current)}catch(Fr){return null}}var Ca=$e(Vi,dr,aa,Ut),fa=Object(g.a)(Ca,4),ha=fa[0],qi=fa[1],Ma=fa[2],za=fa[3],la=e.useRef(za);za&&(la.current=!0);var ao=Object(e.useRef)(ur);ao.current=ur;var ka=e.useCallback(function(Fr){wi.current=Fr,Object(D.b)(ao.current,Fr)},[]),Ba,oo=Object(A.a)(Object(A.a)({},Qn),{},{visible:dr});if(!Cn)Ba=null;else if(ha===ve||!yr(Ut))za?Ba=Cn(Object(A.a)({},oo),ka):!Wr&&la.current?Ba=Cn(Object(A.a)(Object(A.a)({},oo),{},{className:oi}),ka):En?Ba=Cn(Object(A.a)(Object(A.a)({},oo),{},{style:{display:"none"}}),ka):Ba=null;else{var ja,Pa;qi===Fe?Pa="prepare":le(qi)?Pa="active":qi===Q&&(Pa="start"),Ba=Cn(Object(A.a)(Object(A.a)({},oo),{},{className:b()(ie(Nn,ha),(ja={},Object(y.a)(ja,ie(Nn,"".concat(ha,"-").concat(Pa)),Pa),Object(y.a)(ja,Nn,typeof Nn=="string"),ja)),style:Ma}),ka)}return e.createElement(et,{ref:Ea},Ba)});return xt.displayName="CSSMotion",xt}var rt=Ie(Y),Ge=d("wx14"),vt="add",Ot="keep",Et="remove",Tt="removed";function Rt(tr){var Lt;return tr&&Object(p.a)(tr)==="object"&&"key"in tr?Lt=tr:Lt={key:tr},Object(A.a)(Object(A.a)({},Lt),{},{key:String(Lt.key)})}function Be(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return tr.map(Rt)}function Z(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yr=[],xt=0,Ut=Lt.length,ur=Be(tr),Ct=Be(Lt);ur.forEach(function(Wr){for(var En=!1,Cn=xt;Cn<Ut;Cn+=1){var Nn=Ct[Cn];if(Nn.key===Wr.key){xt<Cn&&(yr=yr.concat(Ct.slice(xt,Cn).map(function(oi){return Object(A.a)(Object(A.a)({},oi),{},{status:vt})})),xt=Cn),yr.push(Object(A.a)(Object(A.a)({},Nn),{},{status:Ot})),xt+=1,En=!0;break}}En||yr.push(Object(A.a)(Object(A.a)({},Wr),{},{status:Et}))}),xt<Ut&&(yr=yr.concat(Ct.slice(xt).map(function(Wr){return Object(A.a)(Object(A.a)({},Wr),{},{status:vt})})));var dr={};yr.forEach(function(Wr){var En=Wr.key;dr[En]=(dr[En]||0)+1});var nr=Object.keys(dr).filter(function(Wr){return dr[Wr]>1});return nr.forEach(function(Wr){yr=yr.filter(function(En){var Cn=En.key,Nn=En.status;return Cn!==Wr||Nn!==Et}),yr.forEach(function(En){En.key===Wr&&(En.status=Ot)})}),yr}var J=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function je(tr){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rt,yr=function(xt){Object(l.a)(ur,xt);var Ut=Object(u.a)(ur);function ur(){var Ct;return Object(t.a)(this,ur),Ct=Ut.apply(this,arguments),Ct.state={keyEntities:[]},Ct.removeKey=function(dr){Ct.setState(function(nr){var Wr=nr.keyEntities;return{keyEntities:Wr.map(function(En){return En.key!==dr?En:Object(A.a)(Object(A.a)({},En),{},{status:Tt})})}})},Ct}return Object(a.a)(ur,[{key:"render",value:function(){var dr=this,nr=this.state.keyEntities,Wr=this.props,En=Wr.component,Cn=Wr.children,Nn=Wr.onVisibleChanged,oi=Object(x.a)(Wr,["component","children","onVisibleChanged"]),Qn=En||e.Fragment,Vi={};return J.forEach(function(wi){Vi[wi]=oi[wi],delete oi[wi]}),delete oi.keys,e.createElement(Qn,oi,nr.map(function(wi){var Ea=wi.status,aa=Object(x.a)(wi,["status"]),Ca=Ea===vt||Ea===Ot;return e.createElement(Lt,Object(Ge.a)({},Vi,{key:aa.key,visible:Ca,eventProps:aa,onVisibleChanged:function(ha){Nn==null||Nn(ha,{key:aa.key}),ha||dr.removeKey(aa.key)}}),Cn)}))}}],[{key:"getDerivedStateFromProps",value:function(dr,nr){var Wr=dr.keys,En=nr.keyEntities,Cn=Be(Wr),Nn=Z(En,Cn);return{keyEntities:Nn.filter(function(oi){var Qn=En.find(function(Vi){var wi=Vi.key;return oi.key===wi});return!(Qn&&Qn.status===Tt&&oi.status===Et)})}}}]),ur}(e.Component);return yr.defaultProps={component:"div"},yr}var Re=je(Y),oe=rt,yt=function(Lt){var yr=Lt.className,xt=Lt.customizeIcon,Ut=Lt.customizeIconProps,ur=Lt.onMouseDown,Ct=Lt.onClick,dr=Lt.children,nr;return typeof xt=="function"?nr=xt(Ut):nr=xt,e.createElement("span",{className:yr,onMouseDown:function(En){En.preventDefault(),ur&&ur(En)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ct,"aria-hidden":!0},nr!==void 0?nr:e.createElement("span",{className:b()(yr.split(/\s+/).map(function(Wr){return"".concat(Wr,"-icon")}))},dr))},zt=yt,lt=function(Lt,yr){var xt=Lt.prefixCls,Ut=Lt.id,ur=Lt.inputElement,Ct=Lt.disabled,dr=Lt.tabIndex,nr=Lt.autoFocus,Wr=Lt.autoComplete,En=Lt.editable,Cn=Lt.accessibilityIndex,Nn=Lt.value,oi=Lt.maxLength,Qn=Lt.onKeyDown,Vi=Lt.onMouseDown,wi=Lt.onChange,Ea=Lt.onPaste,aa=Lt.onCompositionStart,Ca=Lt.onCompositionEnd,fa=Lt.open,ha=Lt.attrs,qi=ur||e.createElement("input",null),Ma=qi,za=Ma.ref,la=Ma.props,ao=la.onKeyDown,ka=la.onChange,Ba=la.onMouseDown,oo=la.onCompositionStart,ja=la.onCompositionEnd,Pa=la.style;return qi=e.cloneElement(qi,Object(A.a)(Object(A.a)({id:Ut,ref:Object(D.a)(yr,za),disabled:Ct,tabIndex:dr,autoComplete:Wr||"off",type:"search",autoFocus:nr,className:"".concat(xt,"-selection-search-input"),style:Object(A.a)(Object(A.a)({},Pa),{},{opacity:En?null:0}),role:"combobox","aria-expanded":fa,"aria-haspopup":"listbox","aria-owns":"".concat(Ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ut,"_list"),"aria-activedescendant":"".concat(Ut,"_list_").concat(Cn)},ha),{},{value:En?Nn:"",maxLength:oi,readOnly:!En,unselectable:En?null:"on",onKeyDown:function(Oa){Qn(Oa),ao&&ao(Oa)},onMouseDown:function(Oa){Vi(Oa),Ba&&Ba(Oa)},onChange:function(Oa){wi(Oa),ka&&ka(Oa)},onCompositionStart:function(Oa){aa(Oa),oo&&oo(Oa)},onCompositionEnd:function(Oa){Ca(Oa),ja&&ja(Oa)},onPaste:Ea})),qi},$t=e.forwardRef(lt);$t.displayName="Input";var cr=$t;function cn(tr){return Array.isArray(tr)?tr:tr!==void 0?[tr]:[]}function pr(tr,Lt){var yr=Lt.labelInValue,xt=Lt.combobox;if(tr===void 0||tr===""&&xt)return[];var Ut=Array.isArray(tr)?tr:[tr];return yr?Ut.map(function(ur){var Ct=ur.key,dr=ur.value;return dr!==void 0?dr:Ct}):Ut}function gr(tr,Lt){var yr=Lt.optionLabelProp,xt=Lt.labelInValue,Ut=Lt.prevValue,ur=Lt.options,Ct=Lt.getLabeledValue,dr=tr;return xt&&(dr=dr.map(function(nr){return Ct(nr,{options:ur,prevValue:Ut,labelInValue:xt,optionLabelProp:yr})})),dr}function Zt(tr,Lt){var yr=Object(f.a)(Lt),xt;for(xt=tr.length-1;xt>=0&&tr[xt].disabled;xt-=1);var Ut=null;return xt!==-1&&(Ut=yr[xt],yr.splice(xt,1)),{values:yr,removedValue:Ut}}var Vt=typeof window!="undefined"&&window.document&&window.document.documentElement,mt=Vt,Yr=0;function Tn(){var tr;return mt?(tr=Yr,Yr+=1):tr="TEST_OR_SSR",tr}function Hn(tr,Lt){mt?e.useLayoutEffect(tr,Lt):e.useEffect(tr,Lt)}var ei="__RC_SELECT_MAX_REST_COUNT__",ji=function(Lt){var yr=Lt.id,xt=Lt.prefixCls,Ut=Lt.values,ur=Lt.open,Ct=Lt.searchValue,dr=Lt.inputRef,nr=Lt.placeholder,Wr=Lt.disabled,En=Lt.mode,Cn=Lt.showSearch,Nn=Lt.autoFocus,oi=Lt.autoComplete,Qn=Lt.accessibilityIndex,Vi=Lt.tabIndex,wi=Lt.removeIcon,Ea=Lt.choiceTransitionName,aa=Lt.maxTagCount,Ca=Lt.maxTagTextLength,fa=Lt.maxTagPlaceholder,ha=fa===void 0?function(Eo){return"+ ".concat(Eo.length," ...")}:fa,qi=Lt.tagRender,Ma=Lt.onSelect,za=Lt.onInputChange,la=Lt.onInputPaste,ao=Lt.onInputKeyDown,ka=Lt.onInputMouseDown,Ba=Lt.onInputCompositionStart,oo=Lt.onInputCompositionEnd,ja=Object(e.useState)(!1),Pa=Object(g.a)(ja,2),Fr=Pa[0],Oa=Pa[1],No=e.useRef(null),Po=Object(e.useState)(0),Qo=Object(g.a)(Po,2),ss=Qo[0],rs=Qo[1],Ko=Object(e.useState)(!1),$o=Object(g.a)(Ko,2),Uo=$o[0],Wo=$o[1];e.useEffect(function(){Oa(!0)},[]);var Go=ur||En==="tags"?Ct:"",Oo=En==="tags"||Cn&&(ur||Uo);Hn(function(){rs(No.current.scrollWidth)},[Go]);var Ka=Ut,Xa;typeof aa=="number"&&(Xa=Ut.length-aa,Ka=Ut.slice(0,aa)),typeof Ca=="number"&&(Ka=Ka.map(function(Eo){var pt=Eo.label,Nt=Object(x.a)(Eo,["label"]),sn=pt;if(typeof pt=="string"||typeof pt=="number"){var Mn=String(sn);Mn.length>Ca&&(sn="".concat(Mn.slice(0,Ca),"..."))}return Object(A.a)(Object(A.a)({},Nt),{},{label:sn})})),Xa>0&&Ka.push({key:ei,label:typeof ha=="function"?ha(Ut.slice(aa)):ha});var bo=e.createElement(Re,{component:!1,keys:Ka,motionName:Ea,motionAppear:Fr},function(Eo){var pt=Eo.key,Nt=Eo.label,sn=Eo.value,Mn=Eo.disabled,hi=Eo.className,ot=Eo.style,ae=pt||sn,de=!Wr&&pt!==ei&&!Mn,ye=function(Bt){Bt.preventDefault(),Bt.stopPropagation()},Ke=function(Bt){Bt&&Bt.stopPropagation(),Ma(sn,{selected:!1})};return typeof qi=="function"?e.createElement("span",{key:ae,onMouseDown:ye,className:hi,style:ot},qi({label:Nt,value:sn,disabled:Mn,closable:de,onClose:Ke})):e.createElement("span",{key:ae,className:b()(hi,"".concat(xt,"-selection-item"),Object(y.a)({},"".concat(xt,"-selection-item-disabled"),Mn)),style:ot},e.createElement("span",{className:"".concat(xt,"-selection-item-content")},Nt),de&&e.createElement(zt,{className:"".concat(xt,"-selection-item-remove"),onMouseDown:ye,onClick:Ke,customizeIcon:wi},"\xD7"))});return e.createElement(e.Fragment,null,bo,e.createElement("span",{className:"".concat(xt,"-selection-search"),style:{width:ss},onFocus:function(){Wo(!0)},onBlur:function(){Wo(!1)}},e.createElement(cr,{ref:dr,open:ur,prefixCls:xt,id:yr,inputElement:null,disabled:Wr,autoFocus:Nn,autoComplete:oi,editable:Oo,accessibilityIndex:Qn,value:Go,onKeyDown:ao,onMouseDown:ka,onChange:za,onPaste:la,onCompositionStart:Ba,onCompositionEnd:oo,tabIndex:Vi,attrs:Object(I.a)(Lt,!0)}),e.createElement("span",{ref:No,className:"".concat(xt,"-selection-search-mirror"),"aria-hidden":!0},Go,"\xA0")),!Ut.length&&!Go&&e.createElement("span",{className:"".concat(xt,"-selection-placeholder")},nr))},Ln=ji,Vn=function(Lt){var yr=Lt.inputElement,xt=Lt.prefixCls,Ut=Lt.id,ur=Lt.inputRef,Ct=Lt.disabled,dr=Lt.autoFocus,nr=Lt.autoComplete,Wr=Lt.accessibilityIndex,En=Lt.mode,Cn=Lt.open,Nn=Lt.values,oi=Lt.placeholder,Qn=Lt.tabIndex,Vi=Lt.showSearch,wi=Lt.searchValue,Ea=Lt.activeValue,aa=Lt.maxLength,Ca=Lt.onInputKeyDown,fa=Lt.onInputMouseDown,ha=Lt.onInputChange,qi=Lt.onInputPaste,Ma=Lt.onInputCompositionStart,za=Lt.onInputCompositionEnd,la=e.useState(!1),ao=Object(g.a)(la,2),ka=ao[0],Ba=ao[1],oo=En==="combobox",ja=oo||Vi,Pa=Nn[0],Fr=wi||"";oo&&Ea&&!ka&&(Fr=Ea),e.useEffect(function(){oo&&Ba(!1)},[oo,Ea]);var Oa=En!=="combobox"&&!Cn?!1:!!Fr,No=Pa&&(typeof Pa.label=="string"||typeof Pa.label=="number")?Pa.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(xt,"-selection-search")},e.createElement(cr,{ref:ur,prefixCls:xt,id:Ut,open:Cn,inputElement:yr,disabled:Ct,autoFocus:dr,autoComplete:nr,editable:ja,accessibilityIndex:Wr,value:Fr,onKeyDown:Ca,onMouseDown:fa,onChange:function(Qo){Ba(!0),ha(Qo)},onPaste:qi,onCompositionStart:Ma,onCompositionEnd:za,tabIndex:Qn,attrs:Object(I.a)(Lt,!0),maxLength:oo?aa:void 0})),!oo&&Pa&&!Oa&&e.createElement("span",{className:"".concat(xt,"-selection-item"),title:No},Pa.label),!Pa&&!Oa&&e.createElement("span",{className:"".concat(xt,"-selection-placeholder")},oi))},kt=Vn;function wt(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Lt=e.useRef(null),yr=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(yr.current)}},[]);function xt(Ut){(Ut||Lt.current===null)&&(Lt.current=Ut),window.clearTimeout(yr.current),yr.current=window.setTimeout(function(){Lt.current=null},tr)}return[function(){return Lt.current},xt]}var Te=function(Lt,yr){var xt=Object(e.useRef)(null),Ut=Object(e.useRef)(!1),ur=Lt.prefixCls,Ct=Lt.multiple,dr=Lt.open,nr=Lt.mode,Wr=Lt.showSearch,En=Lt.tokenWithEnter,Cn=Lt.onSearch,Nn=Lt.onSearchSubmit,oi=Lt.onToggleOpen,Qn=Lt.onInputKeyDown,Vi=Lt.domRef;e.useImperativeHandle(yr,function(){return{focus:function(){xt.current.focus()},blur:function(){xt.current.blur()}}});var wi=wt(0),Ea=Object(g.a)(wi,2),aa=Ea[0],Ca=Ea[1],fa=function(Oa){var No=Oa.which;(No===T.a.UP||No===T.a.DOWN)&&Oa.preventDefault(),Qn&&Qn(Oa),No===T.a.ENTER&&nr==="tags"&&!Ut.current&&!dr&&Nn(Oa.target.value),[T.a.SHIFT,T.a.TAB,T.a.BACKSPACE,T.a.ESC].includes(No)||oi(!0)},ha=function(){Ca(!0)},qi=Object(e.useRef)(null),Ma=function(Oa){Cn(Oa,!0,Ut.current)!==!1&&oi(!0)},za=function(){Ut.current=!0},la=function(){Ut.current=!1},ao=function(Oa){var No=Oa.target.value;if(En&&qi.current&&/[\r\n]/.test(qi.current)){var Po=qi.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");No=No.replace(Po,qi.current)}qi.current=null,Ma(No)},ka=function(Oa){var No=Oa.clipboardData,Po=No.getData("text");qi.current=Po},Ba=function(Oa){var No=Oa.target;if(No!==xt.current){var Po=document.body.style.msTouchAction!==void 0;Po?setTimeout(function(){xt.current.focus()}):xt.current.focus()}},oo=function(Oa){var No=aa();Oa.target!==xt.current&&!No&&Oa.preventDefault(),(nr!=="combobox"&&(!Wr||!No)||!dr)&&(dr&&Cn("",!0,!1),oi())},ja={inputRef:xt,onInputKeyDown:fa,onInputMouseDown:ha,onInputChange:ao,onInputPaste:ka,onInputCompositionStart:za,onInputCompositionEnd:la},Pa=Ct?e.createElement(Ln,Object.assign({},Lt,ja)):e.createElement(kt,Object.assign({},Lt,ja));return e.createElement("div",{ref:Vi,className:"".concat(ur,"-selector"),onClick:Ba,onMouseDown:oo},Pa)},xe=e.forwardRef(Te);xe.displayName="Selector";var Ce=xe,Ye=d("JX7q"),it=d("i8i4"),dt=d.n(it),_t=d("l4aY"),vr=d("zT1h"),kr=d("QC+M");function mn(tr,Lt,yr){return yr?tr[0]===Lt[0]:tr[0]===Lt[0]&&tr[1]===Lt[1]}function Mt(tr,Lt,yr){var xt=tr[Lt]||{};return Object(A.a)(Object(A.a)({},xt),yr)}function nt(tr,Lt,yr,xt){for(var Ut=yr.points,ur=Object.keys(tr),Ct=0;Ct<ur.length;Ct+=1){var dr=ur[Ct];if(mn(tr[dr].points,Ut,xt))return"".concat(Lt,"-placement-").concat(dr)}return""}var st=d("5Z9U");function Xt(tr){var Lt=tr.prefixCls,yr=tr.motion,xt=tr.animation,Ut=tr.transitionName;return yr||(xt?{motionName:"".concat(Lt,"-").concat(xt)}:Ut?{motionName:Ut}:null)}function Dt(tr){var Lt=tr.prefixCls,yr=tr.visible,xt=tr.zIndex,Ut=tr.mask,ur=tr.maskMotion,Ct=tr.maskAnimation,dr=tr.maskTransitionName;if(!Ut)return null;var nr={};return(ur||dr||Ct)&&(nr=Object(A.a)({motionAppear:!0},Xt({motion:ur,prefixCls:Lt,transitionName:dr,animation:Ct}))),e.createElement(oe,Object(Ge.a)({},nr,{visible:yr,removeOnLeave:!0}),function(Wr){var En=Wr.className;return e.createElement("div",{style:{zIndex:xt},className:b()("".concat(Lt,"-mask"),En)})})}var St=d("9mu1"),jt=d("o0o1"),At=d.n(jt),Ft=d("HaE+"),wr=["measure","align",null,"motion"],sr=function(tr,Lt){var yr=Object(e.useState)(null),xt=Object(g.a)(yr,2),Ut=xt[0],ur=xt[1],Ct=Object(e.useRef)(),dr=Object(e.useRef)(!1);function nr(Cn){dr.current||ur(Cn)}function Wr(){te.a.cancel(Ct.current)}function En(Cn){Wr(),Ct.current=Object(te.a)(function(){nr(function(Nn){switch(Ut){case"align":return"motion";case"motion":return"stable";default:}return Nn}),Cn==null||Cn()})}return Object(e.useEffect)(function(){nr("measure")},[tr]),Object(e.useEffect)(function(){switch(Ut){case"measure":Lt();break;default:}Ut&&(Ct.current=Object(te.a)(Object(Ft.a)(At.a.mark(function Cn(){var Nn,oi;return At.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:Nn=wr.indexOf(Ut),oi=wr[Nn+1],oi&&Nn!==-1&&nr(oi);case 3:case"end":return Vi.stop()}},Cn)}))))},[Ut]),Object(e.useEffect)(function(){return function(){dr.current=!0,Wr()}},[]),[Ut,En]},mr=function(tr){var Lt=e.useState({width:0,height:0}),yr=Object(g.a)(Lt,2),xt=yr[0],Ut=yr[1];function ur(dr){Ut({width:dr.offsetWidth,height:dr.offsetHeight})}var Ct=e.useMemo(function(){var dr={};if(tr){var nr=xt.width,Wr=xt.height;tr.indexOf("height")!==-1&&Wr?dr.height=Wr:tr.indexOf("minHeight")!==-1&&Wr&&(dr.minHeight=Wr),tr.indexOf("width")!==-1&&nr?dr.width=nr:tr.indexOf("minWidth")!==-1&&nr&&(dr.minWidth=nr)}return dr},[tr,xt]);return[Ct,ur]},$r=e.forwardRef(function(tr,Lt){var yr=tr.visible,xt=tr.prefixCls,Ut=tr.className,ur=tr.style,Ct=tr.children,dr=tr.zIndex,nr=tr.stretch,Wr=tr.destroyPopupOnHide,En=tr.forceRender,Cn=tr.align,Nn=tr.point,oi=tr.getRootDomNode,Qn=tr.getClassNameFromAlign,Vi=tr.onAlign,wi=tr.onMouseEnter,Ea=tr.onMouseLeave,aa=tr.onMouseDown,Ca=tr.onTouchStart,fa=Object(e.useRef)(),ha=Object(e.useRef)(),qi=Object(e.useState)(),Ma=Object(g.a)(qi,2),za=Ma[0],la=Ma[1],ao=mr(nr),ka=Object(g.a)(ao,2),Ba=ka[0],oo=ka[1];function ja(){nr&&oo(oi())}var Pa=sr(yr,ja),Fr=Object(g.a)(Pa,2),Oa=Fr[0],No=Fr[1],Po=Object(e.useRef)();function Qo(){return Nn||oi}function ss(){var Oo;(Oo=fa.current)===null||Oo===void 0||Oo.forceAlign()}function rs(Oo,Ka){var Xa=Qn(Ka);za!==Xa&&la(Xa),Oa==="align"&&(za!==Xa?Promise.resolve().then(function(){ss()}):No(function(){var bo;(bo=Po.current)===null||bo===void 0||bo.call(Po)}),Vi==null||Vi(Oo,Ka))}var Ko=Object(A.a)({},Xt(tr));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Oo){var Ka=Ko[Oo];Ko[Oo]=function(Xa,bo){return No(),Ka==null?void 0:Ka(Xa,bo)}});function $o(){return new Promise(function(Oo){Po.current=Oo})}e.useEffect(function(){!Ko.motionName&&Oa==="motion"&&No()},[Ko.motionName,Oa]),e.useImperativeHandle(Lt,function(){return{forceAlign:ss,getElement:function(){return ha.current}}});var Uo=Object(A.a)(Object(A.a)({},Ba),{},{zIndex:dr,opacity:Oa==="motion"||Oa==="stable"||!yr?void 0:0,pointerEvents:Oa==="stable"?void 0:"none"},ur),Wo=!0;(Cn==null?void 0:Cn.points)&&(Oa==="align"||Oa==="stable")&&(Wo=!1);var Go=Ct;return e.Children.count(Ct)>1&&(Go=e.createElement("div",{className:"".concat(xt,"-content")},Ct)),e.createElement(oe,Object(Ge.a)({visible:yr,ref:ha,leavedClassName:"".concat(xt,"-hidden")},Ko,{onAppearPrepare:$o,onEnterPrepare:$o,removeOnLeave:Wr,forceRender:En}),function(Oo,Ka){var Xa=Oo.className,bo=Oo.style,Eo=b()(xt,Ut,za,Xa);return e.createElement(St.a,{target:Qo(),key:"popup",ref:fa,monitorWindowResize:!0,disabled:Wo,align:Cn,onAlign:rs},e.createElement("div",{ref:Ka,className:Eo,onMouseEnter:wi,onMouseLeave:Ea,onMouseDownCapture:aa,onTouchStartCapture:Ca,style:Object(A.a)(Object(A.a)({},bo),Uo)},Go))})});$r.displayName="PopupInner";var rn=$r,jn=e.forwardRef(function(tr,Lt){var yr=tr.prefixCls,xt=tr.visible,Ut=tr.zIndex,ur=tr.children,Ct=tr.mobile;Ct=Ct===void 0?{}:Ct;var dr=Ct.popupClassName,nr=Ct.popupStyle,Wr=Ct.popupMotion,En=Wr===void 0?{}:Wr,Cn=Ct.popupRender,Nn=e.useRef();e.useImperativeHandle(Lt,function(){return{forceAlign:function(){},getElement:function(){return Nn.current}}});var oi=Object(A.a)({zIndex:Ut},nr),Qn=ur;return e.Children.count(ur)>1&&(Qn=e.createElement("div",{className:"".concat(yr,"-content")},ur)),Cn&&(Qn=Cn(Qn)),e.createElement(oe,Object(Ge.a)({visible:xt,ref:Nn,removeOnLeave:!0},En),function(Vi,wi){var Ea=Vi.className,aa=Vi.style,Ca=b()(yr,dr,Ea);return e.createElement("div",{ref:wi,className:Ca,style:Object(A.a)(Object(A.a)({},aa),oi)},Qn)})});jn.displayName="MobilePopupInner";var Un=jn,ui=["visible","mobile"],yi=e.forwardRef(function(tr,Lt){var yr=tr.visible,xt=tr.mobile,Ut=Object(x.a)(tr,ui),ur=Object(e.useState)(yr),Ct=Object(g.a)(ur,2),dr=Ct[0],nr=Ct[1],Wr=Object(e.useState)(!1),En=Object(g.a)(Wr,2),Cn=En[0],Nn=En[1],oi=Object(A.a)(Object(A.a)({},Ut),{},{visible:dr});Object(e.useEffect)(function(){nr(yr),yr&&xt&&Nn(Object(st.a)())},[yr,xt]);var Qn=Cn?e.createElement(Un,Object(Ge.a)({},oi,{mobile:xt,ref:Lt})):e.createElement(rn,Object(Ge.a)({},oi,{ref:Lt}));return e.createElement("div",null,e.createElement(Dt,oi),Qn)});yi.displayName="Popup";var Ii=yi,Gi=e.createContext(null),Qe=Gi;function be(){}function Ne(){return""}function Ue(tr){return tr?tr.ownerDocument:window.document}var Xe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ze(tr){var Lt=function(yr){Object(l.a)(Ut,yr);var xt=Object(u.a)(Ut);function Ut(ur){var Ct;Object(t.a)(this,Ut),Ct=xt.call(this,ur),Ct.popupRef=e.createRef(),Ct.triggerRef=e.createRef(),Ct.attachId=void 0,Ct.clickOutsideHandler=void 0,Ct.touchOutsideHandler=void 0,Ct.contextMenuOutsideHandler1=void 0,Ct.contextMenuOutsideHandler2=void 0,Ct.mouseDownTimeout=void 0,Ct.focusTime=void 0,Ct.preClickTime=void 0,Ct.preTouchTime=void 0,Ct.delayTimer=void 0,Ct.hasPopupMouseDown=void 0,Ct.onMouseEnter=function(nr){var Wr=Ct.props.mouseEnterDelay;Ct.fireEvents("onMouseEnter",nr),Ct.delaySetPopupVisible(!0,Wr,Wr?null:nr)},Ct.onMouseMove=function(nr){Ct.fireEvents("onMouseMove",nr),Ct.setPoint(nr)},Ct.onMouseLeave=function(nr){Ct.fireEvents("onMouseLeave",nr),Ct.delaySetPopupVisible(!1,Ct.props.mouseLeaveDelay)},Ct.onPopupMouseEnter=function(){Ct.clearDelayTimer()},Ct.onPopupMouseLeave=function(nr){var Wr;if(nr.relatedTarget&&!nr.relatedTarget.setTimeout&&Object(_t.a)((Wr=Ct.popupRef.current)===null||Wr===void 0?void 0:Wr.getElement(),nr.relatedTarget))return;Ct.delaySetPopupVisible(!1,Ct.props.mouseLeaveDelay)},Ct.onFocus=function(nr){Ct.fireEvents("onFocus",nr),Ct.clearDelayTimer(),Ct.isFocusToShow()&&(Ct.focusTime=Date.now(),Ct.delaySetPopupVisible(!0,Ct.props.focusDelay))},Ct.onMouseDown=function(nr){Ct.fireEvents("onMouseDown",nr),Ct.preClickTime=Date.now()},Ct.onTouchStart=function(nr){Ct.fireEvents("onTouchStart",nr),Ct.preTouchTime=Date.now()},Ct.onBlur=function(nr){Ct.fireEvents("onBlur",nr),Ct.clearDelayTimer(),Ct.isBlurToHide()&&Ct.delaySetPopupVisible(!1,Ct.props.blurDelay)},Ct.onContextMenu=function(nr){nr.preventDefault(),Ct.fireEvents("onContextMenu",nr),Ct.setPopupVisible(!0,nr)},Ct.onContextMenuClose=function(){Ct.isContextMenuToShow()&&Ct.close()},Ct.onClick=function(nr){if(Ct.fireEvents("onClick",nr),Ct.focusTime){var Wr;if(Ct.preClickTime&&Ct.preTouchTime?Wr=Math.min(Ct.preClickTime,Ct.preTouchTime):Ct.preClickTime?Wr=Ct.preClickTime:Ct.preTouchTime&&(Wr=Ct.preTouchTime),Math.abs(Wr-Ct.focusTime)<20)return;Ct.focusTime=0}Ct.preClickTime=0,Ct.preTouchTime=0,Ct.isClickToShow()&&(Ct.isClickToHide()||Ct.isBlurToHide())&&nr&&nr.preventDefault&&nr.preventDefault();var En=!Ct.state.popupVisible;(Ct.isClickToHide()&&!En||En&&Ct.isClickToShow())&&Ct.setPopupVisible(!Ct.state.popupVisible,nr)},Ct.onPopupMouseDown=function(){if(Ct.hasPopupMouseDown=!0,clearTimeout(Ct.mouseDownTimeout),Ct.mouseDownTimeout=window.setTimeout(function(){Ct.hasPopupMouseDown=!1},0),Ct.context){var nr;(nr=Ct.context).onPopupMouseDown.apply(nr,arguments)}},Ct.onDocumentClick=function(nr){if(Ct.props.mask&&!Ct.props.maskClosable)return;var Wr=nr.target,En=Ct.getRootDomNode(),Cn=Ct.getPopupDomNode();(!Object(_t.a)(En,Wr)||Ct.isContextMenuOnly())&&!Object(_t.a)(Cn,Wr)&&!Ct.hasPopupMouseDown&&Ct.close()},Ct.getRootDomNode=function(){var nr=Ct.props.getTriggerDOMNode;if(nr)return nr(Ct.triggerRef.current);try{var Wr=Object(L.a)(Ct.triggerRef.current);if(Wr)return Wr}catch(En){}return dt.a.findDOMNode(Object(Ye.a)(Ct))},Ct.getPopupClassNameFromAlign=function(nr){var Wr=[],En=Ct.props,Cn=En.popupPlacement,Nn=En.builtinPlacements,oi=En.prefixCls,Qn=En.alignPoint,Vi=En.getPopupClassNameFromAlign;return Cn&&Nn&&Wr.push(nt(Nn,oi,nr,Qn)),Vi&&Wr.push(Vi(nr)),Wr.join(" ")},Ct.getComponent=function(){var nr=Ct.props,Wr=nr.prefixCls,En=nr.destroyPopupOnHide,Cn=nr.popupClassName,Nn=nr.onPopupAlign,oi=nr.popupMotion,Qn=nr.popupAnimation,Vi=nr.popupTransitionName,wi=nr.popupStyle,Ea=nr.mask,aa=nr.maskAnimation,Ca=nr.maskTransitionName,fa=nr.maskMotion,ha=nr.zIndex,qi=nr.popup,Ma=nr.stretch,za=nr.alignPoint,la=nr.mobile,ao=nr.forceRender,ka=Ct.state,Ba=ka.popupVisible,oo=ka.point,ja=Ct.getPopupAlign(),Pa={};return Ct.isMouseEnterToShow()&&(Pa.onMouseEnter=Ct.onPopupMouseEnter),Ct.isMouseLeaveToHide()&&(Pa.onMouseLeave=Ct.onPopupMouseLeave),Pa.onMouseDown=Ct.onPopupMouseDown,Pa.onTouchStart=Ct.onPopupMouseDown,e.createElement(Ii,Object(Ge.a)({prefixCls:Wr,destroyPopupOnHide:En,visible:Ba,point:za&&oo,className:Cn,align:ja,onAlign:Nn,animation:Qn,getClassNameFromAlign:Ct.getPopupClassNameFromAlign},Pa,{stretch:Ma,getRootDomNode:Ct.getRootDomNode,style:wi,mask:Ea,zIndex:ha,transitionName:Vi,maskAnimation:aa,maskTransitionName:Ca,maskMotion:fa,ref:Ct.popupRef,motion:oi,mobile:la,forceRender:ao}),typeof qi=="function"?qi():qi)},Ct.attachParent=function(nr){te.a.cancel(Ct.attachId);var Wr=Ct.props,En=Wr.getPopupContainer,Cn=Wr.getDocument,Nn=Ct.getRootDomNode(),oi;En?(Nn||En.length===0)&&(oi=En(Nn)):oi=Cn(Ct.getRootDomNode()).body,oi?oi.appendChild(nr):Ct.attachId=Object(te.a)(function(){Ct.attachParent(nr)})},Ct.getContainer=function(){var nr=Ct.props.getDocument,Wr=nr(Ct.getRootDomNode()).createElement("div");return Wr.style.position="absolute",Wr.style.top="0",Wr.style.left="0",Wr.style.width="100%",Ct.attachParent(Wr),Wr},Ct.setPoint=function(nr){var Wr=Ct.props.alignPoint;if(!Wr||!nr)return;Ct.setState({point:{pageX:nr.pageX,pageY:nr.pageY}})},Ct.handlePortalUpdate=function(){Ct.state.prevPopupVisible!==Ct.state.popupVisible&&Ct.props.afterPopupVisibleChange(Ct.state.popupVisible)},Ct.triggerContextValue={onPopupMouseDown:Ct.onPopupMouseDown};var dr;return"popupVisible"in ur?dr=!!ur.popupVisible:dr=!!ur.defaultPopupVisible,Ct.state={prevPopupVisible:dr,popupVisible:dr},Xe.forEach(function(nr){Ct["fire".concat(nr)]=function(Wr){Ct.fireEvents(nr,Wr)}}),Ct}return Object(a.a)(Ut,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ct=this.props,dr=this.state;if(dr.popupVisible){var nr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(nr=Ct.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(vr.a)(nr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nr=nr||Ct.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(vr.a)(nr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nr=nr||Ct.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(vr.a)(nr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(vr.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),te.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ct;return((Ct=this.popupRef.current)===null||Ct===void 0?void 0:Ct.getElement())||null}},{key:"getPopupAlign",value:function(){var Ct=this.props,dr=Ct.popupPlacement,nr=Ct.popupAlign,Wr=Ct.builtinPlacements;return dr&&Wr?Mt(Wr,dr,nr):nr}},{key:"setPopupVisible",value:function(Ct,dr){var nr=this.props.alignPoint,Wr=this.state.popupVisible;this.clearDelayTimer(),Wr!==Ct&&("popupVisible"in this.props||this.setState({popupVisible:Ct,prevPopupVisible:Wr}),this.props.onPopupVisibleChange(Ct)),nr&&dr&&Ct&&this.setPoint(dr)}},{key:"delaySetPopupVisible",value:function(Ct,dr,nr){var Wr=this,En=dr*1e3;if(this.clearDelayTimer(),En){var Cn=nr?{pageX:nr.pageX,pageY:nr.pageY}:null;this.delayTimer=window.setTimeout(function(){Wr.setPopupVisible(Ct,Cn),Wr.clearDelayTimer()},En)}else this.setPopupVisible(Ct,nr)}},{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(Ct){var dr=this.props.children.props,nr=this.props;return dr[Ct]&&nr[Ct]?this["fire".concat(Ct)]:dr[Ct]||nr[Ct]}},{key:"isClickToShow",value:function(){var Ct=this.props,dr=Ct.action,nr=Ct.showAction;return dr.indexOf("click")!==-1||nr.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ct=this.props.action;return Ct==="contextMenu"||Ct.length===1&&Ct[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ct=this.props,dr=Ct.action,nr=Ct.showAction;return dr.indexOf("contextMenu")!==-1||nr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ct=this.props,dr=Ct.action,nr=Ct.hideAction;return dr.indexOf("click")!==-1||nr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ct=this.props,dr=Ct.action,nr=Ct.showAction;return dr.indexOf("hover")!==-1||nr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ct=this.props,dr=Ct.action,nr=Ct.hideAction;return dr.indexOf("hover")!==-1||nr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ct=this.props,dr=Ct.action,nr=Ct.showAction;return dr.indexOf("focus")!==-1||nr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ct=this.props,dr=Ct.action,nr=Ct.hideAction;return dr.indexOf("focus")!==-1||nr.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ct;(Ct=this.popupRef.current)===null||Ct===void 0||Ct.forceAlign()}}},{key:"fireEvents",value:function(Ct,dr){var nr=this.props.children.props[Ct];nr&&nr(dr);var Wr=this.props[Ct];Wr&&Wr(dr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ct=this.state.popupVisible,dr=this.props,nr=dr.children,Wr=dr.forceRender,En=dr.alignPoint,Cn=dr.className,Nn=dr.autoDestroy,oi=e.Children.only(nr),Qn={key:"trigger"};this.isContextMenuToShow()?Qn.onContextMenu=this.onContextMenu:Qn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Qn.onClick=this.onClick,Qn.onMouseDown=this.onMouseDown,Qn.onTouchStart=this.onTouchStart):(Qn.onClick=this.createTwoChains("onClick"),Qn.onMouseDown=this.createTwoChains("onMouseDown"),Qn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Qn.onMouseEnter=this.onMouseEnter,En&&(Qn.onMouseMove=this.onMouseMove)):Qn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Qn.onMouseLeave=this.onMouseLeave:Qn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Qn.onFocus=this.onFocus,Qn.onBlur=this.onBlur):(Qn.onFocus=this.createTwoChains("onFocus"),Qn.onBlur=this.createTwoChains("onBlur"));var Vi=b()(oi&&oi.props&&oi.props.className,Cn);Vi&&(Qn.className=Vi);var wi=Object(A.a)({},Qn);Object(D.c)(oi)&&(wi.ref=Object(D.a)(this.triggerRef,oi.ref));var Ea=e.cloneElement(oi,wi),aa;return(Ct||this.popupRef.current||Wr)&&(aa=e.createElement(tr,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ct&&Nn&&(aa=null),e.createElement(Qe.Provider,{value:this.triggerContextValue},Ea,aa)}}],[{key:"getDerivedStateFromProps",value:function(Ct,dr){var nr=Ct.popupVisible,Wr={};return nr!==void 0&&dr.popupVisible!==nr&&(Wr.popupVisible=nr,Wr.prevPopupVisible=dr.popupVisible),Wr}}]),Ut}(e.Component);return Lt.contextType=Qe,Lt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ne,getDocument:Ue,onPopupVisibleChange:be,afterPopupVisibleChange:be,onPopupAlign:be,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Lt}var Ze=ze(kr.a),bt=function(Lt){var yr=typeof Lt!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:yr,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:yr,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:yr,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:yr,adjustY:1}}}},ut=function(Lt,yr){var xt=Lt.prefixCls,Ut=Lt.disabled,ur=Lt.visible,Ct=Lt.children,dr=Lt.popupElement,nr=Lt.containerWidth,Wr=Lt.animation,En=Lt.transitionName,Cn=Lt.dropdownStyle,Nn=Lt.dropdownClassName,oi=Lt.direction,Qn=oi===void 0?"ltr":oi,Vi=Lt.dropdownMatchSelectWidth,wi=Vi===void 0?!0:Vi,Ea=Lt.dropdownRender,aa=Lt.dropdownAlign,Ca=Lt.getPopupContainer,fa=Lt.empty,ha=Lt.getTriggerDOMNode,qi=Object(x.a)(Lt,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Ma="".concat(xt,"-dropdown"),za=dr;Ea&&(za=Ea(dr));var la=e.useMemo(function(){return bt(wi)},[wi]),ao=Wr?"".concat(Ma,"-").concat(Wr):En,ka=e.useRef(null);e.useImperativeHandle(yr,function(){return{getPopupElement:function(){return ka.current}}});var Ba=Object(A.a)({minWidth:nr},Cn);return typeof wi=="number"?Ba.width=wi:wi&&(Ba.width=nr),e.createElement(Ze,Object.assign({},qi,{showAction:[],hideAction:[],popupPlacement:Qn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:la,prefixCls:Ma,popupTransitionName:ao,popup:e.createElement("div",{ref:ka},za),popupAlign:aa,popupVisible:ur,getPopupContainer:Ca,popupClassName:b()(Nn,Object(y.a)({},"".concat(Ma,"-empty"),fa)),popupStyle:Ba,getTriggerDOMNode:ha}),Ct)},Gt=e.forwardRef(ut);Gt.displayName="SelectTrigger";var Mr=Gt,Lr="RC_SELECT_INTERNAL_PROPS_MARK";function Gr(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Lt=e.useState(!1),yr=Object(g.a)(Lt,2),xt=yr[0],Ut=yr[1],ur=e.useRef(null),Ct=function(){window.clearTimeout(ur.current)};e.useEffect(function(){return Ct},[]);var dr=function(Wr,En){Ct(),ur.current=window.setTimeout(function(){Ut(Wr),En&&En()},tr)};return[xt,dr,Ct]}var Ht=d("T5bk"),hn=d("Kwbf");function or(tr,Lt){var yr=tr.key,xt;return"value"in tr&&(xt=tr.value),yr!=null?yr:xt!==void 0?xt:"rc-index-key-".concat(Lt)}function vn(tr){var Lt=[];function yr(xt,Ut){xt.forEach(function(ur){Ut||!("options"in ur)?Lt.push({key:or(ur,Lt.length),groupOption:Ut,data:ur}):(Lt.push({key:or(ur,Lt.length),group:!0,data:ur}),yr(ur.options,!0))})}return yr(tr,!1),Lt}function nn(tr){var Lt=Object(A.a)({},tr);return"props"in Lt||Object.defineProperty(Lt,"props",{get:function(){return Object(hn.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Lt}}),Lt}function Ur(tr,Lt){var yr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=yr.prevValueOptions,Ut=xt===void 0?[]:xt,ur=new Map;return Lt.forEach(function(Ct){if(!Ct.group){var dr=Ct.data;ur.set(dr.value,dr)}}),tr.map(function(Ct){var dr=ur.get(Ct);return dr||(dr=Object(A.a)({},Ut.find(function(nr){return nr._INTERNAL_OPTION_VALUE_===Ct}))),nn(dr)})}var ni=function(Lt,yr){var xt=yr.options,Ut=yr.prevValue,ur=yr.labelInValue,Ct=yr.optionLabelProp,dr=Ur([Lt],xt)[0],nr={value:Lt},Wr,En=cn(Ut);return ur&&(Wr=En.find(function(Cn){return Object(p.a)(Cn)==="object"&&"value"in Cn?Cn.value===Lt:Cn.key===Lt})),Wr&&Object(p.a)(Wr)==="object"&&"label"in Wr?(nr.label=Wr.label,dr&&typeof Wr.label=="string"&&typeof dr[Ct]=="string"&&Wr.label.trim()!==dr[Ct].trim()&&Object(hn.a)(!1,"`label` of `value` is not same as `label` in Select options.")):dr&&Ct in dr?nr.label=dr[Ct]:nr.label=Lt,nr.key=nr.value,nr};function Oi(tr){return cn(tr).join("")}function Hi(tr){return function(Lt,yr){var xt=Lt.toLowerCase();if("options"in yr)return Oi(yr.label).toLowerCase().includes(xt);var Ut=yr[tr],ur=Oi(Ut).toLowerCase();return ur.includes(xt)}}function Ri(tr,Lt,yr){var xt=yr.optionFilterProp,Ut=yr.filterOption,ur=[],Ct;return Ut===!1?Object(f.a)(Lt):(typeof Ut=="function"?Ct=Ut:Ct=Hi(xt),Lt.forEach(function(dr){if("options"in dr){var nr=Ct(tr,dr);if(nr)ur.push(dr);else{var Wr=dr.options.filter(function(En){return Ct(tr,En)});Wr.length&&ur.push(Object(A.a)(Object(A.a)({},dr),{},{options:Wr}))}return}Ct(tr,nn(dr))&&ur.push(dr)}),ur)}function Ni(tr,Lt){if(!Lt||!Lt.length)return null;var yr=!1;function xt(ur,Ct){var dr=Object(Ht.a)(Ct),nr=dr[0],Wr=dr.slice(1);if(!nr)return[ur];var En=ur.split(nr);return yr=yr||En.length>1,En.reduce(function(Cn,Nn){return[].concat(Object(f.a)(Cn),Object(f.a)(xt(Nn,Wr)))},[]).filter(function(Cn){return Cn})}var Ut=xt(tr,Lt);return yr?Ut:null}function Yi(tr,Lt){var yr=Ur([tr],Lt)[0];return yr.disabled}function Qr(tr,Lt,yr,xt){var Ut=cn(Lt).slice().sort(),ur=Object(f.a)(tr),Ct=new Set;return tr.forEach(function(dr){dr.options?dr.options.forEach(function(nr){Ct.add(nr.value)}):Ct.add(dr.value)}),Ut.forEach(function(dr){var nr=xt?dr.value:dr;if(!Ct.has(nr)){var Wr;ur.push(xt?(Wr={},Object(y.a)(Wr,yr,dr.label),Object(y.a)(Wr,"value",nr),Wr):{value:nr})}}),ur}function On(tr,Lt,yr){var xt=e.useRef(null);xt.current={elements:tr.filter(function(Ut){return Ut}),open:Lt,triggerOpen:yr},e.useEffect(function(){function Ut(ur){var Ct=ur.target;xt.current.open&&xt.current.elements.every(function(dr){return!dr.contains(Ct)&&dr!==Ct})&&xt.current.triggerOpen(!1)}return window.addEventListener("mousedown",Ut),function(){return window.removeEventListener("mousedown",Ut)}},[])}function zr(tr){var Lt=e.useRef(tr),yr=e.useMemo(function(){var xt=new Map;Lt.current.forEach(function(ur){var Ct=ur.value,dr=ur.label;Ct!==dr&&xt.set(Ct,dr)});var Ut=tr.map(function(ur){var Ct=xt.get(ur.value);return ur.value===ur.label&&Ct?Object(A.a)(Object(A.a)({},ur),{},{label:Ct}):ur});return Lt.current=Ut,Ut},[tr]);return yr}function fr(tr,Lt){var yr=e.useRef(null),xt=e.useMemo(function(){var ur=new Map;return Lt.forEach(function(Ct){var dr=Ct.data.value;ur.set(dr,Ct)}),ur},[tr,Lt]);yr.current=xt;var Ut=function(Ct){return Ct.map(function(dr){return yr.current.get(dr)}).filter(Boolean)};return Ut}var Nr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Qt(tr){var Lt=tr.prefixCls,yr=tr.components.optionList,xt=tr.convertChildrenToData,Ut=tr.flattenOptions,ur=tr.getLabeledValue,Ct=tr.filterOptions,dr=tr.isValueDisabled,nr=tr.findValueOption,Wr=tr.warningProps,En=tr.fillOptionsWithMissingValue,Cn=tr.omitDOMProps;function Nn(Qn,Vi){var wi,Ea=Qn.prefixCls,aa=Ea===void 0?Lt:Ea,Ca=Qn.className,fa=Qn.id,ha=Qn.open,qi=Qn.defaultOpen,Ma=Qn.options,za=Qn.children,la=Qn.mode,ao=Qn.value,ka=Qn.defaultValue,Ba=Qn.labelInValue,oo=Qn.showSearch,ja=Qn.inputValue,Pa=Qn.searchValue,Fr=Qn.filterOption,Oa=Qn.filterSort,No=Qn.optionFilterProp,Po=No===void 0?"value":No,Qo=Qn.autoClearSearchValue,ss=Qo===void 0?!0:Qo,rs=Qn.onSearch,Ko=Qn.allowClear,$o=Qn.clearIcon,Uo=Qn.showArrow,Wo=Qn.inputIcon,Go=Qn.menuItemSelectedIcon,Oo=Qn.disabled,Ka=Qn.loading,Xa=Qn.defaultActiveFirstOption,bo=Qn.notFoundContent,Eo=bo===void 0?"Not Found":bo,pt=Qn.optionLabelProp,Nt=Qn.backfill,sn=Qn.getInputElement,Mn=Qn.getPopupContainer,hi=Qn.listHeight,ot=hi===void 0?200:hi,ae=Qn.listItemHeight,de=ae===void 0?20:ae,ye=Qn.animation,Ke=Qn.transitionName,ct=Qn.virtual,Bt=Qn.dropdownStyle,Ir=Qn.dropdownClassName,Br=Qn.dropdownMatchSelectWidth,un=Qn.dropdownRender,zn=Qn.dropdownAlign,Rn=Qn.showAction,Fn=Rn===void 0?[]:Rn,Ai=Qn.direction,Di=Qn.tokenSeparators,ya=Qn.tagRender,Ua=Qn.onPopupScroll,to=Qn.onDropdownVisibleChange,go=Qn.onFocus,wo=Qn.onBlur,qo=Qn.onKeyUp,Mo=Qn.onKeyDown,$i=Qn.onMouseDown,To=Qn.onChange,fo=Qn.onSelect,ts=Qn.onDeselect,Jo=Qn.onClear,zo=Qn.internalProps,is=zo===void 0?{}:zo,Rs=Object(x.a)(Qn,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),gs=is.mark===Lr,ps=Cn?Cn(Rs):Rs;Nr.forEach(function(ls){delete ps[ls]});var Ps=Object(e.useRef)(null),Es=Object(e.useRef)(null),Vs=Object(e.useRef)(null),Ks=Object(e.useRef)(null),Gs=Object(e.useMemo)(function(){return(Di||[]).some(function(ls){return[`
`,`\r
`].includes(ls)})},[Di]),ws=Gr(),Os=Object(g.a)(ws,3),$s=Os[0],nl=Os[1],il=Os[2],hl=Object(e.useState)(),Nl=Object(g.a)(hl,2),Al=Nl[0],yl=Nl[1];Object(e.useEffect)(function(){yl("rc_select_".concat(Tn()))},[]);var al=fa||Al,Ms=pt;Ms===void 0&&(Ms=Ma?"label":"children");var Ws=la==="combobox"?!1:Ba,Is=la==="tags"||la==="multiple",bl=oo!==void 0?oo:Is||la==="combobox",wl=Object(e.useRef)(null);e.useImperativeHandle(Vi,function(){return{focus:Vs.current.focus,blur:Vs.current.blur}});var ol=Object(_.a)(ka,{value:ao}),el=Object(g.a)(ol,2),ms=el[0],Ss=el[1],As=Object(e.useMemo)(function(){return pr(ms,{labelInValue:Ws,combobox:la==="combobox"})},[ms,Ws]),Ts=Object(e.useMemo)(function(){return new Set(As)},[As]),Us=Object(e.useState)(null),_l=Object(g.a)(Us,2),Il=_l[0],Sl=_l[1],Zl=Object(e.useState)(""),iu=Object(g.a)(Zl,2),tl=iu[0],xl=iu[1],Ns=tl;la==="combobox"&&ms!==void 0?Ns=ms:Pa!==void 0?Ns=Pa:ja&&(Ns=ja);var Pl=Object(e.useMemo)(function(){var ls=Ma;return ls===void 0&&(ls=xt(za)),la==="tags"&&En&&(ls=En(ls,ms,Ms,Ba)),ls||[]},[Ma,za,la,ms]),uu=Object(e.useMemo)(function(){return Ut(Pl,Qn)},[Pl]),$l=fr(As,uu),au=Object(e.useMemo)(function(){if(!Ns||!bl)return Object(f.a)(Pl);var ls=Ct(Ns,Pl,{optionFilterProp:Po,filterOption:la==="combobox"&&Fr===void 0?function(){return!0}:Fr});return la==="tags"&&ls.every(function(Zo){return Zo[Po]!==Ns})&&ls.unshift({value:Ns,label:Ns,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Oa&&Array.isArray(ls)?Object(f.a)(ls).sort(Oa):ls},[Pl,Ns,la,bl,Oa]),cu=Object(e.useMemo)(function(){return Ut(au,Qn)},[au]);Object(e.useEffect)(function(){Ks.current&&Ks.current.scrollTo&&Ks.current.scrollTo(0)},[Ns]);var Xs=Object(e.useMemo)(function(){var ls=As.map(function(Zo){var ds=$l([Zo]),Cs=ur(Zo,{options:ds,prevValue:ms,labelInValue:Ws,optionLabelProp:Ms});return Object(A.a)(Object(A.a)({},Cs),{},{disabled:dr(Zo,ds)})});return!la&&ls.length===1&&ls[0].value===null&&ls[0].label===null?[]:ls},[ms,Pl,la]);Xs=zr(Xs);var _s=function(Zo,ds,Cs){var js=$l([Zo]),vs=nr([Zo],js)[0];if(!is.skipTriggerSelect){var ul=Ws?ur(Zo,{options:js,prevValue:ms,labelInValue:Ws,optionLabelProp:Ms}):Zo;ds&&fo?fo(ul,vs):!ds&&ts&&ts(ul,vs)}gs&&(ds&&is.onRawSelect?is.onRawSelect(Zo,vs,Cs):!ds&&is.onRawDeselect&&is.onRawDeselect(Zo,vs,Cs))},fl=Object(e.useState)([]),ql=Object(g.a)(fl,2),yu=ql[0],du=ql[1],Ll=function(Zo){if(gs&&is.skipTriggerChange)return;var ds=$l(Zo),Cs=gr(Array.from(Zo),{labelInValue:Ws,options:ds,getLabeledValue:ur,prevValue:ms,optionLabelProp:Ms}),js=Is?Cs:Cs[0];if(To&&(As.length!==0||Cs.length!==0)){var vs=nr(Zo,ds,{prevValueOptions:yu});du(vs.map(function(ul,gl){var vl=Object(A.a)({},ul);return Object.defineProperty(vl,"_INTERNAL_OPTION_VALUE_",{get:function(){return Zo[gl]}}),vl})),To(js,Is?vs:vs[0])}Ss(js)},Xl=function(Zo,ds){var Cs=ds.selected,js=ds.source;if(Oo)return;var vs;Is?(vs=new Set(As),Cs?vs.add(Zo):vs.delete(Zo)):(vs=new Set,vs.add(Zo)),(Is||!Is&&Array.from(As)[0]!==Zo)&&Ll(Array.from(vs)),_s(Zo,!Is||Cs,js),la==="combobox"?(xl(String(Zo)),Sl("")):(!Is||ss)&&(xl(""),Sl(""))},Ou=function(Zo,ds){Xl(Zo,Object(A.a)(Object(A.a)({},ds),{},{source:"option"}))},hu=function(Zo,ds){Xl(Zo,Object(A.a)(Object(A.a)({},ds),{},{source:"selection"}))},bu=la==="combobox"&&sn&&sn()||null,Dl=Object(_.a)(void 0,{defaultValue:qi,value:ha}),Fl=Object(g.a)(Dl,2),jl=Fl[0],Hl=Fl[1],Fs=jl,rl=!Eo&&!au.length;(Oo||rl&&Fs&&la==="combobox")&&(Fs=!1);var Kl=rl?!1:Fs,sl=function(Zo){var ds=Zo!==void 0?Zo:!Fs;jl!==ds&&!Oo&&(Hl(ds),to&&to(ds))};On([Ps.current,Es.current&&Es.current.getPopupElement()],Kl,sl);var Yl=function(Zo,ds,Cs){var js=!0,vs=Zo;Sl(null);var ul=Cs?null:Ni(Zo,Di),gl=ul;if(la==="combobox")ds&&Ll([vs]);else if(ul){vs="",la!=="tags"&&(gl=ul.map(function(ru){var lu=uu.find(function(mu){var pe=mu.data;return pe[Ms]===ru});return lu?lu.data.value:null}).filter(function(ru){return ru!==null}));var vl=Array.from(new Set([].concat(Object(f.a)(As),Object(f.a)(gl))));Ll(vl),vl.forEach(function(ru){_s(ru,!0,"input")}),sl(!1),js=!1}return xl(vs),rs&&Ns!==vs&&rs(vs),js},_u=function(Zo){var ds=Array.from(new Set([].concat(Object(f.a)(As),[Zo])));Ll(ds),ds.forEach(function(Cs){_s(Cs,!0,"input")}),xl("")};Object(e.useEffect)(function(){jl&&!!Oo&&Hl(!1)},[Oo]),Object(e.useEffect)(function(){!Fs&&!Is&&la!=="combobox"&&Yl("",!1,!1)},[Fs]);var wu=wt(),Bl=Object(g.a)(wu,2),El=Bl[0],Ql=Bl[1],Iu=function(Zo){var ds=El(),Cs=Zo.which;if(!Fs&&Cs===T.a.ENTER&&sl(!0),Ql(!!Ns),Cs===T.a.BACKSPACE&&!ds&&Is&&!Ns&&As.length){var js=Zt(Xs,As);js.removedValue!==null&&(Ll(js.values),_s(js.removedValue,!1,"input"))}for(var vs=arguments.length,ul=new Array(vs>1?vs-1:0),gl=1;gl<vs;gl++)ul[gl-1]=arguments[gl];if(Fs&&Ks.current){var vl;(vl=Ks.current).onKeyDown.apply(vl,[Zo].concat(ul))}Mo&&Mo.apply(void 0,[Zo].concat(ul))},Lu=function(Zo){for(var ds=arguments.length,Cs=new Array(ds>1?ds-1:0),js=1;js<ds;js++)Cs[js-1]=arguments[js];if(Fs&&Ks.current){var vs;(vs=Ks.current).onKeyUp.apply(vs,[Zo].concat(Cs))}qo&&qo.apply(void 0,[Zo].concat(Cs))},ou=Object(e.useRef)(!1),eu=function(){nl(!0),Oo||(go&&!ou.current&&go.apply(void 0,arguments),Fn.includes("focus")&&sl(!0)),ou.current=!0},su=function(){if(nl(!1,function(){ou.current=!1,sl(!1)}),Oo)return;Ns&&(la==="tags"?(Yl("",!1,!1),Ll(Array.from(new Set([].concat(Object(f.a)(As),[Ns]))))):la==="multiple"&&xl("")),wo&&wo.apply(void 0,arguments)},Ul=[];Object(e.useEffect)(function(){return function(){Ul.forEach(function(ls){return clearTimeout(ls)}),Ul.splice(0,Ul.length)}},[]);var fu=function(Zo){var ds=Zo.target,Cs=Es.current&&Es.current.getPopupElement();if(Cs&&Cs.contains(ds)){var js=setTimeout(function(){var vl=Ul.indexOf(js);vl!==-1&&Ul.splice(vl,1),il(),Cs.contains(document.activeElement)||Vs.current.focus()});Ul.push(js)}if($i){for(var vs=arguments.length,ul=new Array(vs>1?vs-1:0),gl=1;gl<vs;gl++)ul[gl-1]=arguments[gl];$i.apply(void 0,[Zo].concat(ul))}},pl=Object(e.useState)(0),ml=Object(g.a)(pl,2),Wl=ml[0],as=ml[1],uo=Xa!==void 0?Xa:la!=="combobox",Do=function(Zo,ds){var Cs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},js=Cs.source,vs=js===void 0?"keyboard":js;as(ds),Nt&&la==="combobox"&&Zo!==null&&vs==="keyboard"&&Sl(String(Zo))},Xo=Object(e.useState)(null),Ls=Object(g.a)(Xo,2),zl=Ls[0],Rl=Ls[1],ll=Object(e.useState)({}),Tl=Object(g.a)(ll,2),Ml=Tl[1];function Jl(){Ml({})}Hn(function(){if(Kl){var ls=Math.ceil(Ps.current.offsetWidth);zl!==ls&&Rl(ls)}},[Kl]);var Ys=e.createElement(yr,{ref:Ks,prefixCls:aa,id:al,open:Fs,childrenAsData:!Ma,options:au,flattenOptions:cu,multiple:Is,values:Ts,height:ot,itemHeight:de,onSelect:Ou,onToggleOpen:sl,onActiveValue:Do,defaultActiveFirstOption:uo,notFoundContent:Eo,onScroll:Ua,searchValue:Ns,menuItemSelectedIcon:Go,virtual:ct!==!1&&Br!==!1,onMouseEnter:Jl}),tu,Su=function(){gs&&is.onClear&&is.onClear(),Jo&&Jo(),Ll([]),Yl("",!1,!1)};!Oo&&Ko&&(As.length||Ns)&&(tu=e.createElement(zt,{className:"".concat(aa,"-clear"),onMouseDown:Su,customizeIcon:$o},"\xD7"));var pu=Uo!==void 0?Uo:Ka||!Is&&la!=="combobox",Du;pu&&(Du=e.createElement(zt,{className:b()("".concat(aa,"-arrow"),Object(y.a)({},"".concat(aa,"-arrow-loading"),Ka)),customizeIcon:Wo,customizeIconProps:{loading:Ka,searchValue:Ns,open:Fs,focused:$s,showSearch:bl}}));var Hu=b()(aa,Ca,(wi={},Object(y.a)(wi,"".concat(aa,"-focused"),$s),Object(y.a)(wi,"".concat(aa,"-multiple"),Is),Object(y.a)(wi,"".concat(aa,"-single"),!Is),Object(y.a)(wi,"".concat(aa,"-allow-clear"),Ko),Object(y.a)(wi,"".concat(aa,"-show-arrow"),pu),Object(y.a)(wi,"".concat(aa,"-disabled"),Oo),Object(y.a)(wi,"".concat(aa,"-loading"),Ka),Object(y.a)(wi,"".concat(aa,"-open"),Fs),Object(y.a)(wi,"".concat(aa,"-customize-input"),bu),Object(y.a)(wi,"".concat(aa,"-show-search"),bl),wi));return e.createElement("div",Object.assign({className:Hu},ps,{ref:Ps,onMouseDown:fu,onKeyDown:Iu,onKeyUp:Lu,onFocus:eu,onBlur:su}),$s&&!Fs&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(As.join(", "))),e.createElement(Mr,{ref:Es,disabled:Oo,prefixCls:aa,visible:Kl,popupElement:Ys,containerWidth:zl,animation:ye,transitionName:Ke,dropdownStyle:Bt,dropdownClassName:Ir,direction:Ai,dropdownMatchSelectWidth:Br,dropdownRender:un,dropdownAlign:zn,getPopupContainer:Mn,empty:!Pl.length,getTriggerDOMNode:function(){return wl.current}},e.createElement(Ce,Object.assign({},Qn,{domRef:wl,prefixCls:aa,inputElement:bu,ref:Vs,id:al,showSearch:bl,mode:la,accessibilityIndex:Wl,multiple:Is,tagRender:ya,values:Xs,open:Fs,onToggleOpen:sl,searchValue:Ns,activeValue:Il,onSearch:Yl,onSearchSubmit:_u,onSelect:hu,tokenWithEnter:Gs}))),Du,tu)}var oi=e.forwardRef(Nn);return oi}var xr=d("Zm9Q"),Jr=e.createContext(null),Kr=function(Lt){var yr=Lt.prefixCls,xt=Lt.level,Ut=Lt.isStart,ur=Lt.isEnd;if(!xt)return null;for(var Ct="".concat(yr,"-indent-unit"),dr=[],nr=0;nr<xt;nr+=1){var Wr;dr.push(e.createElement("span",{key:nr,className:b()(Ct,(Wr={},Object(y.a)(Wr,"".concat(Ct,"-start"),Ut[nr]),Object(y.a)(Wr,"".concat(Ct,"-end"),ur[nr]),Wr))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(yr,"-indent")},dr)},en=Kr,ai="open",Yn="close",Si="---",ln=function(tr){Object(l.a)(yr,tr);var Lt=Object(u.a)(yr);function yr(){var xt;return Object(t.a)(this,yr),xt=Lt.apply(this,arguments),xt.state={dragNodeHighlight:!1},xt.onSelectorClick=function(Ut){var ur=xt.props.context.onNodeClick;ur(Ut,So(xt.props)),xt.isSelectable()?xt.onSelect(Ut):xt.onCheck(Ut)},xt.onSelectorDoubleClick=function(Ut){var ur=xt.props.context.onNodeDoubleClick;ur(Ut,So(xt.props))},xt.onSelect=function(Ut){if(xt.isDisabled())return;var ur=xt.props.context.onNodeSelect;Ut.preventDefault(),ur(Ut,So(xt.props))},xt.onCheck=function(Ut){if(xt.isDisabled())return;var ur=xt.props,Ct=ur.disableCheckbox,dr=ur.checked,nr=xt.props.context.onNodeCheck;if(!xt.isCheckable()||Ct)return;Ut.preventDefault();var Wr=!dr;nr(Ut,So(xt.props),Wr)},xt.onMouseEnter=function(Ut){var ur=xt.props.context.onNodeMouseEnter;ur(Ut,So(xt.props))},xt.onMouseLeave=function(Ut){var ur=xt.props.context.onNodeMouseLeave;ur(Ut,So(xt.props))},xt.onContextMenu=function(Ut){var ur=xt.props.context.onNodeContextMenu;ur(Ut,So(xt.props))},xt.onDragStart=function(Ut){var ur=xt.props.context.onNodeDragStart;Ut.stopPropagation(),xt.setState({dragNodeHighlight:!0}),ur(Ut,Object(Ye.a)(xt));try{Ut.dataTransfer.setData("text/plain","")}catch(Ct){}},xt.onDragEnter=function(Ut){var ur=xt.props.context.onNodeDragEnter;Ut.preventDefault(),Ut.stopPropagation(),ur(Ut,Object(Ye.a)(xt))},xt.onDragOver=function(Ut){var ur=xt.props.context.onNodeDragOver;Ut.preventDefault(),Ut.stopPropagation(),ur(Ut,Object(Ye.a)(xt))},xt.onDragLeave=function(Ut){var ur=xt.props.context.onNodeDragLeave;Ut.stopPropagation(),ur(Ut,Object(Ye.a)(xt))},xt.onDragEnd=function(Ut){var ur=xt.props.context.onNodeDragEnd;Ut.stopPropagation(),xt.setState({dragNodeHighlight:!1}),ur(Ut,Object(Ye.a)(xt))},xt.onDrop=function(Ut){var ur=xt.props.context.onNodeDrop;Ut.preventDefault(),Ut.stopPropagation(),xt.setState({dragNodeHighlight:!1}),ur(Ut,Object(Ye.a)(xt))},xt.onExpand=function(Ut){var ur=xt.props.context.onNodeExpand;ur(Ut,So(xt.props))},xt.setSelectHandle=function(Ut){xt.selectHandle=Ut},xt.getNodeState=function(){var Ut=xt.props.expanded;return xt.isLeaf()?null:Ut?ai:Yn},xt.hasChildren=function(){var Ut=xt.props.eventKey,ur=xt.props.context.keyEntities,Ct=ur[Ut]||{},dr=Ct.children;return!!(dr||[]).length},xt.isLeaf=function(){var Ut=xt.props,ur=Ut.isLeaf,Ct=Ut.loaded,dr=xt.props.context.loadData,nr=xt.hasChildren();return ur===!1?!1:ur||!dr&&!nr||dr&&Ct&&!nr},xt.isDisabled=function(){var Ut=xt.props.disabled,ur=xt.props.context.disabled;return!!(ur||Ut)},xt.isCheckable=function(){var Ut=xt.props.checkable,ur=xt.props.context.checkable;return!ur||Ut===!1?!1:ur},xt.syncLoadData=function(Ut){var ur=Ut.expanded,Ct=Ut.loading,dr=Ut.loaded,nr=xt.props.context,Wr=nr.loadData,En=nr.onNodeLoad;if(Ct)return;Wr&&ur&&!xt.isLeaf()&&(!xt.hasChildren()&&!dr&&En(So(xt.props)))},xt.renderSwitcher=function(){var Ut=xt.props,ur=Ut.expanded,Ct=Ut.switcherIcon,dr=xt.props.context,nr=dr.prefixCls,Wr=dr.switcherIcon,En=Ct||Wr;if(xt.isLeaf())return e.createElement("span",{className:b()("".concat(nr,"-switcher"),"".concat(nr,"-switcher-noop"))},typeof En=="function"?En(Object(A.a)(Object(A.a)({},xt.props),{},{isLeaf:!0})):En);var Cn=b()("".concat(nr,"-switcher"),"".concat(nr,"-switcher_").concat(ur?ai:Yn));return e.createElement("span",{onClick:xt.onExpand,className:Cn},typeof En=="function"?En(Object(A.a)(Object(A.a)({},xt.props),{},{isLeaf:!1})):En)},xt.renderCheckbox=function(){var Ut=xt.props,ur=Ut.checked,Ct=Ut.halfChecked,dr=Ut.disableCheckbox,nr=xt.props.context.prefixCls,Wr=xt.isDisabled(),En=xt.isCheckable();if(!En)return null;var Cn=typeof En!="boolean"?En:null;return e.createElement("span",{className:b()("".concat(nr,"-checkbox"),ur&&"".concat(nr,"-checkbox-checked"),!ur&&Ct&&"".concat(nr,"-checkbox-indeterminate"),(Wr||dr)&&"".concat(nr,"-checkbox-disabled")),onClick:xt.onCheck},Cn)},xt.renderIcon=function(){var Ut=xt.props.loading,ur=xt.props.context.prefixCls;return e.createElement("span",{className:b()("".concat(ur,"-iconEle"),"".concat(ur,"-icon__").concat(xt.getNodeState()||"docu"),Ut&&"".concat(ur,"-icon_loading"))})},xt.renderSelector=function(){var Ut=xt.state.dragNodeHighlight,ur=xt.props,Ct=ur.title,dr=ur.selected,nr=ur.icon,Wr=ur.loading,En=ur.data,Cn=xt.props.context,Nn=Cn.prefixCls,oi=Cn.showIcon,Qn=Cn.icon,Vi=Cn.draggable,wi=Cn.loadData,Ea=Cn.titleRender,aa=xt.isDisabled(),Ca="".concat(Nn,"-node-content-wrapper"),fa;if(oi){var ha=nr||Qn;fa=ha?e.createElement("span",{className:b()("".concat(Nn,"-iconEle"),"".concat(Nn,"-icon__customize"))},typeof ha=="function"?ha(xt.props):ha):xt.renderIcon()}else wi&&Wr&&(fa=xt.renderIcon());var qi;typeof Ct=="function"?qi=Ct(En):Ea?qi=Ea(En):qi=Ct;var Ma=e.createElement("span",{className:"".concat(Nn,"-title")},qi);return e.createElement("span",{ref:xt.setSelectHandle,title:typeof Ct=="string"?Ct:"",className:b()("".concat(Ca),"".concat(Ca,"-").concat(xt.getNodeState()||"normal"),!aa&&(dr||Ut)&&"".concat(Nn,"-node-selected"),!aa&&Vi&&"draggable"),draggable:!aa&&Vi||void 0,"aria-grabbed":!aa&&Vi||void 0,onMouseEnter:xt.onMouseEnter,onMouseLeave:xt.onMouseLeave,onContextMenu:xt.onContextMenu,onClick:xt.onSelectorClick,onDoubleClick:xt.onSelectorDoubleClick,onDragStart:Vi?xt.onDragStart:void 0},fa,Ma)},xt}return Object(a.a)(yr,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ut=this.props.selectable,ur=this.props.context.selectable;return typeof Ut=="boolean"?Ut:ur}},{key:"render",value:function(){var Ut,ur=this.props,Ct=ur.eventKey,dr=ur.className,nr=ur.style,Wr=ur.dragOver,En=ur.dragOverGapTop,Cn=ur.dragOverGapBottom,Nn=ur.isLeaf,oi=ur.isStart,Qn=ur.isEnd,Vi=ur.expanded,wi=ur.selected,Ea=ur.checked,aa=ur.halfChecked,Ca=ur.loading,fa=ur.domRef,ha=ur.active,qi=ur.onMouseMove,Ma=Object(x.a)(ur,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),za=this.props.context,la=za.prefixCls,ao=za.filterTreeNode,ka=za.draggable,Ba=za.keyEntities,oo=this.isDisabled(),ja=ta(Ma),Pa=Ba[Ct]||{},Fr=Pa.level,Oa=Qn[Qn.length-1];return e.createElement("div",Object.assign({ref:fa,className:b()(dr,"".concat(la,"-treenode"),(Ut={},Object(y.a)(Ut,"".concat(la,"-treenode-disabled"),oo),Object(y.a)(Ut,"".concat(la,"-treenode-switcher-").concat(Vi?"open":"close"),!Nn),Object(y.a)(Ut,"".concat(la,"-treenode-checkbox-checked"),Ea),Object(y.a)(Ut,"".concat(la,"-treenode-checkbox-indeterminate"),aa),Object(y.a)(Ut,"".concat(la,"-treenode-selected"),wi),Object(y.a)(Ut,"".concat(la,"-treenode-loading"),Ca),Object(y.a)(Ut,"".concat(la,"-treenode-active"),ha),Object(y.a)(Ut,"".concat(la,"-treenode-leaf-last"),Oa),Object(y.a)(Ut,"drag-over",!oo&&Wr),Object(y.a)(Ut,"drag-over-gap-top",!oo&&En),Object(y.a)(Ut,"drag-over-gap-bottom",!oo&&Cn),Object(y.a)(Ut,"filter-node",ao&&ao(So(this.props))),Ut)),style:nr,onDragEnter:ka?this.onDragEnter:void 0,onDragOver:ka?this.onDragOver:void 0,onDragLeave:ka?this.onDragLeave:void 0,onDrop:ka?this.onDrop:void 0,onDragEnd:ka?this.onDragEnd:void 0,onMouseMove:qi},ja),e.createElement(en,{prefixCls:la,level:Fr,isStart:oi,isEnd:Qn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),yr}(e.Component),Or=function(Lt){return e.createElement(Jr.Consumer,null,function(yr){return e.createElement(ln,Object.assign({},Lt,{context:yr}))})};Or.displayName="TreeNode",Or.defaultProps={title:Si},Or.isTreeNode=1;var wn=Or,Xn=.25,Zn=2;function ii(tr,Lt){var yr=tr.slice(),xt=yr.indexOf(Lt);return xt>=0&&yr.splice(xt,1),yr}function Ei(tr,Lt){var yr=tr.slice();return yr.indexOf(Lt)===-1&&yr.push(Lt),yr}function ki(tr){return tr.split("-")}function Fi(tr,Lt){return"".concat(tr,"-").concat(Lt)}function ra(tr){return tr&&tr.type&&tr.type.isTreeNode}function _a(tr,Lt){var yr=[tr],xt=Lt[tr];function Ut(){var ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ur.forEach(function(Ct){var dr=Ct.key,nr=Ct.children;yr.push(dr),Ut(nr)})}return Ut(xt.children),yr}function wa(tr,Lt){var yr=tr.clientY,xt=Lt.selectHandle.getBoundingClientRect(),Ut=xt.top,ur=xt.bottom,Ct=xt.height,dr=Math.max(Ct*Xn,Zn);return yr<=Ut+dr?-1:yr>=ur-dr?1:0}function _o(tr,Lt){if(!tr)return;var yr=Lt.multiple;return yr?tr.slice():tr.length?[tr[0]]:tr}var bi=function(Lt){return Lt};function xn(tr,Lt){if(!tr)return[];var yr=Lt||{},xt=yr.processProps,Ut=xt===void 0?bi:xt,ur=Array.isArray(tr)?tr:[tr];return ur.map(function(Ct){var dr=Ct.children,nr=Object(x.a)(Ct,["children"]),Wr=xn(dr,Lt);return s.a.createElement(wn,Object.assign({},Ut(nr)),Wr)})}function Zi(tr){if(!tr)return null;var Lt;if(Array.isArray(tr))Lt={checkedKeys:tr,halfCheckedKeys:void 0};else if(Object(p.a)(tr)==="object")Lt={checkedKeys:tr.checked||void 0,halfCheckedKeys:tr.halfChecked||void 0};else return Object(hn.a)(!1,"`checkedKeys` is not an array or an object"),null;return Lt}function va(tr,Lt){var yr=new Set;function xt(Ut){if(yr.has(Ut))return;var ur=Lt[Ut];if(!ur)return;yr.add(Ut);var Ct=ur.parent,dr=ur.node;if(dr.disabled)return;Ct&&xt(Ct.key)}return(tr||[]).forEach(function(Ut){xt(Ut)}),Object(f.a)(yr)}function ta(tr){var Lt={};return Object.keys(tr).forEach(function(yr){(yr.startsWith("data-")||yr.startsWith("aria-"))&&(Lt[yr]=tr[yr])}),Lt}function ma(tr,Lt){return tr!=null?tr:Lt}function Qi(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Lt=new Map;function yr(xt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(xt||[]).forEach(function(ur){var Ct=ur.key,dr=ur.children;Object(hn.a)(Ct!=null,"Tree node must have a certain key: [".concat(Ut).concat(Ct,"]"));var nr=String(Ct);Object(hn.a)(!Lt.has(nr)||Ct===null||Ct===void 0,"Same 'key' exist in the Tree: ".concat(nr)),Lt.set(nr,!0),yr(dr,"".concat(Ut).concat(nr," > "))})}yr(tr)}function Ya(tr){function Lt(yr){var xt=Object(xr.a)(yr);return xt.map(function(Ut){if(!ra(Ut))return Object(hn.a)(!Ut,"Tree/TreeNode can only accept TreeNode as children."),null;var ur=Ut.key,Ct=Ut.props,dr=Ct.children,nr=Object(x.a)(Ct,["children"]),Wr=Object(A.a)({key:ur},nr),En=Lt(dr);return En.length&&(Wr.children=En),Wr}).filter(function(Ut){return Ut})}return Lt(tr)}function Wa(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yr=new Set(Lt===!0?[]:Lt),xt=[];function Ut(ur){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ur.map(function(dr,nr){var Wr=Fi(Ct?Ct.pos:"0",nr),En=ma(dr.key,Wr),Cn=Object(A.a)(Object(A.a)({},dr),{},{parent:Ct,pos:Wr,children:null,data:dr,isStart:[].concat(Object(f.a)(Ct?Ct.isStart:[]),[nr===0]),isEnd:[].concat(Object(f.a)(Ct?Ct.isEnd:[]),[nr===ur.length-1])});return xt.push(Cn),Lt===!0||yr.has(En)?Cn.children=Ut(dr.children||[],Cn):Cn.children=[],Cn})}return Ut(tr),xt}function Ao(tr,Lt,yr){var xt;yr?typeof yr=="string"?xt=function(Ct){return Ct[yr]}:typeof yr=="function"&&(xt=function(Ct){return yr(Ct)}):xt=function(Ct,dr){return ma(Ct.key,dr)};function Ut(ur,Ct,dr){var nr=ur?ur.children:tr,Wr=ur?Fi(dr.pos,Ct):"0";if(ur){var En=xt(ur,Wr),Cn={node:ur,index:Ct,pos:Wr,key:En,parentPos:dr.node?dr.pos:null,level:dr.level+1};Lt(Cn)}nr&&nr.forEach(function(Nn,oi){Ut(Nn,oi,{node:ur,pos:Wr,level:dr?dr.level+1:-1})})}Ut(null)}function es(tr){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=Lt.initWrapper,xt=Lt.processEntity,Ut=Lt.onProcessFinished,ur=arguments.length>2?arguments[2]:void 0,Ct={},dr={},nr={posEntities:Ct,keyEntities:dr};return yr&&(nr=yr(nr)||nr),Ao(tr,function(Wr){var En=Wr.node,Cn=Wr.index,Nn=Wr.pos,oi=Wr.key,Qn=Wr.parentPos,Vi=Wr.level,wi={node:En,index:Cn,key:oi,pos:Nn,level:Vi},Ea=ma(oi,Nn);Ct[Nn]=wi,dr[Ea]=wi,wi.parent=Ct[Qn],wi.parent&&(wi.parent.children=wi.parent.children||[],wi.parent.children.push(wi)),xt&&xt(wi,nr)},ur),Ut&&Ut(nr),nr}function so(tr,Lt){var yr=Lt.expandedKeys,xt=Lt.selectedKeys,Ut=Lt.loadedKeys,ur=Lt.loadingKeys,Ct=Lt.checkedKeys,dr=Lt.halfCheckedKeys,nr=Lt.dragOverNodeKey,Wr=Lt.dropPosition,En=Lt.keyEntities,Cn=En[tr],Nn={eventKey:tr,expanded:yr.indexOf(tr)!==-1,selected:xt.indexOf(tr)!==-1,loaded:Ut.indexOf(tr)!==-1,loading:ur.indexOf(tr)!==-1,checked:Ct.indexOf(tr)!==-1,halfChecked:dr.indexOf(tr)!==-1,pos:String(Cn?Cn.pos:""),dragOver:nr===tr&&Wr===0,dragOverGapTop:nr===tr&&Wr===-1,dragOverGapBottom:nr===tr&&Wr===1};return Nn}function So(tr){var Lt=tr.data,yr=tr.expanded,xt=tr.selected,Ut=tr.checked,ur=tr.loaded,Ct=tr.loading,dr=tr.halfChecked,nr=tr.dragOver,Wr=tr.dragOverGapTop,En=tr.dragOverGapBottom,Cn=tr.pos,Nn=tr.active,oi=Object(A.a)(Object(A.a)({},Lt),{},{expanded:yr,selected:xt,checked:Ut,loaded:ur,loading:Ct,halfChecked:dr,dragOver:nr,dragOverGapTop:Wr,dragOverGapBottom:En,pos:Cn,active:Nn});return"props"in oi||Object.defineProperty(oi,"props",{get:function(){return Object(hn.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),tr}}),oi}function xo(tr,Lt){var yr=new Set;return tr.forEach(function(xt){Lt.has(xt)||yr.add(xt)}),yr}function hr(tr){var Lt=tr||{},yr=Lt.disabled,xt=Lt.disableCheckbox,Ut=Lt.checkable;return!!(yr||xt)||Ut===!1}function Sn(tr,Lt,yr,xt){for(var Ut=new Set(tr),ur=new Set,Ct=0;Ct<=yr;Ct+=1){var dr=Lt.get(Ct)||new Set;dr.forEach(function(Cn){var Nn=Cn.key,oi=Cn.node,Qn=Cn.children,Vi=Qn===void 0?[]:Qn;Ut.has(Nn)&&!xt(oi)&&Vi.filter(function(wi){return!xt(wi.node)}).forEach(function(wi){Ut.add(wi.key)})})}for(var nr=new Set,Wr=yr;Wr>=0;Wr-=1){var En=Lt.get(Wr)||new Set;En.forEach(function(Cn){var Nn=Cn.parent,oi=Cn.node;if(xt(oi)||!Cn.parent||nr.has(Cn.parent.key))return;if(xt(Cn.parent.node)){nr.add(Nn.key);return}var Qn=!0,Vi=!1;(Nn.children||[]).filter(function(wi){return!xt(wi.node)}).forEach(function(wi){var Ea=wi.key,aa=Ut.has(Ea);Qn&&!aa&&(Qn=!1),!Vi&&(aa||ur.has(Ea))&&(Vi=!0)}),Qn&&Ut.add(Nn.key),Vi&&ur.add(Nn.key),nr.add(Nn.key)})}return{checkedKeys:Array.from(Ut),halfCheckedKeys:Array.from(xo(ur,Ut))}}function dn(tr,Lt,yr,xt,Ut){for(var ur=new Set(tr),Ct=new Set(Lt),dr=0;dr<=xt;dr+=1){var nr=yr.get(dr)||new Set;nr.forEach(function(Nn){var oi=Nn.key,Qn=Nn.node,Vi=Nn.children,wi=Vi===void 0?[]:Vi;!ur.has(oi)&&!Ct.has(oi)&&!Ut(Qn)&&wi.filter(function(Ea){return!Ut(Ea.node)}).forEach(function(Ea){ur.delete(Ea.key)})})}Ct=new Set;for(var Wr=new Set,En=xt;En>=0;En-=1){var Cn=yr.get(En)||new Set;Cn.forEach(function(Nn){var oi=Nn.parent,Qn=Nn.node;if(Ut(Qn)||!Nn.parent||Wr.has(Nn.parent.key))return;if(Ut(Nn.parent.node)){Wr.add(oi.key);return}var Vi=!0,wi=!1;(oi.children||[]).filter(function(Ea){return!Ut(Ea.node)}).forEach(function(Ea){var aa=Ea.key,Ca=ur.has(aa);Vi&&!Ca&&(Vi=!1),!wi&&(Ca||Ct.has(aa))&&(wi=!0)}),Vi||ur.delete(oi.key),wi&&Ct.add(oi.key),Wr.add(oi.key)})}return{checkedKeys:Array.from(ur),halfCheckedKeys:Array.from(xo(Ct,ur))}}function Kn(tr,Lt,yr,xt){var Ut=[],ur;xt?ur=xt:ur=hr;var Ct=new Set(tr.filter(function(En){var Cn=!!yr[En];return Cn||Ut.push(En),Cn})),dr=new Map,nr=0;Object.keys(yr).forEach(function(En){var Cn=yr[En],Nn=Cn.level,oi=dr.get(Nn);oi||(oi=new Set,dr.set(Nn,oi)),oi.add(Cn),nr=Math.max(nr,Nn)}),Object(hn.a)(!Ut.length,"Tree missing follow keys: ".concat(Ut.slice(0,100).map(function(En){return"'".concat(En,"'")}).join(", ")));var Wr;return Lt===!0?Wr=Sn(Ct,dr,nr,ur):Wr=dn(Ct,Lt.halfCheckedKeys,dr,nr,ur),Wr}var si=d("YrtM"),vi=d("+nKL"),pi=function(Lt,yr){var xt=Lt.className,Ut=Lt.style,ur=Lt.motion,Ct=Lt.motionNodes,dr=Lt.motionType,nr=Lt.onMotionStart,Wr=Lt.onMotionEnd,En=Lt.active,Cn=Lt.treeNodeRequiredProps,Nn=Object(x.a)(Lt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),oi=e.useState(!0),Qn=Object(g.a)(oi,2),Vi=Qn[0],wi=Qn[1],Ea=e.useContext(Jr),aa=Ea.prefixCls,Ca=e.useRef(!1),fa=function(){Ca.current||Wr(),Ca.current=!0};return Object(e.useEffect)(function(){Ct&&dr==="hide"&&Vi&&wi(!1)},[Ct]),Object(e.useEffect)(function(){return Ct&&nr(),function(){Ct&&fa()}},[]),Ct?e.createElement(oe,Object.assign({ref:yr,visible:Vi},ur,{motionAppear:dr==="show",onAppearEnd:fa,onLeaveEnd:fa}),function(ha,qi){var Ma=ha.className,za=ha.style;return e.createElement("div",{ref:qi,className:b()("".concat(aa,"-treenode-motion"),Ma),style:za},Ct.map(function(la){var ao=la.data,ka=ao.key,Ba=Object(x.a)(ao,["key"]),oo=la.isStart,ja=la.isEnd;delete Ba.children;var Pa=so(ka,Cn);return e.createElement(wn,Object.assign({},Ba,Pa,{active:En,data:la.data,key:ka,isStart:oo,isEnd:ja}))}))}):e.createElement(wn,Object.assign({domRef:yr,className:xt,style:Ut},Nn,{active:En}))};pi.displayName="MotionTreeNode";var di=e.forwardRef(pi),Ki=di;function Mi(){var tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yr=tr.length,xt=Lt.length;if(Math.abs(yr-xt)!==1)return{add:!1,key:null};function Ut(ur,Ct){var dr=new Map;ur.forEach(function(Wr){dr.set(Wr,!0)});var nr=Ct.filter(function(Wr){return!dr.has(Wr)});return nr.length===1?nr[0]:null}return yr<xt?{add:!0,key:Ut(tr,Lt)}:{add:!1,key:Ut(Lt,tr)}}function pa(tr,Lt,yr){var xt=tr.findIndex(function(dr){var nr=dr.data;return nr.key===yr}),Ut=tr[xt+1],ur=Lt.findIndex(function(dr){var nr=dr.data;return nr.key===yr});if(Ut){var Ct=Lt.findIndex(function(dr){var nr=dr.data;return nr.key===Ut.data.key});return Lt.slice(ur+1,Ct)}return Lt.slice(ur+1)}var _i={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},da=function(){},na="RC_TREE_MOTION_".concat(Math.random()),Sa={key:na},Aa={key:na,level:0,index:0,pos:"0",node:Sa},ua={parent:null,children:[],pos:Aa.pos,data:Sa,isStart:[],isEnd:[]};function La(tr,Lt,yr,xt){return Lt===!1||!yr?tr:tr.slice(0,Math.ceil(yr/xt)+1)}function sa(tr){var Lt=tr.data.key,yr=tr.pos;return ma(Lt,yr)}function co(tr){for(var Lt=String(tr.data.key),yr=tr;yr.parent;)yr=yr.parent,Lt="".concat(yr.data.key," > ").concat(Lt);return Lt}var no=function(Lt,yr){var xt=Lt.prefixCls,Ut=Lt.data,ur=Lt.selectable,Ct=Lt.checkable,dr=Lt.expandedKeys,nr=Lt.selectedKeys,Wr=Lt.checkedKeys,En=Lt.loadedKeys,Cn=Lt.loadingKeys,Nn=Lt.halfCheckedKeys,oi=Lt.keyEntities,Qn=Lt.disabled,Vi=Lt.dragging,wi=Lt.dragOverNodeKey,Ea=Lt.dropPosition,aa=Lt.motion,Ca=Lt.height,fa=Lt.itemHeight,ha=Lt.virtual,qi=Lt.focusable,Ma=Lt.activeItem,za=Lt.focused,la=Lt.tabIndex,ao=Lt.onKeyDown,ka=Lt.onFocus,Ba=Lt.onBlur,oo=Lt.onActiveChange,ja=Lt.onListChangeStart,Pa=Lt.onListChangeEnd,Fr=Object(x.a)(Lt,["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"]),Oa=e.useRef(null);e.useImperativeHandle(yr,function(){return{scrollTo:function(Ke){Oa.current.scrollTo(Ke)}}});var No=e.useState(dr),Po=Object(g.a)(No,2),Qo=Po[0],ss=Po[1],rs=e.useState(Ut),Ko=Object(g.a)(rs,2),$o=Ko[0],Uo=Ko[1],Wo=e.useState(Ut),Go=Object(g.a)(Wo,2),Oo=Go[0],Ka=Go[1],Xa=e.useState([]),bo=Object(g.a)(Xa,2),Eo=bo[0],pt=bo[1],Nt=e.useState(null),sn=Object(g.a)(Nt,2),Mn=sn[0],hi=sn[1];function ot(){Uo(Ut),Ka(Ut),pt([]),hi(null),Pa()}e.useEffect(function(){ss(dr);var ye=Mi(Qo,dr);if(ye.key!==null)if(ye.add){var Ke=$o.findIndex(function(zn){var Rn=zn.data.key;return Rn===ye.key}),ct=La(pa($o,Ut,ye.key),ha,Ca,fa),Bt=$o.slice();Bt.splice(Ke+1,0,ua),Ka(Bt),pt(ct),hi("show")}else{var Ir=Ut.findIndex(function(zn){var Rn=zn.data.key;return Rn===ye.key}),Br=La(pa(Ut,$o,ye.key),ha,Ca,fa),un=Ut.slice();un.splice(Ir+1,0,ua),Ka(un),pt(Br),hi("hide")}else $o!==Ut&&(Uo(Ut),Ka(Ut))},[dr,Ut]),e.useEffect(function(){Vi||ot()},[Vi]);var ae=aa?Oo:Ut,de={expandedKeys:dr,selectedKeys:nr,loadedKeys:En,loadingKeys:Cn,checkedKeys:Wr,halfCheckedKeys:Nn,dragOverNodeKey:wi,dropPosition:Ea,keyEntities:oi};return e.createElement(e.Fragment,null,za&&Ma&&e.createElement("span",{style:_i,"aria-live":"assertive"},co(Ma)),e.createElement("div",{role:"tree"},e.createElement("input",{style:_i,disabled:qi===!1||Qn,tabIndex:qi!==!1?la:null,onKeyDown:ao,onFocus:ka,onBlur:Ba,value:"",onChange:da})),e.createElement(vi.a,Object.assign({},Fr,{data:ae,itemKey:sa,height:Ca,fullHeight:!1,virtual:ha,itemHeight:fa,prefixCls:"".concat(xt,"-list"),ref:Oa}),function(ye){var Ke=ye.pos,ct=ye.data,Bt=ct.key,Ir=Object(x.a)(ct,["key"]),Br=ye.isStart,un=ye.isEnd,zn=ma(Bt,Ke);delete Ir.children;var Rn=so(zn,de);return e.createElement(Ki,Object.assign({},Ir,Rn,{active:Ma&&Bt===Ma.data.key,pos:Ke,data:ye.data,isStart:Br,isEnd:un,motion:aa,motionNodes:Bt===na?Eo:null,motionType:Mn,onMotionStart:ja,onMotionEnd:ot,treeNodeRequiredProps:de,onMouseMove:function(){oo(null)}}))}))},ca=e.forwardRef(no);ca.displayName="NodeList";var yo=ca,lo=function(tr){Object(l.a)(yr,tr);var Lt=Object(u.a)(yr);function yr(){var xt;return Object(t.a)(this,yr),xt=Lt.apply(this,arguments),xt.destroyed=!1,xt.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},xt.listRef=e.createRef(),xt.onNodeDragStart=function(Ut,ur){var Ct=xt.state,dr=Ct.expandedKeys,nr=Ct.keyEntities,Wr=xt.props.onDragStart,En=ur.props.eventKey;xt.dragNode=ur;var Cn=ii(dr,En);xt.setState({dragging:!0,dragNodesKeys:_a(En,nr)}),xt.setExpandedKeys(Cn),Wr&&Wr({event:Ut,node:So(ur.props)})},xt.onNodeDragEnter=function(Ut,ur){var Ct=xt.state,dr=Ct.expandedKeys,nr=Ct.keyEntities,Wr=Ct.dragNodesKeys,En=xt.props.onDragEnter,Cn=ur.props,Nn=Cn.pos,oi=Cn.eventKey;if(!xt.dragNode||Wr.indexOf(oi)!==-1)return;var Qn=wa(Ut,ur);if(xt.dragNode.props.eventKey===oi&&Qn===0){xt.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){xt.setState({dragOverNodeKey:oi,dropPosition:Qn}),xt.delayedDragEnterLogic||(xt.delayedDragEnterLogic={}),Object.keys(xt.delayedDragEnterLogic).forEach(function(Vi){clearTimeout(xt.delayedDragEnterLogic[Vi])}),xt.delayedDragEnterLogic[Nn]=window.setTimeout(function(){if(!xt.state.dragging)return;var Vi=Object(f.a)(dr),wi=nr[oi];wi&&(wi.children||[]).length&&(Vi=Ei(dr,oi)),"expandedKeys"in xt.props||xt.setExpandedKeys(Vi),En&&En({event:Ut,node:So(ur.props),expandedKeys:Vi})},400)},0)},xt.onNodeDragOver=function(Ut,ur){var Ct=xt.state.dragNodesKeys,dr=xt.props.onDragOver,nr=ur.props.eventKey;if(Ct.indexOf(nr)!==-1)return;if(xt.dragNode&&nr===xt.state.dragOverNodeKey){var Wr=wa(Ut,ur);if(Wr===xt.state.dropPosition)return;xt.setState({dropPosition:Wr})}dr&&dr({event:Ut,node:So(ur.props)})},xt.onNodeDragLeave=function(Ut,ur){var Ct=xt.props.onDragLeave;xt.setState({dragOverNodeKey:""}),Ct&&Ct({event:Ut,node:So(ur.props)})},xt.onNodeDragEnd=function(Ut,ur){var Ct=xt.props.onDragEnd;xt.setState({dragOverNodeKey:""}),xt.cleanDragState(),Ct&&Ct({event:Ut,node:So(ur.props)}),xt.dragNode=null},xt.onNodeDrop=function(Ut,ur){var Ct=xt.state,dr=Ct.dragNodesKeys,nr=dr===void 0?[]:dr,Wr=Ct.dropPosition,En=xt.props.onDrop,Cn=ur.props,Nn=Cn.eventKey,oi=Cn.pos;if(xt.setState({dragOverNodeKey:""}),xt.cleanDragState(),nr.indexOf(Nn)!==-1){Object(hn.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Qn=ki(oi),Vi={event:Ut,node:So(ur.props),dragNode:xt.dragNode?So(xt.dragNode.props):null,dragNodesKeys:nr.slice(),dropPosition:Wr+Number(Qn[Qn.length-1]),dropToGap:!1};Wr!==0&&(Vi.dropToGap=!0),En&&En(Vi),xt.dragNode=null},xt.cleanDragState=function(){var Ut=xt.state.dragging;Ut&&xt.setState({dragging:!1})},xt.onNodeClick=function(Ut,ur){var Ct=xt.props.onClick;Ct&&Ct(Ut,ur)},xt.onNodeDoubleClick=function(Ut,ur){var Ct=xt.props.onDoubleClick;Ct&&Ct(Ut,ur)},xt.onNodeSelect=function(Ut,ur){var Ct=xt.state.selectedKeys,dr=xt.state.keyEntities,nr=xt.props,Wr=nr.onSelect,En=nr.multiple,Cn=ur.selected,Nn=ur.key,oi=!Cn;oi?En?Ct=Ei(Ct,Nn):Ct=[Nn]:Ct=ii(Ct,Nn);var Qn=Ct.map(function(Vi){var wi=dr[Vi];return wi?wi.node:null}).filter(function(Vi){return Vi});xt.setUncontrolledState({selectedKeys:Ct}),Wr&&Wr(Ct,{event:"select",selected:oi,node:ur,selectedNodes:Qn,nativeEvent:Ut.nativeEvent})},xt.onNodeCheck=function(Ut,ur,Ct){var dr=xt.state,nr=dr.keyEntities,Wr=dr.checkedKeys,En=dr.halfCheckedKeys,Cn=xt.props,Nn=Cn.checkStrictly,oi=Cn.onCheck,Qn=ur.key,Vi,wi={event:"check",node:ur,checked:Ct,nativeEvent:Ut.nativeEvent};if(Nn){var Ea=Ct?Ei(Wr,Qn):ii(Wr,Qn),aa=ii(En,Qn);Vi={checked:Ea,halfChecked:aa},wi.checkedNodes=Ea.map(function(za){return nr[za]}).filter(function(za){return za}).map(function(za){return za.node}),xt.setUncontrolledState({checkedKeys:Ea})}else{var Ca=Kn([].concat(Object(f.a)(Wr),[Qn]),!0,nr),fa=Ca.checkedKeys,ha=Ca.halfCheckedKeys;if(!Ct){var qi=new Set(fa);qi.delete(Qn);var Ma=Kn(Array.from(qi),{checked:!1,halfCheckedKeys:ha},nr);fa=Ma.checkedKeys,ha=Ma.halfCheckedKeys}Vi=fa,wi.checkedNodes=[],wi.checkedNodesPositions=[],wi.halfCheckedKeys=ha,fa.forEach(function(za){var la=nr[za];if(!la)return;var ao=la.node,ka=la.pos;wi.checkedNodes.push(ao),wi.checkedNodesPositions.push({node:ao,pos:ka})}),xt.setUncontrolledState({checkedKeys:fa},!1,{halfCheckedKeys:ha})}oi&&oi(Vi,wi)},xt.onNodeLoad=function(Ut){return new Promise(function(ur){xt.setState(function(Ct){var dr=Ct.loadedKeys,nr=dr===void 0?[]:dr,Wr=Ct.loadingKeys,En=Wr===void 0?[]:Wr,Cn=xt.props,Nn=Cn.loadData,oi=Cn.onLoad,Qn=Ut.key;if(!Nn||nr.indexOf(Qn)!==-1||En.indexOf(Qn)!==-1)return{};var Vi=Nn(Ut);return Vi.then(function(){var wi=xt.state,Ea=wi.loadedKeys,aa=wi.loadingKeys,Ca=Ei(Ea,Qn),fa=ii(aa,Qn);oi&&oi(Ca,{event:"load",node:Ut}),xt.setUncontrolledState({loadedKeys:Ca}),xt.setState({loadingKeys:fa}),ur()}),{loadingKeys:Ei(En,Qn)}})})},xt.onNodeMouseEnter=function(Ut,ur){var Ct=xt.props.onMouseEnter;Ct&&Ct({event:Ut,node:ur})},xt.onNodeMouseLeave=function(Ut,ur){var Ct=xt.props.onMouseLeave;Ct&&Ct({event:Ut,node:ur})},xt.onNodeContextMenu=function(Ut,ur){var Ct=xt.props.onRightClick;Ct&&(Ut.preventDefault(),Ct({event:Ut,node:ur}))},xt.onFocus=function(){var Ut=xt.props.onFocus;xt.setState({focused:!0}),Ut&&Ut.apply(void 0,arguments)},xt.onBlur=function(){var Ut=xt.props.onBlur;xt.setState({focused:!1}),xt.onActiveChange(null),Ut&&Ut.apply(void 0,arguments)},xt.getTreeNodeRequiredProps=function(){var Ut=xt.state,ur=Ut.expandedKeys,Ct=Ut.selectedKeys,dr=Ut.loadedKeys,nr=Ut.loadingKeys,Wr=Ut.checkedKeys,En=Ut.halfCheckedKeys,Cn=Ut.dragOverNodeKey,Nn=Ut.dropPosition,oi=Ut.keyEntities;return{expandedKeys:ur||[],selectedKeys:Ct||[],loadedKeys:dr||[],loadingKeys:nr||[],checkedKeys:Wr||[],halfCheckedKeys:En||[],dragOverNodeKey:Cn,dropPosition:Nn,keyEntities:oi}},xt.setExpandedKeys=function(Ut){var ur=xt.state.treeData,Ct=Wa(ur,Ut);xt.setUncontrolledState({expandedKeys:Ut,flattenNodes:Ct},!0)},xt.onNodeExpand=function(Ut,ur){var Ct=xt.state.expandedKeys,dr=xt.state.listChanging,nr=xt.props,Wr=nr.onExpand,En=nr.loadData,Cn=ur.key,Nn=ur.expanded;if(dr)return;var oi=Ct.indexOf(Cn),Qn=!Nn;if(Object(hn.a)(Nn&&oi!==-1||!Nn&&oi===-1,"Expand state not sync with index check"),Qn?Ct=Ei(Ct,Cn):Ct=ii(Ct,Cn),xt.setExpandedKeys(Ct),Wr&&Wr(Ct,{node:ur,expanded:Qn,nativeEvent:Ut.nativeEvent}),Qn&&En){var Vi=xt.onNodeLoad(ur);Vi&&Vi.then(function(){var wi=Wa(xt.state.treeData,Ct);xt.setUncontrolledState({flattenNodes:wi})})}},xt.onListChangeStart=function(){xt.setUncontrolledState({listChanging:!0})},xt.onListChangeEnd=function(){setTimeout(function(){xt.setUncontrolledState({listChanging:!1})})},xt.onActiveChange=function(Ut){var ur=xt.state.activeKey,Ct=xt.props.onActiveChange;if(ur===Ut)return;xt.setState({activeKey:Ut}),Ut!==null&&xt.scrollTo({key:Ut}),Ct&&Ct(Ut)},xt.getActiveItem=function(){var Ut=xt.state,ur=Ut.activeKey,Ct=Ut.flattenNodes;return ur===null?null:Ct.find(function(dr){var nr=dr.data.key;return nr===ur})||null},xt.offsetActiveKey=function(Ut){var ur=xt.state,Ct=ur.flattenNodes,dr=ur.activeKey,nr=Ct.findIndex(function(Cn){var Nn=Cn.data.key;return Nn===dr});nr===-1&&Ut<0&&(nr=Ct.length),nr=(nr+Ut+Ct.length)%Ct.length;var Wr=Ct[nr];if(Wr){var En=Wr.data.key;xt.onActiveChange(En)}else xt.onActiveChange(null)},xt.onKeyDown=function(Ut){var ur=xt.state,Ct=ur.activeKey,dr=ur.expandedKeys,nr=ur.checkedKeys,Wr=xt.props,En=Wr.onKeyDown,Cn=Wr.checkable,Nn=Wr.selectable;switch(Ut.which){case T.a.UP:{xt.offsetActiveKey(-1),Ut.preventDefault();break}case T.a.DOWN:{xt.offsetActiveKey(1),Ut.preventDefault();break}}var oi=xt.getActiveItem();if(oi&&oi.data){var Qn=xt.getTreeNodeRequiredProps(),Vi=oi.data.isLeaf===!1||!!(oi.data.children||[]).length,wi=So(Object(A.a)(Object(A.a)({},so(Ct,Qn)),{},{data:oi.data,active:!0}));switch(Ut.which){case T.a.LEFT:{Vi&&dr.includes(Ct)?xt.onNodeExpand({},wi):oi.parent&&xt.onActiveChange(oi.parent.data.key),Ut.preventDefault();break}case T.a.RIGHT:{Vi&&!dr.includes(Ct)?xt.onNodeExpand({},wi):oi.children&&oi.children.length&&xt.onActiveChange(oi.children[0].data.key),Ut.preventDefault();break}case T.a.ENTER:case T.a.SPACE:{Cn&&!wi.disabled&&wi.checkable!==!1&&!wi.disableCheckbox?xt.onNodeCheck({},wi,!nr.includes(Ct)):!Cn&&Nn&&!wi.disabled&&wi.selectable!==!1&&xt.onNodeSelect({},wi);break}}}En&&En(Ut)},xt.setUncontrolledState=function(Ut){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(xt.destroyed)return;var dr=!1,nr=!0,Wr={};Object.keys(Ut).forEach(function(En){if(En in xt.props){nr=!1;return}dr=!0,Wr[En]=Ut[En]}),dr&&(!ur||nr)&&xt.setState(Object(A.a)(Object(A.a)({},Wr),Ct))},xt.scrollTo=function(Ut){xt.listRef.current.scrollTo(Ut)},xt}return Object(a.a)(yr,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Ut,ur=this.state,Ct=ur.focused,dr=ur.flattenNodes,nr=ur.keyEntities,Wr=ur.dragging,En=ur.activeKey,Cn=this.props,Nn=Cn.prefixCls,oi=Cn.className,Qn=Cn.style,Vi=Cn.showLine,wi=Cn.focusable,Ea=Cn.tabIndex,aa=Ea===void 0?0:Ea,Ca=Cn.selectable,fa=Cn.showIcon,ha=Cn.icon,qi=Cn.switcherIcon,Ma=Cn.draggable,za=Cn.checkable,la=Cn.checkStrictly,ao=Cn.disabled,ka=Cn.motion,Ba=Cn.loadData,oo=Cn.filterTreeNode,ja=Cn.height,Pa=Cn.itemHeight,Fr=Cn.virtual,Oa=Cn.titleRender,No=Cn.onContextMenu,Po=ta(this.props);return e.createElement(Jr.Provider,{value:{prefixCls:Nn,selectable:Ca,showIcon:fa,icon:ha,switcherIcon:qi,draggable:Ma,checkable:za,checkStrictly:la,disabled:ao,keyEntities:nr,loadData:Ba,filterTreeNode:oo,titleRender:Oa,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},e.createElement("div",{className:b()(Nn,oi,(Ut={},Object(y.a)(Ut,"".concat(Nn,"-show-line"),Vi),Object(y.a)(Ut,"".concat(Nn,"-focused"),Ct),Object(y.a)(Ut,"".concat(Nn,"-active-focused"),En!==null),Ut))},e.createElement(yo,Object.assign({ref:this.listRef,prefixCls:Nn,style:Qn,data:dr,disabled:ao,selectable:Ca,checkable:!!za,motion:ka,dragging:Wr,height:ja,itemHeight:Pa,virtual:Fr,focusable:wi,focused:Ct,tabIndex:aa,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:No},this.getTreeNodeRequiredProps(),Po))))}}],[{key:"getDerivedStateFromProps",value:function(Ut,ur){var Ct=ur.prevProps,dr={prevProps:Ut};function nr(ha){return!Ct&&ha in Ut||Ct&&Ct[ha]!==Ut[ha]}var Wr;if(nr("treeData")?Wr=Ut.treeData:nr("children")&&(Object(hn.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Wr=Ya(Ut.children)),Wr){dr.treeData=Wr;var En=es(Wr);dr.keyEntities=Object(A.a)(Object(y.a)({},na,Aa),En.keyEntities)}var Cn=dr.keyEntities||ur.keyEntities;if(nr("expandedKeys")||Ct&&nr("autoExpandParent"))dr.expandedKeys=Ut.autoExpandParent||!Ct&&Ut.defaultExpandParent?va(Ut.expandedKeys,Cn):Ut.expandedKeys;else if(!Ct&&Ut.defaultExpandAll){var Nn=Object(A.a)({},Cn);delete Nn[na],dr.expandedKeys=Object.keys(Nn).map(function(ha){return Nn[ha].key})}else!Ct&&Ut.defaultExpandedKeys&&(dr.expandedKeys=Ut.autoExpandParent||Ut.defaultExpandParent?va(Ut.defaultExpandedKeys,Cn):Ut.defaultExpandedKeys);if(dr.expandedKeys||delete dr.expandedKeys,Wr||dr.expandedKeys){var oi=Wa(Wr||ur.treeData,dr.expandedKeys||ur.expandedKeys);dr.flattenNodes=oi}if(Ut.selectable&&(nr("selectedKeys")?dr.selectedKeys=_o(Ut.selectedKeys,Ut):!Ct&&Ut.defaultSelectedKeys&&(dr.selectedKeys=_o(Ut.defaultSelectedKeys,Ut))),Ut.checkable){var Qn;if(nr("checkedKeys")?Qn=Zi(Ut.checkedKeys)||{}:!Ct&&Ut.defaultCheckedKeys?Qn=Zi(Ut.defaultCheckedKeys)||{}:Wr&&(Qn=Zi(Ut.checkedKeys)||{checkedKeys:ur.checkedKeys,halfCheckedKeys:ur.halfCheckedKeys}),Qn){var Vi=Qn,wi=Vi.checkedKeys,Ea=wi===void 0?[]:wi,aa=Vi.halfCheckedKeys,Ca=aa===void 0?[]:aa;if(!Ut.checkStrictly){var fa=Kn(Ea,!0,Cn);Ea=fa.checkedKeys,Ca=fa.halfCheckedKeys}dr.checkedKeys=Ea,dr.halfCheckedKeys=Ca}}return nr("loadedKeys")&&(dr.loadedKeys=Ut.loadedKeys),dr}}]),yr}(e.Component);lo.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:[]},lo.TreeNode=wn;var Na=lo,ho=Na,Io=e.createContext(null);function eo(tr,Lt){if(!tr)return!0;var yr=tr.data,xt=yr.disabled,Ut=yr.disableCheckbox;switch(Lt){case"select":return xt;case"checkbox":return xt||Ut}return!1}function Lo(tr,Lt){var yr=e.useCallback(function(Ut){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ct=arguments.length>2?arguments[2]:void 0,dr=tr.get(Ut);return!Ct&&eo(dr,ur)?null:dr},[tr]),xt=e.useCallback(function(Ut){var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Ct=arguments.length>2?arguments[2]:void 0,dr=Lt.get(Ut);return!Ct&&eo(dr,ur)?null:dr},[Lt]);return[yr,xt]}function Va(tr){return e.useMemo(function(){var Lt=new Map,yr=new Map;return tr.forEach(function(xt){Lt.set(xt.key,xt),yr.set(xt.data.value,xt)}),[Lt,yr]},[tr])}var Bo={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ho=function(Lt,yr){var xt=Lt.prefixCls,Ut=Lt.height,ur=Lt.itemHeight,Ct=Lt.virtual,dr=Lt.options,nr=Lt.flattenOptions,Wr=Lt.multiple,En=Lt.searchValue,Cn=Lt.onSelect,Nn=Lt.onToggleOpen,oi=Lt.open,Qn=Lt.notFoundContent,Vi=Lt.onMouseEnter,wi=e.useContext(Io),Ea=wi.checkable,aa=wi.checkedKeys,Ca=wi.halfCheckedKeys,fa=wi.treeExpandedKeys,ha=wi.treeDefaultExpandAll,qi=wi.treeDefaultExpandedKeys,Ma=wi.onTreeExpand,za=wi.treeIcon,la=wi.showTreeIcon,ao=wi.switcherIcon,ka=wi.treeLine,Ba=wi.treeNodeFilterProp,oo=wi.loadData,ja=wi.treeLoadedKeys,Pa=wi.treeMotion,Fr=wi.onTreeLoad,Oa=e.useRef(),No=Object(si.a)(function(){return dr},[oi,dr],function(Rn,Fn){return Fn[0]&&Rn[1]!==Fn[1]}),Po=Va(nr),Qo=Object(g.a)(Po,2),ss=Qo[0],rs=Qo[1],Ko=Lo(ss,rs),$o=Object(g.a)(Ko,2),Uo=$o[0],Wo=$o[1],Go=e.useMemo(function(){return aa.map(function(Rn){var Fn=Wo(Rn);return Fn?Fn.key:null})},[aa]),Oo=e.useMemo(function(){return Ea?{checked:Go,halfChecked:Ca}:null},[Go,Ca,Ea]);e.useEffect(function(){if(oi&&!Wr&&Go.length){var Rn;(Rn=Oa.current)===null||Rn===void 0||Rn.scrollTo({key:Go[0]})}},[oi]);var Ka=String(En).toLowerCase(),Xa=function(Fn){return Ka?String(Fn[Ba]).toLowerCase().includes(Ka):!1},bo=e.useState(qi),Eo=Object(g.a)(bo,2),pt=Eo[0],Nt=Eo[1],sn=e.useState(null),Mn=Object(g.a)(sn,2),hi=Mn[0],ot=Mn[1],ae=e.useMemo(function(){return fa?Object(f.a)(fa):En?hi:pt},[pt,hi,Ka,fa]);e.useEffect(function(){En&&ot(nr.map(function(Rn){return Rn.key}))},[En]);var de=function(Fn){Nt(Fn),ot(Fn),Ma&&Ma(Fn)},ye=function(Fn){Fn.preventDefault()},Ke=function(Fn,Ai){var Di=Ai.node.key,ya=Uo(Di,Ea?"checkbox":"select");ya!==null&&Cn(ya.data.value,{selected:!aa.includes(ya.data.value)}),Wr||Nn(!1)},ct=e.useState(null),Bt=Object(g.a)(ct,2),Ir=Bt[0],Br=Bt[1],un=Uo(Ir);if(e.useImperativeHandle(yr,function(){return{onKeyDown:function(Fn){var Ai,Di=Fn.which;switch(Di){case T.a.UP:case T.a.DOWN:case T.a.LEFT:case T.a.RIGHT:(Ai=Oa.current)===null||Ai===void 0||Ai.onKeyDown(Fn);break;case T.a.ENTER:{un!==null&&Ke(null,{node:{key:Ir},selected:!aa.includes(un.data.value)});break}case T.a.ESC:Nn(!1)}},onKeyUp:function(){}}}),No.length===0)return e.createElement("div",{role:"listbox",className:"".concat(xt,"-empty"),onMouseDown:ye},Qn);var zn={};return ja&&(zn.loadedKeys=ja),ae&&(zn.expandedKeys=ae),e.createElement("div",{onMouseDown:ye,onMouseEnter:Vi},un&&oi&&e.createElement("span",{style:Bo,"aria-live":"assertive"},un.data.value),e.createElement(ho,Object.assign({ref:Oa,focusable:!1,prefixCls:"".concat(xt,"-tree"),treeData:No,height:Ut,itemHeight:ur,virtual:Ct,multiple:Wr,icon:za,showIcon:la,switcherIcon:ao,showLine:ka,loadData:En?null:oo,motion:Pa,checkable:Ea,checkStrictly:!0,checkedKeys:Oo,selectedKeys:Ea?[]:Go,defaultExpandAll:ha},zn,{onActiveChange:Br,onSelect:Ke,onCheck:Ke,onExpand:de,onLoad:Fr,filterTreeNode:Xa})))},Pr=e.forwardRef(Ho);Pr.displayName="OptionList";var An=Pr,Pn=function(){return null},qr=Pn;function er(tr){return Object(xr.a)(tr).map(function(Lt){if(!e.isValidElement(Lt)||!Lt.type)return null;var yr=Lt.key,xt=Lt.props,Ut=xt.children,ur=xt.value,Ct=Object(x.a)(xt,["children","value"]),dr=Object(A.a)({key:yr,value:ur},Ct),nr=er(Ut);return nr.length&&(dr.children=nr),dr}).filter(function(Lt){return Lt})}function Dr(tr){if(!tr)return tr;var Lt=Object(A.a)({},tr);return"props"in Lt||Object.defineProperty(Lt,"props",{get:function(){return Object(hn.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Lt}}),Lt}function lr(tr,Lt,yr,xt,Ut){var ur=null,Ct=null;function dr(){function nr(Wr){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Wr.map(function(Nn,oi){var Qn="".concat(En,"-").concat(oi),Vi=yr.includes(Nn.value),wi=nr(Nn.children||[],Qn,Vi),Ea=e.createElement(qr,Object.assign({},Nn),wi.map(function(Ca){return Ca.node}));if(Lt===Nn.value&&(ur=Ea),Vi){var aa={pos:Qn,node:Ea,children:wi};return Cn||Ct.push(aa),aa}return null}).filter(function(Nn){return Nn})}Ct||(Ct=[],nr(xt),Ct.sort(function(Wr,En){var Cn=Wr.node.props.value,Nn=En.node.props.value,oi=yr.indexOf(Cn),Qn=yr.indexOf(Nn);return oi-Qn}))}Object.defineProperty(tr,"triggerNode",{get:function(){return Object(hn.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),dr(),ur}}),Object.defineProperty(tr,"allCheckedNodes",{get:function(){return Object(hn.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),dr(),Ut?Ct:Ct.map(function(Wr){var En=Wr.node;return En})}})}function on(tr){return Array.isArray(tr)?tr:tr!==void 0?[tr]:[]}function fn(tr,Lt){var yr=new Map;return Lt.forEach(function(xt){var Ut=xt.data;yr.set(Ut.value,Ut)}),tr.map(function(xt){return Dr(yr.get(xt))})}function Wn(tr,Lt){var yr=fn([tr],Lt)[0];return yr?yr.disabled:!1}function Dn(tr){return tr.disabled||tr.disableCheckbox||tr.checkable===!1}function Jn(tr){for(var Lt=tr.parent,yr=0,xt=Lt;xt;)xt=xt.parent,yr+=1;return yr}function Ti(tr){function Lt(xt){return(xt||[]).map(function(Ut){var ur=Ut.value,Ct=Ut.key,dr=Ut.children,nr=Object(A.a)(Object(A.a)({},Ut),{},{key:"key"in Ut?Ct:ur});return dr&&(nr.children=Lt(dr)),nr})}var yr=Wa(Lt(tr),!0);return yr.map(function(xt){return{key:xt.data.key,data:xt.data,level:Jn(xt)}})}function xi(tr){return function(Lt,yr){var xt=yr[tr];return String(xt).toLowerCase().includes(String(Lt).toLowerCase())}}function Bi(tr,Lt,yr){var xt=yr.optionFilterProp,Ut=yr.filterOption;if(Ut===!1)return Lt;var ur;typeof Ut=="function"?ur=Ut:ur=xi(xt);function Ct(dr){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return dr.map(function(Wr){var En=Wr.children,Cn=nr||ur(tr,Dr(Wr)),Nn=Ct(En||[],Cn);return Cn||Nn.length?Object(A.a)(Object(A.a)({},Wr),{},{children:Nn}):null}).filter(function(Wr){return Wr})}return Ct(Lt)}function ea(tr,Lt,yr,xt){var Ut=new Map;return on(Lt).forEach(function(ur){ur&&Object(p.a)(ur)==="object"&&"value"in ur&&Ut.set(ur.value,ur)}),tr.map(function(ur){var Ct={value:ur},dr=yr(ur,"select",!0),nr=dr?xt(dr.data):ur;if(Ut.has(ur)){var Wr=Ut.get(ur);Ct.label="label"in Wr?Wr.label:nr,"halfChecked"in Wr&&(Ct.halfChecked=Wr.halfChecked)}else Ct.label=nr;return Ct})}function Ha(tr,Lt){var yr=new Set(tr);return yr.add(Lt),Array.from(yr)}function Qa(tr,Lt){var yr=new Set(tr);return yr.delete(Lt),Array.from(yr)}function io(tr){var Lt=tr.searchPlaceholder,yr=tr.treeCheckStrictly,xt=tr.treeCheckable,Ut=tr.labelInValue,ur=tr.value,Ct=tr.multiple;Object(hn.a)(!Lt,"`searchPlaceholder` has been removed."),yr&&Ut===!1&&Object(hn.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ut||yr)&&Object(hn.a)(on(ur).every(function(dr){return dr&&Object(p.a)(dr)==="object"&&"value"in dr}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),yr||Ct||xt?Object(hn.a)(!ur||Array.isArray(ur),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(hn.a)(!Array.isArray(ur),"`value` should not be array when `TreeSelect` is single mode.")}var Ja=io,Ga=10;function Ra(tr,Lt){var yr=Lt.id,xt=Lt.pId,Ut=Lt.rootPId,ur={},Ct=[],dr=tr.map(function(nr){var Wr=Object(A.a)({},nr),En=Wr[yr];return ur[En]=Wr,Wr.key=Wr.key||En,Wr});return dr.forEach(function(nr){var Wr=nr[xt],En=ur[Wr];En&&(En.children=En.children||[],En.children.push(nr)),(Wr===Ut||!En&&Ut===null)&&Ct.push(nr)}),Ct}function ia(tr,Lt){var yr=0,xt=new Set;function Ut(ur){return(ur||[]).map(function(Ct){var dr=Ct.key,nr=Ct.value,Wr=Ct.children,En=Object(x.a)(Ct,["key","value","children"]),Cn="value"in Ct?nr:dr,Nn=Object(A.a)(Object(A.a)({},En),{},{key:dr!=null?dr:Cn,value:Cn,title:Lt(Ct)});return"children"in Ct&&(Nn.children=Ut(Wr)),Nn})}return Ut(tr)}function qe(tr,Lt,yr){var xt=yr.getLabelProp,Ut=yr.simpleMode,ur=e.useRef({});return tr?(ur.current.formatTreeData=ur.current.treeData===tr?ur.current.formatTreeData:ia(Ut?Ra(tr,Object(A.a)({id:"id",pId:"pId",rootPId:null},Ut!==!0?Ut:{})):tr,xt),ur.current.treeData=tr):ur.current.formatTreeData=ur.current.children===Lt?ur.current.formatTreeData:ia(er(Lt),xt),ur.current.formatTreeData}var rr="SHOW_ALL",Rr="SHOW_PARENT",Cr="SHOW_CHILD";function pn(tr,Lt,yr){var xt=new Set(tr);return Lt===Cr?tr.filter(function(Ut){var ur=yr[Ut];return!(ur&&ur.children&&ur.children.every(function(Ct){var dr=Ct.node;return Dn(dr)||xt.has(dr.key)}))}):Lt===Rr?tr.filter(function(Ut){var ur=yr[Ut],Ct=ur?ur.parent:null;return!(Ct&&!Dn(Ct.node)&&xt.has(Ct.node.key))}):tr}function Vr(tr,Lt){var yr=Lt.value,xt=Lt.getEntityByValue,Ut=Lt.getEntityByKey,ur=Lt.treeConduction,Ct=Lt.showCheckedStrategy,dr=Lt.conductKeyEntities,nr=Lt.getLabelProp;return e.useMemo(function(){var Wr=tr;if(ur){var En=pn(tr.map(function(Cn){var Nn=xt(Cn);return Nn?Nn.key:Cn}),Ct,dr);Wr=En.map(function(Cn){var Nn=Ut(Cn);return Nn?Nn.data.value:Cn})}return ea(Wr,yr,xt,nr)},[tr,yr,ur,Ct,xt])}var br=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],In=Qt({prefixCls:"rc-tree-select",components:{optionList:An},convertChildrenToData:function(){return null},flattenOptions:Ti,getLabeledValue:ni,filterOptions:Bi,isValueDisabled:Wn,findValueOption:fn,omitDOMProps:function(Lt){var yr=Object(A.a)({},Lt);return br.forEach(function(xt){delete yr[xt]}),yr}});In.displayName="Select";var Sr=e.forwardRef(function(tr,Lt){var yr=tr.multiple,xt=tr.treeCheckable,Ut=tr.treeCheckStrictly,ur=tr.showCheckedStrategy,Ct=ur===void 0?"SHOW_CHILD":ur,dr=tr.labelInValue,nr=tr.loadData,Wr=tr.treeLoadedKeys,En=tr.treeNodeFilterProp,Cn=En===void 0?"value":En,Nn=tr.treeNodeLabelProp,oi=tr.treeDataSimpleMode,Qn=tr.treeData,Vi=tr.treeExpandedKeys,wi=tr.treeDefaultExpandedKeys,Ea=tr.treeDefaultExpandAll,aa=tr.children,Ca=tr.treeIcon,fa=tr.showTreeIcon,ha=tr.switcherIcon,qi=tr.treeLine,Ma=tr.treeMotion,za=tr.filterTreeNode,la=tr.dropdownPopupAlign,ao=tr.onChange,ka=tr.onTreeExpand,Ba=tr.onTreeLoad,oo=tr.onDropdownVisibleChange,ja=tr.onSelect,Pa=tr.onDeselect,Fr=xt||Ut,Oa=yr||Fr,No=xt&&!Ut,Po=Ut||dr,Qo=e.useRef(null);e.useImperativeHandle(Lt,function(){return{focus:Qo.current.focus,blur:Qo.current.blur}});var ss=function(Di){return Qn&&Di.label||Di.title},rs=function(Di){return Nn?Di[Nn]:ss(Di)},Ko=qe(Qn,aa,{getLabelProp:ss,simpleMode:oi}),$o=Object(e.useMemo)(function(){return Ti(Ko)},[Ko]),Uo=Va($o),Wo=Object(g.a)(Uo,2),Go=Wo[0],Oo=Wo[1],Ka=Lo(Go,Oo),Xa=Object(g.a)(Ka,2),bo=Xa[0],Eo=Xa[1],pt=Object(e.useMemo)(function(){return No?es(Ko):{keyEntities:null}},[Ko,xt,Ut]),Nt=pt.keyEntities,sn=Object(_.a)(tr.defaultValue,{value:tr.value}),Mn=Object(g.a)(sn,2),hi=Mn[0],ot=Mn[1],ae=function(Di){var ya=[],Ua=[];return Di.forEach(function(to){Eo(to)?Ua.push(to):ya.push(to)}),{missingRawValues:ya,existRawValues:Ua}},de=Object(e.useMemo)(function(){var Ai=[],Di=[];if(on(hi).forEach(function($i){if($i&&Object(p.a)($i)==="object"&&"value"in $i)if($i.halfChecked&&Ut){var To=Eo($i.value);Ai.push(To?To.key:$i.value)}else Di.push($i.value);else Di.push($i)}),No){var ya=ae(Di),Ua=ya.missingRawValues,to=ya.existRawValues,go=to.map(function($i){return Eo($i).key}),wo=Kn(go,!0,Nt),qo=wo.checkedKeys,Mo=wo.halfCheckedKeys;return[[].concat(Object(f.a)(Ua),Object(f.a)(qo.map(function($i){return bo($i).data.value}))),Mo]}return[Di,Ai]},[hi,Oa,Po,xt,Ut]),ye=Object(g.a)(de,2),Ke=ye[0],ct=ye[1],Bt=Vr(Ke,{treeConduction:No,value:hi,showCheckedStrategy:Ct,conductKeyEntities:Nt,getEntityByValue:Eo,getEntityByKey:bo,getLabelProp:rs}),Ir=function(Di,ya,Ua){if(ot(Oa?Di:Di[0]),ao){var to=Di;if(No&&Ct!=="SHOW_ALL"){var go=Di.map(function(zo){var is=Eo(zo);return is?is.key:zo}),wo=pn(go,Ct,Nt);to=wo.map(function(zo){var is=bo(zo);return is?is.data.value:zo})}var qo=ya||{triggerValue:void 0,selected:void 0},Mo=qo.triggerValue,$i=qo.selected,To=Po?ea(to,hi,Eo,rs):to;if(Ut){var fo=ct.map(function(zo){var is=bo(zo);return is?is.data.value:zo}).filter(function(zo){return!to.includes(zo)});To=[].concat(Object(f.a)(To),Object(f.a)(ea(fo,hi,Eo,rs)))}var ts={preValue:Bt,triggerValue:Mo},Jo=!0;(Ut||Ua==="selection"&&!$i)&&(Jo=!1),lr(ts,Mo,Di,Ko,Jo),Fr?ts.checked=$i:ts.selected=$i,ao(Oa?To:To[0],Po?null:to.map(function(zo){var is=Eo(zo);return is?rs(is.data):null}),ts)}},Br=function(Di,ya,Ua){var to=Di;if(!Oa)Ir([Di],{selected:!0,triggerValue:Di},Ua);else{var go=Ha(Ke,Di);if(No){var wo=ae(go),qo=wo.missingRawValues,Mo=wo.existRawValues,$i=Mo.map(function(ts){return Eo(ts).key}),To=Kn($i,!0,Nt),fo=To.checkedKeys;go=[].concat(Object(f.a)(qo),Object(f.a)(fo.map(function(ts){return bo(ts).data.value})))}Ir(go,{selected:!0,triggerValue:Di},Ua)}ja&&ja(to,ya)},un=function(Di,ya,Ua){var to=Di,go=Qa(Ke,Di);if(No){var wo=ae(go),qo=wo.missingRawValues,Mo=wo.existRawValues,$i=Mo.map(function(ts){return Eo(ts).key}),To=Kn($i,{checked:!1,halfCheckedKeys:ct},Nt),fo=To.checkedKeys;go=[].concat(Object(f.a)(qo),Object(f.a)(fo.map(function(ts){return bo(ts).data.value})))}Ir(go,{selected:!1,triggerValue:Di},Ua),Pa&&Pa(to,ya)},zn=function(){Ir([],null,"clear")},Rn=e.useCallback(function(Ai){if(oo){var Di={};Object.defineProperty(Di,"documentClickClose",{get:function(){return Object(hn.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),oo(Ai,Di)}},[oo]),Fn={optionLabelProp:null,optionFilterProp:Cn,dropdownAlign:la,internalProps:{mark:Lr,onClear:zn,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Br,onRawDeselect:un}};return"filterTreeNode"in tr&&(Fn.filterOption=za),e.createElement(Io.Provider,{value:{checkable:Fr,loadData:nr,treeLoadedKeys:Wr,onTreeLoad:Ba,checkedKeys:Ke,halfCheckedKeys:ct,treeDefaultExpandAll:Ea,treeExpandedKeys:Vi,treeDefaultExpandedKeys:wi,onTreeExpand:ka,treeIcon:Ca,treeMotion:Ma,showTreeIcon:fa,switcherIcon:ha,treeLine:qi,treeNodeFilterProp:Cn}},e.createElement(In,Object.assign({ref:Qo,mode:Oa?"multiple":null},tr,Fn,{value:Bt,labelInValue:!0,options:Ko,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Rn})))}),gn=function(tr){Object(l.a)(yr,tr);var Lt=Object(u.a)(yr);function yr(){var xt;return Object(t.a)(this,yr),xt=Lt.apply(this,arguments),xt.selectRef=e.createRef(),xt.focus=function(){xt.selectRef.current.focus()},xt.blur=function(){xt.selectRef.current.blur()},xt}return Object(a.a)(yr,[{key:"render",value:function(){return e.createElement(Sr,Object.assign({ref:this.selectRef},this.props))}}]),yr}(e.Component);gn.TreeNode=qr,gn.SHOW_ALL=rr,gn.SHOW_PARENT=Rr,gn.SHOW_CHILD=Cr;var $n=gn,qn=$n,Gn=d("BGR+"),mi=d("H84U"),ti=d("uaoM"),ri=d("1vzs"),li=d("2jpz"),Xi=d("3Nzz"),Pi=function(tr){r()(yr,tr);var Lt=n()(yr);function yr(xt){var Ut;return m()(this,yr),Ut=Lt.call(this,xt),Ut.selectRef=e.createRef(),Ut.renderTreeSelect=function(ur){var Ct=ur.getPopupContainer,dr=ur.getPrefixCls,nr=ur.renderEmpty,Wr=ur.direction,En=ur.virtual,Cn=ur.dropdownMatchSelectWidth,Nn=Ut.props,oi=Nn.prefixCls,Qn=Nn.size,Vi=Nn.className,wi=Nn.treeCheckable,Ea=Nn.multiple,aa=Nn.listHeight,Ca=aa===void 0?256:aa,fa=Nn.listItemHeight,ha=fa===void 0?26:fa,qi=Nn.notFoundContent,Ma=Nn.switcherIcon,za=Nn.treeLine,la=Nn.getPopupContainer,ao=Nn.dropdownClassName,ka=Nn.bordered,Ba=Nn.treeIcon,oo=Ba===void 0?!1:Ba,ja=dr("select",oi),Pa=dr("select-tree",oi),Fr=dr("tree-select",oi),Oa=b()(ao,"".concat(Fr,"-dropdown"),v()({},"".concat(Fr,"-dropdown-rtl"),Wr==="rtl")),No=!!(wi||Ea),Po=Object(ri.a)(E()(E()({},Ut.props),{multiple:No,prefixCls:ja})),Qo=Po.suffixIcon,ss=Po.itemIcon,rs=Po.removeIcon,Ko=Po.clearIcon,$o;qi!==void 0?$o=qi:$o=nr("Select");var Uo=Object(Gn.default)(Ut.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(Xi.b.Consumer,null,function(Wo){var Go,Oo=Qn||Wo,Ka=b()(!oi&&Fr,(Go={},v()(Go,"".concat(ja,"-lg"),Oo==="large"),v()(Go,"".concat(ja,"-sm"),Oo==="small"),v()(Go,"".concat(ja,"-rtl"),Wr==="rtl"),v()(Go,"".concat(ja,"-borderless"),!ka),Go),Vi);return e.createElement(qn,E()({virtual:En,dropdownMatchSelectWidth:Cn},Uo,{ref:Ut.selectRef,prefixCls:ja,className:Ka,listHeight:Ca,listItemHeight:ha,treeCheckable:wi&&e.createElement("span",{className:"".concat(ja,"-tree-checkbox-inner")}),inputIcon:Qo,menuItemSelectedIcon:ss,removeIcon:rs,clearIcon:Ko,switcherIcon:function(bo){return Object(li.a)(Pa,Ma,za,bo)},showTreeIcon:oo,notFoundContent:$o,getPopupContainer:la||Ct,treeMotion:null,dropdownClassName:Oa}))})},Object(ti.a)(xt.multiple!==!1||!xt.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Ut}return c()(yr,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return e.createElement(mi.a,null,this.renderTreeSelect)}}]),yr}(e.Component);Pi.TreeNode=qr,Pi.SHOW_ALL=rr,Pi.SHOW_PARENT=Rr,Pi.SHOW_CHILD=Cr,Pi.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ga=P.a=Pi},"5Uyt":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("KmBX"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},"5YOS":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("xb2K"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},"5YgA":function(j,P,d){},"5Z9U":function(j,P,d){"use strict";P.a=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var O=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(O)||/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(O==null?void 0:O.substr(0,4)))}},"5bA4":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="LeftOutlined";var h=P.a=E.forwardRef(m)},"5hvy":function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("MlIO"))})(this,function(O){return function(E){var C=O,v=C.lib,w=v.WordArray,m=v.Hasher,h=C.x64,c=h.Word,i=C.algo,r=[],o=[],n=[];(function(){for(var t=1,a=0,l=0;l<24;l++){r[t+5*a]=(l+1)*(l+2)/2%64;var u=a%5,f=(2*t+3*a)%5;t=u,a=f}for(var t=0;t<5;t++)for(var a=0;a<5;a++)o[t+5*a]=a+(2*t+3*a)%5*5;for(var p=1,g=0;g<24;g++){for(var A=0,y=0,x=0;x<7;x++){if(p&1){var T=(1<<x)-1;T<32?y^=1<<T:A^=1<<T-32}p&128?p=p<<1^113:p<<=1}n[g]=c.create(A,y)}})();var e=[];(function(){for(var t=0;t<25;t++)e[t]=c.create()})();var s=i.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],l=0;l<25;l++)a[l]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,l){for(var u=this._state,f=this.blockSize/2,p=0;p<f;p++){var g=a[l+2*p],A=a[l+2*p+1];g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var y=u[p];y.high^=A,y.low^=g}for(var x=0;x<24;x++){for(var T=0;T<5;T++){for(var S=0,b=0,_=0;_<5;_++){var y=u[T+5*_];S^=y.high,b^=y.low}var I=e[T];I.high=S,I.low=b}for(var T=0;T<5;T++)for(var L=e[(T+4)%5],D=e[(T+1)%5],N=D.high,M=D.low,S=L.high^(N<<1|M>>>31),b=L.low^(M<<1|N>>>31),_=0;_<5;_++){var y=u[T+5*_];y.high^=S,y.low^=b}for(var B=1;B<25;B++){var S,b,y=u[B],R=y.high,H=y.low,F=r[B];F<32?(S=R<<F|H>>>32-F,b=H<<F|R>>>32-F):(S=H<<F-32|R>>>64-F,b=R<<F-32|H>>>64-F);var K=e[o[B]];K.high=S,K.low=b}var U=e[0],V=u[0];U.high=V.high,U.low=V.low;for(var T=0;T<5;T++)for(var _=0;_<5;_++){var B=T+5*_,y=u[B],z=e[B],Y=e[(T+1)%5+5*_],q=e[(T+2)%5+5*_];y.high=z.high^~Y.high&q.high,y.low=z.low^~Y.low&q.low}var y=u[0],ce=n[x];y.high^=ce.high,y.low^=ce.low}},_doFinalize:function(){var a=this._data,l=a.words,u=this._nDataBytes*8,f=a.sigBytes*8,p=this.blockSize*32;l[f>>>5]|=1<<24-f%32,l[(E.ceil((f+1)/p)*p>>>5)-1]|=128,a.sigBytes=l.length*4,this._process();for(var g=this._state,A=this.cfg.outputLength/8,y=A/8,x=[],T=0;T<y;T++){var S=g[T],b=S.high,_=S.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 w.init(x,A)},clone:function(){for(var a=m.clone.call(this),l=a._state=this._state.slice(0),u=0;u<25;u++)l[u]=l[u].clone();return a}});C.SHA3=m._createHelper(s),C.HmacSHA3=m._createHmacHelper(s)}(Math),O.SHA3})},"5nXd":function(j,P,d){var O=d("MFOe"),E=O.slice,C=O.pluck,v=O.each,w=O.bind,m=O.create,h=O.isList,c=O.isFunction,i=O.isObject;j.exports={createStore:n};var r={version:"2.0.12",enabled:!1,get:function(s,t){var a=this.storage.read(this._namespacePrefix+s);return this._deserialize(a,t)},set:function(s,t){return t===void 0?this.remove(s):(this.storage.write(this._namespacePrefix+s,this._serialize(t)),t)},remove:function(s){this.storage.remove(this._namespacePrefix+s)},each:function(s){var t=this;this.storage.each(function(a,l){s.call(t,t._deserialize(a),(l||"").replace(t._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 o(){var e=typeof console=="undefined"?null:console;if(!e)return;var s=e.warn?e.warn:e.log;s.apply(e,arguments)}function n(e,s,t){t||(t=""),e&&!h(e)&&(e=[e]),s&&!h(s)&&(s=[s]);var a=t?"__storejs_"+t+"_":"",l=t?new RegExp("^"+a):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(t))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var f={_namespacePrefix:a,_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(T){return!1}},_assignPluginFnProp:function(A,y){var x=this[y];this[y]=function(){var S=E(arguments,0),b=this;function _(){return x?(v(arguments,function(L,D){S[D]=L}),x.apply(b,S)):void 0}var I=[_].concat(S);return A.apply(b,I)}},_serialize:function(A){return JSON.stringify(A)},_deserialize:function(A,y){if(!A)return y;var x="";try{x=JSON.parse(A)}catch(T){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)){v(A,function(S){y._addPlugin(S)});return}var x=C(this.plugins,function(S){return A===S});if(x)return;if(this.plugins.push(A),!c(A))throw new Error("Plugins must be function values that return objects");var T=A.call(this);if(!i(T))throw new Error("Plugins must return an object of function properties");v(T,function(S,b){if(!c(S))throw new Error("Bad plugin property: "+b+" from plugin "+A.name+". Plugins should only return functions.");y._assignPluginFnProp(S,b)})},addStorage:function(A){o("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(A)}},p=m(f,r,{plugins:[]});return p.raw={},v(p,function(g,A){c(g)&&(p.raw[A]=w(p,g))}),v(e,function(g){p._addStorage(g)}),v(s,function(g){p._addPlugin(g)}),p}},"5rEg":function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lwsE"),v=d.n(C),w=d("W8MJ"),m=d.n(w),h=d("7W2i"),c=d.n(h),i=d("LQ03"),r=d.n(i),o=d("lSNA"),n=d.n(o),e=d("q1tI"),s=d("TSYQ"),t=d.n(s),a=d("BGR+"),l=d("kbBi"),u=d.n(l),f=d("CWQg"),p=d("0n0R"),g=Object(f.a)("text","input");function A(te){return!!(te.prefix||te.suffix||te.allowClear)}var y=function(te){c()(he,te);var we=r()(he);function he(){var Pe;return v()(this,he),Pe=we.apply(this,arguments),Pe.containerRef=e.createRef(),Pe.onInputMouseUp=function(Oe){var le;if((le=Pe.containerRef.current)===null||le===void 0?void 0:le.contains(Oe.target)){var me=Pe.props.triggerFocus;me()}},Pe}return m()(he,[{key:"renderClearIcon",value:function(Oe){var le=this.props,me=le.allowClear,_e=le.value,$e=le.disabled,gt=le.readOnly,et=le.inputType,Ie=le.handleReset;if(!me)return null;var rt=!$e&&!gt&&_e,Ge=et===g[0]?"".concat(Oe,"-textarea-clear-icon"):"".concat(Oe,"-clear-icon");return e.createElement(u.a,{onClick:Ie,className:t()(Ge,n()({},"".concat(Ge,"-hidden"),!rt)),role:"button"})}},{key:"renderSuffix",value:function(Oe){var le=this.props,me=le.suffix,_e=le.allowClear;return me||_e?e.createElement("span",{className:"".concat(Oe,"-suffix")},this.renderClearIcon(Oe),me):null}},{key:"renderLabeledIcon",value:function(Oe,le){var me,_e=this.props,$e=_e.focused,gt=_e.value,et=_e.prefix,Ie=_e.className,rt=_e.size,Ge=_e.suffix,vt=_e.disabled,Ot=_e.allowClear,Et=_e.direction,Tt=_e.style,Rt=_e.readOnly,Be=_e.bordered,Z=this.renderSuffix(Oe);if(!A(this.props))return Object(p.a)(le,{value:gt});var J=et?e.createElement("span",{className:"".concat(Oe,"-prefix")},et):null,je=t()(Ie,"".concat(Oe,"-affix-wrapper"),(me={},n()(me,"".concat(Oe,"-affix-wrapper-focused"),$e),n()(me,"".concat(Oe,"-affix-wrapper-disabled"),vt),n()(me,"".concat(Oe,"-affix-wrapper-sm"),rt==="small"),n()(me,"".concat(Oe,"-affix-wrapper-lg"),rt==="large"),n()(me,"".concat(Oe,"-affix-wrapper-input-with-clear-btn"),Ge&&Ot&&gt),n()(me,"".concat(Oe,"-affix-wrapper-rtl"),Et==="rtl"),n()(me,"".concat(Oe,"-affix-wrapper-readonly"),Rt),n()(me,"".concat(Oe,"-affix-wrapper-borderless"),!Be),me));return e.createElement("span",{ref:this.containerRef,className:je,style:Tt,onMouseUp:this.onInputMouseUp},J,Object(p.a)(le,{style:null,value:gt,className:L(Oe,Be,rt,vt)}),Z)}},{key:"renderInputWithLabel",value:function(Oe,le){var me,_e,$e=this.props,gt=$e.addonBefore,et=$e.addonAfter,Ie=$e.style,rt=$e.size,Ge=$e.className,vt=$e.direction;if(!gt&&!et)return le;var Ot="".concat(Oe,"-group"),Et="".concat(Ot,"-addon"),Tt=gt?e.createElement("span",{className:Et},gt):null,Rt=et?e.createElement("span",{className:Et},et):null,Be=t()("".concat(Oe,"-wrapper"),(me={},n()(me,Ot,gt||et),n()(me,"".concat(Ot,"-rtl"),vt==="rtl"),me)),Z=t()(Ge,"".concat(Oe,"-group-wrapper"),(_e={},n()(_e,"".concat(Oe,"-group-wrapper-sm"),rt==="small"),n()(_e,"".concat(Oe,"-group-wrapper-lg"),rt==="large"),n()(_e,"".concat(Oe,"-group-wrapper-rtl"),vt==="rtl"),_e));return e.createElement("span",{className:Z,style:Ie},e.createElement("span",{className:Be},Tt,Object(p.a)(le,{style:null}),Rt))}},{key:"renderTextAreaWithClearIcon",value:function(Oe,le){var me,_e=this.props,$e=_e.value,gt=_e.allowClear,et=_e.className,Ie=_e.style,rt=_e.direction,Ge=_e.bordered;if(!gt)return Object(p.a)(le,{value:$e});var vt=t()(et,"".concat(Oe,"-affix-wrapper"),"".concat(Oe,"-affix-wrapper-textarea-with-clear-btn"),(me={},n()(me,"".concat(Oe,"-affix-wrapper-rtl"),rt==="rtl"),n()(me,"".concat(Oe,"-affix-wrapper-borderless"),!Ge),me));return e.createElement("span",{className:vt,style:Ie},Object(p.a)(le,{style:null,value:$e}),this.renderClearIcon(Oe))}},{key:"render",value:function(){var Oe=this.props,le=Oe.prefixCls,me=Oe.inputType,_e=Oe.element;return me===g[0]?this.renderTextAreaWithClearIcon(le,_e):this.renderInputWithLabel(le,this.renderLabeledIcon(le,_e))}}]),he}(e.Component),x=y,T=d("H84U"),S=d("3Nzz"),b=d("uaoM");function _(te){return typeof te=="undefined"||te===null?"":te}function I(te,we,he){if(he){var Pe=we;if(we.type==="click"){Pe=Object.create(we),Pe.target=te,Pe.currentTarget=te;var Oe=te.value;te.value="",he(Pe),te.value=Oe;return}he(Pe)}}function L(te,we,he,Pe,Oe){var le;return t()(te,(le={},n()(le,"".concat(te,"-sm"),he==="small"),n()(le,"".concat(te,"-lg"),he==="large"),n()(le,"".concat(te,"-disabled"),Pe),n()(le,"".concat(te,"-rtl"),Oe==="rtl"),n()(le,"".concat(te,"-borderless"),!we),le))}var D=function(te){c()(he,te);var we=r()(he);function he(Pe){var Oe;v()(this,he),Oe=we.call(this,Pe),Oe.direction="ltr",Oe.focus=function(){Oe.input.focus()},Oe.saveClearableInput=function(me){Oe.clearableInput=me},Oe.saveInput=function(me){Oe.input=me},Oe.onFocus=function(me){var _e=Oe.props.onFocus;Oe.setState({focused:!0},Oe.clearPasswordValueAttribute),_e&&_e(me)},Oe.onBlur=function(me){var _e=Oe.props.onBlur;Oe.setState({focused:!1},Oe.clearPasswordValueAttribute),_e&&_e(me)},Oe.handleReset=function(me){Oe.setValue("",function(){Oe.focus()}),I(Oe.input,me,Oe.props.onChange)},Oe.renderInput=function(me,_e,$e){var gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},et=Oe.props,Ie=et.className,rt=et.addonBefore,Ge=et.addonAfter,vt=et.size,Ot=et.disabled,Et=Object(a.default)(Oe.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",E()({autoComplete:gt.autoComplete},Et,{onChange:Oe.handleChange,onFocus:Oe.onFocus,onBlur:Oe.onBlur,onKeyDown:Oe.handleKeyDown,className:t()(L(me,$e,vt||_e,Ot,Oe.direction),n()({},Ie,Ie&&!rt&&!Ge)),ref:Oe.saveInput}))},Oe.clearPasswordValueAttribute=function(){Oe.removePasswordTimeout=setTimeout(function(){Oe.input&&Oe.input.getAttribute("type")==="password"&&Oe.input.hasAttribute("value")&&Oe.input.removeAttribute("value")})},Oe.handleChange=function(me){Oe.setValue(me.target.value,Oe.clearPasswordValueAttribute),I(Oe.input,me,Oe.props.onChange)},Oe.handleKeyDown=function(me){var _e=Oe.props,$e=_e.onPressEnter,gt=_e.onKeyDown;me.keyCode===13&&$e&&$e(me),gt&&gt(me)},Oe.renderComponent=function(me){var _e=me.getPrefixCls,$e=me.direction,gt=me.input,et=Oe.state,Ie=et.value,rt=et.focused,Ge=Oe.props,vt=Ge.prefixCls,Ot=Ge.bordered,Et=Ot===void 0?!0:Ot,Tt=_e("input",vt);return Oe.direction=$e,e.createElement(S.b.Consumer,null,function(Rt){return e.createElement(x,E()({size:Rt},Oe.props,{prefixCls:Tt,inputType:"input",value:_(Ie),element:Oe.renderInput(Tt,Rt,Et,gt),handleReset:Oe.handleReset,ref:Oe.saveClearableInput,direction:$e,focused:rt,triggerFocus:Oe.focus,bordered:Et}))})};var le=typeof Pe.value=="undefined"?Pe.defaultValue:Pe.value;return Oe.state={value:le,focused:!1,prevValue:Pe.value},Oe}return m()(he,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(Oe){return A(Oe)!==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(Oe,le){this.props.value===void 0&&this.setState({value:Oe},le)}},{key:"render",value:function(){return e.createElement(T.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Oe,le){var me=le.prevValue,_e={prevValue:Oe.value};return(Oe.value!==void 0||me!==Oe.value)&&(_e.value=Oe.value),_e}}]),he}(e.Component);D.defaultProps={type:"text"};var N=D,M=function(we){return e.createElement(T.a,null,function(he){var Pe,Oe=he.getPrefixCls,le=he.direction,me=we.prefixCls,_e=we.className,$e=_e===void 0?"":_e,gt=Oe("input-group",me),et=t()(gt,(Pe={},n()(Pe,"".concat(gt,"-lg"),we.size==="large"),n()(Pe,"".concat(gt,"-sm"),we.size==="small"),n()(Pe,"".concat(gt,"-compact"),we.compact),n()(Pe,"".concat(gt,"-rtl"),le==="rtl"),Pe),$e);return e.createElement("span",{className:et,style:we.style,onMouseEnter:we.onMouseEnter,onMouseLeave:we.onMouseLeave,onFocus:we.onFocus,onBlur:we.onBlur},we.children)})},B=M,R=d("c+Xe"),H=d("w6Tc"),F=d.n(H),K=d("gZBC"),U=d.n(K),V=d("2/Rp"),z=function(te,we){var he={};for(var Pe in te)Object.prototype.hasOwnProperty.call(te,Pe)&&we.indexOf(Pe)<0&&(he[Pe]=te[Pe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Pe=Object.getOwnPropertySymbols(te);Oe<Pe.length;Oe++)we.indexOf(Pe[Oe])<0&&Object.prototype.propertyIsEnumerable.call(te,Pe[Oe])&&(he[Pe[Oe]]=te[Pe[Oe]]);return he},Y=e.forwardRef(function(te,we){var he=e.useRef(null),Pe=function(Ie){var rt=te.onChange,Ge=te.onSearch;Ie&&Ie.target&&Ie.type==="click"&&Ge&&Ge(Ie.target.value,Ie),rt&&rt(Ie)},Oe=function(Ie){var rt;document.activeElement===((rt=he.current)===null||rt===void 0?void 0:rt.input)&&Ie.preventDefault()},le=function(Ie){var rt,Ge=te.onSearch,vt=te.loading,Ot=te.disabled;if(vt||Ot)return;Ge&&Ge((rt=he.current)===null||rt===void 0?void 0:rt.input.value,Ie)},me=function(Ie){var rt=te.enterButton,Ge=te.size;return rt?e.createElement(S.b.Consumer,{key:"enterButton"},function(vt){return e.createElement(V.a,{className:"".concat(Ie,"-button"),type:"primary",size:Ge||vt},e.createElement(U.a,null))}):e.createElement(U.a,{className:"".concat(Ie,"-icon"),key:"loadingIcon"})},_e=function(Ie){var rt=te.suffix,Ge=te.enterButton,vt=te.loading;if(vt&&!Ge)return[rt,me(Ie)];if(Ge)return rt;var Ot=e.createElement(F.a,{className:"".concat(Ie,"-icon"),key:"searchIcon",onClick:le});return rt?[Object(p.c)(rt,null,{key:"suffix"}),Ot]:Ot},$e=function(Ie,rt){var Ge=te.enterButton,vt=te.disabled,Ot=te.addonAfter,Et=te.loading,Tt="".concat(Ie,"-button");if(Et&&Ge)return[me(Ie),Ot];if(!Ge)return Ot;var Rt,Be=Ge,Z=Be.type&&Be.type.__ANT_BUTTON===!0;return Z||Be.type==="button"?Rt=Object(p.a)(Be,E()({onMouseDown:Oe,onClick:le,key:"enterButton"},Z?{className:Tt,size:rt}:{})):Rt=e.createElement(V.a,{className:Tt,type:"primary",size:rt,disabled:vt,key:"enterButton",onMouseDown:Oe,onClick:le},Ge===!0?e.createElement(F.a,null):Ge),Ot?[Rt,Object(p.c)(Ot,null,{key:"addonAfter"})]:Rt},gt=function(Ie){var rt=Ie.getPrefixCls,Ge=Ie.direction,vt=te.prefixCls,Ot=te.inputPrefixCls,Et=te.enterButton,Tt=te.className,Rt=te.size,Be=z(te,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete Be.onSearch,delete Be.loading;var Z=rt("input-search",vt),J=rt("input",Ot),je=function(oe){var yt;if(Et){var zt;yt=t()(Z,Tt,(zt={},n()(zt,"".concat(Z,"-rtl"),Ge==="rtl"),n()(zt,"".concat(Z,"-enter-button"),!!Et),n()(zt,"".concat(Z,"-").concat(oe),!!oe),zt))}else yt=t()(Z,Tt,n()({},"".concat(Z,"-rtl"),Ge==="rtl"));return yt};return e.createElement(S.b.Consumer,null,function(Re){return e.createElement(N,E()({ref:Object(R.a)(he,we),onPressEnter:le},Be,{size:Rt||Re,prefixCls:J,addonAfter:$e(Z,Rt||Re),suffix:_e(Z),onChange:Pe,className:je(Rt||Re)}))})};return e.createElement(T.a,null,gt)});Y.defaultProps={enterButton:!1},Y.displayName="Search";var q=Y,ce=d("Y1PL"),ie=function(te){c()(he,te);var we=r()(he);function he(Pe){var Oe;v()(this,he),Oe=we.call(this,Pe),Oe.focus=function(){Oe.resizableTextArea.textArea.focus()},Oe.saveTextArea=function(me){Oe.resizableTextArea=me==null?void 0:me.resizableTextArea},Oe.saveClearableInput=function(me){Oe.clearableInput=me},Oe.handleChange=function(me){Oe.setValue(me.target.value),I(Oe.resizableTextArea.textArea,me,Oe.props.onChange)},Oe.handleReset=function(me){Oe.setValue("",function(){Oe.focus()}),I(Oe.resizableTextArea.textArea,me,Oe.props.onChange)},Oe.renderTextArea=function(me,_e){return e.createElement(ce.default,E()({},Object(a.default)(Oe.props,["allowClear","bordered"]),{className:t()(Oe.props.className,n()({},"".concat(me,"-borderless"),!_e)),prefixCls:me,onChange:Oe.handleChange,ref:Oe.saveTextArea}))},Oe.renderComponent=function(me){var _e=me.getPrefixCls,$e=me.direction,gt=Oe.state.value,et=Oe.props,Ie=et.prefixCls,rt=et.bordered,Ge=rt===void 0?!0:rt,vt=_e("input",Ie);return e.createElement(x,E()({},Oe.props,{prefixCls:vt,direction:$e,inputType:"text",value:_(gt),element:Oe.renderTextArea(vt,Ge),handleReset:Oe.handleReset,ref:Oe.saveClearableInput,triggerFocus:Oe.focus,bordered:Ge}))};var le=typeof Pe.value=="undefined"?Pe.defaultValue:Pe.value;return Oe.state={value:le},Oe}return m()(he,[{key:"setValue",value:function(Oe,le){this.props.value===void 0&&this.setState({value:Oe},le)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(T.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Oe){return Oe.value!==void 0?{value:Oe.value}:null}}]),he}(e.Component),ve=ie,Ee=d("J4zp"),Le=d.n(Ee),He=d("qPY4"),ge=d.n(He),Fe=d("fUL4"),Q=d.n(Fe),fe=function(te,we){var he={};for(var Pe in te)Object.prototype.hasOwnProperty.call(te,Pe)&&we.indexOf(Pe)<0&&(he[Pe]=te[Pe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Pe=Object.getOwnPropertySymbols(te);Oe<Pe.length;Oe++)we.indexOf(Pe[Oe])<0&&Object.prototype.propertyIsEnumerable.call(te,Pe[Oe])&&(he[Pe[Oe]]=te[Pe[Oe]]);return he},Je={click:"onClick",hover:"onMouseOver"},ne=e.forwardRef(function(te,we){var he=Object(e.useState)(!1),Pe=Le()(he,2),Oe=Pe[0],le=Pe[1],me=function(){var et=te.disabled;if(et)return;le(!Oe)},_e=function(et){var Ie,rt=te.action,Ge=te.iconRender,vt=Ge===void 0?function(){return null}:Ge,Ot=Je[rt]||"",Et=vt(Oe),Tt=(Ie={},n()(Ie,Ot,me),n()(Ie,"className","".concat(et,"-icon")),n()(Ie,"key","passwordIcon"),n()(Ie,"onMouseDown",function(Be){Be.preventDefault()}),n()(Ie,"onMouseUp",function(Be){Be.preventDefault()}),Ie);return e.cloneElement(e.isValidElement(Et)?Et:e.createElement("span",null,Et),Tt)},$e=function(et){var Ie=et.getPrefixCls,rt=te.className,Ge=te.prefixCls,vt=te.inputPrefixCls,Ot=te.size,Et=te.visibilityToggle,Tt=fe(te,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Rt=Ie("input",vt),Be=Ie("input-password",Ge),Z=Et&&_e(Be),J=t()(Be,rt,n()({},"".concat(Be,"-").concat(Ot),!!Ot)),je=E()(E()({},Object(a.default)(Tt,["suffix","iconRender"])),{type:Oe?"text":"password",className:J,prefixCls:Rt,suffix:Z});return Ot&&(je.size=Ot),e.createElement(N,E()({ref:we},je))};return e.createElement(T.a,null,$e)});ne.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(we){return we?e.createElement(ge.a,null):e.createElement(Q.a,null)}},ne.displayName="Password";var X=ne;N.Group=B,N.Search=q,N.TextArea=ve,N.Password=X;var G=P.a=N},"5s0K":function(j,P,d){var O=d("bYtY");function E(){var C=[],v={},w;return{add:function(m,h,c,i,r){return O.isString(i)&&(r=i,i=0),v[m.id]?!1:(v[m.id]=1,C.push({el:m,target:h,time:c,delay:i,easing:r}),!0)},done:function(m){return w=m,this},start:function(){for(var m=C.length,h=0,c=C.length;h<c;h++){var i=C[h];i.el.animateTo(i.target,i.time,i.delay,i.easing,r)}return this;function r(){m--,m||(C.length=0,v={},w&&w())}}}}P.createWrap=E},"5yev":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},"6/nd":function(j,P,d){var O=d("ProS");O.registerAction("legendScroll","legendscroll",function(E,C){var v=E.scrollDataIndex;v!=null&&C.eachComponent({mainType:"legend",subType:"scroll",query:E},function(w){w.setScrollDataIndex(v)})})},"62sa":function(j,P,d){var O=d("bYtY"),E=d("4NO4"),C=E.makeInner,v=d("zTMp"),w=d("Ez2D"),m=O.each,h=O.curry,c=C();function i(p,g,A){var y=p.currTrigger,x=[p.x,p.y],T=p,S=p.dispatchAction||O.bind(A.dispatchAction,A),b=g.getComponent("axisPointer").coordSysAxesInfo;if(!b)return;f(x)&&(x=w({seriesIndex:T.seriesIndex,dataIndex:T.dataIndex},g).point);var _=f(x),I=T.axesInfo,L=b.axesInfo,D=y==="leave"||f(x),N={},M={},B={list:[],map:{}},R={showPointer:h(n,M),showTooltip:h(e,B)};m(b.coordSysMap,function(F,K){var U=_||F.containPoint(x);m(b.coordSysAxesInfo[K],function(V,z){var Y=V.axis,q=l(I,V);if(!D&&U&&(!I||q)){var ce=q&&q.value;ce==null&&!_&&(ce=Y.pointToData(x)),ce!=null&&r(V,ce,R,!1,N)}})});var H={};return m(L,function(F,K){var U=F.linkGroup;U&&!M[K]&&m(U.axesInfo,function(V,z){var Y=M[z];if(V!==F&&Y){var q=Y.value;U.mapper&&(q=F.axis.scale.parse(U.mapper(q,u(V),u(F)))),H[F.key]=q}})}),m(H,function(F,K){r(L[K],F,R,!0,N)}),s(M,L,N),t(B,x,p,S),a(L,S,A),N}function r(p,g,A,y,x){var T=p.axis;if(T.scale.isBlank()||!T.containData(g))return;if(!p.involveSeries){A.showPointer(p,g);return}var S=o(g,p),b=S.payloadBatch,_=S.snapToValue;b[0]&&x.seriesIndex==null&&O.extend(x,b[0]),!y&&p.snap&&(T.containData(_)&&_!=null&&(g=_)),A.showPointer(p,g,b,x),A.showTooltip(p,S,_)}function o(p,g){var A=g.axis,y=A.dim,x=p,T=[],S=Number.MAX_VALUE,b=-1;return m(g.seriesModels,function(_,I){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 B=p-D,R=Math.abs(B);R<=S&&((R<S||B>=0&&b<0)&&(S=R,b=B,x=D,T.length=0),m(N,function(H){T.push({seriesIndex:_.seriesIndex,dataIndexInside:H,dataIndex:_.getData().getRawIndex(H)})}))}),{payloadBatch:T,snapToValue:x}}function n(p,g,A,y){p[g.key]={value:A,payloadBatch:y}}function e(p,g,A,y){var x=A.payloadBatch,T=g.axis,S=T.model,b=g.axisPointerModel;if(!g.triggerTooltip||!x.length)return;var _=g.coordSys.model,I=v.makeKey(_),L=p.map[I];L||(L=p.map[I]={coordSysId:_.id,coordSysIndex:_.componentIndex,coordSysType:_.type,coordSysMainType:_.mainType,dataByAxis:[]},p.list.push(L)),L.dataByAxis.push({axisDim:T.dim,axisIndex:S.componentIndex,axisType:S.type,axisId:S.id,value:y,valueLabelOpt:{precision:b.get("label.precision"),formatter:b.get("label.formatter")},seriesDataIndices:x.slice()})}function s(p,g,A){var y=A.axesInfo=[];m(g,function(x,T){var S=x.axisPointerModel.option,b=p[T];b?(!x.useHandle&&(S.status="show"),S.value=b.value,S.seriesDataIndices=(b.payloadBatch||[]).slice()):!x.useHandle&&(S.status="hide"),S.status==="show"&&y.push({axisDim:x.axis.dim,axisIndex:x.axis.model.componentIndex,value:S.value})})}function t(p,g,A,y){if(f(g)||!p.list.length){y({type:"hideTip"});return}var x=((p.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};y({type:"showTip",escapeConnect:!0,x:g[0],y:g[1],tooltipOption:A.tooltipOption,position:A.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:p.list})}function a(p,g,A){var y=A.getZr(),x="axisPointerLastHighlights",T=c(y)[x]||{},S=c(y)[x]={};m(p,function(I,L){var D=I.axisPointerModel.option;D.status==="show"&&m(D.seriesDataIndices,function(N){var M=N.seriesIndex+" | "+N.dataIndex;S[M]=N})});var b=[],_=[];O.each(T,function(I,L){!S[L]&&_.push(I)}),O.each(S,function(I,L){!T[L]&&b.push(I)}),_.length&&A.dispatchAction({type:"downplay",escapeConnect:!0,batch:_}),b.length&&A.dispatchAction({type:"highlight",escapeConnect:!0,batch:b})}function l(p,g){for(var A=0;A<(p||[]).length;A++){var y=p[A];if(g.axis.dim===y.axisDim&&g.axis.model.componentIndex===y.axisIndex)return y}}function u(p){var g=p.axis.model,A={},y=A.axisDim=p.axis.dim;return A.axisIndex=A[y+"AxisIndex"]=g.componentIndex,A.axisName=A[y+"AxisName"]=g.name,A.axisId=A[y+"AxisId"]=g.id,A}function f(p){return!p||p[0]==null||isNaN(p[0])||p[1]==null||isNaN(p[1])}j.exports=i},"6BzB":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.shrinkBuf=O,P.arraySet=E,P.flattenChunks=C,P.Buf32=P.Buf16=P.Buf8=void 0;function O(h,c){return h.length===c?h:h.subarray?h.subarray(0,c):(h.length=c,h)}function E(h,c,i,r,o){if(c.subarray&&h.subarray){h.set(c.subarray(i,i+r),o);return}for(var n=0;n<r;n++)h[o+n]=c[i+n]}function C(h){var c,i,r,o,n,e;for(r=0,c=0,i=h.length;c<i;c++)r+=h[c].length;for(e=new Uint8Array(r),o=0,c=0,i=h.length;c<i;c++)n=h[c],e.set(n,o),o+=n.length;return e}var v=Uint8Array;P.Buf8=v;var w=Uint16Array;P.Buf16=w;var m=Int32Array;P.Buf32=m},"6D9b":function(j,P,d){},"6GrX":function(j,P,d){var O=d("mFDi"),E=d("Xnb7"),C=d("bYtY"),v=C.getContext,w=C.extend,m=C.retrieve2,h=C.retrieve3,c=C.trim,i={},r=0,o=5e3,n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",s={};function t(B,R){s[B]=R}function a(B,R){R=R||e;var H=B+":"+R;if(i[H])return i[H];for(var F=(B+"").split(`
`),K=0,U=0,V=F.length;U<V;U++)K=Math.max(I(F[U],R).width,K);return r>o&&(r=0,i={}),r++,i[H]=K,K}function l(B,R,H,F,K,U,V,z){return V?f(B,R,H,F,K,U,V,z):u(B,R,H,F,K,U,z)}function u(B,R,H,F,K,U,V){var z=L(B,R,K,U,V),Y=a(B,R);K&&(Y+=K[1]+K[3]);var q=z.outerHeight,ce=p(0,Y,H),ie=g(0,q,F),ve=new O(ce,ie,Y,q);return ve.lineHeight=z.lineHeight,ve}function f(B,R,H,F,K,U,V,z){var Y=D(B,{rich:V,truncate:z,font:R,textAlign:H,textPadding:K,textLineHeight:U}),q=Y.outerWidth,ce=Y.outerHeight,ie=p(0,q,H),ve=g(0,ce,F);return new O(ie,ve,q,ce)}function p(B,R,H){return H==="right"?B-=R:H==="center"&&(B-=R/2),B}function g(B,R,H){return H==="middle"?B-=R/2:H==="bottom"&&(B-=R),B}function A(B,R,H){var F=R.textPosition,K=R.textDistance,U=H.x,V=H.y;K=K||0;var z=H.height,Y=H.width,q=z/2,ce="left",ie="top";switch(F){case"left":U-=K,V+=q,ce="right",ie="middle";break;case"right":U+=K+Y,V+=q,ie="middle";break;case"top":U+=Y/2,V-=K,ce="center",ie="bottom";break;case"bottom":U+=Y/2,V+=z+K,ce="center";break;case"inside":U+=Y/2,V+=q,ce="center",ie="middle";break;case"insideLeft":U+=K,V+=q,ie="middle";break;case"insideRight":U+=Y-K,V+=q,ce="right",ie="middle";break;case"insideTop":U+=Y/2,V+=K,ce="center";break;case"insideBottom":U+=Y/2,V+=z-K,ce="center",ie="bottom";break;case"insideTopLeft":U+=K,V+=K;break;case"insideTopRight":U+=Y-K,V+=K,ce="right";break;case"insideBottomLeft":U+=K,V+=z-K,ie="bottom";break;case"insideBottomRight":U+=Y-K,V+=z-K,ce="right",ie="bottom";break}return B=B||{},B.x=U,B.y=V,B.textAlign=ce,B.textVerticalAlign=ie,B}function y(B,R,H){var F={textPosition:B,textDistance:H};return A({},F,R)}function x(B,R,H,F,K){if(!R)return"";var U=(B+"").split(`
`);K=T(R,H,F,K);for(var V=0,z=U.length;V<z;V++)U[V]=S(U[V],K);return U.join(`
`)}function T(B,R,H,F){F=w({},F),F.font=R;var H=m(H,"...");F.maxIterations=m(F.maxIterations,2);var K=F.minChar=m(F.minChar,0);F.cnCharWidth=a("\u56FD",R);var U=F.ascCharWidth=a("a",R);F.placeholder=m(F.placeholder,"");for(var V=B=Math.max(0,B-1),z=0;z<K&&V>=U;z++)V-=U;var Y=a(H,R);return Y>V&&(H="",Y=0),V=B-Y,F.ellipsis=H,F.ellipsisWidth=Y,F.contentWidth=V,F.containerWidth=B,F}function S(B,R){var H=R.containerWidth,F=R.font,K=R.contentWidth;if(!H)return"";var U=a(B,F);if(U<=H)return B;for(var V=0;;V++){if(U<=K||V>=R.maxIterations){B+=R.ellipsis;break}var z=V===0?b(B,K,R.ascCharWidth,R.cnCharWidth):U>0?Math.floor(B.length*K/U):0;B=B.substr(0,z),U=a(B,F)}return B===""&&(B=R.placeholder),B}function b(B,R,H,F){for(var K=0,U=0,V=B.length;U<V&&K<R;U++){var z=B.charCodeAt(U);K+=0<=z&&z<=127?H:F}return U}function _(B){return a("\u56FD",B)}function I(B,R){return s.measureText(B,R)}s.measureText=function(B,R){var H=v();return H.font=R||e,H.measureText(B)};function L(B,R,H,F,K){B!=null&&(B+="");var U=m(F,_(R)),V=B?B.split(`
`):[],z=V.length*U,Y=z,q=!0;if(H&&(Y+=H[0]+H[2]),B&&K){q=!1;var ce=K.outerHeight,ie=K.outerWidth;if(ce!=null&&Y>ce)B="",V=[];else if(ie!=null)for(var ve=T(ie-(H?H[1]+H[3]:0),R,K.ellipsis,{minChar:K.minChar,placeholder:K.placeholder}),Ee=0,Le=V.length;Ee<Le;Ee++)V[Ee]=S(V[Ee],ve)}return{lines:V,height:z,outerHeight:Y,lineHeight:U,canCacheByTextString:q}}function D(B,R){var H={lines:[],width:0,height:0};if(B!=null&&(B+=""),!B)return H;for(var F=n.lastIndex=0,K;(K=n.exec(B))!=null;){var U=K.index;U>F&&N(H,B.substring(F,U)),N(H,K[2],K[1]),F=n.lastIndex}F<B.length&&N(H,B.substring(F,B.length));var V=H.lines,z=0,Y=0,q=[],ce=R.textPadding,ie=R.truncate,ve=ie&&ie.outerWidth,Ee=ie&&ie.outerHeight;ce&&(ve!=null&&(ve-=ce[1]+ce[3]),Ee!=null&&(Ee-=ce[0]+ce[2]));for(var Le=0;Le<V.length;Le++){for(var He=V[Le],ge=0,Fe=0,Q=0;Q<He.tokens.length;Q++){var fe=He.tokens[Q],Je=fe.styleName&&R.rich[fe.styleName]||{},ne=fe.textPadding=Je.textPadding,X=fe.font=Je.font||R.font,G=fe.textHeight=m(Je.textHeight,_(X));if(ne&&(G+=ne[0]+ne[2]),fe.height=G,fe.lineHeight=h(Je.textLineHeight,R.textLineHeight,G),fe.textAlign=Je&&Je.textAlign||R.textAlign,fe.textVerticalAlign=Je&&Je.textVerticalAlign||"middle",Ee!=null&&z+fe.lineHeight>Ee)return{lines:[],width:0,height:0};fe.textWidth=a(fe.text,X);var te=Je.textWidth,we=te==null||te==="auto";if(typeof te=="string"&&te.charAt(te.length-1)==="%")fe.percentWidth=te,q.push(fe),te=0;else{if(we){te=fe.textWidth;var he=Je.textBackgroundColor,Pe=he&&he.image;Pe&&(Pe=E.findExistImage(Pe),E.isImageReady(Pe)&&(te=Math.max(te,Pe.width*G/Pe.height)))}var Oe=ne?ne[1]+ne[3]:0;te+=Oe;var le=ve!=null?ve-Fe:null;le!=null&&le<te&&(!we||le<Oe?(fe.text="",fe.textWidth=te=0):(fe.text=x(fe.text,le-Oe,X,ie.ellipsis,{minChar:ie.minChar}),fe.textWidth=a(fe.text,X),te=fe.textWidth+Oe))}Fe+=fe.width=te,Je&&(ge=Math.max(ge,fe.lineHeight))}He.width=Fe,He.lineHeight=ge,z+=ge,Y=Math.max(Y,Fe)}H.outerWidth=H.width=m(R.textWidth,Y),H.outerHeight=H.height=m(R.textHeight,z),ce&&(H.outerWidth+=ce[1]+ce[3],H.outerHeight+=ce[0]+ce[2]);for(var Le=0;Le<q.length;Le++){var fe=q[Le],me=fe.percentWidth;fe.width=parseInt(me,10)/100*Y}return H}function N(B,R,H){for(var F=R==="",K=R.split(`
`),U=B.lines,V=0;V<K.length;V++){var z=K[V],Y={styleName:H,text:z,isLineHolder:!z&&!F};if(V)U.push({tokens:[Y]});else{var q=(U[U.length-1]||(U[0]={tokens:[]})).tokens,ce=q.length;ce===1&&q[0].isLineHolder?q[0]=Y:(z||!ce||F)&&q.push(Y)}}}function M(B){var R=(B.fontSize||B.fontFamily)&&[B.fontStyle,B.fontWeight,(B.fontSize||12)+"px",B.fontFamily||"sans-serif"].join(" ");return R&&c(R)||B.textFont||B.font}P.DEFAULT_FONT=e,P.$override=t,P.getWidth=a,P.getBoundingRect=l,P.adjustTextX=p,P.adjustTextY=g,P.calculateTextPosition=A,P.adjustTextPositionOnRect=y,P.truncateText=x,P.getLineHeight=_,P.measureText=I,P.parsePlainText=L,P.parseRichText=D,P.makeFont=M},"6Hfg":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("FhB9")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="SwapRightOutlined";var c=v.forwardRef(h);P.default=c},"6Ic6":function(j,P,d){var O=d("bYtY"),E=O.each,C=d("4fz+"),v=d("iRjW"),w=d("Yl7c"),m=d("4NO4"),h=d("IwbS"),c=d("9H2F"),i=c.createTask,r=d("zM3Q"),o=m.makeInner(),n=r();function e(){this.group=new C,this.uid=v.getUID("viewChart"),this.renderTask=i({plan:l,reset:u}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(g,A){},render:function(g,A,y,x){},highlight:function(g,A,y,x){a(g.getData(),x,"emphasis")},downplay:function(g,A,y,x){a(g.getData(),x,"normal")},remove:function(g,A){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var s=e.prototype;s.updateView=s.updateLayout=s.updateVisual=function(g,A,y,x){this.render(g,A,y,x)};function t(g,A,y){if(g&&(g.trigger(A,y),g.isGroup&&!h.isHighDownDispatcher(g)))for(var x=0,T=g.childCount();x<T;x++)t(g.childAt(x),A,y)}function a(g,A,y){var x=m.queryDataIndex(g,A),T=A&&A.highlightKey!=null?h.getHighlightDigit(A.highlightKey):null;x!=null?E(m.normalizeToArray(x),function(S){t(g.getItemGraphicEl(S),y,T)}):g.eachItemGraphicEl(function(S){t(S,y,T)})}w.enableClassExtend(e,["dispose"]),w.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(g,A){o(g).updateMethod=A};function l(g){return n(g.model)}function u(g){var A=g.model,y=g.ecModel,x=g.api,T=g.payload,S=A.pipelineContext.progressiveRender,b=g.view,_=T&&o(T).updateMethod,I=S?"incrementalPrepareRender":_&&b[_]?_:"render";return I!=="render"&&b[I](A,y,x,T),f[I]}var f={incrementalPrepareRender:{progress:function(g,A){A.view.incrementalRender(g,A.model,A.ecModel,A.api,A.payload)}},render:{forceFirstProgress:!0,progress:function(g,A){A.view.render(A.model,A.ecModel,A.api,A.payload)}}},p=e;j.exports=p},"6MrE":function(j,P,d){},"6Qwc":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={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"};P.default=O},"6SEX":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("qWUW"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},"6UJt":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("v56E"),v=d.n(C),w=d("R9oj"),m=d("5NDa")},"6VBw":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("ODXe"),C=d("rePB"),v=d("Ff2n"),w=d("q1tI"),m=d("TSYQ"),h=d.n(m),c=d("Pw59"),i=d("Qi1f"),r=["icon","className","onClick","style","primaryColor","secondaryColor"],o={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n(g){var A=g.primaryColor,y=g.secondaryColor;o.primaryColor=A,o.secondaryColor=y||Object(i.b)(A),o.calculated=!!y}function e(){return Object(O.a)({},o)}var s=function(A){var y=A.icon,x=A.className,T=A.onClick,S=A.style,b=A.primaryColor,_=A.secondaryColor,I=Object(v.a)(A,r),L=o;if(b&&(L={primaryColor:b,secondaryColor:_||Object(i.b)(b)}),Object(i.f)(),Object(i.g)(Object(i.c)(y),"icon should be icon definiton, but got ".concat(y)),!Object(i.c)(y))return null;var D=y;return D&&typeof D.icon=="function"&&(D=Object(O.a)(Object(O.a)({},D),{},{icon:D.icon(L.primaryColor,L.secondaryColor)})),Object(i.a)(D.icon,"svg-".concat(D.name),Object(O.a)({className:x,onClick:T,style:S,"data-icon":D.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};s.displayName="IconReact",s.getTwoToneColors=e,s.setTwoToneColors=n;var t=s;function a(g){var A=Object(i.d)(g),y=Object(E.a)(A,2),x=y[0],T=y[1];return t.setTwoToneColors({primaryColor:x,secondaryColor:T})}function l(){var g=t.getTwoToneColors();return g.calculated?[g.primaryColor,g.secondaryColor]:g.primaryColor}var u=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];a("#1890ff");var f=w.forwardRef(function(g,A){var y,x=g.className,T=g.icon,S=g.spin,b=g.rotate,_=g.tabIndex,I=g.onClick,L=g.twoToneColor,D=Object(v.a)(g,u),N=w.useContext(c.a),M=N.prefixCls,B=M===void 0?"anticon":M,R=h()(B,(y={},Object(C.a)(y,"".concat(B,"-").concat(T.name),!!T.name),Object(C.a)(y,"".concat(B,"-spin"),!!S||T.name==="loading"),y),x),H=_;H===void 0&&I&&(H=-1);var F=b?{msTransform:"rotate(".concat(b,"deg)"),transform:"rotate(".concat(b,"deg)")}:void 0,K=Object(i.d)(L),U=Object(E.a)(K,2),V=U[0],z=U[1];return w.createElement("span",Object(O.a)(Object(O.a)({role:"img","aria-label":T.name},D),{},{ref:A,tabIndex:H,onClick:I,className:R}),w.createElement(t,{icon:T,primaryColor:V,secondaryColor:z,style:F}))});f.displayName="AntdIcon",f.getTwoToneColor=l,f.setTwoToneColor=a;var p=P.a=f},"6cGi":function(j,P,d){"use strict";d.d(P,"a",function(){return v});var O=d("ODXe"),E=d("q1tI"),C=d.n(E);function v(w,m){var h=m||{},c=h.defaultValue,i=h.value,r=h.onChange,o=h.postState,n=E.useState(function(){return i!==void 0?i:c!==void 0?typeof c=="function"?c():c:typeof w=="function"?w():w}),e=Object(O.a)(n,2),s=e[0],t=e[1],a=i!==void 0?i:s;o&&(a=o(a));var l=E.useRef(r);l.current=r;var u=E.useCallback(function(p){t(p),a!==p&&l.current&&l.current(p,a)},[a,l]),f=E.useRef(!0);return E.useEffect(function(){if(f.current){f.current=!1;return}i===void 0&&t(i)},[i]),[a,u]}},"6fms":function(j,P,d){var O=d("SUKs"),E=d("06Qe"),C=d("bYtY"),v=C.each;function w(i){return parseInt(i,10)}function m(i,r){E.initVML(),this.root=i,this.storage=r;var o=document.createElement("div"),n=document.createElement("div");o.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",i.appendChild(o),this._vmlRoot=n,this._vmlViewport=o,this.resize();var e=r.delFromStorage,s=r.addToStorage;r.delFromStorage=function(t){e.call(r,t),t&&(t.onRemove&&t.onRemove(n))},r.addToStorage=function(t){t.onAdd&&t.onAdd(n),s.call(r,t)},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 o=this._vmlRoot,n=0;n<r.length;n++){var e=r[n];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(o),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(o),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,o),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(o),this._firstPaint=!1)},resize:function(r,o){var r=r==null?this._getWidth():r,o=o==null?this._getHeight():o;if(this._width!==r||this._height!==o){this._width=r,this._height=o;var n=this._vmlViewport.style;n.width=r+"px",n.height=o+"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,o=r.currentStyle;return(r.clientWidth||w(o.width))-w(o.paddingLeft)-w(o.paddingRight)|0},_getHeight:function(){var r=this.root,o=r.currentStyle;return(r.clientHeight||w(o.height))-w(o.paddingTop)-w(o.paddingBottom)|0}};function h(i){return function(){O('In IE8.0 VML mode painter not support method "'+i+'"')}}v(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(i){m.prototype[i]=h(i)});var c=m;j.exports=c},"6r85":function(j,P,d){var O=d("bYtY");function E(C){if(!C||!O.isArray(C.series))return;O.each(C.series,function(v){O.isObject(v)&&v.type==="k"&&(v.type="candlestick")})}j.exports=E},"6uqw":function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("ItGF"),v=d("YOMW"),w=d("XxSj"),m=d("K4ya"),h=d("4NO4"),c=d("OELB"),i=w.mapVisual,r=w.eachVisual,o=E.isArray,n=E.each,e=c.asc,s=c.linearMap,t=E.noop,a=O.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;C.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,g){f.push(g)}):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 g=this.option,A=g.precision,y=this.dataBound,x=g.formatter,T,S;if(p=p||["<",">"],E.isArray(u)&&(u=u.slice(),T=!0),S=f?u:T?[b(u[0]),b(u[1])]:b(u),E.isString(x))return x.replace("{value}",T?S[0]:S).replace("{value2}",T?S[1]:S);if(E.isFunction(x))return T?x(u[0],u[1]):x(u);if(T)return u[0]===y[0]?p[0]+" "+S[1]:u[1]===y[1]?p[1]+" "+S[0]:S[0]+" - "+S[1];return S;function b(_){return _===y[0]?"min":_===y[1]?"max":(+_).toFixed(Math.min(A,20))}},resetExtent:function(){var u=this.option,f=e([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 g=u.dimensions,A=g.length-1;A>=0;A--){var y=g[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},g=f.target||(f.target={}),A=f.controller||(f.controller={});E.merge(g,p),E.merge(A,p);var y=this.isCategory();x.call(this,g),x.call(this,A),T.call(this,g,"inRange","outOfRange"),S.call(this,A);function x(b){o(f.color)&&!b.inRange&&(b.inRange={color:f.color.slice().reverse()}),b.inRange=b.inRange||{color:u.get("gradientColor")},n(this.stateList,function(_){var I=b[_];if(E.isString(I)){var L=v.get(I,"active",y);L?(b[_]={},b[_][I]=L):delete b[_]}},this)}function T(b,_,I){var L=b[_],D=b[I];L&&!D&&(D=b[I]={},n(L,function(N,M){if(!w.isValidType(M))return;var B=v.get(M,"inactive",y);B!=null&&(D[M]=B,M==="color"&&!D.hasOwnProperty("opacity")&&!D.hasOwnProperty("colorAlpha")&&(D.opacity=[0,0]))}))}function S(b){var _=(b.inRange||{}).symbol||(b.outOfRange||{}).symbol,I=(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=I&&E.clone(I)||(y?N[0]:[N[0],N[0]])),M.symbol=i(M.symbol,function(H){return H==="none"||H==="square"?"roundRect":H});var B=M.symbolSize;if(B!=null){var R=-Infinity;r(B,function(H){H>R&&(R=H)}),M.symbolSize=i(B,function(H){return s(H,[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:t,getValueState:t,getVisualMeta:t}),l=a;j.exports=l},"6usn":function(j,P,d){var O=d("bYtY");function E(v,w){return O.map(["Radius","Angle"],function(m,h){var c=this["get"+m+"Axis"](),i=w[h],r=v[h]/2,o="dataTo"+m,n=c.type==="category"?c.getBandWidth():Math.abs(c[o](i-r)-c[o](i+r));return m==="Angle"&&(n=n*Math.PI/180),n},this)}function C(v){var w=v.getRadiusAxis(),m=v.getAngleAxis(),h=w.getExtent();return h[0]>h[1]&&h.reverse(),{coordSys:{type:"polar",cx:v.cx,cy:v.cy,r:h[1],r0:h[0]},api:{coord:O.bind(function(c){var i=w.dataToRadius(c[0]),r=m.dataToAngle(c[1]),o=v.coordToPoint([i,r]);return o.push(i,r*Math.PI/180),o}),size:O.bind(E,v)}}}j.exports=C},"6xvX":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("V7ic"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},"711d":function(j,P){function d(O){return function(E){return E==null?void 0:E[O]}}j.exports=d},"72pK":function(j,P){function d(C,v,w,m,h,c){C=C||0;var i=w[1]-w[0];if(h!=null&&(h=E(h,[0,i])),c!=null&&(c=Math.max(c,h!=null?h:0)),m==="all"){var r=Math.abs(v[1]-v[0]);r=E(r,[0,i]),h=c=E(r,[h,c]),m=0}v[0]=E(v[0],w),v[1]=E(v[1],w);var o=O(v,m);v[m]+=C;var n=h||0,e=w.slice();o.sign<0?e[0]+=n:e[1]-=n,v[m]=E(v[m],e);var s=O(v,m);h!=null&&(s.sign!==o.sign||s.span<h)&&(v[1-m]=v[m]+o.sign*h);var s=O(v,m);return c!=null&&s.span>c&&(v[1-m]=v[m]+s.sign*c),v}function O(C,v){var w=C[v]-C[1-v];return{span:Math.abs(w),sign:w>0?-1:w<0?1:v?-1:1}}function E(C,v){return Math.min(v[1]!=null?v[1]:Infinity,Math.max(v[0]!=null?v[0]:-Infinity,C))}j.exports=d},"75ce":function(j,P,d){var O=d("ProS");d("IXuL"),d("8X+K");var E=d("f5Yq"),C=d("h8O9"),v=d("/d5a");d("Ae16"),O.registerVisual(E("line","circle","line")),O.registerLayout(C("line")),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,v("line"))},"75ev":function(j,P,d){var O=d("ProS");d("IWNH"),d("bNin"),d("v5uJ");var E=d("f5Yq"),C=d("yik8");O.registerVisual(E("tree","circle")),O.registerLayout(C)},"7AJT":function(j,P,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,h,c,i){E.call(this,w,m,h),this.type=c||"value",this.position=i||"bottom"};C.prototype={constructor:C,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var w=this.position;return w==="top"||w==="bottom"},getGlobalExtent:function(w){var m=this.getExtent();return m[0]=this.toGlobalCoord(m[0]),m[1]=this.toGlobalCoord(m[1]),w&&m[0]>m[1]&&m.reverse(),m},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(w,m){return this.coordToData(this.toLocalCoord(w[this.dim==="x"?0:1]),m)},toLocalCoord:null,toGlobalCoord:null},O.inherits(C,E);var v=C;j.exports=v},"7Cbv":function(j,P,d){"use strict";var O=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 C(){if(!O)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(E)}var v=/^(?:[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 w(e){return typeof e=="string"&&v.test(e)}for(var m=w,h=[],c=0;c<256;++c)h.push((c+256).toString(16).substr(1));function i(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(h[e[s+0]]+h[e[s+1]]+h[e[s+2]]+h[e[s+3]]+"-"+h[e[s+4]]+h[e[s+5]]+"-"+h[e[s+6]]+h[e[s+7]]+"-"+h[e[s+8]]+h[e[s+9]]+"-"+h[e[s+10]]+h[e[s+11]]+h[e[s+12]]+h[e[s+13]]+h[e[s+14]]+h[e[s+15]]).toLowerCase();if(!m(t))throw TypeError("Stringified UUID is invalid");return t}var r=i;function o(e,s,t){e=e||{};var a=e.random||(e.rng||C)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,s){t=t||0;for(var l=0;l<16;++l)s[t+l]=a[l];return s}return r(a)}var n=P.a=o},"7DRL":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=C.createHashMap,w=C.isString,m=C.isArray,h=C.each,c=C.assert,i=d("MEGo"),r=i.parseXML,o=v(),n={registerMap:function(s,t,a){var l;return m(t)?l=t:t.svg?l=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(a=t.specialAreas,t=t.geoJson),l=[{type:"geoJSON",source:t,specialAreas:a}]),h(l,function(u){var f=u.type;f==="geoJson"&&(f=u.type="geoJSON");var p=e[f];p(u)}),o.set(s,l)},retrieveMap:function(s){return o.get(s)}},e={geoJSON:function(s){var t=s.source;s.geoJSON=w(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(s){s.svgXML=r(s.source)}};j.exports=n},"7G+c":function(j,P,d){var O=d("bYtY"),E=O.createHashMap,C=O.isTypedArray,v=d("Yl7c"),w=v.enableClassCheck,m=d("k9D9"),h=m.SOURCE_FORMAT_ORIGINAL,c=m.SERIES_LAYOUT_BY_COLUMN,i=m.SOURCE_FORMAT_UNKNOWN,r=m.SOURCE_FORMAT_TYPED_ARRAY,o=m.SOURCE_FORMAT_KEYED_COLUMNS;function n(s){this.fromDataset=s.fromDataset,this.data=s.data||(s.sourceFormat===o?{}:[]),this.sourceFormat=s.sourceFormat||i,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:C(s)?r:h,fromDataset:!1})},w(n);var e=n;j.exports=e},"7Kak":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("KPFz"),v=d.n(C)},"7Phj":function(j,P,d){var O=d("bYtY"),E=d("OELB"),C=E.parsePercent,v=O.each;function w(i){var r=m(i);v(r,function(o){var n=o.seriesModels;if(!n.length)return;h(o),v(n,function(e,s){c(e,o.boxOffsetList[s],o.boxWidthList[s])})})}function m(i){var r=[],o=[];return i.eachSeriesByType("boxplot",function(n){var e=n.getBaseAxis(),s=O.indexOf(o,e);s<0&&(s=o.length,o[s]=e,r[s]={axis:e,seriesModels:[]}),r[s].seriesModels.push(n)}),r}function h(i){var r,o=i.axis,n=i.seriesModels,e=n.length,s=i.boxWidthList=[],t=i.boxOffsetList=[],a=[],l;if(o.type==="category")l=o.getBandWidth();else{var u=0;v(n,function(y){u=Math.max(u,y.getData().count())}),r=o.getExtent(),Math.abs(r[1]-r[0])/u}v(n,function(y){var x=y.get("boxWidth");O.isArray(x)||(x=[x,x]),a.push([C(x[0],l)||0,C(x[1],l)||0])});var f=l*.8-2,p=f/e*.3,g=(f-p*(e-1))/e,A=g/2-f/2;v(n,function(y,x){t.push(A),A+=p+g,s.push(Math.min(Math.max(g,a[x][0]),a[x][1]))})}function c(i,r,o){var n=i.coordinateSystem,e=i.getData(),s=o/2,t=i.get("layout")==="horizontal"?0:1,a=1-t,l=["x","y"],u=e.mapDimension(l[t]),f=e.mapDimension(l[a],!0);if(u==null||f.length<5)return;for(var p=0;p<e.count();p++){var g=e.get(u,p),A=_(g,f[2],p),y=_(g,f[0],p),x=_(g,f[1],p),T=_(g,f[3],p),S=_(g,f[4],p),b=[];I(b,x,0),I(b,T,1),b.push(y,x,S,T),L(b,y),L(b,S),L(b,A),e.setItemLayout(p,{initBaseline:A[a],ends:b})}function _(D,N,M){var B=e.get(N,M),R=[];R[t]=D,R[a]=B;var H;return isNaN(D)||isNaN(B)?H=[NaN,NaN]:(H=n.dataToPoint(R),H[t]+=r),H}function I(D,N,M){var B=N.slice(),R=N.slice();B[t]+=s,R[t]-=s,M?D.push(B,R):D.push(R,B)}function L(D,N){var M=N.slice(),B=N.slice();M[t]-=s,B[t]+=s,D.push(M,B)}}j.exports=w},"7SHv":function(j,P,d){var O=d("LPTA"),E=O.devicePixelRatio,C=d("bYtY"),v=d("SUKs"),w=d("mFDi"),m=d("BPZU"),h=d("Xmg4"),c=d("mLcG"),i=d("Dagg"),r=d("ItGF"),o=1e5,n=314159,e=.01,s=.001;function t(T){return parseInt(T,10)}function a(T){return T?T.__builtin__?!0:!(typeof T.resize!="function"||typeof T.refresh!="function"):!1}var l=new w(0,0,0,0),u=new w(0,0,0,0);function f(T,S,b){return l.copy(T.getBoundingRect()),T.transform&&l.applyTransform(T.transform),u.width=S,u.height=b,!l.intersect(u)}function p(T,S){if(T===S)return!1;if(!T||!S||T.length!==S.length)return!0;for(var b=0;b<T.length;b++)if(T[b]!==S[b])return!0;return!1}function g(T,S){for(var b=0;b<T.length;b++){var _=T[b];_.setTransform(S),S.beginPath(),_.buildPath(S,_.shape),S.clip(),_.restoreTransform(S)}}function A(T,S){var b=document.createElement("div");return b.style.cssText=["position:relative","width:"+T+"px","height:"+S+"px","padding:0","margin:0","border-width:0"].join(";")+";",b}var y=function(S,b,_){this.type="canvas";var I=!S.nodeName||S.nodeName.toUpperCase()==="CANVAS";this._opts=_=C.extend({},_||{}),this.dpr=_.devicePixelRatio||E,this._singleCanvas=I,this.root=S;var L=S.style;L&&(L["-webkit-tap-highlight-color"]="transparent",L["-webkit-user-select"]=L["user-select"]=L["-webkit-touch-callout"]="none",S.innerHTML=""),this.storage=b;var D=this._zlevelList=[],N=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var B=S.width,R=S.height;_.width!=null&&(B=_.width),_.height!=null&&(R=_.height),this.dpr=_.devicePixelRatio||1,S.width=B*this.dpr,S.height=R*this.dpr,this._width=B,this._height=R;var H=new h(S,this,this.dpr);H.__builtin__=!0,H.initContext(),N[n]=H,H.zlevel=n,D.push(n),this._domRoot=S}else{this._width=this._getSize(0),this._height=this._getSize(1);var M=this._domRoot=A(this._width,this._height);S.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 S=this.getViewportRoot();if(S)return{offsetLeft:S.offsetLeft||0,offsetTop:S.offsetTop||0}},refresh:function(S){var b=this.storage.getDisplayList(!0),_=this._zlevelList;this._redrawId=Math.random(),this._paintList(b,S,this._redrawId);for(var I=0;I<_.length;I++){var L=_[I],D=this._layers[L];if(!D.__builtin__&&D.refresh){var N=I===0?this._backgroundColor:null;D.refresh(N)}}return this.refreshHover(),this},addHover:function(S,b){if(S.__hoverMir)return;var _=new S.constructor({style:S.style,shape:S.shape,z:S.z,z2:S.z2,silent:S.silent});return _.__from=S,S.__hoverMir=_,b&&_.setStyle(b),this._hoverElements.push(_),_},removeHover:function(S){var b=S.__hoverMir,_=this._hoverElements,I=C.indexOf(_,b);I>=0&&_.splice(I,1),S.__hoverMir=null},clearHover:function(S){for(var b=this._hoverElements,_=0;_<b.length;_++){var I=b[_].__from;I&&(I.__hoverMir=null)}b.length=0},refreshHover:function(){var S=this._hoverElements,b=S.length,_=this._hoverlayer;if(_&&_.clear(),!b)return;m(S,this.storage.displayableSortFunc),_||(_=this._hoverlayer=this.getLayer(o));var I={};_.ctx.save();for(var L=0;L<b;){var D=S[L],N=D.__from;if(!(N&&N.__zr)){S.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,I))}_.ctx.restore()},getHoverLayer:function(){return this.getLayer(o)},_paintList:function(S,b,_){if(this._redrawId!==_)return;b=b||!1,this._updateLayerStatus(S);var I=this._doPaintList(S,b);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var L=this;c(function(){L._paintList(S,b,_)})}},_compositeManually:function(){var S=this.getLayer(n).ctx,b=this._domRoot.width,_=this._domRoot.height;S.clearRect(0,0,b,_),this.eachBuiltinLayer(function(I){I.virtual&&S.drawImage(I.dom,0,0,b,_)})},_doPaintList:function(S,b){for(var _=[],I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I],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],B=D.ctx,R={};B.save();var H=b?D.__startIndex:D.__drawIndex,F=!b&&D.incremental&&Date.now,K=F&&Date.now(),U=D.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(D.__startIndex===D.__endIndex)D.clear(!1,U);else if(H===D.__startIndex){var V=S[H];(!V.incremental||!V.notClear||b)&&D.clear(!1,U)}H===-1&&(console.error("For some unknown reason. drawIndex is -1"),H=D.__startIndex);for(var z=H;z<D.__endIndex;z++){var Y=S[z];if(this._doPaintEl(Y,D,b,R),Y.__dirty=Y.__dirtyText=!1,F){var q=Date.now()-K;if(q>15)break}}D.__drawIndex=z,D.__drawIndex<D.__endIndex&&(N=!1),R.prevElClipPaths&&B.restore(),B.restore()}return r.wxa&&C.each(this._layers,function(ce){ce&&ce.ctx&&ce.ctx.draw&&ce.ctx.draw()}),N},_doPaintEl:function(S,b,_,I){var L=b.ctx,D=S.transform;if((b.__dirty||_)&&!S.invisible&&S.style.opacity!==0&&!(D&&!D[0]&&!D[3])&&!(S.culling&&f(S,this._width,this._height))){var N=S.__clipPaths,M=I.prevElClipPaths;(!M||p(N,M))&&(M&&(L.restore(),I.prevElClipPaths=null,I.prevEl=null),N&&(L.save(),g(N,L),I.prevElClipPaths=N)),S.beforeBrush&&S.beforeBrush(L),S.brush(L,I.prevEl||null),I.prevEl=S,S.afterBrush&&S.afterBrush(L)}},getLayer:function(S,b){this._singleCanvas&&!this._needsManuallyCompositing&&(S=n);var _=this._layers[S];return _||(_=new h("zr_"+S,this,this.dpr),_.zlevel=S,_.__builtin__=!0,this._layerConfig[S]?C.merge(_,this._layerConfig[S],!0):this._layerConfig[S-e]&&C.merge(_,this._layerConfig[S-e],!0),b&&(_.virtual=b),this.insertLayer(S,_),_.initContext()),_},insertLayer:function(S,b){var _=this._layers,I=this._zlevelList,L=I.length,D=null,N=-1,M=this._domRoot;if(_[S]){v("ZLevel "+S+" has been used already");return}if(!a(b)){v("Layer of zlevel "+S+" is not valid");return}if(L>0&&S>I[0]){for(N=0;N<L-1&&!(I[N]<S&&I[N+1]>S);N++);D=_[I[N]]}if(I.splice(N+1,0,S),_[S]=b,!b.virtual)if(D){var B=D.dom;B.nextSibling?M.insertBefore(b.dom,B.nextSibling):M.appendChild(b.dom)}else M.firstChild?M.insertBefore(b.dom,M.firstChild):M.appendChild(b.dom)},eachLayer:function(S,b){var _=this._zlevelList,I,L;for(L=0;L<_.length;L++)I=_[L],S.call(b,this._layers[I],I)},eachBuiltinLayer:function(S,b){var _=this._zlevelList,I,L,D;for(D=0;D<_.length;D++)L=_[D],I=this._layers[L],I.__builtin__&&S.call(b,I,L)},eachOtherLayer:function(S,b){var _=this._zlevelList,I,L,D;for(D=0;D<_.length;D++)L=_[D],I=this._layers[L],I.__builtin__||S.call(b,I,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(S){this.eachBuiltinLayer(function(R,H){R.__dirty=R.__used=!1});function b(R){L&&(L.__endIndex!==R&&(L.__dirty=!0),L.__endIndex=R)}if(this._singleCanvas)for(var _=1;_<S.length;_++){var I=S[_];if(I.zlevel!==S[_-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,D=0,N,_=0;_<S.length;_++){var I=S[_],M=I.zlevel,B;N!==M&&(N=M,D=0),I.incremental?(B=this.getLayer(M+s,this._needsManuallyCompositing),B.incremental=!0,D=1):B=this.getLayer(M+(D>0?e:0),this._needsManuallyCompositing),B.__builtin__||v("ZLevel "+M+" has been used by unkown layer "+B.id),B!==L&&(B.__used=!0,B.__startIndex!==_&&(B.__dirty=!0),B.__startIndex=_,B.incremental?B.__drawIndex=-1:B.__drawIndex=_,b(_),L=B),I.__dirty&&(B.__dirty=!0,B.incremental&&B.__drawIndex<0&&(B.__drawIndex=_))}b(_),this.eachBuiltinLayer(function(R,H){!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(S){S.clear()},setBackgroundColor:function(S){this._backgroundColor=S},configLayer:function(S,b){if(b){var _=this._layerConfig;_[S]?C.merge(_[S],b,!0):_[S]=b;for(var I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I];if(L===S||L===S+e){var D=this._layers[L];C.merge(D,_[S],!0)}}}},delLayer:function(S){var b=this._layers,_=this._zlevelList,I=b[S];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete b[S],_.splice(C.indexOf(_,S),1)},resize:function(S,b){if(this._domRoot.style){var _=this._domRoot;_.style.display="none";var I=this._opts;if(S!=null&&(I.width=S),b!=null&&(I.height=b),S=this._getSize(0),b=this._getSize(1),_.style.display="",this._width!==S||b!==this._height){_.style.width=S+"px",_.style.height=b+"px";for(var L in this._layers)this._layers.hasOwnProperty(L)&&this._layers[L].resize(S,b);C.each(this._progressiveLayers,function(D){D.resize(S,b)}),this.refresh(!0)}this._width=S,this._height=b}else{if(S==null||b==null)return;this._width=S,this._height=b,this.getLayer(n).resize(S,b)}return this},clearLayer:function(S){var b=this._layers[S];b&&b.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(S){if(S=S||{},this._singleCanvas&&!this._compositeManually)return this._layers[n].dom;var b=new h("image",this,S.pixelRatio||this.dpr);if(b.initContext(),b.clear(!1,S.backgroundColor||this._backgroundColor),S.pixelRatio<=this.dpr){this.refresh();var _=b.dom.width,I=b.dom.height,L=b.ctx;this.eachLayer(function(R){R.__builtin__?L.drawImage(R.dom,0,0,_,I):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 B=N[M];this._doPaintEl(B,b,!0,D)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(S){var b=this._opts,_=["width","height"][S],I=["clientWidth","clientHeight"][S],L=["paddingLeft","paddingTop"][S],D=["paddingRight","paddingBottom"][S];if(b[_]!=null&&b[_]!=="auto")return parseFloat(b[_]);var N=this.root,M=document.defaultView.getComputedStyle(N);return(N[I]||t(M[_])||t(N.style[_]))-(t(M[L])||0)-(t(M[D])||0)|0},pathToImage:function(S,b){b=b||this.dpr;var _=document.createElement("canvas"),I=_.getContext("2d"),L=S.getBoundingRect(),D=S.style,N=D.shadowBlur*b,M=D.shadowOffsetX*b,B=D.shadowOffsetY*b,R=D.hasStroke()?D.lineWidth:0,H=Math.max(R/2,-M+N),F=Math.max(R/2,M+N),K=Math.max(R/2,-B+N),U=Math.max(R/2,B+N),V=L.width+H+F,z=L.height+K+U;_.width=V*b,_.height=z*b,I.scale(b,b),I.clearRect(0,0,V,z),I.dpr=b;var Y={position:S.position,rotation:S.rotation,scale:S.scale};S.position=[H-L.x,K-L.y],S.rotation=0,S.scale=[1,1],S.updateTransform(),S&&S.brush(I);var q=i,ce=new q({style:{x:0,y:0,image:_}});return Y.position!=null&&(ce.position=S.position=Y.position),Y.rotation!=null&&(ce.rotation=S.rotation=Y.rotation),Y.scale!=null&&(ce.scale=S.scale=Y.scale),ce}};var x=y;j.exports=x},"7a+S":function(j,P,d){var O=d("bYtY"),E=d("bLfw"),C=d("YXkt"),v=d("4NO4"),w=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,i){this._data,this._names,this.mergeDefaultAndTheme(h,i),this._initData()},mergeOption:function(h){w.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||[],i=h.axisType,r=this._names=[];if(i==="category"){var o=[];O.each(c,function(s,t){var a=v.getDataItemValue(s),l;O.isObject(s)?(l=O.clone(s),l.value=t):l=t,o.push(l),!O.isString(a)&&(a==null||isNaN(a))&&(a=""),r.push(a+"")}),c=o}var n={category:"ordinal",time:"time"}[i]||"number",e=this._data=new C([{name:"value",type:n}],this);e.initData(c,r)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),m=w;j.exports=m},"7aKB":function(j,P,d){var O=d("bYtY"),E=d("6GrX"),C=d("OELB");function v(A){return isNaN(A)?"-":(A=(A+"").split("."),A[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(A.length>1?"."+A[1]:""))}function w(A,y){return A=(A||"").toLowerCase().replace(/-(.)/g,function(x,T){return T.toUpperCase()}),y&&A&&(A=A.charAt(0).toUpperCase()+A.slice(1)),A}var m=O.normalizeCssArray,h=/([&<>"'])/g,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function i(A){return A==null?"":(A+"").replace(h,function(y,x){return c[x]})}var r=["a","b","c","d","e","f","g"],o=function(A,y){return"{"+A+(y==null?"":y)+"}"};function n(A,y,x){O.isArray(y)||(y=[y]);var T=y.length;if(!T)return"";for(var S=y[0].$vars||[],b=0;b<S.length;b++){var _=r[b];A=A.replace(o(_),o(_,0))}for(var I=0;I<T;I++)for(var L=0;L<S.length;L++){var D=y[I][S[L]];A=A.replace(o(r[L],I),x?i(D):D)}return A}function e(A,y,x){return O.each(y,function(T,S){A=A.replace("{"+S+"}",x?i(T):T)}),A}function s(A,y){A=O.isString(A)?{color:A,extraCssText:y}:A||{};var x=A.color,T=A.type,y=A.extraCssText,S=A.renderMode||"html",b=A.markerId||"X";return x?S==="html"?T==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+i(x)+";"+(y||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+i(x)+";"+(y||"")+'"></span>':{renderMode:S,content:"{marker"+b+"|} ",style:{color:x}}:""}function t(A,y){return A+="","0000".substr(0,y-A.length)+A}function a(A,y,x){(A==="week"||A==="month"||A==="quarter"||A==="half-year"||A==="year")&&(A=`MM-dd
yyyy`);var T=C.parseDate(y),S=x?"UTC":"",b=T["get"+S+"FullYear"](),_=T["get"+S+"Month"]()+1,I=T["get"+S+"Date"](),L=T["get"+S+"Hours"](),D=T["get"+S+"Minutes"](),N=T["get"+S+"Seconds"](),M=T["get"+S+"Milliseconds"]();return A=A.replace("MM",t(_,2)).replace("M",_).replace("yyyy",b).replace("yy",b%100).replace("dd",t(I,2)).replace("d",I).replace("hh",t(L,2)).replace("h",L).replace("mm",t(D,2)).replace("m",D).replace("ss",t(N,2)).replace("s",N).replace("SSS",t(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,T,S,b,_,I){return E.getBoundingRect(A,y,x,T,S,I,b,_)}function g(A,y){if(y==="_blank"||y==="blank"){var x=window.open();x.opener=null,x.location=A}else window.open(A,y)}P.addCommas=v,P.toCamelCase=w,P.normalizeCssArray=m,P.encodeHTML=i,P.formatTpl=n,P.formatTplSimple=e,P.getTooltipMarker=s,P.formatTime=a,P.capitalFirst=l,P.truncateText=u,P.getTextBoundingRect=f,P.getTextRect=p,P.windowOpen=g},"7bkD":function(j,P,d){var O=d("bYtY");function E(C,v){v=v||{};var w=C.coordinateSystem,m=C.axis,h={},c=m.position,i=m.orient,r=w.getRect(),o=[r.x,r.x+r.width,r.y,r.y+r.height],n={horizontal:{top:o[2],bottom:o[3]},vertical:{left:o[0],right:o[1]}};h.position=[i==="vertical"?n.vertical[c]:o[0],i==="horizontal"?n.horizontal[c]:o[3]];var e={horizontal:0,vertical:1};h.rotation=Math.PI/2*e[i];var s={top:-1,bottom:1,right:1,left:-1};h.labelDirection=h.tickDirection=h.nameDirection=s[c],C.get("axisTick.inside")&&(h.tickDirection=-h.tickDirection),O.retrieve(v.labelInside,C.get("axisLabel.inside"))&&(h.labelDirection=-h.labelDirection);var t=v.rotate;return t==null&&(t=C.get("axisLabel.rotate")),h.labelRotation=c==="top"?-t:t,h.z2=1,h}P.layout=E},"7hqr":function(j,P,d){var O=d("bYtY"),E=O.each,C=O.isString;function v(h,c,i){i=i||{};var r=i.byIndex,o=i.stackedCoordDimension,n=!!(h&&h.get("stack")),e,s,t,a;if(E(c,function(p,g){C(p)&&(c[g]=p={name:p}),n&&!p.isExtraCoord&&(!r&&!e&&p.ordinalMeta&&(e=p),!s&&p.type!=="ordinal"&&p.type!=="time"&&(!o||o===p.coordDim)&&(s=p))}),s&&!r&&!e&&(r=!0),s){t="__\0ecstackresult",a="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var l=s.coordDim,u=s.type,f=0;E(c,function(p){p.coordDim===l&&f++}),c.push({name:t,coordDim:l,coordDimIndex:f,type:u,isExtraCoord:!0,isCalculationCoord:!0}),f++,c.push({name:a,coordDim:a,coordDimIndex:f,type:u,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:s&&s.name,stackedByDimension:e&&e.name,isStackedByIndex:r,stackedOverDimension:a,stackResultDimension:t}}function w(h,c){return!!c&&c===h.getCalculationInfo("stackedDimension")}function m(h,c){return w(h,c)?h.getCalculationInfo("stackResultDimension"):c}P.enableDataStack=v,P.isDimensionStacked=w,P.getStackedDimension=m},"7mYs":function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),v=d("7aKB"),w=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=O.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(i,r,o){var n=this.group;n.removeAll();var e=i.coordinateSystem,s=e.getRangeInfo(),t=e.getOrient();this._renderDayRect(i,s,n),this._renderLines(i,s,t,n),this._renderYearText(i,s,t,n),this._renderMonthText(i,t,n),this._renderWeekText(i,s,t,n)},_renderDayRect:function(i,r,o){for(var n=i.coordinateSystem,e=i.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),t=n.getCellHeight(),a=r.start.time;a<=r.end.time;a=n.getNextNDay(a,1).time){var l=n.dataToRect([a],!1).tl,u=new C.Rect({shape:{x:l[0],y:l[1],width:s,height:t},cursor:"default",style:e});o.add(u)}},_renderLines:function(i,r,o,n){var e=this,s=i.coordinateSystem,t=i.getModel("splitLine.lineStyle").getLineStyle(),a=i.get("splitLine.show"),l=t.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=r.start,f=0;u.time<=r.end.time;f++){g(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)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(A){e._firstDayOfMonth.push(s.getDateInfo(A)),e._firstDayPoints.push(s.dataToRect([A],!1).tl);var y=e._getLinePointsOfOneWeek(i,A,o);e._tlpoints.push(y[0]),e._blpoints.push(y[y.length-1]),a&&e._drawSplitline(y,t,n)}a&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,l,o),t,n),a&&this._drawSplitline(e._getEdgesPoints(e._blpoints,l,o),t,n)},_getEdgesPoints:function(i,r,o){var n=[i[0].slice(),i[i.length-1].slice()],e=o==="horizontal"?0:1;return n[0][e]=n[0][e]-r/2,n[1][e]=n[1][e]+r/2,n},_drawSplitline:function(i,r,o){var n=new C.Polyline({z2:20,shape:{points:i},style:r});o.add(n)},_getLinePointsOfOneWeek:function(i,r,o){var n=i.coordinateSystem;r=n.getDateInfo(r);for(var e=[],s=0;s<7;s++){var t=n.getNextNDay(r.time,s),a=n.dataToRect([t.time],!1);e[2*t.day]=a.tl,e[2*t.day+1]=a[o==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(i,r){return typeof i=="string"&&i?v.formatTplSimple(i,r):typeof i=="function"?i(r):r.nameMap},_yearTextPositionControl:function(i,r,o,n,e){r=r.slice();var s=["center","bottom"];n==="bottom"?(r[1]+=e,s=["center","top"]):n==="left"?r[0]-=e:n==="right"?(r[0]+=e,s=["center","top"]):r[1]-=e;var t=0;return(n==="left"||n==="right")&&(t=Math.PI/2),{rotation:t,position:r,style:{textAlign:s[0],textVerticalAlign:s[1]}}},_renderYearText:function(i,r,o,n){var e=i.getModel("yearLabel");if(!e.get("show"))return;var s=e.get("margin"),t=e.get("position");t||(t=o!=="horizontal"?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(a[0][0]+a[1][0])/2,u=(a[0][1]+a[1][1])/2,f=o==="horizontal"?0:1,p={top:[l,a[f][1]],bottom:[l,a[1-f][1]],left:[a[1-f][0],u],right:[a[f][0],u]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var A=e.get("formatter"),y={start:r.start.y,end:r.end.y,nameMap:g},x=this._formatterLabel(A,y),T=new C.Text({z2:30});C.setTextStyle(T.style,e,{text:x}),T.attr(this._yearTextPositionControl(T,p[t],o,t,s)),n.add(T)},_monthTextPositionControl:function(i,r,o,n,e){var s="left",t="top",a=i[0],l=i[1];return o==="horizontal"?(l=l+e,r&&(s="center"),n==="start"&&(t="bottom")):(a=a+e,r&&(t="middle"),n==="start"&&(s="right")),{x:a,y:l,textAlign:s,textVerticalAlign:t}},_renderMonthText:function(i,r,o){var n=i.getModel("monthLabel");if(!n.get("show"))return;var e=n.get("nameMap"),s=n.get("margin"),t=n.get("position"),a=n.get("align"),l=[this._tlpoints,this._blpoints];E.isString(e)&&(e=m[e.toUpperCase()]||[]);var u=t==="start"?0:1,f=r==="horizontal"?0:1;s=t==="start"?-s:s;for(var p=a==="center",g=0;g<l[u].length-1;g++){var A=l[u][g].slice(),y=this._firstDayOfMonth[g];if(p){var x=this._firstDayPoints[g];A[f]=(x[f]+l[0][g+1][f])/2}var T=n.get("formatter"),S=e[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},_=this._formatterLabel(T,b),I=new C.Text({z2:30});E.extend(C.setTextStyle(I.style,n,{text:_}),this._monthTextPositionControl(A,p,r,t,s)),o.add(I)}},_weekTextPositionControl:function(i,r,o,n,e){var s="center",t="middle",a=i[0],l=i[1],u=o==="start";return r==="horizontal"?(a=a+n+(u?1:-1)*e[0]/2,s=u?"right":"left"):(l=l+n+(u?1:-1)*e[1]/2,t=u?"bottom":"top"),{x:a,y:l,textAlign:s,textVerticalAlign:t}},_renderWeekText:function(i,r,o,n){var e=i.getModel("dayLabel");if(!e.get("show"))return;var s=i.coordinateSystem,t=e.get("position"),a=e.get("nameMap"),l=e.get("margin"),u=s.getFirstDayOfWeek();E.isString(a)&&(a=h[a.toUpperCase()]||[]);var f=s.getNextNDay(r.end.time,7-r.lweek).time,p=[s.getCellWidth(),s.getCellHeight()];l=w.parsePercent(l,p[o==="horizontal"?0:1]),t==="start"&&(f=s.getNextNDay(r.start.time,-(7+r.fweek)).time,l=-l);for(var g=0;g<7;g++){var A=s.getNextNDay(f,g),y=s.dataToRect([A.time],!1).center,x=g;x=Math.abs((g+u)%7);var T=new C.Text({z2:30});E.extend(C.setTextStyle(T.style,e,{text:a[x]}),this._weekTextPositionControl(y,o,t,l,p)),n.add(T)}}});j.exports=c},"7oTu":function(j,P,d){var O=d("IMiH"),E=d("QBsz"),C=E.applyTransform,v=O.CMD,w=[[],[],[]],m=Math.sqrt,h=Math.atan2;function c(i,r){var o=i.data,n,e,s,t,a,l,u=v.M,f=v.C,p=v.L,g=v.R,A=v.A,y=v.Q;for(s=0,t=0;s<o.length;){n=o[s++],t=s,e=0;switch(n){case u:e=1;break;case p:e=1;break;case f:e=3;break;case y:e=2;break;case A:var x=r[4],T=r[5],S=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]/S);o[s]*=S,o[s++]+=x,o[s]*=b,o[s++]+=T,o[s++]*=S,o[s++]*=b,o[s++]+=_,o[s++]+=_,s+=2,t=s;break;case g:l[0]=o[s++],l[1]=o[s++],C(l,l,r),o[t++]=l[0],o[t++]=l[1],l[0]+=o[s++],l[1]+=o[s++],C(l,l,r),o[t++]=l[0],o[t++]=l[1]}for(a=0;a<e;a++){var l=w[a];l[0]=o[s++],l[1]=o[s++],C(l,l,r),o[t++]=l[0],o[t++]=l[1]}}}j.exports=c},"7pVf":function(j,P,d){var O=d("ProS"),E=d("ZqQs");d("oE7X"),d("OUJF"),d("3X6L"),d("NH9N"),O.registerPreprocessor(E)},"7ph2":function(j,P){function d(C){return C instanceof Array||(C=[C,C]),C}var O="lineStyle.opacity".split("."),E={seriesType:"lines",reset:function(C,v,w){var m=d(C.get("symbol")),h=d(C.get("symbolSize")),c=C.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",C.get(O));function i(r,o){var n=r.getItemModel(o),e=d(n.getShallow("symbol",!0)),s=d(n.getShallow("symbolSize",!0)),t=n.get(O);e[0]&&r.setItemVisual(o,"fromSymbol",e[0]),e[1]&&r.setItemVisual(o,"toSymbol",e[1]),s[0]&&r.setItemVisual(o,"fromSymbolSize",s[0]),s[1]&&r.setItemVisual(o,"toSymbolSize",s[1]),r.setItemVisual(o,"opacity",t)}return{dataEach:c.hasItemOption?i:null}}};j.exports=E},"7uqq":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("AUH6"),m=d("+TT/"),h=d("OELB"),c=d("W4dC"),i=d("7DRL");function r(s,t){var a=s.get("boundingCoords");if(a!=null){var l=a[0],u=a[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,g=s.get("layoutCenter"),A=s.get("layoutSize"),y=t.getWidth(),x=t.getHeight(),T=f.width/f.height*this.aspectScale,S=!1;g&&A&&(g=[h.parsePercent(g[0],y),h.parsePercent(g[1],x)],A=h.parsePercent(A,Math.min(y,x)),!isNaN(g[0])&&!isNaN(g[1])&&!isNaN(A)&&(S=!0));var b;if(S){var b={};T>1?(b.width=A,b.height=A/T):(b.height=A,b.width=A*T),b.y=g[1]-b.height/2,b.x=g[0]-b.width/2}else p=s.getBoxLayoutParams(),p.aspect=T,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 o(s,t){v.each(t.get("geoCoord"),function(a,l){s.addGeoCoord(l,a)})}var n={dimensions:w.prototype.dimensions,create:function(s,t){var a=[];s.eachComponent("geo",function(u,f){var p=u.get("map"),g=u.get("aspectScale"),A=!0,y=i.retrieveMap(p);y&&y[0]&&y[0].type==="svg"?(g==null&&(g=1),A=!1):g==null&&(g=.75);var x=new w(p+f,p,u.get("nameMap"),A);x.aspectScale=g,x.zoomLimit=u.get("scaleLimit"),a.push(x),o(x,u),u.coordinateSystem=x,x.model=u,x.resize=r,x.resize(u,t)}),s.eachSeries(function(u){var f=u.get("coordinateSystem");if(f==="geo"){var p=u.get("geoIndex")||0;u.coordinateSystem=a[p]}});var l={};return s.eachSeriesByType("map",function(u){if(!u.getHostGeoModel()){var f=u.getMapType();l[f]=l[f]||[],l[f].push(u)}}),v.each(l,function(u,f){var p=v.map(u,function(A){return A.get("nameMap")}),g=new w(f,f,v.mergeAll(p));g.zoomLimit=v.retrieve.apply(null,v.map(u,function(A){return A.get("scaleLimit")})),a.push(g),g.resize=r,g.aspectScale=u[0].get("aspectScale"),g.resize(u[0],t),v.each(u,function(A){A.coordinateSystem=g,o(g,A)})}),a},getFilledRegions:function(s,t,a){for(var l=(s||[]).slice(),u=v.createHashMap(),f=0;f<l.length;f++)u.set(l[f].name,l[f]);var p=c.load(t,a);return v.each(p.regions,function(g){var A=g.name;!u.get(A)&&l.push({name:A})}),l}};C.registerCoordinateSystem("geo",n);var e=n;j.exports=e},"7yuC":function(j,P,d){var O=d("QBsz"),E=O.scaleAndAdd;function C(v,w,m){for(var h=m.rect,c=h.width,i=h.height,r=[h.x+c/2,h.y+i/2],o=m.gravity==null?.1:m.gravity,n=0;n<v.length;n++){var e=v[n];e.p||(e.p=O.create(c*(Math.random()-.5)+r[0],i*(Math.random()-.5)+r[1])),e.pp=O.clone(e.p),e.edges=null}var s=m.friction==null?.6:m.friction,t=s;return{warmUp:function(){t=s*.8},setFixed:function(a){v[a].fixed=!0},setUnfixed:function(a){v[a].fixed=!1},step:function(a){for(var l=[],u=v.length,f=0;f<w.length;f++){var p=w[f];if(p.ignoreForceLayout)continue;var g=p.n1,A=p.n2;O.sub(l,A.p,g.p);var y=O.len(l)-p.d,x=A.w/(g.w+A.w);isNaN(x)&&(x=0),O.normalize(l,l),!g.fixed&&E(g.p,g.p,l,x*y*t),!A.fixed&&E(A.p,A.p,l,-(1-x)*y*t)}for(var f=0;f<u;f++){var T=v[f];T.fixed||(O.sub(l,r,T.p),E(T.p,T.p,l,o*t))}for(var f=0;f<u;f++)for(var g=v[f],S=f+1;S<u;S++){var A=v[S];O.sub(l,A.p,g.p);var y=O.len(l);y===0&&(O.set(l,Math.random()-.5,Math.random()-.5),y=1);var b=(g.rep+A.rep)/y/y;!g.fixed&&E(g.pp,g.pp,l,b),!A.fixed&&E(A.pp,A.pp,l,-b)}for(var _=[],f=0;f<u;f++){var T=v[f];T.fixed||(O.sub(_,T.p,T.pp),E(T.p,T.p,_,t),O.copy(T.pp,T.p))}t=t*.992,a&&a(v,w,t<.01)}}}P.forceLayout=C},"8+yF":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={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(v){if(v>=32&&v<=255)return v;var w=O[v];return w!==void 0?w:16777216|v}};P.default=E},"8CQX":function(j,P,d){"use strict";function O(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(a){return typeof a}:O=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(s)}Object.defineProperty(P,"__esModule",{value:!0}),P.getKeycode=o,P.getKey=n,P.getKeysym=e;var E=r(d("mHUz")),C=r(d("8+yF")),v=r(d("6Qwc")),w=r(d("gIYZ")),m=r(d("mTgk")),h=i(d("GdRQ"));function c(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return c=function(){return s},s}function i(s){if(s&&s.__esModule)return s;if(s===null||O(s)!=="object"&&typeof s!="function")return{default:s};var t=c();if(t&&t.has(s))return t.get(s);var a={},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(a,u,f):a[u]=s[u]}return a.default=s,t&&t.set(s,a),a}function r(s){return s&&s.__esModule?s:{default:s}}function o(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 v.default){var t=v.default[s.keyCode];if(h.isMac()&&t==="ContextMenu"&&(t="MetaRight"),s.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(s.location===3)switch(t){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 t}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 t=o(s);return t in w.default?w.default[t]:s.charCode?String.fromCharCode(s.charCode):"Unidentified"}function e(s){var t=n(s);if(t==="Unidentified")return null;if(t in m.default){var a=s.location;if(t==="Meta"&&a===0&&(a=2),t==="Clear"&&a===3){var l=o(s);l==="NumLock"&&(a=0)}if((a===void 0||a>3)&&(a=0),t==="Meta"){var u=o(s);if(u==="AltLeft")return E.default.XK_Meta_L;if(u==="AltRight")return E.default.XK_Meta_R}if(t==="Clear"){var f=o(s);if(f==="NumLock")return E.default.XK_Num_Lock}return m.default[t][a]}if(t.length!==1)return null;var p=t.charCodeAt();return p?C.default.lookup(p):null}},"8EBN":function(j,P,d){(function(O){O(d("VrN/"))})(function(O){"use strict";O.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<O.modeInfo.length;E++){var C=O.modeInfo[E];C.mimes&&(C.mime=C.mimes[0])}O.findModeByMIME=function(v){v=v.toLowerCase();for(var w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.mime==v)return m;if(m.mimes){for(var h=0;h<m.mimes.length;h++)if(m.mimes[h]==v)return m}}if(/\+xml$/.test(v))return O.findModeByMIME("application/xml");if(/\+json$/.test(v))return O.findModeByMIME("application/json")},O.findModeByExtension=function(v){v=v.toLowerCase();for(var w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.ext){for(var h=0;h<m.ext.length;h++)if(m.ext[h]==v)return m}}},O.findModeByFileName=function(v){for(var w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.file&&m.file.test(v))return m}var h=v.lastIndexOf("."),c=h>-1&&v.substring(h+1,v.length);if(c)return O.findModeByExtension(c)},O.findModeByName=function(v){v=v.toLowerCase();for(var w=0;w<O.modeInfo.length;w++){var m=O.modeInfo[w];if(m.name.toLowerCase()==v)return m;if(m.alias){for(var h=0;h<m.alias.length;h++)if(m.alias[h].toLowerCase()==v)return m}}}})},"8IMR":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},"8ISB":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("6Hfg"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},"8K/p":function(j,P,d){"use strict";function O(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(e){return typeof e}:O=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(o)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var E=m(d("Lo0S")),C=v(d("ItS6"));function v(o){return o&&o.__esModule?o:{default:o}}function w(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return w=function(){return o},o}function m(o){if(o&&o.__esModule)return o;if(o===null||O(o)!=="object"&&typeof o!="function")return{default:o};var n=w();if(n&&n.has(o))return n.get(o);var e={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in o)if(Object.prototype.hasOwnProperty.call(o,t)){var a=s?Object.getOwnPropertyDescriptor(o,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=o[t]}return e.default=o,n&&n.set(o,e),e}function h(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function c(o,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(o,s.key,s)}}function i(o,n,e){return n&&c(o.prototype,n),e&&c(o,e),o}var r=function(){function o(){h(this,o),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 C.default}return i(o,[{key:"decodeRect",value:function(e,s,t,a,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 g;if(this._ctl===8)g=this._fillRect(e,s,t,a,l,u,f);else if(this._ctl===9)g=this._jpegRect(e,s,t,a,l,u,f);else if(this._ctl===10)g=this._pngRect(e,s,t,a,l,u,f);else if((this._ctl&128)==0)g=this._basicRect(this._ctl,e,s,t,a,l,u,f);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return g&&(this._ctl=null),g}},{key:"_fillRect",value:function(e,s,t,a,l,u,f){if(l.rQwait("TIGHT",3))return!1;var p=l.rQi,g=l.rQ;return u.fillRect(e,s,t,a,[g[p+2],g[p+1],g[p]],!1),l.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,s,t,a,l,u,f){var p=this._readData(l);return p===null?!1:(u.imageRect(e,s,t,a,"image/jpeg",p),!0)}},{key:"_pngRect",value:function(e,s,t,a,l,u,f){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,s,t,a,l,u,f,p){if(this._filter===null)if(e&4){if(u.rQwait("TIGHT",1))return!1;this._filter=u.rQshift8()}else this._filter=0;var g=e&3,A;switch(this._filter){case 0:A=this._copyFilter(g,s,t,a,l,u,f,p);break;case 1:A=this._paletteFilter(g,s,t,a,l,u,f,p);break;case 2:A=this._gradientFilter(g,s,t,a,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(e,s,t,a,l,u,f,p){var g=a*l*3,A;if(g<12){if(u.rQwait("TIGHT",g))return!1;A=u.rQshiftBytes(g)}else{if(A=this._readData(u),A===null)return!1;this._zlibs[e].setInput(A),A=this._zlibs[e].inflate(g),this._zlibs[e].setInput(null)}return f.blitRgbImage(s,t,a,l,A,0,!1),!0}},{key:"_paletteFilter",value:function(e,s,t,a,l,u,f,p){if(this._numColors===0){if(u.rQwait("TIGHT palette",1))return!1;var g=u.rQpeek8()+1,A=g*3;if(u.rQwait("TIGHT palette",1+A))return!1;this._numColors=g,u.rQskipBytes(1),u.rQshiftTo(this._palette,A)}var y=this._numColors<=2?1:8,x=Math.floor((a*y+7)/8),T=x*l,S;if(T<12){if(u.rQwait("TIGHT",T))return!1;S=u.rQshiftBytes(T)}else{if(S=this._readData(u),S===null)return!1;this._zlibs[e].setInput(S),S=this._zlibs[e].inflate(T),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(s,t,a,l,S,this._palette,f):this._paletteRect(s,t,a,l,S,this._palette,f),this._numColors=0,!0}},{key:"_monoRect",value:function(e,s,t,a,l,u,f){for(var p=this._getScratchBuffer(t*a*4),g=Math.floor((t+7)/8),A=Math.floor(t/8),y=0;y<a;y++){var x=void 0,T=void 0,S=void 0;for(S=0;S<A;S++)for(var b=7;b>=0;b--)x=(y*t+S*8+7-b)*4,T=(l[y*g+S]>>b&1)*3,p[x]=u[T],p[x+1]=u[T+1],p[x+2]=u[T+2],p[x+3]=255;for(var _=7;_>=8-t%8;_--)x=(y*t+S*8+7-_)*4,T=(l[y*g+S]>>_&1)*3,p[x]=u[T],p[x+1]=u[T+1],p[x+2]=u[T+2],p[x+3]=255}f.blitRgbxImage(e,s,t,a,p,0,!1)}},{key:"_paletteRect",value:function(e,s,t,a,l,u,f){for(var p=this._getScratchBuffer(t*a*4),g=t*a*4,A=0,y=0;A<g;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(e,s,t,a,p,0,!1)}},{key:"_gradientFilter",value:function(e,s,t,a,l,u,f,p){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var s;s=e.rQshift8(),this._len=s&127,s&128&&(s=e.rQshift8(),this._len|=(s&127)<<7,s&128&&(s=e.rQshift8(),this._len|=s<<14))}if(e.rQwait("TIGHT",this._len))return null;var t=e.rQshiftBytes(this._len);return this._len=0,t}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),o}();P.default=r},"8SMY":function(j,P,d){var O=d("n4Lv"),E=O.prepareDataCoordInfo,C=O.getStackedOnPoint;function v(m,h){var c=[];return h.diff(m).add(function(i){c.push({cmd:"+",idx:i})}).update(function(i,r){c.push({cmd:"=",idx:r,idx1:i})}).remove(function(i){c.push({cmd:"-",idx:i})}).execute(),c}function w(m,h,c,i,r,o,n,e){for(var s=v(m,h),t=[],a=[],l=[],u=[],f=[],p=[],g=[],A=E(r,h,n),y=E(o,m,e),x=0;x<s.length;x++){var T=s[x],S=!0;switch(T.cmd){case"=":var b=m.getItemLayout(T.idx),_=h.getItemLayout(T.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=_.slice()),t.push(b),a.push(_),l.push(c[T.idx]),u.push(i[T.idx1]),g.push(h.getRawIndex(T.idx1));break;case"+":var I=T.idx;t.push(r.dataToPoint([h.get(A.dataDimsForPoint[0],I),h.get(A.dataDimsForPoint[1],I)])),a.push(h.getItemLayout(I).slice()),l.push(C(A,r,h,I)),u.push(i[I]),g.push(h.getRawIndex(I));break;case"-":var I=T.idx,L=m.getRawIndex(I);L!==I?(t.push(m.getItemLayout(I)),a.push(o.dataToPoint([m.get(y.dataDimsForPoint[0],I),m.get(y.dataDimsForPoint[1],I)])),l.push(c[I]),u.push(C(y,o,m,I)),g.push(L)):S=!1}S&&(f.push(T),p.push(p.length))}p.sort(function(H,F){return g[H]-g[F]});for(var D=[],N=[],M=[],B=[],R=[],x=0;x<p.length;x++){var I=p[x];D[x]=t[I],N[x]=a[I],M[x]=l[I],B[x]=u[I],R[x]=f[I]}return{current:D,next:N,stackedOnCurrent:M,stackedOnNext:B,status:R}}j.exports=w},"8Skl":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="DownOutlined";var h=P.a=E.forwardRef(m)},"8Th4":function(j,P,d){var O=d("3LNs"),E=d("/y7N"),C=d("7bkD"),v=d("Znkb"),w=["x","y"],m=["width","height"],h=O.extend({makeElOption:function(n,e,s,t,a){var l=s.axis,u=l.coordinateSystem,f=r(u,1-i(l)),p=u.dataToPoint(e)[0],g=t.get("type");if(g&&g!=="none"){var A=E.buildElStyle(t),y=c[g](l,p,f);y.style=A,n.graphicKey=y.type,n.pointer=y}var x=C.layout(s);E.buildCartesianSingleLabelElOption(e,n,x,s,t,a)},getHandleTransform:function(n,e,s){var t=C.layout(e,{labelInside:!1});return t.labelMargin=s.get("handle.margin"),{position:E.getTransformedPosition(e.axis,n,t),rotation:t.rotation+(t.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,e,s,t){var a=s.axis,l=a.coordinateSystem,u=i(a),f=r(l,u),p=n.position;p[u]+=e[u],p[u]=Math.min(f[1],p[u]),p[u]=Math.max(f[0],p[u]);var g=r(l,1-u),A=(g[1]+g[0])/2,y=[A,A];return y[u]=p[u],{position:p,rotation:n.rotation,cursorPoint:y,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(n,e,s){var t=E.makeLineShape([e,s[0]],[e,s[1]],i(n));return{type:"Line",subPixelOptimize:!0,shape:t}},shadow:function(n,e,s){var t=n.getBandWidth(),a=s[1]-s[0];return{type:"Rect",shape:E.makeRectShape([e-t/2,s[0]],[t,a],i(n))}}};function i(n){return n.isHorizontal()?0:1}function r(n,e){var s=n.getRect();return[s[w[e]],s[w[e]]+s[m[e]]]}v.registerAxisPointerClass("SingleAxisPointer",h);var o=h;j.exports=o},"8Uz6":function(j,P,d){var O=d("hNWo"),E=d("+TT/"),C=E.mergeLayoutParam,v=E.getLayoutParams,w=O.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,i,r,o){var n=v(c);w.superCall(this,"init",c,i,r,o),m(this,c,n)},mergeOption:function(c,i){w.superCall(this,"mergeOption",c,i),m(this,this.option,c)}});function m(c,i,r){var o=c.getOrient(),n=[1,1];n[o.index]=0,C(i,r,{type:"box",ignoreSize:n})}var h=w;j.exports=h},"8X+K":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("4mN7"),w=v.fromPoints,m=d("9wZj"),h=d("FBjb"),c=d("8SMY"),i=d("IwbS"),r=d("4NO4"),o=d("1NG9"),n=o.Polyline,e=o.Polygon,s=d("6Ic6"),t=d("n4Lv"),a=t.prepareDataCoordInfo,l=t.getStackedOnPoint,u=d("sK/D"),f=u.createGridClipPath,p=u.createPolarClipPath;function g(D,N){if(D.length!==N.length)return;for(var M=0;M<D.length;M++){var B=D[M],R=N[M];if(B[0]!==R[0]||B[1]!==R[1])return}return!0}function A(D,N){var M=[],B=[],R=[],H=[];return w(D,M,B),w(N,R,H),Math.max(Math.abs(M[0]-R[0]),Math.abs(M[1]-R[1]),Math.abs(B[0]-H[0]),Math.abs(B[1]-H[1]))}function y(D){return typeof D=="number"?D:D?.5:0}function x(D,N,M){if(!M.valueDim)return[];for(var B=[],R=0,H=N.count();R<H;R++)B.push(l(M,D,N,R));return B}function T(D,N,M){for(var B=N.getBaseAxis(),R=B.dim==="x"||B.dim==="radius"?0:1,H=[],F=0;F<D.length-1;F++){var K=D[F+1],U=D[F];H.push(U);var V=[];switch(M){case"end":V[R]=K[R],V[1-R]=U[1-R],H.push(V);break;case"middle":var z=(U[R]+K[R])/2,Y=[];V[R]=Y[R]=z,V[1-R]=U[1-R],Y[1-R]=K[1-R],H.push(V),H.push(Y);break;default:V[R]=U[R],V[1-R]=K[1-R],H.push(V)}}return D[F]&&H.push(D[F]),H}function S(D,N){var M=D.getVisual("visualMeta");if(!M||!M.length||!D.count())return;if(N.type!=="cartesian2d")return;for(var B,R,H=M.length-1;H>=0;H--){var F=M[H].dimension,K=D.dimensions[F],U=D.getDimensionInfo(K);if(B=U&&U.coordDim,B==="x"||B==="y"){R=M[H];break}}if(!R)return;var V=N.getAxis(B),z=C.map(R.stops,function(He){return{coord:V.toGlobalCoord(V.dataToCoord(He.value)),color:He.color}}),Y=z.length,q=R.outerColors.slice();Y&&z[0].coord>z[Y-1].coord&&(z.reverse(),q.reverse());var ce=10,ie=z[0].coord-ce,ve=z[Y-1].coord+ce,Ee=ve-ie;if(Ee<.001)return"transparent";C.each(z,function(He){He.offset=(He.coord-ie)/Ee}),z.push({offset:Y?z[Y-1].offset:.5,color:q[1]||"transparent"}),z.unshift({offset:Y?z[0].offset:.5,color:q[0]||"transparent"});var Le=new i.LinearGradient(0,0,0,0,z,!0);return Le[B]=ie,Le[B+"2"]=ve,Le}function b(D,N,M){var B=D.get("showAllSymbol"),R=B==="auto";if(B&&!R)return;var H=M.getAxesByScale("ordinal")[0];if(!H)return;if(R&&_(H,N))return;var F=N.mapDimension(H.dim),K={};return C.each(H.getViewLabels(),function(U){K[U.tickValue]=1}),function(U){return!K.hasOwnProperty(N.get(F,U))}}function _(D,N){var M=D.getExtent(),B=Math.abs(M[1]-M[0])/D.scale.count();isNaN(B)&&(B=0);for(var R=N.count(),H=Math.max(1,Math.round(R/5)),F=0;F<R;F+=H)if(h.getSymbolSize(N,F)[D.isHorizontal()?1:0]*1.5>B)return!1;return!0}function I(D,N,M){if(D.type==="cartesian2d"){var B=D.getBaseAxis().isHorizontal(),R=f(D,N,M);if(!M.get("clip",!0)){var H=R.shape,F=Math.max(H.width,H.height);B?(H.y-=F,H.height+=F*2):(H.x-=F,H.width+=F*2)}return R}else return p(D,N,M)}var L=s.extend({type:"line",init:function(){var D=new i.Group,N=new m;this.group.add(N.group),this._symbolDraw=N,this._lineGroup=D},render:function(D,N,M){var B=D.coordinateSystem,R=this.group,H=D.getData(),F=D.getModel("lineStyle"),K=D.getModel("areaStyle"),U=H.mapArray(H.getItemLayout),V=B.type==="polar",z=this._coordSys,Y=this._symbolDraw,q=this._polyline,ce=this._polygon,ie=this._lineGroup,ve=D.get("animation"),Ee=!K.isEmpty(),Le=K.get("origin"),He=a(B,H,Le),ge=x(B,H,He),Fe=D.get("showSymbol"),Q=Fe&&!V&&b(D,H,B),fe=this._data;fe&&fe.eachItemGraphicEl(function(he,Pe){he.__temp&&(R.remove(he),fe.setItemGraphicEl(Pe,null))}),Fe||Y.remove(),R.add(ie);var Je=!V&&D.get("step"),ne;B&&B.getArea&&D.get("clip",!0)&&(ne=B.getArea(),ne.width!=null?(ne.x-=.1,ne.y-=.1,ne.width+=.2,ne.height+=.2):ne.r0&&(ne.r0-=.5,ne.r1+=.5)),this._clipShapeForSymbol=ne,q&&z.type===B.type&&Je===this._step?(Ee&&!ce?ce=this._newPolygon(U,ge,B,ve):ce&&!Ee&&(ie.remove(ce),ce=this._polygon=null),ie.setClipPath(I(B,!1,D)),Fe&&Y.updateData(H,{isIgnore:Q,clipShape:ne}),H.eachItemGraphicEl(function(he){he.stopAnimation(!0)}),(!g(this._stackedOnPoints,ge)||!g(this._points,U))&&(ve?this._updateAnimation(H,ge,B,M,Je,Le):(Je&&(U=T(U,B,Je),ge=T(ge,B,Je)),q.setShape({points:U}),ce&&ce.setShape({points:U,stackedOnPoints:ge})))):(Fe&&Y.updateData(H,{isIgnore:Q,clipShape:ne}),Je&&(U=T(U,B,Je),ge=T(ge,B,Je)),q=this._newPolyline(U,B,ve),Ee&&(ce=this._newPolygon(U,ge,B,ve)),ie.setClipPath(I(B,!0,D)));var X=S(H,B)||H.getVisual("color");q.useStyle(C.defaults(F.getLineStyle(),{fill:"none",stroke:X,lineJoin:"bevel"}));var G=D.get("smooth");if(G=y(D.get("smooth")),q.setShape({smooth:G,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")}),ce){var te=H.getCalculationInfo("stackedOnSeries"),we=0;ce.useStyle(C.defaults(K.getAreaStyle(),{fill:X,opacity:.7,lineJoin:"bevel"})),te&&(we=y(te.get("smooth"))),ce.setShape({smooth:G,stackedOnSmooth:we,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")})}this._data=H,this._coordSys=B,this._stackedOnPoints=ge,this._points=U,this._step=Je,this._valueOrigin=Le},dispose:function(){},highlight:function(D,N,M,B){var R=D.getData(),H=r.queryDataIndex(R,B);if(!(H instanceof Array)&&H!=null&&H>=0){var F=R.getItemGraphicEl(H);if(!F){var K=R.getItemLayout(H);if(!K)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(K[0],K[1]))return;F=new h(R,H),F.position=K,F.setZ(D.get("zlevel"),D.get("z")),F.ignore=isNaN(K[0])||isNaN(K[1]),F.__temp=!0,R.setItemGraphicEl(H,F),F.stopSymbolAnimation(!0),this.group.add(F)}F.highlight()}else s.prototype.highlight.call(this,D,N,M,B)},downplay:function(D,N,M,B){var R=D.getData(),H=r.queryDataIndex(R,B);if(H!=null&&H>=0){var F=R.getItemGraphicEl(H);F&&(F.__temp?(R.setItemGraphicEl(H,null),this.group.remove(F)):F.downplay())}else s.prototype.downplay.call(this,D,N,M,B)},_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 e({shape:{points:D,stackedOnPoints:N},silent:!0}),this._lineGroup.add(M),this._polygon=M,M},_updateAnimation:function(D,N,M,B,R,H){var F=this._polyline,K=this._polygon,U=D.hostModel,V=c(this._data,D,this._stackedOnPoints,N,this._coordSys,M,this._valueOrigin,H),z=V.current,Y=V.stackedOnCurrent,q=V.next,ce=V.stackedOnNext;if(R&&(z=T(V.current,M,R),Y=T(V.stackedOnCurrent,M,R),q=T(V.next,M,R),ce=T(V.stackedOnNext,M,R)),A(z,q)>3e3||K&&A(Y,ce)>3e3){F.setShape({points:q}),K&&K.setShape({points:q,stackedOnPoints:ce});return}F.shape.__points=V.current,F.shape.points=z,i.updateProps(F,{shape:{points:q}},U),K&&(K.setShape({points:z,stackedOnPoints:Y}),i.updateProps(K,{shape:{points:q,stackedOnPoints:ce}},U));for(var ie=[],ve=V.status,Ee=0;Ee<ve.length;Ee++){var Le=ve[Ee].cmd;if(Le==="="){var He=D.getItemGraphicEl(ve[Ee].idx1);He&&ie.push({el:He,ptIdx:Ee})}}F.animators&&F.animators.length&&F.animators[0].during(function(){for(var ge=0;ge<ie.length;ge++){var Fe=ie[ge].el;Fe.attr("position",F.shape.__points[ie[ge].ptIdx])}})},remove:function(D){var N=this.group,M=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),M&&M.eachItemGraphicEl(function(B,R){B.__temp&&(N.remove(B),M.setItemGraphicEl(R,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});j.exports=L},"8XDt":function(j,P,d){d("qH13");var O=d("aX58"),E=O.registerPainter,C=d("6fms");E("vml",C)},"8hn6":function(j,P){var d="#eee",O=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"],C={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:O(),logAxis:O(),valueAxis:O(),categoryAxis:O(),line:{symbol:"circle"},graph:{color:E},gauge:{title:{textStyle:{color:d}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};C.categoryAxis.splitLine.show=!1;var v=C;j.exports=v},"8nMs":function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("+rIm"),v=d("Znkb"),w=d("AVZG"),m=d("WN+l"),h=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,i=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine","minorSplitLine"],o=v.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(n,e,s,t){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new E.Group,this.group.add(this._axisGroup),!n.get("show"))return;var l=n.getCoordSysModel(),u=w.layout(l,n),f=new C(n,u);O.each(i,f.add,f),this._axisGroup.add(f.getGroup()),O.each(r,function(p){n.get(p+".show")&&this["_"+p](n,l)},this),E.groupTransition(a,this._axisGroup,n),o.superCall(this,"render",n,e,s,t)},remove:function(){c(this)},_splitLine:function(n,e){var s=n.axis;if(s.scale.isBlank())return;var t=n.getModel("splitLine"),a=t.getModel("lineStyle"),l=a.get("color");l=O.isArray(l)?l:[l];for(var u=e.coordinateSystem.getRect(),f=s.isHorizontal(),p=0,g=s.getTicksCoords({tickModel:t}),A=[],y=[],x=a.getLineStyle(),T=0;T<g.length;T++){var S=s.toGlobalCoord(g[T].coord);f?(A[0]=S,A[1]=u.y,y[0]=S,y[1]=u.y+u.height):(A[0]=u.x,A[1]=S,y[0]=u.x+u.width,y[1]=S);var b=p++%l.length,_=g[T].tickValue;this._axisGroup.add(new E.Line({anid:_!=null?"line_"+g[T].tickValue:null,subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:y[0],y2:y[1]},style:O.defaults({stroke:l[b]},x),silent:!0}))}},_minorSplitLine:function(n,e){var s=n.axis,t=n.getModel("minorSplitLine"),a=t.getModel("lineStyle"),l=e.coordinateSystem.getRect(),u=s.isHorizontal(),f=s.getMinorTicksCoords();if(!f.length)return;for(var p=[],g=[],A=a.getLineStyle(),y=0;y<f.length;y++)for(var x=0;x<f[y].length;x++){var T=s.toGlobalCoord(f[y][x].coord);u?(p[0]=T,p[1]=l.y,g[0]=T,g[1]=l.y+l.height):(p[0]=l.x,p[1]=T,g[0]=l.x+l.width,g[1]=T),this._axisGroup.add(new E.Line({anid:"minor_line_"+f[y][x].tickValue,subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:A,silent:!0}))}},_splitArea:function(n,e){h(this,this._axisGroup,n,e)}});o.extend({type:"xAxis"}),o.extend({type:"yAxis"})},"8nly":function(j,P,d){var O=d("mFDi"),E=d("4mN7"),C=d("QBsz"),v=d("BlVb");function w(h,c,i){if(this.name=h,this.geometries=c,i)i=[i[0],i[1]];else{var r=this.getBoundingRect();i=[r.x+r.width/2,r.y+r.height/2]}this.center=i}w.prototype={constructor:w,properties:null,getBoundingRect:function(){var h=this._rect;if(h)return h;for(var c=Number.MAX_VALUE,i=[c,c],r=[-c,-c],o=[],n=[],e=this.geometries,s=0;s<e.length;s++){if(e[s].type!=="polygon")continue;var t=e[s].exterior;E.fromPoints(t,o,n),C.min(i,i,o),C.max(r,r,n)}return s===0&&(i[0]=i[1]=r[0]=r[1]=0),this._rect=new O(i[0],i[1],r[0]-i[0],r[1]-i[1])},contain:function(h){var c=this.getBoundingRect(),i=this.geometries;if(!c.contain(h[0],h[1]))return!1;e:for(var r=0,o=i.length;r<o;r++){if(i[r].type!=="polygon")continue;var n=i[r].exterior,e=i[r].interiors;if(v.contain(n,h[0],h[1])){for(var s=0;s<(e?e.length:0);s++)if(v.contain(e[s]))continue e;return!0}}return!1},transformTo:function(h,c,i,r){var o=this.getBoundingRect(),n=o.width/o.height;i?r||(r=i/n):i=n*r;for(var e=new O(h,c,i,r),s=o.calculateTransform(e),t=this.geometries,a=0;a<t.length;a++){if(t[a].type!=="polygon")continue;for(var l=t[a].exterior,u=t[a].interiors,f=0;f<l.length;f++)C.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++)C.applyTransform(u[p][f],u[p][f],s)}o=this._rect,o.copy(e),this.center=[o.x+o.width/2,o.y+o.height/2]},cloneShallow:function(h){h==null&&(h=this.name);var c=new w(h,this.geometries,this.center);return c._rect=this._rect,c.transformTo=null,c}};var m=w;j.exports=m},"8txm":function(j,P,d){},"8waO":function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("iLNv"),v=d("ZWlE");d("hJvP"),d("IXyC"),d("xRUu");var w=5;O.extendComponentView({type:"parallel",render:function(c,i,r){this._model=c,this._api=r,this._handlers||(this._handlers={},E.each(m,function(o,n){r.getZr().on(n,this._handlers[n]=E.bind(o,this))},this)),C.createOrUpdate(this,"_throttledDispatchExpand",c.get("axisExpandRate"),"fixRate")},dispose:function(c,i){E.each(this._handlers,function(r,o){i.getZr().off(o,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 i=this._mouseDownPoint;if(h(this,"click")&&i){var r=[c.offsetX,c.offsetY],o=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2);if(o>w)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 i=this._model,r=i.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]),o=r.behavior;o==="jump"&&this._throttledDispatchExpand.debounceNextCall(i.get("axisExpandDebounce")),this._throttledDispatchExpand(o==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:o==="jump"?null:!1})}};function h(c,i){var r=c._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===i}O.registerPreprocessor(v)},"8x+h":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("K4ya"),m=d("Qxkt"),h=["#ddd"],c=C.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(o,n){var e=this.option;!n&&w.replaceVisualOption(e,o,["inBrush","outOfBrush"]);var s=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:h},s.hasOwnProperty("liftZ")||(s.liftZ=5)},setAreas:function(o){if(!o)return;this.areas=v.map(o,function(n){return i(this.option,n)},this)},setBrushOption:function(o){this.brushOption=i(this.option,o),this.brushType=this.brushOption.brushType}});function i(o,n){return v.merge({brushType:o.brushType,brushMode:o.brushMode,transformable:o.transformable,brushStyle:new m(o.brushStyle).getItemStyle(),removeOnClick:o.removeOnClick,z:o.z},n,!0)}var r=c;j.exports=r},"8z0m":function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("RIqP"),v=d.n(C),w=d("pVnL"),m=d.n(w),h=d("J4zp"),c=d.n(h),i=d("q1tI"),r=d.n(i),o=d("TSYQ"),n=d.n(o);function e(pr,gr){var Zt="cannot "+pr.method+" "+pr.action+" "+gr.status+"'",Vt=new Error(Zt);return Vt.status=gr.status,Vt.method=pr.method,Vt.url=pr.action,Vt}function s(pr){var gr=pr.responseText||pr.response;if(!gr)return gr;try{return JSON.parse(gr)}catch(Zt){return gr}}function t(pr){var gr=new XMLHttpRequest;pr.onProgress&&gr.upload&&(gr.upload.onprogress=function(Yr){Yr.total>0&&(Yr.percent=Yr.loaded/Yr.total*100),pr.onProgress(Yr)});var Zt=new FormData;pr.data&&Object.keys(pr.data).forEach(function(mt){var Yr=pr.data[mt];if(Array.isArray(Yr)){Yr.forEach(function(Tn){Zt.append(mt+"[]",Tn)});return}Zt.append(mt,pr.data[mt])}),pr.file instanceof Blob?Zt.append(pr.filename,pr.file,pr.file.name):Zt.append(pr.filename,pr.file),gr.onerror=function(Yr){pr.onError(Yr)},gr.onload=function(){return gr.status<200||gr.status>=300?pr.onError(e(pr,gr),s(gr)):pr.onSuccess(s(gr),gr)},gr.open(pr.method,pr.action,!0),pr.withCredentials&&"withCredentials"in gr&&(gr.withCredentials=!0);var Vt=pr.headers||{};return Vt["X-Requested-With"]!==null&&gr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Vt).forEach(function(mt){Vt[mt]!==null&&gr.setRequestHeader(mt,Vt[mt])}),gr.send(Zt),{abort:function(){gr.abort()}}}var a=+new Date,l=0;function u(){return"rc-upload-"+a+"-"+ ++l}function f(pr,gr){return pr.indexOf(gr,pr.length-gr.length)!==-1}var p=function(pr,gr){if(pr&&gr){var Zt=Array.isArray(gr)?gr:gr.split(","),Vt=pr.name||"",mt=pr.type||"",Yr=mt.replace(/\/.*$/,"");return Zt.some(function(Tn){var Hn=Tn.trim();return Hn.charAt(0)==="."?f(Vt.toLowerCase(),Hn.toLowerCase()):/\/\*$/.test(Hn)?Yr===Hn.replace(/\/.*$/,""):mt===Hn})}return!0};function g(pr,gr){var Zt=pr.createReader(),Vt=[];function mt(){Zt.readEntries(function(Yr){var Tn=Array.prototype.slice.apply(Yr);Vt=Vt.concat(Tn);var Hn=!Tn.length;Hn?gr(Vt):mt()})}mt()}var A=function(gr,Zt,Vt){var mt=function Yr(Tn,Hn){Hn=Hn||"",Tn.isFile?Tn.file(function(ei){Vt(ei)&&(Tn.fullPath&&!ei.webkitRelativePath&&(Object.defineProperties(ei,{webkitRelativePath:{writable:!0}}),ei.webkitRelativePath=Tn.fullPath.replace(/^\//,""),Object.defineProperties(ei,{webkitRelativePath:{writable:!1}})),Zt([ei]))}):Tn.isDirectory&&g(Tn,function(ei){ei.forEach(function(ji){Yr(ji,""+Hn+Tn.name+"/")})})};gr.forEach(function(Yr){mt(Yr.webkitGetAsEntry())})},y=A,x=Object.assign||function(pr){for(var gr=1;gr<arguments.length;gr++){var Zt=arguments[gr];for(var Vt in Zt)Object.prototype.hasOwnProperty.call(Zt,Vt)&&(pr[Vt]=Zt[Vt])}return pr},T=function(){function pr(gr,Zt){var Vt=[],mt=!0,Yr=!1,Tn=void 0;try{for(var Hn=gr[Symbol.iterator](),ei;!(mt=(ei=Hn.next()).done)&&!(Vt.push(ei.value),Zt&&Vt.length===Zt);mt=!0);}catch(ji){Yr=!0,Tn=ji}finally{try{!mt&&Hn.return&&Hn.return()}finally{if(Yr)throw Tn}}return Vt}return function(gr,Zt){if(Array.isArray(gr))return gr;if(Symbol.iterator in Object(gr))return pr(gr,Zt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function pr(gr,Zt){for(var Vt=0;Vt<Zt.length;Vt++){var mt=Zt[Vt];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(gr,mt.key,mt)}}return function(gr,Zt,Vt){return Zt&&pr(gr.prototype,Zt),Vt&&pr(gr,Vt),gr}}();function b(pr,gr,Zt){return gr in pr?Object.defineProperty(pr,gr,{value:Zt,enumerable:!0,configurable:!0,writable:!0}):pr[gr]=Zt,pr}function _(pr,gr){var Zt={};for(var Vt in pr){if(gr.indexOf(Vt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(pr,Vt))continue;Zt[Vt]=pr[Vt]}return Zt}function I(pr,gr){if(!(pr instanceof gr))throw new TypeError("Cannot call a class as a function")}function L(pr,gr){if(!pr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return gr&&(typeof gr=="object"||typeof gr=="function")?gr:pr}function D(pr,gr){if(typeof gr!="function"&&gr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof gr);pr.prototype=Object.create(gr&&gr.prototype,{constructor:{value:pr,enumerable:!1,writable:!0,configurable:!0}}),gr&&(Object.setPrototypeOf?Object.setPrototypeOf(pr,gr):pr.__proto__=gr)}var N=function(gr){return Object.keys(gr).reduce(function(Zt,Vt){return(Vt.substr(0,5)==="data-"||Vt.substr(0,5)==="aria-"||Vt==="role")&&(Zt[Vt]=gr[Vt]),Zt},{})},M=function(pr){D(gr,pr);function gr(){var Zt,Vt,mt,Yr;I(this,gr);for(var Tn=arguments.length,Hn=Array(Tn),ei=0;ei<Tn;ei++)Hn[ei]=arguments[ei];return Yr=(Vt=(mt=L(this,(Zt=gr.__proto__||Object.getPrototypeOf(gr)).call.apply(Zt,[this].concat(Hn))),mt),mt.state={uid:u()},mt.reqs={},mt.onChange=function(ji){var Ln=ji.target.files;mt.uploadFiles(Ln),mt.reset()},mt.onClick=function(ji){var Ln=mt.fileInput;if(!Ln)return;var Vn=mt.props,kt=Vn.children,wt=Vn.onClick;kt&&kt.type==="button"&&(Ln.parentNode.focus(),Ln.parentNode.querySelector("button").blur()),Ln.click(),wt&&wt(ji)},mt.onKeyDown=function(ji){ji.key==="Enter"&&mt.onClick()},mt.onFileDrop=function(ji){var Ln=mt.props.multiple;if(ji.preventDefault(),ji.type==="dragover")return;if(mt.props.directory)y(Array.prototype.slice.call(ji.dataTransfer.items),mt.uploadFiles,function(kt){return p(kt,mt.props.accept)});else{var Vn=Array.prototype.slice.call(ji.dataTransfer.files).filter(function(kt){return p(kt,mt.props.accept)});Ln===!1&&(Vn=Vn.slice(0,1)),mt.uploadFiles(Vn)}},mt.uploadFiles=function(ji){var Ln=Array.prototype.slice.call(ji);Ln.map(function(Vn){return Vn.uid=u(),Vn}).forEach(function(Vn){mt.upload(Vn,Ln)})},mt.saveFileInput=function(ji){mt.fileInput=ji},Vt),L(mt,Yr)}return S(gr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Vt,mt){var Yr=this,Tn=this.props;if(!Tn.beforeUpload)return setTimeout(function(){return Yr.post(Vt)},0);var Hn=Tn.beforeUpload(Vt,mt);Hn&&Hn.then?Hn.then(function(ei){var ji=Object.prototype.toString.call(ei);return ji==="[object File]"||ji==="[object Blob]"?Yr.post(ei):Yr.post(Vt)}).catch(function(ei){console.log(ei)}):Hn!==!1&&setTimeout(function(){return Yr.post(Vt)},0);return}},{key:"post",value:function(Vt){var mt=this;if(!this._isMounted)return;var Yr=this.props,Tn=Yr.onStart,Hn=Yr.onProgress,ei=Yr.transformFile,ji=ei===void 0?function(Ln){return Ln}:ei;new Promise(function(Ln){var Vn=Yr.action;return typeof Vn=="function"&&(Vn=Vn(Vt)),Ln(Vn)}).then(function(Ln){var Vn=Vt.uid,kt=Yr.customRequest||t,wt=Promise.resolve(ji(Vt)).then(function(Te){var xe=Yr.data;return typeof xe=="function"&&(xe=xe(Te)),Promise.all([Te,xe])}).catch(function(Te){console.error(Te)});wt.then(function(Te){var xe=T(Te,2),Ce=xe[0],Ye=xe[1],it={action:Ln,filename:Yr.name,data:Ye,file:Ce,headers:Yr.headers,withCredentials:Yr.withCredentials,method:Yr.method||"post",onProgress:Hn?function(dt){Hn(dt,Vt)}:null,onSuccess:function(_t,vr){delete mt.reqs[Vn],Yr.onSuccess(_t,Vt,vr)},onError:function(_t,vr){delete mt.reqs[Vn],Yr.onError(_t,vr,Vt)}};Tn(Vt),mt.reqs[Vn]=kt(it)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(Vt){var mt=this.reqs;if(Vt){var Yr=Vt;Vt&&Vt.uid&&(Yr=Vt.uid),mt[Yr]&&mt[Yr].abort&&mt[Yr].abort(),delete mt[Yr]}else Object.keys(mt).forEach(function(Tn){mt[Tn]&&mt[Tn].abort&&mt[Tn].abort(),delete mt[Tn]})}},{key:"render",value:function(){var Vt,mt=this.props,Yr=mt.component,Tn=mt.prefixCls,Hn=mt.className,ei=mt.disabled,ji=mt.id,Ln=mt.style,Vn=mt.multiple,kt=mt.accept,wt=mt.children,Te=mt.directory,xe=mt.openFileDialogOnClick,Ce=mt.onMouseEnter,Ye=mt.onMouseLeave,it=_(mt,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),dt=n()((Vt={},b(Vt,Tn,!0),b(Vt,Tn+"-disabled",ei),b(Vt,Hn,Hn),Vt)),_t=ei?{}:{onClick:xe?this.onClick:function(){},onKeyDown:xe?this.onKeyDown:function(){},onMouseEnter:Ce,onMouseLeave:Ye,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(Yr,x({},_t,{className:dt,role:"button",style:Ln}),r.a.createElement("input",x({},N(it),{id:ji,type:"file",ref:this.saveFileInput,onClick:function(kr){return kr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:kt,directory:Te?"directory":null,webkitdirectory:Te?"webkitdirectory":null,multiple:Vn,onChange:this.onChange})),wt)}}]),gr}(i.Component),B=M,R=Object.assign||function(pr){for(var gr=1;gr<arguments.length;gr++){var Zt=arguments[gr];for(var Vt in Zt)Object.prototype.hasOwnProperty.call(Zt,Vt)&&(pr[Vt]=Zt[Vt])}return pr},H=function(){function pr(gr,Zt){for(var Vt=0;Vt<Zt.length;Vt++){var mt=Zt[Vt];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(gr,mt.key,mt)}}return function(gr,Zt,Vt){return Zt&&pr(gr.prototype,Zt),Vt&&pr(gr,Vt),gr}}();function F(pr,gr){if(!(pr instanceof gr))throw new TypeError("Cannot call a class as a function")}function K(pr,gr){if(!pr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return gr&&(typeof gr=="object"||typeof gr=="function")?gr:pr}function U(pr,gr){if(typeof gr!="function"&&gr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof gr);pr.prototype=Object.create(gr&&gr.prototype,{constructor:{value:pr,enumerable:!1,writable:!0,configurable:!0}}),gr&&(Object.setPrototypeOf?Object.setPrototypeOf(pr,gr):pr.__proto__=gr)}function V(){}var z=function(pr){U(gr,pr);function gr(){var Zt,Vt,mt,Yr;F(this,gr);for(var Tn=arguments.length,Hn=Array(Tn),ei=0;ei<Tn;ei++)Hn[ei]=arguments[ei];return Yr=(Vt=(mt=K(this,(Zt=gr.__proto__||Object.getPrototypeOf(gr)).call.apply(Zt,[this].concat(Hn))),mt),mt.saveUploader=function(ji){mt.uploader=ji},Vt),K(mt,Yr)}return H(gr,[{key:"abort",value:function(Vt){this.uploader.abort(Vt)}},{key:"render",value:function(){return r.a.createElement(B,R({},this.props,{ref:this.saveUploader}))}}]),gr}(i.Component);z.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:V,onError:V,onSuccess:V,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Y=z,q=Y,ce=function(pr,gr){var Zt={};for(var Vt in pr)Object.prototype.hasOwnProperty.call(pr,Vt)&&gr.indexOf(Vt)<0&&(Zt[Vt]=pr[Vt]);if(pr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Vt=Object.getOwnPropertySymbols(pr);mt<Vt.length;mt++)gr.indexOf(Vt[mt])<0&&Object.prototype.propertyIsEnumerable.call(pr,Vt[mt])&&(Zt[Vt[mt]]=pr[Vt[mt]]);return Zt},ie=function(gr,Zt){var Vt=gr.style,mt=gr.height,Yr=ce(gr,["style","height"]);return i.createElement(cr,m()({ref:Zt},Yr,{type:"drag",style:m()(m()({},Vt),{height:mt})}))},ve=i.forwardRef(ie);ve.displayName="Dragger";var Ee=ve,Le=d("UmKh"),He=d("gZBC"),ge=d.n(He),Fe=d("+d4F"),Q=d.n(Fe),fe=d("XAae"),Je=d.n(fe),ne=d("6xvX"),X=d.n(ne),G=d("qPY4"),te=d.n(G),we=d("QB+1"),he=d.n(we),Pe=d("Qs3X"),Oe=d.n(Pe),le=d("0n0R");function me(){return!0}function _e(pr){return m()(m()({},pr),{lastModified:pr.lastModified,lastModifiedDate:pr.lastModifiedDate,name:pr.name,size:pr.size,type:pr.type,uid:pr.uid,percent:0,originFileObj:pr})}function $e(pr,gr){var Zt=pr.uid!==void 0?"uid":"name";return gr.filter(function(Vt){return Vt[Zt]===pr[Zt]})[0]}function gt(pr,gr){var Zt=pr.uid!==void 0?"uid":"name",Vt=gr.filter(function(mt){return mt[Zt]!==pr[Zt]});return Vt.length===gr.length?null:Vt}var et=function(){var gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Zt=gr.split("/"),Vt=Zt[Zt.length-1],mt=Vt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(mt)||[""])[0]},Ie=function(gr){return gr.indexOf("image/")===0},rt=function(gr){if(gr.type&&!gr.thumbUrl)return Ie(gr.type);var Zt=gr.thumbUrl||gr.url,Vt=et(Zt);return/^data:image\//.test(Zt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Vt)?!0:/^data:/.test(Zt)?!1:!Vt},Ge=200;function vt(pr){return new Promise(function(gr){if(!pr.type||!Ie(pr.type)){gr("");return}var Zt=document.createElement("canvas");Zt.width=Ge,Zt.height=Ge,Zt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(Ge,"px; height: ").concat(Ge,"px; z-index: 9999; display: none;"),document.body.appendChild(Zt);var Vt=Zt.getContext("2d"),mt=new Image;mt.onload=function(){var Yr=mt.width,Tn=mt.height,Hn=Ge,ei=Ge,ji=0,Ln=0;Yr<Tn?(ei=Tn*(Ge/Yr),Ln=-(ei-Hn)/2):(Hn=Yr*(Ge/Tn),ji=-(Hn-ei)/2),Vt.drawImage(mt,ji,Ln,Hn,ei);var Vn=Zt.toDataURL();document.body.removeChild(Zt),gr(Vn)},mt.src=window.URL.createObjectURL(pr)})}var Ot=d("3S7+"),Et=d("CFYs"),Tt=d("H84U"),Rt=d("2/Rp"),Be=d("hkKa"),Z=function(gr,Zt){var Vt,mt=gr.listType,Yr=gr.previewFile,Tn=gr.onPreview,Hn=gr.onDownload,ei=gr.onRemove,ji=gr.locale,Ln=gr.iconRender,Vn=gr.isImageUrl,kt=gr.prefixCls,wt=gr.items,Te=wt===void 0?[]:wt,xe=gr.showPreviewIcon,Ce=gr.showRemoveIcon,Ye=gr.showDownloadIcon,it=gr.removeIcon,dt=gr.downloadIcon,_t=gr.progress,vr=Object(Be.a)();i.useEffect(function(){if(mt!=="picture"&&mt!=="picture-card")return;(Te||[]).forEach(function(sr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(sr.originFileObj instanceof File||sr.originFileObj instanceof Blob)||sr.thumbUrl!==void 0)return;sr.thumbUrl="",Yr&&Yr(sr.originFileObj).then(function(mr){sr.thumbUrl=mr||"",vr()})})},[mt,Te,Yr]);var kr=function(mr,$r){return Tn?($r.preventDefault(),Tn(mr)):void 0},mn=function(mr){typeof Hn=="function"?Hn(mr):mr.url&&window.open(mr.url)},Mt=function(mr){ei&&ei(mr)},nt=function(mr){if(Ln)return Ln(mr,mt);var $r=mr.status==="uploading",rn=Vn&&Vn(mr)?i.createElement(Je.a,null):i.createElement(X.a,null),jn=$r?i.createElement(ge.a,null):i.createElement(Q.a,null);return mt==="picture"?jn=$r?i.createElement(ge.a,null):rn:mt==="picture-card"&&(jn=$r?ji.uploading:rn),jn},st=function(mr,$r,rn,jn){var Un={type:"text",size:"small",title:jn,onClick:function(Ii){$r(),Object(le.b)(mr)&&mr.props.onClick&&mr.props.onClick(Ii)},className:"".concat(rn,"-list-item-card-actions-btn")};if(Object(le.b)(mr)){var ui=Object(le.a)(mr,m()(m()({},mr.props),{onClick:function(){}}));return i.createElement(Rt.a,m()({},Un,{icon:ui}))}return i.createElement(Rt.a,Un,i.createElement("span",null,mr))};i.useImperativeHandle(Zt,function(){return{handlePreview:kr,handleDownload:mn}});var Xt=i.useContext(Tt.b),Dt=Xt.getPrefixCls,St=Xt.direction,jt=Dt("upload",kt),At=Te.map(function(sr){var mr,$r,rn,jn=nt(sr),Un=i.createElement("div",{className:"".concat(jt,"-text-icon")},jn);if(mt==="picture"||mt==="picture-card")if(sr.status==="uploading"||!sr.thumbUrl&&!sr.url){var ui,yi=n()((ui={},E()(ui,"".concat(jt,"-list-item-thumbnail"),!0),E()(ui,"".concat(jt,"-list-item-file"),sr.status!=="uploading"),ui));Un=i.createElement("div",{className:yi},jn)}else{var Ii,Gi=Vn&&Vn(sr)?i.createElement("img",{src:sr.thumbUrl||sr.url,alt:sr.name,className:"".concat(jt,"-list-item-image")}):jn,Qe=n()((Ii={},E()(Ii,"".concat(jt,"-list-item-thumbnail"),!0),E()(Ii,"".concat(jt,"-list-item-file"),Vn&&!Vn(sr)),Ii));Un=i.createElement("a",{className:Qe,onClick:function(nn){return kr(sr,nn)},href:sr.url||sr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Gi)}if(sr.status==="uploading"){var be="percent"in sr?i.createElement(Et.a,m()({},_t,{type:"line",percent:sr.percent})):null;rn=i.createElement("div",{className:"".concat(jt,"-list-item-progress"),key:"progress"},be)}var Ne=n()((mr={},E()(mr,"".concat(jt,"-list-item"),!0),E()(mr,"".concat(jt,"-list-item-").concat(sr.status),!0),E()(mr,"".concat(jt,"-list-item-list-type-").concat(mt),!0),mr)),Ue=typeof sr.linkProps=="string"?JSON.parse(sr.linkProps):sr.linkProps,Xe=Ce?st(it||i.createElement(he.a,null),function(){return Mt(sr)},jt,ji.removeFile):null,ze=Ye&&sr.status==="done"?st(dt||i.createElement(Oe.a,null),function(){return mn(sr)},jt,ji.downloadFile):null,Ze=mt!=="picture-card"&&i.createElement("span",{key:"download-delete",className:"".concat(jt,"-list-item-card-actions ").concat(mt==="picture"?"picture":"")},ze,Xe),bt=n()(($r={},E()($r,"".concat(jt,"-list-item-name"),!0),E()($r,"".concat(jt,"-list-item-name-icon-count-").concat([ze,Xe].filter(function(vn){return vn}).length),!0),$r)),ut=sr.url?[i.createElement("a",m()({key:"view",target:"_blank",rel:"noopener noreferrer",className:bt,title:sr.name},Ue,{href:sr.url,onClick:function(nn){return kr(sr,nn)}}),sr.name),Ze]:[i.createElement("span",{key:"view",className:bt,onClick:function(nn){return kr(sr,nn)},title:sr.name},sr.name),Ze],Gt={pointerEvents:"none",opacity:.5},Mr=xe?i.createElement("a",{href:sr.url||sr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:sr.url||sr.thumbUrl?void 0:Gt,onClick:function(nn){return kr(sr,nn)},title:ji.previewFile},i.createElement(te.a,null)):null,Lr=mt==="picture-card"&&sr.status!=="uploading"&&i.createElement("span",{className:"".concat(jt,"-list-item-actions")},Mr,sr.status==="done"&&ze,Xe),Gr;sr.response&&typeof sr.response=="string"?Gr=sr.response:Gr=sr.error&&sr.error.statusText||ji.uploadError;var Ht=i.createElement("span",null,Un,ut),hn=i.createElement("div",{className:Ne},i.createElement("div",{className:"".concat(jt,"-list-item-info")},Ht),Lr,i.createElement(Le.a,{transitionName:"fade",component:""},rn)),or=n()(E()({},"".concat(jt,"-list-picture-card-container"),mt==="picture-card"));return i.createElement("div",{key:sr.uid,className:or},sr.status==="error"?i.createElement(Ot.a,{title:Gr,getPopupContainer:function(nn){return nn.parentNode}},hn):i.createElement("span",null,hn))}),Ft=n()((Vt={},E()(Vt,"".concat(jt,"-list"),!0),E()(Vt,"".concat(jt,"-list-").concat(mt),!0),E()(Vt,"".concat(jt,"-list-rtl"),St==="rtl"),Vt)),wr=mt==="picture-card"?"animate-inline":"animate";return i.createElement(Le.a,{transitionName:"".concat(jt,"-").concat(wr),component:"div",className:Ft},At)},J=i.forwardRef(Z);J.displayName="UploadList",J.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:vt,isImageUrl:rt};var je=J,Re=d("YMnH"),oe=d("ZvpZ"),yt=d("uaoM"),zt=d("sPtV"),lt=function(gr,Zt){var Vt,mt=gr.fileList,Yr=gr.defaultFileList,Tn=gr.onRemove,Hn=gr.showUploadList,ei=gr.listType,ji=gr.onPreview,Ln=gr.onDownload,Vn=gr.previewFile,kt=gr.disabled,wt=gr.locale,Te=gr.iconRender,xe=gr.isImageUrl,Ce=gr.progress,Ye=gr.prefixCls,it=gr.className,dt=gr.type,_t=gr.children,vr=gr.style,kr=Object(zt.a)(mt||Yr||[]),mn=c()(kr,2),Mt=mn[0],nt=mn[1],st=i.useState("drop"),Xt=c()(st,2),Dt=Xt[0],St=Xt[1],jt=i.useRef();i.useEffect(function(){nt(mt||Yr||[]),Object(yt.a)("fileList"in gr||!("value"in gr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),i.useEffect(function(){"fileList"in gr&&nt(mt||[])},[mt]);var At=function(ut){"fileList"in gr||nt(ut.fileList);var Gt=gr.onChange;Gt&&Gt(m()(m()({},ut),{fileList:v()(ut.fileList)}))},Ft=function(ut){var Gt=_e(ut);Gt.status="uploading";var Mr=Mt().concat(),Lr=Mr.findIndex(function(Gr){var Ht=Gr.uid;return Ht===Gt.uid});Lr===-1?Mr.push(Gt):Mr[Lr]=Gt,At({file:Gt,fileList:Mr})},wr=function(ut,Gt,Mr){try{typeof ut=="string"&&(ut=JSON.parse(ut))}catch(Gr){}var Lr=$e(Gt,Mt());if(!Lr)return;Lr.status="done",Lr.response=ut,Lr.xhr=Mr,At({file:m()({},Lr),fileList:Mt().concat()})},sr=function(ut,Gt){var Mr=$e(Gt,Mt());if(!Mr)return;Mr.percent=ut.percent,At({event:ut,file:m()({},Mr),fileList:Mt().concat()})},mr=function(ut,Gt,Mr){var Lr=$e(Mr,Mt());if(!Lr)return;Lr.error=ut,Lr.response=Gt,Lr.status="error",At({file:m()({},Lr),fileList:Mt().concat()})},$r=function(ut){Promise.resolve(typeof Tn=="function"?Tn(ut):Tn).then(function(Gt){if(Gt===!1)return;var Mr=gt(ut,Mt());Mr&&(ut.status="removed",jt.current&&jt.current.abort(ut),At({file:ut,fileList:Mr}))})},rn=function(ut){St(ut.type)},jn=function(ut,Gt){var Mr=gr.beforeUpload;if(!Mr)return!0;var Lr=Mr(ut,Gt);if(Lr===!1){var Gr=[];return Mt().concat(Gt.map(_e)).forEach(function(Ht){Gr.every(function(hn){return hn.uid!==Ht.uid})&&Gr.push(Ht)}),At({file:ut,fileList:Gr}),!1}return Lr&&Lr.then?Lr:!0},Un=Object(Be.a)();i.useImperativeHandle(Zt,function(){return{onStart:Ft,onSuccess:wr,onProgress:sr,onError:mr,fileList:Mt(),upload:jt.current,forceUpdate:Un}});var ui=function(ut){var Gt=Hn.showRemoveIcon,Mr=Hn.showPreviewIcon,Lr=Hn.showDownloadIcon,Gr=Hn.removeIcon,Ht=Hn.downloadIcon;return i.createElement(je,{listType:ei,items:Mt(),previewFile:Vn,onPreview:ji,onDownload:Ln,onRemove:$r,showRemoveIcon:!kt&&Gt,showPreviewIcon:Mr,showDownloadIcon:Lr,removeIcon:Gr,downloadIcon:Ht,iconRender:Te,locale:m()(m()({},ut),wt),isImageUrl:xe,progress:Ce})},yi=i.useContext(Tt.b),Ii=yi.getPrefixCls,Gi=yi.direction,Qe=Ii("upload",Ye),be=m()(m()({onStart:Ft,onError:mr,onProgress:sr,onSuccess:wr},gr),{prefixCls:Qe,beforeUpload:jn});delete be.className,delete be.style,(!_t||kt)&&delete be.id;var Ne=Hn?i.createElement(Re.a,{componentName:"Upload",defaultLocale:oe.a.Upload},ui):null;if(dt==="drag"){var Ue,Xe=n()(Qe,(Ue={},E()(Ue,"".concat(Qe,"-drag"),!0),E()(Ue,"".concat(Qe,"-drag-uploading"),Mt().some(function(bt){return bt.status==="uploading"})),E()(Ue,"".concat(Qe,"-drag-hover"),Dt==="dragover"),E()(Ue,"".concat(Qe,"-disabled"),kt),E()(Ue,"".concat(Qe,"-rtl"),Gi==="rtl"),Ue),it);return i.createElement("span",null,i.createElement("div",{className:Xe,onDrop:rn,onDragOver:rn,onDragLeave:rn,style:vr},i.createElement(q,m()({},be,{ref:jt,className:"".concat(Qe,"-btn")}),i.createElement("div",{className:"".concat(Qe,"-drag-container")},_t))),Ne)}var ze=n()(Qe,(Vt={},E()(Vt,"".concat(Qe,"-select"),!0),E()(Vt,"".concat(Qe,"-select-").concat(ei),!0),E()(Vt,"".concat(Qe,"-disabled"),kt),E()(Vt,"".concat(Qe,"-rtl"),Gi==="rtl"),Vt)),Ze=i.createElement("div",{className:ze,style:_t?void 0:{display:"none"}},i.createElement(q,m()({},be,{ref:jt})));return ei==="picture-card"?i.createElement("span",{className:n()(it,"".concat(Qe,"-picture-card-wrapper"))},Ne,Ze):i.createElement("span",{className:it},Ze,Ne)},$t=i.forwardRef(lt);$t.Dragger=Ee,$t.displayName="Upload",$t.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:me,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var cr=$t;cr.Dragger=Ee;var cn=P.a=cr},"98bh":function(j,P,d){var O=d("ProS"),E=d("5GtS"),C=d("bYtY"),v=d("4NO4"),w=d("OELB"),m=w.getPercentWithPrecision,h=d("cCMj"),c=d("KxfA"),i=c.retrieveRawAttr,r=d("D5nY"),o=r.makeSeriesEncodeForNameBased,n=d("xKMd"),e=O.extendSeriesModel({type:"series.pie",init:function(t){e.superApply(this,"init",arguments),this.legendVisualProvider=new n(C.bind(this.getData,this),C.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){e.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,a){return E(this,{coordDimensions:["value"],encodeDefaulter:C.curry(o,this)})},_createSelectableList:function(){for(var t=this.getRawData(),a=t.mapDimension("value"),l=[],u=0,f=t.count();u<f;u++)l.push({name:t.getName(u),value:t.get(a,u),selected:i(t,u,"selected")});return l},getDataParams:function(t){var a=this.getData(),l=e.superCall(this,"getDataParams",t),u=[];return a.each(a.mapDimension("value"),function(f){u.push(f)}),l.percent=m(u,t,a.hostModel.get("percentPrecision")),l.$vars.push("percent"),l},_defaultLabelLine:function(t){v.defaultEmphasis(t,"labelLine",["show"]);var a=t.labelLine,l=t.emphasis.labelLine;a.show=a.show&&t.label.show,l.show=l.show&&t.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"}});C.mixin(e,h);var s=e;j.exports=s},"9H2F":function(j,P,d){var O=d("bYtY"),E=O.assert,C=O.isArray,v=d("Tghj"),w=v.__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 e=this._upstream,s=n&&n.skip;if(this._dirty&&e){var t=this.context;t.data=t.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!s&&(a=this._plan(this.context));var l=g(this._modBy),u=this._modDataCount||0,f=g(n&&n.modBy),p=n&&n.modDataCount||0;(l!==f||u!==p)&&(a="reset");function g(I){return!(I>=1)&&(I=1),I}var A;(this._dirty||a==="reset")&&(this._dirty=!1,A=o(this,s)),this._modBy=f,this._modDataCount=p;var y=n&&n.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var x=this._dueIndex,T=Math.min(y!=null?this._dueIndex+y:Infinity,this._dueEnd);if(!s&&(A||x<T)){var S=this._progress;if(C(S))for(var b=0;b<S.length;b++)r(this,S[b],x,T,f,p);else r(this,S,x,T,f,p)}this._dueIndex=T;var _=this._settedOutputEnd!=null?this._settedOutputEnd:T;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var i=function(){var n,e,s,t,a,l={reset:function(p,g,A,y){e=p,n=g,s=A,t=y,a=Math.ceil(t/s),l.next=s>1&&t>0?f:u}};return l;function u(){return e<n?e++:null}function f(){var p=e%a*s+Math.ceil(e/a),g=e>=n?null:p<t?p:e;return e++,g}}();c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function r(n,e,s,t,a,l){i.reset(s,t,a,l),n._callingProgress=e,n._callingProgress({start:s,end:t,count:t-s,next:i.next},n.context)}function o(n,e){n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null;var s,t;!e&&n._reset&&(s=n._reset(n.context),s&&s.progress&&(t=s.forceFirstProgress,s=s.progress),C(s)&&!s.length&&(s=null)),n._progress=s,n._modBy=n._modDataCount=null;var a=n._downstream;return a&&a.dirty(),t}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},P.createTask=m},"9KIM":function(j,P,d){var O=d("mFDi"),E=d("xSat"),C=E.onIrrelevantElement,v=d("IwbS");function w(i){return i=c(i),function(r,o){return v.clipPointsByRect(r,i)}}function m(i,r){return i=c(i),function(o){var n=r!=null?r:o,e=n?i.width:i.height,s=n?i.x:i.y;return[s,s+(e||0)]}}function h(i,r,o){return i=c(i),function(n,e,s){return i.contain(e[0],e[1])&&!C(n,r,o)}}function c(i){return O.create(i)}P.makeRectPanelClipPath=w,P.makeLinearBrushOtherExtent=m,P.makeRectIsTargetByCursor=h},"9OqN":function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CTR=function(){var E=O.lib.BlockCipherMode.extend(),C=E.Encryptor=E.extend({processBlock:function(w,m){var h=this._cipher,c=h.blockSize,i=this._iv,r=this._counter;i&&(r=this._counter=i.slice(0),this._iv=void 0);var o=r.slice(0);h.encryptBlock(o,0),r[c-1]=r[c-1]+1|0;for(var n=0;n<c;n++)w[m+n]^=o[n]}});return E.Decryptor=C,E}(),O.mode.CTR})},"9ama":function(j,P,d){},"9eas":function(j,P,d){d("HM/N"),d("tBnm")},"9hCq":function(j,P,d){var O=d("IwbS"),E=d("+TT/"),C=d("bYtY"),v=d("VaxA"),w=v.wrapTreePathInfo,m=8,h=8,c=5;function i(e){this.group=new O.Group,e.add(this.group)}i.prototype={constructor:i,render:function(e,s,t,a){var l=e.getModel("breadcrumb"),u=this.group;if(u.removeAll(),!l.get("show")||!t)return;var f=l.getModel("itemStyle"),p=f.getModel("textStyle"),g={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(t,g,p),this._renderContent(e,g,f,p,a),E.positionElement(u,g.pos,g.box)},_prepare:function(e,s,t){for(var a=e;a;a=a.parentNode){var l=a.getModel().get("name"),u=t.getTextRect(l),f=Math.max(u.width+m*2,s.emptyItemWidth);s.totalWidth+=f+h,s.renderList.push({node:a,text:l,width:f})}},_renderContent:function(e,s,t,a,l){for(var u=0,f=s.emptyItemWidth,p=e.get("breadcrumb.height"),g=E.getAvailableSize(s.pos,s.box),A=s.totalWidth,y=s.renderList,x=y.length-1;x>=0;x--){var T=y[x],S=T.node,b=T.width,_=T.text;A>g.width&&(A-=b-f,b=f,_=null);var I=new O.Polygon({shape:{points:r(u,0,b,p,x===y.length-1,x===0)},style:C.defaults(t.getItemStyle(),{lineJoin:"bevel",text:_,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:C.curry(l,S)});this.group.add(I),o(I,e,S),u+=b+h}},remove:function(){this.group.removeAll()}};function r(e,s,t,a,l,u){var f=[[l?e:e-c,s],[e+t,s],[e+t,s+a],[l?e:e-c,s+a]];return!u&&f.splice(2,0,[e+t+c,s+a/2]),!l&&f.push([e,s+a/2]),f}function o(e,s,t){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:s.componentIndex,seriesIndex:s.componentIndex,seriesName:s.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&w(t,s)}}var n=i;j.exports=n},"9u0u":function(j,P,d){var O=d("bYtY");function E(v,w){var m={};return O.each(v,function(h){h.each(h.mapDimension("value"),function(c,i){var r="ec-"+h.getName(i);m[r]=m[r]||[],isNaN(c)||m[r].push(c)})}),v[0].map(v[0].mapDimension("value"),function(h,c){for(var i="ec-"+v[0].getName(c),r=0,o=Infinity,n=-Infinity,e=m[i].length,s=0;s<e;s++)o=Math.min(o,m[i][s]),n=Math.max(n,m[i][s]),r+=m[i][s];var t;return w==="min"?t=o:w==="max"?t=n:w==="average"?t=r/e:t=r,e===0?NaN:t})}function C(v){var w={};v.eachSeriesByType("map",function(m){var h=m.getHostGeoModel(),c=h?"o"+h.id:"i"+m.getMapType();(w[c]=w[c]||[]).push(m)}),O.each(w,function(m,h){for(var c=E(O.map(m,function(r){return r.getData()}),m[0].get("mapValueCalculation")),i=0;i<m.length;i++)m[i].originalData=m[i].getData();for(var i=0;i<m.length;i++)m[i].seriesGroup=m,m[i].needsDrawMap=i===0&&!m[i].getHostGeoModel(),m[i].setData(c.cloneShallow()),m[i].mainSeries=m[0]})}j.exports=C},"9wZj":function(j,P,d){var O=d("IwbS"),E=d("FBjb"),C=d("bYtY"),v=C.isObject;function w(o){this.group=new O.Group,this._symbolCtor=o||E}var m=w.prototype;function h(o,n,e,s){return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(s.isIgnore&&s.isIgnore(e))&&!(s.clipShape&&!s.clipShape.contain(n[0],n[1]))&&o.getItemVisual(e,"symbol")!=="none"}m.updateData=function(o,n){n=c(n);var e=this.group,s=o.hostModel,t=this._data,a=this._symbolCtor,l=i(o);t||e.removeAll(),o.diff(t).add(function(u){var f=o.getItemLayout(u);if(h(o,f,u,n)){var p=new a(o,u,l);p.attr("position",f),o.setItemGraphicEl(u,p),e.add(p)}}).update(function(u,f){var p=t.getItemGraphicEl(f),g=o.getItemLayout(u);if(!h(o,g,u,n)){e.remove(p);return}p?(p.updateData(o,u,l),O.updateProps(p,{position:g},s)):(p=new a(o,u),p.attr("position",g)),e.add(p),o.setItemGraphicEl(u,p)}).remove(function(u){var f=t.getItemGraphicEl(u);f&&f.fadeOut(function(){e.remove(f)})}).execute(),this._data=o},m.isPersistent=function(){return!0},m.updateLayout=function(){var o=this._data;o&&o.eachItemGraphicEl(function(n,e){var s=o.getItemLayout(e);n.attr("position",s)})},m.incrementalPrepareUpdate=function(o){this._seriesScope=i(o),this._data=null,this.group.removeAll()},m.incrementalUpdate=function(o,n,e){e=c(e);function s(u){u.isGroup||(u.incremental=u.useHoverLayer=!0)}for(var t=o.start;t<o.end;t++){var a=n.getItemLayout(t);if(h(n,a,t,e)){var l=new this._symbolCtor(n,t,this._seriesScope);l.traverse(s),l.attr("position",a),this.group.add(l),n.setItemGraphicEl(t,l)}}};function c(o){return o!=null&&!v(o)&&(o={isIgnore:o}),o||{}}m.remove=function(o){var n=this.group,e=this._data;e&&o?e.eachItemGraphicEl(function(s){s.fadeOut(function(){n.remove(s)})}):n.removeAll()};function i(o){var n=o.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=w;j.exports=r},"9yH6":function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("q1tI"),m=d("x1Ya"),h=d("TSYQ"),c=d.n(h),i=d("H84U"),r=w.createContext(null),o=r.Provider,n=r,e=d("cDf5"),s=d.n(e);function t(M,B){typeof M=="function"?M(B):s()(M)==="object"&&M&&"current"in M&&(M.current=B)}function a(){for(var M=arguments.length,B=new Array(M),R=0;R<M;R++)B[R]=arguments[R];return function(H){B.forEach(function(F){t(F,H)})}}var l=d("uaoM"),u=function(M,B){var R={};for(var H in M)Object.prototype.hasOwnProperty.call(M,H)&&B.indexOf(H)<0&&(R[H]=M[H]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,H=Object.getOwnPropertySymbols(M);F<H.length;F++)B.indexOf(H[F])<0&&Object.prototype.propertyIsEnumerable.call(M,H[F])&&(R[H[F]]=M[H[F]]);return R},f=function(B,R){var H,F=w.useContext(n),K=w.useContext(i.b),U=K.getPrefixCls,V=K.direction,z=w.useRef(),Y=a(R,z);w.useEffect(function(){Object(l.a)(!("optionType"in B),"Radio","`optionType` is only support in Radio.Group.")},[]);var q=function(fe){B.onChange&&B.onChange(fe),(F==null?void 0:F.onChange)&&F.onChange(fe)},ce=B.prefixCls,ie=B.className,ve=B.children,Ee=B.style,Le=u(B,["prefixCls","className","children","style"]),He=U("radio",ce),ge=v()({},Le);F&&(ge.name=F.name,ge.onChange=q,ge.checked=B.value===F.value,ge.disabled=B.disabled||F.disabled);var Fe=c()(ie,(H={},E()(H,"".concat(He,"-wrapper"),!0),E()(H,"".concat(He,"-wrapper-checked"),ge.checked),E()(H,"".concat(He,"-wrapper-disabled"),ge.disabled),E()(H,"".concat(He,"-wrapper-rtl"),V==="rtl"),H));return w.createElement("label",{className:Fe,style:Ee,onMouseEnter:B.onMouseEnter,onMouseLeave:B.onMouseLeave},w.createElement(m.a,v()({},ge,{prefixCls:He,ref:Y})),ve!==void 0?w.createElement("span",null,ve):null)},p=w.forwardRef(f);p.displayName="Radio",p.defaultProps={type:"radio"};var g=p,A=d("J4zp"),y=d.n(A),x=d("6cGi"),T=d("3Nzz"),S=w.forwardRef(function(M,B){var R=w.useContext(i.b),H=R.getPrefixCls,F=R.direction,K=w.useContext(T.b),U=Object(x.a)(M.defaultValue,{value:M.value}),V=y()(U,2),z=V[0],Y=V[1],q=function(ve){var Ee=z,Le=ve.target.value;"value"in M||Y(Le);var He=M.onChange;He&&Le!==Ee&&He(ve)},ce=function(){var ve,Ee=M.prefixCls,Le=M.className,He=Le===void 0?"":Le,ge=M.options,Fe=M.optionType,Q=M.buttonStyle,fe=M.disabled,Je=M.children,ne=M.size,X=M.style,G=M.id,te=M.onMouseEnter,we=M.onMouseLeave,he=H("radio",Ee),Pe="".concat(he,"-group"),Oe=Je;if(ge&&ge.length>0){var le=Fe==="button"?"".concat(he,"-button"):he;Oe=ge.map(function($e){return typeof $e=="string"?w.createElement(g,{ref:B,key:$e,prefixCls:le,disabled:fe,value:$e,checked:z===$e},$e):w.createElement(g,{ref:B,key:"radio-group-value-options-".concat($e.value),prefixCls:le,disabled:$e.disabled||fe,value:$e.value,checked:z===$e.value,style:$e.style},$e.label)})}var me=ne||K,_e=c()(Pe,"".concat(Pe,"-").concat(Q),(ve={},E()(ve,"".concat(Pe,"-").concat(me),me),E()(ve,"".concat(Pe,"-rtl"),F==="rtl"),ve),He);return w.createElement("div",{className:_e,style:X,onMouseEnter:te,onMouseLeave:we,id:G},Oe)};return w.createElement(o,{value:{onChange:q,value:z,disabled:M.disabled,name:M.name}},ce())});S.defaultProps={buttonStyle:"outline"};var b=w.memo(S),_=function(M,B){var R={};for(var H in M)Object.prototype.hasOwnProperty.call(M,H)&&B.indexOf(H)<0&&(R[H]=M[H]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,H=Object.getOwnPropertySymbols(M);F<H.length;F++)B.indexOf(H[F])<0&&Object.prototype.propertyIsEnumerable.call(M,H[F])&&(R[H[F]]=M[H[F]]);return R},I=function(B,R){var H=w.useContext(n),F=w.useContext(i.b),K=F.getPrefixCls,U=B.prefixCls,V=_(B,["prefixCls"]),z=K("radio-button",U);return H&&(V.checked=B.value===H.value,V.disabled=B.disabled||H.disabled),w.createElement(g,v()({prefixCls:z},V,{type:"radio",ref:R}))},L=w.forwardRef(I),D=g;D.Button=L,D.Group=b;var N=P.a=D},A1Ka:function(j,P,d){var O=d("bLfw"),E=d("sS/r"),C=d("D5nY"),v=C.detectSourceFormat,w=d("k9D9"),m=w.SERIES_LAYOUT_BY_COLUMN;O.extend({type:"dataset",defaultOption:{seriesLayoutBy:m,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){v(this)}}),E.extend({type:"dataset"})},ABKa:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("Qs9O")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="FolderOutlined";var c=v.forwardRef(h);P.default=c},AE9C:function(j,P,d){var O=d("bYtY"),E=d("crZl"),C=d("IwbS"),v=d("oVpE"),w=v.createSymbol,m=d("+TT/"),h=d("y7Aq"),c=E.extend({type:"visualMap.piecewise",doRender:function(){var r=this.group;r.removeAll();var o=this.visualMapModel,n=o.get("textGap"),e=o.textStyleModel,s=e.getFont(),t=e.getTextColor(),a=this._getItemAlign(),l=o.itemSize,u=this._getViewData(),f=u.endsText,p=O.retrieve(o.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],l,p,a),O.each(u.viewPieceList,g,this),f&&this._renderEndsText(r,f[1],l,p,a),m.box(o.get("orient"),r,o.get("itemGap")),this.renderBackground(r),this.positionGroup(r);function g(A){var y=A.piece,x=new C.Group;x.onclick=O.bind(this._onItemClick,this,y),this._enableHoverLink(x,A.indexInModelPieceList);var T=o.getRepresentValue(y);if(this._createItemSymbol(x,T,[0,0,l[0],l[1]]),p){var S=this.visualMapModel.getValueState(T);x.add(new C.Text({style:{x:a==="right"?-n:l[0]+n,y:l[1]/2,text:y.text,textVerticalAlign:"middle",textAlign:a,textFont:s,textFill:t,opacity:S==="outOfRange"?.5:1}}))}r.add(x)}},_enableHoverLink:function(r,o){r.on("mouseover",O.bind(n,this,"highlight")).on("mouseout",O.bind(n,this,"downplay"));function n(e){var s=this.visualMapModel;s.option.hoverLink&&this.api.dispatchAction({type:e,batch:h.makeHighDownBatch(s.findTargetDataIndices(o),s)})}},_getItemAlign:function(){var r=this.visualMapModel,o=r.option;if(o.orient==="vertical")return h.getItemAlign(r,this.api,r.itemSize);var n=o.align;return(!n||n==="auto")&&(n="left"),n},_renderEndsText:function(r,o,n,e,s){if(!o)return;var t=new C.Group,a=this.visualMapModel.textStyleModel;t.add(new C.Text({style:{x:e?s==="right"?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:e?s:"center",text:o,textFont:a.getFont(),textFill:a.getTextColor()}})),r.add(t)},_getViewData:function(){var r=this.visualMapModel,o=O.map(r.getPieceList(),function(t,a){return{piece:t,indexInModelPieceList:a}}),n=r.get("text"),e=r.get("orient"),s=r.get("inverse");return(e==="horizontal"?s:!s)?o.reverse():n&&(n=n.slice().reverse()),{viewPieceList:o,endsText:n}},_createItemSymbol:function(r,o,n){r.add(w(this.getControllerVisual(o,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(o,"color")))},_onItemClick:function(r){var o=this.visualMapModel,n=o.option,e=O.clone(n.selected),s=o.getSelectedMapKey(r);n.selectedMode==="single"?(e[s]=!0,O.each(e,function(t,a){e[a]=a===s})):e[s]=!e[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),i=c;j.exports=i},AEZ6:function(j,P,d){var O=d("bYtY"),E=O.each,C=O.createHashMap,v=d("T4UG"),w=d("MwEJ"),m=v.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(i,r){var o=this.getSource();return h(o,this),w(o,this)},getRawIndicesByActiveState:function(i){var r=this.coordinateSystem,o=this.getData(),n=[];return r.eachActiveState(o,function(e,s){i===e&&n.push(o.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(i,r){if(i.encodeDefine)return;var o=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!o)return;var n=i.encodeDefine=C();E(o.dimensions,function(e){var s=c(e);n.set(e,s)})}function c(i){return+i.replace("dim","")}j.exports=m},AH3D:function(j,P,d){var O=d("ProS");d("y4/Y"),d("qWt2"),d("Qvb6"),O.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),O.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("5GtS"),v=d("4NO4"),w=v.defaultEmphasis,m=d("D5nY"),h=m.makeSeriesEncodeForNameBased,c=d("xKMd"),i=O.extendSeriesModel({type:"series.funnel",init:function(o){i.superApply(this,"init",arguments),this.legendVisualProvider=new c(E.bind(this.getData,this),E.bind(this.getRawData,this)),this._defaultLabelLine(o)},getInitialData:function(o,n){return C(this,{coordDimensions:["value"],encodeDefaulter:E.curry(h,this)})},_defaultLabelLine:function(o){w(o,"labelLine",["show"]);var n=o.labelLine,e=o.emphasis.labelLine;n.show=n.show&&o.label.show,e.show=e.show&&o.emphasis.label.show},getDataParams:function(o){var n=this.getData(),e=i.superCall(this,"getDataParams",o),s=n.mapDimension("value"),t=n.getSum(s);return e.percent=t?+(n.get(s,o)/t*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),r=i;j.exports=r},ALsQ:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CFB=function(){var E=O.lib.BlockCipherMode.extend();E.Encryptor=E.extend({processBlock:function(w,m){var h=this._cipher,c=h.blockSize;C.call(this,w,m,c,h),this._prevBlock=w.slice(m,m+c)}}),E.Decryptor=E.extend({processBlock:function(w,m){var h=this._cipher,c=h.blockSize,i=w.slice(m,m+c);C.call(this,w,m,c,h),this._prevBlock=i}});function C(v,w,m,h){var c,i=this._iv;i?(c=i.slice(0),this._iv=void 0):c=this._prevBlock,h.encryptBlock(c,0);for(var r=0;r<m;r++)v[w+r]^=c[r]}return E}(),O.mode.CFB})},ANjR:function(j,P,d){var O=d("bYtY");function E(v,w){return w=w||[0,0],O.map([0,1],function(m){var h=w[m],c=v[m]/2,i=[],r=[];return i[m]=h-c,r[m]=h+c,i[1-m]=r[1-m]=w[1-m],Math.abs(this.dataToPoint(i)[m]-this.dataToPoint(r)[m])},this)}function C(v){var w=v.getBoundingRect();return{coordSys:{type:"geo",x:w.x,y:w.y,width:w.width,height:w.height,zoom:v.getZoom()},api:{coord:function(m){return v.dataToPoint(m)},size:O.bind(E,v)}}}j.exports=C},AOa7:function(j,P,d){},AUH6:function(j,P,d){var O=d("bYtY"),E=d("mFDi"),C=d("bMXI"),v=d("W4dC");function w(c,i,r,o){C.call(this,c),this.map=i;var n=v.load(i,r);this._nameCoordMap=n.nameCoordMap,this._regionsMap=n.regionsMap,this._invertLongitute=o==null?!0:o,this.regions=n.regions,this._rect=n.boundingRect}w.prototype={constructor:w,type:"geo",dimensions:["lng","lat"],containCoord:function(c){for(var i=this.regions,r=0;r<i.length;r++)if(i[r].contain(c))return!0;return!1},transformTo:function(c,i,r,o){var n=this.getBoundingRect(),e=this._invertLongitute;n=n.clone(),e&&(n.y=-n.y-n.height);var s=this._rawTransformable;if(s.transform=n.calculateTransform(new E(c,i,r,o)),s.decomposeTransform(),e){var t=s.scale;t[1]=-t[1]}s.updateTransform(),this._updateTransform()},getRegion:function(c){return this._regionsMap.get(c)},getRegionByCoord:function(c){for(var i=this.regions,r=0;r<i.length;r++)if(i[r].contain(c))return i[r]},addGeoCoord:function(c,i){this._nameCoordMap.set(c,i)},getGeoCoord:function(c){return this._nameCoordMap.get(c)},getBoundingRect:function(){return this._rect},dataToPoint:function(c,i,r){if(typeof c=="string"&&(c=this.getGeoCoord(c)),c)return C.prototype.dataToPoint.call(this,c,i,r)},convertToPixel:O.curry(m,"dataToPoint"),convertFromPixel:O.curry(m,"pointToData")},O.mixin(w,C);function m(c,i,r,o){var n=r.geoModel,e=r.seriesModel,s=n?n.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return s===this?s[c](o):null}var h=w;j.exports=h},AVZG:function(j,P,d){var O=d("bYtY");function E(C,v,w){w=w||{};var m=C.coordinateSystem,h=v.axis,c={},i=h.getAxesOnZeroOf()[0],r=h.position,o=i?"onZero":r,n=h.dim,e=m.getRect(),s=[e.x,e.x+e.width,e.y,e.y+e.height],t={left:0,right:1,top:0,bottom:1,onZero:2},a=v.get("offset")||0,l=n==="x"?[s[2]-a,s[3]+a]:[s[0]-a,s[1]+a];if(i){var u=i.toGlobalCoord(i.dataToCoord(0));l[t.onZero]=Math.max(Math.min(u,l[1]),l[0])}c.position=[n==="y"?l[t[o]]:s[0],n==="x"?l[t[o]]: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=i?l[t[r]]-l[t.onZero]:0,v.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),O.retrieve(w.labelInside,v.get("axisLabel.inside"))&&(c.labelDirection=-c.labelDirection);var p=v.get("axisLabel.rotate");return c.labelRotate=o==="top"?-p:p,c.z2=1,c}P.layout=E},"Ae+d":function(j,P){function d(E,C,v){var w=E.target,m=w.position;m[0]+=C,m[1]+=v,w.dirty()}function O(E,C,v,w){var m=E.target,h=E.zoomLimit,c=m.position,i=m.scale,r=E.zoom=E.zoom||1;if(r*=C,h){var o=h.min||0,n=h.max||Infinity;r=Math.max(Math.min(n,r),o)}var e=r/E.zoom;E.zoom=r,c[0]-=(v-c[0])*(e-1),c[1]-=(w-c[1])*(e-1),i[0]*=e,i[1]*=e,m.dirty()}P.updateViewOnPan=d,P.updateViewOnZoom=O},Ae16:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS");d("Wqna"),d("rySg"),O.extendComponentView({type:"grid",render:function(v,w){this.group.removeAll(),v.get("show")&&this.group.add(new C.Rect({shape:v.coordinateSystem.getRect(),style:E.defaults({fill:v.get("backgroundColor")},v.getItemStyle()),silent:!0,z2:-1}))}}),O.registerPreprocessor(function(v){v.xAxis&&v.yAxis&&!v.grid&&(v.grid={})})},Awhp:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("PQMj"),v=d.n(C)},"B+YJ":function(j,P,d){d("TYVI"),d("p1MT")},"B6l+":function(j,P,d){var O=d("Sq3C"),E=d("Z1HP"),C=d("Sxd8"),v=d("dt0z");function w(m,h,c){m=v(m),h=C(h);var i=h?E(m):0;return h&&i<h?m+O(h-i,c):m}j.exports=w},B9cy:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("0XgM"),v=d.n(C)},B9fm:function(j,P,d){var O=d("bYtY"),E=d("Qe9p"),C=d("YH21"),v=d("Ze12"),w=d("ItGF"),m=d("7aKB"),h=O.each,c=m.toCamelCase,i=["","-webkit-","-moz-","-o-"],r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function o(l){var u="cubic-bezier(0.23, 1, 0.32, 1)",f="left "+l+"s "+u+",top "+l+"s "+u;return O.map(i,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(g){var A=l.get(g);A&&u.push("text-"+g+":"+A)}),u.join(";")}function e(l){var u=[],f=l.get("transitionDuration"),p=l.get("backgroundColor"),g=l.getModel("textStyle"),A=l.get("padding");return f&&u.push(o(f)),p&&(w.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,T=c(x),S=l.get(T);S!=null&&u.push(x+":"+S+(y==="color"?"":"px"))}),u.push(n(g)),A!=null&&u.push("padding:"+m.normalizeCssArray(A).join("px ")+"px"),u.join(";")+";"}function s(l,u,f,p,g){var A=u&&u.painter;if(f){var y=A&&A.getViewportRoot();y&&v.transformLocalCoord(l,y,document.body,p,g)}else{l[0]=p,l[1]=g;var x=A&&A.getViewportRootOffset();x&&(l[0]+=x.offsetLeft,l[1]+=x.offsetTop)}}function t(l,u,f){if(w.wxa)return null;var p=document.createElement("div");p.domBelongToZr=!0,this.el=p;var g=this._zr=u.getZr(),A=this._appendToBody=f&&f.appendToBody;this._styleCoord=[0,0],s(this._styleCoord,g,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 T=g.handler,S=g.painter.getViewportRoot();C.normalizeEvent(S,x,!0),T.dispatch("mousemove",x)}},p.onmouseleave=function(){y._enterable&&(y._show&&y.hideLater(y._hideDelay)),y._inContent=!1}}t.prototype={constructor:t,_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+e(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(O.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 a=t;j.exports=a},BPZU:function(j,P){var d=32,O=7,E=256;function C(o){for(var n=0;o>=d;)n|=o&1,o>>=1;return o+n}function v(o,n,e,s){var t=n+1;if(t===e)return 1;if(s(o[t++],o[n])<0){for(;t<e&&s(o[t],o[t-1])<0;)t++;w(o,n,t)}else for(;t<e&&s(o[t],o[t-1])>=0;)t++;return t-n}function w(o,n,e){for(e--;n<e;){var s=o[n];o[n++]=o[e],o[e--]=s}}function m(o,n,e,s,t){for(s===n&&s++;s<e;s++){for(var a=o[s],l=n,u=s,f;l<u;)f=l+u>>>1,t(a,o[f])<0?u=f:l=f+1;var p=s-l;switch(p){case 3:o[l+3]=o[l+2];case 2:o[l+2]=o[l+1];case 1:o[l+1]=o[l];break;default:for(;p>0;)o[l+p]=o[l+p-1],p--}o[l]=a}}function h(o,n,e,s,t,a){var l=0,u=0,f=1;if(a(o,n[e+t])>0){for(u=s-t;f<u&&a(o,n[e+t+f])>0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),l+=t,f+=t}else{for(u=t+1;f<u&&a(o,n[e+t-f])<=0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var p=l;l=t-f,f=t-p}for(l++;l<f;){var g=l+(f-l>>>1);a(o,n[e+g])>0?l=g+1:f=g}return f}function c(o,n,e,s,t,a){var l=0,u=0,f=1;if(a(o,n[e+t])<0){for(u=t+1;f<u&&a(o,n[e+t-f])<0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u);var p=l;l=t-f,f=t-p}else{for(u=s-t;f<u&&a(o,n[e+t+f])>=0;)l=f,f=(f<<1)+1,f<=0&&(f=u);f>u&&(f=u),l+=t,f+=t}for(l++;l<f;){var g=l+(f-l>>>1);a(o,n[e+g])<0?f=g:l=g+1}return f}function i(o,n){var e=O,s=0,t=E,a=0,l,u,f=0;s=o.length,s<2*E&&(t=s>>>1);var p=[];a=s<120?5:s<1542?10:s<119151?19:40,l=[],u=[];function g(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],I=u[b],L=l[b+1],D=u[b+1];u[b]=I+D,b===f-3&&(l[b+1]=l[b+2],u[b+1]=u[b+2]),f--;var N=c(o[L],o,_,I,0,n);if(_+=N,I-=N,I===0)return;if(D=h(o[_+I-1],o,L,D,D-1,n),D===0)return;I<=D?T(_,I,L,D):S(_,I,L,D)}function T(b,_,I,L){var D=0;for(D=0;D<_;D++)p[D]=o[b+D];var N=0,M=I,B=b;if(o[B++]=o[M++],--L===0){for(D=0;D<_;D++)o[B+D]=p[N+D];return}if(_===1){for(D=0;D<L;D++)o[B+D]=o[M+D];o[B+L]=p[N];return}for(var R=e,H,F,K;;){H=0,F=0,K=!1;do if(n(o[M],p[N])<0){if(o[B++]=o[M++],F++,H=0,--L===0){K=!0;break}}else if(o[B++]=p[N++],H++,F=0,--_===1){K=!0;break}while((H|F)<R);if(K)break;do{if(H=c(o[M],p,N,_,0,n),H!==0){for(D=0;D<H;D++)o[B+D]=p[N+D];if(B+=H,N+=H,_-=H,_<=1){K=!0;break}}if(o[B++]=o[M++],--L===0){K=!0;break}if(F=h(p[N],o,M,L,0,n),F!==0){for(D=0;D<F;D++)o[B+D]=o[M+D];if(B+=F,M+=F,L-=F,L===0){K=!0;break}}if(o[B++]=p[N++],--_===1){K=!0;break}R--}while(H>=O||F>=O);if(K)break;R<0&&(R=0),R+=2}if(e=R,e<1&&(e=1),_===1){for(D=0;D<L;D++)o[B+D]=o[M+D];o[B+L]=p[N]}else{if(_===0)throw new Error;for(D=0;D<_;D++)o[B+D]=p[N+D]}}function S(b,_,I,L){var D=0;for(D=0;D<L;D++)p[D]=o[I+D];var N=b+_-1,M=L-1,B=I+L-1,R=0,H=0;if(o[B--]=o[N--],--_===0){for(R=B-(L-1),D=0;D<L;D++)o[R+D]=p[D];return}if(L===1){for(B-=_,N-=_,H=B+1,R=N+1,D=_-1;D>=0;D--)o[H+D]=o[R+D];o[B]=p[M];return}for(var F=e;;){var K=0,U=0,V=!1;do if(n(p[M],o[N])<0){if(o[B--]=o[N--],K++,U=0,--_===0){V=!0;break}}else if(o[B--]=p[M--],U++,K=0,--L===1){V=!0;break}while((K|U)<F);if(V)break;do{if(K=_-c(p[M],o,b,_,_-1,n),K!==0){for(B-=K,N-=K,_-=K,H=B+1,R=N+1,D=K-1;D>=0;D--)o[H+D]=o[R+D];if(_===0){V=!0;break}}if(o[B--]=p[M--],--L===1){V=!0;break}if(U=L-h(o[N],p,0,L,L-1,n),U!==0){for(B-=U,M-=U,L-=U,H=B+1,R=M+1,D=0;D<U;D++)o[H+D]=p[R+D];if(L<=1){V=!0;break}}if(o[B--]=o[N--],--_===0){V=!0;break}F--}while(K>=O||U>=O);if(V)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),L===1){for(B-=_,N-=_,H=B+1,R=N+1,D=_-1;D>=0;D--)o[H+D]=o[R+D];o[B]=p[M]}else{if(L===0)throw new Error;for(R=B-(L-1),D=0;D<L;D++)o[R+D]=p[D]}}this.mergeRuns=A,this.forceMergeRuns=y,this.pushRun=g}function r(o,n,e,s){e||(e=0),s||(s=o.length);var t=s-e;if(t<2)return;var a=0;if(t<d){a=v(o,e,s,n),m(o,e,s,e+a,n);return}var l=new i(o,n),u=C(t);do{if(a=v(o,e,s,n),a<u){var f=t;f>u&&(f=u),m(o,e,e+f,e+a,n),a=f}l.pushRun(e,a),l.mergeRuns(),t-=a,e+=a}while(t!==0);l.forceMergeRuns()}j.exports=r},Bd2K:function(j,P,d){(function(O){O(d("VrN/"),d("osHv"))})(function(O){O.defineOption("autoCloseTags",!1,function(i,r,o){if(o!=O.Init&&o&&i.removeKeyMap("autoCloseTags"),!r)return;var n={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(n["'/'"]=function(e){return m(e)}),(typeof r!="object"||r.whenOpening!==!1)&&(n["'>'"]=function(e){return v(e)}),i.addKeyMap(n)});var E=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],C=["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 v(i){if(i.getOption("disableInput"))return O.Pass;for(var r=i.listSelections(),o=[],n=i.getOption("autoCloseTags"),e=0;e<r.length;e++){if(!r[e].empty())return O.Pass;var s=r[e].head,t=i.getTokenAt(s),a=O.innerMode(i.getMode(),t.state),l=a.state,u=a.mode.xmlCurrentTag&&a.mode.xmlCurrentTag(l),f=u&&u.name;if(!f)return O.Pass;var p=a.mode.configuration=="html",g=typeof n=="object"&&n.dontCloseTags||p&&E,A=typeof n=="object"&&n.indentTags||p&&C;t.end>s.ch&&(f=f.slice(0,f.length-t.end+s.ch));var y=f.toLowerCase();if(!f||t.type=="string"&&(t.end!=s.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&u.close||t.string.indexOf("/")==s.ch-t.start-1||g&&h(g,y)>-1||c(i,a.mode.xmlCurrentContext&&a.mode.xmlCurrentContext(l)||[],f,s,!0))return O.Pass;var x=typeof n=="object"&&n.emptyTags;if(x&&h(x,f)>-1){o[e]={text:"/>",newPos:O.Pos(s.line,s.ch+2)};continue}var T=A&&h(A,y)>-1;o[e]={indent:T,text:">"+(T?`
`:"")+"</"+f+">",newPos:T?O.Pos(s.line+1,0):O.Pos(s.line,s.ch+1)}}for(var S=typeof n=="object"&&n.dontIndentOnAutoClose,e=r.length-1;e>=0;e--){var b=o[e];i.replaceRange(b.text,r[e].head,r[e].anchor,"+insert");var _=i.listSelections().slice(0);_[e]={head:b.newPos,anchor:b.newPos},i.setSelections(_),!S&&b.indent&&(i.indentLine(b.newPos.line,null,!0),i.indentLine(b.newPos.line+1,null,!0))}}function w(i,r){for(var o=i.listSelections(),n=[],e=r?"/":"</",s=i.getOption("autoCloseTags"),t=typeof s=="object"&&s.dontIndentOnSlash,a=0;a<o.length;a++){if(!o[a].empty())return O.Pass;var l=o[a].head,u=i.getTokenAt(l),f=O.innerMode(i.getMode(),u.state),p=f.state;if(r&&(u.type=="string"||u.string.charAt(0)!="<"||u.start!=l.ch-1))return O.Pass;var g,A=f.mode.name!="xml"&&i.getMode().name=="htmlmixed";if(A&&f.mode.name=="javascript")g=e+"script";else if(A&&f.mode.name=="css")g=e+"style";else{var y=f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(p);if(!y||y.length&&c(i,y,y[y.length-1],l))return O.Pass;g=e+y[y.length-1]}i.getLine(l.line).charAt(u.end)!=">"&&(g+=">"),n[a]=g}if(i.replaceSelections(n),o=i.listSelections(),!t)for(var a=0;a<o.length;a++)(a==o.length-1||o[a].head.line<o[a+1].head.line)&&i.indentLine(o[a].head.line)}function m(i){return i.getOption("disableInput")?O.Pass:w(i,!0)}O.commands.closeTag=function(i){return w(i)};function h(i,r){if(i.indexOf)return i.indexOf(r);for(var o=0,n=i.length;o<n;++o)if(i[o]==r)return o;return-1}function c(i,r,o,n,e){if(!O.scanForClosingTag)return!1;var s=Math.min(i.lastLine()+1,n.line+500),t=O.scanForClosingTag(i,n,null,s);if(!t||t.tag!=o)return!1;for(var a=e?1:0,l=r.length-1;l>=0&&r[l]==o;l--)++a;n=t.to;for(var l=1;l<a;l++){var u=O.scanForClosingTag(i,n,null,s);if(!u||u.tag!=o)return!1;n=u.to}return!0}})},BlVb:function(j,P,d){var O=d("hyiK"),E=1e-8;function C(w,m){return Math.abs(w-m)<E}function v(w,m,h){var c=0,i=w[0];if(!i)return!1;for(var r=1;r<w.length;r++){var o=w[r];c+=O(i[0],i[1],o[0],o[1],m,h),i=o}var n=w[0];return(!C(i[0],n[0])||!C(i[1],n[1]))&&(c+=O(i[0],i[1],n[0],n[1],m,h)),c!==0}P.contain=v},BoS7:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("czTT"),v=d.n(C)},Bq2U:function(j,P,d){var O=d("RDYZ"),E=d("Qe9p"),C=d("bYtY"),v=C.isArrayLike,w=Array.prototype.slice;function m(g,A){return g[A]}function h(g,A,y){g[A]=y}function c(g,A,y){return(A-g)*y+g}function i(g,A,y){return y>.5?A:g}function r(g,A,y,x,T){var S=g.length;if(T===1)for(var b=0;b<S;b++)x[b]=c(g[b],A[b],y);else for(var _=S&&g[0].length,b=0;b<S;b++)for(var I=0;I<_;I++)x[b][I]=c(g[b][I],A[b][I],y)}function o(g,A,y){var x=g.length,T=A.length;if(x!==T){var S=x>T;if(S)g.length=T;else for(var b=x;b<T;b++)g.push(y===1?A[b]:w.call(A[b]))}for(var _=g[0]&&g[0].length,b=0;b<g.length;b++)if(y===1)isNaN(g[b])&&(g[b]=A[b]);else for(var I=0;I<_;I++)isNaN(g[b][I])&&(g[b][I]=A[b][I])}function n(g,A,y){if(g===A)return!0;var x=g.length;if(x!==A.length)return!1;if(y===1){for(var T=0;T<x;T++)if(g[T]!==A[T])return!1}else for(var S=g[0].length,T=0;T<x;T++)for(var b=0;b<S;b++)if(g[T][b]!==A[T][b])return!1;return!0}function e(g,A,y,x,T,S,b,_,I){var L=g.length;if(I===1)for(var D=0;D<L;D++)_[D]=s(g[D],A[D],y[D],x[D],T,S,b);else for(var N=g[0].length,D=0;D<L;D++)for(var M=0;M<N;M++)_[D][M]=s(g[D][M],A[D][M],y[D][M],x[D][M],T,S,b)}function s(g,A,y,x,T,S,b){var _=(y-g)*.5,I=(x-A)*.5;return(2*(A-y)+_+I)*b+(-3*(A-y)-2*_-I)*S+_*T+A}function t(g){if(v(g)){var A=g.length;if(v(g[0])){for(var y=[],x=0;x<A;x++)y.push(w.call(g[x]));return y}return w.call(g)}return g}function a(g){return g[0]=Math.floor(g[0]),g[1]=Math.floor(g[1]),g[2]=Math.floor(g[2]),"rgba("+g.join(",")+")"}function l(g){var A=g[g.length-1].value;return v(A&&A[0])?2:1}function u(g,A,y,x,T,S){var b=g._getter,_=g._setter,I=A==="spline",L=x.length;if(!L)return;var D=x[0].value,N=v(D),M=!1,B=!1,R=N?l(x):0,H;x.sort(function(X,G){return X.time-G.time}),H=x[L-1].time;for(var F=[],K=[],U=x[0].value,V=!0,z=0;z<L;z++){F.push(x[z].time/H);var Y=x[z].value;if(N&&n(Y,U,R)||!N&&Y===U||(V=!1),U=Y,typeof Y=="string"){var q=E.parse(Y);q?(Y=q,M=!0):B=!0}K.push(Y)}if(!S&&V)return;for(var ce=K[L-1],z=0;z<L-1;z++)N?o(K[z],ce,R):isNaN(K[z])&&!isNaN(ce)&&!B&&!M&&(K[z]=ce);N&&o(b(g._target,T),ce,R);var ie=0,ve=0,Ee,Le,He,ge,Fe,Q;if(M)var fe=[0,0,0,0];var Je=function(G,te){var we;if(te<0)we=0;else if(te<ve){for(Ee=Math.min(ie+1,L-1),we=Ee;we>=0&&!(F[we]<=te);we--);we=Math.min(we,L-2)}else{for(we=ie;we<L&&!(F[we]>te);we++);we=Math.min(we-1,L-2)}ie=we,ve=te;var he=F[we+1]-F[we];if(he===0)return;if(Le=(te-F[we])/he,I)if(ge=K[we],He=K[we===0?we:we-1],Fe=K[we>L-2?L-1:we+1],Q=K[we>L-3?L-1:we+2],N)e(He,ge,Fe,Q,Le,Le*Le,Le*Le*Le,b(G,T),R);else{var Pe;if(M)Pe=e(He,ge,Fe,Q,Le,Le*Le,Le*Le*Le,fe,1),Pe=a(fe);else{if(B)return i(ge,Fe,Le);Pe=s(He,ge,Fe,Q,Le,Le*Le,Le*Le*Le)}_(G,T,Pe)}else if(N)r(K[we],K[we+1],Le,b(G,T),R);else{var Pe;if(M)r(K[we],K[we+1],Le,fe,1),Pe=a(fe);else{if(B)return i(K[we],K[we+1],Le);Pe=c(K[we],K[we+1],Le)}_(G,T,Pe)}},ne=new O({target:g._target,life:H,loop:g._loop,delay:g._delay,onframe:Je,ondestroy:y});return A&&A!=="spline"&&(ne.easing=A),ne}var f=function(A,y,x,T){this._tracks={},this._target=A,this._loop=y||!1,this._getter=x||m,this._setter=T||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 T in y){if(!y.hasOwnProperty(T))continue;if(!x[T]){x[T]=[];var S=this._getter(this._target,T);if(S==null)continue;A!==0&&x[T].push({time:0,value:t(S)})}x[T].push({time:A,value:y[T]})}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,T=0,S=function(){T--,T||x._doneCallback()},b;for(var _ in this._tracks){if(!this._tracks.hasOwnProperty(_))continue;var I=u(this,A,S,this._tracks[_],_,y);I&&(this._clipList.push(I),T++,this.animation&&this.animation.addClip(I),b=I)}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 T||this._doneCallback(),this},stop:function(A){for(var y=this._clipList,x=this.animation,T=0;T<y.length;T++){var S=y[T];A&&S.onframe(this._target,1),x&&x.removeClip(S)}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;j.exports=p},Bqw1:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},Bsck:function(j,P,d){var O=d("bYtY"),E=d("Qxkt"),C=d("Mdki"),v=d("YXkt"),w=d("sdST"),m=function(r,o){this.name=r||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=o};m.prototype={constructor:m,isRemoved:function(){return this.dataIndex<0},eachNode:function(r,o,n){typeof r=="function"&&(n=o,o=r,r=null),r=r||{},O.isString(r)&&(r={order:r});var e=r.order||"preorder",s=this[r.attr||"children"],t;e==="preorder"&&(t=o.call(n,this));for(var a=0;!t&&a<s.length;a++)s[a].eachNode(r,o,n);e==="postorder"&&o.call(n,this)},updateDepthAndHeight:function(r){var o=0;this.depth=r;for(var n=0;n<this.children.length;n++){var e=this.children[n];e.updateDepthAndHeight(r+1),e.height>o&&(o=e.height)}this.height=o+1},getNodeById:function(r){if(this.getId()===r)return this;for(var o=0,n=this.children,e=n.length;o<e;o++){var s=n[o].getNodeById(r);if(s)return s}},contains:function(r){if(r===this)return!0;for(var o=0,n=this.children,e=n.length;o<e;o++){var s=n[o].contains(r);if(s)return s}},getAncestors:function(r){for(var o=[],n=r?this:this.parentNode;n;)o.push(n),n=n.parentNode;return o.reverse(),o},getValue:function(r){var o=this.hostTree.data;return o.get(o.getDimension(r||"value"),this.dataIndex)},setLayout:function(r,o){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,o)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(r){if(this.dataIndex<0)return;var o=this.hostTree,n=o.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?n.getModel(r,e.getModel(r)):n.getModel(r)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(r,o){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,r,o)},getVisual:function(r,o){return this.hostTree.data.getItemVisual(this.dataIndex,r,o)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(r){for(var o=r.parentNode;o;){if(o===this)return!0;o=o.parentNode}return!1},isDescendantOf:function(r){return r!==this&&r.isAncestorOf(this)}};function h(r,o){this.root,this.data,this._nodes=[],this.hostModel=r,this.levelModels=O.map(o||[],function(n){return new E(n,r,r.ecModel)})}h.prototype={constructor:h,type:"tree",eachNode:function(r,o,n){this.root.eachNode(r,o,n)},getNodeByDataIndex:function(r){var o=this.data.getRawIndex(r);return this._nodes[o]},getNodeByName:function(r){return this.root.getNodeByName(r)},update:function(){for(var r=this.data,o=this._nodes,n=0,e=o.length;n<e;n++)o[n].dataIndex=-1;for(var n=0,e=r.count();n<e;n++)o[r.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},h.createTree=function(r,o,n,e){var s=new h(o,n&&n.levels),t=[],a=1;l(r);function l(p,g){var A=p.value;a=Math.max(a,O.isArray(A)?A.length:1),t.push(p);var y=new m(p.name,s);g?c(y,g):s.root=y,s._nodes.push(y);var x=p.children;if(x)for(var T=0;T<x.length;T++)l(x[T],y)}s.root.updateDepthAndHeight(0);var u=w(t,{coordDimensions:["value"],dimensionsCount:a}),f=new v(u,o);return f.initData(t),e&&e(f),C({mainData:f,struct:s,structAttr:"tree"}),s.update(),s};function c(r,o){var n=o.children;if(r.parentNode===o)return;n.push(r),r.parentNode=o}var i=h;j.exports=i},BtR2:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="LikeOutlined";var h=P.a=E.forwardRef(m)},BuqR:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("6uqw"),w=d("XxSj"),m=d("YOMW"),h=d("OELB"),c=h.reformIntervals,i=v.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,s){i.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var t=this._mode=this._determineMode();r[this._mode].call(this),this._resetSelected(e,s);var a=this.option.categories;this.resetVisual(function(l,u){t==="categories"?(l.mappingMethod="category",l.categories=C.clone(a)):(l.dataExtent=this.getExtent(),l.mappingMethod="piecewise",l.pieceList=C.map(this._pieceList,function(f){var f=C.clone(f);return u!=="inRange"&&(f.visual=null),f}))})},completeVisualOption:function(){var e=this.option,s={},t=w.listVisualTypes(),a=this.isCategory();C.each(e.pieces,function(u){C.each(t,function(f){u.hasOwnProperty(f)&&(s[f]=1)})}),C.each(s,function(u,f){var p=0;C.each(this.stateList,function(g){p|=l(e,g,f)||l(e.target,g,f)},this),!p&&C.each(this.stateList,function(g){(e[g]||(e[g]={}))[f]=m.get(f,g==="inRange"?"active":"inactive",a)})},this);function l(u,f,p){return u&&u[f]&&(C.isObject(u[f])?u[f].hasOwnProperty(p):u[f]===p)}v.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,s){var t=this.option,a=this._pieceList,l=(s?t:e).selected||{};if(t.selected=l,C.each(a,function(f,p){var g=this.getSelectedMapKey(f);l.hasOwnProperty(g)||(l[g]=!0)},this),t.selectedMode==="single"){var u=!1;C.each(a,function(f,p){var g=this.getSelectedMapKey(f);l[g]&&(u?l[g]=!1:u=!0)},this)}},getSelectedMapKey:function(e){return this._mode==="categories"?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=C.clone(e)},getValueState:function(e){var s=w.findPieceIndex(e,this._pieceList);return s!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var s=[];return this.eachTargetSeries(function(t){var a=[],l=t.getData();l.each(this.getDataDimension(l),function(u,f){var p=w.findPieceIndex(u,this._pieceList);p===e&&a.push(f)},this),s.push({seriesId:t.id,dataIndex:a})},this),s},getRepresentValue:function(e){var s;if(this.isCategory())s=e.value;else if(e.value!=null)s=e.value;else{var t=e.interval||[];s=t[0]===-Infinity&&t[1]===Infinity?0:(t[0]+t[1])/2}return s},getVisualMeta:function(e){if(this.isCategory())return;var s=[],t=[],a=this;function l(g,A){var y=a.getRepresentValue({interval:g});A||(A=a.getValueState(y));var x=e(y,A);g[0]===-Infinity?t[0]=x:g[1]===Infinity?t[1]=x:s.push({value:g[0],color:x},{value:g[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 C.each(u,function(g){var A=g.interval;A&&(A[0]>p&&l([p,A[0]],"outOfRange"),l(A.slice()),p=A[1])},this),{stops:s,outerColors:t}}}),r={splitNumber:function(){var e=this.option,s=this._pieceList,t=Math.min(e.precision,20),a=this.getExtent(),l=e.splitNumber;l=Math.max(parseInt(l,10),1),e.splitNumber=l;for(var u=(a[1]-a[0])/l;+u.toFixed(t)!==u&&t<5;)t++;e.precision=t,u=+u.toFixed(t),e.minOpen&&s.push({interval:[-Infinity,a[0]],close:[0,0]});for(var f=0,p=a[0];f<l;p+=u,f++){var g=f===l-1?a[1]:p+u;s.push({interval:[p,g],close:[1,1]})}e.maxOpen&&s.push({interval:[a[1],Infinity],close:[0,0]}),c(s),C.each(s,function(A,y){A.index=y,A.text=this.formatValueText(A.interval)},this)},categories:function(){var e=this.option;C.each(e.categories,function(s){this._pieceList.push({text:this.formatValueText(s,!0),value:s})},this),o(e,this._pieceList)},pieces:function(){var e=this.option,s=this._pieceList;C.each(e.pieces,function(t,a){C.isObject(t)||(t={value:t});var l={text:"",index:a};if(t.label!=null&&(l.text=t.label),t.hasOwnProperty("value")){var u=l.value=t.value;l.interval=[u,u],l.close=[1,1]}else{for(var f=l.interval=[],p=l.close=[0,0],g=[1,0,1],A=[-Infinity,Infinity],y=[],x=0;x<2;x++){for(var T=[["gte","gt","min"],["lte","lt","max"]][x],S=0;S<3&&f[x]==null;S++)f[x]=t[T[S]],p[x]=g[S],y[x]=S===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=w.retrieveVisuals(t),s.push(l)},this),o(e,s),c(s),C.each(s,function(t){var a=t.close,l=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,l)},this)}};function o(e,s){var t=e.inverse;(e.orient==="vertical"?!t:t)&&s.reverse()}var n=i;j.exports=n},BvKs:function(j,P,d){"use strict";d.d(P,"a",function(){return Mt});var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("7W2i"),r=d.n(i),o=d("LQ03"),n=d.n(o),e=d("q1tI"),s=d("VTBJ"),t=d("1OyB"),a=d("vuIU"),l=d("JX7q"),u=d("Ji7U"),f=d("LK+K"),p=d("I8Z2"),g=d("BGR+"),A=d("wx14"),y=d("rePB"),x=d("4IlW"),T=d("2GS6"),S=d("Gytx"),b=d.n(S),_=d("TSYQ"),I=d.n(_),L=d("U8pU"),D=d("ODXe"),N=/iPhone/i,M=/iPod/i,B=/iPad/i,R=/\bAndroid(?:.+)Mobile\b/i,H=/Android/i,F=/\bAndroid(?:.+)SD4930UR\b/i,K=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,U=/Windows Phone/i,V=/\bWindows(?:.+)ARM\b/i,z=/BlackBerry/i,Y=/BB10/i,q=/Opera Mini/i,ce=/\b(CriOS|Chrome)(?:.+)Mobile/i,ie=/Mobile(?:.+)Firefox\b/i;function ve(nt,st){return nt.test(st)}function Ee(nt){var st=nt||(typeof navigator!="undefined"?navigator.userAgent:""),Xt=st.split("[FBAN");if(typeof Xt[1]!="undefined"){var Dt=Xt,St=Object(D.a)(Dt,1);st=St[0]}if(Xt=st.split("Twitter"),typeof Xt[1]!="undefined"){var jt=Xt,At=Object(D.a)(jt,1);st=At[0]}var Ft={apple:{phone:ve(N,st)&&!ve(U,st),ipod:ve(M,st),tablet:!ve(N,st)&&ve(B,st)&&!ve(U,st),device:(ve(N,st)||ve(M,st)||ve(B,st))&&!ve(U,st)},amazon:{phone:ve(F,st),tablet:!ve(F,st)&&ve(K,st),device:ve(F,st)||ve(K,st)},android:{phone:!ve(U,st)&&ve(F,st)||!ve(U,st)&&ve(R,st),tablet:!ve(U,st)&&!ve(F,st)&&!ve(R,st)&&(ve(K,st)||ve(H,st)),device:!ve(U,st)&&(ve(F,st)||ve(K,st)||ve(R,st)||ve(H,st))||ve(/\bokhttp\b/i,st)},windows:{phone:ve(U,st),tablet:ve(V,st),device:ve(U,st)||ve(V,st)},other:{blackberry:ve(z,st),blackberry10:ve(Y,st),opera:ve(q,st),firefox:ve(ie,st),chrome:ve(ce,st),device:ve(z,st)||ve(Y,st)||ve(q,st)||ve(ie,st)||ve(ce,st)},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 Le=Object(s.a)(Object(s.a)({},Ee()),{},{isMobile:Ee}),He=Le;function ge(){}function Fe(nt,st,Xt){var Dt=st||"";return nt.key||"".concat(Dt,"item_").concat(Xt)}function Q(nt){return"".concat(nt,"-menu-")}function fe(nt,st){var Xt=-1;e.Children.forEach(nt,function(Dt){Xt+=1,Dt&&Dt.type&&Dt.type.isMenuItemGroup?e.Children.forEach(Dt.props.children,function(St){Xt+=1,st(St,Xt)}):st(Dt,Xt)})}function Je(nt,st,Xt){if(!nt||Xt.find)return;e.Children.forEach(nt,function(Dt){if(Dt){var St=Dt.type;if(!St||!(St.isSubMenu||St.isMenuItem||St.isMenuItemGroup))return;st.indexOf(Dt.key)!==-1?Xt.find=!0:Dt.props.children&&Je(Dt.props.children,st,Xt)}})}var ne=["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(st){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=st&&typeof st.getBoundingClientRect=="function"&&st.getBoundingClientRect().width;if(Dt){if(Xt){var St=getComputedStyle(st),jt=St.marginLeft,At=St.marginRight;Dt+=+jt.replace("px","")+ +At.replace("px","")}Dt=+Dt.toFixed(6)}return Dt||0},G=function(st,Xt,Dt){st&&Object(L.a)(st.style)==="object"&&(st.style[Xt]=Dt)},te=function(){return He.any},we=d("KQm4"),he=d("Ff2n"),Pe=d("i8i4"),Oe=d("bdgK"),le=d("Uaa1"),me=d("HTfv"),_e={adjustX:1,adjustY:1},$e={topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:_e,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:_e,offset:[4,0]}},gt={topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:_e,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:_e,offset:[4,0]}},et=$e,Ie=0,rt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Ge=function(st,Xt,Dt){var St=Q(Xt),jt=st.getState();st.setState({defaultActiveFirst:Object(s.a)(Object(s.a)({},jt.defaultActiveFirst),{},Object(y.a)({},St,Dt))})},vt=function(nt){Object(u.a)(Xt,nt);var st=Object(f.a)(Xt);function Xt(Dt){var St;Object(t.a)(this,Xt),St=st.call(this,Dt),St.onDestroy=function(mr){St.props.onDestroy(mr)},St.onKeyDown=function(mr){var $r=mr.keyCode,rn=St.menuInstance,jn=St.props,Un=jn.isOpen,ui=jn.store;if($r===x.a.ENTER)return St.onTitleClick(mr),Ge(ui,St.props.eventKey,!0),!0;if($r===x.a.RIGHT)return Un?rn.onKeyDown(mr):(St.triggerOpenChange(!0),Ge(ui,St.props.eventKey,!0)),!0;if($r===x.a.LEFT){var yi;if(Un)yi=rn.onKeyDown(mr);else return;return yi||(St.triggerOpenChange(!1),yi=!0),yi}return Un&&($r===x.a.UP||$r===x.a.DOWN)?rn.onKeyDown(mr):void 0},St.onOpenChange=function(mr){St.props.onOpenChange(mr)},St.onPopupVisibleChange=function(mr){St.triggerOpenChange(mr,mr?"mouseenter":"mouseleave")},St.onMouseEnter=function(mr){var $r=St.props,rn=$r.eventKey,jn=$r.onMouseEnter,Un=$r.store;Ge(Un,St.props.eventKey,!1),jn({key:rn,domEvent:mr})},St.onMouseLeave=function(mr){var $r=St.props,rn=$r.parentMenu,jn=$r.eventKey,Un=$r.onMouseLeave;rn.subMenuInstance=Object(l.a)(St),Un({key:jn,domEvent:mr})},St.onTitleMouseEnter=function(mr){var $r=St.props,rn=$r.eventKey,jn=$r.onItemHover,Un=$r.onTitleMouseEnter;jn({key:rn,hover:!0}),Un({key:rn,domEvent:mr})},St.onTitleMouseLeave=function(mr){var $r=St.props,rn=$r.parentMenu,jn=$r.eventKey,Un=$r.onItemHover,ui=$r.onTitleMouseLeave;rn.subMenuInstance=Object(l.a)(St),Un({key:jn,hover:!1}),ui({key:jn,domEvent:mr})},St.onTitleClick=function(mr){var $r=Object(l.a)(St),rn=$r.props;if(rn.onTitleClick({key:rn.eventKey,domEvent:mr}),rn.triggerSubMenuAction==="hover")return;St.triggerOpenChange(!rn.isOpen,"click"),Ge(rn.store,St.props.eventKey,!1)},St.onSubMenuClick=function(mr){typeof St.props.onClick=="function"&&St.props.onClick(St.addKeyPath(mr))},St.onSelect=function(mr){St.props.onSelect(mr)},St.onDeselect=function(mr){St.props.onDeselect(mr)},St.getPrefixCls=function(){return"".concat(St.props.rootPrefixCls,"-submenu")},St.getActiveClassName=function(){return"".concat(St.getPrefixCls(),"-active")},St.getDisabledClassName=function(){return"".concat(St.getPrefixCls(),"-disabled")},St.getSelectedClassName=function(){return"".concat(St.getPrefixCls(),"-selected")},St.getOpenClassName=function(){return"".concat(St.props.rootPrefixCls,"-submenu-open")},St.saveMenuInstance=function(mr){St.menuInstance=mr},St.addKeyPath=function(mr){return Object(s.a)(Object(s.a)({},mr),{},{keyPath:(mr.keyPath||[]).concat(St.props.eventKey)})},St.triggerOpenChange=function(mr,$r){var rn=St.props.eventKey,jn=function(){St.onOpenChange({key:rn,item:Object(l.a)(St),trigger:$r,open:mr})};$r==="mouseenter"?St.mouseenterTimeout=setTimeout(function(){jn()},0):jn()},St.isChildrenSelected=function(){var mr={find:!1};return Je(St.props.children,St.props.selectedKeys,mr),mr.find},St.isOpen=function(){return St.props.openKeys.indexOf(St.props.eventKey)!==-1},St.adjustWidth=function(){if(!St.subMenuTitle||!St.menuInstance)return;var mr=Pe.findDOMNode(St.menuInstance);if(mr.offsetWidth>=St.subMenuTitle.offsetWidth)return;mr.style.minWidth="".concat(St.subMenuTitle.offsetWidth,"px")},St.saveSubMenuTitle=function(mr){St.subMenuTitle=mr},St.getBaseProps=function(){var mr=Object(l.a)(St),$r=mr.props;return{mode:$r.mode==="horizontal"?"vertical":$r.mode,visible:St.props.isOpen,level:$r.level+1,inlineIndent:$r.inlineIndent,focusable:!1,onClick:St.onSubMenuClick,onSelect:St.onSelect,onDeselect:St.onDeselect,onDestroy:St.onDestroy,selectedKeys:$r.selectedKeys,eventKey:"".concat($r.eventKey,"-menu-"),openKeys:$r.openKeys,motion:$r.motion,onOpenChange:St.onOpenChange,subMenuOpenDelay:$r.subMenuOpenDelay,parentMenu:Object(l.a)(St),subMenuCloseDelay:$r.subMenuCloseDelay,forceSubMenuRender:$r.forceSubMenuRender,triggerSubMenuAction:$r.triggerSubMenuAction,builtinPlacements:$r.builtinPlacements,defaultActiveFirst:$r.store.getState().defaultActiveFirst[Q($r.eventKey)],multiple:$r.multiple,prefixCls:$r.rootPrefixCls,id:St.internalMenuId,manualRef:St.saveMenuInstance,itemIcon:$r.itemIcon,expandIcon:$r.expandIcon,direction:$r.direction}},St.getMotion=function(mr,$r){var rn=Object(l.a)(St),jn=rn.haveRendered,Un=St.props,ui=Un.motion,yi=Un.rootPrefixCls,Ii=Object(s.a)(Object(s.a)({},ui),{},{leavedClassName:"".concat(yi,"-hidden"),removeOnLeave:!1,motionAppear:jn||!$r||mr!=="inline"});return Ii};var jt=Dt.store,At=Dt.eventKey,Ft=jt.getState(),wr=Ft.defaultActiveFirst;St.isRootMenu=!1;var sr=!1;return wr&&(sr=wr[At]),Ge(jt,At,sr),St}return Object(a.a)(Xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var St=this,jt=this.props,At=jt.mode,Ft=jt.parentMenu,wr=jt.manualRef;if(wr&&wr(this),At!=="horizontal"||!Ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return St.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var St=this.props,jt=St.onDestroy,At=St.eventKey;jt&&jt(At),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(St){var jt=this,At=this.getBaseProps(),Ft=this.getMotion(At.mode,At.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||At.visible||At.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var wr=At.direction;return e.createElement(me.default,Object.assign({visible:At.visible},Ft),function(sr){var mr=sr.className,$r=sr.style,rn=I()("".concat(At.prefixCls,"-sub"),mr,Object(y.a)({},"".concat(At.prefixCls,"-rtl"),wr==="rtl"));return e.createElement($t,Object.assign({},At,{id:jt.internalMenuId,className:rn,style:$r}),St)})}},{key:"render",value:function(){var St,jt=Object(s.a)({},this.props),At=jt.isOpen,Ft=this.getPrefixCls(),wr=jt.mode==="inline",sr=I()(Ft,"".concat(Ft,"-").concat(jt.mode),(St={},Object(y.a)(St,jt.className,!!jt.className),Object(y.a)(St,this.getOpenClassName(),At),Object(y.a)(St,this.getActiveClassName(),jt.active||At&&!wr),Object(y.a)(St,this.getDisabledClassName(),jt.disabled),Object(y.a)(St,this.getSelectedClassName(),this.isChildrenSelected()),St));this.internalMenuId||(jt.eventKey?this.internalMenuId="".concat(jt.eventKey,"$Menu"):(Ie+=1,this.internalMenuId="$__$".concat(Ie,"$Menu")));var mr={},$r={},rn={};jt.disabled||(mr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},$r={onClick:this.onTitleClick},rn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var jn={},Un=jt.direction;wr&&(Un==="rtl"?jn.paddingRight=jt.inlineIndent*jt.level:jn.paddingLeft=jt.inlineIndent*jt.level);var ui={};this.props.isOpen&&(ui={"aria-owns":this.internalMenuId});var yi=null;jt.mode!=="horizontal"&&(yi=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(yi=e.createElement(this.props.expandIcon,Object(s.a)({},this.props))));var Ii=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:jn,className:"".concat(Ft,"-title"),role:"button"},rn,$r,{"aria-expanded":At},ui,{"aria-haspopup":"true",title:typeof jt.title=="string"?jt.title:void 0}),jt.title,yi||e.createElement("i",{className:"".concat(Ft,"-arrow")})),Gi=this.renderChildren(jt.children),Qe=jt.parentMenu.isRootMenu?jt.parentMenu.props.getPopupContainer:function(Lr){return Lr.parentNode},be=rt[jt.mode],Ne=jt.popupOffset?{offset:jt.popupOffset}:{},Ue=jt.mode==="inline"?"":jt.popupClassName;Ue+=Un==="rtl"?" ".concat(Ft,"-rtl"):"";var Xe=jt.disabled,ze=jt.triggerSubMenuAction,Ze=jt.subMenuOpenDelay,bt=jt.forceSubMenuRender,ut=jt.subMenuCloseDelay,Gt=jt.builtinPlacements;ne.forEach(function(Lr){return delete jt[Lr]}),delete jt.onClick;var Mr=Un==="rtl"?Object.assign({},gt,Gt):Object.assign({},$e,Gt);return delete jt.direction,e.createElement("li",Object.assign({},jt,mr,{className:sr,role:"menuitem"}),wr&&Ii,wr&&Gi,!wr&&e.createElement(le.a,{prefixCls:Ft,popupClassName:I()("".concat(Ft,"-popup"),Ue),getPopupContainer:Qe,builtinPlacements:Mr,popupPlacement:be,popupVisible:At,popupAlign:Ne,popup:Gi,action:Xe?[]:[ze],mouseEnterDelay:Ze,mouseLeaveDelay:ut,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:bt},Ii))}}]),Xt}(e.Component);vt.defaultProps={onMouseEnter:ge,onMouseLeave:ge,onTitleMouseEnter:ge,onTitleMouseLeave:ge,onTitleClick:ge,manualRef:ge,mode:"vertical",title:""};var Ot=Object(p.b)(function(nt,st){var Xt=nt.openKeys,Dt=nt.activeKey,St=nt.selectedKeys,jt=st.eventKey,At=st.subMenuKey;return{isOpen:Xt.indexOf(jt)>-1,active:Dt[At]===jt,selectedKeys:St}})(vt);Ot.isSubMenu=!0;var Et=Ot,Tt="menuitem-overflowed",Rt=.5,Be=function(nt){Object(u.a)(Xt,nt);var st=Object(f.a)(Xt);function Xt(){var Dt;return Object(t.a)(this,Xt),Dt=st.apply(this,arguments),Dt.resizeObserver=null,Dt.mutationObserver=null,Dt.originalTotalWidth=0,Dt.overflowedItems=[],Dt.menuItemSizes=[],Dt.cancelFrameId=null,Dt.state={lastVisibleIndex:void 0},Dt.getMenuItemNodes=function(){var St=Dt.props.prefixCls,jt=Pe.findDOMNode(Object(l.a)(Dt));return jt?[].slice.call(jt.children).filter(function(At){return At.className.split(" ").indexOf("".concat(St,"-overflowed-submenu"))<0}):[]},Dt.getOverflowedSubMenuItem=function(St,jt,At){var Ft=Dt.props,wr=Ft.overflowedIndicator,sr=Ft.level,mr=Ft.mode,$r=Ft.prefixCls,rn=Ft.theme;if(sr!==1||mr!=="horizontal")return null;var jn=Dt.props.children[0],Un=jn.props,ui=Un.children,yi=Un.title,Ii=Un.style,Gi=Object(he.a)(Un,["children","title","style"]),Qe=Object(s.a)({},Ii),be="".concat(St,"-overflowed-indicator"),Ne="".concat(St,"-overflowed-indicator");jt.length===0&&At!==!0?Qe=Object(s.a)(Object(s.a)({},Qe),{},{display:"none"}):At&&(Qe=Object(s.a)(Object(s.a)({},Qe),{},{visibility:"hidden",position:"absolute"}),be="".concat(be,"-placeholder"),Ne="".concat(Ne,"-placeholder"));var Ue=rn?"".concat($r,"-").concat(rn):"",Xe={};return ne.forEach(function(ze){Gi[ze]!==void 0&&(Xe[ze]=Gi[ze])}),e.createElement(Et,Object.assign({title:wr,className:"".concat($r,"-overflowed-submenu"),popupClassName:Ue},Xe,{key:be,eventKey:Ne,disabled:!1,style:Qe}),jt)},Dt.setChildrenWidthAndResize=function(){if(Dt.props.mode!=="horizontal")return;var St=Pe.findDOMNode(Object(l.a)(Dt));if(!St)return;var jt=St.children;if(!jt||jt.length===0)return;var At=St.children[jt.length-1];G(At,"display","inline-block");var Ft=Dt.getMenuItemNodes(),wr=Ft.filter(function(sr){return sr.className.split(" ").indexOf(Tt)>=0});wr.forEach(function(sr){G(sr,"display","inline-block")}),Dt.menuItemSizes=Ft.map(function(sr){return X(sr,!0)}),wr.forEach(function(sr){G(sr,"display","none")}),Dt.overflowedIndicatorWidth=X(St.children[St.children.length-1],!0),Dt.originalTotalWidth=Dt.menuItemSizes.reduce(function(sr,mr){return sr+mr},0),Dt.handleResize(),G(At,"display","none")},Dt.handleResize=function(){if(Dt.props.mode!=="horizontal")return;var St=Pe.findDOMNode(Object(l.a)(Dt));if(!St)return;var jt=X(St);Dt.overflowedItems=[];var At=0,Ft;Dt.originalTotalWidth>jt+Rt&&(Ft=-1,Dt.menuItemSizes.forEach(function(wr){At+=wr,At+Dt.overflowedIndicatorWidth<=jt&&(Ft+=1)})),Dt.setState({lastVisibleIndex:Ft})},Dt}return Object(a.a)(Xt,[{key:"componentDidMount",value:function(){var St=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var jt=Pe.findDOMNode(this);if(!jt)return;this.resizeObserver=new Oe.default(function(At){At.forEach(function(){var Ft=St.cancelFrameId;cancelAnimationFrame(Ft),St.cancelFrameId=requestAnimationFrame(St.setChildrenWidthAndResize)})}),[].slice.call(jt.children).concat(jt).forEach(function(At){St.resizeObserver.observe(At)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){St.resizeObserver.disconnect(),[].slice.call(jt.children).concat(jt).forEach(function(At){St.resizeObserver.observe(At)}),St.setChildrenWidthAndResize()}),this.mutationObserver.observe(jt,{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(St){var jt=this,At=this.state.lastVisibleIndex;return(St||[]).reduce(function(Ft,wr,sr){var mr=wr;if(jt.props.mode==="horizontal"){var $r=jt.getOverflowedSubMenuItem(wr.props.eventKey,[]);At!==void 0&&jt.props.className.indexOf("".concat(jt.props.prefixCls,"-root"))!==-1&&(sr>At&&(mr=e.cloneElement(wr,{style:{display:"none"},eventKey:"".concat(wr.props.eventKey,"-hidden"),className:"".concat(Tt)})),sr===At+1&&(jt.overflowedItems=St.slice(At+1).map(function(jn){return e.cloneElement(jn,{key:jn.props.eventKey,mode:"vertical-left"})}),$r=jt.getOverflowedSubMenuItem(wr.props.eventKey,jt.overflowedItems)));var rn=[].concat(Object(we.a)(Ft),[$r,mr]);return sr===St.length-1&&rn.push(jt.getOverflowedSubMenuItem(wr.props.eventKey,[],!0)),rn}return[].concat(Object(we.a)(Ft),[mr])},[])}},{key:"render",value:function(){var St=this.props,jt=St.visible,At=St.prefixCls,Ft=St.overflowedIndicator,wr=St.mode,sr=St.level,mr=St.tag,$r=St.children,rn=St.theme,jn=Object(he.a)(St,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Un=mr;return e.createElement(Un,Object.assign({},jn),this.renderChildren($r))}}]),Xt}(e.Component);Be.defaultProps={tag:"div",className:""};var Z=Be;function J(nt){return nt.length?nt.every(function(st){return!!st.props.disabled}):!0}function je(nt,st,Xt){var Dt=nt.getState();nt.setState({activeKey:Object(s.a)(Object(s.a)({},Dt.activeKey),{},Object(y.a)({},st,Xt))})}function Re(nt){return nt.eventKey||"0-menu-"}function oe(nt,st){var Xt=st,Dt=nt.children,St=nt.eventKey;if(Xt){var jt;if(fe(Dt,function(At,Ft){At&&At.props&&!At.props.disabled&&Xt===Fe(At,St,Ft)&&(jt=!0)}),jt)return Xt}return Xt=null,nt.defaultActiveFirst&&fe(Dt,function(At,Ft){!Xt&&At&&!At.props.disabled&&(Xt=Fe(At,St,Ft))}),Xt}function yt(nt){if(nt){var st=this.instanceArray.indexOf(nt);st!==-1?this.instanceArray[st]=nt:this.instanceArray.push(nt)}}var zt=function(nt){Object(u.a)(Xt,nt);var st=Object(f.a)(Xt);function Xt(Dt){var St;return Object(t.a)(this,Xt),St=st.call(this,Dt),St.onKeyDown=function(jt,At){var Ft=jt.keyCode,wr;if(St.getFlatInstanceArray().forEach(function(mr){mr&&mr.props.active&&mr.onKeyDown&&(wr=mr.onKeyDown(jt))}),wr)return 1;var sr=null;return(Ft===x.a.UP||Ft===x.a.DOWN)&&(sr=St.step(Ft===x.a.UP?-1:1)),sr?(jt.preventDefault(),je(St.props.store,Re(St.props),sr.props.eventKey),typeof At=="function"&&At(sr),1):void 0},St.onItemHover=function(jt){var At=jt.key,Ft=jt.hover;je(St.props.store,Re(St.props),Ft?At:null)},St.onDeselect=function(jt){St.props.onDeselect(jt)},St.onSelect=function(jt){St.props.onSelect(jt)},St.onClick=function(jt){St.props.onClick(jt)},St.onOpenChange=function(jt){St.props.onOpenChange(jt)},St.onDestroy=function(jt){St.props.onDestroy(jt)},St.getFlatInstanceArray=function(){return St.instanceArray},St.step=function(jt){var At=St.getFlatInstanceArray(),Ft=St.props.store.getState().activeKey[Re(St.props)],wr=At.length;if(!wr)return null;jt<0&&(At=At.concat().reverse());var sr=-1;if(At.every(function(jn,Un){return jn&&jn.props.eventKey===Ft?(sr=Un,!1):!0}),!St.props.defaultActiveFirst&&sr!==-1&&J(At.slice(sr,wr-1)))return;var mr=(sr+1)%wr,$r=mr;do{var rn=At[$r];if(!rn||rn.props.disabled)$r=($r+1)%wr;else return rn}while($r!==mr);return null},St.renderCommonMenuItem=function(jt,At,Ft){var wr=St.props.store.getState(),sr=Object(l.a)(St),mr=sr.props,$r=Fe(jt,mr.eventKey,At),rn=jt.props;if(!rn||typeof jt.type=="string")return jt;var jn=$r===wr.activeKey,Un=Object(s.a)(Object(s.a)({mode:rn.mode||mr.mode,level:mr.level,inlineIndent:mr.inlineIndent,renderMenuItem:St.renderMenuItem,rootPrefixCls:mr.prefixCls,index:At,parentMenu:mr.parentMenu,manualRef:rn.disabled?void 0:Object(T.a)(jt.ref,yt.bind(Object(l.a)(St))),eventKey:$r,active:!rn.disabled&&jn,multiple:mr.multiple,onClick:function(yi){(rn.onClick||ge)(yi),St.onClick(yi)},onItemHover:St.onItemHover,motion:mr.motion,subMenuOpenDelay:mr.subMenuOpenDelay,subMenuCloseDelay:mr.subMenuCloseDelay,forceSubMenuRender:mr.forceSubMenuRender,onOpenChange:St.onOpenChange,onDeselect:St.onDeselect,onSelect:St.onSelect,builtinPlacements:mr.builtinPlacements,itemIcon:rn.itemIcon||St.props.itemIcon,expandIcon:rn.expandIcon||St.props.expandIcon},Ft),{},{direction:mr.direction});return(mr.mode==="inline"||te())&&(Un.triggerSubMenuAction="click"),e.cloneElement(jt,Un)},St.renderMenuItem=function(jt,At,Ft){if(!jt)return null;var wr=St.props.store.getState(),sr={openKeys:wr.openKeys,selectedKeys:wr.selectedKeys,triggerSubMenuAction:St.props.triggerSubMenuAction,subMenuKey:Ft};return St.renderCommonMenuItem(jt,At,sr)},Dt.store.setState({activeKey:Object(s.a)(Object(s.a)({},Dt.store.getState().activeKey),{},Object(y.a)({},Dt.eventKey,oe(Dt,Dt.activeKey)))}),St.instanceArray=[],St}return Object(a.a)(Xt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(St){return this.props.visible||St.visible||this.props.className!==St.className||!b()(this.props.style,St.style)}},{key:"componentDidUpdate",value:function(St){var jt=this.props,At="activeKey"in jt?jt.activeKey:jt.store.getState().activeKey[Re(jt)],Ft=oe(jt,At);if(Ft!==At)je(jt.store,Re(jt),Ft);else if("activeKey"in St){var wr=oe(St,St.activeKey);Ft!==wr&&je(jt.store,Re(jt),Ft)}}},{key:"render",value:function(){var St=this,jt=Object(A.a)({},this.props);this.instanceArray=[];var At=I()(jt.prefixCls,jt.className,"".concat(jt.prefixCls,"-").concat(jt.mode)),Ft={className:At,role:jt.role||"menu"};jt.id&&(Ft.id=jt.id),jt.focusable&&(Ft.tabIndex=0,Ft.onKeyDown=this.onKeyDown);var wr=jt.prefixCls,sr=jt.eventKey,mr=jt.visible,$r=jt.level,rn=jt.mode,jn=jt.overflowedIndicator,Un=jt.theme;return ne.forEach(function(ui){return delete jt[ui]}),delete jt.onClick,e.createElement(Z,Object.assign({},jt,{prefixCls:wr,mode:rn,tag:"ul",level:$r,theme:Un,visible:mr,overflowedIndicator:jn},Ft),e.Children.map(jt.children,function(ui,yi){return St.renderMenuItem(ui,yi,sr||"0-menu-")}))}}]),Xt}(e.Component);zt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ge};var lt=Object(p.b)()(zt),$t=lt,cr=d("Kwbf");function cn(nt,st,Xt){var Dt=nt.prefixCls,St=nt.motion,jt=nt.defaultMotions,At=jt===void 0?{}:jt,Ft=nt.openAnimation,wr=nt.openTransitionName,sr=st.switchingModeFromInline;if(St)return St;if(Object(L.a)(Ft)==="object"&&Ft)Object(cr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Ft=="string")return{motionName:"".concat(Dt,"-open-").concat(Ft)};if(wr)return{motionName:wr};var mr=At[Xt];return mr||(sr?null:At.other)}var pr=function(nt){Object(u.a)(Xt,nt);var st=Object(f.a)(Xt);function Xt(Dt){var St;Object(t.a)(this,Xt),St=st.call(this,Dt),St.inlineOpenKeys=[],St.onSelect=function(Ft){var wr=Object(l.a)(St),sr=wr.props;if(sr.selectable){var mr=St.store.getState(),$r=mr.selectedKeys,rn=Ft.key;sr.multiple?$r=$r.concat([rn]):$r=[rn],"selectedKeys"in sr||St.store.setState({selectedKeys:$r}),sr.onSelect(Object(s.a)(Object(s.a)({},Ft),{},{selectedKeys:$r}))}},St.onClick=function(Ft){var wr=St.getRealMenuMode(),sr=Object(l.a)(St),mr=sr.store,$r=sr.props.onOpenChange;wr!=="inline"&&!("openKeys"in St.props)&&(mr.setState({openKeys:[]}),$r([])),St.props.onClick(Ft)},St.onKeyDown=function(Ft,wr){St.innerMenu.getWrappedInstance().onKeyDown(Ft,wr)},St.onOpenChange=function(Ft){var wr=Object(l.a)(St),sr=wr.props,mr=St.store.getState().openKeys.concat(),$r=!1,rn=function(Un){var ui=!1;if(Un.open)ui=mr.indexOf(Un.key)===-1,ui&&mr.push(Un.key);else{var yi=mr.indexOf(Un.key);ui=yi!==-1,ui&&mr.splice(yi,1)}$r=$r||ui};Array.isArray(Ft)?Ft.forEach(rn):rn(Ft),$r&&("openKeys"in St.props||St.store.setState({openKeys:mr}),sr.onOpenChange(mr))},St.onDeselect=function(Ft){var wr=Object(l.a)(St),sr=wr.props;if(sr.selectable){var mr=St.store.getState().selectedKeys.concat(),$r=Ft.key,rn=mr.indexOf($r);rn!==-1&&mr.splice(rn,1),"selectedKeys"in sr||St.store.setState({selectedKeys:mr}),sr.onDeselect(Object(s.a)(Object(s.a)({},Ft),{},{selectedKeys:mr}))}},St.onMouseEnter=function(Ft){St.restoreModeVerticalFromInline();var wr=St.props.onMouseEnter;wr&&wr(Ft)},St.onTransitionEnd=function(Ft){var wr=Ft.propertyName==="width"&&Ft.target===Ft.currentTarget,sr=Ft.target.className,mr=Object.prototype.toString.call(sr)==="[object SVGAnimatedString]"?sr.animVal:sr,$r=Ft.propertyName==="font-size"&&mr.indexOf("anticon")>=0;(wr||$r)&&St.restoreModeVerticalFromInline()},St.setInnerMenu=function(Ft){St.innerMenu=Ft},St.isRootMenu=!0;var jt=Dt.defaultSelectedKeys,At=Dt.defaultOpenKeys;return"selectedKeys"in Dt&&(jt=Dt.selectedKeys||[]),"openKeys"in Dt&&(At=Dt.openKeys||[]),St.store=Object(p.c)({selectedKeys:jt,openKeys:At,activeKey:{"0-menu-":oe(Dt,Dt.activeKey)}}),St.state={switchingModeFromInline:!1},St}return Object(a.a)(Xt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(St){this.updateOpentKeysWhenSwitchMode(St),this.updateMiniStore();var jt=this.props,At=jt.siderCollapsed,Ft=jt.inlineCollapsed,wr=jt.onOpenChange;(!St.inlineCollapsed&&Ft||!St.siderCollapsed&&At)&&wr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(St){var jt=this.props,At=this.store,Ft=this.inlineOpenKeys,wr=At.getState(),sr={};St.mode==="inline"&&jt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in jt||((jt.inlineCollapsed&&!St.inlineCollapsed||jt.siderCollapsed&&!St.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=wr.openKeys.concat(),sr.openKeys=[]),(!jt.inlineCollapsed&&St.inlineCollapsed||!jt.siderCollapsed&&St.siderCollapsed)&&(sr.openKeys=Ft,this.inlineOpenKeys=[])),Object.keys(sr).length&&At.setState(sr)}},{key:"updateMenuDisplay",value:function(){var St=this.props.collapsedWidth,jt=this.store,At=this.prevOpenKeys,Ft=this.getInlineCollapsed()&&(St===0||St==="0"||St==="0px");Ft?(this.prevOpenKeys=jt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):At&&(this.store.setState({openKeys:At}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var St=this.props.mode,jt=this.state.switchingModeFromInline,At=this.getInlineCollapsed();return jt&&At?"inline":At?"vertical":St}},{key:"getInlineCollapsed",value:function(){var St=this.props,jt=St.inlineCollapsed,At=St.siderCollapsed;return At!==void 0?At:jt}},{key:"restoreModeVerticalFromInline",value:function(){var St=this.state.switchingModeFromInline;St&&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 St=Object(s.a)({},Object(g.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),jt=this.getRealMenuMode();return St.className+=" ".concat(St.prefixCls,"-root"),St.direction==="rtl"&&(St.className+=" ".concat(St.prefixCls,"-rtl")),St=Object(s.a)(Object(s.a)({},St),{},{mode:jt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:cn(this.props,this.state,jt)}),delete St.openAnimation,delete St.openTransitionName,e.createElement(p.a,{store:this.store},e.createElement($t,Object.assign({},St,{ref:this.setInnerMenu}),this.props.children))}}]),Xt}(e.Component);pr.defaultProps={selectable:!0,onClick:ge,onSelect:ge,onOpenChange:ge,onDeselect:ge,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:e.createElement("span",null,"\xB7\xB7\xB7")};var gr=pr,Zt=function(nt){Object(u.a)(Xt,nt);var st=Object(f.a)(Xt);function Xt(){var Dt;return Object(t.a)(this,Xt),Dt=st.apply(this,arguments),Dt.onKeyDown=function(St){var jt=St.keyCode;return jt===x.a.ENTER?(Dt.onClick(St),!0):void 0},Dt.onMouseLeave=function(St){var jt=Dt.props,At=jt.eventKey,Ft=jt.onItemHover,wr=jt.onMouseLeave;Ft({key:At,hover:!1}),wr({key:At,domEvent:St})},Dt.onMouseEnter=function(St){var jt=Dt.props,At=jt.eventKey,Ft=jt.onItemHover,wr=jt.onMouseEnter;Ft({key:At,hover:!0}),wr({key:At,domEvent:St})},Dt.onClick=function(St){var jt=Dt.props,At=jt.eventKey,Ft=jt.multiple,wr=jt.onClick,sr=jt.onSelect,mr=jt.onDeselect,$r=jt.isSelected,rn={key:At,keyPath:[At],item:Object(l.a)(Dt),domEvent:St};wr(rn),Ft?$r?mr(rn):sr(rn):$r||sr(rn)},Dt.saveNode=function(St){Dt.node=St},Dt}return Object(a.a)(Xt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var St=this.props;St.onDestroy&&St.onDestroy(St.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 St,jt=Object(s.a)({},this.props),At=I()(this.getPrefixCls(),jt.className,(St={},Object(y.a)(St,this.getActiveClassName(),!jt.disabled&&jt.active),Object(y.a)(St,this.getSelectedClassName(),jt.isSelected),Object(y.a)(St,this.getDisabledClassName(),jt.disabled),St)),Ft=Object(s.a)(Object(s.a)({},jt.attribute),{},{title:typeof jt.title=="string"?jt.title:void 0,className:At,role:jt.role||"menuitem","aria-disabled":jt.disabled});jt.role==="option"?Ft=Object(s.a)(Object(s.a)({},Ft),{},{role:"option","aria-selected":jt.isSelected}):(jt.role===null||jt.role==="none")&&(Ft.role="none");var wr={onClick:jt.disabled?null:this.onClick,onMouseLeave:jt.disabled?null:this.onMouseLeave,onMouseEnter:jt.disabled?null:this.onMouseEnter},sr=Object(s.a)({},jt.style);jt.mode==="inline"&&(jt.direction==="rtl"?sr.paddingRight=jt.inlineIndent*jt.level:sr.paddingLeft=jt.inlineIndent*jt.level),ne.forEach(function($r){return delete jt[$r]}),delete jt.direction;var mr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(mr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(g.default)(jt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Ft,wr,{style:sr,ref:this.saveNode}),jt.children,mr)}}]),Xt}(e.Component);Zt.isMenuItem=!0,Zt.defaultProps={onSelect:ge,onMouseEnter:ge,onMouseLeave:ge,manualRef:ge};var Vt=Object(p.b)(function(nt,st){var Xt=nt.activeKey,Dt=nt.selectedKeys,St=st.eventKey,jt=st.subMenuKey;return{active:Xt[jt]===St,isSelected:Dt.indexOf(St)!==-1}})(Zt),mt=Vt,Yr=function(nt){Object(u.a)(Xt,nt);var st=Object(f.a)(Xt);function Xt(){var Dt;return Object(t.a)(this,Xt),Dt=st.apply(this,arguments),Dt.renderInnerMenuItem=function(St){var jt=Dt.props,At=jt.renderMenuItem,Ft=jt.index;return At(St,Ft,Dt.props.subMenuKey)},Dt}return Object(a.a)(Xt,[{key:"render",value:function(){var St=Object(A.a)({},this.props),jt=St.className,At=jt===void 0?"":jt,Ft=St.rootPrefixCls,wr="".concat(Ft,"-item-group-title"),sr="".concat(Ft,"-item-group-list"),mr=St.title,$r=St.children;return ne.forEach(function(rn){return delete St[rn]}),delete St.onClick,delete St.direction,e.createElement("li",Object.assign({},St,{className:"".concat(At," ").concat(Ft,"-item-group")}),e.createElement("div",{className:wr,title:typeof mr=="string"?mr:void 0},mr),e.createElement("ul",{className:sr},e.Children.map($r,this.renderInnerMenuItem)))}}]),Xt}(e.Component);Yr.isMenuItemGroup=!0,Yr.defaultProps={disabled:!0};var Tn=Yr,Hn=function(st){var Xt=st.className,Dt=st.rootPrefixCls,St=st.style;return e.createElement("li",{className:"".concat(Xt," ").concat(Dt,"-item-divider"),style:St})};Hn.defaultProps={disabled:!0,className:"",style:{}};var ei=Hn,ji=gr,Ln=Object(e.createContext)({inlineCollapsed:!1}),Vn=Ln,kt=d("0n0R"),wt=function(nt){r()(Xt,nt);var st=n()(Xt);function Xt(){return m()(this,Xt),st.apply(this,arguments)}return c()(Xt,[{key:"renderTitle",value:function(St){var jt=this.props,At=jt.icon,Ft=jt.title,wr=jt.level,sr=jt.rootPrefixCls;if(!At)return St&&wr===1&&Ft&&typeof Ft=="string"?e.createElement("div",{className:"".concat(sr,"-inline-collapsed-noicon")},Ft.charAt(0)):Ft;var mr=Object(kt.b)(Ft)&&Ft.type==="span";return e.createElement(e.Fragment,null,At,mr?Ft:e.createElement("span",null,Ft))}},{key:"render",value:function(){var St=this,jt=this.props,At=jt.rootPrefixCls,Ft=jt.popupClassName;return e.createElement(Vn.Consumer,null,function(wr){var sr=wr.inlineCollapsed,mr=wr.antdMenuTheme;return e.createElement(Et,E()({},Object(g.default)(St.props,["icon"]),{title:St.renderTitle(sr),popupClassName:I()(At,"".concat(At,"-").concat(mr),Ft)}))})}}]),Xt}(e.Component);wt.contextType=Vn,wt.isSubMenu=1;var Te=wt,xe=d("Zm9Q"),Ce=d("3S7+"),Ye=d("ZX9x"),it=function(nt,st){var Xt={};for(var Dt in nt)Object.prototype.hasOwnProperty.call(nt,Dt)&&st.indexOf(Dt)<0&&(Xt[Dt]=nt[Dt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Dt=Object.getOwnPropertySymbols(nt);St<Dt.length;St++)st.indexOf(Dt[St])<0&&Object.prototype.propertyIsEnumerable.call(nt,Dt[St])&&(Xt[Dt[St]]=nt[Dt[St]]);return Xt},dt=function(nt){r()(Xt,nt);var st=n()(Xt);function Xt(){var Dt;return m()(this,Xt),Dt=st.apply(this,arguments),Dt.renderItem=function(St){var jt=St.siderCollapsed,At=Dt.props,Ft=At.level,wr=At.className,sr=At.children,mr=At.rootPrefixCls,$r=Dt.props,rn=$r.title,jn=$r.icon,Un=$r.danger,ui=it($r,["title","icon","danger"]);return e.createElement(Vn.Consumer,null,function(yi){var Ii,Gi=yi.inlineCollapsed,Qe=yi.direction,be=rn;typeof rn=="undefined"?be=Ft===1?sr:"":rn===!1&&(be="");var Ne={title:be};!jt&&!Gi&&(Ne.title=null,Ne.visible=!1);var Ue=Object(xe.a)(sr).length;return e.createElement(Ce.a,E()({},Ne,{placement:Qe==="rtl"?"left":"right",overlayClassName:"".concat(mr,"-inline-collapsed-tooltip")}),e.createElement(mt,E()({},ui,{className:I()(wr,(Ii={},v()(Ii,"".concat(mr,"-item-danger"),Un),v()(Ii,"".concat(mr,"-item-only-child"),(jn?Ue+1:Ue)===1),Ii)),title:rn}),jn,Dt.renderItemChildren(Gi)))})},Dt}return c()(Xt,[{key:"renderItemChildren",value:function(St){var jt=this.props,At=jt.icon,Ft=jt.children,wr=jt.level,sr=jt.rootPrefixCls;return!At||Object(kt.b)(Ft)&&Ft.type==="span"?Ft&&St&&wr===1&&typeof Ft=="string"?e.createElement("div",{className:"".concat(sr,"-inline-collapsed-noicon")},Ft.charAt(0)):Ft:e.createElement("span",null,Ft)}},{key:"render",value:function(){return e.createElement(Ye.a.Consumer,null,this.renderItem)}}]),Xt}(e.Component);dt.isMenuItem=!0;var _t=d("H84U"),vr=d("uaoM"),kr=d("EXcs"),mn=function(nt){r()(Xt,nt);var st=n()(Xt);function Xt(Dt){var St;return m()(this,Xt),St=st.call(this,Dt),St.renderMenu=function(jt){var At=jt.getPopupContainer,Ft=jt.getPrefixCls,wr=jt.direction,sr=St.props,mr=sr.prefixCls,$r=sr.className,rn=sr.theme,jn={horizontal:{motionName:"slide-up"},inline:kr.a,other:{motionName:"zoom-big"}},Un=Ft("menu",mr),ui=I()($r,"".concat(Un,"-").concat(rn),v()({},"".concat(Un,"-inline-collapsed"),St.getInlineCollapsed()));return e.createElement(Vn.Provider,{value:{inlineCollapsed:St.getInlineCollapsed()||!1,antdMenuTheme:rn,direction:wr}},e.createElement(ji,E()({getPopupContainer:At},St.props,{className:ui,prefixCls:Un,direction:wr,defaultMotions:jn})))},Object(vr.a)(!("inlineCollapsed"in Dt&&Dt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(vr.a)(!(Dt.siderCollapsed!==void 0&&"inlineCollapsed"in Dt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),St}return c()(Xt,[{key:"getInlineCollapsed",value:function(){var St=this.props,jt=St.inlineCollapsed,At=St.siderCollapsed;return At!==void 0?At:jt}},{key:"render",value:function(){return e.createElement(_t.a,null,this.renderMenu)}}]),Xt}(e.Component);mn.defaultProps={className:"",theme:"light",focusable:!1};var Mt=function(nt){r()(Xt,nt);var st=n()(Xt);function Xt(){return m()(this,Xt),st.apply(this,arguments)}return c()(Xt,[{key:"render",value:function(){var St=this;return e.createElement(Ye.a.Consumer,null,function(jt){return e.createElement(mn,E()({},St.props,jt))})}}]),Xt}(e.Component);Mt.Divider=ei,Mt.Item=dt,Mt.SubMenu=Te,Mt.ItemGroup=Tn},C0SR:function(j,P,d){var O=d("YH21"),E=function(){this._track=[]};E.prototype={constructor:E,recognize:function(c,i,r){return this._doTrack(c,i,r),this._recognize(c)},clear:function(){return this._track.length=0,this},_doTrack:function(c,i,r){var o=c.touches;if(!o)return;for(var n={points:[],touches:[],target:i,event:c},e=0,s=o.length;e<s;e++){var t=o[e],a=O.clientToLocal(r,t,{});n.points.push([a.zrX,a.zrY]),n.touches.push(t)}this._track.push(n)},_recognize:function(c){for(var i in w)if(w.hasOwnProperty(i)){var r=w[i](this._track,c);if(r)return r}}};function C(h){var c=h[1][0]-h[0][0],i=h[1][1]-h[0][1];return Math.sqrt(c*c+i*i)}function v(h){return[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]}var w={pinch:function(c,i){var r=c.length;if(!r)return;var o=(c[r-1]||{}).points,n=(c[r-2]||{}).points||o;if(n&&n.length>1&&o&&o.length>1){var e=C(o)/C(n);!isFinite(e)&&(e=1),i.pinchScale=e;var s=v(o);return i.pinchX=s[0],i.pinchY=s[1],{type:"pinch",target:c[0].target,event:i}}}},m=E;j.exports=m},C0tN:function(j,P,d){d("0o9m"),d("8Uz6"),d("Ducp"),d("6/nd")},CBdT:function(j,P,d){var O=d("ProS");d("8waO"),d("AEZ6"),d("YNf1");var E=d("q3GZ");O.registerVisual(E)},CF2D:function(j,P,d){var O=d("ProS");d("vZI5"),d("GeKi");var E=d("6r85"),C=d("TJmX"),v=d("CbHG");O.registerPreprocessor(E),O.registerVisual(C),O.registerLayout(v)},CFYs:function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("PJYZ"),r=d.n(i),o=d("7W2i"),n=d.n(o),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d.n(t),l=d("TSYQ"),u=d.n(l),f=d("BGR+"),p=d("V/uB"),g=d.n(p),A=d("NAnI"),y=d.n(A),x=d("J84W"),T=d.n(x),S=d("kbBi"),b=d.n(S),_=d("H84U"),I=d("CWQg"),L=d("uaoM"),D=d("Zss7"),N=d.n(D),M=2,B=.16,R=.05,H=.05,F=.15,K=5,U=4,V=[{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 z(dt,_t,vr){var kr;return Math.round(dt.h)>=60&&Math.round(dt.h)<=240?kr=vr?Math.round(dt.h)-M*_t:Math.round(dt.h)+M*_t:kr=vr?Math.round(dt.h)+M*_t:Math.round(dt.h)-M*_t,kr<0?kr+=360:kr>=360&&(kr-=360),kr}function Y(dt,_t,vr){if(dt.h===0&&dt.s===0)return dt.s;var kr;return vr?kr=dt.s-B*_t:_t===U?kr=dt.s+B:kr=dt.s+R*_t,kr>1&&(kr=1),vr&&_t===K&&kr>.1&&(kr=.1),kr<.06&&(kr=.06),Number(kr.toFixed(2))}function q(dt,_t,vr){var kr;return vr?kr=dt.v+H*_t:kr=dt.v-F*_t,kr>1&&(kr=1),Number(kr.toFixed(2))}function ce(dt){for(var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vr=[],kr=N()(dt),mn=K;mn>0;mn-=1){var Mt=kr.toHsv(),nt=N()({h:z(Mt,mn,!0),s:Y(Mt,mn,!0),v:q(Mt,mn,!0)}).toHexString();vr.push(nt)}vr.push(kr.toHexString());for(var st=1;st<=U;st+=1){var Xt=kr.toHsv(),Dt=N()({h:z(Xt,st),s:Y(Xt,st),v:q(Xt,st)}).toHexString();vr.push(Dt)}return _t.theme==="dark"?V.map(function(St){var jt=St.index,At=St.opacity,Ft=N.a.mix(_t.backgroundColor||"#141414",vr[jt],At*100).toHexString();return Ft}):vr}var ie={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ve={},Ee={};Object.keys(ie).forEach(function(dt){ve[dt]=ce(ie[dt]),ve[dt].primary=ve[dt][5],Ee[dt]=ce(ie[dt],{theme:"dark",backgroundColor:"#141414"}),Ee[dt].primary=Ee[dt][5]});var Le=ve.red,He=ve.volcano,ge=ve.gold,Fe=ve.orange,Q=ve.yellow,fe=ve.lime,Je=ve.green,ne=ve.cyan,X=ve.blue,G=ve.geekblue,te=ve.purple,we=ve.magenta,he=ve.grey;function Pe(dt){return!dt||dt<0?0:dt>100?100:dt}function Oe(dt){var _t=dt.success,vr=dt.successPercent,kr=vr;return _t&&"progress"in _t&&(Object(L.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),kr=_t.progress),_t&&"percent"in _t&&(kr=_t.percent),kr}var le=function(dt,_t){var vr={};for(var kr in dt)Object.prototype.hasOwnProperty.call(dt,kr)&&_t.indexOf(kr)<0&&(vr[kr]=dt[kr]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,kr=Object.getOwnPropertySymbols(dt);mn<kr.length;mn++)_t.indexOf(kr[mn])<0&&Object.prototype.propertyIsEnumerable.call(dt,kr[mn])&&(vr[kr[mn]]=dt[kr[mn]]);return vr},me=function(_t){var vr=[];return Object.keys(_t).forEach(function(kr){var mn=parseFloat(kr.replace(/%/g,""));isNaN(mn)||vr.push({key:mn,value:_t[kr]})}),vr=vr.sort(function(kr,mn){return kr.key-mn.key}),vr.map(function(kr){var mn=kr.key,Mt=kr.value;return"".concat(Mt," ").concat(mn,"%")}).join(", ")},_e=function(_t){var vr=_t.from,kr=vr===void 0?ie.blue:vr,mn=_t.to,Mt=mn===void 0?ie.blue:mn,nt=_t.direction,st=nt===void 0?"to right":nt,Xt=le(_t,["from","to","direction"]);if(Object.keys(Xt).length!==0){var Dt=me(Xt);return{backgroundImage:"linear-gradient(".concat(st,", ").concat(Dt,")")}}return{backgroundImage:"linear-gradient(".concat(st,", ").concat(kr,", ").concat(Mt,")")}},$e=function(_t){var vr=_t.prefixCls,kr=_t.percent,mn=_t.strokeWidth,Mt=_t.size,nt=_t.strokeColor,st=_t.strokeLinecap,Xt=_t.children,Dt=_t.trailColor,St=_t.success,jt=nt&&typeof nt!="string"?_e(nt):{background:nt},At=Dt?{backgroundColor:Dt}:void 0,Ft=v()({width:"".concat(Pe(kr),"%"),height:mn||(Mt==="small"?6:8),borderRadius:st==="square"?0:""},jt),wr=Oe(_t),sr={width:"".concat(Pe(wr),"%"),height:mn||(Mt==="small"?6:8),borderRadius:st==="square"?0:"",backgroundColor:St==null?void 0:St.strokeColor},mr=wr!==void 0?t.createElement("div",{className:"".concat(vr,"-success-bg"),style:sr}):null;return t.createElement(t.Fragment,null,t.createElement("div",{className:"".concat(vr,"-outer")},t.createElement("div",{className:"".concat(vr,"-inner"),style:At},t.createElement("div",{className:"".concat(vr,"-bg"),style:Ft}),mr)),Xt)},gt=$e,et={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Ie=function(_t){var vr=_t.map(function(){return Object(t.useRef)()}),kr=Object(t.useRef)();return Object(t.useEffect)(function(){var mn=Date.now(),Mt=!1;Object.keys(vr).forEach(function(nt){var st=vr[nt].current;if(!st)return;Mt=!0;var Xt=st.style;Xt.transitionDuration=".3s, .3s, .3s, .06s",kr.current&&mn-kr.current<100&&(Xt.transitionDuration="0s, 0s")}),Mt&&(kr.current=Date.now())}),[vr]};function rt(){return rt=Object.assign||function(dt){for(var _t=1;_t<arguments.length;_t++){var vr=arguments[_t];for(var kr in vr)Object.prototype.hasOwnProperty.call(vr,kr)&&(dt[kr]=vr[kr])}return dt},rt.apply(this,arguments)}function Ge(dt,_t){return Rt(dt)||Tt(dt,_t)||Ot(dt,_t)||vt()}function vt(){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 Ot(dt,_t){if(!dt)return;if(typeof dt=="string")return Et(dt,_t);var vr=Object.prototype.toString.call(dt).slice(8,-1);if(vr==="Object"&&dt.constructor&&(vr=dt.constructor.name),vr==="Map"||vr==="Set")return Array.from(dt);if(vr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(vr))return Et(dt,_t)}function Et(dt,_t){(_t==null||_t>dt.length)&&(_t=dt.length);for(var vr=0,kr=new Array(_t);vr<_t;vr++)kr[vr]=dt[vr];return kr}function Tt(dt,_t){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(dt)))return;var vr=[],kr=!0,mn=!1,Mt=void 0;try{for(var nt=dt[Symbol.iterator](),st;!(kr=(st=nt.next()).done)&&!(vr.push(st.value),_t&&vr.length===_t);kr=!0);}catch(Xt){mn=!0,Mt=Xt}finally{try{!kr&&nt.return!=null&&nt.return()}finally{if(mn)throw Mt}}return vr}function Rt(dt){if(Array.isArray(dt))return dt}function Be(dt,_t){if(dt==null)return{};var vr=Z(dt,_t),kr,mn;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(dt);for(mn=0;mn<Mt.length;mn++){if(kr=Mt[mn],_t.indexOf(kr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(dt,kr))continue;vr[kr]=dt[kr]}}return vr}function Z(dt,_t){if(dt==null)return{};var vr={},kr=Object.keys(dt),mn,Mt;for(Mt=0;Mt<kr.length;Mt++){if(mn=kr[Mt],_t.indexOf(mn)>=0)continue;vr[mn]=dt[mn]}return vr}var J=function(_t){var vr=_t.className,kr=_t.percent,mn=_t.prefixCls,Mt=_t.strokeColor,nt=_t.strokeLinecap,st=_t.strokeWidth,Xt=_t.style,Dt=_t.trailColor,St=_t.trailWidth,jt=_t.transition,At=Be(_t,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete At.gapPosition;var Ft=Array.isArray(kr)?kr:[kr],wr=Array.isArray(Mt)?Mt:[Mt],sr=Ie(Ft),mr=Ge(sr,1),$r=mr[0],rn=st/2,jn=100-st/2,Un="M ".concat(nt==="round"?rn:0,",").concat(rn,`
L `).concat(nt==="round"?jn:100,",").concat(rn),ui="0 0 100 ".concat(st),yi=0;return a.a.createElement("svg",rt({className:u()("".concat(mn,"-line"),vr),viewBox:ui,preserveAspectRatio:"none",style:Xt},At),a.a.createElement("path",{className:"".concat(mn,"-line-trail"),d:Un,strokeLinecap:nt,stroke:Dt,strokeWidth:St||st,fillOpacity:"0"}),Ft.map(function(Ii,Gi){var Qe={strokeDasharray:"".concat(Ii,"px, 100px"),strokeDashoffset:"-".concat(yi,"px"),transition:jt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=wr[Gi]||wr[wr.length-1];return yi+=Ii,a.a.createElement("path",{key:Gi,className:"".concat(mn,"-line-path"),d:Un,strokeLinecap:nt,stroke:be,strokeWidth:st,fillOpacity:"0",ref:$r[Gi],style:Qe})}))};J.defaultProps=et;var je=J;function Re(){return Re=Object.assign||function(dt){for(var _t=1;_t<arguments.length;_t++){var vr=arguments[_t];for(var kr in vr)Object.prototype.hasOwnProperty.call(vr,kr)&&(dt[kr]=vr[kr])}return dt},Re.apply(this,arguments)}function oe(dt,_t){return cr(dt)||$t(dt,_t)||zt(dt,_t)||yt()}function yt(){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 zt(dt,_t){if(!dt)return;if(typeof dt=="string")return lt(dt,_t);var vr=Object.prototype.toString.call(dt).slice(8,-1);if(vr==="Object"&&dt.constructor&&(vr=dt.constructor.name),vr==="Map"||vr==="Set")return Array.from(dt);if(vr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(vr))return lt(dt,_t)}function lt(dt,_t){(_t==null||_t>dt.length)&&(_t=dt.length);for(var vr=0,kr=new Array(_t);vr<_t;vr++)kr[vr]=dt[vr];return kr}function $t(dt,_t){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(dt)))return;var vr=[],kr=!0,mn=!1,Mt=void 0;try{for(var nt=dt[Symbol.iterator](),st;!(kr=(st=nt.next()).done)&&!(vr.push(st.value),_t&&vr.length===_t);kr=!0);}catch(Xt){mn=!0,Mt=Xt}finally{try{!kr&&nt.return!=null&&nt.return()}finally{if(mn)throw Mt}}return vr}function cr(dt){if(Array.isArray(dt))return dt}function cn(dt,_t){if(dt==null)return{};var vr=pr(dt,_t),kr,mn;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(dt);for(mn=0;mn<Mt.length;mn++){if(kr=Mt[mn],_t.indexOf(kr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(dt,kr))continue;vr[kr]=dt[kr]}}return vr}function pr(dt,_t){if(dt==null)return{};var vr={},kr=Object.keys(dt),mn,Mt;for(Mt=0;Mt<kr.length;Mt++){if(mn=kr[Mt],_t.indexOf(mn)>=0)continue;vr[mn]=dt[mn]}return vr}var gr=0;function Zt(dt){return+dt.replace("%","")}function Vt(dt){return Array.isArray(dt)?dt:[dt]}function mt(dt,_t,vr,kr){var mn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Mt=arguments.length>5?arguments[5]:void 0,nt=50-kr/2,st=0,Xt=-nt,Dt=0,St=-2*nt;switch(Mt){case"left":st=-nt,Xt=0,Dt=2*nt,St=0;break;case"right":st=nt,Xt=0,Dt=-2*nt,St=0;break;case"bottom":Xt=nt,St=2*nt;break;default:}var jt="M 50,50 m ".concat(st,",").concat(Xt,`
a `).concat(nt,",").concat(nt," 0 1 1 ").concat(Dt,",").concat(-St,`
a `).concat(nt,",").concat(nt," 0 1 1 ").concat(-Dt,",").concat(St),At=Math.PI*2*nt,Ft={stroke:vr,strokeDasharray:"".concat(_t/100*(At-mn),"px ").concat(At,"px"),strokeDashoffset:"-".concat(mn/2+dt/100*(At-mn),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:jt,pathStyle:Ft}}var Yr=function(_t){var vr=_t.prefixCls,kr=_t.strokeWidth,mn=_t.trailWidth,Mt=_t.gapDegree,nt=_t.gapPosition,st=_t.trailColor,Xt=_t.strokeLinecap,Dt=_t.style,St=_t.className,jt=_t.strokeColor,At=_t.percent,Ft=cn(_t,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),wr=Object(t.useMemo)(function(){return gr+=1,gr},[]),sr=mt(0,100,st,kr,Mt,nt),mr=sr.pathString,$r=sr.pathStyle,rn=Vt(At),jn=Vt(jt),Un=jn.find(function(Qe){return Object.prototype.toString.call(Qe)==="[object Object]"}),ui=Ie(rn),yi=oe(ui,1),Ii=yi[0],Gi=function(){var be=0;return rn.map(function(Ne,Ue){var Xe=jn[Ue]||jn[jn.length-1],ze=Object.prototype.toString.call(Xe)==="[object Object]"?"url(#".concat(vr,"-gradient-").concat(wr,")"):"",Ze=mt(be,Ne,Xe,kr,Mt,nt);return be+=Ne,a.a.createElement("path",{key:Ue,className:"".concat(vr,"-circle-path"),d:Ze.pathString,stroke:ze,strokeLinecap:Xt,strokeWidth:kr,opacity:Ne===0?0:1,fillOpacity:"0",style:Ze.pathStyle,ref:Ii[Ue]})})};return a.a.createElement("svg",Re({className:u()("".concat(vr,"-circle"),St),viewBox:"0 0 100 100",style:Dt},Ft),Un&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(vr,"-gradient-").concat(wr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Un).sort(function(Qe,be){return Zt(Qe)-Zt(be)}).map(function(Qe,be){return a.a.createElement("stop",{key:be,offset:Qe,stopColor:Un[Qe]})}))),a.a.createElement("path",{className:"".concat(vr,"-circle-trail"),d:mr,stroke:st,strokeLinecap:Xt,strokeWidth:mn||kr,fillOpacity:"0",style:$r}),Gi().reverse())};Yr.defaultProps=et;var Tn=Yr,Hn={Line:je,Circle:Tn};function ei(dt){var _t=dt.percent,vr=dt.success,kr=dt.successPercent,mn=Pe(_t),Mt=Oe({success:vr,successPercent:kr});return Mt?[Pe(Mt),Pe(mn-Pe(Mt))]:mn}function ji(dt){var _t=dt.success,vr=dt.strokeColor,kr=dt.successPercent,mn=vr||null,Mt=Oe({success:_t,successPercent:kr});return Mt?[ie.green,mn]:mn}var Ln=function(_t){var vr=_t.prefixCls,kr=_t.width,mn=_t.strokeWidth,Mt=_t.trailColor,nt=_t.strokeLinecap,st=_t.gapPosition,Xt=_t.gapDegree,Dt=_t.type,St=_t.children,jt=kr||120,At={width:jt,height:jt,fontSize:jt*.15+6},Ft=mn||6,wr=st||Dt==="dashboard"&&"bottom"||"top",sr=function(){return Xt||Xt===0?Xt:Dt==="dashboard"?75:void 0},mr=ji(_t),$r=Object.prototype.toString.call(mr)==="[object Object]",rn=u()("".concat(vr,"-inner"),E()({},"".concat(vr,"-circle-gradient"),$r));return t.createElement("div",{className:rn,style:At},t.createElement(Tn,{percent:ei(_t),strokeWidth:Ft,trailWidth:Ft,strokeColor:mr,strokeLinecap:nt,trailColor:Mt,prefixCls:vr,gapDegree:sr(),gapPosition:wr}),St)},Vn=Ln,kt=function(_t){for(var vr=_t.size,kr=_t.steps,mn=_t.percent,Mt=mn===void 0?0:mn,nt=_t.strokeWidth,st=nt===void 0?8:nt,Xt=_t.strokeColor,Dt=_t.trailColor,St=_t.prefixCls,jt=_t.children,At=Math.floor(kr*(Mt/100)),Ft=vr==="small"?2:14,wr=[],sr=0;sr<kr;sr+=1)wr.push(t.createElement("div",{key:sr,className:u()("".concat(St,"-steps-item"),E()({},"".concat(St,"-steps-item-active"),sr<=At-1)),style:{backgroundColor:sr<=At-1?Xt:Dt,width:Ft,height:st}}));return t.createElement("div",{className:"".concat(St,"-steps-outer")},wr,jt)},wt=kt,Te=function(dt,_t){var vr={};for(var kr in dt)Object.prototype.hasOwnProperty.call(dt,kr)&&_t.indexOf(kr)<0&&(vr[kr]=dt[kr]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,kr=Object.getOwnPropertySymbols(dt);mn<kr.length;mn++)_t.indexOf(kr[mn])<0&&Object.prototype.propertyIsEnumerable.call(dt,kr[mn])&&(vr[kr[mn]]=dt[kr[mn]]);return vr},xe=Object(I.a)("line","circle","dashboard"),Ce=Object(I.a)("normal","exception","active","success"),Ye=function(dt){n()(vr,dt);var _t=s()(vr);function vr(){var kr;return m()(this,vr),kr=_t.apply(this,arguments),kr.renderProgress=function(mn){var Mt,nt=mn.getPrefixCls,st=mn.direction,Xt=r()(kr),Dt=Xt.props,St=Dt.prefixCls,jt=Dt.className,At=Dt.size,Ft=Dt.type,wr=Dt.steps,sr=Dt.showInfo,mr=Dt.strokeColor,$r=Te(Dt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),rn=nt("progress",St),jn=kr.getProgressStatus(),Un=kr.renderProcessInfo(rn,jn);Object(L.a)(!("successPercent"in Dt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var ui;Ft==="line"?ui=wr?t.createElement(wt,v()({},kr.props,{strokeColor:typeof mr=="string"?mr:void 0,prefixCls:rn,steps:wr}),Un):t.createElement(gt,v()({},kr.props,{prefixCls:rn}),Un):(Ft==="circle"||Ft==="dashboard")&&(ui=t.createElement(Vn,v()({},kr.props,{prefixCls:rn,progressStatus:jn}),Un));var yi=u()(rn,(Mt={},E()(Mt,"".concat(rn,"-").concat(Ft==="dashboard"&&"circle"||wr&&"steps"||Ft),!0),E()(Mt,"".concat(rn,"-status-").concat(jn),!0),E()(Mt,"".concat(rn,"-show-info"),sr),E()(Mt,"".concat(rn,"-").concat(At),At),E()(Mt,"".concat(rn,"-rtl"),st==="rtl"),Mt),jt);return t.createElement("div",v()({},Object(f.default)($r,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:yi}),ui)},kr}return c()(vr,[{key:"getPercentNumber",value:function(){var mn=this.props.percent,Mt=mn===void 0?0:mn,nt=Oe(this.props);return parseInt(nt!==void 0?nt.toString():Mt.toString(),10)}},{key:"getProgressStatus",value:function(){var mn=this.props.status;return Ce.indexOf(mn)<0&&this.getPercentNumber()>=100?"success":mn||"normal"}},{key:"renderProcessInfo",value:function(mn,Mt){var nt=this.props,st=nt.showInfo,Xt=nt.format,Dt=nt.type,St=nt.percent,jt=Oe(this.props);if(!st)return null;var At,Ft=Xt||function(sr){return"".concat(sr,"%")},wr=Dt==="line";return Xt||Mt!=="exception"&&Mt!=="success"?At=Ft(Pe(St),Pe(jt)):Mt==="exception"?At=wr?t.createElement(b.a,null):t.createElement(g.a,null):Mt==="success"&&(At=wr?t.createElement(T.a,null):t.createElement(y.a,null)),t.createElement("span",{className:"".concat(mn,"-text"),title:typeof At=="string"?At:void 0},At)}},{key:"render",value:function(){return t.createElement(_.a,null,this.renderProgress)}}]),vr}(t.Component);Ye.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var it=P.a=Ye},"CMP+":function(j,P,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,h,c){E.call(this,w,m,h),this.type=c||"value",this.model=null};C.prototype={constructor:C,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},O.inherits(C,E);var v=C;j.exports=v},CP8R:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},"CWI+":function(j,P,d){},CbHG:function(j,P,d){var O=d("IwbS"),E=O.subPixelOptimize,C=d("zM3Q"),v=d("OELB"),w=v.parsePercent,m=d("bYtY"),h=m.retrieve2,c=typeof Float32Array!="undefined"?Float32Array:Array,i={seriesType:"candlestick",plan:C(),reset:function(n){var e=n.coordinateSystem,s=n.getData(),t=o(n,s),a=0,l=1,u=["x","y"],f=s.mapDimension(u[a]),p=s.mapDimension(u[l],!0),g=p[0],A=p[1],y=p[2],x=p[3];if(s.setLayout({candleWidth:t,isSimpleBox:t<=1.3}),f==null||p.length<4)return;return{progress:n.pipelineContext.large?S:T};function T(b,_){for(var I;(I=b.next())!=null;){var L=_.get(f,I),D=_.get(g,I),N=_.get(A,I),M=_.get(y,I),B=_.get(x,I),R=Math.min(D,N),H=Math.max(D,N),F=Y(R,L),K=Y(H,L),U=Y(M,L),V=Y(B,L),z=[];q(z,K,0),q(z,F,1),z.push(ie(V),ie(K),ie(U),ie(F)),_.setItemLayout(I,{sign:r(_,I,D,N,A),initBaseline:D>N?K[l]:F[l],ends:z,brushRect:ce(M,B,L)})}function Y(ve,Ee){var Le=[];return Le[a]=Ee,Le[l]=ve,isNaN(Ee)||isNaN(ve)?[NaN,NaN]:e.dataToPoint(Le)}function q(ve,Ee,Le){var He=Ee.slice(),ge=Ee.slice();He[a]=E(He[a]+t/2,1,!1),ge[a]=E(ge[a]-t/2,1,!0),Le?ve.push(He,ge):ve.push(ge,He)}function ce(ve,Ee,Le){var He=Y(ve,Le),ge=Y(Ee,Le);return He[a]-=t/2,ge[a]-=t/2,{x:He[0],y:He[1],width:l?t:ge[0]-He[0],height:l?ge[1]-He[1]:t}}function ie(ve){return ve[a]=E(ve[a],1),ve}}function S(b,_){for(var I=new c(b.count*4),L=0,D,N=[],M=[],B;(B=b.next())!=null;){var R=_.get(f,B),H=_.get(g,B),F=_.get(A,B),K=_.get(y,B),U=_.get(x,B);if(isNaN(R)||isNaN(K)||isNaN(U)){I[L++]=NaN,L+=3;continue}I[L++]=r(_,B,H,F,A),N[a]=R,N[l]=K,D=e.dataToPoint(N,null,M),I[L++]=D?D[0]:NaN,I[L++]=D?D[1]:NaN,N[l]=U,D=e.dataToPoint(N,null,M),I[L++]=D?D[1]:NaN}_.setLayout("largePoints",I)}}};function r(n,e,s,t,a){var l;return s>t?l=-1:s<t?l=1:l=e>0?n.get(a,e-1)<=t?1:-1:1,l}function o(n,e){var s=n.getBaseAxis(),t,a=s.type==="category"?s.getBandWidth():(t=s.getExtent(),Math.abs(t[1]-t[0])/e.count()),l=w(h(n.get("barMaxWidth"),a),a),u=w(h(n.get("barMinWidth"),1),a),f=n.get("barWidth");return f!=null?w(f,a):Math.max(Math.min(a/2,l),u)}j.exports=i},CiB2:function(j,P,d){"use strict";d.d(P,"a",function(){return O});function O(E){if(E==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(j,P,d){d("5NHt"),d("f3JH")},CrYA:function(j,P,d){var O=d("MFOe"),E=O.Global;j.exports={name:"sessionStorage",read:v,write:w,each:m,remove:h,clearAll:c};function C(){return E.sessionStorage}function v(i){return C().getItem(i)}function w(i,r){return C().setItem(i,r)}function m(i){for(var r=C().length-1;r>=0;r--){var o=C().key(r);i(v(o),o)}}function h(i){return C().removeItem(i)}function c(){return C().clear()}},Csr3:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("4vCz"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},D1WM:function(j,P,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,h,c,i){E.call(this,w,m,h),this.type=c||"value",this.axisIndex=i};C.prototype={constructor:C,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},O.inherits(C,E);var v=C;j.exports=v},D5nY:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("4NO4"),v=C.makeInner,w=C.getDataItemValue,m=d("bYtY"),h=m.createHashMap,c=m.each,i=m.map,r=m.isArray,o=m.isString,n=m.isObject,e=m.isTypedArray,s=m.isArrayLike,t=m.extend,a=m.assert,l=d("7G+c"),u=d("k9D9"),f=u.SOURCE_FORMAT_ORIGINAL,p=u.SOURCE_FORMAT_ARRAY_ROWS,g=u.SOURCE_FORMAT_OBJECT_ROWS,A=u.SOURCE_FORMAT_KEYED_COLUMNS,y=u.SOURCE_FORMAT_UNKNOWN,x=u.SOURCE_FORMAT_TYPED_ARRAY,T=u.SERIES_LAYOUT_BY_ROW,S={Must:1,Might:2,Not:3},b=v();function _(z){var Y=z.option.source,q=y;if(e(Y))q=x;else if(r(Y)){Y.length===0&&(q=p);for(var ce=0,ie=Y.length;ce<ie;ce++){var ve=Y[ce];if(ve==null)continue;if(r(ve)){q=p;break}else if(n(ve)){q=g;break}}}else if(n(Y)){for(var Ee in Y)if(Y.hasOwnProperty(Ee)&&s(Y[Ee])){q=A;break}}else if(Y!=null)throw new Error("Invalid data");b(z).sourceFormat=q}function I(z){return b(z).source}function L(z){b(z).datasetMap=h()}function D(z){var Y=z.option,q=Y.data,ce=e(q)?x:f,ie=!1,ve=Y.seriesLayoutBy,Ee=Y.sourceHeader,Le=Y.dimensions,He=K(z);if(He){var ge=He.option;q=ge.source,ce=b(He).sourceFormat,ie=!0,ve=ve||ge.seriesLayoutBy,Ee==null&&(Ee=ge.sourceHeader),Le=Le||ge.dimensions}var Fe=N(q,ce,ve,Ee,Le);b(z).source=new l({data:q,fromDataset:ie,seriesLayoutBy:ve,sourceFormat:ce,dimensionsDefine:Fe.dimensionsDefine,startIndex:Fe.startIndex,dimensionsDetectCount:Fe.dimensionsDetectCount,encodeDefine:Y.encode})}function N(z,Y,q,ce,ie){if(!z)return{dimensionsDefine:M(ie)};var ve,Ee;if(Y===p)ce==="auto"||ce==null?B(function(He){He!=null&&He!=="-"&&(o(He)?Ee==null&&(Ee=1):Ee=0)},q,z,10):Ee=ce?1:0,!ie&&Ee===1&&(ie=[],B(function(He,ge){ie[ge]=He!=null?He:""},q,z)),ve=ie?ie.length:q===T?z.length:z[0]?z[0].length:null;else if(Y===g)ie||(ie=R(z));else if(Y===A)ie||(ie=[],c(z,function(He,ge){ie.push(ge)}));else if(Y===f){var Le=w(z[0]);ve=r(Le)&&Le.length||1}else Y===x;return{startIndex:Ee,dimensionsDefine:M(ie),dimensionsDetectCount:ve}}function M(z){if(!z)return;var Y=h();return i(z,function(q,ce){if(q=t({},n(q)?q:{name:q}),q.name==null)return q;q.name+="",q.displayName==null&&(q.displayName=q.name);var ie=Y.get(q.name);return ie?q.name+="-"+ie.count++:Y.set(q.name,{count:1}),q})}function B(z,Y,q,ce){if(ce==null&&(ce=Infinity),Y===T)for(var ie=0;ie<q.length&&ie<ce;ie++)z(q[ie]?q[ie][0]:null,ie);else for(var ve=q[0]||[],ie=0;ie<ve.length&&ie<ce;ie++)z(ve[ie],ie)}function R(z){for(var Y=0,q;Y<z.length&&!(q=z[Y++]););if(q){var ce=[];return c(q,function(ie,ve){ce.push(ve)}),ce}}function H(z,Y,q){var ce={},ie=K(Y);if(!ie||!z)return ce;var ve=[],Ee=[],Le=Y.ecModel,He=b(Le).datasetMap,ge=ie.uid+"_"+q.seriesLayoutBy,Fe,Q;z=z.slice(),c(z,function(X,G){!n(X)&&(z[G]={name:X}),X.type==="ordinal"&&Fe==null&&(Fe=G,Q=ne(z[G])),ce[X.name]=[]});var fe=He.get(ge)||He.set(ge,{categoryWayDim:Q,valueWayDim:0});c(z,function(X,G){var te=X.name,we=ne(X);if(Fe==null){var he=fe.valueWayDim;Je(ce[te],he,we),Je(Ee,he,we),fe.valueWayDim+=we}else if(Fe===G)Je(ce[te],0,we),Je(ve,0,we);else{var he=fe.categoryWayDim;Je(ce[te],he,we),Je(Ee,he,we),fe.categoryWayDim+=we}});function Je(X,G,te){for(var we=0;we<te;we++)X.push(G+we)}function ne(X){var G=X.dimsDef;return G?G.length:1}return ve.length&&(ce.itemName=ve),Ee.length&&(ce.seriesName=Ee),ce}function F(z,Y,q){var ce={},ie=K(z);if(!ie)return ce;var ve=Y.sourceFormat,Ee=Y.dimensionsDefine,Le;(ve===g||ve===A)&&c(Ee,function(Fe,Q){(n(Fe)?Fe.name:Fe)==="name"&&(Le=Q)});var He=function(){for(var Fe={},Q={},fe=[],Je=0,ne=Math.min(5,q);Je<ne;Je++){var X=V(Y.data,ve,Y.seriesLayoutBy,Ee,Y.startIndex,Je);fe.push(X);var G=X===S.Not;if(G&&Fe.v==null&&Je!==Le&&(Fe.v=Je),(Fe.n==null||Fe.n===Fe.v||!G&&fe[Fe.n]===S.Not)&&(Fe.n=Je),te(Fe)&&fe[Fe.n]!==S.Not)return Fe;G||(X===S.Might&&Q.v==null&&Je!==Le&&(Q.v=Je),(Q.n==null||Q.n===Q.v)&&(Q.n=Je))}function te(we){return we.v!=null&&we.n!=null}return te(Fe)?Fe:te(Q)?Q:null}();if(He){ce.value=He.v;var ge=Le!=null?Le:He.n;ce.itemName=[ge],ce.seriesName=[ge]}return ce}function K(z){var Y=z.option,q=Y.data;if(!q)return z.ecModel.getComponent("dataset",Y.datasetIndex||0)}function U(z,Y){return V(z.data,z.sourceFormat,z.seriesLayoutBy,z.dimensionsDefine,z.startIndex,Y)}function V(z,Y,q,ce,ie,ve){var Ee,Le=5;if(e(z))return S.Not;var He,ge;if(ce){var Fe=ce[ve];n(Fe)?(He=Fe.name,ge=Fe.type):o(Fe)&&(He=Fe)}if(ge!=null)return ge==="ordinal"?S.Must:S.Not;if(Y===p)if(q===T){for(var Q=z[ve],fe=0;fe<(Q||[]).length&&fe<Le;fe++)if((Ee=G(Q[ie+fe]))!=null)return Ee}else for(var fe=0;fe<z.length&&fe<Le;fe++){var Je=z[ie+fe];if(Je&&(Ee=G(Je[ve]))!=null)return Ee}else if(Y===g){if(!He)return S.Not;for(var fe=0;fe<z.length&&fe<Le;fe++){var ne=z[fe];if(ne&&(Ee=G(ne[He]))!=null)return Ee}}else if(Y===A){if(!He)return S.Not;var Q=z[He];if(!Q||e(Q))return S.Not;for(var fe=0;fe<Q.length&&fe<Le;fe++)if((Ee=G(Q[fe]))!=null)return Ee}else if(Y===f)for(var fe=0;fe<z.length&&fe<Le;fe++){var ne=z[fe],X=w(ne);if(!r(X))return S.Not;if((Ee=G(X[ve]))!=null)return Ee}function G(te){var we=o(te);if(te!=null&&isFinite(te)&&te!=="")return we?S.Might:S.Not;if(we&&te!=="-")return S.Must}return S.Not}P.BE_ORDINAL=S,P.detectSourceFormat=_,P.getSource=I,P.resetSourceDefaulter=L,P.prepareSource=D,P.makeSeriesEncodeForAxisCoordSys=H,P.makeSeriesEncodeForNameBased=F,P.guessOrdinal=U},D9ME:function(j,P,d){var O=d("IwbS"),E=d("fls0"),C=d("bYtY"),v=d("oVpE"),w=v.createSymbol,m=d("QBsz"),h=d("Sj9i");function c(o,n,e){O.Group.call(this),this.add(this.createLine(o,n,e)),this._updateEffectSymbol(o,n)}var i=c.prototype;i.createLine=function(o,n,e){return new E(o,n,e)},i._updateEffectSymbol=function(o,n){var e=o.getItemModel(n),s=e.getModel("effect"),t=s.get("symbolSize"),a=s.get("symbol");C.isArray(t)||(t=[t,t]);var l=s.get("color")||o.getItemVisual(n,"color"),u=this.childAt(1);if(this._symbolType!==a&&(this.remove(u),u=w(a,-.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",t),u.setColor(l),u.attr("scale",t),this._symbolType=a,this._symbolScale=t,this._updateEffectAnimation(o,s,n)},i._updateEffectAnimation=function(o,n,e){var s=this.childAt(1);if(!s)return;var t=this,a=o.getItemLayout(e),l=n.get("period")*1e3,u=n.get("loop"),f=n.get("constantSpeed"),p=C.retrieve(n.get("delay"),function(x){return x/o.count()*l/3}),g=typeof p=="function";if(s.ignore=!0,this.updateAnimationPoints(s,a),f>0&&(l=this.getLineLength(s)/f*1e3),l!==this._period||u!==this._loop){s.stopAnimation();var A=p;g&&(A=p(e)),s.__t>0&&(A=-l*s.__t),s.__t=0;var y=s.animate("",u).when(l,{__t:1}).delay(A).during(function(){t.updateSymbolPosition(s)});u||y.done(function(){t.remove(s)}),y.start()}this._period=l,this._loop=u},i.getLineLength=function(o){return m.dist(o.__p1,o.__cp1)+m.dist(o.__cp1,o.__p2)},i.updateAnimationPoints=function(o,n){o.__p1=n[0],o.__p2=n[1],o.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},i.updateData=function(o,n,e){this.childAt(0).updateData(o,n,e),this._updateEffectSymbol(o,n)},i.updateSymbolPosition=function(o){var n=o.__p1,e=o.__p2,s=o.__cp1,t=o.__t,a=o.position,l=[a[0],a[1]],u=h.quadraticAt,f=h.quadraticDerivativeAt;a[0]=u(n[0],s[0],e[0],t),a[1]=u(n[1],s[1],e[1],t);var p=f(n[0],s[0],e[0],t),g=f(n[1],s[1],e[1],t);if(o.rotation=-Math.atan2(g,p)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(o.__lastT!==void 0&&o.__lastT<o.__t){var A=m.dist(l,a)*1.05;o.attr("scale",[o.scale[0],A]),t===1&&(a[0]=l[0]+(a[0]-l[0])/2,a[1]=l[1]+(a[1]-l[1])/2)}else if(o.__lastT===1){var A=2*m.dist(n,a);o.attr("scale",[o.scale[0],A])}else o.attr("scale",this._symbolScale);o.__lastT=o.__t,o.ignore=!1},i.updateLayout=function(o,n){this.childAt(0).updateLayout(o,n);var e=o.getItemModel(n).getModel("effect");this._updateEffectAnimation(o,e,n)},C.inherits(c,O.Group);var r=c;j.exports=r},DBLp:function(j,P){function d(){}d.prototype={diff:function(m,h,c){c||(c=function(g,A){return g===A}),this.equals=c;var i=this;m=m.slice(),h=h.slice();var r=h.length,o=m.length,n=1,e=r+o,s=[{newPos:-1,components:[]}],t=this.extractCommon(s[0],h,m,0);if(s[0].newPos+1>=r&&t+1>=o){for(var a=[],l=0;l<h.length;l++)a.push(l);return[{indices:a,count:h.length}]}function u(){for(var p=-1*n;p<=n;p+=2){var g,A=s[p-1],y=s[p+1],x=(y?y.newPos:0)-p;A&&(s[p-1]=void 0);var T=A&&A.newPos+1<r,S=y&&0<=x&&x<o;if(!T&&!S){s[p]=void 0;continue}if(!T||S&&A.newPos<y.newPos?(g=E(y),i.pushComponent(g.components,void 0,!0)):(g=A,g.newPos++,i.pushComponent(g.components,!0,void 0)),x=i.extractCommon(g,h,m,p),g.newPos+1>=r&&x+1>=o)return O(i,g.components,h,m);s[p]=g}n++}for(;n<=e;){var f=u();if(f)return f}},pushComponent:function(m,h,c){var i=m[m.length-1];i&&i.added===h&&i.removed===c?m[m.length-1]={count:i.count+1,added:h,removed:c}:m.push({count:1,added:h,removed:c})},extractCommon:function(m,h,c,i){for(var r=h.length,o=c.length,n=m.newPos,e=n-i,s=0;n+1<r&&e+1<o&&this.equals(h[n+1],c[e+1]);)n++,e++,s++;return s&&m.components.push({count:s}),m.newPos=n,e},tokenize:function(m){return m.slice()},join:function(m){return m.slice()}};function O(w,m,h,c){for(var i=0,r=m.length,o=0,n=0;i<r;i++){var e=m[i];if(e.removed){for(var s=[],t=n;t<n+e.count;t++)s.push(t);e.indices=s,n+=e.count}else{for(var s=[],t=o;t<o+e.count;t++)s.push(t);e.indices=s,o+=e.count,e.added||(n+=e.count)}}return m}function E(w){return{newPos:w.newPos,components:w.components.slice(0)}}var C=new d;function v(w,m,h){return C.diff(w,m,h)}j.exports=v},DEFe:function(j,P,d){var O=d("bYtY"),E=d("SgGq"),C=d("Ae+d"),v=d("xSat"),w=v.onIrrelevantElement,m=d("IwbS"),h=d("W4dC"),c=d("iRjW"),i=c.getUID,r=d("DN4a");function o(a){var l=a.getItemStyle(),u=a.get("areaColor");return u!=null&&(l.fill=u),l}function n(a,l,u,f,p){u.off("click"),u.off("mousedown"),l.get("selectedMode")&&(u.on("mousedown",function(){a._mouseDownFlag=!0}),u.on("click",function(g){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1;for(var A=g.target;!A.__regions;)A=A.parent;if(!A)return;var y={type:(l.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:O.map(A.__regions,function(x){return{name:x.name,from:p.uid}})};y[l.mainType+"Id"]=l.id,f.dispatchAction(y),e(l,u)}))}function e(a,l){l.eachChild(function(u){O.each(u.__regions,function(f){u.trigger(a.isSelected(f.name)?"emphasis":"normal")})})}function s(a,l){var u=new m.Group;this.uid=i("ec_map_draw"),this._controller=new E(a.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(a,l,u,f,p){var g=a.mainType==="geo",A=a.getData&&a.getData();g&&l.eachComponent({mainType:"series",subType:"map"},function(K){!A&&K.getHostGeoModel()===a&&(A=K.getData())});var y=a.coordinateSystem;this._updateBackground(y);var x=this._regionsGroup,T=this.group,S=y.getTransformInfo(),b=!x.childAt(0)||p,_;if(b)T.transform=S.roamTransform,T.decomposeTransform(),T.dirty();else{var I=new r;I.transform=S.roamTransform,I.decomposeTransform();var L={scale:I.scale,position:I.position};_=I.scale,m.updateProps(T,L,a)}var D=S.rawScale,N=S.rawPosition;x.removeAll();var M=["itemStyle"],B=["emphasis","itemStyle"],R=["label"],H=["emphasis","label"],F=O.createHashMap();O.each(y.regions,function(K){var U=F.get(K.name)||F.set(K.name,new m.Group),V=new m.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});U.add(V);var z=a.getRegionModel(K.name)||a,Y=z.getModel(M),q=z.getModel(B),ce=o(Y),ie=o(q),ve=z.getModel(R),Ee=z.getModel(H),Le;if(A){Le=A.indexOfName(K.name);var He=A.getItemVisual(Le,"color",!0);He&&(ce.fill=He)}var ge=function(he){return[he[0]*D[0]+N[0],he[1]*D[1]+N[1]]};O.each(K.geometries,function(he){if(he.type!=="polygon")return;for(var Pe=[],Oe=0;Oe<he.exterior.length;++Oe)Pe.push(ge(he.exterior[Oe]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Pe}}));for(var Oe=0;Oe<(he.interiors?he.interiors.length:0);++Oe){for(var le=he.interiors[Oe],Pe=[],me=0;me<le.length;++me)Pe.push(ge(le[me]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Pe}}))}}),V.setStyle(ce),V.style.strokeNoScale=!0,V.culling=!0;var Fe=ve.get("show"),Q=Ee.get("show"),fe=A&&isNaN(A.get(A.mapDimension("value"),Le)),Je=A&&A.getItemLayout(Le);if(g||fe&&(Fe||Q)||Je&&Je.showLabel){var ne=g?K.name:Le,X;(!A||Le>=0)&&(X=a);var G=new m.Text({position:ge(K.center.slice()),scale:[1/T.scale[0],1/T.scale[1]],z2:10,silent:!0});if(m.setLabelStyle(G.style,G.hoverStyle={},ve,Ee,{labelFetcher:X,labelDataIndex:ne,defaultText:K.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!b){var te=[1/_[0],1/_[1]];m.updateProps(G,{scale:te},a)}U.add(G)}if(A)A.setItemGraphicEl(Le,U);else{var z=a.getRegionModel(K.name);V.eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:K.name,region:z&&z.option||{}}}var we=U.__regions||(U.__regions=[]);we.push(K),U.highDownSilentOnTouch=!!a.get("selectedMode"),m.setHoverStyle(U,ie),x.add(U)}),this._updateController(a,l,u),n(this,a,x,u,f),e(a,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(a){var l=a.map;this._mapName!==l&&O.each(h.makeGraphic(l,this.uid),function(u){this._backgroundGroup.add(u)},this),this._mapName=l},_updateController:function(a,l,u){var f=a.coordinateSystem,p=this._controller,g=this._controllerHost;g.zoomLimit=a.get("scaleLimit"),g.zoom=f.getZoom(),p.enable(a.get("roam")||!1);var A=a.mainType;function y(){var x={type:"geoRoam",componentType:A};return x[A+"Id"]=a.id,x}p.off("pan").on("pan",function(x){this._mouseDownFlag=!1,C.updateViewOnPan(g,x.dx,x.dy),u.dispatchAction(O.extend(y(),{dx:x.dx,dy:x.dy}))},this),p.off("zoom").on("zoom",function(x){if(this._mouseDownFlag=!1,C.updateViewOnZoom(g,x.scale,x.originX,x.originY),u.dispatchAction(O.extend(y(),{zoom:x.scale,originX:x.originX,originY:x.originY})),this._updateGroup){var T=this.group.scale;this._regionsGroup.traverse(function(S){S.type==="text"&&S.attr("scale",[1/T[0],1/T[1]])})}},this),p.setPointerChecker(function(x,T,S){return f.getViewRectAfterRoam().contain(T,S)&&!w(x,u,a)})}};var t=s;j.exports=t},DFOY:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("PJYZ"),r=d.n(i),o=d("7W2i"),n=d.n(o),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d.n(t),l=d("VTBJ"),u=d("1OyB"),f=d("vuIU"),p=d("JX7q"),g=d("Ji7U"),A=d("LK+K"),y=d("i8i4"),x=d.n(y),T=d("l4aY"),S=d("m+aA"),b=d("c+Xe"),_=d("zT1h"),I=d("QC+M"),L=d("TSYQ"),D=d.n(L);function N(Qr,On,zr){return zr?Qr[0]===On[0]:Qr[0]===On[0]&&Qr[1]===On[1]}function M(Qr,On,zr){var fr=Qr[On]||{};return Object(l.a)(Object(l.a)({},fr),zr)}function B(Qr,On,zr,fr){for(var Nr=zr.points,Qt=Object.keys(Qr),xr=0;xr<Qt.length;xr+=1){var Jr=Qt[xr];if(N(Qr[Jr].points,Nr,fr))return"".concat(On,"-placement-").concat(Jr)}return""}var R=d("Ff2n"),H=d("xEkU"),F=d.n(H),K=d("9mu1"),U=d("rePB"),V=d("U8pU"),z=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Y(Qr,On){var zr={};return zr[Qr.toLowerCase()]=On.toLowerCase(),zr["Webkit".concat(Qr)]="webkit".concat(On),zr["Moz".concat(Qr)]="moz".concat(On),zr["ms".concat(Qr)]="MS".concat(On),zr["O".concat(Qr)]="o".concat(On.toLowerCase()),zr}function q(Qr,On){var zr={animationend:Y("Animation","AnimationEnd"),transitionend:Y("Transition","TransitionEnd")};return Qr&&("AnimationEvent"in On||delete zr.animationend.animation,"TransitionEvent"in On||delete zr.transitionend.transition),zr}var ce=q(z,typeof window!="undefined"?window:{}),ie={};if(z){var ve=document.createElement("div");ie=ve.style}var Ee={};function Le(Qr){if(Ee[Qr])return Ee[Qr];var On=ce[Qr];if(On)for(var zr=Object.keys(On),fr=zr.length,Nr=0;Nr<fr;Nr+=1){var Qt=zr[Nr];if(Object.prototype.hasOwnProperty.call(On,Qt)&&Qt in ie)return Ee[Qr]=On[Qt],Ee[Qr]}return""}var He=Le("animationend"),ge=Le("transitionend"),Fe=!!(He&&ge);function Q(Qr,On){if(!Qr)return null;if(Object(V.a)(Qr)==="object"){var zr=On.replace(/-\w/g,function(fr){return fr[1].toUpperCase()});return Qr[zr]}return"".concat(Qr,"-").concat(On)}var fe="none",Je="appear",ne="enter",X="leave";function G(Qr){var On=Qr,zr=!!t.forwardRef;Object(V.a)(Qr)==="object"&&(On=Qr.transitionSupport,zr="forwardRef"in Qr?Qr.forwardRef:zr);function fr(Qt){return!!(Qt.motionName&&On)}var Nr=function(Qt){Object(g.a)(Jr,Qt);var xr=Object(A.a)(Jr);function Jr(){var Kr;return Object(u.a)(this,Jr),Kr=xr.apply(this,arguments),Kr.$cacheEle=null,Kr.node=null,Kr.raf=null,Kr.destroyed=!1,Kr.deadlineId=null,Kr.state={status:fe,statusActive:!1,newStatus:!1,statusStyle:null},Kr.onDomUpdate=function(){var en=Kr.state,ai=en.status,Yn=en.newStatus,Si=Kr.props,ln=Si.onAppearStart,Or=Si.onEnterStart,wn=Si.onLeaveStart,Xn=Si.onAppearActive,Zn=Si.onEnterActive,ii=Si.onLeaveActive,Ei=Si.motionAppear,ki=Si.motionEnter,Fi=Si.motionLeave;if(!fr(Kr.props))return;var ra=Kr.getElement();Kr.$cacheEle!==ra&&(Kr.removeEventListener(Kr.$cacheEle),Kr.addEventListener(ra),Kr.$cacheEle=ra),Yn&&ai===Je&&Ei?Kr.updateStatus(ln,null,null,function(){Kr.updateActiveStatus(Xn,Je)}):Yn&&ai===ne&&ki?Kr.updateStatus(Or,null,null,function(){Kr.updateActiveStatus(Zn,ne)}):Yn&&ai===X&&Fi&&Kr.updateStatus(wn,null,null,function(){Kr.updateActiveStatus(ii,X)})},Kr.onMotionEnd=function(en){if(en&&!en.deadline&&en.target!==Kr.getElement())return;var ai=Kr.state,Yn=ai.status,Si=ai.statusActive,ln=Kr.props,Or=ln.onAppearEnd,wn=ln.onEnterEnd,Xn=ln.onLeaveEnd;Yn===Je&&Si?Kr.updateStatus(Or,{status:fe},en):Yn===ne&&Si?Kr.updateStatus(wn,{status:fe},en):Yn===X&&Si&&Kr.updateStatus(Xn,{status:fe},en)},Kr.setNodeRef=function(en){var ai=Kr.props.internalRef;Kr.node=en,Object(b.b)(ai,en)},Kr.getElement=function(){try{return Object(S.a)(Kr.node||Object(p.a)(Kr))}catch(en){return Kr.$cacheEle}},Kr.addEventListener=function(en){if(!en)return;en.addEventListener(ge,Kr.onMotionEnd),en.addEventListener(He,Kr.onMotionEnd)},Kr.removeEventListener=function(en){if(!en)return;en.removeEventListener(ge,Kr.onMotionEnd),en.removeEventListener(He,Kr.onMotionEnd)},Kr.updateStatus=function(en,ai,Yn,Si){var ln=en?en(Kr.getElement(),Yn):null;if(ln===!1||Kr.destroyed)return;var Or;Si&&(Or=function(){Kr.nextFrame(Si)}),Kr.setState(Object(l.a)({statusStyle:Object(V.a)(ln)==="object"?ln:null,newStatus:!1},ai),Or)},Kr.updateActiveStatus=function(en,ai){Kr.nextFrame(function(){var Yn=Kr.state.status;if(Yn!==ai)return;var Si=Kr.props.motionDeadline;Kr.updateStatus(en,{statusActive:!0}),Si>0&&(Kr.deadlineId=setTimeout(function(){Kr.onMotionEnd({deadline:!0})},Si))})},Kr.nextFrame=function(en){Kr.cancelNextFrame(),Kr.raf=F()(en)},Kr.cancelNextFrame=function(){Kr.raf&&(F.a.cancel(Kr.raf),Kr.raf=null)},Kr}return Object(f.a)(Jr,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var en,ai=this.state,Yn=ai.status,Si=ai.statusActive,ln=ai.statusStyle,Or=this.props,wn=Or.children,Xn=Or.motionName,Zn=Or.visible,ii=Or.removeOnLeave,Ei=Or.leavedClassName,ki=Or.eventProps;return wn?Yn===fe||!fr(this.props)?Zn?wn(Object(l.a)({},ki),this.setNodeRef):ii?null:wn(Object(l.a)(Object(l.a)({},ki),{},{className:Ei}),this.setNodeRef):wn(Object(l.a)(Object(l.a)({},ki),{},{className:D()(Q(Xn,Yn),(en={},Object(U.a)(en,Q(Xn,"".concat(Yn,"-active")),Si),Object(U.a)(en,Xn,typeof Xn=="string"),en)),style:ln}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(en,ai){var Yn=ai.prevProps,Si=ai.status;if(!fr(en))return{};var ln=en.visible,Or=en.motionAppear,wn=en.motionEnter,Xn=en.motionLeave,Zn=en.motionLeaveImmediately,ii={prevProps:en};return(Si===Je&&!Or||Si===ne&&!wn||Si===X&&!Xn)&&(ii.status=fe,ii.statusActive=!1,ii.newStatus=!1),!Yn&&ln&&Or&&(ii.status=Je,ii.statusActive=!1,ii.newStatus=!0),Yn&&!Yn.visible&&ln&&wn&&(ii.status=ne,ii.statusActive=!1,ii.newStatus=!0),(Yn&&Yn.visible&&!ln&&Xn||!Yn&&Zn&&!ln&&Xn)&&(ii.status=X,ii.statusActive=!1,ii.newStatus=!0),ii}}]),Jr}(t.Component);return Nr.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},zr?t.forwardRef(function(Qt,xr){return t.createElement(Nr,Object.assign({internalRef:xr},Qt))}):Nr}var te=G(Fe),we="add",he="keep",Pe="remove",Oe="removed";function le(Qr){var On;return Qr&&Object(V.a)(Qr)==="object"&&"key"in Qr?On=Qr:On={key:Qr},Object(l.a)(Object(l.a)({},On),{},{key:String(On.key)})}function me(){var Qr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Qr.map(le)}function _e(){var Qr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],zr=[],fr=0,Nr=On.length,Qt=me(Qr),xr=me(On);Qt.forEach(function(en){for(var ai=!1,Yn=fr;Yn<Nr;Yn+=1){var Si=xr[Yn];if(Si.key===en.key){fr<Yn&&(zr=zr.concat(xr.slice(fr,Yn).map(function(ln){return Object(l.a)(Object(l.a)({},ln),{},{status:we})})),fr=Yn),zr.push(Object(l.a)(Object(l.a)({},Si),{},{status:he})),fr+=1,ai=!0;break}}ai||zr.push(Object(l.a)(Object(l.a)({},en),{},{status:Pe}))}),fr<Nr&&(zr=zr.concat(xr.slice(fr).map(function(en){return Object(l.a)(Object(l.a)({},en),{},{status:we})})));var Jr={};zr.forEach(function(en){var ai=en.key;Jr[ai]=(Jr[ai]||0)+1});var Kr=Object.keys(Jr).filter(function(en){return Jr[en]>1});return Kr.forEach(function(en){zr=zr.filter(function(ai){var Yn=ai.key,Si=ai.status;return Yn!==en||Si!==Pe}),zr.forEach(function(ai){ai.key===en&&(ai.status=he)})}),zr}var $e=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gt(Qr){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te,zr=function(fr){Object(g.a)(Qt,fr);var Nr=Object(A.a)(Qt);function Qt(){var xr;return Object(u.a)(this,Qt),xr=Nr.apply(this,arguments),xr.state={keyEntities:[]},xr.removeKey=function(Jr){xr.setState(function(Kr){var en=Kr.keyEntities;return{keyEntities:en.map(function(ai){return ai.key!==Jr?ai:Object(l.a)(Object(l.a)({},ai),{},{status:Oe})})}})},xr}return Object(f.a)(Qt,[{key:"render",value:function(){var Jr=this,Kr=this.state.keyEntities,en=this.props,ai=en.component,Yn=en.children,Si=Object(R.a)(en,["component","children"]),ln=ai||t.Fragment,Or={};return $e.forEach(function(wn){Or[wn]=Si[wn],delete Si[wn]}),delete Si.keys,t.createElement(ln,Object.assign({},Si),Kr.map(function(wn){var Xn=wn.status,Zn=Object(R.a)(wn,["status"]),ii=Xn===we||Xn===he;return t.createElement(On,Object.assign({},Or,{key:Zn.key,visible:ii,eventProps:Zn,onLeaveEnd:function(){Or.onLeaveEnd&&Or.onLeaveEnd.apply(Or,arguments),Jr.removeKey(Zn.key)}}),Yn)}))}}],[{key:"getDerivedStateFromProps",value:function(Jr,Kr){var en=Jr.keys,ai=Kr.keyEntities,Yn=me(en);if(!Qr)return{keyEntities:Yn.map(function(Or){return Object(l.a)(Object(l.a)({},Or),{},{status:he})})};var Si=_e(ai,Yn),ln=ai.length;return{keyEntities:Si.filter(function(Or){for(var wn=null,Xn=0;Xn<ln;Xn+=1){var Zn=ai[Xn];if(Zn.key===Or.key){wn=Zn;break}}return!(wn&&wn.status===Oe&&Or.status===Pe)})}}}]),Qt}(t.Component);return zr.defaultProps={component:"div"},zr}var et=gt(Fe),Ie=te,rt=function(On,zr){var fr=On.prefixCls,Nr=On.className,Qt=On.style,xr=On.children,Jr=On.onMouseEnter,Kr=On.onMouseLeave,en=On.onMouseDown,ai=On.onTouchStart,Yn=xr;return t.Children.count(xr)>1&&(Yn=t.createElement("div",{className:"".concat(fr,"-content")},xr)),t.createElement("div",{ref:zr,className:Nr,onMouseEnter:Jr,onMouseLeave:Kr,onMouseDown:en,onTouchStart:ai,style:Qt},Yn)},Ge=t.forwardRef(rt);Ge.displayName="PopupInner";var vt=Ge;function Ot(Qr){var On=Qr.prefixCls,zr=Qr.motion,fr=Qr.animation,Nr=Qr.transitionName;return zr||(fr?{motionName:"".concat(On,"-").concat(fr)}:Nr?{motionName:Nr}:null)}function Et(Qr){return Qr&&Qr.motionName}var Tt=function(Qr){Object(g.a)(zr,Qr);var On=Object(A.a)(zr);function zr(){var fr;return Object(u.a)(this,zr),fr=On.apply(this,arguments),fr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},fr.popupRef=a.a.createRef(),fr.alignRef=a.a.createRef(),fr.nextFrameState=null,fr.nextFrameId=null,fr.onAlign=function(Nr,Qt){var xr=fr.state.status,Jr=fr.props,Kr=Jr.getClassNameFromAlign,en=Jr.onAlign,ai=Kr(Qt);xr==="align"?fr.setState({alignClassName:ai,status:"aligned"},function(){fr.alignRef.current.forceAlign()}):xr==="aligned"?(fr.setState({alignClassName:ai,status:"afterAlign"}),en(Nr,Qt)):fr.setState({alignClassName:ai})},fr.onMotionEnd=function(){var Nr=fr.props.visible;fr.setState({status:Nr?"AfterMotion":"stable",inMotion:!1})},fr.setStateOnNextFrame=function(Nr){fr.cancelFrameState(),fr.nextFrameState=Object(l.a)(Object(l.a)({},fr.nextFrameState),Nr),fr.nextFrameId=F()(function(){var Qt=Object(l.a)({},fr.nextFrameState);fr.nextFrameState=null,fr.setState(Qt)})},fr.getMotion=function(){return Object(l.a)({},Ot(fr.props))},fr.getAlignTarget=function(){var Nr=fr.props,Qt=Nr.point,xr=Nr.getRootDomNode;return Qt||xr},fr.cancelFrameState=function(){F.a.cancel(fr.nextFrameId)},fr.renderPopupElement=function(){var Nr=fr.state,Qt=Nr.status,xr=Nr.targetHeight,Jr=Nr.targetWidth,Kr=Nr.alignClassName,en=fr.props,ai=en.prefixCls,Yn=en.className,Si=en.style,ln=en.stretch,Or=en.visible,wn=en.align,Xn=en.destroyPopupOnHide,Zn=en.onMouseEnter,ii=en.onMouseLeave,Ei=en.onMouseDown,ki=en.onTouchStart,Fi=en.children,ra=D()(ai,Yn,Kr),_a="".concat(ai,"-hidden"),wa={};ln&&(ln.indexOf("height")!==-1?wa.height=xr:ln.indexOf("minHeight")!==-1&&(wa.minHeight=xr),ln.indexOf("width")!==-1?wa.width=Jr:ln.indexOf("minWidth")!==-1&&(wa.minWidth=Jr));var _o=Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},wa),fr.getZIndexStyle()),Si),{},{opacity:Qt==="stable"||!Or?void 0:0,pointerEvents:Qt==="stable"||!Or?void 0:"none"}),bi=fr.getMotion(),xn=Or;Or&&Qt!=="beforeMotion"&&Qt!=="motion"&&Qt!=="stable"&&(bi.motionAppear=!1,bi.motionEnter=!1,bi.motionLeave=!1),(Qt==="afterAlign"||Qt==="beforeMotion")&&(xn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ta){var ma=bi==null?void 0:bi[ta];bi[ta]=function(){for(var Qi=arguments.length,Ya=new Array(Qi),Wa=0;Wa<Qi;Wa++)Ya[Wa]=arguments[Wa];ma==null||ma.apply(void 0,Ya),fr.setState({inMotion:!0})}});var Zi=!Or||Qt!=="align"&&Qt!=="aligned"&&Qt!=="stable",va=!0;return Qt==="stable"&&(va=Or),Xn&&!va?null:a.a.createElement(Ie,Object.assign({visible:xn},bi,{removeOnLeave:!1,onEnterEnd:fr.onMotionEnd,onLeaveEnd:fr.onMotionEnd,leavedClassName:_a}),function(ta,ma){var Qi=ta.style,Ya=ta.className;return a.a.createElement(K.a,{target:fr.getAlignTarget(),key:"popup",ref:fr.alignRef,monitorWindowResize:!0,disabled:Zi,align:wn,onAlign:fr.onAlign},a.a.createElement(vt,{prefixCls:ai,className:D()(ra,Ya),ref:Object(b.a)(ma,fr.popupRef),onMouseEnter:Zn,onMouseLeave:ii,onMouseDown:Ei,onTouchStart:ki,style:Object(l.a)(Object(l.a)({},_o),Qi)},Fi))})},fr.renderMaskElement=function(){var Nr=fr.props,Qt=Nr.mask,xr=Nr.maskMotion,Jr=Nr.maskTransitionName,Kr=Nr.maskAnimation,en=Nr.prefixCls,ai=Nr.visible;if(!Qt)return null;var Yn={};return xr&&xr.motionName&&(Yn=Object(l.a)({motionAppear:!0},Ot({motion:xr,prefixCls:en,transitionName:Jr,animation:Kr}))),a.a.createElement(Ie,Object.assign({},Yn,{visible:ai,removeOnLeave:!0}),function(Si){var ln=Si.className;return a.a.createElement("div",{style:fr.getZIndexStyle(),key:"mask",className:D()("".concat(en,"-mask"),ln)})})},fr}return Object(f.a)(zr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Nr=this.state.status,Qt=this.props,xr=Qt.getRootDomNode,Jr=Qt.visible,Kr=Qt.stretch;if(this.cancelFrameState(),Jr&&Nr!=="stable")switch(Nr){case null:{this.setStateOnNextFrame({status:Kr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Et(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var en=["measure","align",null,"beforeMotion","motion"],ai=en.indexOf(Nr),Yn=en[ai+1];ai!==-1&&Yn&&this.setStateOnNextFrame({status:Yn})}}if(Nr==="measure"){var Si=xr();Si&&this.setStateOnNextFrame({targetHeight:Si.offsetHeight,targetWidth:Si.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Nr=this.props.zIndex;return{zIndex:Nr}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Nr,Qt){var xr=Nr.visible,Jr=Object(R.a)(Nr,["visible"]),Kr=Qt.prevVisible,en=Qt.status,ai=Qt.inMotion,Yn={prevVisible:xr,status:en},Si=Ot(Jr);return Kr===null&&xr===!1?(Yn.status="stable",Yn.inMotion=!1):xr!==Kr&&(Yn.inMotion=!1,xr||Et(Si)&&ai?Yn.status=null:Yn.status="stable",xr&&(Yn.alignClassName=null)),Yn}}]),zr}(t.Component),Rt=Tt,Be=t.createContext(null),Z=Be;function J(){}function je(){return""}function Re(){return window.document}var oe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function yt(Qr){var On=function(zr){Object(g.a)(Nr,zr);var fr=Object(A.a)(Nr);function Nr(Qt){var xr;Object(u.a)(this,Nr),xr=fr.call(this,Qt),xr.popupRef=a.a.createRef(),xr.triggerRef=a.a.createRef(),xr.onMouseEnter=function(Kr){var en=xr.props.mouseEnterDelay;xr.fireEvents("onMouseEnter",Kr),xr.delaySetPopupVisible(!0,en,en?null:Kr)},xr.onMouseMove=function(Kr){xr.fireEvents("onMouseMove",Kr),xr.setPoint(Kr)},xr.onMouseLeave=function(Kr){xr.fireEvents("onMouseLeave",Kr),xr.delaySetPopupVisible(!1,xr.props.mouseLeaveDelay)},xr.onPopupMouseEnter=function(){xr.clearDelayTimer()},xr.onPopupMouseLeave=function(Kr){if(Kr.relatedTarget&&!Kr.relatedTarget.setTimeout&&xr.popupRef.current&&xr.popupRef.current.popupRef.current&&Object(T.a)(xr.popupRef.current.popupRef.current,Kr.relatedTarget))return;xr.delaySetPopupVisible(!1,xr.props.mouseLeaveDelay)},xr.onFocus=function(Kr){xr.fireEvents("onFocus",Kr),xr.clearDelayTimer(),xr.isFocusToShow()&&(xr.focusTime=Date.now(),xr.delaySetPopupVisible(!0,xr.props.focusDelay))},xr.onMouseDown=function(Kr){xr.fireEvents("onMouseDown",Kr),xr.preClickTime=Date.now()},xr.onTouchStart=function(Kr){xr.fireEvents("onTouchStart",Kr),xr.preTouchTime=Date.now()},xr.onBlur=function(Kr){xr.fireEvents("onBlur",Kr),xr.clearDelayTimer(),xr.isBlurToHide()&&xr.delaySetPopupVisible(!1,xr.props.blurDelay)},xr.onContextMenu=function(Kr){Kr.preventDefault(),xr.fireEvents("onContextMenu",Kr),xr.setPopupVisible(!0,Kr)},xr.onContextMenuClose=function(){xr.isContextMenuToShow()&&xr.close()},xr.onClick=function(Kr){if(xr.fireEvents("onClick",Kr),xr.focusTime){var en;if(xr.preClickTime&&xr.preTouchTime?en=Math.min(xr.preClickTime,xr.preTouchTime):xr.preClickTime?en=xr.preClickTime:xr.preTouchTime&&(en=xr.preTouchTime),Math.abs(en-xr.focusTime)<20)return;xr.focusTime=0}xr.preClickTime=0,xr.preTouchTime=0,xr.isClickToShow()&&(xr.isClickToHide()||xr.isBlurToHide())&&Kr&&Kr.preventDefault&&Kr.preventDefault();var ai=!xr.state.popupVisible;(xr.isClickToHide()&&!ai||ai&&xr.isClickToShow())&&xr.setPopupVisible(!xr.state.popupVisible,Kr)},xr.onPopupMouseDown=function(){if(xr.hasPopupMouseDown=!0,clearTimeout(xr.mouseDownTimeout),xr.mouseDownTimeout=window.setTimeout(function(){xr.hasPopupMouseDown=!1},0),xr.context){var Kr;(Kr=xr.context).onPopupMouseDown.apply(Kr,arguments)}},xr.onDocumentClick=function(Kr){if(xr.props.mask&&!xr.props.maskClosable)return;var en=Kr.target,ai=xr.getRootDomNode(),Yn=xr.getPopupDomNode();!Object(T.a)(ai,en)&&!Object(T.a)(Yn,en)&&!xr.hasPopupMouseDown&&xr.close()},xr.getRootDomNode=function(){var Kr=xr.props.getTriggerDOMNode;if(Kr)return Kr(xr.triggerRef.current);try{var en=Object(S.a)(xr.triggerRef.current);if(en)return en}catch(ai){}return x.a.findDOMNode(Object(p.a)(xr))},xr.getPopupClassNameFromAlign=function(Kr){var en=[],ai=xr.props,Yn=ai.popupPlacement,Si=ai.builtinPlacements,ln=ai.prefixCls,Or=ai.alignPoint,wn=ai.getPopupClassNameFromAlign;return Yn&&Si&&en.push(B(Si,ln,Kr,Or)),wn&&en.push(wn(Kr)),en.join(" ")},xr.getComponent=function(){var Kr=xr.props,en=Kr.prefixCls,ai=Kr.destroyPopupOnHide,Yn=Kr.popupClassName,Si=Kr.onPopupAlign,ln=Kr.popupMotion,Or=Kr.popupAnimation,wn=Kr.popupTransitionName,Xn=Kr.popupStyle,Zn=Kr.mask,ii=Kr.maskAnimation,Ei=Kr.maskTransitionName,ki=Kr.maskMotion,Fi=Kr.zIndex,ra=Kr.popup,_a=Kr.stretch,wa=Kr.alignPoint,_o=xr.state,bi=_o.popupVisible,xn=_o.point,Zi=xr.getPopupAlign(),va={};return xr.isMouseEnterToShow()&&(va.onMouseEnter=xr.onPopupMouseEnter),xr.isMouseLeaveToHide()&&(va.onMouseLeave=xr.onPopupMouseLeave),va.onMouseDown=xr.onPopupMouseDown,va.onTouchStart=xr.onPopupMouseDown,a.a.createElement(Rt,Object.assign({prefixCls:en,destroyPopupOnHide:ai,visible:bi,point:wa&&xn,className:Yn,align:Zi,onAlign:Si,animation:Or,getClassNameFromAlign:xr.getPopupClassNameFromAlign},va,{stretch:_a,getRootDomNode:xr.getRootDomNode,style:Xn,mask:Zn,zIndex:Fi,transitionName:wn,maskAnimation:ii,maskTransitionName:Ei,maskMotion:ki,ref:xr.popupRef,motion:ln}),typeof ra=="function"?ra():ra)},xr.getContainer=function(){var Kr=Object(p.a)(xr),en=Kr.props,ai=document.createElement("div");ai.style.position="absolute",ai.style.top="0",ai.style.left="0",ai.style.width="100%";var Yn=en.getPopupContainer?en.getPopupContainer(xr.getRootDomNode()):en.getDocument().body;return Yn.appendChild(ai),ai},xr.setPoint=function(Kr){var en=xr.props.alignPoint;if(!en||!Kr)return;xr.setState({point:{pageX:Kr.pageX,pageY:Kr.pageY}})},xr.handlePortalUpdate=function(){xr.state.prevPopupVisible!==xr.state.popupVisible&&xr.props.afterPopupVisibleChange(xr.state.popupVisible)};var Jr;return"popupVisible"in Qt?Jr=!!Qt.popupVisible:Jr=!!Qt.defaultPopupVisible,xr.state={prevPopupVisible:Jr,popupVisible:Jr},oe.forEach(function(Kr){xr["fire".concat(Kr)]=function(en){xr.fireEvents(Kr,en)}}),xr}return Object(f.a)(Nr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var xr=this.props,Jr=this.state;if(Jr.popupVisible){var Kr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Kr=xr.getDocument(),this.clickOutsideHandler=Object(_.a)(Kr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Kr=Kr||xr.getDocument(),this.touchOutsideHandler=Object(_.a)(Kr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Kr=Kr||xr.getDocument(),this.contextMenuOutsideHandler1=Object(_.a)(Kr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(_.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var xr=this.props,Jr=xr.popupPlacement,Kr=xr.popupAlign,en=xr.builtinPlacements;return Jr&&en?M(en,Jr,Kr):Kr}},{key:"setPopupVisible",value:function(xr,Jr){var Kr=this.props.alignPoint,en=this.state.popupVisible;this.clearDelayTimer(),en!==xr&&("popupVisible"in this.props||this.setState({popupVisible:xr,prevPopupVisible:en}),this.props.onPopupVisibleChange(xr)),Kr&&Jr&&this.setPoint(Jr)}},{key:"delaySetPopupVisible",value:function(xr,Jr,Kr){var en=this,ai=Jr*1e3;if(this.clearDelayTimer(),ai){var Yn=Kr?{pageX:Kr.pageX,pageY:Kr.pageY}:null;this.delayTimer=window.setTimeout(function(){en.setPopupVisible(xr,Yn),en.clearDelayTimer()},ai)}else this.setPopupVisible(xr,Kr)}},{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(xr){var Jr=this.props.children.props,Kr=this.props;return Jr[xr]&&Kr[xr]?this["fire".concat(xr)]:Jr[xr]||Kr[xr]}},{key:"isClickToShow",value:function(){var xr=this.props,Jr=xr.action,Kr=xr.showAction;return Jr.indexOf("click")!==-1||Kr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var xr=this.props,Jr=xr.action,Kr=xr.showAction;return Jr.indexOf("contextMenu")!==-1||Kr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var xr=this.props,Jr=xr.action,Kr=xr.hideAction;return Jr.indexOf("click")!==-1||Kr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var xr=this.props,Jr=xr.action,Kr=xr.showAction;return Jr.indexOf("hover")!==-1||Kr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var xr=this.props,Jr=xr.action,Kr=xr.hideAction;return Jr.indexOf("hover")!==-1||Kr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var xr=this.props,Jr=xr.action,Kr=xr.showAction;return Jr.indexOf("focus")!==-1||Kr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var xr=this.props,Jr=xr.action,Kr=xr.hideAction;return Jr.indexOf("focus")!==-1||Kr.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(xr,Jr){var Kr=this.props.children.props[xr];Kr&&Kr(Jr);var en=this.props[xr];en&&en(Jr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var xr=this.state.popupVisible,Jr=this.props,Kr=Jr.children,en=Jr.forceRender,ai=Jr.alignPoint,Yn=Jr.className,Si=Jr.autoDestroy,ln=a.a.Children.only(Kr),Or={key:"trigger"};this.isContextMenuToShow()?Or.onContextMenu=this.onContextMenu:Or.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Or.onClick=this.onClick,Or.onMouseDown=this.onMouseDown,Or.onTouchStart=this.onTouchStart):(Or.onClick=this.createTwoChains("onClick"),Or.onMouseDown=this.createTwoChains("onMouseDown"),Or.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Or.onMouseEnter=this.onMouseEnter,ai&&(Or.onMouseMove=this.onMouseMove)):Or.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Or.onMouseLeave=this.onMouseLeave:Or.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Or.onFocus=this.onFocus,Or.onBlur=this.onBlur):(Or.onFocus=this.createTwoChains("onFocus"),Or.onBlur=this.createTwoChains("onBlur"));var wn=D()(ln&&ln.props&&ln.props.className,Yn);wn&&(Or.className=wn);var Xn=Object(l.a)({},Or);Object(b.c)(ln)&&(Xn.ref=Object(b.a)(this.triggerRef,ln.ref));var Zn=a.a.cloneElement(ln,Xn),ii;return(xr||this.popupRef.current||en)&&(ii=a.a.createElement(Qr,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!xr&&Si&&(ii=null),a.a.createElement(Z.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Zn,ii)}}],[{key:"getDerivedStateFromProps",value:function(xr,Jr){var Kr=xr.popupVisible,en={};return Kr!==void 0&&Jr.popupVisible!==Kr&&(en.popupVisible=Kr,en.prevPopupVisible=Jr.popupVisible),en}}]),Nr}(a.a.Component);return On.contextType=Z,On.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:je,getDocument:Re,onPopupVisibleChange:J,afterPopupVisibleChange:J,onPopupAlign:J,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},On}var zt=yt(I.a),lt=d("2W6z"),$t=d.n(lt),cr=d("4IlW"),cn=d("uK0f"),pr=d.n(cn);function gr(Qr,On){if(Qr===On)return!0;if(!Qr||!On)return!1;var zr=Qr.length;if(On.length!==zr)return!1;for(var fr=0;fr<zr;fr++)if(Qr[fr]!==On[fr])return!1;return!0}function Zt(Qr){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zt=function(zr){return typeof zr}:Zt=function(zr){return zr&&typeof Symbol=="function"&&zr.constructor===Symbol&&zr!==Symbol.prototype?"symbol":typeof zr},Zt(Qr)}function Vt(Qr,On){if(!(Qr instanceof On))throw new TypeError("Cannot call a class as a function")}function mt(Qr,On){for(var zr=0;zr<On.length;zr++){var fr=On[zr];fr.enumerable=fr.enumerable||!1,fr.configurable=!0,"value"in fr&&(fr.writable=!0),Object.defineProperty(Qr,fr.key,fr)}}function Yr(Qr,On,zr){return On&&mt(Qr.prototype,On),zr&&mt(Qr,zr),Qr}function Tn(Qr,On){if(typeof On!="function"&&On!==null)throw new TypeError("Super expression must either be null or a function");Qr.prototype=Object.create(On&&On.prototype,{constructor:{value:Qr,writable:!0,configurable:!0}}),On&&Hn(Qr,On)}function Hn(Qr,On){return Hn=Object.setPrototypeOf||function(fr,Nr){return fr.__proto__=Nr,fr},Hn(Qr,On)}function ei(Qr){var On=Vn();return function(){var zr=kt(Qr),fr;if(On){var Nr=kt(this).constructor;fr=Reflect.construct(zr,arguments,Nr)}else fr=zr.apply(this,arguments);return ji(this,fr)}}function ji(Qr,On){return On&&(Zt(On)==="object"||typeof On=="function")?On:Ln(Qr)}function Ln(Qr){if(Qr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qr}function Vn(){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(Qr){return!1}}function kt(Qr){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(zr){return zr.__proto__||Object.getPrototypeOf(zr)},kt(Qr)}var wt=function(){var Qr=function(On){Tn(fr,On);var zr=ei(fr);function fr(){var Nr;return Vt(this,fr),Nr=zr.apply(this,arguments),Nr.menuItems={},Nr.saveMenuItem=function(Qt){return function(xr){Nr.menuItems[Qt]=xr}},Nr}return Yr(fr,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Qt){!Qt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Qt){var xr=this.props,Jr=xr.fieldNames,Kr=xr.defaultFieldNames;return Jr[Qt]||Kr[Qt]}},{key:"getOption",value:function(Qt,xr){var Jr=this.props,Kr=Jr.prefixCls,en=Jr.expandTrigger,ai=Jr.expandIcon,Yn=Jr.loadingIcon,Si=this.props.onSelect.bind(this,Qt,xr),ln=this.props.onItemDoubleClick.bind(this,Qt,xr),Or={onClick:Si,onDoubleClick:ln},wn="".concat(Kr,"-menu-item"),Xn=null,Zn=Qt[this.getFieldName("children")]&&Qt[this.getFieldName("children")].length>0;(Zn||Qt.isLeaf===!1)&&(wn+=" ".concat(Kr,"-menu-item-expand"),Qt.loading||(Xn=t.createElement("span",{className:"".concat(Kr,"-menu-item-expand-icon")},ai))),en==="hover"&&(Zn||Qt.isLeaf===!1)&&(Or={onMouseEnter:this.delayOnSelect.bind(this,Si),onMouseLeave:this.delayOnSelect.bind(this),onClick:Si}),this.isActiveOption(Qt,xr)&&(wn+=" ".concat(Kr,"-menu-item-active"),Or.ref=this.saveMenuItem(xr)),Qt.disabled&&(wn+=" ".concat(Kr,"-menu-item-disabled"));var ii=null;Qt.loading&&(wn+=" ".concat(Kr,"-menu-item-loading"),ii=Yn||null);var Ei="";return"title"in Qt?Ei=Qt.title:typeof Qt[this.getFieldName("label")]=="string"&&(Ei=Qt[this.getFieldName("label")]),t.createElement("li",Object.assign({key:Qt[this.getFieldName("value")],className:wn,title:Ei},Or,{role:"menuitem",onMouseDown:function(Fi){return Fi.preventDefault()}}),Qt[this.getFieldName("label")],Xn,ii)}},{key:"getActiveOptions",value:function(Qt){var xr=this,Jr=this.props.options,Kr=Qt||this.props.activeValue;return pr()(Jr,function(en,ai){return en[xr.getFieldName("value")]===Kr[ai]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Qt=this,xr=this.props.options,Jr=this.getActiveOptions().map(function(Kr){return Kr[Qt.getFieldName("children")]}).filter(function(Kr){return!!Kr});return Jr.unshift(xr),Jr}},{key:"delayOnSelect",value:function(Qt){for(var xr=this,Jr=arguments.length,Kr=new Array(Jr>1?Jr-1:0),en=1;en<Jr;en++)Kr[en-1]=arguments[en];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Qt=="function"&&(this.delayTimer=window.setTimeout(function(){Qt(Kr),xr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Qt=this.getShowOptions().length,xr=0;xr<Qt;xr++){var Jr=this.menuItems[xr];Jr&&Jr.parentElement&&(Jr.parentElement.scrollTop=Jr.offsetTop)}}},{key:"isActiveOption",value:function(Qt,xr){var Jr=this.props.activeValue,Kr=Jr===void 0?[]:Jr;return Kr[xr]===Qt[this.getFieldName("value")]}},{key:"render",value:function(){var Qt=this,xr=this.props,Jr=xr.prefixCls,Kr=xr.dropdownMenuColumnStyle;return t.createElement("div",null,this.getShowOptions().map(function(en,ai){return t.createElement("ul",{className:"".concat(Jr,"-menu"),key:ai,style:Kr},en.map(function(Yn){return Qt.getOption(Yn,ai)}))}))}}]),fr}(t.Component);return Qr.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Qr}(),Te=wt,xe={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}}},Ce=xe;function Ye(Qr){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ye=function(zr){return typeof zr}:Ye=function(zr){return zr&&typeof Symbol=="function"&&zr.constructor===Symbol&&zr!==Symbol.prototype?"symbol":typeof zr},Ye(Qr)}function it(Qr,On){if(Qr==null)return{};var zr=dt(Qr,On),fr,Nr;if(Object.getOwnPropertySymbols){var Qt=Object.getOwnPropertySymbols(Qr);for(Nr=0;Nr<Qt.length;Nr++){if(fr=Qt[Nr],On.indexOf(fr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Qr,fr))continue;zr[fr]=Qr[fr]}}return zr}function dt(Qr,On){if(Qr==null)return{};var zr={},fr=Object.keys(Qr),Nr,Qt;for(Qt=0;Qt<fr.length;Qt++){if(Nr=fr[Qt],On.indexOf(Nr)>=0)continue;zr[Nr]=Qr[Nr]}return zr}function _t(Qr){return Mt(Qr)||mn(Qr)||kr(Qr)||vr()}function vr(){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 kr(Qr,On){if(!Qr)return;if(typeof Qr=="string")return nt(Qr,On);var zr=Object.prototype.toString.call(Qr).slice(8,-1);if(zr==="Object"&&Qr.constructor&&(zr=Qr.constructor.name),zr==="Map"||zr==="Set")return Array.from(Qr);if(zr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(zr))return nt(Qr,On)}function mn(Qr){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Qr))return Array.from(Qr)}function Mt(Qr){if(Array.isArray(Qr))return nt(Qr)}function nt(Qr,On){(On==null||On>Qr.length)&&(On=Qr.length);for(var zr=0,fr=new Array(On);zr<On;zr++)fr[zr]=Qr[zr];return fr}function st(Qr,On){if(!(Qr instanceof On))throw new TypeError("Cannot call a class as a function")}function Xt(Qr,On){for(var zr=0;zr<On.length;zr++){var fr=On[zr];fr.enumerable=fr.enumerable||!1,fr.configurable=!0,"value"in fr&&(fr.writable=!0),Object.defineProperty(Qr,fr.key,fr)}}function Dt(Qr,On,zr){return On&&Xt(Qr.prototype,On),zr&&Xt(Qr,zr),Qr}function St(Qr,On){if(typeof On!="function"&&On!==null)throw new TypeError("Super expression must either be null or a function");Qr.prototype=Object.create(On&&On.prototype,{constructor:{value:Qr,writable:!0,configurable:!0}}),On&&jt(Qr,On)}function jt(Qr,On){return jt=Object.setPrototypeOf||function(fr,Nr){return fr.__proto__=Nr,fr},jt(Qr,On)}function At(Qr){var On=sr();return function(){var zr=mr(Qr),fr;if(On){var Nr=mr(this).constructor;fr=Reflect.construct(zr,arguments,Nr)}else fr=zr.apply(this,arguments);return Ft(this,fr)}}function Ft(Qr,On){return On&&(Ye(On)==="object"||typeof On=="function")?On:wr(Qr)}function wr(Qr){if(Qr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qr}function sr(){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(Qr){return!1}}function mr(Qr){return mr=Object.setPrototypeOf?Object.getPrototypeOf:function(zr){return zr.__proto__||Object.getPrototypeOf(zr)},mr(Qr)}var $r=function(){var Qr=function(On){St(fr,On);var zr=At(fr);function fr(Nr){var Qt;st(this,fr),Qt=zr.call(this,Nr),Qt.setPopupVisible=function(Jr){var Kr=Qt.state.value;"popupVisible"in Qt.props||Qt.setState({popupVisible:Jr}),Jr&&!Qt.state.popupVisible&&Qt.setState({activeValue:Kr}),Qt.props.onPopupVisibleChange(Jr)},Qt.handleChange=function(Jr,Kr,en){var ai=Kr.visible;(en.type!=="keydown"||en.keyCode===cr.a.ENTER)&&(Qt.props.onChange(Jr.map(function(Yn){return Yn[Qt.getFieldName("value")]}),Jr),Qt.setPopupVisible(ai))},Qt.handlePopupVisibleChange=function(Jr){Qt.setPopupVisible(Jr)},Qt.handleMenuSelect=function(Jr,Kr,en){var ai=Qt.trigger.getRootDomNode();ai&&ai.focus&&ai.focus();var Yn=Qt.props,Si=Yn.changeOnSelect,ln=Yn.loadData,Or=Yn.expandTrigger;if(!Jr||Jr.disabled)return;var wn=Qt.state.activeValue;wn=wn.slice(0,Kr+1),wn[Kr]=Jr[Qt.getFieldName("value")];var Xn=Qt.getActiveOptions(wn);if(Jr.isLeaf===!1&&!Jr[Qt.getFieldName("children")]&&ln){Si&&Qt.handleChange(Xn,{visible:!0},en),Qt.setState({activeValue:wn}),ln(Xn);return}var Zn={};!Jr[Qt.getFieldName("children")]||!Jr[Qt.getFieldName("children")].length?(Qt.handleChange(Xn,{visible:!1},en),Zn.value=wn):Si&&(en.type==="click"||en.type==="keydown")&&(Or==="hover"?Qt.handleChange(Xn,{visible:!1},en):Qt.handleChange(Xn,{visible:!0},en),Zn.value=wn),Zn.activeValue=wn,("value"in Qt.props||en.type==="keydown"&&en.keyCode!==cr.a.ENTER)&&delete Zn.value,Qt.setState(Zn)},Qt.handleItemDoubleClick=function(){var Jr=Qt.props.changeOnSelect;Jr&&Qt.setPopupVisible(!1)},Qt.handleKeyDown=function(Jr){var Kr=Qt.props.children;if(Kr&&Kr.props.onKeyDown){Kr.props.onKeyDown(Jr);return}var en=_t(Qt.state.activeValue),ai=en.length-1<0?0:en.length-1,Yn=Qt.getCurrentLevelOptions(),Si=Yn.map(function(Xn){return Xn[Qt.getFieldName("value")]}).indexOf(en[ai]);if(Jr.keyCode!==cr.a.DOWN&&Jr.keyCode!==cr.a.UP&&Jr.keyCode!==cr.a.LEFT&&Jr.keyCode!==cr.a.RIGHT&&Jr.keyCode!==cr.a.ENTER&&Jr.keyCode!==cr.a.SPACE&&Jr.keyCode!==cr.a.BACKSPACE&&Jr.keyCode!==cr.a.ESC&&Jr.keyCode!==cr.a.TAB)return;if(!Qt.state.popupVisible&&Jr.keyCode!==cr.a.BACKSPACE&&Jr.keyCode!==cr.a.LEFT&&Jr.keyCode!==cr.a.RIGHT&&Jr.keyCode!==cr.a.ESC&&Jr.keyCode!==cr.a.TAB){Qt.setPopupVisible(!0);return}if(Jr.keyCode===cr.a.DOWN||Jr.keyCode===cr.a.UP){Jr.preventDefault();var ln=Si;ln!==-1?Jr.keyCode===cr.a.DOWN?(ln+=1,ln=ln>=Yn.length?0:ln):(ln-=1,ln=ln<0?Yn.length-1:ln):ln=0,en[ai]=Yn[ln][Qt.getFieldName("value")]}else if(Jr.keyCode===cr.a.LEFT||Jr.keyCode===cr.a.BACKSPACE)Jr.preventDefault(),en.splice(en.length-1,1);else if(Jr.keyCode===cr.a.RIGHT)Jr.preventDefault(),Yn[Si]&&Yn[Si][Qt.getFieldName("children")]&&en.push(Yn[Si][Qt.getFieldName("children")][0][Qt.getFieldName("value")]);else if(Jr.keyCode===cr.a.ESC||Jr.keyCode===cr.a.TAB){Qt.setPopupVisible(!1);return}(!en||en.length===0)&&Qt.setPopupVisible(!1);var Or=Qt.getActiveOptions(en),wn=Or[Or.length-1];Qt.handleMenuSelect(wn,Or.length-1,Jr),Qt.props.onKeyDown&&Qt.props.onKeyDown(Jr)},Qt.saveTrigger=function(Jr){Qt.trigger=Jr};var xr=[];return"value"in Nr?xr=Nr.value||[]:"defaultValue"in Nr&&(xr=Nr.defaultValue||[]),$t()(!("filedNames"in Nr),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Qt.state={popupVisible:Nr.popupVisible,activeValue:xr,value:xr,prevProps:Nr},Qt.defaultFieldNames={label:"label",value:"value",children:"children"},Qt}return Dt(fr,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Qt){var xr=this.defaultFieldNames,Jr=this.props,Kr=Jr.fieldNames,en=Jr.filedNames;return"filedNames"in this.props?en[Qt]||xr[Qt]:Kr[Qt]||xr[Qt]}},{key:"getFieldNames",value:function(){var Qt=this.props,xr=Qt.fieldNames,Jr=Qt.filedNames;return"filedNames"in this.props?Jr:xr}},{key:"getCurrentLevelOptions",value:function(){var Qt=this,xr=this.props.options,Jr=xr===void 0?[]:xr,Kr=this.state.activeValue,en=Kr===void 0?[]:Kr,ai=pr()(Jr,function(Yn,Si){return Yn[Qt.getFieldName("value")]===en[Si]},{childrenKeyName:this.getFieldName("children")});return ai[ai.length-2]?ai[ai.length-2][this.getFieldName("children")]:_t(Jr).filter(function(Yn){return!Yn.disabled})}},{key:"getActiveOptions",value:function(Qt){var xr=this;return pr()(this.props.options||[],function(Jr,Kr){return Jr[xr.getFieldName("value")]===Qt[Kr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Qt=this.props,xr=Qt.prefixCls,Jr=Qt.transitionName,Kr=Qt.popupClassName,en=Qt.options,ai=en===void 0?[]:en,Yn=Qt.disabled,Si=Qt.builtinPlacements,ln=Qt.popupPlacement,Or=Qt.children,wn=Qt.dropdownRender,Xn=it(Qt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Zn=t.createElement("div",null),ii="";ai&&ai.length>0?Zn=t.createElement(Te,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):ii=" ".concat(xr,"-menus-empty");var Ei=Zn;return wn&&(Ei=wn(Zn)),t.createElement(zt,Object.assign({ref:this.saveTrigger},Xn,{popupPlacement:ln,builtinPlacements:Si,popupTransitionName:Jr,action:Yn?[]:["click"],popupVisible:Yn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(xr,"-menus"),popupClassName:Kr+ii,popup:Ei}),t.cloneElement(Or,{onKeyDown:this.handleKeyDown,tabIndex:Yn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Qt,xr){var Jr=xr.prevProps,Kr=Jr===void 0?{}:Jr,en={prevProps:Qt};return"value"in Qt&&!gr(Kr.value,Qt.value)&&(en.value=Qt.value||[],"loadData"in Qt||(en.activeValue=Qt.value||[])),"popupVisible"in Qt&&(en.popupVisible=Qt.popupVisible),en}}]),fr}(t.Component);return Qr.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Ce,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Qr}(),rn=$r,jn=rn,Un=d("BGR+"),ui=d("kbBi"),yi=d.n(ui),Ii=d("HQEm"),Gi=d.n(Ii),Qe=d("fEPi"),be=d.n(Qe),Ne=d("5YOS"),Ue=d.n(Ne),Xe=d("DFhj"),ze=d.n(Xe),Ze=d("5rEg"),bt=d("H84U"),ut=d("YMnH"),Gt=d("uaoM"),Mr=d("3Nzz"),Lr=d("0n0R"),Gr=function(Qr,On){var zr={};for(var fr in Qr)Object.prototype.hasOwnProperty.call(Qr,fr)&&On.indexOf(fr)<0&&(zr[fr]=Qr[fr]);if(Qr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nr=0,fr=Object.getOwnPropertySymbols(Qr);Nr<fr.length;Nr++)On.indexOf(fr[Nr])<0&&Object.prototype.propertyIsEnumerable.call(Qr,fr[Nr])&&(zr[fr[Nr]]=Qr[fr[Nr]]);return zr},Ht=50;function hn(Qr,On,zr){return Qr.split(On).map(function(fr,Nr){return Nr===0?fr:[t.createElement("span",{className:"".concat(zr,"-menu-item-keyword"),key:"seperator"},On),fr]})}function or(Qr,On,zr){return On.some(function(fr){return fr[zr.label].indexOf(Qr)>-1})}function vn(Qr,On,zr,fr){return On.map(function(Nr,Qt){var xr=Nr[fr.label],Jr=xr.indexOf(Qr)>-1?hn(xr,Qr,zr):xr;return Qt===0?Jr:[" / ",Jr]})}function nn(Qr,On,zr,fr){function Nr(Qt){return Qt[fr.label].indexOf(zr)>-1}return Qr.findIndex(Nr)-On.findIndex(Nr)}function Ur(Qr){var On=Qr.fieldNames;return On}function ni(Qr){var On=Ur(Qr)||{},zr={children:On.children||"children",label:On.label||"label",value:On.value||"value"};return zr}function Oi(Qr,On){var zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],fr=ni(On),Nr=[],Qt=fr.children;return Qr.forEach(function(xr){var Jr=zr.concat(xr);(On.changeOnSelect||!xr[Qt]||!xr[Qt].length)&&Nr.push(Jr),xr[Qt]&&(Nr=Nr.concat(Oi(xr[Qt],On,Jr)))}),Nr}var Hi=function(On){return On.join(" / ")};function Ri(Qr){var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Qr||[]).forEach(function(zr){var fr=On.value||"value";Object(Gt.a)(fr in zr,"Cascader","Not found `value` in `options`."),Ri(zr[On.children||"children"],On)})}var Ni=function(Qr){n()(zr,Qr);var On=s()(zr);function zr(fr){var Nr;return m()(this,zr),Nr=On.call(this,fr),Nr.cachedOptions=[],Nr.setValue=function(Qt){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Nr.props||Nr.setState({value:Qt});var Jr=Nr.props.onChange;Jr&&Jr(Qt,xr)},Nr.saveInput=function(Qt){Nr.input=Qt},Nr.handleChange=function(Qt,xr){if(Nr.setState({inputValue:""}),xr[0].__IS_FILTERED_OPTION){var Jr=Qt[0],Kr=xr[0].path;Nr.setValue(Jr,Kr);return}Nr.setValue(Qt,xr)},Nr.handlePopupVisibleChange=function(Qt){"popupVisible"in Nr.props||Nr.setState(function(Jr){return{popupVisible:Qt,inputFocused:Qt,inputValue:Qt?Jr.inputValue:""}});var xr=Nr.props.onPopupVisibleChange;xr&&xr(Qt)},Nr.handleInputBlur=function(){Nr.setState({inputFocused:!1})},Nr.handleInputClick=function(Qt){var xr=Nr.state,Jr=xr.inputFocused,Kr=xr.popupVisible;(Jr||Kr)&&Qt.stopPropagation()},Nr.handleKeyDown=function(Qt){(Qt.keyCode===cr.a.BACKSPACE||Qt.keyCode===cr.a.SPACE)&&Qt.stopPropagation()},Nr.handleInputChange=function(Qt){var xr=Nr.state.popupVisible,Jr=Qt.target.value;xr||Nr.handlePopupVisibleChange(!0),Nr.setState({inputValue:Jr})},Nr.clearSelection=function(Qt){var xr=Nr.state.inputValue;Qt.preventDefault(),Qt.stopPropagation(),xr?Nr.setState({inputValue:""}):(Nr.handlePopupVisibleChange(!1),Nr.clearSelectionTimeout=setTimeout(function(){Nr.setValue([])},200))},Nr.renderCascader=function(Qt,xr){var Jr=Qt.getPopupContainer,Kr=Qt.getPrefixCls,en=Qt.renderEmpty,ai=Qt.direction;return t.createElement(Mr.b.Consumer,null,function(Yn){var Si,ln,Or,wn,Xn=r()(Nr),Zn=Xn.props,ii=Xn.state,Ei=Zn.prefixCls,ki=Zn.inputPrefixCls,Fi=Zn.children,ra=Zn.placeholder,_a=ra===void 0?xr.placeholder||"Please select":ra,wa=Zn.size,_o=Zn.disabled,bi=Zn.className,xn=Zn.style,Zi=Zn.allowClear,va=Zn.showSearch,ta=va===void 0?!1:va,ma=Zn.suffixIcon,Qi=Zn.expandIcon,Ya=Zn.notFoundContent,Wa=Zn.popupClassName,Ao=Zn.bordered,es=Zn.dropdownRender,so=Gr(Zn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),So=wa||Yn,xo=ii.value,hr=ii.inputFocused,Sn=ai==="rtl",dn=Kr("cascader",Ei),Kn=Kr("input",ki),si=D()((Si={},v()(Si,"".concat(Kn,"-lg"),So==="large"),v()(Si,"".concat(Kn,"-sm"),So==="small"),Si)),vi=Zi&&!_o&&xo.length>0||ii.inputValue?t.createElement(yi.a,{className:"".concat(dn,"-picker-clear"),onClick:Nr.clearSelection}):null,pi=D()((ln={},v()(ln,"".concat(dn,"-picker-arrow"),!0),v()(ln,"".concat(dn,"-picker-arrow-expand"),ii.popupVisible),ln)),di=D()(bi,"".concat(dn,"-picker"),(Or={},v()(Or,"".concat(dn,"-picker-rtl"),Sn),v()(Or,"".concat(dn,"-picker-with-value"),ii.inputValue),v()(Or,"".concat(dn,"-picker-disabled"),_o),v()(Or,"".concat(dn,"-picker-").concat(So),!!So),v()(Or,"".concat(dn,"-picker-show-search"),!!ta),v()(Or,"".concat(dn,"-picker-focused"),hr),v()(Or,"".concat(dn,"-picker-borderless"),!Ao),Or)),Ki=Object(Un.default)(so,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),Mi=Zn.options,pa=ni(Nr.props);if(Mi&&Mi.length>0)ii.inputValue&&(Mi=Nr.generateFilteredOptions(dn,en));else{var _i;Mi=[(_i={},v()(_i,pa.label,Ya||en("Cascader")),v()(_i,pa.value,"ANT_CASCADER_NOT_FOUND"),_i)]}ii.popupVisible?Nr.cachedOptions=Mi:Mi=Nr.cachedOptions;var da={},na=(Mi||[]).length===1&&Mi[0].isEmptyNode;na&&(da.height="auto");var Sa=ta.matchInputWidth!==!1;Sa&&(ii.inputValue||na)&&Nr.input&&(da.width=Nr.input.input.offsetWidth);var Aa;ma?Aa=Object(Lr.c)(ma,t.createElement("span",{className:"".concat(dn,"-picker-arrow")},ma),function(){var yo;return{className:D()((yo={},v()(yo,ma.props.className,ma.props.className),v()(yo,"".concat(dn,"-picker-arrow"),!0),yo))}}):Aa=t.createElement(Gi.a,{className:pi});var ua=Fi||t.createElement("span",{style:xn,className:di},t.createElement("span",{className:"".concat(dn,"-picker-label")},Nr.getLabel()),t.createElement(Ze.a,E()({},Ki,{tabIndex:"-1",ref:Nr.saveInput,prefixCls:Kn,placeholder:xo&&xo.length>0?void 0:_a,className:"".concat(dn,"-input ").concat(si),value:ii.inputValue,disabled:_o,readOnly:!ta,autoComplete:Ki.autoComplete||"off",onClick:ta?Nr.handleInputClick:void 0,onBlur:ta?Nr.handleInputBlur:void 0,onKeyDown:Nr.handleKeyDown,onChange:ta?Nr.handleInputChange:void 0})),vi,Aa),La;Qi?La=Qi:La=Sn?t.createElement(ze.a,null):t.createElement(be.a,null);var sa=t.createElement("span",{className:"".concat(dn,"-menu-item-loading-icon")},t.createElement(Ue.a,{spin:!0})),co=Zn.getPopupContainer||Jr,no=Object(Un.default)(Zn,["inputIcon","expandIcon","loadingIcon","bordered"]),ca=D()(Wa,(wn={},v()(wn,"".concat(dn,"-menu-").concat(ai),ai==="rtl"),v()(wn,"".concat(dn,"-menu-empty"),Mi.length===1&&Mi[0].value==="ANT_CASCADER_NOT_FOUND"),wn));return t.createElement(jn,E()({},no,{prefixCls:dn,getPopupContainer:co,options:Mi,value:xo,popupVisible:ii.popupVisible,onPopupVisibleChange:Nr.handlePopupVisibleChange,onChange:Nr.handleChange,dropdownMenuColumnStyle:da,expandIcon:La,loadingIcon:sa,popupClassName:ca,popupPlacement:Nr.getPopupPlacement(ai),dropdownRender:es}),ua)})},Nr.state={value:fr.value||fr.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:fr.popupVisible,flattenOptions:fr.showSearch?Oi(fr.options,fr):void 0,prevProps:fr},Nr}return c()(zr,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Nr=this.props,Qt=Nr.options,xr=Nr.displayRender,Jr=xr===void 0?Hi:xr,Kr=ni(this.props),en=this.state.value,ai=Array.isArray(en[0])?en[0]:en,Yn=pr()(Qt,function(ln,Or){return ln[Kr.value]===ai[Or]},{childrenKeyName:Kr.children}),Si=Yn.length?Yn.map(function(ln){return ln[Kr.label]}):en;return Jr(Si,Yn)}},{key:"generateFilteredOptions",value:function(Nr,Qt){var xr=this,Jr,Kr=this.props,en=Kr.showSearch,ai=Kr.notFoundContent,Yn=ni(this.props),Si=en.filter,ln=Si===void 0?or:Si,Or=en.render,wn=Or===void 0?vn:Or,Xn=en.sort,Zn=Xn===void 0?nn:Xn,ii=en.limit,Ei=ii===void 0?Ht:ii,ki=this.state,Fi=ki.flattenOptions,ra=Fi===void 0?[]:Fi,_a=ki.inputValue,wa;if(Ei>0){wa=[];var _o=0;ra.some(function(bi){var xn=ln(xr.state.inputValue,bi,Yn);return xn&&(wa.push(bi),_o+=1),_o>=Ei})}else Object(Gt.a)(typeof Ei!="number","Cascader","'limit' of showSearch should be positive number or false."),wa=ra.filter(function(bi){return ln(xr.state.inputValue,bi,Yn)});return wa=wa.sort(function(bi,xn){return Zn(bi,xn,_a,Yn)}),wa.length>0?wa.map(function(bi){var xn;return xn={__IS_FILTERED_OPTION:!0,path:bi},v()(xn,Yn.value,bi.map(function(Zi){return Zi[Yn.value]})),v()(xn,Yn.label,wn(_a,bi,Nr,Yn)),v()(xn,"disabled",bi.some(function(Zi){return!!Zi.disabled})),v()(xn,"isEmptyNode",!0),xn}):[(Jr={},v()(Jr,Yn.value,"ANT_CASCADER_NOT_FOUND"),v()(Jr,Yn.label,ai||Qt("Cascader")),v()(Jr,"disabled",!0),v()(Jr,"isEmptyNode",!0),Jr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Qt=this.props.popupPlacement;return Qt!==void 0?Qt:Nr==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Nr=this;return t.createElement(bt.a,null,function(Qt){return t.createElement(ut.a,null,function(xr){return Nr.renderCascader(Qt,xr)})})}}],[{key:"getDerivedStateFromProps",value:function(Nr,Qt){var xr=Qt.prevProps,Jr={prevProps:Nr};return"value"in Nr&&(Jr.value=Nr.value||[]),"popupVisible"in Nr&&(Jr.popupVisible=Nr.popupVisible),Nr.showSearch&&xr.options!==Nr.options&&(Jr.flattenOptions=Oi(Nr.options,Nr)),Jr}}]),zr}(t.Component);Ni.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Yi=P.a=Ni},DFhj:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("GGyF"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},DL4k:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},DN4a:function(j,P,d){var O=d("Fofx"),E=d("QBsz"),C=O.identity,v=5e-5;function w(n){return n>v||n<-v}var m=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},h=m.prototype;h.transform=null,h.needLocalTransform=function(){return w(this.rotation)||w(this.position[0])||w(this.position[1])||w(this.scale[0]-1)||w(this.scale[1]-1)};var c=[];h.updateTransform=function(){var n=this.parent,e=n&&n.transform,s=this.needLocalTransform(),t=this.transform;if(!(s||e)){t&&C(t);return}t=t||O.create(),s?this.getLocalTransform(t):C(t),e&&(s?O.mul(t,n.transform,t):O.copy(t,n.transform)),this.transform=t;var a=this.globalScaleRatio;if(a!=null&&a!==1){this.getGlobalScale(c);var l=c[0]<0?-1:1,u=c[1]<0?-1:1,f=((c[0]-l)*a+l)/c[0]||0,p=((c[1]-u)*a+u)/c[1]||0;t[0]*=f,t[1]*=f,t[2]*=p,t[3]*=p}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,t)},h.getLocalTransform=function(n){return m.getLocalTransform(this,n)},h.setTransform=function(n){var e=this.transform,s=n.dpr||1;e?n.setTransform(s*e[0],s*e[1],s*e[2],s*e[3],s*e[4],s*e[5]):n.setTransform(s,0,0,s,0,0)},h.restoreTransform=function(n){var e=n.dpr||1;n.setTransform(e,0,0,e,0,0)};var i=[],r=O.create();h.setLocalTransform=function(n){if(!n)return;var e=n[0]*n[0]+n[1]*n[1],s=n[2]*n[2]+n[3]*n[3],t=this.position,a=this.scale;w(e-1)&&(e=Math.sqrt(e)),w(s-1)&&(s=Math.sqrt(s)),n[0]<0&&(e=-e),n[3]<0&&(s=-s),t[0]=n[4],t[1]=n[5],a[0]=e,a[1]=s,this.rotation=Math.atan2(-n[1]/s,n[0]/e)},h.decomposeTransform=function(){if(!this.transform)return;var n=this.parent,e=this.transform;n&&n.transform&&(O.mul(i,n.invTransform,e),e=i);var s=this.origin;s&&(s[0]||s[1])&&(r[4]=s[0],r[5]=s[1],O.mul(i,e,r),i[4]-=s[0],i[5]-=s[1],e=i),this.setLocalTransform(e)},h.getGlobalScale=function(n){var e=this.transform;return n=n||[],e?(n[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),n[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(n[0]=-n[0]),e[3]<0&&(n[1]=-n[1]),n):(n[0]=1,n[1]=1,n)},h.transformCoordToLocal=function(n,e){var s=[n,e],t=this.invTransform;return t&&E.applyTransform(s,s,t),s},h.transformCoordToGlobal=function(n,e){var s=[n,e],t=this.transform;return t&&E.applyTransform(s,s,t),s},m.getLocalTransform=function(n,e){e=e||[],C(e);var s=n.origin,t=n.scale||[1,1],a=n.rotation||0,l=n.position||[0,0];return s&&(e[4]-=s[0],e[5]-=s[1]),O.scale(e,e,t),a&&O.rotate(e,e,a),s&&(e[4]+=s[0],e[5]+=s[1]),e[4]+=l[0],e[5]+=l[1],e};var o=m;j.exports=o},DO2E:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},DYRE:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("OPEp"),v=d.n(C)},DZo9:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("JGo8"),v=d.n(C),w=d("+L6B"),m=d("MXD1"),h=d("5Dmo")},Dagg:function(j,P,d){var O=d("Gev7"),E=d("mFDi"),C=d("bYtY"),v=d("Xnb7");function w(h){O.call(this,h)}w.prototype={constructor:w,type:"image",brush:function(c,i){var r=this.style,o=r.image;r.bind(c,this,i);var n=this._image=v.createOrUpdateImage(o,this._image,this,this.onload);if(!n||!v.isImageReady(n))return;var e=r.x||0,s=r.y||0,t=r.width,a=r.height,l=n.width/n.height;if(t==null&&a!=null?t=a*l:a==null&&t!=null?a=t/l:t==null&&a==null&&(t=n.width,a=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,e,s,t,a)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,p=t-u,g=a-f;c.drawImage(n,u,f,p,g,e,s,t,a)}else c.drawImage(n,e,s,t,a);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}},C.inherits(w,O);var m=w;j.exports=m},Dg8C:function(j,P,d){var O=d("XxSj"),E=d("bYtY");function C(v,w){v.eachSeriesByType("sankey",function(m){var h=m.getGraph(),c=h.nodes;if(c.length){var i=Infinity,r=-Infinity;E.each(c,function(o){var n=o.getLayout().value;n<i&&(i=n),n>r&&(r=n)}),E.each(c,function(o){var n=new O({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:m.get("color")}),e=n.mapValueToVisual(o.getLayout().value),s=o.getModel().get("itemStyle.color");s!=null?o.setVisual("color",s):o.setVisual("color",e)})}})}j.exports=C},DjyN:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("Urep"),v=d.n(C),w=d("OaEy")},DlQD:function(j,P,d){(function(O,E){j.exports=E()})(this,function(){"use strict";function O(Et,Tt){for(var Rt=0;Rt<Tt.length;Rt++){var Be=Tt[Rt];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Et,Be.key,Be)}}function E(Et,Tt,Rt){return Tt&&O(Et.prototype,Tt),Rt&&O(Et,Rt),Et}function C(Et,Tt){if(!Et)return;if(typeof Et=="string")return v(Et,Tt);var Rt=Object.prototype.toString.call(Et).slice(8,-1);if(Rt==="Object"&&Et.constructor&&(Rt=Et.constructor.name),Rt==="Map"||Rt==="Set")return Array.from(Et);if(Rt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rt))return v(Et,Tt)}function v(Et,Tt){(Tt==null||Tt>Et.length)&&(Tt=Et.length);for(var Rt=0,Be=new Array(Tt);Rt<Tt;Rt++)Be[Rt]=Et[Rt];return Be}function w(Et,Tt){var Rt;if(typeof Symbol=="undefined"||Et[Symbol.iterator]==null){if(Array.isArray(Et)||(Rt=C(Et))||Tt&&Et&&typeof Et.length=="number"){Rt&&(Et=Rt);var Be=0;return function(){return Be>=Et.length?{done:!0}:{done:!1,value:Et[Be++]}}}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 Rt=Et[Symbol.iterator](),Rt.next.bind(Rt)}function m(Et,Tt){return Tt={exports:{}},Et(Tt,Tt.exports),Tt.exports}var h=m(function(Et){function Tt(){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 Rt(Be){Et.exports.defaults=Be}Et.exports={defaults:Tt(),getDefaults:Tt,changeDefaults:Rt}}),c=h.defaults,i=h.getDefaults,r=h.changeDefaults,o=/[&<>"']/,n=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=function(Tt){return t[Tt]};function l(Et,Tt){if(Tt){if(o.test(Et))return Et.replace(n,a)}else if(e.test(Et))return Et.replace(s,a);return Et}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function f(Et){return Et.replace(u,function(Tt,Rt){return Rt=Rt.toLowerCase(),Rt==="colon"?":":Rt.charAt(0)==="#"?Rt.charAt(1)==="x"?String.fromCharCode(parseInt(Rt.substring(2),16)):String.fromCharCode(+Rt.substring(1)):""})}var p=/(^|[^\[])\^/g;function g(Et,Tt){Et=Et.source||Et,Tt=Tt||"";var Rt={replace:function(Z,J){return J=J.source||J,J=J.replace(p,"$1"),Et=Et.replace(Z,J),Rt},getRegex:function(){return new RegExp(Et,Tt)}};return Rt}var A=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(Et,Tt,Rt){if(Et){var Be;try{Be=decodeURIComponent(f(Rt)).replace(A,"").toLowerCase()}catch(Z){return null}if(Be.indexOf("javascript:")===0||Be.indexOf("vbscript:")===0||Be.indexOf("data:")===0)return null}Tt&&!y.test(Rt)&&(Rt=I(Tt,Rt));try{Rt=encodeURI(Rt).replace(/%25/g,"%")}catch(Z){return null}return Rt}var T={},S=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Et,Tt){T[" "+Et]||(S.test(Et)?T[" "+Et]=Et+"/":T[" "+Et]=M(Et,"/",!0)),Et=T[" "+Et];var Rt=Et.indexOf(":")===-1;return Tt.substring(0,2)==="//"?Rt?Tt:Et.replace(b,"$1")+Tt:Tt.charAt(0)==="/"?Rt?Tt:Et.replace(_,"$1")+Tt:Et+Tt}var L={exec:function(){}};function D(Et){for(var Tt=1,Rt,Be;Tt<arguments.length;Tt++){Rt=arguments[Tt];for(Be in Rt)Object.prototype.hasOwnProperty.call(Rt,Be)&&(Et[Be]=Rt[Be])}return Et}function N(Et,Tt){var Rt=Et.replace(/\|/g,function(J,je,Re){for(var oe=!1,yt=je;--yt>=0&&Re[yt]==="\\";)oe=!oe;return oe?"|":" |"}),Be=Rt.split(/ \|/),Z=0;if(Be.length>Tt)Be.splice(Tt);else for(;Be.length<Tt;)Be.push("");for(;Z<Be.length;Z++)Be[Z]=Be[Z].trim().replace(/\\\|/g,"|");return Be}function M(Et,Tt,Rt){var Be=Et.length;if(Be===0)return"";for(var Z=0;Z<Be;){var J=Et.charAt(Be-Z-1);if(J===Tt&&!Rt)Z++;else if(J!==Tt&&Rt)Z++;else break}return Et.substr(0,Be-Z)}function B(Et,Tt){if(Et.indexOf(Tt[1])===-1)return-1;for(var Rt=Et.length,Be=0,Z=0;Z<Rt;Z++)if(Et[Z]==="\\")Z++;else if(Et[Z]===Tt[0])Be++;else if(Et[Z]===Tt[1]&&(Be--,Be<0))return Z;return-1}function R(Et){Et&&Et.sanitize&&!Et.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 H={escape:l,unescape:f,edit:g,cleanUrl:x,resolveUrl:I,noopTest:L,merge:D,splitCells:N,rtrim:M,findClosingBracket:B,checkSanitizeDeprecation:R},F=h.defaults,K=H.rtrim,U=H.splitCells,V=H.escape,z=H.findClosingBracket;function Y(Et,Tt,Rt){var Be=Tt.href,Z=Tt.title?V(Tt.title):null,J=Et[1].replace(/\\([\[\]])/g,"$1");return Et[0].charAt(0)!=="!"?{type:"link",raw:Rt,href:Be,title:Z,text:J}:{type:"image",raw:Rt,href:Be,title:Z,text:V(J)}}function q(Et,Tt){var Rt=Et.match(/^(\s+)(?:```)/);if(Rt===null)return Tt;var Be=Rt[1];return Tt.split(`
`).map(function(Z){var J=Z.match(/^\s+/);if(J===null)return Z;var je=J[0];return je.length>=Be.length?Z.slice(Be.length):Z}).join(`
`)}var ce=function(){function Et(Rt){this.options=Rt||F}var Tt=Et.prototype;return Tt.space=function(Be){var Z=this.rules.block.newline.exec(Be);if(Z)return Z[0].length>1?{type:"space",raw:Z[0]}:{raw:`
`}},Tt.code=function(Be,Z){var J=this.rules.block.code.exec(Be);if(J){var je=Z[Z.length-1];if(je&&je.type==="paragraph")return{raw:J[0],text:J[0].trimRight()};var Re=J[0].replace(/^ {4}/gm,"");return{type:"code",raw:J[0],codeBlockStyle:"indented",text:this.options.pedantic?Re:K(Re,`
`)}}},Tt.fences=function(Be){var Z=this.rules.block.fences.exec(Be);if(Z){var J=Z[0],je=q(J,Z[3]||"");return{type:"code",raw:J,lang:Z[2]?Z[2].trim():Z[2],text:je}}},Tt.heading=function(Be){var Z=this.rules.block.heading.exec(Be);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},Tt.nptable=function(Be){var Z=this.rules.block.nptable.exec(Be);if(Z){var J={type:"table",header:U(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split(`
`):[],raw:Z[0]};if(J.header.length===J.align.length){var je=J.align.length,Re;for(Re=0;Re<je;Re++)/^ *-+: *$/.test(J.align[Re])?J.align[Re]="right":/^ *:-+: *$/.test(J.align[Re])?J.align[Re]="center":/^ *:-+ *$/.test(J.align[Re])?J.align[Re]="left":J.align[Re]=null;for(je=J.cells.length,Re=0;Re<je;Re++)J.cells[Re]=U(J.cells[Re],J.header.length);return J}}},Tt.hr=function(Be){var Z=this.rules.block.hr.exec(Be);if(Z)return{type:"hr",raw:Z[0]}},Tt.blockquote=function(Be){var Z=this.rules.block.blockquote.exec(Be);if(Z){var J=Z[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Z[0],text:J}}},Tt.list=function(Be){var Z=this.rules.block.list.exec(Be);if(Z){for(var J=Z[0],je=Z[2],Re=je.length>1,oe=je[je.length-1]===")",yt={type:"list",raw:J,ordered:Re,start:Re?+je.slice(0,-1):"",loose:!1,items:[]},zt=Z[0].match(this.rules.block.item),lt=!1,$t,cr,cn,pr,gr,Zt,Vt,mt=zt.length,Yr=0;Yr<mt;Yr++)$t=zt[Yr],J=$t,cr=$t.length,$t=$t.replace(/^ *([*+-]|\d+[.)]) */,""),~$t.indexOf(`
`)&&(cr-=$t.length,$t=this.options.pedantic?$t.replace(/^ {1,4}/gm,""):$t.replace(new RegExp("^ {1,"+cr+"}","gm"),"")),Yr!==mt-1&&(cn=this.rules.block.bullet.exec(zt[Yr+1])[0],(Re?cn.length===1||!oe&&cn[cn.length-1]===")":cn.length>1||this.options.smartLists&&cn!==je)&&(pr=zt.slice(Yr+1).join(`
`),yt.raw=yt.raw.substring(0,yt.raw.length-pr.length),Yr=mt-1)),gr=lt||/\n\n(?!\s*$)/.test($t),Yr!==mt-1&&(lt=$t.charAt($t.length-1)===`
`,gr||(gr=lt)),gr&&(yt.loose=!0),Zt=/^\[[ xX]\] /.test($t),Vt=void 0,Zt&&(Vt=$t[1]!==" ",$t=$t.replace(/^\[[ xX]\] +/,"")),yt.items.push({type:"list_item",raw:J,task:Zt,checked:Vt,loose:gr,text:$t});return yt}},Tt.html=function(Be){var Z=this.rules.block.html.exec(Be);if(Z)return{type:this.options.sanitize?"paragraph":"html",raw:Z[0],pre:!this.options.sanitizer&&(Z[1]==="pre"||Z[1]==="script"||Z[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Z[0]):V(Z[0]):Z[0]}},Tt.def=function(Be){var Z=this.rules.block.def.exec(Be);if(Z){Z[3]&&(Z[3]=Z[3].substring(1,Z[3].length-1));var J=Z[1].toLowerCase().replace(/\s+/g," ");return{tag:J,raw:Z[0],href:Z[2],title:Z[3]}}},Tt.table=function(Be){var Z=this.rules.block.table.exec(Be);if(Z){var J={type:"table",header:U(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split(`
`):[]};if(J.header.length===J.align.length){J.raw=Z[0];var je=J.align.length,Re;for(Re=0;Re<je;Re++)/^ *-+: *$/.test(J.align[Re])?J.align[Re]="right":/^ *:-+: *$/.test(J.align[Re])?J.align[Re]="center":/^ *:-+ *$/.test(J.align[Re])?J.align[Re]="left":J.align[Re]=null;for(je=J.cells.length,Re=0;Re<je;Re++)J.cells[Re]=U(J.cells[Re].replace(/^ *\| *| *\| *$/g,""),J.header.length);return J}}},Tt.lheading=function(Be){var Z=this.rules.block.lheading.exec(Be);if(Z)return{type:"heading",raw:Z[0],depth:Z[2].charAt(0)==="="?1:2,text:Z[1]}},Tt.paragraph=function(Be){var Z=this.rules.block.paragraph.exec(Be);if(Z)return{type:"paragraph",raw:Z[0],text:Z[1].charAt(Z[1].length-1)===`
`?Z[1].slice(0,-1):Z[1]}},Tt.text=function(Be,Z){var J=this.rules.block.text.exec(Be);if(J){var je=Z[Z.length-1];return je&&je.type==="text"?{raw:J[0],text:J[0]}:{type:"text",raw:J[0],text:J[0]}}},Tt.escape=function(Be){var Z=this.rules.inline.escape.exec(Be);if(Z)return{type:"escape",raw:Z[0],text:V(Z[1])}},Tt.tag=function(Be,Z,J){var je=this.rules.inline.tag.exec(Be);if(je)return!Z&&/^<a /i.test(je[0])?Z=!0:Z&&/^<\/a>/i.test(je[0])&&(Z=!1),!J&&/^<(pre|code|kbd|script)(\s|>)/i.test(je[0])?J=!0:J&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(je[0])&&(J=!1),{type:this.options.sanitize?"text":"html",raw:je[0],inLink:Z,inRawBlock:J,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(je[0]):V(je[0]):je[0]}},Tt.link=function(Be){var Z=this.rules.inline.link.exec(Be);if(Z){var J=z(Z[2],"()");if(J>-1){var je=Z[0].indexOf("!")===0?5:4,Re=je+Z[1].length+J;Z[2]=Z[2].substring(0,J),Z[0]=Z[0].substring(0,Re).trim(),Z[3]=""}var oe=Z[2],yt="";if(this.options.pedantic){var zt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(oe);zt?(oe=zt[1],yt=zt[3]):yt=""}else yt=Z[3]?Z[3].slice(1,-1):"";oe=oe.trim().replace(/^<([\s\S]*)>$/,"$1");var lt=Y(Z,{href:oe&&oe.replace(this.rules.inline._escapes,"$1"),title:yt&&yt.replace(this.rules.inline._escapes,"$1")},Z[0]);return lt}},Tt.reflink=function(Be,Z){var J;if((J=this.rules.inline.reflink.exec(Be))||(J=this.rules.inline.nolink.exec(Be))){var je=(J[2]||J[1]).replace(/\s+/g," ");if(je=Z[je.toLowerCase()],!je||!je.href){var Re=J[0].charAt(0);return{type:"text",raw:Re,text:Re}}var oe=Y(J,je,J[0]);return oe}},Tt.strong=function(Be,Z,J){J===void 0&&(J="");var je=this.rules.inline.strong.start.exec(Be);if(je&&(!je[1]||je[1]&&(J===""||this.rules.inline.punctuation.exec(J)))){Z=Z.slice(-1*Be.length);var Re=je[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Re.lastIndex=0;for(var oe;(je=Re.exec(Z))!=null;)if(oe=this.rules.inline.strong.middle.exec(Z.slice(0,je.index+3)),oe)return{type:"strong",raw:Be.slice(0,oe[0].length),text:Be.slice(2,oe[0].length-2)}}},Tt.em=function(Be,Z,J){J===void 0&&(J="");var je=this.rules.inline.em.start.exec(Be);if(je&&(!je[1]||je[1]&&(J===""||this.rules.inline.punctuation.exec(J)))){Z=Z.slice(-1*Be.length);var Re=je[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Re.lastIndex=0;for(var oe;(je=Re.exec(Z))!=null;)if(oe=this.rules.inline.em.middle.exec(Z.slice(0,je.index+2)),oe)return{type:"em",raw:Be.slice(0,oe[0].length),text:Be.slice(1,oe[0].length-1)}}},Tt.codespan=function(Be){var Z=this.rules.inline.code.exec(Be);if(Z){var J=Z[2].replace(/\n/g," "),je=/[^ ]/.test(J),Re=J.startsWith(" ")&&J.endsWith(" ");return je&&Re&&(J=J.substring(1,J.length-1)),J=V(J,!0),{type:"codespan",raw:Z[0],text:J}}},Tt.br=function(Be){var Z=this.rules.inline.br.exec(Be);if(Z)return{type:"br",raw:Z[0]}},Tt.del=function(Be){var Z=this.rules.inline.del.exec(Be);if(Z)return{type:"del",raw:Z[0],text:Z[1]}},Tt.autolink=function(Be,Z){var J=this.rules.inline.autolink.exec(Be);if(J){var je,Re;return J[2]==="@"?(je=V(this.options.mangle?Z(J[1]):J[1]),Re="mailto:"+je):(je=V(J[1]),Re=je),{type:"link",raw:J[0],text:je,href:Re,tokens:[{type:"text",raw:je,text:je}]}}},Tt.url=function(Be,Z){var J;if(J=this.rules.inline.url.exec(Be)){var je,Re;if(J[2]==="@")je=V(this.options.mangle?Z(J[0]):J[0]),Re="mailto:"+je;else{var oe;do oe=J[0],J[0]=this.rules.inline._backpedal.exec(J[0])[0];while(oe!==J[0]);je=V(J[0]),J[1]==="www."?Re="http://"+je:Re=je}return{type:"link",raw:J[0],text:je,href:Re,tokens:[{type:"text",raw:je,text:je}]}}},Tt.inlineText=function(Be,Z,J){var je=this.rules.inline.text.exec(Be);if(je){var Re;return Z?Re=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(je[0]):V(je[0]):je[0]:Re=V(this.options.smartypants?J(je[0]):je[0]),{type:"text",raw:je[0],text:Re}}},Et}(),ie=H.noopTest,ve=H.edit,Ee=H.merge,Le={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:ie,table:ie,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Le._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Le._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Le.def=ve(Le.def).replace("label",Le._label).replace("title",Le._title).getRegex(),Le.bullet=/(?:[*+-]|\d{1,9}[.)])/,Le.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Le.item=ve(Le.item,"gm").replace(/bull/g,Le.bullet).getRegex(),Le.list=ve(Le.list).replace(/bull/g,Le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Le.def.source+")").getRegex(),Le._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",Le._comment=/<!--(?!-?>)[\s\S]*?-->/,Le.html=ve(Le.html,"i").replace("comment",Le._comment).replace("tag",Le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Le.paragraph=ve(Le._paragraph).replace("hr",Le.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",Le._tag).getRegex(),Le.blockquote=ve(Le.blockquote).replace("paragraph",Le.paragraph).getRegex(),Le.normal=Ee({},Le),Le.gfm=Ee({},Le.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*|$)"}),Le.gfm.nptable=ve(Le.gfm.nptable).replace("hr",Le.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",Le._tag).getRegex(),Le.gfm.table=ve(Le.gfm.table).replace("hr",Le.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",Le._tag).getRegex(),Le.pedantic=Ee({},Le.normal,{html:ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Le._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:ie,paragraph:ve(Le.normal._paragraph).replace("hr",Le.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var He={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ie,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:ie,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};He._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",He.punctuation=ve(He.punctuation).replace(/punctuation/g,He._punctuation).getRegex(),He._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",He._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",He.em.start=ve(He.em.start).replace(/punctuation/g,He._punctuation).getRegex(),He.em.middle=ve(He.em.middle).replace(/punctuation/g,He._punctuation).replace(/overlapSkip/g,He._overlapSkip).getRegex(),He.em.endAst=ve(He.em.endAst,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.em.endUnd=ve(He.em.endUnd,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.strong.start=ve(He.strong.start).replace(/punctuation/g,He._punctuation).getRegex(),He.strong.middle=ve(He.strong.middle).replace(/punctuation/g,He._punctuation).replace(/blockSkip/g,He._blockSkip).getRegex(),He.strong.endAst=ve(He.strong.endAst,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.strong.endUnd=ve(He.strong.endUnd,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.blockSkip=ve(He._blockSkip,"g").getRegex(),He.overlapSkip=ve(He._overlapSkip,"g").getRegex(),He._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,He._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,He._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])?)+(?![-_])/,He.autolink=ve(He.autolink).replace("scheme",He._scheme).replace("email",He._email).getRegex(),He._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,He.tag=ve(He.tag).replace("comment",Le._comment).replace("attribute",He._attribute).getRegex(),He._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,He._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,He._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,He.link=ve(He.link).replace("label",He._label).replace("href",He._href).replace("title",He._title).getRegex(),He.reflink=ve(He.reflink).replace("label",He._label).getRegex(),He.reflinkSearch=ve(He.reflinkSearch,"g").replace("reflink",He.reflink).replace("nolink",He.nolink).getRegex(),He.normal=Ee({},He),He.pedantic=Ee({},He.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:ve(/^!?\[(label)\]\((.*?)\)/).replace("label",He._label).getRegex(),reflink:ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",He._label).getRegex()}),He.gfm=Ee({},He.normal,{escape:ve(He.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),He.gfm.url=ve(He.gfm.url,"i").replace("email",He.gfm._extended_email).getRegex(),He.breaks=Ee({},He.gfm,{br:ve(He.br).replace("{2,}","*").getRegex(),text:ve(He.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ge={block:Le,inline:He},Fe=h.defaults,Q=ge.block,fe=ge.inline;function Je(Et){return Et.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 ne(Et){var Tt="",Rt,Be,Z=Et.length;for(Rt=0;Rt<Z;Rt++)Be=Et.charCodeAt(Rt),Math.random()>.5&&(Be="x"+Be.toString(16)),Tt+="&#"+Be+";";return Tt}var X=function(){function Et(Rt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Rt||Fe,this.options.tokenizer=this.options.tokenizer||new ce,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Be={block:Q.normal,inline:fe.normal};this.options.pedantic?(Be.block=Q.pedantic,Be.inline=fe.pedantic):this.options.gfm&&(Be.block=Q.gfm,this.options.breaks?Be.inline=fe.breaks:Be.inline=fe.gfm),this.tokenizer.rules=Be}Et.lex=function(Be,Z){var J=new Et(Z);return J.lex(Be)};var Tt=Et.prototype;return Tt.lex=function(Be){return Be=Be.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Be,this.tokens,!0),this.inline(this.tokens),this.tokens},Tt.blockTokens=function(Be,Z,J){Z===void 0&&(Z=[]),J===void 0&&(J=!0),Be=Be.replace(/^ +$/gm,"");for(var je,Re,oe,yt;Be;){if(je=this.tokenizer.space(Be)){Be=Be.substring(je.raw.length),je.type&&Z.push(je);continue}if(je=this.tokenizer.code(Be,Z)){Be=Be.substring(je.raw.length),je.type?Z.push(je):(yt=Z[Z.length-1],yt.raw+=`
`+je.raw,yt.text+=`
`+je.text);continue}if(je=this.tokenizer.fences(Be)){Be=Be.substring(je.raw.length),Z.push(je);continue}if(je=this.tokenizer.heading(Be)){Be=Be.substring(je.raw.length),Z.push(je);continue}if(je=this.tokenizer.nptable(Be)){Be=Be.substring(je.raw.length),Z.push(je);continue}if(je=this.tokenizer.hr(Be)){Be=Be.substring(je.raw.length),Z.push(je);continue}if(je=this.tokenizer.blockquote(Be)){Be=Be.substring(je.raw.length),je.tokens=this.blockTokens(je.text,[],J),Z.push(je);continue}if(je=this.tokenizer.list(Be)){for(Be=Be.substring(je.raw.length),oe=je.items.length,Re=0;Re<oe;Re++)je.items[Re].tokens=this.blockTokens(je.items[Re].text,[],!1);Z.push(je);continue}if(je=this.tokenizer.html(Be)){Be=Be.substring(je.raw.length),Z.push(je);continue}if(J&&(je=this.tokenizer.def(Be))){Be=Be.substring(je.raw.length),this.tokens.links[je.tag]||(this.tokens.links[je.tag]={href:je.href,title:je.title});continue}if(je=this.tokenizer.table(Be)){Be=Be.substring(je.raw.length),Z.push(je);continue}if(je=this.tokenizer.lheading(Be)){Be=Be.substring(je.raw.length),Z.push(je);continue}if(J&&(je=this.tokenizer.paragraph(Be))){Be=Be.substring(je.raw.length),Z.push(je);continue}if(je=this.tokenizer.text(Be,Z)){Be=Be.substring(je.raw.length),je.type?Z.push(je):(yt=Z[Z.length-1],yt.raw+=`
`+je.raw,yt.text+=`
`+je.text);continue}if(Be){var zt="Infinite loop on byte: "+Be.charCodeAt(0);if(this.options.silent){console.error(zt);break}else throw new Error(zt)}}return Z},Tt.inline=function(Be){var Z,J,je,Re,oe,yt,zt=Be.length;for(Z=0;Z<zt;Z++){yt=Be[Z];switch(yt.type){case"paragraph":case"text":case"heading":{yt.tokens=[],this.inlineTokens(yt.text,yt.tokens);break}case"table":{for(yt.tokens={header:[],cells:[]},Re=yt.header.length,J=0;J<Re;J++)yt.tokens.header[J]=[],this.inlineTokens(yt.header[J],yt.tokens.header[J]);for(Re=yt.cells.length,J=0;J<Re;J++)for(oe=yt.cells[J],yt.tokens.cells[J]=[],je=0;je<oe.length;je++)yt.tokens.cells[J][je]=[],this.inlineTokens(oe[je],yt.tokens.cells[J][je]);break}case"blockquote":{this.inline(yt.tokens);break}case"list":{for(Re=yt.items.length,J=0;J<Re;J++)this.inline(yt.items[J].tokens);break}}}return Be},Tt.inlineTokens=function(Be,Z,J,je,Re){Z===void 0&&(Z=[]),J===void 0&&(J=!1),je===void 0&&(je=!1),Re===void 0&&(Re="");var oe,yt=Be,zt;if(this.tokens.links){var lt=Object.keys(this.tokens.links);if(lt.length>0)for(;(zt=this.tokenizer.rules.inline.reflinkSearch.exec(yt))!=null;)lt.includes(zt[0].slice(zt[0].lastIndexOf("[")+1,-1))&&(yt=yt.slice(0,zt.index)+"["+"a".repeat(zt[0].length-2)+"]"+yt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(zt=this.tokenizer.rules.inline.blockSkip.exec(yt))!=null;)yt=yt.slice(0,zt.index)+"["+"a".repeat(zt[0].length-2)+"]"+yt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Be;){if(oe=this.tokenizer.escape(Be)){Be=Be.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.tag(Be,J,je)){Be=Be.substring(oe.raw.length),J=oe.inLink,je=oe.inRawBlock,Z.push(oe);continue}if(oe=this.tokenizer.link(Be)){Be=Be.substring(oe.raw.length),oe.type==="link"&&(oe.tokens=this.inlineTokens(oe.text,[],!0,je)),Z.push(oe);continue}if(oe=this.tokenizer.reflink(Be,this.tokens.links)){Be=Be.substring(oe.raw.length),oe.type==="link"&&(oe.tokens=this.inlineTokens(oe.text,[],!0,je)),Z.push(oe);continue}if(oe=this.tokenizer.strong(Be,yt,Re)){Be=Be.substring(oe.raw.length),oe.tokens=this.inlineTokens(oe.text,[],J,je),Z.push(oe);continue}if(oe=this.tokenizer.em(Be,yt,Re)){Be=Be.substring(oe.raw.length),oe.tokens=this.inlineTokens(oe.text,[],J,je),Z.push(oe);continue}if(oe=this.tokenizer.codespan(Be)){Be=Be.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.br(Be)){Be=Be.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.del(Be)){Be=Be.substring(oe.raw.length),oe.tokens=this.inlineTokens(oe.text,[],J,je),Z.push(oe);continue}if(oe=this.tokenizer.autolink(Be,ne)){Be=Be.substring(oe.raw.length),Z.push(oe);continue}if(!J&&(oe=this.tokenizer.url(Be,ne))){Be=Be.substring(oe.raw.length),Z.push(oe);continue}if(oe=this.tokenizer.inlineText(Be,je,Je)){Be=Be.substring(oe.raw.length),Re=oe.raw.slice(-1),Z.push(oe);continue}if(Be){var $t="Infinite loop on byte: "+Be.charCodeAt(0);if(this.options.silent){console.error($t);break}else throw new Error($t)}}return Z},E(Et,null,[{key:"rules",get:function(){return{block:Q,inline:fe}}}]),Et}(),G=h.defaults,te=H.cleanUrl,we=H.escape,he=function(){function Et(Rt){this.options=Rt||G}var Tt=Et.prototype;return Tt.code=function(Be,Z,J){var je=(Z||"").match(/\S*/)[0];if(this.options.highlight){var Re=this.options.highlight(Be,je);Re!=null&&Re!==Be&&(J=!0,Be=Re)}return je?'<pre><code class="'+this.options.langPrefix+we(je,!0)+'">'+(J?Be:we(Be,!0))+`</code></pre>
`:"<pre><code>"+(J?Be:we(Be,!0))+`</code></pre>
`},Tt.blockquote=function(Be){return`<blockquote>
`+Be+`</blockquote>
`},Tt.html=function(Be){return Be},Tt.heading=function(Be,Z,J,je){return this.options.headerIds?"<h"+Z+' id="'+this.options.headerPrefix+je.slug(J)+'">'+Be+"</h"+Z+`>
`:"<h"+Z+">"+Be+"</h"+Z+`>
`},Tt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Tt.list=function(Be,Z,J){var je=Z?"ol":"ul",Re=Z&&J!==1?' start="'+J+'"':"";return"<"+je+Re+`>
`+Be+"</"+je+`>
`},Tt.listitem=function(Be){return"<li>"+Be+`</li>
`},Tt.checkbox=function(Be){return"<input "+(Be?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Tt.paragraph=function(Be){return"<p>"+Be+`</p>
`},Tt.table=function(Be,Z){return Z&&(Z="<tbody>"+Z+"</tbody>"),`<table>
<thead>
`+Be+`</thead>
`+Z+`</table>
`},Tt.tablerow=function(Be){return`<tr>
`+Be+`</tr>
`},Tt.tablecell=function(Be,Z){var J=Z.header?"th":"td",je=Z.align?"<"+J+' align="'+Z.align+'">':"<"+J+">";return je+Be+"</"+J+`>
`},Tt.strong=function(Be){return"<strong>"+Be+"</strong>"},Tt.em=function(Be){return"<em>"+Be+"</em>"},Tt.codespan=function(Be){return"<code>"+Be+"</code>"},Tt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Tt.del=function(Be){return"<del>"+Be+"</del>"},Tt.link=function(Be,Z,J){if(Be=te(this.options.sanitize,this.options.baseUrl,Be),Be===null)return J;var je='<a href="'+we(Be)+'"';return Z&&(je+=' title="'+Z+'"'),je+=">"+J+"</a>",je},Tt.image=function(Be,Z,J){if(Be=te(this.options.sanitize,this.options.baseUrl,Be),Be===null)return J;var je='<img src="'+Be+'" alt="'+J+'"';return Z&&(je+=' title="'+Z+'"'),je+=this.options.xhtml?"/>":">",je},Tt.text=function(Be){return Be},Et}(),Pe=function(){function Et(){}var Tt=Et.prototype;return Tt.strong=function(Be){return Be},Tt.em=function(Be){return Be},Tt.codespan=function(Be){return Be},Tt.del=function(Be){return Be},Tt.html=function(Be){return Be},Tt.text=function(Be){return Be},Tt.link=function(Be,Z,J){return""+J},Tt.image=function(Be,Z,J){return""+J},Tt.br=function(){return""},Et}(),Oe=function(){function Et(){this.seen={}}var Tt=Et.prototype;return Tt.slug=function(Be){var Z=Be.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Z)){var J=Z;do this.seen[J]++,Z=J+"-"+this.seen[J];while(this.seen.hasOwnProperty(Z))}return this.seen[Z]=0,Z},Et}(),le=h.defaults,me=H.unescape,_e=function(){function Et(Rt){this.options=Rt||le,this.options.renderer=this.options.renderer||new he,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Pe,this.slugger=new Oe}Et.parse=function(Be,Z){var J=new Et(Z);return J.parse(Be)};var Tt=Et.prototype;return Tt.parse=function(Be,Z){Z===void 0&&(Z=!0);var J="",je,Re,oe,yt,zt,lt,$t,cr,cn,pr,gr,Zt,Vt,mt,Yr,Tn,Hn,ei,ji=Be.length;for(je=0;je<ji;je++){pr=Be[je];switch(pr.type){case"space":continue;case"hr":{J+=this.renderer.hr();continue}case"heading":{J+=this.renderer.heading(this.parseInline(pr.tokens),pr.depth,me(this.parseInline(pr.tokens,this.textRenderer)),this.slugger);continue}case"code":{J+=this.renderer.code(pr.text,pr.lang,pr.escaped);continue}case"table":{for(cr="",$t="",yt=pr.header.length,Re=0;Re<yt;Re++)$t+=this.renderer.tablecell(this.parseInline(pr.tokens.header[Re]),{header:!0,align:pr.align[Re]});for(cr+=this.renderer.tablerow($t),cn="",yt=pr.cells.length,Re=0;Re<yt;Re++){for(lt=pr.tokens.cells[Re],$t="",zt=lt.length,oe=0;oe<zt;oe++)$t+=this.renderer.tablecell(this.parseInline(lt[oe]),{header:!1,align:pr.align[oe]});cn+=this.renderer.tablerow($t)}J+=this.renderer.table(cr,cn);continue}case"blockquote":{cn=this.parse(pr.tokens),J+=this.renderer.blockquote(cn);continue}case"list":{for(gr=pr.ordered,Zt=pr.start,Vt=pr.loose,yt=pr.items.length,cn="",Re=0;Re<yt;Re++)Yr=pr.items[Re],Tn=Yr.checked,Hn=Yr.task,mt="",Yr.task&&(ei=this.renderer.checkbox(Tn),Vt?Yr.tokens.length>0&&Yr.tokens[0].type==="text"?(Yr.tokens[0].text=ei+" "+Yr.tokens[0].text,Yr.tokens[0].tokens&&Yr.tokens[0].tokens.length>0&&Yr.tokens[0].tokens[0].type==="text"&&(Yr.tokens[0].tokens[0].text=ei+" "+Yr.tokens[0].tokens[0].text)):Yr.tokens.unshift({type:"text",text:ei}):mt+=ei),mt+=this.parse(Yr.tokens,Vt),cn+=this.renderer.listitem(mt,Hn,Tn);J+=this.renderer.list(cn,gr,Zt);continue}case"html":{J+=this.renderer.html(pr.text);continue}case"paragraph":{J+=this.renderer.paragraph(this.parseInline(pr.tokens));continue}case"text":{for(cn=pr.tokens?this.parseInline(pr.tokens):pr.text;je+1<ji&&Be[je+1].type==="text";)pr=Be[++je],cn+=`
`+(pr.tokens?this.parseInline(pr.tokens):pr.text);J+=Z?this.renderer.paragraph(cn):cn;continue}default:{var Ln='Token with "'+pr.type+'" type was not found.';if(this.options.silent){console.error(Ln);return}else throw new Error(Ln)}}}return J},Tt.parseInline=function(Be,Z){Z=Z||this.renderer;var J="",je,Re,oe=Be.length;for(je=0;je<oe;je++){Re=Be[je];switch(Re.type){case"escape":{J+=Z.text(Re.text);break}case"html":{J+=Z.html(Re.text);break}case"link":{J+=Z.link(Re.href,Re.title,this.parseInline(Re.tokens,Z));break}case"image":{J+=Z.image(Re.href,Re.title,Re.text);break}case"strong":{J+=Z.strong(this.parseInline(Re.tokens,Z));break}case"em":{J+=Z.em(this.parseInline(Re.tokens,Z));break}case"codespan":{J+=Z.codespan(Re.text);break}case"br":{J+=Z.br();break}case"del":{J+=Z.del(this.parseInline(Re.tokens,Z));break}case"text":{J+=Z.text(Re.text);break}default:{var yt='Token with "'+Re.type+'" type was not found.';if(this.options.silent){console.error(yt);return}else throw new Error(yt)}}}return J},Et}(),$e=H.merge,gt=H.checkSanitizeDeprecation,et=H.escape,Ie=h.getDefaults,rt=h.changeDefaults,Ge=h.defaults;function vt(Et,Tt,Rt){if(typeof Et=="undefined"||Et===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Et!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Et)+", string expected");if(typeof Tt=="function"&&(Rt=Tt,Tt=null),Tt=$e({},vt.defaults,Tt||{}),gt(Tt),Rt){var Be=Tt.highlight,Z;try{Z=X.lex(Et,Tt)}catch(oe){return Rt(oe)}var J=function(yt){var zt;if(!yt)try{zt=_e.parse(Z,Tt)}catch(lt){yt=lt}return Tt.highlight=Be,yt?Rt(yt):Rt(null,zt)};if(!Be||Be.length<3)return J();if(delete Tt.highlight,!Z.length)return J();var je=0;vt.walkTokens(Z,function(oe){oe.type==="code"&&(je++,setTimeout(function(){Be(oe.text,oe.lang,function(yt,zt){if(yt)return J(yt);zt!=null&&zt!==oe.text&&(oe.text=zt,oe.escaped=!0),je--,je===0&&J()})},0))}),je===0&&J();return}try{var Re=X.lex(Et,Tt);return Tt.walkTokens&&vt.walkTokens(Re,Tt.walkTokens),_e.parse(Re,Tt)}catch(oe){if(oe.message+=`
Please report this to https://github.com/markedjs/marked.`,Tt.silent)return"<p>An error occurred:</p><pre>"+et(oe.message+"",!0)+"</pre>";throw oe}}vt.options=vt.setOptions=function(Et){return $e(vt.defaults,Et),rt(vt.defaults),vt},vt.getDefaults=Ie,vt.defaults=Ge,vt.use=function(Et){var Tt=$e({},Et);if(Et.renderer&&function(){var Be=vt.defaults.renderer||new he,Z=function(Re){var oe=Be[Re];Be[Re]=function(){for(var yt=arguments.length,zt=new Array(yt),lt=0;lt<yt;lt++)zt[lt]=arguments[lt];var $t=Et.renderer[Re].apply(Be,zt);return $t===!1&&($t=oe.apply(Be,zt)),$t}};for(var J in Et.renderer)Z(J);Tt.renderer=Be}(),Et.tokenizer&&function(){var Be=vt.defaults.tokenizer||new ce,Z=function(Re){var oe=Be[Re];Be[Re]=function(){for(var yt=arguments.length,zt=new Array(yt),lt=0;lt<yt;lt++)zt[lt]=arguments[lt];var $t=Et.tokenizer[Re].apply(Be,zt);return $t===!1&&($t=oe.apply(Be,zt)),$t}};for(var J in Et.tokenizer)Z(J);Tt.tokenizer=Be}(),Et.walkTokens){var Rt=vt.defaults.walkTokens;Tt.walkTokens=function(Be){Et.walkTokens(Be),Rt&&Rt(Be)}}vt.setOptions(Tt)},vt.walkTokens=function(Et,Tt){for(var Rt=w(Et),Be;!(Be=Rt()).done;){var Z=Be.value;Tt(Z);switch(Z.type){case"table":{for(var J=w(Z.tokens.header),je;!(je=J()).done;){var Re=je.value;vt.walkTokens(Re,Tt)}for(var oe=w(Z.tokens.cells),yt;!(yt=oe()).done;)for(var zt=yt.value,lt=w(zt),$t;!($t=lt()).done;){var cr=$t.value;vt.walkTokens(cr,Tt)}break}case"list":{vt.walkTokens(Z.items,Tt);break}default:Z.tokens&&vt.walkTokens(Z.tokens,Tt)}}},vt.Parser=_e,vt.parser=_e.parse,vt.Renderer=he,vt.TextRenderer=Pe,vt.Lexer=X,vt.lexer=X.lex,vt.Tokenizer=ce,vt.Slugger=Oe,vt.parse=vt;var Ot=vt;return Ot})},"DlR+":function(j,P,d){var O=d("MFOe"),E=O.Global,C=O.trim;j.exports={name:"cookieStorage",read:w,write:h,each:m,remove:c,clearAll:i};var v=E.document;function w(o){if(!o||!r(o))return null;var n="(?:^|.*;\\s*)"+escape(o).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(v.cookie.replace(new RegExp(n),"$1"))}function m(o){for(var n=v.cookie.split(/; ?/g),e=n.length-1;e>=0;e--){if(!C(n[e]))continue;var s=n[e].split("="),t=unescape(s[0]),a=unescape(s[1]);o(a,t)}}function h(o,n){if(!o)return;v.cookie=escape(o)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function c(o){if(!o||!r(o))return;v.cookie=escape(o)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function i(){m(function(o,n){c(n)})}function r(o){return new RegExp("(?:^|;\\s*)"+escape(o).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(v.cookie)}},Ducp:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("+TT/"),v=d("XpcN"),w=E.Group,m=["width","height"],h=["x","y"],c=v.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new w),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new w),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(r,o,n,e,s,t,a){var l=this;c.superCall(this,"renderInner",r,o,n,e,s,t,a);var u=this._controllerGroup,f=o.get("pageIconSize",!0);O.isArray(f)||(f=[f,f]),g("pagePrev",0);var p=o.getModel("pageTextStyle");u.add(new E.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),g("pageNext",1);function g(A,y){var x=A+"DataIndex",T=E.createIcon(o.get("pageIcons",!0)[o.getOrient().name][y],{onclick:O.bind(l._pageGo,l,x,o,e)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});T.name=A,u.add(T)}},layoutInner:function(r,o,n,e,s,t){var a=this.getSelectorGroup(),l=r.getOrient().index,u=m[l],f=h[l],p=m[1-l],g=h[1-l];s&&C.box("horizontal",a,r.get("selectorItemGap",!0));var A=r.get("selectorButtonGap",!0),y=a.getBoundingRect(),x=[-y.x,-y.y],T=O.clone(n);s&&(T[u]=n[u]-y[u]-A);var S=this._layoutContentAndController(r,e,T,l,u,p,g);if(s){if(t==="end")x[l]+=S[u]+A;else{var b=y[u]+A;x[l]-=b,S[f]-=b}S[u]+=y[u]+A,x[1-l]+=S[g]+S[p]/2-y[p]/2,S[p]=Math.max(S[p],y[p]),S[g]=Math.min(S[g],y[g]+x[1-l]),a.attr("position",x)}return S},_layoutContentAndController:function(r,o,n,e,s,t,a){var l=this.getContentGroup(),u=this._containerGroup,f=this._controllerGroup;C.box(r.get("orient"),l,r.get("itemGap"),e?n.width:null,e?null:n.height),C.box("horizontal",f,r.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),g=f.getBoundingRect(),A=this._showController=p[s]>n[s],y=[-p.x,-p.y];o||(y[e]=l.position[e]);var x=[0,0],T=[-g.x,-g.y],S=O.retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(A){var b=r.get("pageButtonPosition",!0);b==="end"?T[e]+=n[s]-g[s]:x[e]+=g[s]+S}T[1-e]+=p[t]/2-g[t]/2,l.attr("position",y),u.attr("position",x),f.attr("position",T);var _={x:0,y:0};if(_[s]=A?n[s]:p[s],_[t]=Math.max(p[t],g[t]),_[a]=Math.min(0,g[a]+T[1-e]),u.__rectSize=n[s],A){var I={x:0,y:0};I[s]=Math.max(n[s]-g[s]-S,0),I[t]=_[t],u.setClipPath(new E.Rect({shape:I})),u.__rectSize=I[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,o,n){var e=this._getPageInfo(o)[r];e!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:o.id})},_updatePageInfoView:function(r,o){var n=this._controllerGroup;O.each(["pagePrev","pageNext"],function(u){var f=o[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 e=n.childOfName("pageText"),s=r.get("pageFormatter"),t=o.pageIndex,a=t!=null?t+1:0,l=o.pageCount;e&&s&&e.setStyle("text",O.isString(s)?s.replace("{current}",a).replace("{total}",l):s({current:a,total:l}))},_getPageInfo:function(r){var o=r.get("scrollDataIndex",!0),n=this.getContentGroup(),e=this._containerGroup.__rectSize,s=r.getOrient().index,t=m[s],a=h[s],l=this._findTargetItemIndex(o),u=n.children(),f=u[l],p=u.length,g=p?1:0,A={contentPosition:n.position.slice(),pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return A;var y=_(f);A.contentPosition[s]=-y.s;for(var x=l+1,T=y,S=y,b=null;x<=p;++x)b=_(u[x]),(!b&&S.e>T.s+e||b&&!I(b,T.s))&&(S.i>T.i?T=S:T=b,T&&(A.pageNextDataIndex==null&&(A.pageNextDataIndex=T.i),++A.pageCount)),S=b;for(var x=l-1,T=y,S=y,b=null;x>=-1;--x)b=_(u[x]),(!b||!I(S,b.s))&&T.i<S.i&&(S=T,A.pagePrevDataIndex==null&&(A.pagePrevDataIndex=T.i),++A.pageCount,++A.pageIndex),T=b;return A;function _(L){if(L){var D=L.getBoundingRect(),N=D[a]+L.position[s];return{s:N,e:N+D[t],i:L.__legendDataIndex}}}function I(L,D){return L.e>=D&&L.s<=D+e}},_findTargetItemIndex:function(r){if(!this._showController)return 0;var o,n=this.getContentGroup(),e;return n.eachChild(function(s,t){var a=s.__legendDataIndex;e==null&&a!=null&&(e=t),a===r&&(o=t)}),o!=null?o:e}}),i=c;j.exports=i},"E/ki":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},E2g8:function(j,P,d){(function(O,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(C,v){j.exports=v()})(this,function(){"use strict";function C(he){var Pe=typeof he;return he!==null&&(Pe==="object"||Pe==="function")}function v(he){return typeof he=="function"}var w=void 0;Array.isArray?w=Array.isArray:w=function(Pe){return Object.prototype.toString.call(Pe)==="[object Array]"};var m=w,h=0,c=void 0,i=void 0,r=function(Pe,Oe){y[h]=Pe,y[h+1]=Oe,h+=2,h===2&&(i?i(x):S())};function o(he){i=he}function n(he){r=he}var e=typeof window!="undefined"?window:void 0,s=e||{},t=s.MutationObserver||s.WebKitMutationObserver,a=typeof self=="undefined"&&typeof O!="undefined"&&{}.toString.call(O)==="[object process]",l=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return O.nextTick(x)}}function f(){return typeof c!="undefined"?function(){c(x)}:A()}function p(){var he=0,Pe=new t(x),Oe=document.createTextNode("");return Pe.observe(Oe,{characterData:!0}),function(){Oe.data=he=++he%2}}function g(){var he=new MessageChannel;return he.port1.onmessage=x,function(){return he.port2.postMessage(0)}}function A(){var he=setTimeout;return function(){return he(x,1)}}var y=new Array(1e3);function x(){for(var he=0;he<h;he+=2){var Pe=y[he],Oe=y[he+1];Pe(Oe),y[he]=void 0,y[he+1]=void 0}h=0}function T(){try{var he=Function("return this")().require("vertx");return c=he.runOnLoop||he.runOnContext,f()}catch(Pe){return A()}}var S=void 0;a?S=u():t?S=p():l?S=g():e===void 0&&!0?S=T():S=A();function b(he,Pe){var Oe=this,le=new this.constructor(L);le[I]===void 0&&ge(le);var me=Oe._state;if(me){var _e=arguments[me-1];r(function(){return ve(me,le,_e,Oe._result)})}else ce(Oe,le,he,Pe);return le}function _(he){var Pe=this;if(he&&typeof he=="object"&&he.constructor===Pe)return he;var Oe=new Pe(L);return V(Oe,he),Oe}var I=Math.random().toString(36).substring(2);function L(){}var D=void 0,N=1,M=2;function B(){return new TypeError("You cannot resolve a promise with itself")}function R(){return new TypeError("A promises callback cannot return that same promise.")}function H(he,Pe,Oe,le){try{he.call(Pe,Oe,le)}catch(me){return me}}function F(he,Pe,Oe){r(function(le){var me=!1,_e=H(Oe,Pe,function($e){if(me)return;me=!0,Pe!==$e?V(le,$e):Y(le,$e)},function($e){if(me)return;me=!0,q(le,$e)},"Settle: "+(le._label||" unknown promise"));!me&&_e&&(me=!0,q(le,_e))},he)}function K(he,Pe){Pe._state===N?Y(he,Pe._result):Pe._state===M?q(he,Pe._result):ce(Pe,void 0,function(Oe){return V(he,Oe)},function(Oe){return q(he,Oe)})}function U(he,Pe,Oe){Pe.constructor===he.constructor&&Oe===b&&Pe.constructor.resolve===_?K(he,Pe):Oe===void 0?Y(he,Pe):v(Oe)?F(he,Pe,Oe):Y(he,Pe)}function V(he,Pe){if(he===Pe)q(he,B());else if(C(Pe)){var Oe=void 0;try{Oe=Pe.then}catch(le){q(he,le);return}U(he,Pe,Oe)}else Y(he,Pe)}function z(he){he._onerror&&he._onerror(he._result),ie(he)}function Y(he,Pe){if(he._state!==D)return;he._result=Pe,he._state=N,he._subscribers.length!==0&&r(ie,he)}function q(he,Pe){if(he._state!==D)return;he._state=M,he._result=Pe,r(z,he)}function ce(he,Pe,Oe,le){var me=he._subscribers,_e=me.length;he._onerror=null,me[_e]=Pe,me[_e+N]=Oe,me[_e+M]=le,_e===0&&he._state&&r(ie,he)}function ie(he){var Pe=he._subscribers,Oe=he._state;if(Pe.length===0)return;for(var le=void 0,me=void 0,_e=he._result,$e=0;$e<Pe.length;$e+=3)le=Pe[$e],me=Pe[$e+Oe],le?ve(Oe,le,me,_e):me(_e);he._subscribers.length=0}function ve(he,Pe,Oe,le){var me=v(Oe),_e=void 0,$e=void 0,gt=!0;if(me){try{_e=Oe(le)}catch(et){gt=!1,$e=et}if(Pe===_e){q(Pe,R());return}}else _e=le;Pe._state!==D||(me&&gt?V(Pe,_e):gt===!1?q(Pe,$e):he===N?Y(Pe,_e):he===M&&q(Pe,_e))}function Ee(he,Pe){try{Pe(function(le){V(he,le)},function(le){q(he,le)})}catch(Oe){q(he,Oe)}}var Le=0;function He(){return Le++}function ge(he){he[I]=Le++,he._state=void 0,he._result=void 0,he._subscribers=[]}function Fe(){return new Error("Array Methods must be provided an Array")}var Q=function(){function he(Pe,Oe){this._instanceConstructor=Pe,this.promise=new Pe(L),this.promise[I]||ge(this.promise),m(Oe)?(this.length=Oe.length,this._remaining=Oe.length,this._result=new Array(this.length),this.length===0?Y(this.promise,this._result):(this.length=this.length||0,this._enumerate(Oe),this._remaining===0&&Y(this.promise,this._result))):q(this.promise,Fe())}return he.prototype._enumerate=function(Oe){for(var le=0;this._state===D&&le<Oe.length;le++)this._eachEntry(Oe[le],le)},he.prototype._eachEntry=function(Oe,le){var me=this._instanceConstructor,_e=me.resolve;if(_e===_){var $e=void 0,gt=void 0,et=!1;try{$e=Oe.then}catch(rt){et=!0,gt=rt}if($e===b&&Oe._state!==D)this._settledAt(Oe._state,le,Oe._result);else if(typeof $e!="function")this._remaining--,this._result[le]=Oe;else if(me===te){var Ie=new me(L);et?q(Ie,gt):U(Ie,Oe,$e),this._willSettleAt(Ie,le)}else this._willSettleAt(new me(function(rt){return rt(Oe)}),le)}else this._willSettleAt(_e(Oe),le)},he.prototype._settledAt=function(Oe,le,me){var _e=this.promise;_e._state===D&&(this._remaining--,Oe===M?q(_e,me):this._result[le]=me),this._remaining===0&&Y(_e,this._result)},he.prototype._willSettleAt=function(Oe,le){var me=this;ce(Oe,void 0,function(_e){return me._settledAt(N,le,_e)},function(_e){return me._settledAt(M,le,_e)})},he}();function fe(he){return new Q(this,he).promise}function Je(he){var Pe=this;return m(he)?new Pe(function(Oe,le){for(var me=he.length,_e=0;_e<me;_e++)Pe.resolve(he[_e]).then(Oe,le)}):new Pe(function(Oe,le){return le(new TypeError("You must pass an array to race."))})}function ne(he){var Pe=this,Oe=new Pe(L);return q(Oe,he),Oe}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 te=function(){function he(Pe){this[I]=He(),this._result=this._state=void 0,this._subscribers=[],L!==Pe&&(typeof Pe!="function"&&X(),this instanceof he?Ee(this,Pe):G())}return he.prototype.catch=function(Oe){return this.then(null,Oe)},he.prototype.finally=function(Oe){var le=this,me=le.constructor;return v(Oe)?le.then(function(_e){return me.resolve(Oe()).then(function(){return _e})},function(_e){return me.resolve(Oe()).then(function(){throw _e})}):le.then(Oe,Oe)},he}();te.prototype.then=b,te.all=fe,te.race=Je,te.resolve=_,te.reject=ne,te._setScheduler=o,te._setAsap=n,te._asap=r;function we(){var he=void 0;if(typeof E!="undefined")he=E;else if(typeof self!="undefined")he=self;else try{he=Function("return this")()}catch(le){throw new Error("polyfill failed because global object is unavailable in this environment")}var Pe=he.Promise;if(Pe){var Oe=null;try{Oe=Object.prototype.toString.call(Pe.resolve())}catch(le){}if(Oe==="[object Promise]"&&!Pe.cast)return}he.Promise=te}return te.polyfill=we,te.Promise=te,te})}).call(this,d("Q2Ig"),d("IyRk"))},E4JC:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.StreamCipher,w=E.algo,m=[],h=[],c=[],i=w.Rabbit=v.extend({_doReset:function(){for(var n=this._key.words,e=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 t=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],a=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++)a[s]^=t[s+4&7];if(e){var l=e.words,u=l[0],f=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,g=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,A=p>>>16|g&4294901760,y=g<<16|p&65535;a[0]^=p,a[1]^=A,a[2]^=g,a[3]^=y,a[4]^=p,a[5]^=A,a[6]^=g,a[7]^=y;for(var s=0;s<4;s++)r.call(this)}},_doProcessBlock:function(n,e){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 t=0;t<4;t++)m[t]=(m[t]<<8|m[t]>>>24)&16711935|(m[t]<<24|m[t]>>>8)&4278255360,n[e+t]^=m[t]},blockSize:128/32,ivSize:64/32});function r(){for(var o=this._X,n=this._C,e=0;e<8;e++)h[e]=n[e];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 e=0;e<8;e++){var s=o[e]+n[e],t=s&65535,a=s>>>16,l=((t*t>>>17)+t*a>>>15)+a*a,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[e]=l^u}o[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,o[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,o[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,o[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,o[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,o[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,o[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,o[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.Rabbit=v._createHelper(i)}(),O.Rabbit})},E9nw:function(j,P){j.exports=function(){var d=document.getSelection();if(!d.rangeCount)return function(){};for(var O=document.activeElement,E=[],C=0;C<d.rangeCount;C++)E.push(d.getRangeAt(C));switch(O.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":O.blur();break;default:O=null;break}return d.removeAllRanges(),function(){d.type==="Caret"&&d.removeAllRanges(),d.rangeCount||E.forEach(function(v){d.addRange(v)}),O&&O.focus()}}},ELLl:function(j,P,d){(function(O){O(d("VrN/"))})(function(O){var E={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},C=O.Pos;O.defineOption("autoCloseBrackets",!1,function(t,a,l){l&&l!=O.Init&&(t.removeKeyMap(w),t.state.closeBrackets=null),a&&(m(v(a,"pairs")),t.state.closeBrackets=a,t.addKeyMap(w))});function v(t,a){return a=="pairs"&&typeof t=="string"?t:typeof t=="object"&&t[a]!=null?t[a]:E[a]}var w={Backspace:i,Enter:r};function m(t){for(var a=0;a<t.length;a++){var l=t.charAt(a),u="'"+l+"'";w[u]||(w[u]=h(l))}}m(E.pairs+"`");function h(t){return function(a){return n(a,t)}}function c(t){var a=t.state.closeBrackets;if(!a||a.override)return a;var l=t.getModeAt(t.getCursor());return l.closeBrackets||a}function i(t){var a=c(t);if(!a||t.getOption("disableInput"))return O.Pass;for(var l=v(a,"pairs"),u=t.listSelections(),f=0;f<u.length;f++){if(!u[f].empty())return O.Pass;var p=e(t,u[f].head);if(!p||l.indexOf(p)%2!=0)return O.Pass}for(var f=u.length-1;f>=0;f--){var g=u[f].head;t.replaceRange("",C(g.line,g.ch-1),C(g.line,g.ch+1),"+delete")}}function r(t){var a=c(t),l=a&&v(a,"explode");if(!l||t.getOption("disableInput"))return O.Pass;for(var u=t.listSelections(),f=0;f<u.length;f++){if(!u[f].empty())return O.Pass;var p=e(t,u[f].head);if(!p||l.indexOf(p)%2!=0)return O.Pass}t.operation(function(){var g=t.lineSeparator()||`
`;t.replaceSelection(g+g,null),t.execCommand("goCharLeft"),u=t.listSelections();for(var A=0;A<u.length;A++){var y=u[A].head.line;t.indentLine(y,null,!0),t.indentLine(y+1,null,!0)}})}function o(t){var a=O.cmpPos(t.anchor,t.head)>0;return{anchor:new C(t.anchor.line,t.anchor.ch+(a?-1:1)),head:new C(t.head.line,t.head.ch+(a?1:-1))}}function n(t,a){var l=c(t);if(!l||t.getOption("disableInput"))return O.Pass;var u=v(l,"pairs"),f=u.indexOf(a);if(f==-1)return O.Pass;for(var p=v(l,"closeBefore"),g=v(l,"triples"),A=u.charAt(f+1)==a,y=t.listSelections(),x=f%2==0,T,S=0;S<y.length;S++){var b=y[S],_=b.head,I,L=t.getRange(_,C(_.line,_.ch+1));if(x&&!b.empty())I="surround";else if((A||!x)&&L==a)A&&s(t,_)?I="both":g.indexOf(a)>=0&&t.getRange(_,C(_.line,_.ch+3))==a+a+a?I="skipThree":I="skip";else if(A&&_.ch>1&&g.indexOf(a)>=0&&t.getRange(C(_.line,_.ch-2),_)==a+a){if(_.ch>2&&/\bstring/.test(t.getTokenTypeAt(C(_.line,_.ch-2))))return O.Pass;I="addFour"}else if(A){var D=_.ch==0?" ":t.getRange(C(_.line,_.ch-1),_);if(!O.isWordChar(L)&&D!=a&&!O.isWordChar(D))I="both";else return O.Pass}else if(x&&(L.length===0||/\s/.test(L)||p.indexOf(L)>-1))I="both";else return O.Pass;if(!T)T=I;else if(T!=I)return O.Pass}var N=f%2?u.charAt(f-1):a,M=f%2?a:u.charAt(f+1);t.operation(function(){if(T=="skip")t.execCommand("goCharRight");else if(T=="skipThree")for(var B=0;B<3;B++)t.execCommand("goCharRight");else if(T=="surround"){for(var R=t.getSelections(),B=0;B<R.length;B++)R[B]=N+R[B]+M;t.replaceSelections(R,"around"),R=t.listSelections().slice();for(var B=0;B<R.length;B++)R[B]=o(R[B]);t.setSelections(R)}else T=="both"?(t.replaceSelection(N+M,null),t.triggerElectric(N+M),t.execCommand("goCharLeft")):T=="addFour"&&(t.replaceSelection(N+N+N+N,"before"),t.execCommand("goCharRight"))})}function e(t,a){var l=t.getRange(C(a.line,a.ch-1),C(a.line,a.ch+1));return l.length==2?l:null}function s(t,a){var l=t.getTokenAt(C(a.line,a.ch+1));return/\bstring/.test(l.type)&&l.start==a.ch&&(a.ch==0||!/\bstring/.test(t.getTokenTypeAt(a)))}})},ELcG:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){/** @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 C=O,v=C.lib,w=v.WordArray,m=v.Hasher,h=C.algo,c=w.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]),i=w.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=w.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]),o=w.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=w.create([0,1518500249,1859775393,2400959708,2840853838]),e=w.create([1352829926,1548603684,1836072691,2053994217,0]),s=h.RIPEMD160=m.extend({_doReset:function(){this._hash=w.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,y){for(var x=0;x<16;x++){var T=y+x,S=A[T];A[T]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var b=this._hash.words,_=n.words,I=e.words,L=c.words,D=i.words,N=r.words,M=o.words,B,R,H,F,K,U,V,z,Y,q;U=B=b[0],V=R=b[1],z=H=b[2],Y=F=b[3],q=K=b[4];for(var ce,x=0;x<80;x+=1)ce=B+A[y+L[x]]|0,x<16?ce+=t(R,H,F)+_[0]:x<32?ce+=a(R,H,F)+_[1]:x<48?ce+=l(R,H,F)+_[2]:x<64?ce+=u(R,H,F)+_[3]:ce+=f(R,H,F)+_[4],ce=ce|0,ce=p(ce,N[x]),ce=ce+K|0,B=K,K=F,F=p(H,10),H=R,R=ce,ce=U+A[y+D[x]]|0,x<16?ce+=f(V,z,Y)+I[0]:x<32?ce+=u(V,z,Y)+I[1]:x<48?ce+=l(V,z,Y)+I[2]:x<64?ce+=a(V,z,Y)+I[3]:ce+=t(V,z,Y)+I[4],ce=ce|0,ce=p(ce,M[x]),ce=ce+q|0,U=q,q=Y,Y=p(z,10),z=V,V=ce;ce=b[1]+H+Y|0,b[1]=b[2]+F+q|0,b[2]=b[3]+K+U|0,b[3]=b[4]+B+V|0,b[4]=b[0]+R+z|0,b[0]=ce},_doFinalize:function(){var A=this._data,y=A.words,x=this._nDataBytes*8,T=A.sigBytes*8;y[T>>>5]|=128<<24-T%32,y[(T+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,A.sigBytes=(y.length+1)*4,this._process();for(var S=this._hash,b=S.words,_=0;_<5;_++){var I=b[_];b[_]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return S},clone:function(){var A=m.clone.call(this);return A._hash=this._hash.clone(),A}});function t(g,A,y){return g^A^y}function a(g,A,y){return g&A|~g&y}function l(g,A,y){return(g|~A)^y}function u(g,A,y){return g&y|A&~y}function f(g,A,y){return g^(A|~y)}function p(g,A){return g<<A|g>>>32-A}C.RIPEMD160=m._createHelper(s),C.HmacRIPEMD160=m._createHmacHelper(s)}(Math),O.RIPEMD160})},EMyp:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("mFDi"),v=d("K4ya"),w=d("qJCg"),m=d("iLNv"),h=d("vZ6x"),c=["inBrush","outOfBrush"],i="__ecBrushSelect",r="__ecInBrushSelectEvent",o=O.PRIORITY.VISUAL.BRUSH;O.registerLayout(o,function(g,A,y){g.eachComponent({mainType:"brush"},function(x){y&&y.type==="takeGlobalCursor"&&x.setBrushOption(y.key==="brush"?y.brushOption:{brushType:!1})}),n(g)});function n(g){g.eachComponent({mainType:"brush"},function(A){var y=A.brushTargetManager=new h(A.option,g);y.setInputRanges(A.areas,g)})}O.registerVisual(o,function(g,A,y){var x=[],T,S;g.eachComponent({mainType:"brush"},function(b,_){var I={brushId:b.id,brushIndex:_,brushName:b.name,areas:E.clone(b.areas),selected:[]};x.push(I);var L=b.option,D=L.brushLink,N=[],M=[],B=[],R=0;_||(T=L.throttleType,S=L.throttleDelay);var H=E.map(b.areas,function(Y){return u(E.defaults({boundingRect:f[Y.brushType](Y)},Y))}),F=v.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}g.eachSeries(function(Y,q){var ce=B[q]=[];Y.subType==="parallel"?V(Y,q,ce):z(Y,q,ce)});function V(Y,q){var ce=Y.coordinateSystem;R|=ce.hasAxisBrushed(),K(q)&&ce.eachActiveState(Y.getData(),function(ie,ve){ie==="active"&&(M[ve]=1)})}function z(Y,q,ce){var ie=a(Y);if(!ie||l(b,q))return;if(E.each(H,function(Ee){ie[Ee.brushType]&&b.brushTargetManager.controlSeries(Ee,Y,g)&&ce.push(Ee),R|=U(ce)}),K(q)&&U(ce)){var ve=Y.getData();ve.each(function(Ee){t(ie,ce,ve,Ee)&&(M[Ee]=1)})}}g.eachSeries(function(Y,q){var ce={seriesId:Y.id,seriesIndex:q,seriesName:Y.name,dataIndex:[]};I.selected.push(ce);var ie=a(Y),ve=B[q],Ee=Y.getData(),Le=K(q)?function(He){return M[He]?(ce.dataIndex.push(Ee.getRawIndex(He)),"inBrush"):"outOfBrush"}:function(He){return t(ie,ve,Ee,He)?(ce.dataIndex.push(Ee.getRawIndex(He)),"inBrush"):"outOfBrush"};(K(q)?R:U(ve))&&v.applyVisual(c,F,Ee,Le)})}),e(A,T,S,x,y)});function e(g,A,y,x,T){if(!T)return;var S=g.getZr();if(S[r])return;S[i]||(S[i]=s);var b=m.createOrUpdate(S,i,y,A);b(g,x)}function s(g,A){if(!g.isDisposed()){var y=g.getZr();y[r]=!0,g.dispatchAction({type:"brushSelect",batch:A}),y[r]=!1}}function t(g,A,y,x){for(var T=0,S=A.length;T<S;T++){var b=A[T];if(g[b.brushType](x,y,b.selectors,b))return!0}}function a(g){var A=g.brushSelector;if(E.isString(A)){var y=[];return E.each(w,function(T,S){y[S]=function(b,_,I,L){var D=_.getItemLayout(b);return T[A](D,I,L)}}),y}else if(E.isFunction(A)){var x={};return E.each(w,function(T,S){x[S]=A}),x}return A}function l(g,A){var y=g.option.seriesIndex;return y!=null&&y!=="all"&&(E.isArray(y)?E.indexOf(y,A)<0:A!==y)}function u(g){var A=g.selectors={};return E.each(w[g.brushType],function(y,x){A[x]=function(T){return y(T,A,g)}}),g}var f={lineX:E.noop,lineY:E.noop,rect:function(g){return p(g.range)},polygon:function(g){for(var A,y=g.range,x=0,T=y.length;x<T;x++){A=A||[[Infinity,-Infinity],[Infinity,-Infinity]];var S=y[x];S[0]<A[0][0]&&(A[0][0]=S[0]),S[0]>A[0][1]&&(A[0][1]=S[0]),S[1]<A[1][0]&&(A[1][0]=S[1]),S[1]>A[1][1]&&(A[1][1]=S[1])}return A&&p(A)}};function p(g){return new C(g[0][0],g[1][0],g[0][1]-g[0][0],g[1][1]-g[1][0])}P.layoutCovers=n},ERHi:function(j,P,d){var O=d("ProS");d("Z6js"),d("R4Th");var E=d("f5Yq"),C=d("h8O9");O.registerVisual(E("effectScatter","circle")),O.registerLayout(C("effectScatter"))},ETIr:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.WordArray,w=E.enc,m=w.Base64={stringify:function(i){var r=i.words,o=i.sigBytes,n=this._map;i.clamp();for(var e=[],s=0;s<o;s+=3)for(var t=r[s>>>2]>>>24-s%4*8&255,a=r[s+1>>>2]>>>24-(s+1)%4*8&255,l=r[s+2>>>2]>>>24-(s+2)%4*8&255,u=t<<16|a<<8|l,f=0;f<4&&s+f*.75<o;f++)e.push(n.charAt(u>>>6*(3-f)&63));var p=n.charAt(64);if(p)for(;e.length%4;)e.push(p);return e.join("")},parse:function(i){var r=i.length,o=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var e=0;e<o.length;e++)n[o.charCodeAt(e)]=e}var s=o.charAt(64);if(s){var t=i.indexOf(s);t!==-1&&(r=t)}return h(i,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function h(c,i,r){for(var o=[],n=0,e=0;e<i;e++)if(e%4){var s=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=s|t;o[n>>>2]|=a<<24-n%4*8,n++}return v.create(o,n)}}(),O.enc.Base64})},EXcs:function(j,P,d){"use strict";var O=function(){return{height:0,opacity:0}},E=function(h){return{height:h.scrollHeight,opacity:1}},C=function(h){return{height:h.offsetHeight}},v=function(h,c){return c.propertyName==="height"},w={motionName:"ant-motion-collapse",onAppearStart:O,onEnterStart:O,onAppearActive:E,onEnterActive:E,onLeaveStart:C,onLeaveActive:O,onAppearEnd:v,onEnterEnd:v,onLeaveEnd:v,motionDeadline:500};P.a=w},Em2t:function(j,P,d){var O=d("bahg"),E=d("quyA"),C=d("0JQy");function v(w){return E(w)?C(w):O(w)}j.exports=v},Ez2D:function(j,P,d){var O=d("bYtY"),E=d("4NO4");function C(v,w){var m=[],h=v.seriesIndex,c;if(h==null||!(c=w.getSeriesByIndex(h)))return{point:[]};var i=c.getData(),r=E.queryDataIndex(i,v);if(r==null||r<0||O.isArray(r))return{point:[]};var o=i.getItemGraphicEl(r),n=c.coordinateSystem;if(c.getTooltipPosition)m=c.getTooltipPosition(r)||[];else if(n&&n.dataToPoint)m=n.dataToPoint(i.getValues(O.map(n.dimensions,function(s){return i.mapDimension(s)}),r,!0))||[];else if(o){var e=o.getBoundingRect().clone();e.applyTransform(o.transform),m=[e.x+e.width/2,e.y+e.height/2]}return{point:m,el:o}}j.exports=C},"F+F2":function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(){if(typeof ArrayBuffer!="function")return;var E=O,C=E.lib,v=C.WordArray,w=v.init,m=v.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,i=[],r=0;r<c;r++)i[r>>>2]|=h[r]<<24-r%4*8;w.call(this,i,c)}else w.apply(this,arguments)};m.prototype=v}(),O.lib.WordArray})},F0hE:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("ca2m"),v=d("Qxkt"),w=d("ICMv"),m=C.valueAxis;function h(r,o){return E.defaults({show:o},r)}var c=O.extendComponentModel({type:"radar",optionUpdated:function(){var r=this.get("boundaryGap"),o=this.get("splitNumber"),n=this.get("scale"),e=this.get("axisLine"),s=this.get("axisTick"),t=this.get("axisType"),a=this.get("axisLabel"),l=this.get("name"),u=this.get("name.show"),f=this.get("name.formatter"),p=this.get("nameGap"),g=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:o,scale:n,axisLine:e,axisTick:s,axisType:t,axisLabel:a,name:y.text,nameLocation:"end",nameGap:p,nameTextStyle:x,triggerEvent:g},!1),u||(y.name=""),typeof f=="string"){var T=y.name;y.name=f.replace("{value}",T!=null?T:"")}else typeof f=="function"&&(y.name=f(y.name,y));var S=E.extend(new v(y,null,this.ecModel),w);return S.mainType="radar",S.componentIndex=this.componentIndex,S},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:[]}}),i=c;j.exports=i},F5Ls:function(j,P){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 O(E,C){if(E==="china"){var v=d[C.name];if(v){var w=C.center;w[0]+=v[0]/10.5,w[1]+=-v[1]/(10.5/.75)}}}j.exports=O},F7hV:function(j,P,d){var O=d("MBQ8"),E=O.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var C=this.get("progressiveThreshold"),v=this.get("largeThreshold");return v>C&&(C=v),C},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}}});j.exports=E},F9bG:function(j,P,d){var O=d("bYtY"),E=d("ItGF"),C=d("4NO4"),v=C.makeInner,w=v(),m=O.each;function h(s,t,a){if(E.node)return;var l=t.getZr();w(l).records||(w(l).records={}),c(l,t);var u=w(l).records[s]||(w(l).records[s]={});u.handler=a}function c(s,t){if(w(s).initialized)return;w(s).initialized=!0,a("click",O.curry(o,"click")),a("mousemove",O.curry(o,"mousemove")),a("globalout",r);function a(l,u){s.on(l,function(f){var p=n(t);m(w(s).records,function(g){g&&u(g,f,p.dispatchAction)}),i(p.pendings,t)})}}function i(s,t){var a=s.showTip.length,l=s.hideTip.length,u;a?u=s.showTip[a-1]:l&&(u=s.hideTip[l-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}function r(s,t,a){s.handler("leave",null,a)}function o(s,t,a,l){t.handler(s,a,l)}function n(s){var t={showTip:[],hideTip:[]},a=function(l){var u=t[l.type];u?u.push(l):(l.dispatchAction=a,s.dispatchAction(l))};return{dispatchAction:a,pendings:t}}function e(s,t){if(E.node)return;var a=t.getZr(),l=(w(a).records||{})[s];l&&(w(a).records[s]=null)}P.register=h,P.unregister=e},FBjb:function(j,P,d){var O=d("bYtY"),E=d("oVpE"),C=E.createSymbol,v=d("IwbS"),w=d("OELB"),m=w.parsePercent,h=d("x3X8"),c=h.getDefaultLabel;function i(p,g,A){v.Group.call(this),this.updateData(p,g,A)}var r=i.prototype,o=i.getSymbolSize=function(p,g){var A=p.getItemVisual(g,"symbolSize");return A instanceof Array?A.slice():[+A,+A]};function n(p){return[p[0]/2,p[1]/2]}function e(p,g){this.parent.drift(p,g)}r._createSymbol=function(p,g,A,y,x){this.removeAll();var T=g.getItemVisual(A,"color"),S=C(p,-1,-1,2,2,T,x);S.attr({z2:100,culling:!0,scale:n(y)}),S.drift=e,this._symbolType=p,this.add(S)},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,g){var A=this.childAt(0);A.zlevel=p,A.z=g},r.setDraggable=function(p){var g=this.childAt(0);g.draggable=p,g.cursor=p?"move":g.cursor},r.updateData=function(p,g,A){this.silent=!1;var y=p.getItemVisual(g,"symbol")||"circle",x=p.hostModel,T=o(p,g),S=y!==this._symbolType;if(S){var b=p.getItemVisual(g,"symbolKeepAspect");this._createSymbol(y,p,g,T,b)}else{var _=this.childAt(0);_.silent=!1,v.updateProps(_,{scale:n(T)},x,g)}if(this._updateCommon(p,g,T,A),S){var _=this.childAt(0),I=A&&A.fadeIn,L={scale:_.scale.slice()};I&&(L.style={opacity:_.style.opacity}),_.scale=[0,0],I&&(_.style.opacity=0),v.initProps(_,L,x,g)}this._seriesModel=x};var s=["itemStyle"],t=["emphasis","itemStyle"],a=["label"],l=["emphasis","label"];r._updateCommon=function(p,g,A,y){var x=this.childAt(0),T=p.hostModel,S=p.getItemVisual(g,"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,I=y&&y.symbolOffset,L=y&&y.labelModel,D=y&&y.hoverLabelModel,N=y&&y.hoverAnimation,M=y&&y.cursorStyle;if(!y||p.hasItemOption){var B=y&&y.itemModel?y.itemModel:p.getItemModel(g);b=B.getModel(s).getItemStyle(["color"]),_=B.getModel(t).getItemStyle(),I=B.getShallow("symbolOffset"),L=B.getModel(a),D=B.getModel(l),N=B.getShallow("hoverAnimation"),M=B.getShallow("cursor")}else _=O.extend({},_);var R=x.style,H=p.getItemVisual(g,"symbolRotate");x.attr("rotation",(H||0)*Math.PI/180||0),I&&x.attr("position",[m(I[0],A[0]),m(I[1],A[1])]),M&&x.attr("cursor",M),x.setColor(S,y&&y.symbolInnerColor),x.setStyle(b);var F=p.getItemVisual(g,"opacity");F!=null&&(R.opacity=F);var K=p.getItemVisual(g,"liftZ"),U=x.__z2Origin;K!=null?U==null&&(x.__z2Origin=x.z2,x.z2+=K):U!=null&&(x.z2=U,x.__z2Origin=null);var V=y&&y.useNameLabel;v.setLabelStyle(R,_,L,D,{labelFetcher:T,labelDataIndex:g,defaultText:z,isRectText:!0,autoColor:S});function z(Y,q){return V?p.getName(Y):c(p,Y)}x.__symbolOriginalScale=n(A),x.hoverStyle=_,x.highDownOnUpdate=N&&T.isAnimationEnabled()?u:null,v.setHoverStyle(x)};function u(p,g){if(this.incremental||this.useHoverLayer)return;if(g==="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 g==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}r.fadeOut=function(p,g){var A=this.childAt(0);this.silent=A.silent=!0,!(g&&g.keepLabel)&&(A.style.text=null),v.updateProps(A,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,p)},O.inherits(i,v.Group);var f=i;j.exports=f},FGaS:function(j,P,d){var O=d("ProS"),E=d("IwbS"),C=d("bYtY"),v=d("oVpE");function w(h){return C.isArray(h)||(h=[+h,+h]),h}var m=O.extendChartView({type:"radar",render:function(h,c,i){var r=h.coordinateSystem,o=this.group,n=h.getData(),e=this._data;function s(l,u){var f=l.getItemVisual(u,"symbol")||"circle",p=l.getItemVisual(u,"color");if(f==="none")return;var g=w(l.getItemVisual(u,"symbolSize")),A=v.createSymbol(f,-1,-1,2,2,p);return A.attr({style:{strokeNoScale:!0},z2:100,scale:[g[0]/2,g[1]/2]}),A}function t(l,u,f,p,g,A){f.removeAll();for(var y=0;y<u.length-1;y++){var x=s(p,g);x&&(x.__dimIdx=y,l[y]?(x.attr("position",l[y]),E[A?"initProps":"updateProps"](x,{position:u[y]},h,g)):x.attr("position",u[y]),f.add(x))}}function a(l){return C.map(l,function(u){return[r.cx,r.cy]})}n.diff(e).add(function(l){var u=n.getItemLayout(l);if(!u)return;var f=new E.Polygon,p=new E.Polyline,g={shape:{points:u}};f.shape.points=a(u),p.shape.points=a(u),E.initProps(f,g,h,l),E.initProps(p,g,h,l);var A=new E.Group,y=new E.Group;A.add(p),A.add(f),A.add(y),t(p.shape.points,u,y,n,l,!0),n.setItemGraphicEl(l,A)}).update(function(l,u){var f=e.getItemGraphicEl(u),p=f.childAt(0),g=f.childAt(1),A=f.childAt(2),y={shape:{points:n.getItemLayout(l)}};if(!y.shape.points)return;t(p.shape.points,y.shape.points,A,n,l,!1),E.updateProps(p,y,h),E.updateProps(g,y,h),n.setItemGraphicEl(l,f)}).remove(function(l){o.remove(e.getItemGraphicEl(l))}).execute(),n.eachItemGraphicEl(function(l,u){var f=n.getItemModel(u),p=l.childAt(0),g=l.childAt(1),A=l.childAt(2),y=n.getItemVisual(u,"color");o.add(l),p.useStyle(C.defaults(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),p.hoverStyle=f.getModel("emphasis.lineStyle").getLineStyle();var x=f.getModel("areaStyle"),T=f.getModel("emphasis.areaStyle"),S=x.isEmpty()&&x.parentModel.isEmpty(),b=T.isEmpty()&&T.parentModel.isEmpty();b=b&&S,g.ignore=S,g.useStyle(C.defaults(x.getAreaStyle(),{fill:y,opacity:.7})),g.hoverStyle=T.getAreaStyle();var _=f.getModel("itemStyle").getItemStyle(["color"]),I=f.getModel("emphasis.itemStyle").getItemStyle(),L=f.getModel("label"),D=f.getModel("emphasis.label");A.eachChild(function(N){N.setStyle(_),N.hoverStyle=C.clone(I);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){g.attr("ignore",M==="emphasis"?b:S)},E.setHoverStyle(l)}),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});j.exports=m},FH2Y:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("ZMnZ"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},FJo9:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("8txm"),v=d.n(C),w=d("MXD1")},FNN5:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("+rIm"),v=d("Znkb"),w=["axisLine","axisTickLabel","axisName"],m=["splitLine","splitArea","minorSplitLine"],h=v.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(i,r){if(this.group.removeAll(),!i.get("show"))return;var o=i.axis,n=o.polar,e=n.getAngleAxis(),s=o.getTicksCoords(),t=o.getMinorTicksCoords(),a=e.getExtent()[0],l=o.getExtent(),u=c(n,i,a),f=new C(i,u);O.each(w,f.add,f),this.group.add(f.getGroup()),O.each(m,function(p){i.get(p+".show")&&!o.scale.isBlank()&&this["_"+p](i,n,a,l,s,t)},this)},_splitLine:function(i,r,o,n,e){var s=i.getModel("splitLine"),t=s.getModel("lineStyle"),a=t.get("color"),l=0;a=a instanceof Array?a:[a];for(var u=[],f=0;f<e.length;f++){var p=l++%a.length;u[p]=u[p]||[],u[p].push(new E.Circle({shape:{cx:r.cx,cy:r.cy,r:e[f].coord}}))}for(var f=0;f<u.length;f++)this.group.add(E.mergePath(u[f],{style:O.defaults({stroke:a[f%a.length],fill:null},t.getLineStyle()),silent:!0}))},_minorSplitLine:function(i,r,o,n,e,s){if(!s.length)return;for(var t=i.getModel("minorSplitLine"),a=t.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:O.defaults({fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(i,r,o,n,e){if(!e.length)return;var s=i.getModel("splitArea"),t=s.getModel("areaStyle"),a=t.get("color"),l=0;a=a instanceof Array?a:[a];for(var u=[],f=e[0].coord,p=1;p<e.length;p++){var g=l++%a.length;u[g]=u[g]||[],u[g].push(new E.Sector({shape:{cx:r.cx,cy:r.cy,r0:f,r:e[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=e[p].coord}for(var p=0;p<u.length;p++)this.group.add(E.mergePath(u[p],{style:O.defaults({fill:a[p%a.length]},t.getAreaStyle()),silent:!0}))}});function c(i,r,o){return{position:[i.cx,i.cy],rotation:o/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:r.getModel("axisLabel").get("rotate"),z2:1}}j.exports=h},FTAc:function(j,P,d){"use strict";d.d(P,"a",function(){return C});var O=d("q1tI"),E=d.n(O),C=O.createContext(null)},FUi9:function(j,P,d){var O=d("bYtY"),E=d("MwEJ"),C=d("aX7z"),v=d("ICMv"),w=d("Qxkt"),m=d("+TT/"),h=m.getLayoutRect;P.getLayoutRect=m.getLayoutRect;var c=d("7hqr"),i=c.enableDataStack,r=c.isDimensionStacked,o=c.getStackedDimension,n=d("hi0g");P.completeDimensions=n;var e=d("sdST");P.createDimensions=e;var s=d("oVpE");P.createSymbol=s.createSymbol;function t(f){return E(f.getSource(),f)}var a={isDimensionStacked:r,enableDataStack:i,getStackedDimension:o};function l(f,p){var g=p;w.isInstance(p)||(g=new w(p),O.mixin(g,v));var A=C.createScaleByModel(g);return A.setExtent(f[0],f[1]),C.niceScaleExtent(A,g),A}function u(f){O.mixin(f,v)}P.createList=t,P.dataStack=a,P.createScale=l,P.mixinAxisModelCommonMethods=u},"Fa/5":function(j,P,d){var O=d("ProS");d("y2l5"),d("q/+u");var E=d("f5Yq"),C=d("h8O9");d("Ae16"),O.registerVisual(E("scatter","circle")),O.registerLayout(C("scatter"))},FhB9:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},"Fm1+":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("a7Wl")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="CaretUpOutlined";var c=v.forwardRef(h);P.default=c},Fofx:function(j,P){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(){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 C(r,o){return r[0]=o[0],r[1]=o[1],r[2]=o[2],r[3]=o[3],r[4]=o[4],r[5]=o[5],r}function v(r,o,n){var e=o[0]*n[0]+o[2]*n[1],s=o[1]*n[0]+o[3]*n[1],t=o[0]*n[2]+o[2]*n[3],a=o[1]*n[2]+o[3]*n[3],l=o[0]*n[4]+o[2]*n[5]+o[4],u=o[1]*n[4]+o[3]*n[5]+o[5];return r[0]=e,r[1]=s,r[2]=t,r[3]=a,r[4]=l,r[5]=u,r}function w(r,o,n){return r[0]=o[0],r[1]=o[1],r[2]=o[2],r[3]=o[3],r[4]=o[4]+n[0],r[5]=o[5]+n[1],r}function m(r,o,n){var e=o[0],s=o[2],t=o[4],a=o[1],l=o[3],u=o[5],f=Math.sin(n),p=Math.cos(n);return r[0]=e*p+a*f,r[1]=-e*f+a*p,r[2]=s*p+l*f,r[3]=-s*f+p*l,r[4]=p*t+f*u,r[5]=p*u-f*t,r}function h(r,o,n){var e=n[0],s=n[1];return r[0]=o[0]*e,r[1]=o[1]*s,r[2]=o[2]*e,r[3]=o[3]*s,r[4]=o[4]*e,r[5]=o[5]*s,r}function c(r,o){var n=o[0],e=o[2],s=o[4],t=o[1],a=o[3],l=o[5],u=n*a-t*e;return u?(u=1/u,r[0]=a*u,r[1]=-t*u,r[2]=-e*u,r[3]=n*u,r[4]=(e*l-a*s)*u,r[5]=(t*s-n*l)*u,r):null}function i(r){var o=O();return C(o,r),o}P.create=O,P.identity=E,P.copy=C,P.mul=v,P.translate=w,P.rotate=m,P.scale=h,P.invert=c,P.clone=i},Fv0C:function(j,P,d){"use strict";function O(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(a){return typeof a}:O=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(s)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var E=i(d("Lo0S")),C=d("vewr"),v=i(d("8CQX")),w=h(d("mHUz")),m=i(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 i(s){if(s&&s.__esModule)return s;if(s===null||O(s)!=="object"&&typeof s!="function")return{default:s};var t=c();if(t&&t.has(s))return t.get(s);var a={},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(a,u,f):a[u]=s[u]}return a.default=s,t&&t.set(s,a),a}function r(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}function o(s,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function n(s,t,a){return t&&o(s.prototype,t),a&&o(s,a),s}var e=function(){function s(t){r(this,s),this._target=t||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(a,l,u){if(u)this._keyDownList[l]=a;else{if(!(l in this._keyDownList))return;delete this._keyDownList[l]}E.Debug("onkeyevent "+(u?"down":"up")+", keysym: "+a,", code: "+l),this.onkeyevent(a,l,u)}},{key:"_getKeyCode",value:function(a){var l=v.getKeycode(a);if(l!=="Unidentified")return l;if(a.keyCode&&a.type!=="keypress"&&a.keyCode!==229)return"Platform"+a.keyCode;if(a.keyIdentifier){if(a.keyIdentifier.substr(0,2)!=="U+")return a.keyIdentifier;var u=parseInt(a.keyIdentifier.substr(2),16),f=String.fromCharCode(u).toUpperCase();return"Platform"+f.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(a){var l=this._getKeyCode(a),u=v.getKeysym(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),l==="AltRight"&&a.timeStamp-this._altGrCtrlTime<50?u=w.default.XK_ISO_Level3_Shift:this._sendKeyEvent(w.default.XK_Control_L,"ControlLeft",!0)),l==="Unidentified"){u&&(this._sendKeyEvent(u,l,!0),this._sendKeyEvent(u,l,!1)),(0,C.stopEvent)(a);return}if(m.isMac()||m.isIOS())switch(u){case w.default.XK_Super_L:u=w.default.XK_Alt_L;break;case w.default.XK_Super_R:u=w.default.XK_Super_L;break;case w.default.XK_Alt_L:u=w.default.XK_Mode_switch;break;case w.default.XK_Alt_R:u=w.default.XK_ISO_Level3_Shift;break}if(l in this._keyDownList&&(u=this._keyDownList[l]),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!1),(0,C.stopEvent)(a);return}if(!u&&(!a.key||m.isIE()||m.isEdge())){this._pendingKey=l,setTimeout(this._handleKeyPressTimeout.bind(this),10,a);return}if(this._pendingKey=null,(0,C.stopEvent)(a),l==="ControlLeft"&&m.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=a.timeStamp;return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPress",value:function(a){if((0,C.stopEvent)(a),this._pendingKey===null)return;var l=this._getKeyCode(a),u=v.getKeysym(a);if(l!=="Unidentified"&&l!=this._pendingKey)return;if(l=this._pendingKey,this._pendingKey=null,!u){E.Info("keypress with no keysym:",a);return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPressTimeout",value:function(a){if(this._pendingKey===null)return;var l,u=this._pendingKey;if(this._pendingKey=null,a.keyCode>=48&&a.keyCode<=57)l=a.keyCode;else if(a.keyCode>=65&&a.keyCode<=90){var f=String.fromCharCode(a.keyCode);a.shiftKey?f=f.toUpperCase():f=f.toLowerCase(),l=f.charCodeAt()}else l=0;this._sendKeyEvent(l,u,!0)}},{key:"_handleKeyUp",value:function(a){(0,C.stopEvent)(a);var l=this._getKeyCode(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(w.default.XK_Control_L,"ControlLeft",!0)),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(w.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(w.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){E.Debug(">> Keyboard.allKeysUp");for(var a in this._keyDownList)this._sendKeyEvent(this._keyDownList[a],a,!1);E.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(a){if(a.skipCheckAlt)return;if(a.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 a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.addEventListener(l,a,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(m.isWindows()&&m.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.removeEventListener(l,a)})}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}();P.default=e},FxDU:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.createSensor=void 0;var O=d("QO+J"),E=d("j5sG"),C=typeof ResizeObserver!="undefined"?E.createSensor:O.createSensor;P.createSensor=C},GGyF:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("wgjA")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="LeftOutlined";var c=v.forwardRef(h);P.default=c},GIiI:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="PoweroffOutlined";var h=P.a=E.forwardRef(m)},GMDS:function(j,P,d){var O=d("bYtY"),E=d("4NgU"),C=d("jkPA"),v=E.prototype,w=E.extend({type:"ordinal",init:function(h,c){(!h||O.isArray(h))&&(h=new C({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),v.contain.call(this,h)&&this._ordinalMeta.categories[h]!=null},normalize:function(h){return v.normalize.call(this,this.parse(h))},scale:function(h){return Math.round(v.scale.call(this,h))},getTicks:function(){for(var h=[],c=this._extent,i=c[0];i<=c[1];)h.push(i),i++;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:O.noop,niceExtent:O.noop});w.create=function(){return new w};var m=w;j.exports=m},GQ8N:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.toUnsigned32bit=O,P.toSigned32bit=E;function O(C){return C>>>0}function E(C){return C|0}},GRuw:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("lPiR"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.WordArray,w=E.algo,m=w.SHA256,h=w.SHA224=m.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=m._doFinalize.call(this);return i.sigBytes-=4,i}});E.SHA224=m._createHelper(h),E.HmacSHA224=m._createHmacHelper(h)}(),O.SHA224})},GUcZ:function(j,P,d){"use strict";var O=d("fWQN"),E=d("mtLc"),C=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Te,xe){return Te.__proto__=xe,Te},Object.assign=Object.assign||function(Te){if(Te==null)throw new TypeError("Cannot convert undefined or null to object");for(var xe=Object(Te),Ce=1;Ce<arguments.length;Ce++){var Ye=arguments[Ce];if(Ye!=null)for(var it in Ye)Ye.hasOwnProperty(it)&&(xe[it]=Ye[it])}return xe},typeof self.Promise!="function"&&d("E2g8").polyfill()}}]),kt}();C.install();var v=C,w=d("+qE3"),m=d.n(w),h=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"e",value:function(Te,xe){(!Te||kt.FORCE_GLOBAL_TAG)&&(Te=kt.GLOBAL_TAG);var Ce="[".concat(Te,"] > ").concat(xe);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","error",Ce),!kt.ENABLE_ERROR)return;console.error?console.error(Ce):console.warn?console.warn(Ce):console.log(Ce)}},{key:"i",value:function(Te,xe){(!Te||kt.FORCE_GLOBAL_TAG)&&(Te=kt.GLOBAL_TAG);var Ce="[".concat(Te,"] > ").concat(xe);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","info",Ce),!kt.ENABLE_INFO)return;console.info?console.info(Ce):console.log(Ce)}},{key:"w",value:function(Te,xe){(!Te||kt.FORCE_GLOBAL_TAG)&&(Te=kt.GLOBAL_TAG);var Ce="[".concat(Te,"] > ").concat(xe);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","warn",Ce),!kt.ENABLE_WARN)return;console.warn?console.warn(Ce):console.log(Ce)}},{key:"d",value:function(Te,xe){(!Te||kt.FORCE_GLOBAL_TAG)&&(Te=kt.GLOBAL_TAG);var Ce="[".concat(Te,"] > ").concat(xe);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","debug",Ce),!kt.ENABLE_DEBUG)return;console.debug?console.debug(Ce):console.log(Ce)}},{key:"v",value:function(Te,xe){(!Te||kt.FORCE_GLOBAL_TAG)&&(Te=kt.GLOBAL_TAG);var Ce="[".concat(Te,"] > ").concat(xe);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","verbose",Ce),!kt.ENABLE_VERBOSE)return;console.log(Ce)}}]),kt}();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,i=function(){function kt(){Object(O.a)(this,kt),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)(kt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Te){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Te,this._totalBytes+=Te):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Te,this._totalBytes+=Te):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Te,this._totalBytes+=Te,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Te=(this._now()-this._lastCheckpoint)/1e3;return Te==0&&(Te=1),this._intervalBytes/Te/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 Te=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Te/1024}}]),kt}(),r=i,o=d("yKVA"),n=d("879j"),e=function(){function kt(wt){Object(O.a)(this,kt),this._message=wt}return Object(E.a)(kt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),kt}(),s=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(xe){return Object(O.a)(this,Te),wt.call(this,xe)}return Object(E.a)(Te,[{key:"name",get:function(){return"IllegalStateException"}}]),Te}(e),t=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(xe){return Object(O.a)(this,Te),wt.call(this,xe)}return Object(E.a)(Te,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Te}(e),a=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(xe){return Object(O.a)(this,Te),wt.call(this,xe)}return Object(E.a)(Te,[{key:"name",get:function(){return"NotImplementedException"}}]),Te}(e),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 kt(wt){Object(O.a)(this,kt),this._type=wt||"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)(kt,[{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(Te){this._onContentLengthKnown=Te}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Te){this._onURLRedirect=Te}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Te){this._onDataArrival=Te}},{key:"onError",get:function(){return this._onError},set:function(Te){this._onError=Te}},{key:"onComplete",get:function(){return this._onComplete},set:function(Te){this._onComplete=Te}},{key:"open",value:function(Te,xe){throw new a("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new a("Unimplemented abstract function!")}}]),kt}(),p=d("w4Tj"),g=d("oZsa"),A={};function y(){var kt=self.navigator.userAgent.toLowerCase(),wt=/(edge)\/([\w.]+)/.exec(kt)||/(opr)[\/]([\w.]+)/.exec(kt)||/(chrome)[ \/]([\w.]+)/.exec(kt)||/(iemobile)[\/]([\w.]+)/.exec(kt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(kt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(kt)||/(webkit)[ \/]([\w.]+)/.exec(kt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(kt)||/(msie) ([\w.]+)/.exec(kt)||kt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(kt)||kt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(kt)||[],Te=/(ipad)/.exec(kt)||/(ipod)/.exec(kt)||/(windows phone)/.exec(kt)||/(iphone)/.exec(kt)||/(kindle)/.exec(kt)||/(android)/.exec(kt)||/(windows)/.exec(kt)||/(mac)/.exec(kt)||/(linux)/.exec(kt)||/(cros)/.exec(kt)||[],xe={browser:wt[5]||wt[3]||wt[1]||"",version:wt[2]||wt[4]||"0",majorVersion:wt[4]||wt[2]||"0",platform:Te[0]||""},Ce={};if(xe.browser){Ce[xe.browser]=!0;var Ye=xe.majorVersion.split(".");Ce.version={major:parseInt(xe.majorVersion,10),string:xe.version},Ye.length>1&&(Ce.version.minor=parseInt(Ye[1],10)),Ye.length>2&&(Ce.version.build=parseInt(Ye[2],10))}if(xe.platform&&(Ce[xe.platform]=!0),(Ce.chrome||Ce.opr||Ce.safari)&&(Ce.webkit=!0),Ce.rv||Ce.iemobile){Ce.rv&&delete Ce.rv;var it="msie";xe.browser=it,Ce[it]=!0}if(Ce.edge){delete Ce.edge;var dt="msedge";xe.browser=dt,Ce[dt]=!0}if(Ce.opr){var _t="opera";xe.browser=_t,Ce[_t]=!0}if(Ce.safari&&Ce.android){var vr="android";xe.browser=vr,Ce[vr]=!0}Ce.name=xe.browser,Ce.platform=xe.platform;for(var kr in A)A.hasOwnProperty(kr)&&delete A[kr];Object.assign(A,Ce)}y();var x=A,T=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(xe,Ce){var Ye;return Object(O.a)(this,Te),Ye=wt.call(this,"fetch-stream-loader"),Ye.TAG="FetchStreamLoader",Ye._seekHandler=xe,Ye._config=Ce,Ye._needStash=!0,Ye._requestAbort=!1,Ye._contentLength=null,Ye._receivedLength=0,Ye}return Object(E.a)(Te,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(p.a)(Object(g.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ce,Ye){var it=this;this._dataSource=Ce,this._range=Ye;var dt=Ce.url;this._config.reuseRedirectedURL&&Ce.redirectedURL!=null&&(dt=Ce.redirectedURL);var _t=this._seekHandler.getConfig(dt,Ye),vr=new self.Headers;if(typeof _t.headers=="object"){var kr=_t.headers;for(var mn in kr)kr.hasOwnProperty(mn)&&vr.append(mn,kr[mn])}var Mt={method:"GET",headers:vr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var nt in this._config.headers)vr.append(nt,this._config.headers[nt]);Ce.cors===!1&&(Mt.mode="same-origin"),Ce.withCredentials&&(Mt.credentials="include"),Ce.referrerPolicy&&(Mt.referrerPolicy=Ce.referrerPolicy),this._status=l.kConnecting,self.fetch(_t.url,Mt).then(function(st){if(it._requestAbort){it._requestAbort=!1,it._status=l.kIdle;return}if(st.ok&&st.status>=200&&st.status<=299){if(st.url!==_t.url&&it._onURLRedirect){var Xt=it._seekHandler.removeURLParameters(st.url);it._onURLRedirect(Xt)}var Dt=st.headers.get("Content-Length");return Dt!=null&&(it._contentLength=parseInt(Dt),it._contentLength!==0&&(it._onContentLengthKnown&&it._onContentLengthKnown(it._contentLength))),it._pump.call(it,st.body.getReader())}else if(it._status=l.kError,it._onError)it._onError(u.HTTP_STATUS_CODE_INVALID,{code:st.status,msg:st.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+st.status+" "+st.statusText)}).catch(function(st){if(it._status=l.kError,it._onError)it._onError(u.EXCEPTION,{code:-1,msg:st.message});else throw st})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Ce){var Ye=this;return Ce.read().then(function(it){if(it.done)if(Ye._contentLength!==null&&Ye._receivedLength<Ye._contentLength){Ye._status=l.kError;var dt=u.EARLY_EOF,_t={code:-1,msg:"Fetch stream meet Early-EOF"};if(Ye._onError)Ye._onError(dt,_t);else throw new e(_t.msg)}else Ye._status=l.kComplete,Ye._onComplete&&Ye._onComplete(Ye._range.from,Ye._range.from+Ye._receivedLength-1);else{if(Ye._requestAbort===!0)return Ye._requestAbort=!1,Ye._status=l.kComplete,Ce.cancel();Ye._status=l.kBuffering;var vr=it.value.buffer,kr=Ye._range.from+Ye._receivedLength;Ye._receivedLength+=vr.byteLength,Ye._onDataArrival&&Ye._onDataArrival(vr,kr,Ye._receivedLength),Ye._pump(Ce)}}).catch(function(it){if(it.code===11&&x.msedge)return;Ye._status=l.kError;var dt=0,_t=null;if((it.code===19||it.message==="network error")&&(Ye._contentLength===null||Ye._contentLength!==null&&Ye._receivedLength<Ye._contentLength)?(dt=u.EARLY_EOF,_t={code:it.code,msg:"Fetch stream meet Early-EOF"}):(dt=u.EXCEPTION,_t={code:it.code,msg:it.message}),Ye._onError)Ye._onError(dt,_t);else throw new e(_t.msg)})}}],[{key:"isSupported",value:function(){try{var Ce=x.msedge&&x.version.minor>=15048,Ye=x.msedge?Ce:!0;return self.fetch&&self.ReadableStream&&Ye}catch(it){return!1}}}]),Te}(f),S=T,b=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(xe,Ce){var Ye;return Object(O.a)(this,Te),Ye=wt.call(this,"xhr-moz-chunked-loader"),Ye.TAG="MozChunkedLoader",Ye._seekHandler=xe,Ye._config=Ce,Ye._needStash=!0,Ye._xhr=null,Ye._requestAbort=!1,Ye._contentLength=null,Ye._receivedLength=0,Ye}return Object(E.a)(Te,[{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(g.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ce,Ye){this._dataSource=Ce,this._range=Ye;var it=Ce.url;this._config.reuseRedirectedURL&&Ce.redirectedURL!=null&&(it=Ce.redirectedURL);var dt=this._seekHandler.getConfig(it,Ye);this._requestURL=dt.url;var _t=this._xhr=new XMLHttpRequest;if(_t.open("GET",dt.url,!0),_t.responseType="moz-chunked-arraybuffer",_t.onreadystatechange=this._onReadyStateChange.bind(this),_t.onprogress=this._onProgress.bind(this),_t.onloadend=this._onLoadEnd.bind(this),_t.onerror=this._onXhrError.bind(this),Ce.withCredentials&&(_t.withCredentials=!0),typeof dt.headers=="object"){var vr=dt.headers;for(var kr in vr)vr.hasOwnProperty(kr)&&_t.setRequestHeader(kr,vr[kr])}if(typeof this._config.headers=="object"){var mn=this._config.headers;for(var Mt in mn)mn.hasOwnProperty(Mt)&&_t.setRequestHeader(Mt,mn[Mt])}this._status=l.kConnecting,_t.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=l.kComplete}},{key:"_onReadyStateChange",value:function(Ce){var Ye=Ce.target;if(Ye.readyState===2){if(Ye.responseURL!=null&&Ye.responseURL!==this._requestURL&&this._onURLRedirect){var it=this._seekHandler.removeURLParameters(Ye.responseURL);this._onURLRedirect(it)}if(Ye.status!==0&&(Ye.status<200||Ye.status>299))if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ye.status,msg:Ye.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+Ye.status+" "+Ye.statusText);else this._status=l.kBuffering}}},{key:"_onProgress",value:function(Ce){if(this._status===l.kError)return;this._contentLength===null&&(Ce.total!==null&&Ce.total!==0&&(this._contentLength=Ce.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var Ye=Ce.target.response,it=this._range.from+this._receivedLength;this._receivedLength+=Ye.byteLength,this._onDataArrival&&this._onDataArrival(Ye,it,this._receivedLength)}},{key:"_onLoadEnd",value:function(Ce){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(Ce){this._status=l.kError;var Ye=0,it=null;if(this._contentLength&&Ce.loaded<this._contentLength?(Ye=u.EARLY_EOF,it={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Ye=u.EXCEPTION,it={code:-1,msg:Ce.constructor.name+" "+Ce.type}),this._onError)this._onError(Ye,it);else throw new e(it.msg)}}],[{key:"isSupported",value:function(){try{var Ce=new XMLHttpRequest;return Ce.open("GET","https://example.com",!0),Ce.responseType="moz-chunked-arraybuffer",Ce.responseType==="moz-chunked-arraybuffer"}catch(Ye){return c.w("MozChunkedLoader",Ye.message),!1}}}]),Te}(f),_=b,I=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(xe,Ce){var Ye;return Object(O.a)(this,Te),Ye=wt.call(this,"xhr-msstream-loader"),Ye.TAG="MSStreamLoader",Ye._seekHandler=xe,Ye._config=Ce,Ye._needStash=!0,Ye._xhr=null,Ye._reader=null,Ye._totalRange=null,Ye._currentRange=null,Ye._currentRequestURL=null,Ye._currentRedirectedURL=null,Ye._contentLength=null,Ye._receivedLength=0,Ye._bufferLimit=16*1024*1024,Ye._lastTimeBufferSize=0,Ye._isReconnecting=!1,Ye}return Object(E.a)(Te,[{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(g.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ce,Ye){this._internalOpen(Ce,Ye,!1)}},{key:"_internalOpen",value:function(Ce,Ye,it){this._dataSource=Ce,it?this._currentRange=Ye:this._totalRange=Ye;var dt=Ce.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?dt=this._currentRedirectedURL:Ce.redirectedURL!=null&&(dt=Ce.redirectedURL));var _t=this._seekHandler.getConfig(dt,Ye);this._currentRequestURL=_t.url;var vr=this._reader=new self.MSStreamReader;vr.onprogress=this._msrOnProgress.bind(this),vr.onload=this._msrOnLoad.bind(this),vr.onerror=this._msrOnError.bind(this);var kr=this._xhr=new XMLHttpRequest;if(kr.open("GET",_t.url,!0),kr.responseType="ms-stream",kr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),kr.onerror=this._xhrOnError.bind(this),Ce.withCredentials&&(kr.withCredentials=!0),typeof _t.headers=="object"){var mn=_t.headers;for(var Mt in mn)mn.hasOwnProperty(Mt)&&kr.setRequestHeader(Mt,mn[Mt])}if(typeof this._config.headers=="object"){var nt=this._config.headers;for(var st in nt)nt.hasOwnProperty(st)&&kr.setRequestHeader(st,nt[st])}this._isReconnecting?this._isReconnecting=!1:this._status=l.kConnecting,kr.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(Ce){var Ye=Ce.target;if(Ye.readyState===2)if(Ye.status>=200&&Ye.status<=299){if(this._status=l.kBuffering,Ye.responseURL!=null){var it=this._seekHandler.removeURLParameters(Ye.responseURL);Ye.responseURL!==this._currentRequestURL&&it!==this._currentRedirectedURL&&(this._currentRedirectedURL=it,this._onURLRedirect&&this._onURLRedirect(it))}var dt=Ye.getResponseHeader("Content-Length");if(dt!=null&&this._contentLength==null){var _t=parseInt(dt);_t>0&&(this._contentLength=_t,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ye.status,msg:Ye.statusText});else throw new e("MSStreamLoader: Http code invalid, "+Ye.status+" "+Ye.statusText);else if(Ye.readyState===3&&(Ye.status>=200&&Ye.status<=299)){this._status=l.kBuffering;var vr=Ye.response;this._reader.readAsArrayBuffer(vr)}}},{key:"_xhrOnError",value:function(Ce){this._status=l.kError;var Ye=u.EXCEPTION,it={code:-1,msg:Ce.constructor.name+" "+Ce.type};if(this._onError)this._onError(Ye,it);else throw new e(it.msg)}},{key:"_msrOnProgress",value:function(Ce){var Ye=Ce.target,it=Ye.result;if(it==null){this._doReconnectIfNeeded();return}var dt=it.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=it.byteLength;var _t=this._totalRange.from+this._receivedLength;this._receivedLength+=dt.byteLength,this._onDataArrival&&this._onDataArrival(dt,_t,this._receivedLength),it.byteLength>=this._bufferLimit&&(c.v(this.TAG,"MSStream buffer exceeded max size near ".concat(_t+dt.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 Ce={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Ce,!0)}}},{key:"_msrOnLoad",value:function(Ce){this._status=l.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Ce){this._status=l.kError;var Ye=0,it=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Ye=u.EARLY_EOF,it={code:-1,msg:"MSStream meet Early-Eof"}):(Ye=u.EARLY_EOF,it={code:-1,msg:Ce.constructor.name+" "+Ce.type}),this._onError)this._onError(Ye,it);else throw new e(it.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Ce=new XMLHttpRequest;return Ce.open("GET","https://example.com",!0),Ce.responseType="ms-stream",Ce.responseType==="ms-stream"}catch(Ye){return c.w("MSStreamLoader",Ye.message),!1}}}]),Te}(f),L=I,D=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(xe,Ce){var Ye;return Object(O.a)(this,Te),Ye=wt.call(this,"xhr-range-loader"),Ye.TAG="RangeLoader",Ye._seekHandler=xe,Ye._config=Ce,Ye._needStash=!1,Ye._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],Ye._currentChunkSizeKB=384,Ye._currentSpeedNormalized=0,Ye._zeroSpeedChunkCount=0,Ye._xhr=null,Ye._speedSampler=new r,Ye._requestAbort=!1,Ye._waitForTotalLength=!1,Ye._totalLengthReceived=!1,Ye._currentRequestURL=null,Ye._currentRedirectedURL=null,Ye._currentRequestRange=null,Ye._totalLength=null,Ye._contentLength=null,Ye._receivedLength=0,Ye._lastTimeLoaded=0,Ye}return Object(E.a)(Te,[{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(g.a)(Te.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Ce,Ye){this._dataSource=Ce,this._range=Ye,this._status=l.kConnecting;var it=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(it=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!it?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Ce=this._currentChunkSizeKB*1024,Ye=this._range.from+this._receivedLength,it=Ye+Ce;this._contentLength!=null&&(it-this._range.from>=this._contentLength&&(it=this._range.from+this._contentLength-1)),this._currentRequestRange={from:Ye,to:it},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Ce,Ye){this._lastTimeLoaded=0;var it=Ce.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?it=this._currentRedirectedURL:Ce.redirectedURL!=null&&(it=Ce.redirectedURL));var dt=this._seekHandler.getConfig(it,Ye);this._currentRequestURL=dt.url;var _t=this._xhr=new XMLHttpRequest;if(_t.open("GET",dt.url,!0),_t.responseType="arraybuffer",_t.onreadystatechange=this._onReadyStateChange.bind(this),_t.onprogress=this._onProgress.bind(this),_t.onload=this._onLoad.bind(this),_t.onerror=this._onXhrError.bind(this),Ce.withCredentials&&(_t.withCredentials=!0),typeof dt.headers=="object"){var vr=dt.headers;for(var kr in vr)vr.hasOwnProperty(kr)&&_t.setRequestHeader(kr,vr[kr])}if(typeof this._config.headers=="object"){var mn=this._config.headers;for(var Mt in mn)mn.hasOwnProperty(Mt)&&_t.setRequestHeader(Mt,mn[Mt])}_t.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(Ce){var Ye=Ce.target;if(Ye.readyState===2){if(Ye.responseURL!=null){var it=this._seekHandler.removeURLParameters(Ye.responseURL);Ye.responseURL!==this._currentRequestURL&&it!==this._currentRedirectedURL&&(this._currentRedirectedURL=it,this._onURLRedirect&&this._onURLRedirect(it))}if(Ye.status>=200&&Ye.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:Ye.status,msg:Ye.statusText});else throw new e("RangeLoader: Http code invalid, "+Ye.status+" "+Ye.statusText)}}},{key:"_onProgress",value:function(Ce){if(this._status===l.kError)return;if(this._contentLength===null){var Ye=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Ye=!0;var it=Ce.total;this._internalAbort(),it!=null&it!==0&&(this._totalLength=it)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Ye){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var dt=Ce.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Ce.loaded,this._speedSampler.addBytes(dt)}},{key:"_normalizeSpeed",value:function(Ce){var Ye=this._chunkSizeKBList,it=Ye.length-1,dt=0,_t=0,vr=it;if(Ce<Ye[0])return Ye[0];for(;_t<=vr;){if(dt=_t+Math.floor((vr-_t)/2),dt===it||Ce>=Ye[dt]&&Ce<Ye[dt+1])return Ye[dt];Ye[dt]<Ce?_t=dt+1:vr=dt-1}}},{key:"_onLoad",value:function(Ce){if(this._status===l.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var Ye=this._speedSampler.lastSecondKBps;if(Ye===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Ye=this._speedSampler.currentKBps)),Ye!==0){var it=this._normalizeSpeed(Ye);this._currentSpeedNormalized!==it&&(this._currentSpeedNormalized=it,this._currentChunkSizeKB=it)}var dt=Ce.target.response,_t=this._range.from+this._receivedLength;this._receivedLength+=dt.byteLength;var vr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():vr=!0,this._onDataArrival&&this._onDataArrival(dt,_t,this._receivedLength),vr&&(this._status=l.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Ce){this._status=l.kError;var Ye=0,it=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Ye=u.EARLY_EOF,it={code:-1,msg:"RangeLoader meet Early-Eof"}):(Ye=u.EXCEPTION,it={code:-1,msg:Ce.constructor.name+" "+Ce.type}),this._onError)this._onError(Ye,it);else throw new e(it.msg)}}],[{key:"isSupported",value:function(){try{var Ce=new XMLHttpRequest;return Ce.open("GET","https://example.com",!0),Ce.responseType="arraybuffer",Ce.responseType==="arraybuffer"}catch(Ye){return c.w("RangeLoader",Ye.message),!1}}}]),Te}(f),N=D,M=function(kt){Object(o.a)(Te,kt);var wt=Object(n.a)(Te);function Te(){var xe;return Object(O.a)(this,Te),xe=wt.call(this,"websocket-loader"),xe.TAG="WebSocketLoader",xe._needStash=!0,xe._ws=null,xe._requestAbort=!1,xe._receivedLength=0,xe}return Object(E.a)(Te,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(p.a)(Object(g.a)(Te.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ce){try{var Ye=this._ws=new self.WebSocket(Ce.url);Ye.binaryType="arraybuffer",Ye.onopen=this._onWebSocketOpen.bind(this),Ye.onclose=this._onWebSocketClose.bind(this),Ye.onmessage=this._onWebSocketMessage.bind(this),Ye.onerror=this._onWebSocketError.bind(this),this._status=l.kConnecting}catch(dt){this._status=l.kError;var it={code:dt.code,msg:dt.message};if(this._onError)this._onError(u.EXCEPTION,it);else throw new e(it.msg)}}},{key:"abort",value:function(){var Ce=this._ws;Ce&&(Ce.readyState===0||Ce.readyState===1)&&(this._requestAbort=!0,Ce.close()),this._ws=null,this._status=l.kComplete}},{key:"_onWebSocketOpen",value:function(Ce){this._status=l.kBuffering}},{key:"_onWebSocketClose",value:function(Ce){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=l.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Ce){var Ye=this;if(Ce.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Ce.data);else if(Ce.data instanceof Blob){var it=new FileReader;it.onload=function(){Ye._dispatchArrayBuffer(it.result)},it.readAsArrayBuffer(Ce.data)}else{this._status=l.kError;var dt={code:-1,msg:"Unsupported WebSocket message type: "+Ce.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,dt);else throw new e(dt.msg)}}},{key:"_dispatchArrayBuffer",value:function(Ce){var Ye=Ce,it=this._receivedLength;this._receivedLength+=Ye.byteLength,this._onDataArrival&&this._onDataArrival(Ye,it,this._receivedLength)}},{key:"_onWebSocketError",value:function(Ce){this._status=l.kError;var Ye={code:Ce.code,msg:Ce.message};if(this._onError)this._onError(u.EXCEPTION,Ye);else throw new e(Ye.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Ce){return!1}}}]),Te}(f),B=M,R=function(){function kt(wt){Object(O.a)(this,kt),this._zeroStart=wt||!1}return Object(E.a)(kt,[{key:"getConfig",value:function(Te,xe){var Ce={};if(xe.from!==0||xe.to!==-1){var Ye;xe.to!==-1?Ye="bytes=".concat(xe.from.toString(),"-").concat(xe.to.toString()):Ye="bytes=".concat(xe.from.toString(),"-"),Ce.Range=Ye}else this._zeroStart&&(Ce.Range="bytes=0-");return{url:Te,headers:Ce}}},{key:"removeURLParameters",value:function(Te){return Te}}]),kt}(),H=R,F=function(){function kt(wt,Te){Object(O.a)(this,kt),this._startName=wt,this._endName=Te}return Object(E.a)(kt,[{key:"getConfig",value:function(Te,xe){var Ce=Te;if(xe.from!==0||xe.to!==-1){var Ye=!0;Ce.indexOf("?")===-1&&(Ce+="?",Ye=!1),Ye&&(Ce+="&"),Ce+="".concat(this._startName,"=").concat(xe.from.toString()),xe.to!==-1&&(Ce+="&".concat(this._endName,"=").concat(xe.to.toString()))}return{url:Ce,headers:{}}}},{key:"removeURLParameters",value:function(Te){var xe=Te.split("?")[0],Ce=void 0,Ye=Te.indexOf("?");Ye!==-1&&(Ce=Te.substring(Ye+1));var it="";if(Ce!=null&&Ce.length>0)for(var dt=Ce.split("&"),_t=0;_t<dt.length;_t++){var vr=dt[_t].split("="),kr=_t>0;vr[0]!==this._startName&&vr[0]!==this._endName&&(kr&&(it+="&"),it+=dt[_t])}return it.length===0?xe:xe+"?"+it}}]),kt}(),K=F,U=function(){function kt(wt,Te,xe){Object(O.a)(this,kt),this.TAG="IOController",this._config=Te,this._extraData=xe,this._stashInitialSize=1024*384,Te.stashInitialSize!=null&&Te.stashInitialSize>0&&(this._stashInitialSize=Te.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,Te.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=wt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(wt.url),this._refTotalLength=wt.filesize?wt.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)(kt,[{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(Te){this._extraData=Te}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Te){this._onDataArrival=Te}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Te){this._onSeeked=Te}},{key:"onError",get:function(){return this._onError},set:function(Te){this._onError=Te}},{key:"onComplete",get:function(){return this._onComplete},set:function(Te){this._onComplete=Te}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Te){this._onRedirect=Te}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Te){this._onRecoveredEarlyEof=Te}},{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 Te=this._config;if(Te.seekType==="range")this._seekHandler=new H(this._config.rangeLoadZeroStart);else if(Te.seekType==="param"){var xe=Te.seekParamStart||"bstart",Ce=Te.seekParamEnd||"bend";this._seekHandler=new K(xe,Ce)}else if(Te.seekType==="custom"){if(typeof Te.customSeekHandler!="function")throw new t("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Te.customSeekHandler}else throw new t("Invalid seekType in config: ".concat(Te.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=B;else if(S.isSupported())this._loaderClass=S;else if(_.isSupported())this._loaderClass=_;else if(N.isSupported())this._loaderClass=N;else throw new e("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(Te){this._currentRange={from:0,to:-1},Te&&(this._currentRange.from=Te),this._speedSampler.reset(),Te||(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 Te=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Te,!0)}}},{key:"seek",value:function(Te){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Te,!0)}},{key:"_internalSeek",value:function(Te,xe){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(xe),this._loader.destroy(),this._loader=null;var Ce={from:Te,to:-1};this._currentRange={from:Ce.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Ce),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Te){if(!Te||typeof Te!="string"||Te.length===0)throw new t("Url must be a non-empty string!");this._dataSource.url=Te}},{key:"_expandBuffer",value:function(Te){for(var xe=this._stashSize;xe+1024*1024*1<Te;)xe*=2;if(xe+=1024*1024*1,xe===this._bufferSize)return;var Ce=new ArrayBuffer(xe);if(this._stashUsed>0){var Ye=new Uint8Array(this._stashBuffer,0,this._stashUsed),it=new Uint8Array(Ce,0,xe);it.set(Ye,0)}this._stashBuffer=Ce,this._bufferSize=xe}},{key:"_normalizeSpeed",value:function(Te){var xe=this._speedNormalizeList,Ce=xe.length-1,Ye=0,it=0,dt=Ce;if(Te<xe[0])return xe[0];for(;it<=dt;){if(Ye=it+Math.floor((dt-it)/2),Ye===Ce||Te>=xe[Ye]&&Te<xe[Ye+1])return xe[Ye];xe[Ye]<Te?it=Ye+1:dt=Ye-1}}},{key:"_adjustStashSize",value:function(Te){var xe=0;this._config.isLive||Te<512?xe=Te:Te>=512&&Te<=1024?xe=Math.floor(Te*1.5):xe=Te*2,xe>8192&&(xe=8192);var Ce=xe*1024+1024*1024*1;this._bufferSize<Ce&&this._expandBuffer(Ce),this._stashSize=xe*1024}},{key:"_dispatchChunks",value:function(Te,xe){return this._currentRange.to=xe+Te.byteLength-1,this._onDataArrival(Te,xe)}},{key:"_onURLRedirect",value:function(Te){this._redirectedURL=Te,this._onRedirect&&this._onRedirect(Te)}},{key:"_onContentLengthKnown",value:function(Te){Te&&this._fullRequestFlag&&(this._totalLength=Te,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Te,xe,Ce){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(Te.byteLength);var Ye=this._speedSampler.lastSecondKBps;if(Ye!==0){var it=this._normalizeSpeed(Ye);this._speedNormalized!==it&&(this._speedNormalized=it,this._adjustStashSize(it))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=xe),this._stashUsed+Te.byteLength<=this._stashSize){var nt=new Uint8Array(this._stashBuffer,0,this._stashSize);nt.set(new Uint8Array(Te),this._stashUsed),this._stashUsed+=Te.byteLength}else{var st=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Xt=this._stashBuffer.slice(0,this._stashUsed),Dt=this._dispatchChunks(Xt,this._stashByteStart);if(Dt<Xt.byteLength){if(Dt>0){var St=new Uint8Array(Xt,Dt);st.set(St,0),this._stashUsed=St.byteLength,this._stashByteStart+=Dt}}else this._stashUsed=0,this._stashByteStart+=Dt;this._stashUsed+Te.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Te.byteLength),st=new Uint8Array(this._stashBuffer,0,this._bufferSize)),st.set(new Uint8Array(Te),this._stashUsed),this._stashUsed+=Te.byteLength}else{var jt=this._dispatchChunks(Te,xe);if(jt<Te.byteLength){var At=Te.byteLength-jt;At>this._bufferSize&&(this._expandBuffer(At),st=new Uint8Array(this._stashBuffer,0,this._bufferSize)),st.set(new Uint8Array(Te,jt),0),this._stashUsed+=At,this._stashByteStart=xe+jt}}}else if(this._stashUsed===0){var dt=this._dispatchChunks(Te,xe);if(dt<Te.byteLength){var _t=Te.byteLength-dt;_t>this._bufferSize&&this._expandBuffer(_t);var vr=new Uint8Array(this._stashBuffer,0,this._bufferSize);vr.set(new Uint8Array(Te,dt),0),this._stashUsed+=_t,this._stashByteStart=xe+dt}}else{this._stashUsed+Te.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Te.byteLength);var kr=new Uint8Array(this._stashBuffer,0,this._bufferSize);kr.set(new Uint8Array(Te),this._stashUsed),this._stashUsed+=Te.byteLength;var mn=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(mn<this._stashUsed&&mn>0){var Mt=new Uint8Array(this._stashBuffer,mn);kr.set(Mt,0)}this._stashUsed-=mn,this._stashByteStart+=mn}}},{key:"_flushStashBuffer",value:function(Te){if(this._stashUsed>0){var xe=this._stashBuffer.slice(0,this._stashUsed),Ce=this._dispatchChunks(xe,this._stashByteStart),Ye=xe.byteLength-Ce;if(Ce<xe.byteLength)if(Te)c.w(this.TAG,"".concat(Ye," bytes unconsumed data remain when flush buffer, dropped"));else{if(Ce>0){var it=new Uint8Array(this._stashBuffer,0,this._bufferSize),dt=new Uint8Array(xe,Ce);it.set(dt,0),this._stashUsed=dt.byteLength,this._stashByteStart+=Ce}return 0}return this._stashUsed=0,this._stashByteStart=0,Ye}return 0}},{key:"_onLoaderComplete",value:function(Te,xe){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Te,xe){c.e(this.TAG,"Loader error, code = ".concat(xe.code,", msg = ").concat(xe.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Te=u.UNRECOVERABLE_EARLY_EOF);switch(Te){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Ce=this._currentRange.to+1;Ce<this._totalLength&&(c.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Ce,!1));return}Te=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(Te,xe);else throw new e("IOException: "+xe.msg)}}]),kt}(),V=U,z={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({},z)}var q=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Te=new V({},Y()),xe=Te.loaderType;return Te.destroy(),xe=="fetch-stream-loader"||xe=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Te=new V({},Y()),xe=Te.loaderType;return Te.destroy(),xe}},{key:"supportNativeMediaPlayback",value:function(Te){kt.videoElement==null&&(kt.videoElement=window.document.createElement("video"));var xe=kt.videoElement.canPlayType(Te);return xe==="probably"||xe=="maybe"}},{key:"getFeatureList",value:function(){var Te={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Te.mseFlvPlayback=kt.supportMSEH264Playback(),Te.networkStreamIO=kt.supportNetworkStreamIO(),Te.networkLoaderName=kt.getNetworkLoaderTypeName(),Te.mseLiveFlvPlayback=Te.mseFlvPlayback&&Te.networkStreamIO,Te.nativeMP4H264Playback=kt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Te.nativeWebmVP8Playback=kt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Te.nativeWebmVP9Playback=kt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Te}}]),kt}(),ce=q,ie={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"},ve=ie,Ee=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"forceGlobalTag",get:function(){return c.FORCE_GLOBAL_TAG},set:function(Te){c.FORCE_GLOBAL_TAG=Te,kt._notifyChange()}},{key:"globalTag",get:function(){return c.GLOBAL_TAG},set:function(Te){c.GLOBAL_TAG=Te,kt._notifyChange()}},{key:"enableAll",get:function(){return c.ENABLE_VERBOSE&&c.ENABLE_DEBUG&&c.ENABLE_INFO&&c.ENABLE_WARN&&c.ENABLE_ERROR},set:function(Te){c.ENABLE_VERBOSE=Te,c.ENABLE_DEBUG=Te,c.ENABLE_INFO=Te,c.ENABLE_WARN=Te,c.ENABLE_ERROR=Te,kt._notifyChange()}},{key:"enableDebug",get:function(){return c.ENABLE_DEBUG},set:function(Te){c.ENABLE_DEBUG=Te,kt._notifyChange()}},{key:"enableVerbose",get:function(){return c.ENABLE_VERBOSE},set:function(Te){c.ENABLE_VERBOSE=Te,kt._notifyChange()}},{key:"enableInfo",get:function(){return c.ENABLE_INFO},set:function(Te){c.ENABLE_INFO=Te,kt._notifyChange()}},{key:"enableWarn",get:function(){return c.ENABLE_WARN},set:function(Te){c.ENABLE_WARN=Te,kt._notifyChange()}},{key:"enableError",get:function(){return c.ENABLE_ERROR},set:function(Te){c.ENABLE_ERROR=Te,kt._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(Te){c.GLOBAL_TAG=Te.globalTag,c.FORCE_GLOBAL_TAG=Te.forceGlobalTag,c.ENABLE_VERBOSE=Te.enableVerbose,c.ENABLE_DEBUG=Te.enableDebug,c.ENABLE_INFO=Te.enableInfo,c.ENABLE_WARN=Te.enableWarn,c.ENABLE_ERROR=Te.enableError,c.ENABLE_CALLBACK=Te.enableCallback}},{key:"_notifyChange",value:function(){var Te=kt.emitter;if(Te.listenerCount("change")>0){var xe=kt.getConfig();Te.emit("change",xe)}}},{key:"registerListener",value:function(Te){kt.emitter.addListener("change",Te)}},{key:"removeListener",value:function(Te){kt.emitter.removeListener("change",Te)}},{key:"addLogListener",value:function(Te){c.emitter.addListener("log",Te),c.emitter.listenerCount("log")>0&&(c.ENABLE_CALLBACK=!0,kt._notifyChange())}},{key:"removeLogListener",value:function(Te){c.emitter.removeListener("log",Te),c.emitter.listenerCount("log")===0&&(c.ENABLE_CALLBACK=!1,kt._notifyChange())}}]),kt}();Ee.emitter=new m.a;var Le=Ee,He=function(){function kt(){Object(O.a)(this,kt),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)(kt,[{key:"isComplete",value:function(){var Te=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,xe=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&&Te&&xe}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Te){if(this.keyframesIndex==null)return null;var xe=this.keyframesIndex,Ce=this._search(xe.times,Te);return{index:Ce,milliseconds:xe.times[Ce],fileposition:xe.filepositions[Ce]}}},{key:"_search",value:function(Te,xe){var Ce=0,Ye=Te.length-1,it=0,dt=0,_t=Ye;for(xe<Te[0]&&(Ce=0,dt=_t+1);dt<=_t;)if(it=dt+Math.floor((_t-dt)/2),it===Ye||xe>=Te[it]&&xe<Te[it+1]){Ce=it;break}else Te[it]<xe?dt=it+1:_t=it-1;return Ce}}]),kt}(),ge=He;function Fe(kt,wt,Te){var xe=kt;if(wt+Te<xe.length){for(;Te--;)if((xe[++wt]&192)!==128)return!1;return!0}else return!1}function Q(kt){for(var wt=[],Te=kt,xe=0,Ce=kt.length;xe<Ce;){if(Te[xe]<128){wt.push(String.fromCharCode(Te[xe])),++xe;continue}else if(!(Te[xe]<192)){if(Te[xe]<224){if(Fe(Te,xe,1)){var Ye=(Te[xe]&31)<<6|Te[xe+1]&63;if(Ye>=128){wt.push(String.fromCharCode(Ye&65535)),xe+=2;continue}}}else if(Te[xe]<240){if(Fe(Te,xe,2)){var it=(Te[xe]&15)<<12|(Te[xe+1]&63)<<6|Te[xe+2]&63;if(it>=2048&&(it&63488)!==55296){wt.push(String.fromCharCode(it&65535)),xe+=3;continue}}}else if(Te[xe]<248&&Fe(Te,xe,3)){var dt=(Te[xe]&7)<<18|(Te[xe+1]&63)<<12|(Te[xe+2]&63)<<6|Te[xe+3]&63;if(dt>65536&&dt<1114112){dt-=65536,wt.push(String.fromCharCode(dt>>>10|55296)),wt.push(String.fromCharCode(dt&1023|56320)),xe+=4;continue}}}wt.push(String.fromCharCode(65533)),++xe}return wt.join("")}var fe=Q,Je=function(){var kt=new ArrayBuffer(2);return new DataView(kt).setInt16(0,256,!0),new Int16Array(kt)[0]===256}(),ne=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"parseScriptData",value:function(Te,xe,Ce){var Ye={};try{var it=kt.parseValue(Te,xe,Ce),dt=kt.parseValue(Te,xe+it.size,Ce-it.size);Ye[it.data]=dt.data}catch(_t){c.e("AMF",_t.toString())}return Ye}},{key:"parseObject",value:function(Te,xe,Ce){if(Ce<3)throw new s("Data not enough when parse ScriptDataObject");var Ye=kt.parseString(Te,xe,Ce),it=kt.parseValue(Te,xe+Ye.size,Ce-Ye.size),dt=it.objectEnd;return{data:{name:Ye.data,value:it.data},size:Ye.size+it.size,objectEnd:dt}}},{key:"parseVariable",value:function(Te,xe,Ce){return kt.parseObject(Te,xe,Ce)}},{key:"parseString",value:function(Te,xe,Ce){if(Ce<2)throw new s("Data not enough when parse String");var Ye=new DataView(Te,xe,Ce),it=Ye.getUint16(0,!Je),dt;return it>0?dt=fe(new Uint8Array(Te,xe+2,it)):dt="",{data:dt,size:2+it}}},{key:"parseLongString",value:function(Te,xe,Ce){if(Ce<4)throw new s("Data not enough when parse LongString");var Ye=new DataView(Te,xe,Ce),it=Ye.getUint32(0,!Je),dt;return it>0?dt=fe(new Uint8Array(Te,xe+4,it)):dt="",{data:dt,size:4+it}}},{key:"parseDate",value:function(Te,xe,Ce){if(Ce<10)throw new s("Data size invalid when parse Date");var Ye=new DataView(Te,xe,Ce),it=Ye.getFloat64(0,!Je),dt=Ye.getInt16(8,!Je);return it+=dt*60*1e3,{data:new Date(it),size:8+2}}},{key:"parseValue",value:function(Te,xe,Ce){if(Ce<1)throw new s("Data not enough when parse Value");var Ye=new DataView(Te,xe,Ce),it=1,dt=Ye.getUint8(0),_t,vr=!1;try{switch(dt){case 0:_t=Ye.getFloat64(1,!Je),it+=8;break;case 1:{var kr=Ye.getUint8(1);_t=!!kr,it+=1;break}case 2:{var mn=kt.parseString(Te,xe+1,Ce-1);_t=mn.data,it+=mn.size;break}case 3:{_t={};var Mt=0;for((Ye.getUint32(Ce-4,!Je)&16777215)===9&&(Mt=3);it<Ce-4;){var nt=kt.parseObject(Te,xe+it,Ce-it-Mt);if(nt.objectEnd)break;_t[nt.data.name]=nt.data.value,it+=nt.size}if(it<=Ce-3){var st=Ye.getUint32(it-1,!Je)&16777215;st===9&&(it+=3)}break}case 8:{_t={},it+=4;var Xt=0;for((Ye.getUint32(Ce-4,!Je)&16777215)===9&&(Xt=3);it<Ce-8;){var Dt=kt.parseVariable(Te,xe+it,Ce-it-Xt);if(Dt.objectEnd)break;_t[Dt.data.name]=Dt.data.value,it+=Dt.size}if(it<=Ce-3){var St=Ye.getUint32(it-1,!Je)&16777215;St===9&&(it+=3)}break}case 9:_t=void 0,it=1,vr=!0;break;case 10:{_t=[];var jt=Ye.getUint32(1,!Je);it+=4;for(var At=0;At<jt;At++){var Ft=kt.parseValue(Te,xe+it,Ce-it);_t.push(Ft.data),it+=Ft.size}break}case 11:{var wr=kt.parseDate(Te,xe+1,Ce-1);_t=wr.data,it+=wr.size;break}case 12:{var sr=kt.parseString(Te,xe+1,Ce-1);_t=sr.data,it+=sr.size;break}default:it=Ce,c.w("AMF","Unsupported AMF value type "+dt)}}catch(mr){c.e("AMF",mr.toString())}return{data:_t,size:it,objectEnd:vr}}}]),kt}(),X=ne,G=function(){function kt(wt){Object(O.a)(this,kt),this.TAG="ExpGolomb",this._buffer=wt,this._buffer_index=0,this._total_bytes=wt.byteLength,this._total_bits=wt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(E.a)(kt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Te=this._total_bytes-this._buffer_index;if(Te<=0)throw new s("ExpGolomb: _fillCurrentWord() but no bytes available");var xe=Math.min(4,Te),Ce=new Uint8Array(4);Ce.set(this._buffer.subarray(this._buffer_index,this._buffer_index+xe)),this._current_word=new DataView(Ce.buffer).getUint32(0,!1),this._buffer_index+=xe,this._current_word_bits_left=xe*8}},{key:"readBits",value:function(Te){if(Te>32)throw new t("ExpGolomb: readBits() bits exceeded max 32bits!");if(Te<=this._current_word_bits_left){var xe=this._current_word>>>32-Te;return this._current_word<<=Te,this._current_word_bits_left-=Te,xe}var Ce=this._current_word_bits_left?this._current_word:0;Ce=Ce>>>32-this._current_word_bits_left;var Ye=Te-this._current_word_bits_left;this._fillCurrentWord();var it=Math.min(Ye,this._current_word_bits_left),dt=this._current_word>>>32-it;return this._current_word<<=it,this._current_word_bits_left-=it,Ce=Ce<<it|dt,Ce}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Te;for(Te=0;Te<this._current_word_bits_left;Te++)if((this._current_word&2147483648>>>Te)!==0)return this._current_word<<=Te,this._current_word_bits_left-=Te,Te;return this._fillCurrentWord(),Te+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Te=this._skipLeadingZero();return this.readBits(Te+1)-1}},{key:"readSEG",value:function(){var Te=this.readUEG();return Te&1?Te+1>>>1:-1*(Te>>>1)}}]),kt}(),te=G,we=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"_ebsp2rbsp",value:function(Te){for(var xe=Te,Ce=xe.byteLength,Ye=new Uint8Array(Ce),it=0,dt=0;dt<Ce;dt++){if(dt>=2&&(xe[dt]===3&&xe[dt-1]===0&&xe[dt-2]===0))continue;Ye[it]=xe[dt],it++}return new Uint8Array(Ye.buffer,0,it)}},{key:"parseSPS",value:function(Te){var xe=kt._ebsp2rbsp(Te),Ce=new te(xe);Ce.readByte();var Ye=Ce.readByte();Ce.readByte();var it=Ce.readByte();Ce.readUEG();var dt=kt.getProfileString(Ye),_t=kt.getLevelString(it),vr=1,kr=420,mn=[0,420,422,444],Mt=8;if((Ye===100||Ye===110||Ye===122||Ye===244||Ye===44||Ye===83||Ye===86||Ye===118||Ye===128||Ye===138||Ye===144)&&(vr=Ce.readUEG(),vr===3&&Ce.readBits(1),vr<=3&&(kr=mn[vr]),Mt=Ce.readUEG()+8,Ce.readUEG(),Ce.readBits(1),Ce.readBool()))for(var nt=vr!==3?8:12,st=0;st<nt;st++)Ce.readBool()&&(st<6?kt._skipScalingList(Ce,16):kt._skipScalingList(Ce,64));Ce.readUEG();var Xt=Ce.readUEG();if(Xt===0)Ce.readUEG();else if(Xt===1){Ce.readBits(1),Ce.readSEG(),Ce.readSEG();for(var Dt=Ce.readUEG(),St=0;St<Dt;St++)Ce.readSEG()}var jt=Ce.readUEG();Ce.readBits(1);var At=Ce.readUEG(),Ft=Ce.readUEG(),wr=Ce.readBits(1);wr===0&&Ce.readBits(1),Ce.readBits(1);var sr=0,mr=0,$r=0,rn=0,jn=Ce.readBool();jn&&(sr=Ce.readUEG(),mr=Ce.readUEG(),$r=Ce.readUEG(),rn=Ce.readUEG());var Un=1,ui=1,yi=0,Ii=!0,Gi=0,Qe=0,be=Ce.readBool();if(be){if(Ce.readBool()){var Ne=Ce.readByte(),Ue=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Xe=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ne>0&&Ne<16?(Un=Ue[Ne-1],ui=Xe[Ne-1]):Ne===255&&(Un=Ce.readByte()<<8|Ce.readByte(),ui=Ce.readByte()<<8|Ce.readByte())}if(Ce.readBool()&&Ce.readBool(),Ce.readBool()&&(Ce.readBits(4),Ce.readBool()&&Ce.readBits(24)),Ce.readBool()&&(Ce.readUEG(),Ce.readUEG()),Ce.readBool()){var ze=Ce.readBits(32),Ze=Ce.readBits(32);Ii=Ce.readBool(),Gi=Ze,Qe=ze*2,yi=Gi/Qe}}var bt=1;(Un!==1||ui!==1)&&(bt=Un/ui);var ut=0,Gt=0;if(vr===0)ut=1,Gt=2-wr;else{var Mr=vr===3?1:2,Lr=vr===1?2:1;ut=Mr,Gt=Lr*(2-wr)}var Gr=(At+1)*16,Ht=(2-wr)*((Ft+1)*16);Gr-=(sr+mr)*ut,Ht-=($r+rn)*Gt;var hn=Math.ceil(Gr*bt);return Ce.destroy(),Ce=null,{profile_string:dt,level_string:_t,bit_depth:Mt,ref_frames:jt,chroma_format:kr,chroma_format_string:kt.getChromaFormatString(kr),frame_rate:{fixed:Ii,fps:yi,fps_den:Qe,fps_num:Gi},sar_ratio:{width:Un,height:ui},codec_size:{width:Gr,height:Ht},present_size:{width:hn,height:Ht}}}},{key:"_skipScalingList",value:function(Te,xe){for(var Ce=8,Ye=8,it=0,dt=0;dt<xe;dt++)Ye!==0&&(it=Te.readSEG(),Ye=(Ce+it+256)%256),Ce=Ye===0?Ce:Ye}},{key:"getProfileString",value:function(Te){switch(Te){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(Te){return(Te/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Te){switch(Te){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),kt}(),he=we,Pe={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Oe=Pe;function le(kt){return kt>>>8&255|(kt&255)<<8}function me(kt){return(kt&4278190080)>>>24|(kt&16711680)>>>8|(kt&65280)<<8|(kt&255)<<24}function _e(kt,wt){return kt[wt]<<24|kt[wt+1]<<16|kt[wt+2]<<8|kt[wt+3]}var $e=function(){function kt(wt,Te){Object(O.a)(this,kt),this.TAG="FLVDemuxer",this._config=Te,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=wt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=wt.hasAudioTrack,this._hasVideo=wt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new ge,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 xe=new ArrayBuffer(2);return new DataView(xe).setInt16(0,256,!0),new Int16Array(xe)[0]===256}()}return Object(E.a)(kt,[{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(Te){return Te.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Te){this._onTrackMetadata=Te}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Te){this._onMediaInfo=Te}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Te){this._onMetaDataArrived=Te}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Te){this._onScriptDataArrived=Te}},{key:"onError",get:function(){return this._onError},set:function(Te){this._onError=Te}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Te){this._onDataAvailable=Te}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Te){this._timestampBase=Te}},{key:"overridedDuration",get:function(){return this._duration},set:function(Te){this._durationOverrided=!0,this._duration=Te,this._mediaInfo.duration=Te}},{key:"overridedHasAudio",set:function(Te){this._hasAudioFlagOverrided=!0,this._hasAudio=Te,this._mediaInfo.hasAudio=Te}},{key:"overridedHasVideo",set:function(Te){this._hasVideoFlagOverrided=!0,this._hasVideo=Te,this._mediaInfo.hasVideo=Te}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new ge}},{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(Te,xe){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new s("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Ce=0,Ye=this._littleEndian;if(xe===0)if(Te.byteLength>13){var it=kt.probe(Te);Ce=it.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,xe+Ce!==this._dataOffset&&c.w(this.TAG,"First time parsing but chunk byteStart invalid!");var dt=new DataView(Te,Ce),_t=dt.getUint32(0,!Ye);_t!==0&&c.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Ce+=4}for(;Ce<Te.byteLength;){this._dispatch=!0;var vr=new DataView(Te,Ce);if(Ce+11+4>Te.byteLength)break;var kr=vr.getUint8(0),mn=vr.getUint32(0,!Ye)&16777215;if(Ce+11+mn+4>Te.byteLength)break;if(kr!==8&&kr!==9&&kr!==18){c.w(this.TAG,"Unsupported tag type ".concat(kr,", skipped")),Ce+=11+mn+4;continue}var Mt=vr.getUint8(4),nt=vr.getUint8(5),st=vr.getUint8(6),Xt=vr.getUint8(7),Dt=st|nt<<8|Mt<<16|Xt<<24,St=vr.getUint32(7,!Ye)&16777215;St!==0&&c.w(this.TAG,"Meet tag which has StreamID != 0!");var jt=Ce+11;switch(kr){case 8:this._parseAudioData(Te,jt,mn,Dt);break;case 9:this._parseVideoData(Te,jt,mn,Dt,xe+Ce);break;case 18:this._parseScriptData(Te,jt,mn);break}var At=vr.getUint32(11+mn,!Ye);At!==11+mn&&c.w(this.TAG,"Invalid PrevTagSize ".concat(At)),Ce+=11+mn+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Ce}},{key:"_parseScriptData",value:function(Te,xe,Ce){var Ye=X.parseScriptData(Te,xe,Ce);if(Ye.hasOwnProperty("onMetaData")){if(Ye.onMetaData==null||typeof Ye.onMetaData!="object"){c.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&c.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ye;var it=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},it)),typeof it.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=it.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof it.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=it.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof it.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=it.audiodatarate),typeof it.videodatarate=="number"&&(this._mediaInfo.videoDataRate=it.videodatarate),typeof it.width=="number"&&(this._mediaInfo.width=it.width),typeof it.height=="number"&&(this._mediaInfo.height=it.height),typeof it.duration=="number"){if(!this._durationOverrided){var dt=Math.floor(it.duration*this._timescale);this._duration=dt,this._mediaInfo.duration=dt}}else this._mediaInfo.duration=0;if(typeof it.framerate=="number"){var _t=Math.floor(it.framerate*1e3);if(_t>0){var vr=_t/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=vr,this._referenceFrameRate.fps_num=_t,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=vr}}if(typeof it.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var kr=it.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(kr),it.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=it,c.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ye).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ye)))}},{key:"_parseKeyframesIndex",value:function(Te){for(var xe=[],Ce=[],Ye=1;Ye<Te.times.length;Ye++){var it=this._timestampBase+Math.floor(Te.times[Ye]*1e3);xe.push(it),Ce.push(Te.filepositions[Ye])}return{times:xe,filepositions:Ce}}},{key:"_parseAudioData",value:function(Te,xe,Ce,Ye){if(Ce<=1){c.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var it=this._littleEndian,dt=new DataView(Te,xe,Ce),_t=dt.getUint8(0),vr=_t>>>4;if(vr!==2&&vr!==10){this._onError(Oe.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+vr);return}var kr=0,mn=(_t&12)>>>2;if(mn>=0&&mn<=4)kr=this._flvSoundRateTable[mn];else{this._onError(Oe.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+mn);return}var Mt=(_t&2)>>>1,nt=_t&1,st=this._audioMetadata,Xt=this._audioTrack;if(st||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),st=this._audioMetadata={},st.type="audio",st.id=Xt.id,st.timescale=this._timescale,st.duration=this._duration,st.audioSampleRate=kr,st.channelCount=nt===0?1:2),vr===10){var Dt=this._parseAACAudioData(Te,xe+1,Ce-1);if(Dt==null)return;if(Dt.packetType===0){st.config&&c.w(this.TAG,"Found another AudioSpecificConfig!");var St=Dt.data;st.audioSampleRate=St.samplingRate,st.channelCount=St.channelCount,st.codec=St.codec,st.originalCodec=St.originalCodec,st.config=St.config,st.refSampleDuration=1024/st.audioSampleRate*st.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",st);var jt=this._mediaInfo;jt.audioCodec=st.originalCodec,jt.audioSampleRate=st.audioSampleRate,jt.audioChannelCount=st.channelCount,jt.hasVideo?jt.videoCodec!=null&&(jt.mimeType='video/x-flv; codecs="'+jt.videoCodec+","+jt.audioCodec+'"'):jt.mimeType='video/x-flv; codecs="'+jt.audioCodec+'"',jt.isComplete()&&this._onMediaInfo(jt)}else if(Dt.packetType===1){var At=this._timestampBase+Ye,Ft={unit:Dt.data,length:Dt.data.byteLength,dts:At,pts:At};Xt.samples.push(Ft),Xt.length+=Dt.data.length}else c.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Dt.packetType))}else if(vr===2){if(!st.codec){var wr=this._parseMP3AudioData(Te,xe+1,Ce-1,!0);if(wr==null)return;st.audioSampleRate=wr.samplingRate,st.channelCount=wr.channelCount,st.codec=wr.codec,st.originalCodec=wr.originalCodec,st.refSampleDuration=1152/st.audioSampleRate*st.timescale,c.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",st);var sr=this._mediaInfo;sr.audioCodec=st.codec,sr.audioSampleRate=st.audioSampleRate,sr.audioChannelCount=st.channelCount,sr.audioDataRate=wr.bitRate,sr.hasVideo?sr.videoCodec!=null&&(sr.mimeType='video/x-flv; codecs="'+sr.videoCodec+","+sr.audioCodec+'"'):sr.mimeType='video/x-flv; codecs="'+sr.audioCodec+'"',sr.isComplete()&&this._onMediaInfo(sr)}var mr=this._parseMP3AudioData(Te,xe+1,Ce-1,!1);if(mr==null)return;var $r=this._timestampBase+Ye,rn={unit:mr,length:mr.byteLength,dts:$r,pts:$r};Xt.samples.push(rn),Xt.length+=mr.length}}},{key:"_parseAACAudioData",value:function(Te,xe,Ce){if(Ce<=1){c.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var Ye={},it=new Uint8Array(Te,xe,Ce);return Ye.packetType=it[0],it[0]===0?Ye.data=this._parseAACAudioSpecificConfig(Te,xe+1,Ce-1):Ye.data=it.subarray(1),Ye}},{key:"_parseAACAudioSpecificConfig",value:function(Te,xe,Ce){var Ye=new Uint8Array(Te,xe,Ce),it=null,dt=0,_t=0,vr=null,kr=0,mn=null;if(dt=_t=Ye[0]>>>3,kr=(Ye[0]&7)<<1|Ye[1]>>>7,kr<0||kr>=this._mpegSamplingRates.length){this._onError(Oe.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Mt=this._mpegSamplingRates[kr],nt=(Ye[1]&120)>>>3;if(nt<0||nt>=8){this._onError(Oe.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}dt===5&&(mn=(Ye[1]&7)<<1|Ye[2]>>>7,vr=(Ye[2]&124)>>>2);var st=self.navigator.userAgent.toLowerCase();return st.indexOf("firefox")!==-1?kr>=6?(dt=5,it=new Array(4),mn=kr-3):(dt=2,it=new Array(2),mn=kr):st.indexOf("android")!==-1?(dt=2,it=new Array(2),mn=kr):(dt=5,mn=kr,it=new Array(4),kr>=6?mn=kr-3:nt===1&&(dt=2,it=new Array(2),mn=kr)),it[0]=dt<<3,it[0]|=(kr&15)>>>1,it[1]=(kr&15)<<7,it[1]|=(nt&15)<<3,dt===5&&(it[1]|=(mn&15)>>>1,it[2]=(mn&1)<<7,it[2]|=2<<2,it[3]=0),{config:it,samplingRate:Mt,channelCount:nt,codec:"mp4a.40."+dt,originalCodec:"mp4a.40."+_t}}},{key:"_parseMP3AudioData",value:function(Te,xe,Ce,Ye){if(Ce<4){c.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var it=this._littleEndian,dt=new Uint8Array(Te,xe,Ce),_t=null;if(Ye){if(dt[0]!==255)return;var vr=dt[1]>>>3&3,kr=(dt[1]&6)>>1,mn=(dt[2]&240)>>>4,Mt=(dt[2]&12)>>>2,nt=dt[3]>>>6&3,st=nt!==3?2:1,Xt=0,Dt=0,St=34,jt="mp3";switch(vr){case 0:Xt=this._mpegAudioV25SampleRateTable[Mt];break;case 2:Xt=this._mpegAudioV20SampleRateTable[Mt];break;case 3:Xt=this._mpegAudioV10SampleRateTable[Mt];break}switch(kr){case 1:St=34,mn<this._mpegAudioL3BitRateTable.length&&(Dt=this._mpegAudioL3BitRateTable[mn]);break;case 2:St=33,mn<this._mpegAudioL2BitRateTable.length&&(Dt=this._mpegAudioL2BitRateTable[mn]);break;case 3:St=32,mn<this._mpegAudioL1BitRateTable.length&&(Dt=this._mpegAudioL1BitRateTable[mn]);break}_t={bitRate:Dt,samplingRate:Xt,channelCount:st,codec:jt,originalCodec:jt}}else _t=dt;return _t}},{key:"_parseVideoData",value:function(Te,xe,Ce,Ye,it){if(Ce<=1){c.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var dt=new Uint8Array(Te,xe,Ce)[0],_t=(dt&240)>>>4,vr=dt&15;if(vr!==7){this._onError(Oe.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(vr));return}this._parseAVCVideoPacket(Te,xe+1,Ce-1,Ye,it,_t)}},{key:"_parseAVCVideoPacket",value:function(Te,xe,Ce,Ye,it,dt){if(Ce<4){c.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var _t=this._littleEndian,vr=new DataView(Te,xe,Ce),kr=vr.getUint8(0),mn=vr.getUint32(0,!_t)&16777215,Mt=mn<<8>>8;if(kr===0)this._parseAVCDecoderConfigurationRecord(Te,xe+4,Ce-4);else if(kr===1)this._parseAVCVideoData(Te,xe+4,Ce-4,Ye,it,dt,Mt);else if(!(kr===2)){this._onError(Oe.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(kr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Te,xe,Ce){if(Ce<7){c.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var Ye=this._videoMetadata,it=this._videoTrack,dt=this._littleEndian,_t=new DataView(Te,xe,Ce);Ye?typeof Ye.avcc!="undefined"&&c.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ye=this._videoMetadata={},Ye.type="video",Ye.id=it.id,Ye.timescale=this._timescale,Ye.duration=this._duration);var vr=_t.getUint8(0),kr=_t.getUint8(1),mn=_t.getUint8(2),Mt=_t.getUint8(3);if(vr!==1||kr===0){this._onError(Oe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(_t.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Oe.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var nt=_t.getUint8(5)&31;if(nt===0){this._onError(Oe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else nt>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(nt));for(var st=6,Xt=0;Xt<nt;Xt++){var Dt=_t.getUint16(st,!dt);if(st+=2,Dt===0)continue;var St=new Uint8Array(Te,xe+st,Dt);st+=Dt;var jt=he.parseSPS(St);if(Xt!==0)continue;Ye.codecWidth=jt.codec_size.width,Ye.codecHeight=jt.codec_size.height,Ye.presentWidth=jt.present_size.width,Ye.presentHeight=jt.present_size.height,Ye.profile=jt.profile_string,Ye.level=jt.level_string,Ye.bitDepth=jt.bit_depth,Ye.chromaFormat=jt.chroma_format,Ye.sarRatio=jt.sar_ratio,Ye.frameRate=jt.frame_rate,(jt.frame_rate.fixed===!1||jt.frame_rate.fps_num===0||jt.frame_rate.fps_den===0)&&(Ye.frameRate=this._referenceFrameRate);var At=Ye.frameRate.fps_den,Ft=Ye.frameRate.fps_num;Ye.refSampleDuration=Ye.timescale*(At/Ft);for(var wr=St.subarray(1,4),sr="avc1.",mr=0;mr<3;mr++){var $r=wr[mr].toString(16);$r.length<2&&($r="0"+$r),sr+=$r}Ye.codec=sr;var rn=this._mediaInfo;rn.width=Ye.codecWidth,rn.height=Ye.codecHeight,rn.fps=Ye.frameRate.fps,rn.profile=Ye.profile,rn.level=Ye.level,rn.refFrames=jt.ref_frames,rn.chromaFormat=jt.chroma_format_string,rn.sarNum=Ye.sarRatio.width,rn.sarDen=Ye.sarRatio.height,rn.videoCodec=sr,rn.hasAudio?rn.audioCodec!=null&&(rn.mimeType='video/x-flv; codecs="'+rn.videoCodec+","+rn.audioCodec+'"'):rn.mimeType='video/x-flv; codecs="'+rn.videoCodec+'"',rn.isComplete()&&this._onMediaInfo(rn)}var jn=_t.getUint8(st);if(jn===0){this._onError(Oe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else jn>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(jn));st++;for(var Un=0;Un<jn;Un++){var ui=_t.getUint16(st,!dt);if(st+=2,ui===0)continue;st+=ui}Ye.avcc=new Uint8Array(Ce),Ye.avcc.set(new Uint8Array(Te,xe,Ce),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",Ye)}},{key:"_parseAVCVideoData",value:function(Te,xe,Ce,Ye,it,dt,_t){for(var vr=this._littleEndian,kr=new DataView(Te,xe,Ce),mn=[],Mt=0,nt=0,st=this._naluLengthSize,Xt=this._timestampBase+Ye,Dt=dt===1;nt<Ce;){if(nt+4>=Ce){c.w(this.TAG,"Malformed Nalu near timestamp ".concat(Xt,", offset = ").concat(nt,", dataSize = ").concat(Ce));break}var St=kr.getUint32(nt,!vr);if(st===3&&(St>>>=8),St>Ce-st){c.w(this.TAG,"Malformed Nalus near timestamp ".concat(Xt,", NaluSize > DataSize!"));return}var jt=kr.getUint8(nt+st)&31;jt===5&&(Dt=!0);var At=new Uint8Array(Te,xe+nt,st+St),Ft={type:jt,data:At};mn.push(Ft),Mt+=At.byteLength,nt+=st+St}if(mn.length){var wr=this._videoTrack,sr={units:mn,length:Mt,isKeyframe:Dt,dts:Xt,cts:_t,pts:Xt+_t};Dt&&(sr.fileposition=it),wr.samples.push(sr),wr.length+=Mt}}}],[{key:"probe",value:function(Te){var xe=new Uint8Array(Te),Ce={match:!1};if(xe[0]!==70||xe[1]!==76||xe[2]!==86||xe[3]!==1)return Ce;var Ye=(xe[4]&4)>>>2!==0,it=(xe[4]&1)!==0,dt=_e(xe,5);return dt<9?Ce:{match:!0,consumed:dt,dataOffset:dt,hasAudioTrack:Ye,hasVideoTrack:it}}}]),kt}(),gt=$e,et=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"init",value:function(){kt.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 Te in kt.types)kt.types.hasOwnProperty(Te)&&(kt.types[Te]=[Te.charCodeAt(0),Te.charCodeAt(1),Te.charCodeAt(2),Te.charCodeAt(3)]);var xe=kt.constants={};xe.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),xe.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),xe.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),xe.STSC=xe.STCO=xe.STTS,xe.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),xe.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]),xe.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]),xe.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),xe.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),xe.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Te){for(var xe=8,Ce=null,Ye=Array.prototype.slice.call(arguments,1),it=Ye.length,dt=0;dt<it;dt++)xe+=Ye[dt].byteLength;Ce=new Uint8Array(xe),Ce[0]=xe>>>24&255,Ce[1]=xe>>>16&255,Ce[2]=xe>>>8&255,Ce[3]=xe&255,Ce.set(Te,4);for(var _t=8,vr=0;vr<it;vr++)Ce.set(Ye[vr],_t),_t+=Ye[vr].byteLength;return Ce}},{key:"generateInitSegment",value:function(Te){var xe=kt.box(kt.types.ftyp,kt.constants.FTYP),Ce=kt.moov(Te),Ye=new Uint8Array(xe.byteLength+Ce.byteLength);return Ye.set(xe,0),Ye.set(Ce,xe.byteLength),Ye}},{key:"moov",value:function(Te){var xe=kt.mvhd(Te.timescale,Te.duration),Ce=kt.trak(Te),Ye=kt.mvex(Te);return kt.box(kt.types.moov,xe,Ce,Ye)}},{key:"mvhd",value:function(Te,xe){return kt.box(kt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Te>>>24&255,Te>>>16&255,Te>>>8&255,Te&255,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&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(Te){return kt.box(kt.types.trak,kt.tkhd(Te),kt.mdia(Te))}},{key:"tkhd",value:function(Te){var xe=Te.id,Ce=Te.duration,Ye=Te.presentWidth,it=Te.presentHeight;return kt.box(kt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255,0,0,0,0,Ce>>>24&255,Ce>>>16&255,Ce>>>8&255,Ce&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,Ye>>>8&255,Ye&255,0,0,it>>>8&255,it&255,0,0]))}},{key:"mdia",value:function(Te){return kt.box(kt.types.mdia,kt.mdhd(Te),kt.hdlr(Te),kt.minf(Te))}},{key:"mdhd",value:function(Te){var xe=Te.timescale,Ce=Te.duration;return kt.box(kt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255,Ce>>>24&255,Ce>>>16&255,Ce>>>8&255,Ce&255,85,196,0,0]))}},{key:"hdlr",value:function(Te){var xe=null;return Te.type==="audio"?xe=kt.constants.HDLR_AUDIO:xe=kt.constants.HDLR_VIDEO,kt.box(kt.types.hdlr,xe)}},{key:"minf",value:function(Te){var xe=null;return Te.type==="audio"?xe=kt.box(kt.types.smhd,kt.constants.SMHD):xe=kt.box(kt.types.vmhd,kt.constants.VMHD),kt.box(kt.types.minf,xe,kt.dinf(),kt.stbl(Te))}},{key:"dinf",value:function(){var Te=kt.box(kt.types.dinf,kt.box(kt.types.dref,kt.constants.DREF));return Te}},{key:"stbl",value:function(Te){var xe=kt.box(kt.types.stbl,kt.stsd(Te),kt.box(kt.types.stts,kt.constants.STTS),kt.box(kt.types.stsc,kt.constants.STSC),kt.box(kt.types.stsz,kt.constants.STSZ),kt.box(kt.types.stco,kt.constants.STCO));return xe}},{key:"stsd",value:function(Te){return Te.type==="audio"?Te.codec==="mp3"?kt.box(kt.types.stsd,kt.constants.STSD_PREFIX,kt.mp3(Te)):kt.box(kt.types.stsd,kt.constants.STSD_PREFIX,kt.mp4a(Te)):kt.box(kt.types.stsd,kt.constants.STSD_PREFIX,kt.avc1(Te))}},{key:"mp3",value:function(Te){var xe=Te.channelCount,Ce=Te.audioSampleRate,Ye=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,xe,0,16,0,0,0,0,Ce>>>8&255,Ce&255,0,0]);return kt.box(kt.types[".mp3"],Ye)}},{key:"mp4a",value:function(Te){var xe=Te.channelCount,Ce=Te.audioSampleRate,Ye=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,xe,0,16,0,0,0,0,Ce>>>8&255,Ce&255,0,0]);return kt.box(kt.types.mp4a,Ye,kt.esds(Te))}},{key:"esds",value:function(Te){var xe=Te.config||[],Ce=xe.length,Ye=new Uint8Array([0,0,0,0,3,23+Ce,0,1,0,4,15+Ce,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Ce]).concat(xe).concat([6,1,2]));return kt.box(kt.types.esds,Ye)}},{key:"avc1",value:function(Te){var xe=Te.avcc,Ce=Te.codecWidth,Ye=Te.codecHeight,it=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,Ce>>>8&255,Ce&255,Ye>>>8&255,Ye&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 kt.box(kt.types.avc1,it,kt.box(kt.types.avcC,xe))}},{key:"mvex",value:function(Te){return kt.box(kt.types.mvex,kt.trex(Te))}},{key:"trex",value:function(Te){var xe=Te.id,Ce=new Uint8Array([0,0,0,0,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return kt.box(kt.types.trex,Ce)}},{key:"moof",value:function(Te,xe){return kt.box(kt.types.moof,kt.mfhd(Te.sequenceNumber),kt.traf(Te,xe))}},{key:"mfhd",value:function(Te){var xe=new Uint8Array([0,0,0,0,Te>>>24&255,Te>>>16&255,Te>>>8&255,Te&255]);return kt.box(kt.types.mfhd,xe)}},{key:"traf",value:function(Te,xe){var Ce=Te.id,Ye=kt.box(kt.types.tfhd,new Uint8Array([0,0,0,0,Ce>>>24&255,Ce>>>16&255,Ce>>>8&255,Ce&255])),it=kt.box(kt.types.tfdt,new Uint8Array([0,0,0,0,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255])),dt=kt.sdtp(Te),_t=kt.trun(Te,dt.byteLength+16+16+8+16+8+8);return kt.box(kt.types.traf,Ye,it,_t,dt)}},{key:"sdtp",value:function(Te){for(var xe=Te.samples||[],Ce=xe.length,Ye=new Uint8Array(4+Ce),it=0;it<Ce;it++){var dt=xe[it].flags;Ye[it+4]=dt.isLeading<<6|dt.dependsOn<<4|dt.isDependedOn<<2|dt.hasRedundancy}return kt.box(kt.types.sdtp,Ye)}},{key:"trun",value:function(Te,xe){var Ce=Te.samples||[],Ye=Ce.length,it=12+16*Ye,dt=new Uint8Array(it);xe+=8+it,dt.set([0,0,15,1,Ye>>>24&255,Ye>>>16&255,Ye>>>8&255,Ye&255,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255],0);for(var _t=0;_t<Ye;_t++){var vr=Ce[_t].duration,kr=Ce[_t].size,mn=Ce[_t].flags,Mt=Ce[_t].cts;dt.set([vr>>>24&255,vr>>>16&255,vr>>>8&255,vr&255,kr>>>24&255,kr>>>16&255,kr>>>8&255,kr&255,mn.isLeading<<2|mn.dependsOn,mn.isDependedOn<<6|mn.hasRedundancy<<4|mn.isNonSync,0,0,Mt>>>24&255,Mt>>>16&255,Mt>>>8&255,Mt&255],12+16*_t)}return kt.box(kt.types.trun,dt)}},{key:"mdat",value:function(Te){return kt.box(kt.types.mdat,Te)}}]),kt}();et.init();var Ie=et,rt=function(){function kt(){Object(O.a)(this,kt)}return Object(E.a)(kt,null,[{key:"getSilentFrame",value:function(Te,xe){if(Te==="mp4a.40.2"){if(xe===1)return new Uint8Array([0,200,0,128,35,128]);if(xe===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(xe===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(xe===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(xe===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(xe===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(xe===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(xe===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(xe===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}}]),kt}(),Ge=rt,vt=function kt(wt,Te,xe,Ce,Ye){Object(O.a)(this,kt),this.dts=wt,this.pts=Te,this.duration=xe,this.originalDts=Ce,this.isSyncPoint=Ye,this.fileposition=null},Ot=function(){function kt(){Object(O.a)(this,kt),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)(kt,[{key:"appendSyncPoint",value:function(Te){Te.isSyncPoint=!0,this.syncPoints.push(Te)}}]),kt}(),Et=function(){function kt(){Object(O.a)(this,kt),this._list=[]}return Object(E.a)(kt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Te){var xe=this._list;if(Te.length===0)return;xe.length>0&&Te[0].originalDts<xe[xe.length-1].originalDts&&this.clear(),Array.prototype.push.apply(xe,Te)}},{key:"getLastSyncPointBeforeDts",value:function(Te){if(this._list.length==0)return null;var xe=this._list,Ce=0,Ye=xe.length-1,it=0,dt=0,_t=Ye;for(Te<xe[0].dts&&(Ce=0,dt=_t+1);dt<=_t;)if(it=dt+Math.floor((_t-dt)/2),it===Ye||Te>=xe[it].dts&&Te<xe[it+1].dts){Ce=it;break}else xe[it].dts<Te?dt=it+1:_t=it-1;return this._list[Ce]}}]),kt}(),Tt=function(){function kt(wt){Object(O.a)(this,kt),this._type=wt,this._list=[],this._lastAppendLocation=-1}return Object(E.a)(kt,[{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(Te){var xe=this._list;if(xe.length===0)return-2;var Ce=xe.length-1,Ye=0,it=0,dt=Ce,_t=0;if(Te<xe[0].originalBeginDts)return _t=-1,_t;for(;it<=dt;)if(Ye=it+Math.floor((dt-it)/2),Ye===Ce||Te>xe[Ye].lastSample.originalDts&&Te<xe[Ye+1].originalBeginDts){_t=Ye;break}else xe[Ye].originalBeginDts<Te?it=Ye+1:dt=Ye-1;return _t}},{key:"_searchNearestSegmentAfter",value:function(Te){return this._searchNearestSegmentBefore(Te)+1}},{key:"append",value:function(Te){var xe=this._list,Ce=Te,Ye=this._lastAppendLocation,it=0;Ye!==-1&&Ye<xe.length&&Ce.originalBeginDts>=xe[Ye].lastSample.originalDts&&(Ye===xe.length-1||Ye<xe.length-1&&Ce.originalBeginDts<xe[Ye+1].originalBeginDts)?it=Ye+1:xe.length>0&&(it=this._searchNearestSegmentBefore(Ce.originalBeginDts)+1),this._lastAppendLocation=it,this._list.splice(it,0,Ce)}},{key:"getLastSegmentBefore",value:function(Te){var xe=this._searchNearestSegmentBefore(Te);return xe>=0?this._list[xe]:null}},{key:"getLastSampleBefore",value:function(Te){var xe=this.getLastSegmentBefore(Te);return xe!=null?xe.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Te){for(var xe=this._searchNearestSegmentBefore(Te),Ce=this._list[xe].syncPoints;Ce.length===0&&xe>0;)xe--,Ce=this._list[xe].syncPoints;return Ce.length>0?Ce[Ce.length-1]:null}}]),kt}(),Rt=function(){function kt(wt){Object(O.a)(this,kt),this.TAG="MP4Remuxer",this._config=wt,this._isLive=wt.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 Tt("audio"),this._videoSegmentInfoList=new Tt("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)(kt,[{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(Te){return Te.onDataAvailable=this.remux.bind(this),Te.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Te){this._onInitSegment=Te}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Te){this._onMediaSegment=Te}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Te){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Te,xe){if(!this._onMediaSegment)throw new s("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Te,xe),this._remuxVideo(xe),this._remuxAudio(Te)}},{key:"_onTrackMetadataReceived",value:function(Te,xe){var Ce=null,Ye="mp4",it=xe.codec;if(Te==="audio")this._audioMeta=xe,xe.codec==="mp3"&&this._mp3UseMpegAudio?(Ye="mpeg",it="",Ce=new Uint8Array):Ce=Ie.generateInitSegment(xe);else if(Te==="video")this._videoMeta=xe,Ce=Ie.generateInitSegment(xe);else return;if(!this._onInitSegment)throw new s("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Te,{type:Te,data:Ce.buffer,codec:it,container:"".concat(Te,"/").concat(Ye),mediaDuration:xe.duration})}},{key:"_calculateDtsBase",value:function(Te,xe){if(this._dtsBaseInited)return;Te.samples&&Te.samples.length&&(this._audioDtsBase=Te.samples[0].dts),xe.samples&&xe.samples.length&&(this._videoDtsBase=xe.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Te=this._videoStashedLastSample,xe=this._audioStashedLastSample,Ce={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Te!=null&&(Ce.samples.push(Te),Ce.length=Te.length);var Ye={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};xe!=null&&(Ye.samples.push(xe),Ye.length=xe.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Ce,!0),this._remuxAudio(Ye,!0)}},{key:"_remuxAudio",value:function(Te,xe){if(this._audioMeta==null)return;var Ce=Te,Ye=Ce.samples,it=void 0,dt=-1,_t=-1,vr=-1,kr=this._audioMeta.refSampleDuration,mn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Mt=this._dtsBaseInited&&this._audioNextDts===void 0,nt=!1;if(!Ye||Ye.length===0)return;if(Ye.length===1&&!xe)return;var st=0,Xt=null,Dt=0;mn?(st=0,Dt=Ce.length):(st=8,Dt=8+Ce.length);var St=null;if(Ye.length>1&&(St=Ye.pop(),Dt-=St.length),this._audioStashedLastSample!=null){var jt=this._audioStashedLastSample;this._audioStashedLastSample=null,Ye.unshift(jt),Dt+=jt.length}St!=null&&(this._audioStashedLastSample=St);var At=Ye[0].dts-this._dtsBase;if(this._audioNextDts)it=At-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())it=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(nt=!0));else{var Ft=this._audioSegmentInfoList.getLastSampleBefore(At);if(Ft!=null){var wr=At-(Ft.originalDts+Ft.duration);wr<=3&&(wr=0);var sr=Ft.dts+Ft.duration+wr;it=At-sr}else it=0}if(nt){var mr=At-it,$r=this._videoSegmentInfoList.getLastSegmentBefore(At);if($r!=null&&$r.beginDts<mr){var rn=Ge.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(rn){var jn=$r.beginDts,Un=mr-$r.beginDts;c.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(jn,", duration: ").concat(Un)),Ye.unshift({unit:rn,dts:jn,pts:jn}),Dt+=rn.byteLength}}else nt=!1}for(var ui=[],yi=0;yi<Ye.length;yi++){var Ii=Ye[yi],Gi=Ii.unit,Qe=Ii.dts-this._dtsBase,be=Qe-it;dt===-1&&(dt=be);var Ne=0;if(yi!==Ye.length-1){var Ue=Ye[yi+1].dts-this._dtsBase-it;Ne=Ue-be}else if(St!=null){var Xe=St.dts-this._dtsBase-it;Ne=Xe-be}else ui.length>=1?Ne=ui[ui.length-1].duration:Ne=Math.floor(kr);var ze=!1,Ze=null;if(Ne>kr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){ze=!0;var bt=Math.abs(Ne-kr),ut=Math.ceil(bt/kr),Gt=be+kr;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(be+Ne," ms, expected: ").concat(be+Math.round(kr)," ms, ")+"delta: ".concat(Math.round(bt)," ms, generate: ").concat(ut," frames"));var Mr=Ge.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Mr==null&&(c.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Mr=Gi),Ze=[];for(var Lr=0;Lr<ut;Lr++){var Gr=Math.round(Gt);if(Ze.length>0){var Ht=Ze[Ze.length-1];Ht.duration=Gr-Ht.dts}var hn={dts:Gr,pts:Gr,cts:0,unit:Mr,size:Mr.byteLength,duration:0,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ze.push(hn),Dt+=hn.size,Gt+=kr}var or=Ze[Ze.length-1];or.duration=be+Ne-or.dts,Ne=Math.round(kr)}ui.push({dts:be,pts:be,cts:0,unit:Ii.unit,size:Ii.unit.byteLength,duration:Ne,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ze&&ui.push.apply(ui,Ze)}mn?Xt=new Uint8Array(Dt):(Xt=new Uint8Array(Dt),Xt[0]=Dt>>>24&255,Xt[1]=Dt>>>16&255,Xt[2]=Dt>>>8&255,Xt[3]=Dt&255,Xt.set(Ie.types.mdat,4));for(var vn=0;vn<ui.length;vn++){var nn=ui[vn].unit;Xt.set(nn,st),st+=nn.byteLength}var Ur=ui[ui.length-1];_t=Ur.dts+Ur.duration,this._audioNextDts=_t;var ni=new Ot;ni.beginDts=dt,ni.endDts=_t,ni.beginPts=dt,ni.endPts=_t,ni.originalBeginDts=ui[0].originalDts,ni.originalEndDts=Ur.originalDts+Ur.duration,ni.firstSample=new vt(ui[0].dts,ui[0].pts,ui[0].duration,ui[0].originalDts,!1),ni.lastSample=new vt(Ur.dts,Ur.pts,Ur.duration,Ur.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ni),Ce.samples=ui,Ce.sequenceNumber++;var Oi=null;mn?Oi=new Uint8Array:Oi=Ie.moof(Ce,dt),Ce.samples=[],Ce.length=0;var Hi={type:"audio",data:this._mergeBoxes(Oi,Xt).buffer,sampleCount:ui.length,info:ni};mn&&Mt&&(Hi.timestampOffset=dt),this._onMediaSegment("audio",Hi)}},{key:"_remuxVideo",value:function(Te,xe){if(this._videoMeta==null)return;var Ce=Te,Ye=Ce.samples,it=void 0,dt=-1,_t=-1,vr=-1,kr=-1;if(!Ye||Ye.length===0)return;if(Ye.length===1&&!xe)return;var mn=8,Mt=null,nt=8+Te.length,st=null;if(Ye.length>1&&(st=Ye.pop(),nt-=st.length),this._videoStashedLastSample!=null){var Xt=this._videoStashedLastSample;this._videoStashedLastSample=null,Ye.unshift(Xt),nt+=Xt.length}st!=null&&(this._videoStashedLastSample=st);var Dt=Ye[0].dts-this._dtsBase;if(this._videoNextDts)it=Dt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())it=0;else{var St=this._videoSegmentInfoList.getLastSampleBefore(Dt);if(St!=null){var jt=Dt-(St.originalDts+St.duration);jt<=3&&(jt=0);var At=St.dts+St.duration+jt;it=Dt-At}else it=0}for(var Ft=new Ot,wr=[],sr=0;sr<Ye.length;sr++){var mr=Ye[sr],$r=mr.dts-this._dtsBase,rn=mr.isKeyframe,jn=$r-it,Un=mr.cts,ui=jn+Un;dt===-1&&(dt=jn,vr=ui);var yi=0;if(sr!==Ye.length-1){var Ii=Ye[sr+1].dts-this._dtsBase-it;yi=Ii-jn}else if(st!=null){var Gi=st.dts-this._dtsBase-it;yi=Gi-jn}else wr.length>=1?yi=wr[wr.length-1].duration:yi=Math.floor(this._videoMeta.refSampleDuration);if(rn){var Qe=new vt(jn,ui,yi,mr.dts,!0);Qe.fileposition=mr.fileposition,Ft.appendSyncPoint(Qe)}wr.push({dts:jn,pts:ui,cts:Un,units:mr.units,size:mr.length,isKeyframe:rn,duration:yi,originalDts:$r,flags:{isLeading:0,dependsOn:rn?2:1,isDependedOn:rn?1:0,hasRedundancy:0,isNonSync:rn?0:1}})}Mt=new Uint8Array(nt),Mt[0]=nt>>>24&255,Mt[1]=nt>>>16&255,Mt[2]=nt>>>8&255,Mt[3]=nt&255,Mt.set(Ie.types.mdat,4);for(var be=0;be<wr.length;be++)for(var Ne=wr[be].units;Ne.length;){var Ue=Ne.shift(),Xe=Ue.data;Mt.set(Xe,mn),mn+=Xe.byteLength}var ze=wr[wr.length-1];if(_t=ze.dts+ze.duration,kr=ze.pts+ze.duration,this._videoNextDts=_t,Ft.beginDts=dt,Ft.endDts=_t,Ft.beginPts=vr,Ft.endPts=kr,Ft.originalBeginDts=wr[0].originalDts,Ft.originalEndDts=ze.originalDts+ze.duration,Ft.firstSample=new vt(wr[0].dts,wr[0].pts,wr[0].duration,wr[0].originalDts,wr[0].isKeyframe),Ft.lastSample=new vt(ze.dts,ze.pts,ze.duration,ze.originalDts,ze.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ft),Ce.samples=wr,Ce.sequenceNumber++,this._forceFirstIDR){var Ze=wr[0].flags;Ze.dependsOn=2,Ze.isNonSync=0}var bt=Ie.moof(Ce,dt);Ce.samples=[],Ce.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(bt,Mt).buffer,sampleCount:wr.length,info:Ft})}},{key:"_mergeBoxes",value:function(Te,xe){var Ce=new Uint8Array(Te.byteLength+xe.byteLength);return Ce.set(Te,0),Ce.set(xe,Te.byteLength),Ce}}]),kt}(),Be=Rt,Z={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"},J=Z,je=function(){function kt(wt,Te){Object(O.a)(this,kt),this.TAG="TransmuxingController",this._emitter=new m.a,this._config=Te,wt.segments||(wt.segments=[{duration:wt.duration,filesize:wt.filesize,url:wt.url}]),typeof wt.cors!="boolean"&&(wt.cors=!0),typeof wt.withCredentials!="boolean"&&(wt.withCredentials=!1),this._mediaDataSource=wt,this._currentSegmentIndex=0;var xe=0;this._mediaDataSource.segments.forEach(function(Ce){Ce.timestampBase=xe,xe+=Ce.duration,Ce.cors=wt.cors,Ce.withCredentials=wt.withCredentials,Te.referrerPolicy&&(Ce.referrerPolicy=Te.referrerPolicy)}),!isNaN(xe)&&this._mediaDataSource.duration!==xe&&(this._mediaDataSource.duration=xe),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)(kt,[{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(Te,xe){this._emitter.addListener(Te,xe)}},{key:"off",value:function(Te,xe){this._emitter.removeListener(Te,xe)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Te,xe){this._currentSegmentIndex=Te;var Ce=this._mediaDataSource.segments[Te],Ye=this._ioctl=new V(Ce,this._config,Te);Ye.onError=this._onIOException.bind(this),Ye.onSeeked=this._onIOSeeked.bind(this),Ye.onComplete=this._onIOComplete.bind(this),Ye.onRedirect=this._onIORedirect.bind(this),Ye.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),xe?this._demuxer.bindDataSource(this._ioctl):Ye.onDataArrival=this._onInitChunkArrival.bind(this),Ye.open(xe)}},{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(Te){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var xe=this._searchSegmentIndexContains(Te);if(xe===this._currentSegmentIndex){var Ce=this._mediaInfo.segments[xe];if(Ce==null)this._pendingSeekTime=Te;else{var Ye=Ce.getNearestKeyframe(Te);this._remuxer.seek(Ye.milliseconds),this._ioctl.seek(Ye.fileposition),this._pendingResolveSeekPoint=Ye.milliseconds}}else{var it=this._mediaInfo.segments[xe];if(it==null)this._pendingSeekTime=Te,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(xe);else{var dt=it.getNearestKeyframe(Te);this._internalAbort(),this._remuxer.seek(Te),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[xe].timestampBase,this._loadSegment(xe,dt.fileposition),this._pendingResolveSeekPoint=dt.milliseconds,this._reportSegmentMediaInfo(xe)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Te){for(var xe=this._mediaDataSource.segments,Ce=xe.length-1,Ye=0;Ye<xe.length;Ye++)if(Te<xe[Ye].timestampBase){Ce=Ye-1;break}return Ce}},{key:"_onInitChunkArrival",value:function(Te,xe){var Ce=this,Ye=null,it=0;if(xe>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,it=this._demuxer.parseChunks(Te,xe);else if((Ye=gt.probe(Te)).match){this._demuxer=new gt(Ye,this._config),this._remuxer||(this._remuxer=new Be(this._config));var dt=this._mediaDataSource;dt.duration!=null&&!isNaN(dt.duration)&&(this._demuxer.overridedDuration=dt.duration),typeof dt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=dt.hasAudio),typeof dt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=dt.hasVideo),this._demuxer.timestampBase=dt.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),it=this._demuxer.parseChunks(Te,xe)}else Ye=null,c.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Ce._internalAbort()}),this._emitter.emit(J.DEMUX_ERROR,Oe.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),it=0;return it}},{key:"_onMediaInfo",value:function(Te){var xe=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Te),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,ge.prototype));var Ce=Object.assign({},Te);Object.setPrototypeOf(Ce,ge.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Ce,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var Ye=xe._pendingSeekTime;xe._pendingSeekTime=null,xe.seek(Ye)})}},{key:"_onMetaDataArrived",value:function(Te){this._emitter.emit(J.METADATA_ARRIVED,Te)}},{key:"_onScriptDataArrived",value:function(Te){this._emitter.emit(J.SCRIPTDATA_ARRIVED,Te)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Te){var xe=Te,Ce=xe+1;Ce<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Ce)):(this._remuxer.flushStashedSamples(),this._emitter.emit(J.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Te){var xe=this._ioctl.extraData;this._mediaDataSource.segments[xe].redirectedURL=Te}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(J.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Te,xe){c.e(this.TAG,"IOException: type = ".concat(Te,", code = ").concat(xe.code,", msg = ").concat(xe.msg)),this._emitter.emit(J.IO_ERROR,Te,xe),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Te,xe){c.e(this.TAG,"DemuxException: type = ".concat(Te,", info = ").concat(xe)),this._emitter.emit(J.DEMUX_ERROR,Te,xe)}},{key:"_onRemuxerInitSegmentArrival",value:function(Te,xe){this._emitter.emit(J.INIT_SEGMENT,Te,xe)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Te,xe){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(J.MEDIA_SEGMENT,Te,xe),this._pendingResolveSeekPoint!=null&&Te==="video"){var Ce=xe.info.syncPoints,Ye=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,x.safari&&Ce.length>0&&Ce[0].originalDts===Ye&&(Ye=Ce[0].pts),this._emitter.emit(J.RECOMMEND_SEEKPOINT,Ye)}}},{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(Te){var xe=this._mediaInfo.segments[Te],Ce=Object.assign({},xe);Ce.duration=this._mediaInfo.duration,Ce.segmentCount=this._mediaInfo.segmentCount,delete Ce.segments,delete Ce.keyframesIndex,this._emitter.emit(J.MEDIA_INFO,Ce)}},{key:"_reportStatisticsInfo",value:function(){var Te={};Te.url=this._ioctl.currentURL,Te.hasRedirect=this._ioctl.hasRedirect,Te.hasRedirect&&(Te.redirectedURL=this._ioctl.currentRedirectedURL),Te.speed=this._ioctl.currentSpeed,Te.loaderType=this._ioctl.loaderType,Te.currentSegmentIndex=this._currentSegmentIndex,Te.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(J.STATISTICS_INFO,Te)}}]),kt}(),Re=je,oe=function(wt){var Te="TransmuxingWorker",xe=null,Ce=Dt.bind(this);v.install(),wt.addEventListener("message",function(St){switch(St.data.cmd){case"init":xe=new Re(St.data.param[0],St.data.param[1]),xe.on(J.IO_ERROR,nt.bind(this)),xe.on(J.DEMUX_ERROR,st.bind(this)),xe.on(J.INIT_SEGMENT,Ye.bind(this)),xe.on(J.MEDIA_SEGMENT,it.bind(this)),xe.on(J.LOADING_COMPLETE,dt.bind(this)),xe.on(J.RECOVERED_EARLY_EOF,_t.bind(this)),xe.on(J.MEDIA_INFO,vr.bind(this)),xe.on(J.METADATA_ARRIVED,kr.bind(this)),xe.on(J.SCRIPTDATA_ARRIVED,mn.bind(this)),xe.on(J.STATISTICS_INFO,Mt.bind(this)),xe.on(J.RECOMMEND_SEEKPOINT,Xt.bind(this));break;case"destroy":xe&&(xe.destroy(),xe=null),wt.postMessage({msg:"destroyed"});break;case"start":xe.start();break;case"stop":xe.stop();break;case"seek":xe.seek(St.data.param);break;case"pause":xe.pause();break;case"resume":xe.resume();break;case"logging_config":{var jt=St.data.param;Le.applyConfig(jt),jt.enableCallback===!0?Le.addLogListener(Ce):Le.removeLogListener(Ce);break}}});function Ye(St,jt){var At={msg:J.INIT_SEGMENT,data:{type:St,data:jt}};wt.postMessage(At,[jt.data])}function it(St,jt){var At={msg:J.MEDIA_SEGMENT,data:{type:St,data:jt}};wt.postMessage(At,[jt.data])}function dt(){var St={msg:J.LOADING_COMPLETE};wt.postMessage(St)}function _t(){var St={msg:J.RECOVERED_EARLY_EOF};wt.postMessage(St)}function vr(St){var jt={msg:J.MEDIA_INFO,data:St};wt.postMessage(jt)}function kr(St){var jt={msg:J.METADATA_ARRIVED,data:St};wt.postMessage(jt)}function mn(St){var jt={msg:J.SCRIPTDATA_ARRIVED,data:St};wt.postMessage(jt)}function Mt(St){var jt={msg:J.STATISTICS_INFO,data:St};wt.postMessage(jt)}function nt(St,jt){wt.postMessage({msg:J.IO_ERROR,data:{type:St,info:jt}})}function st(St,jt){wt.postMessage({msg:J.DEMUX_ERROR,data:{type:St,info:jt}})}function Xt(St){wt.postMessage({msg:J.RECOMMEND_SEEKPOINT,data:St})}function Dt(St,jt){wt.postMessage({msg:"logcat_callback",data:{type:St,logcat:jt}})}},yt=oe,zt=function(){function kt(wt,Te){if(Object(O.a)(this,kt),this.TAG="Transmuxer",this._emitter=new m.a,Te.enableWorker&&typeof Worker!="undefined")try{var xe=d("0r65");this._worker=xe(yt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[wt,Te]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Le.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Le.getConfig()})}catch(Ye){c.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Re(wt,Te)}else this._controller=new Re(wt,Te);if(this._controller){var Ce=this._controller;Ce.on(J.IO_ERROR,this._onIOError.bind(this)),Ce.on(J.DEMUX_ERROR,this._onDemuxError.bind(this)),Ce.on(J.INIT_SEGMENT,this._onInitSegment.bind(this)),Ce.on(J.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Ce.on(J.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Ce.on(J.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Ce.on(J.MEDIA_INFO,this._onMediaInfo.bind(this)),Ce.on(J.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Ce.on(J.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Ce.on(J.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Ce.on(J.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(E.a)(kt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Le.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Te,xe){this._emitter.addListener(Te,xe)}},{key:"off",value:function(Te,xe){this._emitter.removeListener(Te,xe)}},{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(Te){this._worker?this._worker.postMessage({cmd:"seek",param:Te}):this._controller.seek(Te)}},{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(Te,xe){var Ce=this;Promise.resolve().then(function(){Ce._emitter.emit(J.INIT_SEGMENT,Te,xe)})}},{key:"_onMediaSegment",value:function(Te,xe){var Ce=this;Promise.resolve().then(function(){Ce._emitter.emit(J.MEDIA_SEGMENT,Te,xe)})}},{key:"_onLoadingComplete",value:function(){var Te=this;Promise.resolve().then(function(){Te._emitter.emit(J.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Te=this;Promise.resolve().then(function(){Te._emitter.emit(J.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Te){var xe=this;Promise.resolve().then(function(){xe._emitter.emit(J.MEDIA_INFO,Te)})}},{key:"_onMetaDataArrived",value:function(Te){var xe=this;Promise.resolve().then(function(){xe._emitter.emit(J.METADATA_ARRIVED,Te)})}},{key:"_onScriptDataArrived",value:function(Te){var xe=this;Promise.resolve().then(function(){xe._emitter.emit(J.SCRIPTDATA_ARRIVED,Te)})}},{key:"_onStatisticsInfo",value:function(Te){var xe=this;Promise.resolve().then(function(){xe._emitter.emit(J.STATISTICS_INFO,Te)})}},{key:"_onIOError",value:function(Te,xe){var Ce=this;Promise.resolve().then(function(){Ce._emitter.emit(J.IO_ERROR,Te,xe)})}},{key:"_onDemuxError",value:function(Te,xe){var Ce=this;Promise.resolve().then(function(){Ce._emitter.emit(J.DEMUX_ERROR,Te,xe)})}},{key:"_onRecommendSeekpoint",value:function(Te){var xe=this;Promise.resolve().then(function(){xe._emitter.emit(J.RECOMMEND_SEEKPOINT,Te)})}},{key:"_onLoggingConfigChanged",value:function(Te){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Te})}},{key:"_onWorkerMessage",value:function(Te){var xe=Te.data,Ce=xe.data;if(xe.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(xe.msg){case J.INIT_SEGMENT:case J.MEDIA_SEGMENT:this._emitter.emit(xe.msg,Ce.type,Ce.data);break;case J.LOADING_COMPLETE:case J.RECOVERED_EARLY_EOF:this._emitter.emit(xe.msg);break;case J.MEDIA_INFO:Object.setPrototypeOf(Ce,ge.prototype),this._emitter.emit(xe.msg,Ce);break;case J.METADATA_ARRIVED:case J.SCRIPTDATA_ARRIVED:case J.STATISTICS_INFO:this._emitter.emit(xe.msg,Ce);break;case J.IO_ERROR:case J.DEMUX_ERROR:this._emitter.emit(xe.msg,Ce.type,Ce.info);break;case J.RECOMMEND_SEEKPOINT:this._emitter.emit(xe.msg,Ce);break;case"logcat_callback":c.emitter.emit("log",Ce.type,Ce.logcat);break;default:break}}}]),kt}(),lt=zt,$t={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},cr=$t,cn=function(){function kt(wt){Object(O.a)(this,kt),this.TAG="MSEController",this._config=wt,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 Et}return Object(E.a)(kt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Te,xe){this._emitter.addListener(Te,xe)}},{key:"off",value:function(Te,xe){this._emitter.removeListener(Te,xe)}},{key:"attachMediaElement",value:function(Te){if(this._mediaSource)throw new s("MediaSource has been attached to an HTMLMediaElement!");var xe=this._mediaSource=new window.MediaSource;xe.addEventListener("sourceopen",this.e.onSourceOpen),xe.addEventListener("sourceended",this.e.onSourceEnded),xe.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Te,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Te.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Te=this._mediaSource;for(var xe in this._sourceBuffers){var Ce=this._pendingSegments[xe];Ce.splice(0,Ce.length),this._pendingSegments[xe]=null,this._pendingRemoveRanges[xe]=null,this._lastInitSegments[xe]=null;var Ye=this._sourceBuffers[xe];if(Ye){if(Te.readyState!=="closed"){try{Te.removeSourceBuffer(Ye)}catch(it){c.e(this.TAG,it.message)}Ye.removeEventListener("error",this.e.onSourceBufferError),Ye.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[xe]=null,this._sourceBuffers[xe]=null}}if(Te.readyState==="open")try{Te.endOfStream()}catch(it){c.e(this.TAG,it.message)}Te.removeEventListener("sourceopen",this.e.onSourceOpen),Te.removeEventListener("sourceended",this.e.onSourceEnded),Te.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(Te,xe){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Te),this._pendingSegments[Te.type].push(Te);return}var Ce=Te,Ye="".concat(Ce.container);Ce.codec&&Ce.codec.length>0&&(Ye+=";codecs=".concat(Ce.codec));var it=!1;if(c.v(this.TAG,"Received Initialization Segment, mimeType: "+Ye),this._lastInitSegments[Ce.type]=Ce,Ye!==this._mimeTypes[Ce.type]){if(this._mimeTypes[Ce.type])c.v(this.TAG,"Notice: ".concat(Ce.type," mimeType changed, origin: ").concat(this._mimeTypes[Ce.type],", target: ").concat(Ye));else{it=!0;try{var dt=this._sourceBuffers[Ce.type]=this._mediaSource.addSourceBuffer(Ye);dt.addEventListener("error",this.e.onSourceBufferError),dt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(_t){c.e(this.TAG,_t.message),this._emitter.emit(cr.ERROR,{code:_t.code,msg:_t.message});return}}this._mimeTypes[Ce.type]=Ye}xe||this._pendingSegments[Ce.type].push(Ce),it||this._sourceBuffers[Ce.type]&&!this._sourceBuffers[Ce.type].updating&&this._doAppendSegments(),x.safari&&Ce.container==="audio/mpeg"&&Ce.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Ce.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Te){var xe=Te;this._pendingSegments[xe.type].push(xe),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Ce=this._sourceBuffers[xe.type];Ce&&!Ce.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Te){for(var xe in this._sourceBuffers){if(!this._sourceBuffers[xe])continue;var Ce=this._sourceBuffers[xe];if(this._mediaSource.readyState==="open")try{Ce.abort()}catch(kr){c.e(this.TAG,kr.message)}this._idrList.clear();var Ye=this._pendingSegments[xe];if(Ye.splice(0,Ye.length),this._mediaSource.readyState==="closed")continue;for(var it=0;it<Ce.buffered.length;it++){var dt=Ce.buffered.start(it),_t=Ce.buffered.end(it);this._pendingRemoveRanges[xe].push({start:dt,end:_t})}if(Ce.updating||this._doRemoveRanges(),x.safari){var vr=this._lastInitSegments[xe];vr&&(this._pendingSegments[xe].push(vr),Ce.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Te=this._mediaSource,xe=this._sourceBuffers;if(!Te||Te.readyState!=="open"){Te&&Te.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}xe.video&&xe.video.updating||xe.audio&&xe.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Te.endOfStream())}},{key:"getNearestKeyframe",value:function(Te){return this._idrList.getLastSyncPointBeforeDts(Te)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Te=this._mediaElement.currentTime;for(var xe in this._sourceBuffers){var Ce=this._sourceBuffers[xe];if(Ce){var Ye=Ce.buffered;if(Ye.length>=1&&Te-Ye.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Te=this._mediaElement.currentTime;for(var xe in this._sourceBuffers){var Ce=this._sourceBuffers[xe];if(Ce){for(var Ye=Ce.buffered,it=!1,dt=0;dt<Ye.length;dt++){var _t=Ye.start(dt),vr=Ye.end(dt);if(_t<=Te&&Te<vr+3){if(Te-_t>=this._config.autoCleanupMaxBackwardDuration){it=!0;var kr=Te-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[xe].push({start:_t,end:kr})}}else vr<Te&&(it=!0,this._pendingRemoveRanges[xe].push({start:_t,end:vr}))}it&&!Ce.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Te=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Te.video&&Te.video.updating||Te.audio&&Te.audio.updating)return;var xe=this._mediaSource.duration,Ce=this._pendingMediaDuration;Ce>0&&(isNaN(xe)||Ce>xe)&&(c.v(this.TAG,"Update MediaSource duration from ".concat(xe," to ").concat(Ce)),this._mediaSource.duration=Ce),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Te in this._pendingRemoveRanges){if(!this._sourceBuffers[Te]||this._sourceBuffers[Te].updating)continue;for(var xe=this._sourceBuffers[Te],Ce=this._pendingRemoveRanges[Te];Ce.length&&!xe.updating;){var Ye=Ce.shift();xe.remove(Ye.start,Ye.end)}}}},{key:"_doAppendSegments",value:function(){var Te=this._pendingSegments;for(var xe in Te){if(!this._sourceBuffers[xe]||this._sourceBuffers[xe].updating)continue;if(Te[xe].length>0){var Ce=Te[xe].shift();if(Ce.timestampOffset){var Ye=this._sourceBuffers[xe].timestampOffset,it=Ce.timestampOffset/1e3,dt=Math.abs(Ye-it);dt>.1&&(c.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(Ye," to ").concat(it)),this._sourceBuffers[xe].timestampOffset=it),delete Ce.timestampOffset}if(!Ce.data||Ce.data.byteLength===0)continue;try{this._sourceBuffers[xe].appendBuffer(Ce.data),this._isBufferFull=!1,xe==="video"&&Ce.hasOwnProperty("info")&&this._idrList.appendArray(Ce.info.syncPoints)}catch(_t){this._pendingSegments[xe].unshift(Ce),_t.code===22?(this._isBufferFull||this._emitter.emit(cr.BUFFER_FULL),this._isBufferFull=!0):(c.e(this.TAG,_t.message),this._emitter.emit(cr.ERROR,{code:_t.code,msg:_t.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 Te=this._pendingSourceBufferInit;Te.length;){var xe=Te.shift();this.appendInitSegment(xe,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(cr.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 Te=this._pendingSegments;return Te.video.length>0||Te.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Te=this._pendingRemoveRanges;return Te.video.length>0||Te.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(cr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Te){c.e(this.TAG,"SourceBuffer Error: ".concat(Te))}}]),kt}(),pr=cn,gr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Zt={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:Oe.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Oe.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Oe.CODEC_UNSUPPORTED},Vt=function(){function kt(wt,Te){if(Object(O.a)(this,kt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new m.a,this._config=Y(),typeof Te=="object"&&Object.assign(this._config,Te),wt.type.toLowerCase()!=="flv")throw new t("FlvPlayer requires an flv MediaDataSource input!");wt.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=wt,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 xe=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(xe||x.msedge||x.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(E.a)(kt,[{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(Te,xe){var Ce=this;Te===ve.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Ce._emitter.emit(ve.MEDIA_INFO,Ce.mediaInfo)}):Te===ve.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Ce._emitter.emit(ve.STATISTICS_INFO,Ce.statisticsInfo)})),this._emitter.addListener(Te,xe)}},{key:"off",value:function(Te,xe){this._emitter.removeListener(Te,xe)}},{key:"attachMediaElement",value:function(Te){var xe=this;if(this._mediaElement=Te,Te.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Te.addEventListener("seeking",this.e.onvSeeking),Te.addEventListener("canplay",this.e.onvCanPlay),Te.addEventListener("stalled",this.e.onvStalled),Te.addEventListener("progress",this.e.onvProgress),this._msectl=new pr(this._config),this._msectl.on(cr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(cr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(cr.SOURCE_OPEN,function(){xe._mseSourceOpened=!0,xe._hasPendingLoad&&(xe._hasPendingLoad=!1,xe.load())}),this._msectl.on(cr.ERROR,function(Ce){xe._emitter.emit(ve.ERROR,gr.MEDIA_ERROR,Zt.MEDIA_MSE_ERROR,Ce)}),this._msectl.attachMediaElement(Te),this._pendingSeekTime!=null)try{Te.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ce){}}},{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 Te=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 lt(this._mediaDataSource,this._config),this._transmuxer.on(J.INIT_SEGMENT,function(xe,Ce){Te._msectl.appendInitSegment(Ce)}),this._transmuxer.on(J.MEDIA_SEGMENT,function(xe,Ce){if(Te._msectl.appendMediaSegment(Ce),Te._config.lazyLoad&&!Te._config.isLive){var Ye=Te._mediaElement.currentTime;Ce.info.endDts>=(Ye+Te._config.lazyLoadMaxDuration)*1e3&&(Te._progressChecker==null&&(c.v(Te.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Te._suspendTransmuxer()))}}),this._transmuxer.on(J.LOADING_COMPLETE,function(){Te._msectl.endOfStream(),Te._emitter.emit(ve.LOADING_COMPLETE)}),this._transmuxer.on(J.RECOVERED_EARLY_EOF,function(){Te._emitter.emit(ve.RECOVERED_EARLY_EOF)}),this._transmuxer.on(J.IO_ERROR,function(xe,Ce){Te._emitter.emit(ve.ERROR,gr.NETWORK_ERROR,xe,Ce)}),this._transmuxer.on(J.DEMUX_ERROR,function(xe,Ce){Te._emitter.emit(ve.ERROR,gr.MEDIA_ERROR,xe,{code:-1,msg:Ce})}),this._transmuxer.on(J.MEDIA_INFO,function(xe){Te._mediaInfo=xe,Te._emitter.emit(ve.MEDIA_INFO,Object.assign({},xe))}),this._transmuxer.on(J.METADATA_ARRIVED,function(xe){Te._emitter.emit(ve.METADATA_ARRIVED,xe)}),this._transmuxer.on(J.SCRIPTDATA_ARRIVED,function(xe){Te._emitter.emit(ve.SCRIPTDATA_ARRIVED,xe)}),this._transmuxer.on(J.STATISTICS_INFO,function(xe){Te._statisticsInfo=Te._fillStatisticsInfo(xe),Te._emitter.emit(ve.STATISTICS_INFO,Object.assign({},Te._statisticsInfo))}),this._transmuxer.on(J.RECOMMEND_SEEKPOINT,function(xe){Te._mediaElement&&!Te._config.accurateSeek&&(Te._requestSetTime=!0,Te._mediaElement.currentTime=xe/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(Te){this._mediaElement.volume=Te}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Te){this._mediaElement.muted=Te}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Te){this._mediaElement?this._internalSeek(Te):this._pendingSeekTime=Te}},{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(Te){if(Te.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Te;var xe=!0,Ce=0,Ye=0;if(this._mediaElement.getVideoPlaybackQuality){var it=this._mediaElement.getVideoPlaybackQuality();Ce=it.totalVideoFrames,Ye=it.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Ce=this._mediaElement.webkitDecodedFrameCount,Ye=this._mediaElement.webkitDroppedFrameCount):xe=!1;return xe&&(Te.decodedFrames=Ce,Te.droppedFrames=Ye),Te}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Te=this._mediaElement.buffered,xe=this._mediaElement.currentTime,Ce=0,Ye=0,it=0;it<Te.length;it++){var dt=Te.start(it),_t=Te.end(it);if(dt<=xe&&xe<_t){Ce=dt,Ye=_t;break}}Ye>=xe+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 Te=this._mediaElement.currentTime,xe=this._mediaElement.buffered,Ce=!1,Ye=0;Ye<xe.length;Ye++){var it=xe.start(Ye),dt=xe.end(Ye);if(Te>=it&&Te<dt){Te>=dt-this._config.lazyLoadRecoverDuration&&(Ce=!0);break}}Ce&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Ce&&(c.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Te){for(var xe=this._mediaElement.buffered,Ce=0;Ce<xe.length;Ce++){var Ye=xe.start(Ce),it=xe.end(Ce);if(Te>=Ye&&Te<it)return!0}return!1}},{key:"_internalSeek",value:function(Te){var xe=this._isTimepointBuffered(Te),Ce=!1,Ye=0;if(Te<1&&this._mediaElement.buffered.length>0){var it=this._mediaElement.buffered.start(0);(it<1&&Te<it||x.safari)&&(Ce=!0,Ye=x.safari?.1:it)}if(Ce)this._requestSetTime=!0,this._mediaElement.currentTime=Ye;else if(xe){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Te;else{var dt=this._msectl.getNearestKeyframe(Math.floor(Te*1e3));this._requestSetTime=!0,dt!=null?this._mediaElement.currentTime=dt.dts/1e3:this._mediaElement.currentTime=Te}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Te),this._transmuxer.seek(Math.floor(Te*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Te)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Te=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Te)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Te),this._transmuxer.seek(Math.floor(Te*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Te))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Te){var xe=this._mediaElement;if(Te||!this._receivedCanPlay||xe.readyState<2){var Ce=xe.buffered;Ce.length>0&&xe.currentTime<Ce.start(0)&&(c.w(this.TAG,"Playback seems stuck at ".concat(xe.currentTime,", seek to ").concat(Ce.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Ce.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Te){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Te){var xe=this._mediaElement.currentTime,Ce=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(xe<1&&Ce.length>0){var Ye=Ce.start(0);if(Ye<1&&xe<Ye||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.safari?.1:Ye;return}}if(this._isTimepointBuffered(xe)){if(this._alwaysSeekKeyframe){var it=this._msectl.getNearestKeyframe(Math.floor(xe*1e3));it!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=it.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:xe,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Te){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Te){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Te){this._checkAndResumeStuckPlayback()}}]),kt}(),mt=Vt,Yr=function(){function kt(wt,Te){if(Object(O.a)(this,kt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new m.a,this._config=Y(),typeof Te=="object"&&Object.assign(this._config,Te),wt.type.toLowerCase()==="flv")throw new t("NativePlayer does't support flv MediaDataSource input!");if(wt.hasOwnProperty("segments"))throw new t("NativePlayer(".concat(wt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=wt,this._mediaElement=null}return Object(E.a)(kt,[{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(Te,xe){var Ce=this;Te===ve.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Ce._emitter.emit(ve.MEDIA_INFO,Ce.mediaInfo)}):Te===ve.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Ce._emitter.emit(ve.STATISTICS_INFO,Ce.statisticsInfo)})),this._emitter.addListener(Te,xe)}},{key:"off",value:function(Te,xe){this._emitter.removeListener(Te,xe)}},{key:"attachMediaElement",value:function(Te){if(this._mediaElement=Te,Te.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Te.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(xe){}}},{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(Te){this._mediaElement.volume=Te}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Te){this._mediaElement.muted=Te}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Te){this._mediaElement?this._mediaElement.currentTime=Te:this._pendingSeekTime=Te}},{key:"mediaInfo",get:function(){var Te=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",xe={mimeType:Te+this._mediaDataSource.type};return this._mediaElement&&(xe.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(xe.width=this._mediaElement.videoWidth,xe.height=this._mediaElement.videoHeight)),xe}},{key:"statisticsInfo",get:function(){var Te={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Te;var xe=!0,Ce=0,Ye=0;if(this._mediaElement.getVideoPlaybackQuality){var it=this._mediaElement.getVideoPlaybackQuality();Ce=it.totalVideoFrames,Ye=it.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Ce=this._mediaElement.webkitDecodedFrameCount,Ye=this._mediaElement.webkitDroppedFrameCount):xe=!1;return xe&&(Te.decodedFrames=Ce,Te.droppedFrames=Ye),Te}},{key:"_onvLoadedMetadata",value:function(Te){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(ve.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(ve.STATISTICS_INFO,this.statisticsInfo)}}]),kt}(),Tn=Yr;v.install();function Hn(kt,wt){var Te=kt;if(Te==null||typeof Te!="object")throw new t("MediaDataSource must be an javascript object!");if(!Te.hasOwnProperty("type"))throw new t("MediaDataSource must has type field to indicate video file type!");switch(Te.type){case"flv":return new mt(Te,wt);default:return new Tn(Te,wt)}}function ei(){return ce.supportMSEH264Playback()}function ji(){return ce.getFeatureList()}var Ln={};Ln.createPlayer=Hn,Ln.isSupported=ei,Ln.getFeatureList=ji,Ln.BaseLoader=f,Ln.LoaderStatus=l,Ln.LoaderErrors=u,Ln.Events=ve,Ln.ErrorTypes=gr,Ln.ErrorDetails=Zt,Ln.FlvPlayer=mt,Ln.NativePlayer=Tn,Ln.LoggingControl=Le,Object.defineProperty(Ln,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Vn=P.a=Ln},GVMX:function(j,P,d){var O=d("JEkh"),E=O.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"}});j.exports=E},GdRQ:function(j,P,d){"use strict";function O(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(S){return typeof S}:O=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},O(x)}Object.defineProperty(P,"__esModule",{value:!0}),P.isMac=l,P.isWindows=u,P.isIOS=f,P.isSafari=p,P.isIE=g,P.isEdge=A,P.isFirefox=y,P.hasScrollbarGutter=P.supportsImageMetadata=P.supportsCursorURIs=P.dragThreshold=P.isTouchDevice=void 0;var E=v(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var x=new WeakMap;return C=function(){return x},x}function v(x){if(x&&x.__esModule)return x;if(x===null||O(x)!=="object"&&typeof x!="function")return{default:x};var T=C();if(T&&T.has(x))return T.get(x);var S={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in x)if(Object.prototype.hasOwnProperty.call(x,_)){var I=b?Object.getOwnPropertyDescriptor(x,_):null;I&&(I.get||I.set)?Object.defineProperty(S,_,I):S[_]=x[_]}return S.default=x,T&&T.set(x,S),S}var w="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;P.isTouchDevice=w,window.addEventListener("touchstart",function x(){P.isTouchDevice=w=!0,window.removeEventListener("touchstart",x,!1)},!1);var m=10*(window.devicePixelRatio||1);P.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 i=h;P.supportsCursorURIs=i;var r=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),r=!0}catch(x){}var o=r;P.supportsImageMetadata=o;var n=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var s=document.createElement("div");e.appendChild(s);var t=e.offsetWidth-s.offsetWidth;e.parentNode.removeChild(e),n=t!=0}catch(x){E.Error("Scrollbar test exception: "+x)}var a=n;P.hasScrollbarGutter=a;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 g(){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(j,P,d){var O=d("bYtY"),E=d("6Ic6"),C=d("IwbS"),v=d("y+Vt"),w=d("sK/D"),m=w.createClipPath,h=["itemStyle"],c=["emphasis","itemStyle"],i=["color","color0","borderColor","borderColor0"],r=E.extend({type:"candlestick",render:function(p,g,A){this.group.removeClipPath(),this._updateDrawMode(p),this._isLargeDraw?this._renderLarge(p):this._renderNormal(p)},incrementalPrepareRender:function(p,g,A){this._clear(),this._updateDrawMode(p)},incrementalRender:function(p,g,A,y){this._isLargeDraw?this._incrementalRenderLarge(p,g):this._incrementalRenderNormal(p,g)},_updateDrawMode:function(p){var g=p.pipelineContext.large;(this._isLargeDraw==null||g^this._isLargeDraw)&&(this._isLargeDraw=g,this._clear())},_renderNormal:function(p){var g=p.getData(),A=this._data,y=this.group,x=g.getLayout("isSimpleBox"),T=p.get("clip",!0),S=p.coordinateSystem,b=S.getArea&&S.getArea();this._data||y.removeAll(),g.diff(A).add(function(_){if(g.hasValue(_)){var I,L=g.getItemLayout(_);if(T&&e(b,L))return;I=n(L,_,!0),C.initProps(I,{shape:{points:L.ends}},p,_),s(I,g,_,x),y.add(I),g.setItemGraphicEl(_,I)}}).update(function(_,I){var L=A.getItemGraphicEl(I);if(!g.hasValue(_)){y.remove(L);return}var D=g.getItemLayout(_);if(T&&e(b,D)){y.remove(L);return}L?C.updateProps(L,{shape:{points:D.ends}},p,_):L=n(D,_),s(L,g,_,x),y.add(L),g.setItemGraphicEl(_,L)}).remove(function(_){var I=A.getItemGraphicEl(_);I&&y.remove(I)}).execute(),this._data=g},_renderLarge:function(p){this._clear(),l(p,this.group);var g=p.get("clip",!0)?m(p.coordinateSystem,!1,p):null;g?this.group.setClipPath(g):this.group.removeClipPath()},_incrementalRenderNormal:function(p,g){for(var A=g.getData(),y=A.getLayout("isSimpleBox"),x;(x=p.next())!=null;){var T,S=A.getItemLayout(x);T=n(S,x),s(T,A,x,y),T.incremental=!0,this.group.add(T)}},_incrementalRenderLarge:function(p,g){l(g,this.group,!0)},remove:function(p){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:O.noop}),o=v.extend({type:"normalCandlestickBox",shape:{},buildPath:function(p,g){var A=g.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,g,A){var y=p.ends;return new o({shape:{points:A?t(y,p):y},z2:100})}function e(p,g){for(var A=!0,y=0;y<g.ends.length;y++)if(p.contain(g.ends[y][0],g.ends[y][1])){A=!1;break}return A}function s(p,g,A,y){var x=g.getItemModel(A),T=x.getModel(h),S=g.getItemVisual(A,"color"),b=g.getItemVisual(A,"borderColor")||S,_=T.getItemStyle(i);p.useStyle(_),p.style.strokeNoScale=!0,p.style.fill=S,p.style.stroke=b,p.__simpleBox=y;var I=x.getModel(c).getItemStyle();C.setHoverStyle(p,I)}function t(p,g){return O.map(p,function(A){return A=A.slice(),A[1]=g.initBaseline,A})}var a=v.extend({type:"largeCandlestickBox",shape:{},buildPath:function(p,g){for(var A=g.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,g,A){var y=p.getData(),x=y.getLayout("largePoints"),T=new a({shape:{points:x},__sign:1});g.add(T);var S=new a({shape:{points:x},__sign:-1});g.add(S),u(1,T,p,y),u(-1,S,p,y),A&&(T.incremental=!0,S.incremental=!0)}function u(p,g,A,y){var x=p>0?"P":"N",T=y.getVisual("borderColor"+x)||y.getVisual("color"+x),S=A.getModel(h).getItemStyle(i);g.useStyle(S),g.style.fill=null,g.style.stroke=T}var f=r;j.exports=f},Gev7:function(j,P,d){var O=d("bYtY"),E=d("K2GJ"),C=d("1bdT"),v=d("ni6a");function w(h){h=h||{},C.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}w.prototype={constructor:w,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,i){},getBoundingRect:function(){},contain:function(c,i){return this.rectContain(c,i)},traverse:function(c,i){c.call(i,this)},rectContain:function(c,i){var r=this.transformCoordToLocal(c,i),o=this.getBoundingRect();return o.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,i){c!=="style"?C.prototype.attrKV.call(this,c,i):this.style.set(i)},setStyle:function(c,i){return this.style.set(c,i),this.dirty(!1),this},useStyle:function(c){return this.style=new E(c,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(w,C),O.mixin(w,v);var m=w;j.exports=m},GrNh:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("6Ic6");function v(r,o,n,e){var s=o.getData(),t=this.dataIndex,a=s.getName(t),l=o.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:r,name:a,seriesId:o.id}),s.each(function(u){w(s.getItemGraphicEl(u),s.getItemLayout(u),o.isSelected(s.getName(u)),l,n)})}function w(r,o,n,e,s){var t=(o.startAngle+o.endAngle)/2,a=Math.cos(t),l=Math.sin(t),u=n?e:0,f=[a*u,l*u];s?r.animate().when(200,{position:f}).start("bounceOut"):r.attr("position",f)}function m(r,o){E.Group.call(this);var n=new E.Sector({z2:2}),e=new E.Polyline,s=new E.Text;this.add(n),this.add(e),this.add(s),this.updateData(r,o,!0)}var h=m.prototype;h.updateData=function(r,o,n){var e=this.childAt(0),s=this.childAt(1),t=this.childAt(2),a=r.hostModel,l=r.getItemModel(o),u=r.getItemLayout(o),f=O.extend({},u);f.label=null;var p=a.getShallow("animationTypeUpdate");if(n){e.setShape(f);var g=a.getShallow("animationType");g==="scale"?(e.shape.r=u.r0,E.initProps(e,{shape:{r:u.r}},a,o)):(e.shape.endAngle=u.startAngle,E.updateProps(e,{shape:{endAngle:u.endAngle}},a,o))}else p==="expansion"?e.setShape(f):E.updateProps(e,{shape:f},a,o);var A=r.getItemVisual(o,"color");e.useStyle(O.defaults({lineJoin:"bevel",fill:A},l.getModel("itemStyle").getItemStyle())),e.hoverStyle=l.getModel("emphasis.itemStyle").getItemStyle();var y=l.getShallow("cursor");y&&e.attr("cursor",y),w(this,r.getItemLayout(o),a.isSelected(r.getName(o)),a.get("selectedOffset"),a.get("animation"));var x=!n&&p==="transition";this._updateLabel(r,o,x),this.highDownOnUpdate=a.get("silent")?null:function(T,S){var b=a.isAnimationEnabled()&&l.get("hoverAnimation");S==="emphasis"?(s.ignore=s.hoverIgnore,t.ignore=t.hoverIgnore,b&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r+a.get("hoverOffset")}},300,"elasticOut"))):(s.ignore=s.normalIgnore,t.ignore=t.normalIgnore,b&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r}},300,"elasticOut")))},E.setHoverStyle(this)},h._updateLabel=function(r,o,n){var e=this.childAt(1),s=this.childAt(2),t=r.hostModel,a=r.getItemModel(o),l=r.getItemLayout(o),u=l.label,f=r.getItemVisual(o,"color");if(!u||isNaN(u.x)||isNaN(u.y)){s.ignore=s.normalIgnore=s.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var p={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},g={x:u.x,y:u.y};n?(E.updateProps(e,{shape:p},t,o),E.updateProps(s,{style:g},t,o)):(e.attr({shape:p}),s.attr({style:g})),s.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var A=a.getModel("label"),y=a.getModel("emphasis.label"),x=a.getModel("labelLine"),T=a.getModel("emphasis.labelLine"),f=r.getItemVisual(o,"color");E.setLabelStyle(s.style,s.hoverStyle={},A,y,{labelFetcher:r.hostModel,labelDataIndex:o,defaultText:u.text,autoColor:f,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:r.getItemVisual(o,"opacity")}),s.ignore=s.normalIgnore=!A.get("show"),s.hoverIgnore=!y.get("show"),e.ignore=e.normalIgnore=!x.get("show"),e.hoverIgnore=!T.get("show"),e.setStyle({stroke:f,opacity:r.getItemVisual(o,"opacity")}),e.setStyle(x.getModel("lineStyle").getLineStyle()),e.hoverStyle=T.getModel("lineStyle").getLineStyle();var S=x.get("smooth");S&&S===!0&&(S=.4),e.setShape({smooth:S})},O.inherits(m,E.Group);var c=C.extend({type:"pie",init:function(){var r=new E.Group;this._sectorGroup=r},render:function(r,o,n,e){if(e&&e.from===this.uid)return;var s=r.getData(),t=this._data,a=this.group,l=o.get("animation"),u=!t,f=r.get("animationType"),p=r.get("animationTypeUpdate"),g=O.curry(v,this.uid,r,l,n),A=r.get("selectedMode");if(s.diff(t).add(function(b){var _=new m(s,b);u&&f!=="scale"&&_.eachChild(function(I){I.stopAnimation(!0)}),A&&_.on("click",g),s.setItemGraphicEl(b,_),a.add(_)}).update(function(b,_){var I=t.getItemGraphicEl(_);!u&&p!=="transition"&&I.eachChild(function(L){L.stopAnimation(!0)}),I.updateData(s,b),I.off("click"),A&&I.on("click",g),a.add(I),s.setItemGraphicEl(b,I)}).remove(function(b){var _=t.getItemGraphicEl(b);a.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 T=Math.max(n.getWidth(),n.getHeight())/2,S=O.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(y.cx,y.cy,T,y.startAngle,y.clockwise,S,r,u))}else a.removeClipPath();this._data=s},dispose:function(){},_createClipPath:function(r,o,n,e,s,t,a,l){var u=new E.Sector({shape:{cx:r,cy:o,r0:0,r:n,startAngle:e,endAngle:e,clockwise:s}}),f=l?E.initProps:E.updateProps;return f(u,{shape:{endAngle:e+(s?1:-1)*Math.PI*2}},a,t),u},containPoint:function(r,o){var n=o.getData(),e=n.getItemLayout(0);if(e){var s=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(s*s+t*t);return a<=e.r&&a>=e.r0}}}),i=c;j.exports=i},Gytx:function(j,P){j.exports=function(O,E,C,v){var w=C?C.call(v,O,E):void 0;if(w!==void 0)return!!w;if(O===E)return!0;if(typeof O!="object"||!O||typeof E!="object"||!E)return!1;var m=Object.keys(O),h=Object.keys(E);if(m.length!==h.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(E),i=0;i<m.length;i++){var r=m[i];if(!c(r))return!1;var o=O[r],n=E[r];if(w=C?C.call(v,o,n,r):void 0,w===!1||w===void 0&&o!==n)return!1}return!0}},GzdX:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("q1tI"),v=d.n(C),w=d("rePB"),m=d("1OyB"),h=d("vuIU"),c=d("Ji7U"),i=d("md7G"),r=d("foSv"),o=d("m+aA"),n=d("TSYQ"),e=d.n(n),s=d("4IlW");function t(H){var F=H.pageXOffset,K="scrollLeft";if(typeof F!="number"){var U=H.document;F=U.documentElement[K],typeof F!="number"&&(F=U.body[K])}return F}function a(H){var F,K,U=H.ownerDocument,V=U.body,z=U&&U.documentElement,Y=H.getBoundingClientRect();return F=Y.left,K=Y.top,F-=z.clientLeft||V.clientLeft||0,K-=z.clientTop||V.clientTop||0,{left:F,top:K}}function l(H){var F=a(H),K=H.ownerDocument,U=K.defaultView||K.parentWindow;return F.left+=t(U),F.left}function u(H){var F=f();return function(){var U=Object(r.a)(H),V;if(F){var z=Object(r.a)(this).constructor;V=Reflect.construct(U,arguments,z)}else V=U.apply(this,arguments);return Object(i.a)(this,V)}}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(H){return!1}}var p=function(H){Object(c.a)(K,H);var F=u(K);function K(){var U;return Object(m.a)(this,K),U=F.apply(this,arguments),U.onHover=function(V){var z=U.props,Y=z.onHover,q=z.index;Y(V,q)},U.onClick=function(V){var z=U.props,Y=z.onClick,q=z.index;Y(V,q)},U.onKeyDown=function(V){var z=U.props,Y=z.onClick,q=z.index;V.keyCode===13&&Y(V,q)},U}return Object(h.a)(K,[{key:"getClassName",value:function(){var V=this.props,z=V.prefixCls,Y=V.index,q=V.value,ce=V.allowHalf,ie=V.focused,ve=Y+1,Ee=z;return q===0&&Y===0&&ie?Ee+=" ".concat(z,"-focused"):ce&&q+.5>=ve&&q<ve?(Ee+=" ".concat(z,"-half ").concat(z,"-active"),ie&&(Ee+=" ".concat(z,"-focused"))):(Ee+=ve<=q?" ".concat(z,"-full"):" ".concat(z,"-zero"),ve===q&&ie&&(Ee+=" ".concat(z,"-focused"))),Ee}},{key:"render",value:function(){var V=this.onHover,z=this.onClick,Y=this.onKeyDown,q=this.props,ce=q.disabled,ie=q.prefixCls,ve=q.character,Ee=q.characterRender,Le=q.index,He=q.count,ge=q.value,Fe=typeof ve=="function"?ve(this.props):ve,Q=v.a.createElement("li",{className:this.getClassName()},v.a.createElement("div",{onClick:ce?null:z,onKeyDown:ce?null:Y,onMouseMove:ce?null:V,role:"radio","aria-checked":ge>Le?"true":"false","aria-posinset":Le+1,"aria-setsize":He,tabIndex:ce?-1:0},v.a.createElement("div",{className:"".concat(ie,"-first")},Fe),v.a.createElement("div",{className:"".concat(ie,"-second")},Fe)));return Ee&&(Q=Ee(Q,this.props)),Q}}]),K}(v.a.Component);function g(H,F){var K=Object.keys(H);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(H);F&&(U=U.filter(function(V){return Object.getOwnPropertyDescriptor(H,V).enumerable})),K.push.apply(K,U)}return K}function A(H){for(var F=1;F<arguments.length;F++){var K=arguments[F]!=null?arguments[F]:{};F%2?g(Object(K),!0).forEach(function(U){Object(w.a)(H,U,K[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(K)):g(Object(K)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(K,U))})}return H}function y(H){var F=x();return function(){var U=Object(r.a)(H),V;if(F){var z=Object(r.a)(this).constructor;V=Reflect.construct(U,arguments,z)}else V=U.apply(this,arguments);return Object(i.a)(this,V)}}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(H){return!1}}function T(){}var S=function(H){Object(c.a)(K,H);var F=y(K);function K(U){var V;Object(m.a)(this,K),V=F.call(this,U),V.onHover=function(Y,q){var ce=V.props.onHoverChange,ie=V.getStarValue(q,Y.pageX),ve=V.state.cleanedValue;ie!==ve&&V.setState({hoverValue:ie,cleanedValue:null}),ce(ie)},V.onMouseLeave=function(){var Y=V.props.onHoverChange;V.setState({hoverValue:void 0,cleanedValue:null}),Y(void 0)},V.onClick=function(Y,q){var ce=V.props.allowClear,ie=V.state.value,ve=V.getStarValue(q,Y.pageX),Ee=!1;ce&&(Ee=ve===ie),V.onMouseLeave(),V.changeValue(Ee?0:ve),V.setState({cleanedValue:Ee?ve:null})},V.onFocus=function(){var Y=V.props.onFocus;V.setState({focused:!0}),Y&&Y()},V.onBlur=function(){var Y=V.props.onBlur;V.setState({focused:!1}),Y&&Y()},V.onKeyDown=function(Y){var q=Y.keyCode,ce=V.props,ie=ce.count,ve=ce.allowHalf,Ee=ce.onKeyDown,Le=ce.direction,He=Le==="rtl",ge=V.state.value;q===s.a.RIGHT&&ge<ie&&!He?(ve?ge+=.5:ge+=1,V.changeValue(ge),Y.preventDefault()):q===s.a.LEFT&&ge>0&&!He||q===s.a.RIGHT&&ge>0&&He?(ve?ge-=.5:ge-=1,V.changeValue(ge),Y.preventDefault()):q===s.a.LEFT&&ge<ie&&He&&(ve?ge+=.5:ge+=1,V.changeValue(ge),Y.preventDefault()),Ee&&Ee(Y)},V.saveRef=function(Y){return function(q){V.stars[Y]=q}},V.saveRate=function(Y){V.rate=Y};var z=U.value;return z===void 0&&(z=U.defaultValue),V.stars={},V.state={value:z,focused:!1,cleanedValue:null},V}return Object(h.a)(K,[{key:"componentDidMount",value:function(){var V=this.props,z=V.autoFocus,Y=V.disabled;z&&!Y&&this.focus()}},{key:"getStarDOM",value:function(V){return Object(o.a)(this.stars[V])}},{key:"getStarValue",value:function(V,z){var Y=this.props,q=Y.allowHalf,ce=Y.direction,ie=ce==="rtl",ve=V+1;if(q){var Ee=this.getStarDOM(V),Le=l(Ee),He=Ee.clientWidth;(ie&&z-Le>He/2||!ie&&z-Le<He/2)&&(ve-=.5)}return ve}},{key:"focus",value:function(){var V=this.props.disabled;V||this.rate.focus()}},{key:"blur",value:function(){var V=this.props.disabled;V||this.rate.blur()}},{key:"changeValue",value:function(V){var z=this.props.onChange;"value"in this.props||this.setState({value:V}),z(V)}},{key:"render",value:function(){for(var V=this.props,z=V.count,Y=V.allowHalf,q=V.style,ce=V.prefixCls,ie=V.disabled,ve=V.className,Ee=V.character,Le=V.characterRender,He=V.tabIndex,ge=V.direction,Fe=this.state,Q=Fe.value,fe=Fe.hoverValue,Je=Fe.focused,ne=[],X=ie?"".concat(ce,"-disabled"):"",G=0;G<z;G+=1)ne.push(v.a.createElement(p,{ref:this.saveRef(G),index:G,count:z,disabled:ie,prefixCls:"".concat(ce,"-star"),allowHalf:Y,value:fe===void 0?Q:fe,onClick:this.onClick,onHover:this.onHover,key:G,character:Ee,characterRender:Le,focused:Je}));var te=e()(ce,X,ve,Object(w.a)({},"".concat(ce,"-rtl"),ge==="rtl"));return v.a.createElement("ul",{className:te,style:q,onMouseLeave:ie?null:this.onMouseLeave,tabIndex:ie?-1:He,onFocus:ie?null:this.onFocus,onBlur:ie?null:this.onBlur,onKeyDown:ie?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ne)}}],[{key:"getDerivedStateFromProps",value:function(V,z){return"value"in V&&V.value!==void 0?A(A({},z),{},{value:V.value}):z}}]),K}(v.a.Component);S.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:T,character:"\u2605",onHoverChange:T,tabIndex:0,direction:"ltr"};var b=S,_=b,I=d("Lerx"),L=d.n(I),D=d("3S7+"),N=d("H84U"),M=function(H,F){var K={};for(var U in H)Object.prototype.hasOwnProperty.call(H,U)&&F.indexOf(U)<0&&(K[U]=H[U]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,U=Object.getOwnPropertySymbols(H);V<U.length;V++)F.indexOf(U[V])<0&&Object.prototype.propertyIsEnumerable.call(H,U[V])&&(K[U[V]]=H[U[V]]);return K},B=C.forwardRef(function(H,F){var K=H.prefixCls,U=H.tooltips,V=M(H,["prefixCls","tooltips"]),z=function(Ee,Le){var He=Le.index;return U?C.createElement(D.a,{title:U[He]},Ee):Ee},Y=C.useContext(N.b),q=Y.getPrefixCls,ce=Y.direction,ie=q("rate",K);return C.createElement(_,E()({ref:F,characterRender:z},V,{prefixCls:ie,direction:ce}))});B.displayName="Rate",B.defaultProps={character:C.createElement(L.a,null)};var R=P.a=B},H6uX:function(j,P){var d=Array.prototype.slice,O=function(m){this._$handlers={},this._$eventProcessor=m};O.prototype={constructor:O,one:function(m,h,c,i){return C(this,m,h,c,i,!0)},on:function(m,h,c,i){return C(this,m,h,c,i,!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 i=[],r=0,o=c[m].length;r<o;r++)c[m][r].h!==h&&i.push(c[m][r]);c[m]=i}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 i=arguments,r=i.length;r>3&&(i=d.call(i,1));for(var o=h.length,n=0;n<o;){var e=h[n];if(c&&c.filter&&e.query!=null&&!c.filter(m,e.query)){n++;continue}switch(r){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,i[1]);break;case 3:e.h.call(e.ctx,i[1],i[2]);break;default:e.h.apply(e.ctx,i);break}e.one?(h.splice(n,1),o--):n++}}return c&&c.afterTrigger&&c.afterTrigger(m),this},triggerWithContext:function(m){var h=this._$handlers[m],c=this._$eventProcessor;if(h){var i=arguments,r=i.length;r>4&&(i=d.call(i,1,i.length-1));for(var o=i[i.length-1],n=h.length,e=0;e<n;){var s=h[e];if(c&&c.filter&&s.query!=null&&!c.filter(m,s.query)){e++;continue}switch(r){case 1:s.h.call(o);break;case 2:s.h.call(o,i[1]);break;case 3:s.h.call(o,i[1],i[2]);break;default:s.h.apply(o,i);break}s.one?(h.splice(e,1),n--):e++}}return c&&c.afterTrigger&&c.afterTrigger(m),this}};function E(w,m){var h=w._$eventProcessor;return m!=null&&h&&h.normalizeQuery&&(m=h.normalizeQuery(m)),m}function C(w,m,h,c,i,r){var o=w._$handlers;if(typeof h=="function"&&(i=c,c=h,h=null),!c||!m)return w;h=E(w,h),o[m]||(o[m]=[]);for(var n=0;n<o[m].length;n++)if(o[m][n].h===c)return w;var e={h:c,one:r,query:h,ctx:i||w,callAtLast:c.zrEventfulCallAtLast},s=o[m].length-1,t=o[m][s];return t&&t.callAtLast?o[m].splice(s,0,e):o[m].push(e),w}var v=O;j.exports=v},H7XF:function(j,P,d){"use strict";P.byteLength=c,P.toByteArray=r,P.fromByteArray=e;for(var O=[],E=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,m=v.length;w<m;++w)O[w]=v[w],E[v.charCodeAt(w)]=w;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function h(s){var t=s.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=s.indexOf("=");a===-1&&(a=t);var l=a===t?0:4-a%4;return[a,l]}function c(s){var t=h(s),a=t[0],l=t[1];return(a+l)*3/4-l}function i(s,t,a){return(t+a)*3/4-a}function r(s){var t,a=h(s),l=a[0],u=a[1],f=new C(i(s,l,u)),p=0,g=u>0?l-4:l,A;for(A=0;A<g;A+=4)t=E[s.charCodeAt(A)]<<18|E[s.charCodeAt(A+1)]<<12|E[s.charCodeAt(A+2)]<<6|E[s.charCodeAt(A+3)],f[p++]=t>>16&255,f[p++]=t>>8&255,f[p++]=t&255;return u===2&&(t=E[s.charCodeAt(A)]<<2|E[s.charCodeAt(A+1)]>>4,f[p++]=t&255),u===1&&(t=E[s.charCodeAt(A)]<<10|E[s.charCodeAt(A+1)]<<4|E[s.charCodeAt(A+2)]>>2,f[p++]=t>>8&255,f[p++]=t&255),f}function o(s){return O[s>>18&63]+O[s>>12&63]+O[s>>6&63]+O[s&63]}function n(s,t,a){for(var l,u=[],f=t;f<a;f+=3)l=(s[f]<<16&16711680)+(s[f+1]<<8&65280)+(s[f+2]&255),u.push(o(l));return u.join("")}function e(s){for(var t,a=s.length,l=a%3,u=[],f=16383,p=0,g=a-l;p<g;p+=f)u.push(n(s,p,p+f>g?g:p+f));return l===1?(t=s[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):l===2&&(t=(s[a-2]<<8)+s[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},HBhm:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},HDXh:function(j,P,d){"use strict";(function(O){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var E=d("H7XF"),C=d("kVK+"),v=d("49sm");P.Buffer=c,P.SlowBuffer=u,P.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:w(),P.kMaxLength=m();function w(){try{var ne=new Uint8Array(1);return ne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ne.foo()===42&&typeof ne.subarray=="function"&&ne.subarray(1,1).byteLength===0}catch(X){return!1}}function m(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(ne,X){if(m()<X)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(ne=new Uint8Array(X),ne.__proto__=c.prototype):(ne===null&&(ne=new c(X)),ne.length=X),ne}function c(ne,X,G){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(ne,X,G);if(typeof ne=="number"){if(typeof X=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,ne)}return i(this,ne,X,G)}c.poolSize=8192,c._augment=function(ne){return ne.__proto__=c.prototype,ne};function i(ne,X,G,te){if(typeof X=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&X instanceof ArrayBuffer?t(ne,X,G,te):typeof X=="string"?e(ne,X,G):a(ne,X)}c.from=function(ne,X,G){return i(null,ne,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(ne){if(typeof ne!="number")throw new TypeError('"size" argument must be a number');if(ne<0)throw new RangeError('"size" argument must not be negative')}function o(ne,X,G,te){return r(X),X<=0?h(ne,X):G!==void 0?typeof te=="string"?h(ne,X).fill(G,te):h(ne,X).fill(G):h(ne,X)}c.alloc=function(ne,X,G){return o(null,ne,X,G)};function n(ne,X){if(r(X),ne=h(ne,X<0?0:l(X)|0),!c.TYPED_ARRAY_SUPPORT)for(var G=0;G<X;++G)ne[G]=0;return ne}c.allocUnsafe=function(ne){return n(null,ne)},c.allocUnsafeSlow=function(ne){return n(null,ne)};function e(ne,X,G){if((typeof G!="string"||G==="")&&(G="utf8"),!c.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var te=f(X,G)|0;ne=h(ne,te);var we=ne.write(X,G);return we!==te&&(ne=ne.slice(0,we)),ne}function s(ne,X){var G=X.length<0?0:l(X.length)|0;ne=h(ne,G);for(var te=0;te<G;te+=1)ne[te]=X[te]&255;return ne}function t(ne,X,G,te){if(X.byteLength,G<0||X.byteLength<G)throw new RangeError("'offset' is out of bounds");if(X.byteLength<G+(te||0))throw new RangeError("'length' is out of bounds");return G===void 0&&te===void 0?X=new Uint8Array(X):te===void 0?X=new Uint8Array(X,G):X=new Uint8Array(X,G,te),c.TYPED_ARRAY_SUPPORT?(ne=X,ne.__proto__=c.prototype):ne=s(ne,X),ne}function a(ne,X){if(c.isBuffer(X)){var G=l(X.length)|0;return ne=h(ne,G),ne.length===0||X.copy(ne,0,0,G),ne}if(X){if(typeof ArrayBuffer!="undefined"&&X.buffer instanceof ArrayBuffer||"length"in X)return typeof X.length!="number"||Je(X.length)?h(ne,0):s(ne,X);if(X.type==="Buffer"&&v(X.data))return s(ne,X.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(ne){if(ne>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return ne|0}function u(ne){return+ne!=ne&&(ne=0),c.alloc(+ne)}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 te=X.length,we=G.length,he=0,Pe=Math.min(te,we);he<Pe;++he)if(X[he]!==G[he]){te=X[he],we=G[he];break}return te<we?-1:we<te?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(!v(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return c.alloc(0);var te;if(G===void 0)for(G=0,te=0;te<X.length;++te)G+=X[te].length;var we=c.allocUnsafe(G),he=0;for(te=0;te<X.length;++te){var Pe=X[te];if(!c.isBuffer(Pe))throw new TypeError('"list" argument must be an Array of Buffers');Pe.copy(we,he),he+=Pe.length}return we};function f(ne,X){if(c.isBuffer(ne))return ne.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ne)||ne instanceof ArrayBuffer))return ne.byteLength;typeof ne!="string"&&(ne=""+ne);var G=ne.length;if(G===0)return 0;for(var te=!1;;)switch(X){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return He(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Q(ne).length;default:if(te)return He(ne).length;X=(""+X).toLowerCase(),te=!0}}c.byteLength=f;function p(ne,X,G){var te=!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(ne||(ne="utf8");;)switch(ne){case"hex":return H(this,X,G);case"utf8":case"utf-8":return D(this,X,G);case"ascii":return B(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 F(this,X,G);default:if(te)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),te=!0}}c.prototype._isBuffer=!0;function g(ne,X,G){var te=ne[X];ne[X]=ne[G],ne[G]=te}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)g(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)g(this,G,G+3),g(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)g(this,G,G+7),g(this,G+1,G+6),g(this,G+2,G+5),g(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=P.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,te,we,he){if(!c.isBuffer(X))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),te===void 0&&(te=X?X.length:0),we===void 0&&(we=0),he===void 0&&(he=this.length),G<0||te>X.length||we<0||he>this.length)throw new RangeError("out of range index");if(we>=he&&G>=te)return 0;if(we>=he)return-1;if(G>=te)return 1;if(G>>>=0,te>>>=0,we>>>=0,he>>>=0,this===X)return 0;for(var Pe=he-we,Oe=te-G,le=Math.min(Pe,Oe),me=this.slice(we,he),_e=X.slice(G,te),$e=0;$e<le;++$e)if(me[$e]!==_e[$e]){Pe=me[$e],Oe=_e[$e];break}return Pe<Oe?-1:Oe<Pe?1:0};function A(ne,X,G,te,we){if(ne.length===0)return-1;if(typeof G=="string"?(te=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=we?0:ne.length-1),G<0&&(G=ne.length+G),G>=ne.length){if(we)return-1;G=ne.length-1}else if(G<0)if(we)G=0;else return-1;if(typeof X=="string"&&(X=c.from(X,te)),c.isBuffer(X))return X.length===0?-1:y(ne,X,G,te,we);if(typeof X=="number")return X=X&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?we?Uint8Array.prototype.indexOf.call(ne,X,G):Uint8Array.prototype.lastIndexOf.call(ne,X,G):y(ne,[X],G,te,we);throw new TypeError("val must be string, number or Buffer")}function y(ne,X,G,te,we){var he=1,Pe=ne.length,Oe=X.length;if(te!==void 0&&(te=String(te).toLowerCase(),te==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(ne.length<2||X.length<2)return-1;he=2,Pe/=2,Oe/=2,G/=2}function le(et,Ie){return he===1?et[Ie]:et.readUInt16BE(Ie*he)}var me;if(we){var _e=-1;for(me=G;me<Pe;me++)if(le(ne,me)===le(X,_e===-1?0:me-_e)){if(_e===-1&&(_e=me),me-_e+1===Oe)return _e*he}else _e!==-1&&(me-=me-_e),_e=-1}else for(G+Oe>Pe&&(G=Pe-Oe),me=G;me>=0;me--){for(var $e=!0,gt=0;gt<Oe;gt++)if(le(ne,me+gt)!==le(X,gt)){$e=!1;break}if($e)return me}return-1}c.prototype.includes=function(X,G,te){return this.indexOf(X,G,te)!==-1},c.prototype.indexOf=function(X,G,te){return A(this,X,G,te,!0)},c.prototype.lastIndexOf=function(X,G,te){return A(this,X,G,te,!1)};function x(ne,X,G,te){G=Number(G)||0;var we=ne.length-G;te?(te=Number(te),te>we&&(te=we)):te=we;var he=X.length;if(he%2!==0)throw new TypeError("Invalid hex string");te>he/2&&(te=he/2);for(var Pe=0;Pe<te;++Pe){var Oe=parseInt(X.substr(Pe*2,2),16);if(isNaN(Oe))return Pe;ne[G+Pe]=Oe}return Pe}function T(ne,X,G,te){return fe(He(X,ne.length-G),ne,G,te)}function S(ne,X,G,te){return fe(ge(X),ne,G,te)}function b(ne,X,G,te){return S(ne,X,G,te)}function _(ne,X,G,te){return fe(Q(X),ne,G,te)}function I(ne,X,G,te){return fe(Fe(X,ne.length-G),ne,G,te)}c.prototype.write=function(X,G,te,we){if(G===void 0)we="utf8",te=this.length,G=0;else if(te===void 0&&typeof G=="string")we=G,te=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(te)?(te=te|0,we===void 0&&(we="utf8")):(we=te,te=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var he=this.length-G;if((te===void 0||te>he)&&(te=he),X.length>0&&(te<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");we||(we="utf8");for(var Pe=!1;;)switch(we){case"hex":return x(this,X,G,te);case"utf8":case"utf-8":return T(this,X,G,te);case"ascii":return S(this,X,G,te);case"latin1":case"binary":return b(this,X,G,te);case"base64":return _(this,X,G,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,X,G,te);default:if(Pe)throw new TypeError("Unknown encoding: "+we);we=(""+we).toLowerCase(),Pe=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(ne,X,G){return X===0&&G===ne.length?E.fromByteArray(ne):E.fromByteArray(ne.slice(X,G))}function D(ne,X,G){G=Math.min(ne.length,G);for(var te=[],we=X;we<G;){var he=ne[we],Pe=null,Oe=he>239?4:he>223?3:he>191?2:1;if(we+Oe<=G){var le,me,_e,$e;switch(Oe){case 1:he<128&&(Pe=he);break;case 2:le=ne[we+1],(le&192)===128&&($e=(he&31)<<6|le&63,$e>127&&(Pe=$e));break;case 3:le=ne[we+1],me=ne[we+2],(le&192)===128&&(me&192)===128&&($e=(he&15)<<12|(le&63)<<6|me&63,$e>2047&&($e<55296||$e>57343)&&(Pe=$e));break;case 4:le=ne[we+1],me=ne[we+2],_e=ne[we+3],(le&192)===128&&(me&192)===128&&(_e&192)===128&&($e=(he&15)<<18|(le&63)<<12|(me&63)<<6|_e&63,$e>65535&&$e<1114112&&(Pe=$e))}}Pe===null?(Pe=65533,Oe=1):Pe>65535&&(Pe-=65536,te.push(Pe>>>10&1023|55296),Pe=56320|Pe&1023),te.push(Pe),we+=Oe}return M(te)}var N=4096;function M(ne){var X=ne.length;if(X<=N)return String.fromCharCode.apply(String,ne);for(var G="",te=0;te<X;)G+=String.fromCharCode.apply(String,ne.slice(te,te+=N));return G}function B(ne,X,G){var te="";G=Math.min(ne.length,G);for(var we=X;we<G;++we)te+=String.fromCharCode(ne[we]&127);return te}function R(ne,X,G){var te="";G=Math.min(ne.length,G);for(var we=X;we<G;++we)te+=String.fromCharCode(ne[we]);return te}function H(ne,X,G){var te=ne.length;(!X||X<0)&&(X=0),(!G||G<0||G>te)&&(G=te);for(var we="",he=X;he<G;++he)we+=Le(ne[he]);return we}function F(ne,X,G){for(var te=ne.slice(X,G),we="",he=0;he<te.length;he+=2)we+=String.fromCharCode(te[he]+te[he+1]*256);return we}c.prototype.slice=function(X,G){var te=this.length;X=~~X,G=G===void 0?te:~~G,X<0?(X+=te,X<0&&(X=0)):X>te&&(X=te),G<0?(G+=te,G<0&&(G=0)):G>te&&(G=te),G<X&&(G=X);var we;if(c.TYPED_ARRAY_SUPPORT)we=this.subarray(X,G),we.__proto__=c.prototype;else{var he=G-X;we=new c(he,void 0);for(var Pe=0;Pe<he;++Pe)we[Pe]=this[Pe+X]}return we};function K(ne,X,G){if(ne%1!==0||ne<0)throw new RangeError("offset is not uint");if(ne+X>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(X,G,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=this[X],he=1,Pe=0;++Pe<G&&(he*=256);)we+=this[X+Pe]*he;return we},c.prototype.readUIntBE=function(X,G,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=this[X+--G],he=1;G>0&&(he*=256);)we+=this[X+--G]*he;return we},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,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=this[X],he=1,Pe=0;++Pe<G&&(he*=256);)we+=this[X+Pe]*he;return he*=128,we>=he&&(we-=Math.pow(2,8*G)),we},c.prototype.readIntBE=function(X,G,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=G,he=1,Pe=this[X+--we];we>0&&(he*=256);)Pe+=this[X+--we]*he;return he*=128,Pe>=he&&(Pe-=Math.pow(2,8*G)),Pe},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 te=this[X]|this[X+1]<<8;return te&32768?te|4294901760:te},c.prototype.readInt16BE=function(X,G){G||K(X,2,this.length);var te=this[X+1]|this[X]<<8;return te&32768?te|4294901760:te},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),C.read(this,X,!0,23,4)},c.prototype.readFloatBE=function(X,G){return G||K(X,4,this.length),C.read(this,X,!1,23,4)},c.prototype.readDoubleLE=function(X,G){return G||K(X,8,this.length),C.read(this,X,!0,52,8)},c.prototype.readDoubleBE=function(X,G){return G||K(X,8,this.length),C.read(this,X,!1,52,8)};function U(ne,X,G,te,we,he){if(!c.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>we||X<he)throw new RangeError('"value" argument is out of bounds');if(G+te>ne.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(X,G,te,we){if(X=+X,G=G|0,te=te|0,!we){var he=Math.pow(2,8*te)-1;U(this,X,G,te,he,0)}var Pe=1,Oe=0;for(this[G]=X&255;++Oe<te&&(Pe*=256);)this[G+Oe]=X/Pe&255;return G+te},c.prototype.writeUIntBE=function(X,G,te,we){if(X=+X,G=G|0,te=te|0,!we){var he=Math.pow(2,8*te)-1;U(this,X,G,te,he,0)}var Pe=te-1,Oe=1;for(this[G+Pe]=X&255;--Pe>=0&&(Oe*=256);)this[G+Pe]=X/Oe&255;return G+te},c.prototype.writeUInt8=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,1,255,0),c.TYPED_ARRAY_SUPPORT||(X=Math.floor(X)),this[G]=X&255,G+1};function V(ne,X,G,te){X<0&&(X=65535+X+1);for(var we=0,he=Math.min(ne.length-G,2);we<he;++we)ne[G+we]=(X&255<<8*(te?we:1-we))>>>(te?we:1-we)*8}c.prototype.writeUInt16LE=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):V(this,X,G,!0),G+2},c.prototype.writeUInt16BE=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):V(this,X,G,!1),G+2};function z(ne,X,G,te){X<0&&(X=4294967295+X+1);for(var we=0,he=Math.min(ne.length-G,4);we<he;++we)ne[G+we]=X>>>(te?we:3-we)*8&255}c.prototype.writeUInt32LE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!0),G+4},c.prototype.writeUInt32BE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!1),G+4},c.prototype.writeIntLE=function(X,G,te,we){if(X=+X,G=G|0,!we){var he=Math.pow(2,8*te-1);U(this,X,G,te,he-1,-he)}var Pe=0,Oe=1,le=0;for(this[G]=X&255;++Pe<te&&(Oe*=256);)X<0&&le===0&&this[G+Pe-1]!==0&&(le=1),this[G+Pe]=(X/Oe>>0)-le&255;return G+te},c.prototype.writeIntBE=function(X,G,te,we){if(X=+X,G=G|0,!we){var he=Math.pow(2,8*te-1);U(this,X,G,te,he-1,-he)}var Pe=te-1,Oe=1,le=0;for(this[G+Pe]=X&255;--Pe>=0&&(Oe*=256);)X<0&&le===0&&this[G+Pe+1]!==0&&(le=1),this[G+Pe]=(X/Oe>>0)-le&255;return G+te},c.prototype.writeInt8=function(X,G,te){return X=+X,G=G|0,te||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,te){return X=+X,G=G|0,te||U(this,X,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):V(this,X,G,!0),G+2},c.prototype.writeInt16BE=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):V(this,X,G,!1),G+2},c.prototype.writeInt32LE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!0),G+4},c.prototype.writeInt32BE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!1),G+4};function Y(ne,X,G,te,we,he){if(G+te>ne.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function q(ne,X,G,te,we){return we||Y(ne,X,G,4,34028234663852886e22,-34028234663852886e22),C.write(ne,X,G,te,23,4),G+4}c.prototype.writeFloatLE=function(X,G,te){return q(this,X,G,!0,te)},c.prototype.writeFloatBE=function(X,G,te){return q(this,X,G,!1,te)};function ce(ne,X,G,te,we){return we||Y(ne,X,G,8,17976931348623157e292,-17976931348623157e292),C.write(ne,X,G,te,52,8),G+8}c.prototype.writeDoubleLE=function(X,G,te){return ce(this,X,G,!0,te)},c.prototype.writeDoubleBE=function(X,G,te){return ce(this,X,G,!1,te)},c.prototype.copy=function(X,G,te,we){if(te||(te=0),!we&&we!==0&&(we=this.length),G>=X.length&&(G=X.length),G||(G=0),we>0&&we<te&&(we=te),we===te)return 0;if(X.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(te<0||te>=this.length)throw new RangeError("sourceStart out of bounds");if(we<0)throw new RangeError("sourceEnd out of bounds");we>this.length&&(we=this.length),X.length-G<we-te&&(we=X.length-G+te);var he=we-te,Pe;if(this===X&&te<G&&G<we)for(Pe=he-1;Pe>=0;--Pe)X[Pe+G]=this[Pe+te];else if(he<1e3||!c.TYPED_ARRAY_SUPPORT)for(Pe=0;Pe<he;++Pe)X[Pe+G]=this[Pe+te];else Uint8Array.prototype.set.call(X,this.subarray(te,te+he),G);return he},c.prototype.fill=function(X,G,te,we){if(typeof X=="string"){if(typeof G=="string"?(we=G,G=0,te=this.length):typeof te=="string"&&(we=te,te=this.length),X.length===1){var he=X.charCodeAt(0);he<256&&(X=he)}if(we!==void 0&&typeof we!="string")throw new TypeError("encoding must be a string");if(typeof we=="string"&&!c.isEncoding(we))throw new TypeError("Unknown encoding: "+we)}else typeof X=="number"&&(X=X&255);if(G<0||this.length<G||this.length<te)throw new RangeError("Out of range index");if(te<=G)return this;G=G>>>0,te=te===void 0?this.length:te>>>0,X||(X=0);var Pe;if(typeof X=="number")for(Pe=G;Pe<te;++Pe)this[Pe]=X;else{var Oe=c.isBuffer(X)?X:He(new c(X,we).toString()),le=Oe.length;for(Pe=0;Pe<te-G;++Pe)this[Pe+G]=Oe[Pe%le]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function ve(ne){if(ne=Ee(ne).replace(ie,""),ne.length<2)return"";for(;ne.length%4!==0;)ne=ne+"=";return ne}function Ee(ne){return ne.trim?ne.trim():ne.replace(/^\s+|\s+$/g,"")}function Le(ne){return ne<16?"0"+ne.toString(16):ne.toString(16)}function He(ne,X){X=X||Infinity;for(var G,te=ne.length,we=null,he=[],Pe=0;Pe<te;++Pe){if(G=ne.charCodeAt(Pe),G>55295&&G<57344){if(!we){if(G>56319){(X-=3)>-1&&he.push(239,191,189);continue}else if(Pe+1===te){(X-=3)>-1&&he.push(239,191,189);continue}we=G;continue}if(G<56320){(X-=3)>-1&&he.push(239,191,189),we=G;continue}G=(we-55296<<10|G-56320)+65536}else we&&((X-=3)>-1&&he.push(239,191,189));if(we=null,G<128){if((X-=1)<0)break;he.push(G)}else if(G<2048){if((X-=2)<0)break;he.push(G>>6|192,G&63|128)}else if(G<65536){if((X-=3)<0)break;he.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((X-=4)<0)break;he.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return he}function ge(ne){for(var X=[],G=0;G<ne.length;++G)X.push(ne.charCodeAt(G)&255);return X}function Fe(ne,X){for(var G,te,we,he=[],Pe=0;Pe<ne.length&&!((X-=2)<0);++Pe)G=ne.charCodeAt(Pe),te=G>>8,we=G%256,he.push(we),he.push(te);return he}function Q(ne){return E.toByteArray(ve(ne))}function fe(ne,X,G,te){for(var we=0;we<te&&!(we+G>=X.length||we>=ne.length);++we)X[we+G]=ne[we];return we}function Je(ne){return ne!==ne}}).call(this,d("IyRk"))},"HF/U":function(j,P,d){var O=d("QBsz");function E(v){var w=v.coordinateSystem;if(w&&w.type!=="view")return;var m=v.getGraph();m.eachNode(function(h){var c=h.getModel();h.setLayout([+c.get("x"),+c.get("y")])}),C(m)}function C(v){v.eachEdge(function(w){var m=w.getModel().get("lineStyle.curveness")||0,h=O.clone(w.node1.getLayout()),c=O.clone(w.node2.getLayout()),i=[h,c];+m&&i.push([(h[0]+c[0])/2-(h[1]-c[1])*m,(h[1]+c[1])/2-(c[0]-h[0])*m]),w.setLayout(i)})}P.simpleLayout=E,P.simpleLayoutEdge=C},"HM/N":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("/SeX"),w=d("OELB"),m=w.parsePercent,h=d("aX7z"),c=h.createScaleByModel,i=h.niceScaleExtent,r=d("IDmD"),o=d("7hqr"),n=o.getStackedDimension;d("ePAk");function e(l,u,f){var p=u.get("center"),g=f.getWidth(),A=f.getHeight();l.cx=m(p[0],g),l.cy=m(p[1],A);var y=l.getRadiusAxis(),x=Math.min(g,A)/2,T=u.get("radius");T==null?T=[0,"100%"]:C.isArray(T)||(T=[0,T]),T=[m(T[0],x),m(T[1],x)],y.inverse?y.setExtent(T[1],T[0]):y.setExtent(T[0],T[1])}function s(l,u){var f=this,p=f.getAngleAxis(),g=f.getRadiusAxis();if(p.scale.setExtent(Infinity,-Infinity),g.scale.setExtent(Infinity,-Infinity),l.eachSeries(function(x){if(x.coordinateSystem===f){var T=x.getData();C.each(T.mapDimension("radius",!0),function(S){g.scale.unionExtentFromData(T,n(T,S))}),C.each(T.mapDimension("angle",!0),function(S){p.scale.unionExtentFromData(T,n(T,S))})}}),i(p.scale,p.model),i(g.scale,g.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 t(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 a={dimensions:v.prototype.dimensions,create:function(l,u){var f=[];return l.eachComponent("polar",function(p,g){var A=new v(g);A.update=s;var y=A.getRadiusAxis(),x=A.getAngleAxis(),T=p.findAxisModel("radiusAxis"),S=p.findAxisModel("angleAxis");t(y,T),t(x,S),e(A,p,u),f.push(A),p.coordinateSystem=A,A.model=p}),l.eachSeries(function(p){if(p.get("coordinateSystem")==="polar"){var g=l.queryComponents({mainType:"polar",index:p.get("polarIndex"),id:p.get("polarId")})[0];p.coordinateSystem=g.coordinateSystem}}),f}};r.register("polar",a)},HQEm:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("Sj0X"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},HjIi:function(j,P,d){var O=d("bYtY"),E=d("OELB"),C=E.parsePercent,v=d("7hqr"),w=v.isDimensionStacked;function m(o){return o.get("stack")||"__ec_stack_"+o.seriesIndex}function h(o,n){return n.dim+o.model.componentIndex}function c(o,n,e){var s={},t=i(O.filter(n.getSeriesByType(o),function(a){return!n.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));n.eachSeriesByType(o,function(a){if(a.coordinateSystem.type!=="polar")return;var l=a.getData(),u=a.coordinateSystem,f=u.getBaseAxis(),p=h(u,f),g=m(a),A=t[p][g],y=A.offset,x=A.width,T=u.getOtherAxis(f),S=a.coordinateSystem.cx,b=a.coordinateSystem.cy,_=a.get("barMinHeight")||0,I=a.get("barMinAngle")||0;s[g]=s[g]||[];for(var L=l.mapDimension(T.dim),D=l.mapDimension(f.dim),N=w(l,L),M=f.dim!=="radius"||!a.get("roundCap",!0),B=T.getExtent()[0],R=0,H=l.count();R<H;R++){var F=l.get(L,R),K=l.get(D,R),U=F>=0?"p":"n",V=B;N&&(s[g][K]||(s[g][K]={p:B,n:B}),V=s[g][K][U]);var z,Y,q,ce;if(T.dim==="radius"){var ie=T.dataToRadius(F)-B,ve=f.dataToAngle(K);Math.abs(ie)<_&&(ie=(ie<0?-1:1)*_),z=V,Y=V+ie,q=ve-y,ce=q-x,N&&(s[g][K][U]=Y)}else{var Ee=T.dataToAngle(F,M)-B,Le=f.dataToRadius(K);Math.abs(Ee)<I&&(Ee=(Ee<0?-1:1)*I),z=Le+y,Y=z+x,q=V,ce=V+Ee,N&&(s[g][K][U]=ce)}l.setItemLayout(R,{cx:S,cy:b,r0:z,r:Y,startAngle:-q*Math.PI/180,endAngle:-ce*Math.PI/180})}},this)}function i(o,n){var e={};O.each(o,function(t,a){var l=t.getData(),u=t.coordinateSystem,f=u.getBaseAxis(),p=h(u,f),g=f.getExtent(),A=f.type==="category"?f.getBandWidth():Math.abs(g[1]-g[0])/l.count(),y=e[p]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},x=y.stacks;e[p]=y;var T=m(t);x[T]||y.autoWidthCount++,x[T]=x[T]||{width:0,maxWidth:0};var S=C(t.get("barWidth"),A),b=C(t.get("barMaxWidth"),A),_=t.get("barGap"),I=t.get("barCategoryGap");S&&!x[T].width&&(S=Math.min(y.remainedWidth,S),x[T].width=S,y.remainedWidth-=S),b&&(x[T].maxWidth=b),_!=null&&(y.gap=_),I!=null&&(y.categoryGap=I)});var s={};return O.each(e,function(t,a){s[a]={};var l=t.stacks,u=t.bandWidth,f=C(t.categoryGap,u),p=C(t.gap,1),g=t.remainedWidth,A=t.autoWidthCount,y=(g-f)/(A+(A-1)*p);y=Math.max(y,0),O.each(l,function(b,_){var I=b.maxWidth;I&&I<y&&(I=Math.min(I,g),b.width&&(I=Math.min(I,b.width)),g-=I,b.width=I,A--)}),y=(g-f)/(A+(A-1)*p),y=Math.max(y,0);var x=0,T;O.each(l,function(b,_){b.width||(b.width=y),T=b,x+=b.width*(1+p)}),T&&(x-=T.width*p);var S=-x/2;O.each(l,function(b,_){s[a][_]=s[a][_]||{offset:S,width:b.width},S+=b.width*(1+p)})}),s}var r=c;j.exports=r},HjOm:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={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=O;P.default=E},Hw7h:function(j,P,d){var O=d("y+Vt"),E=O.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(C,v){var w=Math.cos,m=Math.sin,h=v.r,c=v.width,i=v.angle,r=v.x-w(i)*c*(c>=h/3?1:2),o=v.y-m(i)*c*(c>=h/3?1:2);i=v.angle-Math.PI/2,C.moveTo(r,o),C.lineTo(v.x+w(i)*c,v.y+m(i)*c),C.lineTo(v.x+w(v.angle)*h,v.y+m(v.angle)*h),C.lineTo(v.x-w(i)*c,v.y-m(i)*c),C.lineTo(r,o);return}});j.exports=E},Hxpc:function(j,P,d){var O=d("bYtY"),E=d("4NO4"),C=d("bLfw"),v=d("Qxkt"),w=d("cCMj"),m=d("7uqq"),h=C.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(i){C.prototype.init.apply(this,arguments),E.defaultEmphasis(i,"label",["show"])},optionUpdated:function(){var i=this.option,r=this;i.regions=m.getFilledRegions(i.regions,i.map,i.nameMap),this._optionModelMap=O.reduce(i.regions||[],function(o,n){return n.name&&o.set(n.name,new v(n,r)),o},O.createHashMap()),this.updateSelectedMap(i.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(i){return this._optionModelMap.get(i)||new v(null,this,this.ecModel)},getFormattedLabel:function(i,r){var o=this.getRegionModel(i),n=o.get("label"+(r==="normal"?".":r+".")+"formatter"),e={name:i};if(typeof n=="function")return e.status=r,n(e);if(typeof n=="string")return n.replace("{a}",i!=null?i:"")},setZoom:function(i){this.option.zoom=i},setCenter:function(i){this.option.center=i}});O.mixin(h,w);var c=h;j.exports=c},"I+77":function(j,P,d){var O=d("ProS");d("h54F"),d("lwQL"),d("10cm");var E=d("Z1r0"),C=d("f5Yq"),v=d("KUOm"),w=d("3m61"),m=d("01d+"),h=d("rdor"),c=d("WGYa"),i=d("ewwo");O.registerProcessor(E),O.registerVisual(C("graph","circle",null)),O.registerVisual(v),O.registerVisual(w),O.registerLayout(m),O.registerLayout(O.PRIORITY.VISUAL.POST_CHART_LAYOUT,h),O.registerLayout(c),O.registerCoordinateSystem("graphView",{create:i})},"I+Bx":function(j,P,d){var O=d("bYtY"),E=d("eIcI"),C=d("ieMj"),v=d("OELB"),w=d("aX7z"),m=w.getScaleExtent,h=w.niceScaleExtent,c=d("IDmD"),i=d("jCoz");function r(n,e,s){this._model=n,this.dimensions=[],this._indicatorAxes=O.map(n.getIndicatorModels(),function(t,a){var l="indicator_"+a,u=new E(l,t.get("axisType")==="log"?new i:new C);return u.name=t.get("name"),u.model=t,t.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,e){var s=this._indicatorAxes[e];return this.coordToPoint(s.dataToCoord(n),e)},r.prototype.coordToPoint=function(n,e){var s=this._indicatorAxes[e],t=s.angle,a=this.cx+n*Math.cos(t),l=this.cy-n*Math.sin(t);return[a,l]},r.prototype.pointToData=function(n){var e=n[0]-this.cx,s=n[1]-this.cy,t=Math.sqrt(e*e+s*s);e/=t,s/=t;for(var a=Math.atan2(-s,e),l=Infinity,u,f=-1,p=0;p<this._indicatorAxes.length;p++){var g=this._indicatorAxes[p],A=Math.abs(a-g.angle);A<l&&(u=g,f=p,l=A)}return[f,+(u&&u.coordToData(t))]},r.prototype.resize=function(n,e){var s=n.get("center"),t=e.getWidth(),a=e.getHeight(),l=Math.min(t,a)/2;this.cx=v.parsePercent(s[0],t),this.cy=v.parsePercent(s[1],a),this.startAngle=n.get("startAngle")*Math.PI/180;var u=n.get("radius");(typeof u=="string"||typeof u=="number")&&(u=[0,u]),this.r0=v.parsePercent(u[0],l),this.r=v.parsePercent(u[1],l),O.each(this._indicatorAxes,function(f,p){f.setExtent(this.r0,this.r);var g=this.startAngle+p*Math.PI*2/this._indicatorAxes.length;g=Math.atan2(Math.sin(g),Math.cos(g)),f.angle=g},this)},r.prototype.update=function(n,e){var s=this._indicatorAxes,t=this._model;O.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"))!==t)return;var p=u.getData();O.each(s,function(g){g.scale.unionExtentFromData(p,p.mapDimension(g.dim))})},this);var a=t.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}O.each(s,function(u,f){var p=m(u.scale,u.model).extent;h(u.scale,u.model);var g=u.model,A=u.scale,y=g.getMin(),x=g.getMax(),T=A.getInterval();if(y!=null&&x!=null)A.setExtent(+y,+x),A.setInterval((x-y)/a);else if(y!=null){var S;do S=y+T*a,A.setExtent(+y,S),A.setInterval(T),T=l(T);while(S<p[1]&&isFinite(S)&&isFinite(p[1]))}else if(x!=null){var b;do b=x-T*a,A.setExtent(b,+x),A.setInterval(T),T=l(T);while(b>p[0]&&isFinite(b)&&isFinite(p[0]))}else{var _=A.getTicks().length-1;_>a&&(T=l(T));var S=Math.ceil(p[1]/T)*T,b=v.round(S-T*a);A.setExtent(b,S),A.setInterval(T)}})},r.dimensions=[],r.create=function(n,e){var s=[];return n.eachComponent("radar",function(t){var a=new r(t,n,e);s.push(a),t.coordinateSystem=a}),n.eachSeriesByType("radar",function(t){t.get("coordinateSystem")==="radar"&&(t.coordinateSystem=s[t.get("radarIndex")||0])}),s},c.register("radar",r);var o=r;j.exports=o},"I3/A":function(j,P,d){var O=d("bYtY"),E=d("YXkt"),C=d("c2i1"),v=d("Mdki"),w=d("sdST"),m=d("IDmD"),h=d("MwEJ");function c(i,r,o,n,e){for(var s=new C(n),t=0;t<i.length;t++)s.addNode(O.retrieve(i[t].id,i[t].name,t),t);for(var a=[],l=[],u=0,t=0;t<r.length;t++){var f=r[t],p=f.source,g=f.target;s.addEdge(p,g,u)&&(l.push(f),a.push(O.retrieve(f.id,p+" > "+g)),u++)}var A=o.get("coordinateSystem"),y;if(A==="cartesian2d"||A==="polar")y=h(i,o);else{var x=m.get(A),T=x&&x.type!=="view"?x.dimensions||[]:[];O.indexOf(T,"value")<0&&T.concat(["value"]);var S=w(i,{coordDimensions:T});y=new E(S,o),y.initData(i)}var b=new E(["value"],o);return b.initData(l,a),e&&e(y,b),v({mainData:y,struct:s,structAttr:"graph",datas:{node:y,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),s.update(),s}j.exports=c},I8Z2:function(j,P,d){"use strict";d.d(P,"a",function(){return v}),d.d(P,"b",function(){return e}),d.d(P,"c",function(){return t});var O=d("q1tI"),E=function(){var a=function(u,f){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var A in g)g.hasOwnProperty(A)&&(p[A]=g[A])},a(u,f)};return function(l,u){a(l,u);function f(){this.constructor=l}l.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}(),C=O.createContext(null),v=function(a){E(l,a);function l(){return a!==null&&a.apply(this,arguments)||this}return l.prototype.render=function(){return O.createElement(C.Provider,{value:this.props.store},this.props.children)},l}(O.Component),w=d("Gytx"),m=d.n(w),h=d("2mql"),c=d.n(h),i=function(){var a=function(u,f){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var A in g)g.hasOwnProperty(A)&&(p[A]=g[A])},a(u,f)};return function(l,u){a(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(a){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)&&(a[p]=l[p])}return a},r.apply(this,arguments)};function o(a){return a.displayName||a.name||"Component"}var n=function(){return{}};function e(a,l){l===void 0&&(l={});var u=!!a,f=a||n;return function(g){var A=function(x){i(T,x);function T(S,b){var _=x.call(this,S,b)||this;return _.unsubscribe=null,_.handleChange=function(){if(!_.unsubscribe)return;var I=f(_.store.getState(),_.props);_.setState({subscribed:I})},_.store=_.context,_.state={subscribed:f(_.store.getState(),S),store:_.store,props:S},_}return T.getDerivedStateFromProps=function(S,b){return a&&a.length===2&&S!==b.props?{subscribed:f(b.store.getState(),S),props:S}:{props:S}},T.prototype.componentDidMount=function(){this.trySubscribe()},T.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},T.prototype.shouldComponentUpdate=function(S,b){return!m()(this.props,S)||!m()(this.state.subscribed,b.subscribed)},T.prototype.trySubscribe=function(){u&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},T.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},T.prototype.render=function(){var S=r(r(r({},this.props),this.state.subscribed),{store:this.store});return O.createElement(g,r({},S,{ref:this.props.miniStoreForwardedRef}))},T.displayName="Connect("+o(g)+")",T.contextType=C,T}(O.Component);if(l.forwardRef){var y=O.forwardRef(function(x,T){return O.createElement(A,r({},x,{miniStoreForwardedRef:T}))});return c()(y,g)}return c()(A,g)}}var s=function(){return s=Object.assign||function(a){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)&&(a[p]=l[p])}return a},s.apply(this,arguments)};function t(a){var l=a,u=[];function f(A){l=s(s({},l),A);for(var y=0;y<u.length;y++)u[y]()}function p(){return l}function g(A){return u.push(A),function(){var x=u.indexOf(A);u.splice(x,1)}}return{setState:f,getState:p,subscribe:g}}},"I9Y+":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("4xFK")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="DoubleRightOutlined";var c=v.forwardRef(h);P.default=c},ICMv:function(j,P,d){var O=d("bYtY"),E={getMin:function(C){var v=this.option,w=!C&&v.rangeStart!=null?v.rangeStart:v.min;return this.axis&&w!=null&&w!=="dataMin"&&typeof w!="function"&&!O.eqNaN(w)&&(w=this.axis.scale.parse(w)),w},getMax:function(C){var v=this.option,w=!C&&v.rangeEnd!=null?v.rangeEnd:v.max;return this.axis&&w!=null&&w!=="dataMax"&&typeof w!="function"&&!O.eqNaN(w)&&(w=this.axis.scale.parse(w)),w},getNeedCrossZero:function(){var C=this.option;return C.rangeStart!=null||C.rangeEnd!=null?!1:!C.scale},getCoordSysModel:O.noop,setRange:function(C,v){this.option.rangeStart=C,this.option.rangeEnd=v},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};j.exports=E},IDmD:function(j,P,d){var O=d("bYtY"),E={};function C(){this._coordinateSystems=[]}C.prototype={constructor:C,create:function(w,m){var h=[];O.each(E,function(c,i){var r=c.create(w,m);h=h.concat(r||[])}),this._coordinateSystems=h},update:function(w,m){O.each(this._coordinateSystems,function(h){h.update&&h.update(w,m)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},C.register=function(w,m){E[w]=m},C.get=function(w){return E[w]};var v=C;j.exports=v},IMiH:function(j,P,d){var O=d("Sj9i"),E=d("QBsz"),C=d("4mN7"),v=d("mFDi"),w=d("LPTA"),m=w.devicePixelRatio,h={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],i=[],r=[],o=[],n=Math.min,e=Math.max,s=Math.cos,t=Math.sin,a=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,T,S,b){return this.addData(h.C,A,y,x,T,S,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(A,y,x,T,S,b):this._ctx.bezierCurveTo(A,y,x,T,S,b)),this._xi=S,this._yi=b,this},quadraticCurveTo:function(A,y,x,T){return this.addData(h.Q,A,y,x,T),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(A,y,x,T):this._ctx.quadraticCurveTo(A,y,x,T)),this._xi=x,this._yi=T,this},arc:function(A,y,x,T,S,b){return this.addData(h.A,A,y,x,x,T,S-T,0,b?0:1),this._ctx&&this._ctx.arc(A,y,x,T,S,b),this._xi=s(S)*x+A,this._yi=t(S)*x+y,this},arcTo:function(A,y,x,T,S){return this._ctx&&this._ctx.arcTo(A,y,x,T,S),this},rect:function(A,y,x,T){return this._ctx&&this._ctx.rect(A,y,x,T),this.addData(h.R,A,y,x,T),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,T=this._len,S=0;S<y;S++)x+=A[S].len();u&&this.data instanceof Float32Array&&(this.data=new Float32Array(T+x));for(var S=0;S<y;S++)for(var b=A[S].data,_=0;_<b.length;_++)this.data[T++]=b[_];this._len=T},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,T=this._dashOffset,S=this._lineDash,b=this._ctx,_=this._xi,I=this._yi,L=A-_,D=y-I,N=a(L*L+D*D),M=_,B=I,R,H=S.length,F;for(L/=N,D/=N,T<0&&(T=x+T),T%=x,M-=T*L,B-=T*D;L>0&&M<=A||L<0&&M>=A||L===0&&(D>0&&B<=y||D<0&&B>=y);){if(F=this._dashIdx,R=S[F],M+=L*R,B+=D*R,this._dashIdx=(F+1)%H,L>0&&M<_||L<0&&M>_||D>0&&B<I||D<0&&B>I)continue;b[F%2?"moveTo":"lineTo"](L>=0?n(M,A):e(M,A),D>=0?n(B,y):e(B,y))}L=M-A,D=B-y,this._dashOffset=-a(L*L+D*D)},_dashedBezierTo:function(A,y,x,T,S,b){var _=this._dashSum,I=this._dashOffset,L=this._lineDash,D=this._ctx,N=this._xi,M=this._yi,B,R,H,F=O.cubicAt,K=0,U=this._dashIdx,V=L.length,z,Y,q=0;for(I<0&&(I=_+I),I%=_,B=0;B<1;B+=.1)R=F(N,A,x,S,B+.1)-F(N,A,x,S,B),H=F(M,y,T,b,B+.1)-F(M,y,T,b,B),K+=a(R*R+H*H);for(;U<V&&!(q+=L[U],q>I);U++);for(B=(q-I)/K;B<=1;)z=F(N,A,x,S,B),Y=F(M,y,T,b,B),U%2?D.moveTo(z,Y):D.lineTo(z,Y),B+=L[U]/K,U=(U+1)%V;U%2!==0&&D.lineTo(S,b),R=S-z,H=b-Y,this._dashOffset=-a(R*R+H*H)},_dashedQuadraticTo:function(A,y,x,T){var S=x,b=T;x=(x+2*A)/3,T=(T+2*y)/3,A=(this._xi+2*A)/3,y=(this._yi+2*y)/3,this._dashedBezierTo(A,y,x,T,S,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,i[0]=i[1]=o[0]=o[1]=-Number.MAX_VALUE;for(var A=this.data,y=0,x=0,T=0,S=0,b=0;b<A.length;){var _=A[b++];b===1&&(y=A[b],x=A[b+1],T=y,S=x);switch(_){case h.M:T=A[b++],S=A[b++],y=T,x=S,r[0]=T,r[1]=S,o[0]=T,o[1]=S;break;case h.L:C.fromLine(y,x,A[b],A[b+1],r,o),y=A[b++],x=A[b++];break;case h.C:C.fromCubic(y,x,A[b++],A[b++],A[b++],A[b++],A[b],A[b+1],r,o),y=A[b++],x=A[b++];break;case h.Q:C.fromQuadratic(y,x,A[b++],A[b++],A[b],A[b+1],r,o),y=A[b++],x=A[b++];break;case h.A:var I=A[b++],L=A[b++],D=A[b++],N=A[b++],M=A[b++],B=A[b++]+M;b+=1;var R=1-A[b++];b===1&&(T=s(M)*D+I,S=t(M)*N+L),C.fromArc(I,L,D,N,M,B,R,r,o),y=s(B)*D+I,x=t(B)*N+L;break;case h.R:T=y=A[b++],S=x=A[b++];var H=A[b++],F=A[b++];C.fromLine(T,S,T+H,S+F,r,o);break;case h.Z:y=T,x=S;break}E.min(c,c,r),E.max(i,i,o)}return b===0&&(c[0]=c[1]=i[0]=i[1]=0),new v(c[0],c[1],i[0]-c[0],i[1]-c[1])},rebuildPath:function(A){for(var y=this.data,x,T,S,b,_,I,L=this._ux,D=this._uy,N=this._len,M=0;M<N;){var B=y[M++];M===1&&(S=y[M],b=y[M+1],x=S,T=b);switch(B){case h.M:x=S=y[M++],T=b=y[M++],A.moveTo(S,b);break;case h.L:_=y[M++],I=y[M++],(l(_-S)>L||l(I-b)>D||M===N-1)&&(A.lineTo(_,I),S=_,b=I);break;case h.C:A.bezierCurveTo(y[M++],y[M++],y[M++],y[M++],y[M++],y[M++]),S=y[M-2],b=y[M-1];break;case h.Q:A.quadraticCurveTo(y[M++],y[M++],y[M++],y[M++]),S=y[M-2],b=y[M-1];break;case h.A:var R=y[M++],H=y[M++],F=y[M++],K=y[M++],U=y[M++],V=y[M++],z=y[M++],Y=y[M++],q=F>K?F:K,ce=F>K?1:F/K,ie=F>K?K/F:1,ve=Math.abs(F-K)>.001,Ee=U+V;ve?(A.translate(R,H),A.rotate(z),A.scale(ce,ie),A.arc(0,0,q,U,Ee,1-Y),A.scale(1/ce,1/ie),A.rotate(-z),A.translate(-R,-H)):A.arc(R,H,q,U,Ee,1-Y),M===1&&(x=s(U)*F+R,T=t(U)*K+H),S=s(Ee)*F+R,b=t(Ee)*K+H;break;case h.R:x=S=y[M],T=b=y[M+1],A.rect(y[M++],y[M++],y[M++],y[M++]);break;case h.Z:A.closePath(),S=x,b=T}}}},f.CMD=h;var p=f;j.exports=p},IUWy:function(j,P){var d={};function O(C,v){d[C]=v}function E(C){return d[C]}P.register=O,P.get=E},IWNH:function(j,P,d){var O=d("T4UG"),E=d("Bsck"),C=d("7aKB"),v=C.encodeHTML,w=d("Qxkt"),m=O.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(h){var c={name:h.name,children:h.data},i=h.leaves||{},r=new w(i,this,this.ecModel),o=E.createTree(c,this,{},n);function n(a){a.wrapMethod("getItemModel",function(l,u){var f=o.getNodeByDataIndex(u);return(!f.children.length||!f.isExpand)&&(l.parentModel=r),l})}var e=0;o.eachNode("preorder",function(a){a.depth>e&&(e=a.depth)});var s=h.expandAndCollapse,t=s&&h.initialTreeDepth>=0?h.initialTreeDepth:e;return o.root.eachNode("preorder",function(a){var l=a.hostTree.data.getRawDataItem(a.dataIndex);a.isExpand=l&&l.collapsed!=null?!l.collapsed:a.depth<=t}),o.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,i=c.root.children[0],r=c.getNodeByDataIndex(h),o=r.getValue(),n=r.name;r&&r!==i;)n=r.parentNode.name+"."+n,r=r.parentNode;return v(n+(isNaN(o)||o==null?"":" : "+o))},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}});j.exports=m},IWp7:function(j,P,d){var O=d("bYtY"),E=d("OELB"),C=d("7aKB"),v=d("lE7J"),w=d("ieMj"),m=w.prototype,h=Math.ceil,c=Math.floor,i=1e3,r=i*60,o=r*60,n=o*24,e=function(l,u,f,p){for(;f<p;){var g=f+p>>>1;l[g][1]<u?f=g+1:p=g}return f},s=w.extend({type:"time",getLabel:function(l){var u=this._stepLvl,f=new Date(l);return C.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,g=p[1]-p[0],A=g/l;u!=null&&A<u&&(A=u),f!=null&&A>f&&(A=f);var y=t.length,x=e(t,A,0,y),T=t[Math.min(x,y-1)],S=T[1];if(T[0]==="year"){var b=g/S,_=E.nice(b/l,!0);S*=_}var I=this.getSetting("useUTC")?0:new Date(+p[0]||+p[1]).getTimezoneOffset()*60*1e3,L=[Math.round(h((p[0]-I)/S)*S+I),Math.round(c((p[1]-I)/S)*S+I)];v.fixExtent(L,p),this._stepLvl=T,this._interval=S,this._niceExtent=L},parse:function(l){return+E.parseDate(l)}});O.each(["contain","normalize"],function(l){s.prototype[l]=function(u){return m[l].call(this,this.parse(u))}});var t=[["hh:mm:ss",i],["hh:mm:ss",i*5],["hh:mm:ss",i*10],["hh:mm:ss",i*15],["hh:mm:ss",i*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`,o],[`hh:mm
MM-dd`,o*2],[`hh:mm
MM-dd`,o*6],[`hh:mm
MM-dd`,o*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 a=s;j.exports=a},IXuL:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("MwEJ"),v=d("T4UG"),w=v.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(m,h){return C(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}});j.exports=w},IXyC:function(j,P,d){var O=d("bYtY"),E=d("bLfw");d("3zoK");var C=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(v){var w=this.option;v&&O.merge(w,v,!0),this._initDimensions()},contains:function(v,w){var m=v.get("parallelIndex");return m!=null&&w.getComponent("parallel",m)===this},setAxisExpand:function(v){O.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(w){v.hasOwnProperty(w)&&(this.option[w]=v[w])},this)},_initDimensions:function(){var v=this.dimensions=[],w=this.parallelAxisIndex=[],m=O.filter(this.dependentModels.parallelAxis,function(h){return(h.get("parallelIndex")||0)===this.componentIndex},this);O.each(m,function(h){v.push("dim"+h.get("dim")),w.push(h.componentIndex)})}});j.exports=C},Ib8C:function(j,P,d){(function(O){(function(E,C){j.exports=P=C()})(this,function(){var E=E||function(C,v){var w;if(typeof window!="undefined"&&window.crypto&&(w=window.crypto),typeof self!="undefined"&&self.crypto&&(w=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(w=globalThis.crypto),!w&&typeof window!="undefined"&&window.msCrypto&&(w=window.msCrypto),!w&&typeof O!="undefined"&&O.crypto&&(w=O.crypto),!w&&!0)try{w=d(4)}catch(f){}var m=function(){if(w){if(typeof w.getRandomValues=="function")try{return w.getRandomValues(new Uint32Array(1))[0]}catch(p){}if(typeof w.randomBytes=="function")try{return w.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 g;return f.prototype=p,g=new f,f.prototype=null,g}}(),c={},i=c.lib={},r=i.Base=function(){return{extend:function(p){var g=h(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=r.extend({init:function(p,g){p=this.words=p||[],g!=v?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||e).stringify(this)},concat:function(p){var g=this.words,A=p.words,y=this.sigBytes,x=p.sigBytes;if(this.clamp(),y%4)for(var T=0;T<x;T++){var S=A[T>>>2]>>>24-T%4*8&255;g[y+T>>>2]|=S<<24-(y+T)%4*8}else for(var b=0;b<x;b+=4)g[y+b>>>2]=A[b>>>2];return this.sigBytes+=x,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=C.ceil(g/4)},clone:function(){var p=r.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],A=0;A<p;A+=4)g.push(m());return new o.init(g,p)}}),n=c.enc={},e=n.Hex={stringify:function(p){for(var g=p.words,A=p.sigBytes,y=[],x=0;x<A;x++){var T=g[x>>>2]>>>24-x%4*8&255;y.push((T>>>4).toString(16)),y.push((T&15).toString(16))}return y.join("")},parse:function(p){for(var g=p.length,A=[],y=0;y<g;y+=2)A[y>>>3]|=parseInt(p.substr(y,2),16)<<24-y%8*4;return new o.init(A,g/2)}},s=n.Latin1={stringify:function(p){for(var g=p.words,A=p.sigBytes,y=[],x=0;x<A;x++){var T=g[x>>>2]>>>24-x%4*8&255;y.push(String.fromCharCode(T))}return y.join("")},parse:function(p){for(var g=p.length,A=[],y=0;y<g;y++)A[y>>>2]|=(p.charCodeAt(y)&255)<<24-y%4*8;return new o.init(A,g)}},t=n.Utf8={stringify:function(p){try{return decodeURIComponent(escape(s.stringify(p)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(p){return s.parse(unescape(encodeURIComponent(p)))}},a=i.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=t.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,A=this._data,y=A.words,x=A.sigBytes,T=this.blockSize,S=T*4,b=x/S;p?b=C.ceil(b):b=C.max((b|0)-this._minBufferSize,0);var _=b*T,I=C.min(_*4,x);if(_){for(var L=0;L<_;L+=T)this._doProcessBlock(y,L);g=y.splice(0,_),A.sigBytes-=I}return new o.init(g,I)},clone:function(){var p=r.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),l=i.Hasher=a.extend({cfg:r.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){a.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:512/32,_createHelper:function(p){return function(g,A){return new p.init(A).finalize(g)}},_createHmacHelper:function(p){return function(g,A){return new u.HMAC.init(p,A).finalize(g)}}}),u=c.algo={};return c}(Math);return E})}).call(this,d("IyRk"))},ItGF:function(j,P){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 O=d;function E(C){var v={},w={},m=C.match(/Firefox\/([\d.]+)/),h=C.match(/MSIE\s([\d.]+)/)||C.match(/Trident\/.+?rv:(([\d.]+))/),c=C.match(/Edge\/([\d.]+)/),i=/micromessenger/i.test(C);return m&&(w.firefox=!0,w.version=m[1]),h&&(w.ie=!0,w.version=h[1]),c&&(w.edge=!0,w.version=c[1]),i&&(w.weChat=!0),{browser:w,os:v,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!w.ie&&!w.edge,pointerEventsSupported:"onpointerdown"in window&&(w.edge||w.ie&&w.version>=11),domSupported:typeof document!="undefined"}}j.exports=O},ItS6:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("eP3c"),E=C(d("1q3G"));function C(c){return c&&c.__esModule?c:{default:c}}function v(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")}function w(c,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(c,o.key,o)}}function m(c,i,r){return i&&w(c.prototype,i),r&&w(c,r),c}var h=function(){function c(){v(this,c),this.strm=new E.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.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 o=(0,O.inflate)(this.strm,0);if(o<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,O.inflateReset)(this.strm)}}]),c}();P.default=h},Itpr:function(j,P,d){var O=d("+TT/");function E(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a=[t],l,u;l=a.pop();)if(u=l.children,l.isExpand&&u.length)for(var f=u.length,p=f-1;p>=0;p--){var g=u[p];g.hierNode={defaultAncestor:null,ancestor:g,prelim:0,modifier:0,change:0,shift:0,i:p,thread:null},a.push(g)}}function C(t,a){var l=t.isExpand?t.children:[],u=t.parentNode.children,f=t.hierNode.i?u[t.hierNode.i-1]:null;if(l.length){c(t);var p=(l[0].hierNode.prelim+l[l.length-1].hierNode.prelim)/2;f?(t.hierNode.prelim=f.hierNode.prelim+a(t,f),t.hierNode.modifier=t.hierNode.prelim-p):t.hierNode.prelim=p}else f&&(t.hierNode.prelim=f.hierNode.prelim+a(t,f));t.parentNode.hierNode.defaultAncestor=i(t,f,t.parentNode.hierNode.defaultAncestor||u[0],a)}function v(t){var a=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:a},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function w(t){return arguments.length?t:s}function m(t,a){var l={};return t-=Math.PI/2,l.x=a*Math.cos(t),l.y=a*Math.sin(t),l}function h(t,a){return O.getLayoutRect(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function c(t){for(var a=t.children,l=a.length,u=0,f=0;--l>=0;){var p=a[l];p.hierNode.prelim+=u,p.hierNode.modifier+=u,f+=p.hierNode.change,u+=p.hierNode.shift+f}}function i(t,a,l,u){if(a){for(var f=t,p=t,g=p.parentNode.children[0],A=a,y=f.hierNode.modifier,x=p.hierNode.modifier,T=g.hierNode.modifier,S=A.hierNode.modifier;A=r(A),p=o(p),A&&p;){f=r(f),g=o(g),f.hierNode.ancestor=t;var b=A.hierNode.prelim+S-p.hierNode.prelim-x+u(A,p);b>0&&(e(n(A,t,l),t,b),x+=b,y+=b),S+=A.hierNode.modifier,x+=p.hierNode.modifier,y+=f.hierNode.modifier,T+=g.hierNode.modifier}A&&!r(f)&&(f.hierNode.thread=A,f.hierNode.modifier+=S-y),p&&!o(g)&&(g.hierNode.thread=p,g.hierNode.modifier+=x-T,l=t)}return l}function r(t){var a=t.children;return a.length&&t.isExpand?a[a.length-1]:t.hierNode.thread}function o(t){var a=t.children;return a.length&&t.isExpand?a[0]:t.hierNode.thread}function n(t,a,l){return t.hierNode.ancestor.parentNode===a.parentNode?t.hierNode.ancestor:l}function e(t,a,l){var u=l/(a.hierNode.i-t.hierNode.i);a.hierNode.change-=u,a.hierNode.shift+=l,a.hierNode.modifier+=l,a.hierNode.prelim+=l,t.hierNode.change+=u}function s(t,a){return t.parentNode===a.parentNode?1:2}P.init=E,P.firstWalk=C,P.secondWalk=v,P.separation=w,P.radialCoordinate=m,P.getViewRect=h},IwbS:function(j,P,d){var O=d("bYtY"),E=d("NC18"),C=d("Qe9p"),v=d("Fofx"),w=d("QBsz"),m=d("y+Vt"),h=d("DN4a"),c=d("Dagg");P.Image=c;var i=d("4fz+");P.Group=i;var r=d("dqUG");P.Text=r;var o=d("2fw6");P.Circle=o;var n=d("SqI9");P.Sector=n;var e=d("RXMa");P.Ring=e;var s=d("h7HQ");P.Polygon=s;var t=d("1Jh7");P.Polyline=t;var a=d("x6Kt");P.Rect=a;var l=d("yxFR");P.Line=l;var u=d("rA99");P.BezierCurve=u;var f=d("jTL6");P.Arc=f;var p=d("1MYJ");P.CompoundPath=p;var g=d("SKnc");P.LinearGradient=g;var A=d("3e3G");P.RadialGradient=A;var y=d("mFDi");P.BoundingRect=y;var x=d("OS9S");P.IncrementalDisplayable=x;var T=d("nPnh"),S=Math.max,b=Math.min,_={},I=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},D="emphasis",N="normal",M=1,B={},R={};function H(Vt){return m.extend(Vt)}function F(Vt,mt){return E.extendFromString(Vt,mt)}function K(Vt,mt){R[Vt]=mt}function U(Vt){if(R.hasOwnProperty(Vt))return R[Vt]}function V(Vt,mt,Yr,Tn){var Hn=E.createFromString(Vt,mt);return Yr&&(Tn==="center"&&(Yr=Y(Yr,Hn.getBoundingRect())),ce(Hn,Yr)),Hn}function z(Vt,mt,Yr){var Tn=new c({style:{image:Vt,x:mt.x,y:mt.y,width:mt.width,height:mt.height},onload:function(Hn){if(Yr==="center"){var ei={width:Hn.width,height:Hn.height};Tn.setStyle(Y(mt,ei))}}});return Tn}function Y(Vt,mt){var Yr=mt.width/mt.height,Tn=Vt.height*Yr,Hn;Tn<=Vt.width?Hn=Vt.height:(Tn=Vt.width,Hn=Tn/Yr);var ei=Vt.x+Vt.width/2,ji=Vt.y+Vt.height/2;return{x:ei-Tn/2,y:ji-Hn/2,width:Tn,height:Hn}}var q=E.mergePath;function ce(Vt,mt){if(!Vt.applyTransform)return;var Yr=Vt.getBoundingRect(),Tn=Yr.calculateTransform(mt);Vt.applyTransform(Tn)}function ie(Vt){return T.subPixelOptimizeLine(Vt.shape,Vt.shape,Vt.style),Vt}function ve(Vt){return T.subPixelOptimizeRect(Vt.shape,Vt.shape,Vt.style),Vt}var Ee=T.subPixelOptimize;function Le(Vt){return Vt!=null&&Vt!=="none"}var He=O.createHashMap(),ge=0;function Fe(Vt){if(typeof Vt!="string")return Vt;var mt=He.get(Vt);return mt||(mt=C.lift(Vt,-.1),ge<1e4&&(He.set(Vt,mt),ge++)),mt}function Q(Vt){if(!Vt.__hoverStlDirty)return;Vt.__hoverStlDirty=!1;var mt=Vt.__hoverStl;if(!mt){Vt.__cachedNormalStl=Vt.__cachedNormalZ2=null;return}var Yr=Vt.__cachedNormalStl={};Vt.__cachedNormalZ2=Vt.z2;var Tn=Vt.style;for(var Hn in mt)mt[Hn]!=null&&(Yr[Hn]=Tn[Hn]);Yr.fill=Tn.fill,Yr.stroke=Tn.stroke}function fe(Vt){var mt=Vt.__hoverStl;if(!mt||Vt.__highlighted)return;var Yr=Vt.__zr,Tn=Vt.useHoverLayer&&Yr&&Yr.painter.type==="canvas";if(Vt.__highlighted=Tn?"layer":"plain",Vt.isGroup||!Yr&&Vt.useHoverLayer)return;var Hn=Vt,ei=Vt.style;Tn&&(Hn=Yr.addHover(Vt),ei=Hn.style),Rt(ei),Tn||Q(Hn),ei.extendFrom(mt),Je(ei,mt,"fill"),Je(ei,mt,"stroke"),Tt(ei),Tn||(Vt.dirty(!1),Vt.z2+=I)}function Je(Vt,mt,Yr){!Le(mt[Yr])&&Le(Vt[Yr])&&(Vt[Yr]=Fe(Vt[Yr]))}function ne(Vt){var mt=Vt.__highlighted;if(!mt)return;if(Vt.__highlighted=!1,Vt.isGroup)return;if(mt==="layer")Vt.__zr&&Vt.__zr.removeHover(Vt);else{var Yr=Vt.style,Tn=Vt.__cachedNormalStl;Tn&&(Rt(Yr),Vt.setStyle(Tn),Tt(Yr));var Hn=Vt.__cachedNormalZ2;Hn!=null&&Vt.z2-Hn===I&&(Vt.z2=Hn)}}function X(Vt,mt,Yr){var Tn=N,Hn=N,ei;Vt.__highlighted&&(Tn=D,ei=!0),mt(Vt,Yr),Vt.__highlighted&&(Hn=D,ei=!0),Vt.isGroup&&Vt.traverse(function(ji){!ji.isGroup&&mt(ji,Yr)}),ei&&Vt.__highDownOnUpdate&&Vt.__highDownOnUpdate(Tn,Hn)}function G(Vt,mt){mt=Vt.__hoverStl=mt!==!1&&(Vt.hoverStyle||mt||{}),Vt.__hoverStlDirty=!0,Vt.__highlighted&&(Vt.__cachedNormalStl=null,ne(Vt),fe(Vt))}function te(Vt){!Oe(this,Vt)&&!this.__highByOuter&&X(this,fe)}function we(Vt){!Oe(this,Vt)&&!this.__highByOuter&&X(this,ne)}function he(Vt){this.__highByOuter|=1<<(Vt||0),X(this,fe)}function Pe(Vt){!(this.__highByOuter&=~(1<<(Vt||0)))&&X(this,ne)}function Oe(Vt,mt){return Vt.__highDownSilentOnTouch&&mt.zrByTouch}function le(Vt,mt){me(Vt,!0),X(Vt,G,mt)}function me(Vt,mt){var Yr=mt===!1;if(Vt.__highDownSilentOnTouch=Vt.highDownSilentOnTouch,Vt.__highDownOnUpdate=Vt.highDownOnUpdate,!Yr||Vt.__highDownDispatcher){var Tn=Yr?"off":"on";Vt[Tn]("mouseover",te)[Tn]("mouseout",we),Vt[Tn]("emphasis",he)[Tn]("normal",Pe),Vt.__highByOuter=Vt.__highByOuter||0,Vt.__highDownDispatcher=!Yr}}function _e(Vt){return!!(Vt&&Vt.__highDownDispatcher)}function $e(Vt){var mt=B[Vt];return mt==null&&M<=32&&(mt=B[Vt]=M++),mt}function gt(Vt,mt,Yr,Tn,Hn,ei,ji){Hn=Hn||_;var Ln=Hn.labelFetcher,Vn=Hn.labelDataIndex,kt=Hn.labelDimIndex,wt=Hn.labelProp,Te=Yr.getShallow("show"),xe=Tn.getShallow("show"),Ce;(Te||xe)&&(Ln&&(Ce=Ln.getFormattedLabel(Vn,"normal",null,kt,wt)),Ce==null&&(Ce=O.isFunction(Hn.defaultText)?Hn.defaultText(Vn,Hn):Hn.defaultText));var Ye=Te?Ce:null,it=xe?O.retrieve2(Ln?Ln.getFormattedLabel(Vn,"emphasis",null,kt,wt):null,Ce):null;(Ye!=null||it!=null)&&(Ie(Vt,Yr,ei,Hn),Ie(mt,Tn,ji,Hn,!0)),Vt.text=Ye,mt.text=it}function et(Vt,mt,Yr){var Tn=Vt.style;mt&&(Rt(Tn),Vt.setStyle(mt),Tt(Tn)),Tn=Vt.__hoverStl,Yr&&Tn&&(Rt(Tn),O.extend(Tn,Yr),Tt(Tn))}function Ie(Vt,mt,Yr,Tn,Hn){return Ge(Vt,mt,Tn,Hn),Yr&&O.extend(Vt,Yr),Vt}function rt(Vt,mt,Yr){var Tn={isRectText:!0},Hn;Yr===!1?Hn=!0:Tn.autoColor=Yr,Ge(Vt,mt,Tn,Hn)}function Ge(Vt,mt,Yr,Tn){if(Yr=Yr||_,Yr.isRectText){var Hn;Yr.getTextPosition?Hn=Yr.getTextPosition(mt,Tn):(Hn=mt.getShallow("position")||(Tn?null:"inside"),Hn==="outside"&&(Hn="top")),Vt.textPosition=Hn,Vt.textOffset=mt.getShallow("offset");var ei=mt.getShallow("rotate");ei!=null&&(ei*=Math.PI/180),Vt.textRotation=ei,Vt.textDistance=O.retrieve2(mt.getShallow("distance"),Tn?null:5)}var ji=mt.ecModel,Ln=ji&&ji.option.textStyle,Vn=vt(mt),kt;if(Vn){kt={};for(var wt in Vn)if(Vn.hasOwnProperty(wt)){var Te=mt.getModel(["rich",wt]);Ot(kt[wt]={},Te,Ln,Yr,Tn)}}return Vt.rich=kt,Ot(Vt,mt,Ln,Yr,Tn,!0),Yr.forceRich&&!Yr.textStyle&&(Yr.textStyle={}),Vt}function vt(Vt){for(var mt;Vt&&Vt!==Vt.ecModel;){var Yr=(Vt.option||_).rich;if(Yr){mt=mt||{};for(var Tn in Yr)Yr.hasOwnProperty(Tn)&&(mt[Tn]=1)}Vt=Vt.parentModel}return mt}function Ot(Vt,mt,Yr,Tn,Hn,ei){Yr=!Hn&&Yr||_,Vt.textFill=Et(mt.getShallow("color"),Tn)||Yr.color,Vt.textStroke=Et(mt.getShallow("textBorderColor"),Tn)||Yr.textBorderColor,Vt.textStrokeWidth=O.retrieve2(mt.getShallow("textBorderWidth"),Yr.textBorderWidth),Hn||(ei&&(Vt.insideRollbackOpt=Tn,Tt(Vt)),Vt.textFill==null&&(Vt.textFill=Tn.autoColor)),Vt.fontStyle=mt.getShallow("fontStyle")||Yr.fontStyle,Vt.fontWeight=mt.getShallow("fontWeight")||Yr.fontWeight,Vt.fontSize=mt.getShallow("fontSize")||Yr.fontSize,Vt.fontFamily=mt.getShallow("fontFamily")||Yr.fontFamily,Vt.textAlign=mt.getShallow("align"),Vt.textVerticalAlign=mt.getShallow("verticalAlign")||mt.getShallow("baseline"),Vt.textLineHeight=mt.getShallow("lineHeight"),Vt.textWidth=mt.getShallow("width"),Vt.textHeight=mt.getShallow("height"),Vt.textTag=mt.getShallow("tag"),(!ei||!Tn.disableBox)&&(Vt.textBackgroundColor=Et(mt.getShallow("backgroundColor"),Tn),Vt.textPadding=mt.getShallow("padding"),Vt.textBorderColor=Et(mt.getShallow("borderColor"),Tn),Vt.textBorderWidth=mt.getShallow("borderWidth"),Vt.textBorderRadius=mt.getShallow("borderRadius"),Vt.textBoxShadowColor=mt.getShallow("shadowColor"),Vt.textBoxShadowBlur=mt.getShallow("shadowBlur"),Vt.textBoxShadowOffsetX=mt.getShallow("shadowOffsetX"),Vt.textBoxShadowOffsetY=mt.getShallow("shadowOffsetY")),Vt.textShadowColor=mt.getShallow("textShadowColor")||Yr.textShadowColor,Vt.textShadowBlur=mt.getShallow("textShadowBlur")||Yr.textShadowBlur,Vt.textShadowOffsetX=mt.getShallow("textShadowOffsetX")||Yr.textShadowOffsetX,Vt.textShadowOffsetY=mt.getShallow("textShadowOffsetY")||Yr.textShadowOffsetY}function Et(Vt,mt){return Vt!=="auto"?Vt:mt&&mt.autoColor?mt.autoColor:null}function Tt(Vt){var mt=Vt.textPosition,Yr=Vt.insideRollbackOpt,Tn;if(Yr&&Vt.textFill==null){var Hn=Yr.autoColor,ei=Yr.isRectText,ji=Yr.useInsideStyle,Ln=ji!==!1&&(ji===!0||ei&&mt&&typeof mt=="string"&&mt.indexOf("inside")>=0),Vn=!Ln&&Hn!=null;(Ln||Vn)&&(Tn={textFill:Vt.textFill,textStroke:Vt.textStroke,textStrokeWidth:Vt.textStrokeWidth}),Ln&&(Vt.textFill="#fff",Vt.textStroke==null&&(Vt.textStroke=Hn,Vt.textStrokeWidth==null&&(Vt.textStrokeWidth=2))),Vn&&(Vt.textFill=Hn)}Vt.insideRollback=Tn}function Rt(Vt){var mt=Vt.insideRollback;mt&&(Vt.textFill=mt.textFill,Vt.textStroke=mt.textStroke,Vt.textStrokeWidth=mt.textStrokeWidth,Vt.insideRollback=null)}function Be(Vt,mt){var Yr=mt&&mt.getModel("textStyle");return O.trim([Vt.fontStyle||Yr&&Yr.getShallow("fontStyle")||"",Vt.fontWeight||Yr&&Yr.getShallow("fontWeight")||"",(Vt.fontSize||Yr&&Yr.getShallow("fontSize")||12)+"px",Vt.fontFamily||Yr&&Yr.getShallow("fontFamily")||"sans-serif"].join(" "))}function Z(Vt,mt,Yr,Tn,Hn,ei){typeof Hn=="function"&&(ei=Hn,Hn=null);var ji=Tn&&Tn.isAnimationEnabled();if(ji){var Ln=Vt?"Update":"",Vn=Tn.getShallow("animationDuration"+Ln),kt=Tn.getShallow("animationEasing"+Ln),wt=Tn.getShallow("animationDelay"+Ln);typeof wt=="function"&&(wt=wt(Hn,Tn.getAnimationDelayParams?Tn.getAnimationDelayParams(mt,Hn):null)),typeof Vn=="function"&&(Vn=Vn(Hn)),Vn>0?mt.animateTo(Yr,Vn,wt||0,kt,ei,!!ei):(mt.stopAnimation(),mt.attr(Yr),ei&&ei())}else mt.stopAnimation(),mt.attr(Yr),ei&&ei()}function J(Vt,mt,Yr,Tn,Hn){Z(!0,Vt,mt,Yr,Tn,Hn)}function je(Vt,mt,Yr,Tn,Hn){Z(!1,Vt,mt,Yr,Tn,Hn)}function Re(Vt,mt){for(var Yr=v.identity([]);Vt&&Vt!==mt;)v.mul(Yr,Vt.getLocalTransform(),Yr),Vt=Vt.parent;return Yr}function oe(Vt,mt,Yr){return mt&&!O.isArrayLike(mt)&&(mt=h.getLocalTransform(mt)),Yr&&(mt=v.invert([],mt)),w.applyTransform([],Vt,mt)}function yt(Vt,mt,Yr){var Tn=mt[4]===0||mt[5]===0||mt[0]===0?1:Math.abs(2*mt[4]/mt[0]),Hn=mt[4]===0||mt[5]===0||mt[2]===0?1:Math.abs(2*mt[4]/mt[2]),ei=[Vt==="left"?-Tn:Vt==="right"?Tn:0,Vt==="top"?-Hn:Vt==="bottom"?Hn:0];return ei=oe(ei,mt,Yr),Math.abs(ei[0])>Math.abs(ei[1])?ei[0]>0?"right":"left":ei[1]>0?"bottom":"top"}function zt(Vt,mt,Yr,Tn){if(!Vt||!mt)return;function Hn(Ln){var Vn={};return Ln.traverse(function(kt){!kt.isGroup&&kt.anid&&(Vn[kt.anid]=kt)}),Vn}function ei(Ln){var Vn={position:w.clone(Ln.position),rotation:Ln.rotation};return Ln.shape&&(Vn.shape=O.extend({},Ln.shape)),Vn}var ji=Hn(Vt);mt.traverse(function(Ln){if(!Ln.isGroup&&Ln.anid){var Vn=ji[Ln.anid];if(Vn){var kt=ei(Ln);Ln.attr(ei(Vn)),J(Ln,kt,Yr,Ln.dataIndex)}}})}function lt(Vt,mt){return O.map(Vt,function(Yr){var Tn=Yr[0];Tn=S(Tn,mt.x),Tn=b(Tn,mt.x+mt.width);var Hn=Yr[1];return Hn=S(Hn,mt.y),Hn=b(Hn,mt.y+mt.height),[Tn,Hn]})}function $t(Vt,mt){var Yr=S(Vt.x,mt.x),Tn=b(Vt.x+Vt.width,mt.x+mt.width),Hn=S(Vt.y,mt.y),ei=b(Vt.y+Vt.height,mt.y+mt.height);if(Tn>=Yr&&ei>=Hn)return{x:Yr,y:Hn,width:Tn-Yr,height:ei-Hn}}function cr(Vt,mt,Yr){mt=O.extend({rectHover:!0},mt);var Tn=mt.style={strokeNoScale:!0};if(Yr=Yr||{x:-1,y:-1,width:2,height:2},Vt)return Vt.indexOf("image://")===0?(Tn.image=Vt.slice(8),O.defaults(Tn,Yr),new c(mt)):V(Vt.replace("path://",""),mt,Yr,"center")}function cn(Vt,mt,Yr,Tn,Hn){for(var ei=0,ji=Hn[Hn.length-1];ei<Hn.length;ei++){var Ln=Hn[ei];if(pr(Vt,mt,Yr,Tn,Ln[0],Ln[1],ji[0],ji[1]))return!0;ji=Ln}}function pr(Vt,mt,Yr,Tn,Hn,ei,ji,Ln){var Vn=Yr-Vt,kt=Tn-mt,wt=ji-Hn,Te=Ln-ei,xe=gr(wt,Te,Vn,kt);if(Zt(xe))return!1;var Ce=Vt-Hn,Ye=mt-ei,it=gr(Ce,Ye,Vn,kt)/xe;if(it<0||it>1)return!1;var dt=gr(Ce,Ye,wt,Te)/xe;return!(dt<0||dt>1)}function gr(Vt,mt,Yr,Tn){return Vt*Tn-Yr*mt}function Zt(Vt){return Vt<=1e-6&&Vt>=-1e-6}K("circle",o),K("sector",n),K("ring",e),K("polygon",s),K("polyline",t),K("rect",a),K("line",l),K("bezierCurve",u),K("arc",f),P.Z2_EMPHASIS_LIFT=I,P.CACHED_LABEL_STYLE_PROPERTIES=L,P.extendShape=H,P.extendPath=F,P.registerShape=K,P.getShapeClass=U,P.makePath=V,P.makeImage=z,P.mergePath=q,P.resizePath=ce,P.subPixelOptimizeLine=ie,P.subPixelOptimizeRect=ve,P.subPixelOptimize=Ee,P.setElementHoverStyle=G,P.setHoverStyle=le,P.setAsHighDownDispatcher=me,P.isHighDownDispatcher=_e,P.getHighlightDigit=$e,P.setLabelStyle=gt,P.modifyLabelStyle=et,P.setTextStyle=Ie,P.setText=rt,P.getFont=Be,P.updateProps=J,P.initProps=je,P.getTransform=Re,P.applyTransform=oe,P.transformDirection=yt,P.groupTransition=zt,P.clipPointsByRect=lt,P.clipRectByRect=$t,P.createIcon=cr,P.linePolygonIntersect=cn,P.lineLineIntersect=pr},IyUQ:function(j,P,d){var O=d("bYtY"),E=d("YH21"),C=d("IwbS"),v=d("iLNv"),w=d("fc+c"),m=d("OELB"),h=d("+TT/"),c=d("72pK"),i=C.Rect,r=m.linearMap,o=m.asc,n=O.bind,e=O.each,s=7,t=1,a=30,l="horizontal",u="vertical",f=5,p=["line","bar","candlestick","scatter"],g=w.extend({type:"dataZoom.slider",init:function(T,S){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=S},render:function(T,S,b,_){if(g.superApply(this,"render",arguments),v.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=T.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!_||_.type!=="dataZoom"||_.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){g.superApply(this,"remove",arguments),v.clear(this,"_dispatchZoomAction")},dispose:function(){g.superApply(this,"dispose",arguments),v.clear(this,"_dispatchZoomAction")},_buildView:function(){var T=this.group;T.removeAll(),this._resetLocation(),this._resetInterval();var S=this._displayables.barGroup=new C.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),T.add(S),this._positionGroup()},_resetLocation:function(){var T=this.dataZoomModel,S=this.api,b=this._findCoordRect(),_={width:S.getWidth(),height:S.getHeight()},I=this._orient===l?{right:_.width-b.x-b.width,top:_.height-a-s,width:b.width,height:a}:{right:s,top:b.y,width:a,height:b.height},L=h.getLayoutParams(T.option);O.each(["right","top","width","height"],function(N){L[N]==="ph"&&(L[N]=I[N])});var D=h.getLayoutRect(L,_,T.padding);this._location={x:D.x,y:D.y},this._size=[D.width,D.height],this._orient===u&&this._size.reverse()},_positionGroup:function(){var T=this.group,S=this._location,b=this._orient,_=this.dataZoomModel.getFirstTargetAxisModel(),I=_&&_.get("inverse"),L=this._displayables.barGroup,D=(this._dataShadowInfo||{}).otherAxisInverse;L.attr(b===l&&!I?{scale:D?[1,1]:[1,-1]}:b===l&&I?{scale:D?[-1,1]:[-1,-1]}:b===u&&!I?{scale:D?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:D?[-1,-1]:[-1,1],rotation:Math.PI/2});var N=T.getBoundingRect([L]);T.attr("position",[S.x-N.x,S.y-N.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var T=this.dataZoomModel,S=this._size,b=this._displayables.barGroup;b.add(new i({silent:!0,shape:{x:0,y:0,width:S[0],height:S[1]},style:{fill:T.get("backgroundColor")},z2:-40})),b.add(new i({shape:{x:0,y:0,width:S[0],height:S[1]},style:{fill:"transparent"},z2:0,onclick:O.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var T=this._dataShadowInfo=this._prepareDataShadowInfo();if(!T)return;var S=this._size,b=T.series,_=b.getRawData(),I=b.getShadowDim?b.getShadowDim():T.otherDim;if(I==null)return;var L=_.getDataExtent(I),D=(L[1]-L[0])*.3;L=[L[0]-D,L[1]+D];var N=[0,S[1]],M=[0,S[0]],B=[[S[0],0],[0,0]],R=[],H=M[1]/(_.count()-1),F=0,K=Math.round(_.count()/S[0]),U;_.each([I],function(z,Y){if(K>0&&Y%K){F+=H;return}var q=z==null||isNaN(z)||z==="",ce=q?0:r(z,L,N,!0);q&&!U&&Y?(B.push([B[B.length-1][0],0]),R.push([R[R.length-1][0],0])):!q&&U&&(B.push([F,0]),R.push([F,0])),B.push([F,ce]),R.push([F,ce]),F+=H,U=q});var V=this.dataZoomModel;this._displayables.barGroup.add(new C.Polygon({shape:{points:B},style:O.defaults({fill:V.get("dataBackgroundColor")},V.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new C.Polyline({shape:{points:R},style:V.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var T=this.dataZoomModel,S=T.get("showDataShadow");if(S===!1)return;var b,_=this.ecModel;return T.eachTargetAxis(function(I,L){var D=T.getAxisProxy(I.name,L).getTargetSeriesModels();O.each(D,function(N){if(b)return;if(S!==!0&&O.indexOf(p,N.get("type"))<0)return;var M=_.getComponent(I.axis,L).axis,B=A(I.name),R,H=N.coordinateSystem;B!=null&&H.getOtherAxis&&(R=H.getOtherAxis(M).inverse),B=N.getData().mapDimension(B),b={thisAxis:M,series:N,thisDim:I.name,otherDim:B,otherAxisInverse:R}},this)},this),b},_renderHandle:function(){var T=this._displayables,S=T.handles=[],b=T.handleLabels=[],_=this._displayables.barGroup,I=this._size,L=this.dataZoomModel;_.add(T.filler=new i({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 i({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:L.get("dataBackgroundColor")||L.get("borderColor"),lineWidth:t,fill:"rgba(0,0,0,0)"}})),e([0,1],function(D){var N=C.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 B=L.get("handleColor");B!=null&&(N.style.fill=B),_.add(S[D]=N);var R=L.textStyleModel;this.group.add(b[D]=new C.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 T=this._range=this.dataZoomModel.getPercentRange(),S=this._getViewExtent();this._handleEnds=[r(T[0],[0,100],S,!0),r(T[1],[0,100],S,!0)]},_updateInterval:function(T,S){var b=this.dataZoomModel,_=this._handleEnds,I=this._getViewExtent(),L=b.findRepresentativeAxisProxy().getMinMaxSpan(),D=[0,100];c(S,_,I,b.get("zoomLock")?"all":T,L.minSpan!=null?r(L.minSpan,D,I,!0):null,L.maxSpan!=null?r(L.maxSpan,D,I,!0):null);var N=this._range,M=this._range=o([r(_[0],I,D,!0),r(_[1],I,D,!0)]);return!N||N[0]!==M[0]||N[1]!==M[1]},_updateView:function(T){var S=this._displayables,b=this._handleEnds,_=o(b.slice()),I=this._size;e([0,1],function(L){var D=S.handles[L],N=this._handleHeight;D.attr({scale:[N/2,N/2],position:[b[L],I[1]/2-N/2]})},this),S.filler.setShape({x:_[0],y:0,width:_[1]-_[0],height:I[1]}),this._updateDataInfo(T)},_updateDataInfo:function(T){var S=this.dataZoomModel,b=this._displayables,_=b.handleLabels,I=this._orient,L=["",""];if(S.get("showDetail")){var D=S.findRepresentativeAxisProxy();if(D){var N=D.getAxisModel().axis,M=this._range,B=T?D.calculateDataWindow({start:M[0],end:M[1]}).valueWindow:D.getDataValueWindow();L=[this._formatLabel(B[0],N),this._formatLabel(B[1],N)]}}var R=o(this._handleEnds.slice());H.call(this,0),H.call(this,1);function H(F){var K=C.getTransform(b.handles[F].parent,this.group),U=C.transformDirection(F===0?"right":"left",K),V=this._handleWidth/2+f,z=C.applyTransform([R[F]+(F===0?-V:V),this._size[1]/2],K);_[F].setStyle({x:z[0],y:z[1],textVerticalAlign:I===l?"middle":U,textAlign:I===l?U:"center",text:L[F]})}},_formatLabel:function(T,S){var b=this.dataZoomModel,_=b.get("labelFormatter"),I=b.get("labelPrecision");(I==null||I==="auto")&&(I=S.getPixelPrecision());var L=T==null||isNaN(T)?"":S.type==="category"||S.type==="time"?S.scale.getLabel(Math.round(T)):T.toFixed(Math.min(I,20));return O.isFunction(_)?_(T,L):O.isString(_)?_.replace("{value}",L):L},_showDataInfo:function(T){T=this._dragging||T;var S=this._displayables.handleLabels;S[0].attr("invisible",!T),S[1].attr("invisible",!T)},_onDragMove:function(T,S,b,_){this._dragging=!0,E.stop(_.event);var I=this._displayables.barGroup.getLocalTransform(),L=C.applyTransform([S,b],I,!0),D=this._updateInterval(T,L[0]),N=this.dataZoomModel.get("realtime");this._updateView(!N),D&&N&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var T=this.dataZoomModel.get("realtime");!T&&this._dispatchZoomAction()},_onClickPanelClick:function(T){var S=this._size,b=this._displayables.barGroup.transformCoordToLocal(T.offsetX,T.offsetY);if(b[0]<0||b[0]>S[0]||b[1]<0||b[1]>S[1])return;var _=this._handleEnds,I=(_[0]+_[1])/2,L=this._updateInterval("all",b[0]-I);this._updateView(),L&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var T=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:T[0],end:T[1]})},_findCoordRect:function(){var T;if(e(this.getTargetCoordInfo(),function(_){if(!T&&_.length){var I=_[0].model.coordinateSystem;T=I.getRect&&I.getRect()}}),!T){var S=this.api.getWidth(),b=this.api.getHeight();T={x:S*.2,y:b*.2,width:S*.6,height:b*.6}}return T}});function A(T){var S={x:"y",y:"x",radius:"angle",angle:"radius"};return S[T]}function y(T){return T==="vertical"?"ns-resize":"ew-resize"}var x=g;j.exports=x},IzEo:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("lnY3"),v=d.n(C),w=d("Znn+"),m=d("14J3"),h=d("jCWc")},J66h:function(j,P,d){(function(O){var E,C;(function(v,w){j.exports=w(v)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof O!="undefined"?O:this,function(v){"use strict";v=v||{};var w=v.Base64,m="2.6.4",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(N){for(var M={},B=0,R=N.length;B<R;B++)M[N.charAt(B)]=B;return M}(h),i=String.fromCharCode,r=function(M){if(M.length<2){var B=M.charCodeAt(0);return B<128?M:B<2048?i(192|B>>>6)+i(128|B&63):i(224|B>>>12&15)+i(128|B>>>6&63)+i(128|B&63)}else{var B=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return i(240|B>>>18&7)+i(128|B>>>12&63)+i(128|B>>>6&63)+i(128|B&63)}},o=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n=function(M){return M.replace(o,r)},e=function(M){var B=[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),H=[h.charAt(R>>>18),h.charAt(R>>>12&63),B>=2?"=":h.charAt(R>>>6&63),B>=1?"=":h.charAt(R&63)];return H.join("")},s=v.btoa&&typeof v.btoa=="function"?function(N){return v.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,e)},t=function(M){return s(n(String(M)))},a=function(M){return M.replace(/[+\/]/g,function(B){return B=="+"?"-":"_"}).replace(/=/g,"")},l=function(M,B){return B?a(t(M)):t(M)},u=function(M){return l(M,!0)},f;v.Uint8Array&&(f=function(M,B){for(var R="",H=0,F=M.length;H<F;H+=3){var K=M[H],U=M[H+1],V=M[H+2],z=K<<16|U<<8|V;R+=h.charAt(z>>>18)+h.charAt(z>>>12&63)+(typeof U!="undefined"?h.charAt(z>>>6&63):"=")+(typeof V!="undefined"?h.charAt(z&63):"=")}return B?a(R):R});var p=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,g=function(M){switch(M.length){case 4:var B=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),R=B-65536;return i((R>>>10)+55296)+i((R&1023)+56320);case 3:return i((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return i((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},A=function(M){return M.replace(p,g)},y=function(M){var B=M.length,R=B%4,H=(B>0?c[M.charAt(0)]<<18:0)|(B>1?c[M.charAt(1)]<<12:0)|(B>2?c[M.charAt(2)]<<6:0)|(B>3?c[M.charAt(3)]:0),F=[i(H>>>16),i(H>>>8&255),i(H&255)];return F.length-=[0,0,2,1][R],F.join("")},x=v.atob&&typeof v.atob=="function"?function(N){return v.atob(N)}:function(N){return N.replace(/\S{1,4}/g,y)},T=function(M){return x(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(M){return A(x(M))},b=function(M){return String(M).replace(/[-_]/g,function(B){return B=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_=function(M){return S(b(M))},I;v.Uint8Array&&(I=function(M){return Uint8Array.from(T(b(M)),function(B){return B.charCodeAt(0)})});var L=function(){var M=v.Base64;return v.Base64=w,M};if(v.Base64={VERSION:m,atob:T,btoa:s,fromBase64:_,toBase64:l,utob:n,encode:l,encodeURI:u,btou:A,decode:_,noConflict:L,fromUint8Array:f,toUint8Array:I},typeof Object.defineProperty=="function"){var D=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};v.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 v.Meteor&&(Base64=v.Base64),j.exports?j.exports.Base64=v.Base64:!(E=[],C=function(){return v.Base64}.apply(P,E),C!==void 0&&(j.exports=C)),{Base64:v.Base64}})}).call(this,d("IyRk"))},JEkh:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("ItGF"),m=d("4NO4"),h=d("7aKB"),c=d("OKJ2"),i=h.addCommas,r=h.encodeHTML;function o(s){m.defaultEmphasis(s,"label",["show"])}var n=C.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(s,t,a){this.mergeDefaultAndTheme(s,a),this._mergeOption(s,a,!1,!0)},isAnimationEnabled:function(){if(w.node)return!1;var s=this.__hostSeries;return this.getShallow("animation")&&s&&s.isAnimationEnabled()},mergeOption:function(s,t){this._mergeOption(s,t,!1,!1)},_mergeOption:function(s,t,a,l){var u=this.constructor,f=this.mainType+"Model";a||t.eachSeries(function(p){var g=p.get(this.mainType,!0),A=p[f];if(!g||!g.data){p[f]=null;return}A?A._mergeOption(g,t,!0):(l&&o(g),v.each(g.data,function(y){y instanceof Array?(o(y[0]),o(y[1])):o(y)}),A=new u(g,this,t),v.extend(A,{mainType:this.mainType,seriesIndex:p.seriesIndex,name:p.name,createdBySelf:!0}),A.__hostSeries=p),p[f]=A},this)},formatTooltip:function(s){var t=this.getData(),a=this.getRawValue(s),l=v.isArray(a)?v.map(a,i).join(", "):i(a),u=t.getName(s),f=r(this.name);return(a!=null||u)&&(f+="<br />"),u&&(f+=r(u),a!=null&&(f+=" : ")),a!=null&&(f+=r(l)),f},getData:function(){return this._data},setData:function(s){this._data=s}});v.mixin(n,c);var e=n;j.exports=e},JGo8:function(j,P,d){},JLnu:function(j,P,d){var O=d("+TT/"),E=d("OELB"),C=E.parsePercent,v=E.linearMap;function w(i,r){return O.getLayoutRect(i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function m(i,r){for(var o=i.mapDimension("value"),n=i.mapArray(o,function(l){return l}),e=[],s=r==="ascending",t=0,a=i.count();t<a;t++)e[t]=t;return typeof r=="function"?e.sort(r):r!=="none"&&e.sort(function(l,u){return s?n[l]-n[u]:n[u]-n[l]}),e}function h(i){i.each(function(r){var o=i.getItemModel(r),n=o.getModel("label"),e=n.get("position"),s=o.getModel("labelLine"),t=i.getItemLayout(r),a=t.points,l=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",u,f,p,g;if(l)e==="insideLeft"?(f=(a[0][0]+a[3][0])/2+5,p=(a[0][1]+a[3][1])/2,u="left"):e==="insideRight"?(f=(a[1][0]+a[2][0])/2-5,p=(a[1][1]+a[2][1])/2,u="right"):(f=(a[0][0]+a[1][0]+a[2][0]+a[3][0])/4,p=(a[0][1]+a[1][1]+a[2][1]+a[3][1])/4,u="center"),g=[[f,p],[f,p]];else{var A,y,x,T=s.get("length");e==="left"?(A=(a[3][0]+a[0][0])/2,y=(a[3][1]+a[0][1])/2,x=A-T,f=x-5,u="right"):e==="right"?(A=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,x=A+T,f=x+5,u="left"):e==="rightTop"?(A=a[1][0],y=a[1][1],x=A+T,f=x+5,u="top"):e==="rightBottom"?(A=a[2][0],y=a[2][1],x=A+T,f=x+5,u="bottom"):e==="leftTop"?(A=a[0][0],y=a[1][1],x=A-T,f=x-5,u="right"):e==="leftBottom"?(A=a[3][0],y=a[2][1],x=A-T,f=x-5,u="right"):(A=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,x=A+T,f=x+5,u="left");var S=y;g=[[A,y],[x,S]],p=S}t.label={linePoints:g,x:f,y:p,verticalAlign:"middle",textAlign:u,inside:l}})}function c(i,r,o){i.eachSeriesByType("funnel",function(n){var e=n.getData(),s=e.mapDimension("value"),t=n.get("sort"),a=w(n,r),l=m(e,t),u=[C(n.get("minSize"),a.width),C(n.get("maxSize"),a.width)],f=e.getDataExtent(s),p=n.get("min"),g=n.get("max");p==null&&(p=Math.min(f[0],0)),g==null&&(g=f[1]);var A=n.get("funnelAlign"),y=n.get("gap"),x=(a.height-y*(e.count()-1))/e.count(),T=a.y,S=function(B,R){var H=e.get(s,B)||0,F=v(H,[p,g],u,!0),K;switch(A){case"left":K=a.x;break;case"center":K=a.x+(a.width-F)/2;break;case"right":K=a.x+a.width-F;break}return[[K,R],[K+F,R]]};t==="ascending"&&(x=-x,y=-y,T+=a.height,l=l.reverse());for(var b=0;b<l.length;b++){var _=l[b],I=l[b+1],L=e.getItemModel(_),D=L.get("itemStyle.height");D==null?D=x:(D=C(D,a.height),t==="ascending"&&(D=-D));var N=S(_,T),M=S(I,T+D);T+=D+y,e.setItemLayout(_,{points:N.concat(M.slice().reverse())})}h(e)})}j.exports=c},JSwD:function(j,P,d){"use strict";function O(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(u){return typeof u}:O=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},O(a)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=t;var E=v(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return C=function(){return a},a}function v(a){if(a&&a.__esModule)return a;if(a===null||O(a)!=="object"&&typeof a!="function")return{default:a};var l=C();if(l&&l.has(a))return l.get(a);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(Object.prototype.hasOwnProperty.call(a,p)){var g=f?Object.getOwnPropertyDescriptor(a,p):null;g&&(g.get||g.set)?Object.defineProperty(u,p,g):u[p]=a[p]}return u.default=a,l&&l.set(a,u),u}var w=15,m=852,h=592,c=0,i=1,r=2,o=[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],e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],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 t(a,l,u,f,p,g,A,y){var x=y.bits,T=0,S=0,b=0,_=0,I=0,L=0,D=0,N=0,M=0,B=0,R,H,F,K,U,V=null,z=0,Y,q=new E.Buf16(w+1),ce=new E.Buf16(w+1),ie=null,ve=0,Ee,Le,He;for(T=0;T<=w;T++)q[T]=0;for(S=0;S<f;S++)q[l[u+S]]++;for(I=x,_=w;_>=1&&!(q[_]!==0);_--);if(I>_&&(I=_),_===0)return p[g++]=1<<24|64<<16|0,p[g++]=1<<24|64<<16|0,y.bits=1,0;for(b=1;b<_&&!(q[b]!==0);b++);for(I<b&&(I=b),N=1,T=1;T<=w;T++)if(N<<=1,N-=q[T],N<0)return-1;if(N>0&&(a===c||_!==1))return-1;for(ce[1]=0,T=1;T<w;T++)ce[T+1]=ce[T]+q[T];for(S=0;S<f;S++)l[u+S]!==0&&(A[ce[l[u+S]]++]=S);if(a===c?(V=ie=A,Y=19):a===i?(V=o,z-=257,ie=n,ve-=257,Y=256):(V=e,ie=s,Y=-1),B=0,S=0,T=b,U=g,L=I,D=0,F=-1,M=1<<I,K=M-1,a===i&&M>m||a===r&&M>h)return 1;for(;;){Ee=T-D,A[S]<Y?(Le=0,He=A[S]):A[S]>Y?(Le=ie[ve+A[S]],He=V[z+A[S]]):(Le=32+64,He=0),R=1<<T-D,H=1<<L,b=H;do H-=R,p[U+(B>>D)+H]=Ee<<24|Le<<16|He|0;while(H!==0);for(R=1<<T-1;B&R;)R>>=1;if(R!==0?(B&=R-1,B+=R):B=0,S++,--q[T]===0){if(T===_)break;T=l[u+A[S]]}if(T>I&&(B&K)!==F){for(D===0&&(D=I),U+=b,L=T-D,N=1<<L;L+D<_&&!(N-=q[L+D],N<=0);)L++,N<<=1;if(M+=1<<L,a===i&&M>m||a===r&&M>h)return 1;F=B&K,p[F]=I<<24|L<<16|U-g|0}}return B!==0&&(p[U+B]=T-D<<24|64<<16|0),y.bits=I,0}},JVwQ:function(j,P,d){var O=d("ProS"),E=d("1NG9"),C=E.Polygon,v=d("IwbS"),w=d("bYtY"),m=w.bind,h=w.extend,c=d("gPAo"),i=O.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(o,n,e){var s=o.getData(),t=this.group,a=o.getLayerSeries(),l=s.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;t.attr("position",[0,u.y+f[0]]);function p(x){return x.name}var g=new c(this._layersSeries||[],a,p,p),A={};g.add(m(y,this,"add")).update(m(y,this,"update")).remove(m(y,this,"remove")).execute();function y(x,T,S){var b=this._layers;if(x==="remove"){t.remove(b[T]);return}for(var _=[],I=[],L,D=a[T].indices,N=0;N<D.length;N++){var M=s.getItemLayout(D[N]),B=M.x,R=M.y0,H=M.y;_.push([B,R]),I.push([B,R+H]),L=s.getItemVisual(D[N],"color")}var F,K,U=s.getItemLayout(D[0]),V=s.getItemModel(D[N-1]),z=V.getModel("label"),Y=z.get("margin");if(x==="add"){var q=A[T]=new v.Group;F=new C({shape:{points:_,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),K=new v.Text({style:{x:U.x-Y,y:U.y0+U.y/2}}),q.add(F),q.add(K),t.add(q),F.setClipPath(r(F.getBoundingRect(),o,function(){F.removeClipPath()}))}else{var q=b[S];F=q.childAt(0),K=q.childAt(1),t.add(q),A[T]=q,v.updateProps(F,{shape:{points:_,stackedOnPoints:I}},o),v.updateProps(K,{style:{x:U.x-Y,y:U.y0+U.y/2}},o)}var ce=V.getModel("emphasis.itemStyle"),ie=V.getModel("itemStyle");v.setTextStyle(K.style,z,{text:z.get("show")?o.getFormattedLabel(D[N-1],"normal")||s.getName(D[N-1]):null,textVerticalAlign:"middle"}),F.setStyle(h({fill:L},ie.getItemStyle(["color"]))),v.setHoverStyle(F,ce.getItemStyle())}this._layersSeries=a,this._layers=A},dispose:function(){}});function r(o,n,e){var s=new v.Rect({shape:{x:o.x-10,y:o.y-10,width:0,height:o.height+20}});return v.initProps(s,{shape:{width:o.width+20,height:o.height+20}},n,e),s}j.exports=i},JgUQ:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},JsLm:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("PJYZ"),r=d.n(i),o=d("7W2i"),n=d.n(o),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d("i8i4"),l=d("TSYQ"),u=d.n(l),f=d("zT1h"),p=d("cDf5"),g=d.n(p),A=d("BGR+"),y=d("VTBJ"),x=d("1OyB"),T=d("vuIU"),S=d("Ji7U"),b=d("LK+K"),_=d("m+aA"),I=d("Zm9Q"),L=d("Kwbf"),D=d("c+Xe"),N=d("bdgK"),M="rc-observer-key",B=function(gt){Object(S.a)(Ie,gt);var et=Object(b.a)(Ie);function Ie(){var rt;return Object(x.a)(this,Ie),rt=et.apply(this,arguments),rt.resizeObserver=null,rt.childNode=null,rt.currentElement=null,rt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},rt.onResize=function(Ge){var vt=rt.props.onResize,Ot=Ge[0].target,Et=Ot.getBoundingClientRect(),Tt=Et.width,Rt=Et.height,Be=Ot.offsetWidth,Z=Ot.offsetHeight,J=Math.floor(Tt),je=Math.floor(Rt);if(rt.state.width!==J||rt.state.height!==je||rt.state.offsetWidth!==Be||rt.state.offsetHeight!==Z){var Re={width:J,height:je,offsetWidth:Be,offsetHeight:Z};rt.setState(Re),vt&&Promise.resolve().then(function(){vt(Object(y.a)(Object(y.a)({},Re),{},{offsetWidth:Be,offsetHeight:Z}))})}},rt.setChildNode=function(Ge){rt.childNode=Ge},rt}return Object(T.a)(Ie,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Ge=this.props.disabled;if(Ge){this.destroyObserver();return}var vt=Object(_.a)(this.childNode||this),Ot=vt!==this.currentElement;Ot&&(this.destroyObserver(),this.currentElement=vt),!this.resizeObserver&&vt&&(this.resizeObserver=new N.default(this.onResize),this.resizeObserver.observe(vt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Ge=this.props.children,vt=Object(I.a)(Ge);if(vt.length>1)Object(L.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(vt.length===0)return Object(L.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Ot=vt[0];if(t.isValidElement(Ot)&&Object(D.c)(Ot)){var Et=Ot.ref;vt[0]=t.cloneElement(Ot,{ref:Object(D.a)(Et,this.setChildNode)})}return vt.length===1?vt[0]:vt.map(function(Tt,Rt){return!t.isValidElement(Tt)||"key"in Tt&&Tt.key!==null?Tt:t.cloneElement(Tt,{key:"".concat(M,"-").concat(Rt)})})}}]),Ie}(t.Component);B.displayName="ResizeObserver";var R=B,H=d("H84U"),F=d("RIqP"),K=d.n(F),U=d("xEkU"),V=d.n(U);function z(gt){var et,Ie=function(vt){return function(){et=null,gt.apply(void 0,K()(vt))}},rt=function(){if(et==null){for(var vt=arguments.length,Ot=new Array(vt),Et=0;Et<vt;Et++)Ot[Et]=arguments[Et];et=V()(Ie(Ot))}};return rt.cancel=function(){return V.a.cancel(et)},rt}function Y(){return function(gt,et,Ie){var rt=Ie.value,Ge=!1;return{configurable:!0,get:function(){if(Ge||this===gt.prototype||this.hasOwnProperty(et))return rt;var Ot=z(rt.bind(this));return Ge=!0,Object.defineProperty(this,et,{value:Ot,configurable:!0,writable:!0}),Ge=!1,Ot}}}}function q(gt){return gt!==window?gt.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ce(gt,et,Ie){return Ie!==void 0&&et.top>gt.top-Ie?Ie+et.top:void 0}function ie(gt,et,Ie){if(Ie!==void 0&&et.bottom<gt.bottom+Ie){var rt=window.innerHeight-et.bottom;return Ie+rt}return}var ve=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Ee=[];function Le(){return Ee}function He(gt,et){if(!gt)return;var Ie=Ee.find(function(rt){return rt.target===gt});Ie?Ie.affixList.push(et):(Ie={target:gt,affixList:[et],eventHandlers:{}},Ee.push(Ie),ve.forEach(function(rt){Ie.eventHandlers[rt]=Object(f.a)(gt,rt,function(){Ie.affixList.forEach(function(Ge){Ge.lazyUpdatePosition()})})}))}function ge(gt){var et=Ee.find(function(Ie){var rt=Ie.affixList.some(function(Ge){return Ge===gt});return rt&&(Ie.affixList=Ie.affixList.filter(function(Ge){return Ge!==gt})),rt});et&&et.affixList.length===0&&(Ee=Ee.filter(function(Ie){return Ie!==et}),ve.forEach(function(Ie){var rt=et.eventHandlers[Ie];rt&&rt.remove&&rt.remove()}))}var Fe=function(gt,et,Ie,rt){var Ge=arguments.length,vt=Ge<3?et:rt===null?rt=Object.getOwnPropertyDescriptor(et,Ie):rt,Ot;if((typeof Reflect=="undefined"?"undefined":g()(Reflect))==="object"&&typeof Reflect.decorate=="function")vt=Reflect.decorate(gt,et,Ie,rt);else for(var Et=gt.length-1;Et>=0;Et--)(Ot=gt[Et])&&(vt=(Ge<3?Ot(vt):Ge>3?Ot(et,Ie,vt):Ot(et,Ie))||vt);return Ge>3&&vt&&Object.defineProperty(et,Ie,vt),vt};function Q(){return typeof window!="undefined"?window:null}var fe;(function(gt){gt[gt.None=0]="None",gt[gt.Prepare=1]="Prepare"})(fe||(fe={}));var Je=function(gt){n()(Ie,gt);var et=s()(Ie);function Ie(){var rt;return m()(this,Ie),rt=et.apply(this,arguments),rt.state={status:fe.None,lastAffix:!1,prevTarget:null},rt.getOffsetTop=function(){var Ge=rt.props.offsetBottom,vt=rt.props.offsetTop;return Ge===void 0&&vt===void 0&&(vt=0),vt},rt.getOffsetBottom=function(){return rt.props.offsetBottom},rt.savePlaceholderNode=function(Ge){rt.placeholderNode=Ge},rt.saveFixedNode=function(Ge){rt.fixedNode=Ge},rt.measure=function(){var Ge=rt.state,vt=Ge.status,Ot=Ge.lastAffix,Et=rt.props.onChange,Tt=rt.getTargetFunc();if(vt!==fe.Prepare||!rt.fixedNode||!rt.placeholderNode||!Tt)return;var Rt=rt.getOffsetTop(),Be=rt.getOffsetBottom(),Z=Tt();if(!Z)return;var J={status:fe.None},je=q(Z),Re=q(rt.placeholderNode),oe=ce(Re,je,Rt),yt=ie(Re,je,Be);oe!==void 0?(J.affixStyle={position:"fixed",top:oe,width:Re.width,height:Re.height},J.placeholderStyle={width:Re.width,height:Re.height}):yt!==void 0&&(J.affixStyle={position:"fixed",bottom:yt,width:Re.width,height:Re.height},J.placeholderStyle={width:Re.width,height:Re.height}),J.lastAffix=!!J.affixStyle,Et&&Ot!==J.lastAffix&&Et(J.lastAffix),rt.setState(J)},rt.prepareMeasure=function(){if(rt.setState({status:fe.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var Ge},rt.render=function(){var Ge=rt.context.getPrefixCls,vt=rt.state,Ot=vt.affixStyle,Et=vt.placeholderStyle,Tt=rt.props,Rt=Tt.prefixCls,Be=Tt.children,Z=u()(v()({},Ge("affix",Rt),Ot)),J=Object(A.default)(rt.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return t.createElement(R,{onResize:function(){rt.updatePosition()}},t.createElement("div",E()({},J,{ref:rt.savePlaceholderNode}),Ot&&t.createElement("div",{style:Et,"aria-hidden":"true"}),t.createElement("div",{className:Z,ref:rt.saveFixedNode,style:Ot},t.createElement(R,{onResize:function(){rt.updatePosition()}},Be))))},rt}return c()(Ie,[{key:"getTargetFunc",value:function(){var Ge=this.context.getTargetContainer,vt=this.props.target;return vt!==void 0?vt:Ge||Q}},{key:"componentDidMount",value:function(){var Ge=this,vt=this.getTargetFunc();vt&&(this.timeout=setTimeout(function(){He(vt(),Ge),Ge.updatePosition()}))}},{key:"componentDidUpdate",value:function(Ge){var vt=this.state.prevTarget,Ot=this.getTargetFunc(),Et=null;Ot&&(Et=Ot()||null),vt!==Et&&(ge(this),Et&&(He(Et,this),this.updatePosition()),this.setState({prevTarget:Et})),(Ge.offsetTop!==this.props.offsetTop||Ge.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),ge(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var Ge=this.getTargetFunc(),vt=this.state.affixStyle;if(Ge&&vt){var Ot=this.getOffsetTop(),Et=this.getOffsetBottom(),Tt=Ge();if(Tt&&this.placeholderNode){var Rt=q(Tt),Be=q(this.placeholderNode),Z=ce(Be,Rt,Ot),J=ie(Be,Rt,Et);if(Z!==void 0&&vt.top===Z||J!==void 0&&vt.bottom===J)return}}this.prepareMeasure()}}]),Ie}(t.Component);Je.contextType=H.b,Fe([Y()],Je.prototype,"updatePosition",null),Fe([Y()],Je.prototype,"lazyUpdatePosition",null);var ne=Je,X=d("zAh6"),G=d("i6bk"),te=t.createContext(null),we=te;function he(){return window}function Pe(gt,et){if(!gt.getClientRects().length)return 0;var Ie=gt.getBoundingClientRect();return Ie.width||Ie.height?et===window?(et=gt.ownerDocument.documentElement,Ie.top-et.clientTop):Ie.top-et.getBoundingClientRect().top:Ie.top}var Oe=/#(\S+)$/,le=function(gt){n()(Ie,gt);var et=s()(Ie);function Ie(){var rt;return m()(this,Ie),rt=et.apply(this,arguments),rt.state={activeLink:null},rt.links=[],rt.registerLink=function(Ge){rt.links.includes(Ge)||rt.links.push(Ge)},rt.unregisterLink=function(Ge){var vt=rt.links.indexOf(Ge);vt!==-1&&rt.links.splice(vt,1)},rt.getContainer=function(){var Ge=rt.context.getTargetContainer,vt=rt.props.getContainer,Ot=vt||Ge||he;return Ot()},rt.handleScrollTo=function(Ge){var vt=rt.props,Ot=vt.offsetTop,Et=vt.targetOffset;rt.setCurrentActiveLink(Ge);var Tt=rt.getContainer(),Rt=Object(G.a)(Tt,!0),Be=Oe.exec(Ge);if(!Be)return;var Z=document.getElementById(Be[1]);if(!Z)return;var J=Pe(Z,Tt),je=Rt+J;je-=Et!==void 0?Et:Ot||0,rt.animating=!0,Object(X.a)(je,{callback:function(){rt.animating=!1},getContainer:rt.getContainer})},rt.saveInkNode=function(Ge){rt.inkNode=Ge},rt.setCurrentActiveLink=function(Ge){var vt=rt.state.activeLink,Ot=rt.props.onChange;vt!==Ge&&(rt.setState({activeLink:Ge}),Ot&&Ot(Ge))},rt.handleScroll=function(){if(rt.animating)return;var Ge=rt.props,vt=Ge.offsetTop,Ot=Ge.bounds,Et=Ge.targetOffset,Tt=rt.getCurrentAnchor(Et!==void 0?Et:vt||0,Ot);rt.setCurrentActiveLink(Tt)},rt.updateInk=function(){var Ge=r()(rt),vt=Ge.prefixCls,Ot=a.findDOMNode(r()(rt)),Et=Ot.getElementsByClassName("".concat(vt,"-link-title-active"))[0];Et&&(rt.inkNode.style.top="".concat(Et.offsetTop+Et.clientHeight/2-4.5,"px"))},rt.render=function(){var Ge=rt.context,vt=Ge.getPrefixCls,Ot=Ge.direction,Et=rt.props,Tt=Et.prefixCls,Rt=Et.className,Be=Rt===void 0?"":Rt,Z=Et.style,J=Et.offsetTop,je=Et.affix,Re=Et.showInkInFixed,oe=Et.children,yt=rt.state.activeLink,zt=vt("anchor",Tt);rt.prefixCls=zt;var lt=u()("".concat(zt,"-ink-ball"),{visible:yt}),$t=u()(Be,"".concat(zt,"-wrapper"),v()({},"".concat(zt,"-rtl"),Ot==="rtl")),cr=u()(zt,{fixed:!je&&!Re}),cn=E()({maxHeight:J?"calc(100vh - ".concat(J,"px)"):"100vh"},Z),pr=t.createElement("div",{className:$t,style:cn},t.createElement("div",{className:cr},t.createElement("div",{className:"".concat(zt,"-ink")},t.createElement("span",{className:lt,ref:rt.saveInkNode})),oe));return t.createElement(we.Provider,{value:{registerLink:rt.registerLink,unregisterLink:rt.unregisterLink,activeLink:rt.state.activeLink,scrollTo:rt.handleScrollTo,onClick:rt.props.onClick}},je?t.createElement(ne,{offsetTop:J,target:rt.getContainer},pr):pr)},rt}return c()(Ie,[{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 Ge=this.getContainer();this.scrollContainer!==Ge&&(this.scrollContainer=Ge,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 Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ot=this.props.getCurrentAnchor;if(typeof Ot=="function")return Ot();var Et=[],Tt=this.getContainer();if(this.links.forEach(function(Be){var Z=Oe.exec(Be.toString());if(!Z)return;var J=document.getElementById(Z[1]);if(J){var je=Pe(J,Tt);je<Ge+vt&&Et.push({link:Be,top:je})}}),Et.length){var Rt=Et.reduce(function(Be,Z){return Z.top>Be.top?Z:Be});return Rt.link}return""}}]),Ie}(t.Component);le.defaultProps={affix:!0,showInkInFixed:!1},le.contextType=H.b;var me=function(gt){n()(Ie,gt);var et=s()(Ie);function Ie(){var rt;return m()(this,Ie),rt=et.apply(this,arguments),rt.handleClick=function(Ge){var vt=rt.context,Ot=vt.scrollTo,Et=vt.onClick,Tt=rt.props,Rt=Tt.href,Be=Tt.title;Et&&Et(Ge,{title:Be,href:Rt}),Ot(Rt)},rt.renderAnchorLink=function(Ge){var vt=Ge.getPrefixCls,Ot=rt.props,Et=Ot.prefixCls,Tt=Ot.href,Rt=Ot.title,Be=Ot.children,Z=Ot.className,J=Ot.target,je=vt("anchor",Et),Re=rt.context.activeLink===Tt,oe=u()(Z,"".concat(je,"-link"),v()({},"".concat(je,"-link-active"),Re)),yt=u()("".concat(je,"-link-title"),v()({},"".concat(je,"-link-title-active"),Re));return t.createElement("div",{className:oe},t.createElement("a",{className:yt,href:Tt,title:typeof Rt=="string"?Rt:"",target:J,onClick:rt.handleClick},Rt),Be)},rt}return c()(Ie,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(Ge){var vt=Ge.href,Ot=this.props.href;vt!==Ot&&(this.context.unregisterLink(vt),this.context.registerLink(Ot))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return t.createElement(H.a,null,this.renderAnchorLink)}}]),Ie}(t.Component);me.defaultProps={href:"#"},me.contextType=we;var _e=me;le.Link=_e;var $e=P.a=le},JuEJ:function(j,P,d){var O=d("bYtY"),E=d("4NO4"),C=O.each,v=O.isObject,w=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function m(t){var a=t&&t.itemStyle;if(!a)return;for(var l=0,u=w.length;l<u;l++){var f=w[l],p=a.normal,g=a.emphasis;p&&p[f]&&(t[f]=t[f]||{},t[f].normal?O.merge(t[f].normal,p[f]):t[f].normal=p[f],p[f]=null),g&&g[f]&&(t[f]=t[f]||{},t[f].emphasis?O.merge(t[f].emphasis,g[f]):t[f].emphasis=g[f],g[f]=null)}}function h(t,a,l){if(t&&t[a]&&(t[a].normal||t[a].emphasis)){var u=t[a].normal,f=t[a].emphasis;u&&(l?(t[a].normal=t[a].emphasis=null,O.defaults(t[a],u)):t[a]=u),f&&(t.emphasis=t.emphasis||{},t.emphasis[a]=f)}}function c(t){h(t,"itemStyle"),h(t,"lineStyle"),h(t,"areaStyle"),h(t,"label"),h(t,"labelLine"),h(t,"upperLabel"),h(t,"edgeLabel")}function i(t,a){var l=v(t)&&t[a],u=v(l)&&l.textStyle;if(u)for(var f=0,p=E.TEXT_STYLE_OPTIONS.length;f<p;f++){var a=E.TEXT_STYLE_OPTIONS[f];u.hasOwnProperty(a)&&(l[a]=u[a])}}function r(t){t&&(c(t),i(t,"label"),t.emphasis&&i(t.emphasis,"label"))}function o(t){if(!v(t))return;m(t),c(t),i(t,"label"),i(t,"upperLabel"),i(t,"edgeLabel"),t.emphasis&&(i(t.emphasis,"label"),i(t.emphasis,"upperLabel"),i(t.emphasis,"edgeLabel"));var a=t.markPoint;a&&(m(a),r(a));var l=t.markLine;l&&(m(l),r(l));var u=t.markArea;u&&r(u);var f=t.data;if(t.type==="graph"){f=f||t.nodes;var p=t.links||t.edges;if(p&&!O.isTypedArray(p))for(var g=0;g<p.length;g++)r(p[g]);O.each(t.categories,function(x){c(x)})}if(f&&!O.isTypedArray(f))for(var g=0;g<f.length;g++)r(f[g]);var a=t.markPoint;if(a&&a.data)for(var A=a.data,g=0;g<A.length;g++)r(A[g]);var l=t.markLine;if(l&&l.data)for(var y=l.data,g=0;g<y.length;g++)O.isArray(y[g])?(r(y[g][0]),r(y[g][1])):r(y[g]);t.type==="gauge"?(i(t,"axisLabel"),i(t,"title"),i(t,"detail")):t.type==="treemap"?(h(t.breadcrumb,"itemStyle"),O.each(t.levels,function(x){c(x)})):t.type==="tree"&&c(t.leaves)}function n(t){return O.isArray(t)?t:t?[t]:[]}function e(t){return(O.isArray(t)?t[0]:t)||{}}function s(t,a){C(n(t.series),function(u){v(u)&&o(u)});var l=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&l.push("valueAxis","categoryAxis","logAxis","timeAxis"),C(l,function(u){C(n(t[u]),function(f){f&&(i(f,"axisLabel"),i(f.axisPointer,"label"))})}),C(n(t.parallel),function(u){var f=u&&u.parallelAxisDefault;i(f,"axisLabel"),i(f&&f.axisPointer,"label")}),C(n(t.calendar),function(u){h(u,"itemStyle"),i(u,"dayLabel"),i(u,"monthLabel"),i(u,"yearLabel")}),C(n(t.radar),function(u){i(u,"name")}),C(n(t.geo),function(u){v(u)&&(r(u),C(n(u.regions),function(f){r(f)}))}),C(n(t.timeline),function(u){r(u),h(u,"label"),h(u,"itemStyle"),h(u,"controlStyle",!0);var f=u.data;O.isArray(f)&&O.each(f,function(p){O.isObject(p)&&(h(p,"label"),h(p,"itemStyle"))})}),C(n(t.toolbox),function(u){h(u,"iconStyle"),C(u.feature,function(f){h(f,"iconStyle")})}),i(e(t.axisPointer),"label"),i(e(t.tooltip).axisPointer,"label")}j.exports=s},K2GJ:function(j,P,d){var O=d("fW2E"),E=d("gut8"),C=E.ContextCachedBy,v=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],w=function(e){this.extendFrom(e,!1)};function m(n,e,s){var t=e.x==null?0:e.x,a=e.x2==null?1:e.x2,l=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(t=t*s.width+s.x,a=a*s.width+s.x,l=l*s.height+s.y,u=u*s.height+s.y),t=isNaN(t)?0:t,a=isNaN(a)?1:a,l=isNaN(l)?0:l,u=isNaN(u)?0:u;var f=n.createLinearGradient(t,l,a,u);return f}function h(n,e,s){var t=s.width,a=s.height,l=Math.min(t,a),u=e.x==null?.5:e.x,f=e.y==null?.5:e.y,p=e.r==null?.5:e.r;e.global||(u=u*t+s.x,f=f*a+s.y,p=p*l);var g=n.createRadialGradient(u,f,0,u,f,p);return g}w.prototype={constructor:w,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,s,t){var a=this,l=t&&t.style,u=!l||e.__attrCachedBy!==C.STYLE_BIND;e.__attrCachedBy=C.STYLE_BIND;for(var f=0;f<v.length;f++){var p=v[f],g=p[0];(u||a[g]!==l[g])&&(e[g]=O(e,g,a[g]||p[1]))}if((u||a.fill!==l.fill)&&(e.fillStyle=a.fill),(u||a.stroke!==l.stroke)&&(e.strokeStyle=a.stroke),(u||a.opacity!==l.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(u||a.blend!==l.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var A=a.lineWidth;e.lineWidth=A/(this.strokeNoScale&&s&&s.getLineScale?s.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,s){if(e)for(var t in e)e.hasOwnProperty(t)&&(s===!0||(s===!1?!this.hasOwnProperty(t):e[t]!=null))&&(this[t]=e[t])},set:function(e,s){typeof e=="string"?this[e]=s:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,s,t){for(var a=s.type==="radial"?h:m,l=a(e,s,t),u=s.colorStops,f=0;f<u.length;f++)l.addColorStop(u[f].offset,u[f].color);return l}};for(var c=w.prototype,i=0;i<v.length;i++){var r=v[i];r[0]in c||(c[r[0]]=r[1])}w.getGradient=c.getGradient;var o=w;j.exports=o},K3mO:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.Base,w=C.WordArray,m=E.algo,h=m.MD5,c=m.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:h,iterations:1}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,o){for(var n,e=this.cfg,s=e.hasher.create(),t=w.create(),a=t.words,l=e.keySize,u=e.iterations;a.length<l;){n&&s.update(n),n=s.update(r).finalize(o),s.reset();for(var f=1;f<u;f++)n=s.finalize(n),s.reset();t.concat(n)}return t.sigBytes=l*4,t}});E.EvpKDF=function(i,r,o){return c.create(o).compute(i,r)}}(),O.EvpKDF})},K4ya:function(j,P,d){var O=d("bYtY"),E=d("XxSj"),C=O.each;function v(i){if(i){for(var r in i)if(i.hasOwnProperty(r))return!0}}function w(i,r,o){var n={};return C(r,function(s){var t=n[s]=e();C(i[s],function(a,l){if(!E.isValidType(l))return;var u={type:l,visual:a};o&&o(u,s),t[l]=new E(u),l==="opacity"&&(u=O.clone(u),u.type="colorAlpha",t.__hidden.__alphaForOpacity=new E(u))})}),n;function e(){var s=function(){};s.prototype.__hidden=s.prototype;var t=new s;return t}}function m(i,r,o){var n;O.each(o,function(e){r.hasOwnProperty(e)&&v(r[e])&&(n=!0)}),n&&O.each(o,function(e){r.hasOwnProperty(e)&&v(r[e])?i[e]=O.clone(r[e]):delete i[e]})}function h(i,r,o,n,e,s){var t={};O.each(i,function(p){var g=E.prepareVisualTypes(r[p]);t[p]=g});var a;function l(p){return o.getItemVisual(a,p)}function u(p,g){o.setItemVisual(a,p,g)}s==null?o.each(f):o.each([s],f);function f(p,g){a=s==null?p:g;var A=o.getRawDataItem(a);if(A&&A.visualMap===!1)return;for(var y=n.call(e,p),x=r[y],T=t[y],S=0,b=T.length;S<b;S++){var _=T[S];x[_]&&x[_].applyVisual(p,l,u)}}}function c(i,r,o,n){var e={};O.each(i,function(t){var a=E.prepareVisualTypes(r[t]);e[t]=a});function s(t,a){n!=null&&(n=a.getDimension(n));function l(_){return a.getItemVisual(f,_)}function u(_,I){a.setItemVisual(f,_,I)}for(var f;(f=t.next())!=null;){var p=a.getRawDataItem(f);if(p&&p.visualMap===!1)continue;for(var g=n!=null?a.get(n,f,!0):f,A=o(g),y=r[A],x=e[A],T=0,S=x.length;T<S;T++){var b=x[T];y[b]&&y[b].applyVisual(g,l,u)}}}return{progress:s}}P.createVisualMappings=w,P.replaceVisualOption=m,P.applyVisual=h,P.incrementalApplyVisual=c},KCsZ:function(j,P,d){var O=d("bYtY");function E(C){for(var v=0;v<C.length;v++)C[v][1]||(C[v][1]=C[v][0]);return function(w,m,h){for(var c={},i=0;i<C.length;i++){var r=C[i][1];if(m&&O.indexOf(m,r)>=0||h&&O.indexOf(h,r)<0)continue;var o=w.getShallow(r);o!=null&&(c[C[i][0]]=o)}return c}}j.exports=E},KPFz:function(j,P,d){},KQeH:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},KS52:function(j,P,d){var O=d("OELB"),E=O.parsePercent,C=O.linearMap,v=d("+TT/"),w=d("u3DP"),m=d("bYtY"),h=Math.PI*2,c=Math.PI/180;function i(o,n){return v.getLayoutRect(o.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function r(o,n,e,s){n.eachSeriesByType(o,function(t){var a=t.getData(),l=a.mapDimension("value"),u=i(t,e),f=t.get("center"),p=t.get("radius");m.isArray(p)||(p=[0,p]),m.isArray(f)||(f=[f,f]);var g=E(u.width,e.getWidth()),A=E(u.height,e.getHeight()),y=Math.min(g,A),x=E(f[0],g)+u.x,T=E(f[1],A)+u.y,S=E(p[0],y/2),b=E(p[1],y/2),_=-t.get("startAngle")*c,I=t.get("minAngle")*c,L=0;a.each(l,function(Y){!isNaN(Y)&&L++});var D=a.getSum(l),N=Math.PI/(D||L)*2,M=t.get("clockwise"),B=t.get("roseType"),R=t.get("stillShowZeroSum"),H=a.getDataExtent(l);H[0]=0;var F=h,K=0,U=_,V=M?1:-1;if(a.each(l,function(Y,q){var ce;if(isNaN(Y)){a.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:x,cy:T,r0:S,r:B?NaN:b,viewRect:u});return}B!=="area"?ce=D===0&&R?N:Y*N:ce=h/L,ce<I?(ce=I,F-=I):K+=Y;var ie=U+V*ce;a.setItemLayout(q,{angle:ce,startAngle:U,endAngle:ie,clockwise:M,cx:x,cy:T,r0:S,r:B?C(Y,H,[S,b]):b,viewRect:u}),U=ie}),F<h&&L)if(F<=.001){var z=h/L;a.each(l,function(Y,q){if(!isNaN(Y)){var ce=a.getItemLayout(q);ce.angle=z,ce.startAngle=_+V*q*z,ce.endAngle=_+V*(q+1)*z}})}else N=F/K,U=_,a.each(l,function(Y,q){if(!isNaN(Y)){var ce=a.getItemLayout(q),ie=ce.angle===I?I:Y*N;ce.startAngle=U,ce.endAngle=U+V*ie,U+=V*ie}});w(t,b,u.width,u.height,u.x,u.y)})}j.exports=r},KUOm:function(j,P){function d(O){var E={};O.eachSeriesByType("graph",function(C){var v=C.getCategoriesData(),w=C.getData(),m={};v.each(function(h){var c=v.getName(h);m["ec-"+c]=h;var i=v.getItemModel(h),r=i.get("itemStyle.color")||C.getColorFromPalette(c,E);v.setItemVisual(h,"color",r);for(var o=["opacity","symbol","symbolSize","symbolKeepAspect"],n=0;n<o.length;n++){var e=i.getShallow(o[n],!0);e!=null&&v.setItemVisual(h,o[n],e)}}),v.count()&&w.each(function(h){var c=w.getItemModel(h),i=c.getShallow("category");if(i!=null){typeof i=="string"&&(i=m["ec-"+i]);for(var r=["color","opacity","symbol","symbolSize","symbolKeepAspect"],o=0;o<r.length;o++)w.getItemVisual(h,r[o],!0)==null&&w.setItemVisual(h,r[o],v.getItemVisual(i,r[o]))}})})}j.exports=d},Kagy:function(j,P){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:""}}}};j.exports=d},KamJ:function(j,P,d){var O=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("BuqR"),d("AE9C"),d("1u/T"),O.registerPreprocessor(E)},KmBX:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("CP8R")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="FilterFilled";var c=v.forwardRef(h);P.default=c},KmYQ:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.ZeroPadding={pad:function(C,v){var w=v*4;C.clamp(),C.sigBytes+=w-(C.sigBytes%w||w)},unpad:function(C){for(var v=C.words,w=C.sigBytes-1,w=C.sigBytes-1;w>=0;w--)if(v[w>>>2]>>>24-w%4*8&255){C.sigBytes=w+1;break}}},O.pad.ZeroPadding})},"KpQ+":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("E/ki")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="ClockCircleOutlined";var c=v.forwardRef(h);P.default=c},KrTs:function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("cDf5"),v=d.n(C),w=d("pVnL"),m=d.n(w),h=d("q1tI"),c=d("UmKh"),i=d("TSYQ"),r=d.n(i),o=d("J4zp"),n=d.n(o),e=d("H84U"),s=d("0n0R"),t=function(b,_){var I={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&_.indexOf(L)<0&&(I[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])&&(I[L[D]]=b[L[D]]);return I};function a(b){return b?b.toString().split("").reverse().map(function(_){var I=Number(_);return isNaN(I)?_:I}):[]}function l(b,_){for(var I=[],L=0;L<30;L++)I.push(h.createElement("p",{key:L.toString(),className:r()(_,{current:b===L})},L%10));return I}var u=function(_){var I=_.prefixCls,L=_.count,D=_.className,N=_.style,M=_.title,B=_.component,R=B===void 0?"sup":B,H=_.displayComponent,F=_.onAnimated,K=F===void 0?function(){}:F,U=t(_,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),V=h.useState(!0),z=n()(V,2),Y=z[0],q=z[1],ce=h.useState(L),ie=n()(ce,2),ve=ie[0],Ee=ie[1],Le=h.useState(L),He=n()(Le,2),ge=He[0],Fe=He[1],Q=h.useState(L),fe=n()(Q,2),Je=fe[0],ne=fe[1],X=h.useContext(e.b),G=X.getPrefixCls,te=G("scroll-number",I);ge!==L&&(q(!0),Fe(L)),h.useEffect(function(){ne(ve);var le;return Y&&(le=setTimeout(function(){q(!1),Ee(L),K()})),function(){le&&clearTimeout(le)}},[Y,L,K]);var we=function(me,_e){var $e=Math.abs(Number(ve)),gt=Math.abs(Number(Je)),et=Math.abs(a(ve)[_e]),Ie=Math.abs(a(gt)[_e]);return Y?10+me:$e>gt?et>=Ie?10+me:20+me:et<=Ie?10+me:me},he=function(me,_e){if(typeof me=="number"){var $e=we(me,_e),gt=Y||a(Je)[_e]===void 0;return h.createElement("span",{className:"".concat(te,"-only"),style:{transition:gt?"none":void 0,msTransform:"translateY(".concat(-$e*100,"%)"),WebkitTransform:"translateY(".concat(-$e*100,"%)"),transform:"translateY(".concat(-$e*100,"%)")},key:_e},l($e,"".concat(te,"-only-unit")))}return h.createElement("span",{key:"symbol",className:"".concat(te,"-symbol")},me)},Pe=function(){return ve&&Number(ve)%1===0?a(ve).map(function(me,_e){return he(me,_e)}).reverse():ve},Oe=m()(m()({},U),{style:N,className:r()(te,D),title:M});return N&&N.borderColor&&(Oe.style=m()(m()({},N),{boxShadow:"0 0 0 1px ".concat(N.borderColor," inset")})),H?Object(s.a)(H,{className:r()("".concat(te,"-custom-component"),H.props&&H.props.className)}):h.createElement(R,Oe,Pe())},f=u,p=d("09Wf");function g(b){return p.a.indexOf(b)!==-1}var A=function(_){var I,L=_.className,D=_.prefixCls,N=_.style,M=_.color,B=_.children,R=_.text,H=_.placement,F=H===void 0?"end":H,K=h.useContext(e.b),U=K.getPrefixCls,V=K.direction,z=U("ribbon",D),Y=g(M),q=r()(z,L,"".concat(z,"-placement-").concat(F),(I={},E()(I,"".concat(z,"-rtl"),V==="rtl"),E()(I,"".concat(z,"-color-").concat(M),Y),I)),ce={},ie={};return M&&!Y&&(ce.background=M,ie.color=M),h.createElement("div",{className:"".concat(z,"-wrapper")},B,h.createElement("div",{className:q,style:m()(m()({},ce),N)},R,h.createElement("div",{className:"".concat(z,"-corner"),style:ie})))},y=A,x=function(b,_){var I={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&_.indexOf(L)<0&&(I[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])&&(I[L[D]]=b[L[D]]);return I},T=function(_){var I,L,D=_.prefixCls,N=_.scrollNumberPrefixCls,M=_.children,B=_.status,R=_.text,H=_.color,F=_.count,K=F===void 0?null:F,U=_.overflowCount,V=U===void 0?99:U,z=_.dot,Y=z===void 0?!1:z,q=_.size,ce=q===void 0?"default":q,ie=_.title,ve=_.offset,Ee=_.style,Le=_.className,He=_.showZero,ge=He===void 0?!1:He,Fe=x(_,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Q=h.useContext(e.b),fe=Q.getPrefixCls,Je=Q.direction,ne=fe("badge",D),X=function(){var Ot=K>V?"".concat(V,"+"):K;return Ot},G=function(){return!!B||!!H},te=function(){var Ot=X();return Ot==="0"||Ot===0},we=function(){return Y&&!te()||G()},he=function(){return we()?"":X()},Pe=function(){return ie||(typeof K=="string"||typeof K=="number"?K:void 0)},Oe=function(){return Je==="rtl"?ve?m()({left:parseInt(ve[0],10),marginTop:ve[1]},Ee):Ee:ve?m()({right:-parseInt(ve[0],10),marginTop:ve[1]},Ee):Ee},le=function(){var Ot=he(),Et=Ot==null||Ot==="";return(Et||te()&&!ge)&&!we()},me=function(){var Ot=le();return Ot||!R?null:h.createElement("span",{className:"".concat(ne,"-status-text")},R)},_e=function(){var Ot=K;return!Ot||v()(Ot)!=="object"?void 0:Object(s.a)(Ot,{style:m()(m()({},Oe()),Ot.props&&Ot.props.style)})},$e=function(){var Ot,Et=fe("scroll-number",N),Tt=he(),Rt=we(),Be=le(),Z=r()((Ot={},E()(Ot,"".concat(ne,"-dot"),Rt),E()(Ot,"".concat(ne,"-count"),!Rt),E()(Ot,"".concat(ne,"-count-sm"),ce==="small"),E()(Ot,"".concat(ne,"-multiple-words"),!Rt&&K&&K.toString&&K.toString().length>1),E()(Ot,"".concat(ne,"-status-").concat(B),!!B),E()(Ot,"".concat(ne,"-status-").concat(H),g(H)),Ot)),J=Oe();return H&&!g(H)&&(J=J||{},J.background=H),Be?null:h.createElement(f,{prefixCls:Et,"data-show":!Be,className:Z,count:Tt,displayComponent:_e(),title:Pe(),style:J,key:"scrollNumber"})},gt=r()((I={},E()(I,"".concat(ne,"-status-dot"),G()),E()(I,"".concat(ne,"-status-").concat(B),!!B),E()(I,"".concat(ne,"-status-").concat(H),g(H)),I)),et={};H&&!g(H)&&(et.background=H);var Ie=r()(Le,ne,(L={},E()(L,"".concat(ne,"-status"),G()),E()(L,"".concat(ne,"-not-a-wrapper"),!M),E()(L,"".concat(ne,"-rtl"),Je==="rtl"),L));if(!M&&G()){var rt=Oe(),Ge=rt&&rt.color;return h.createElement("span",m()({},Fe,{className:Ie,style:rt}),h.createElement("span",{className:gt,style:et}),h.createElement("span",{style:{color:Ge},className:"".concat(ne,"-status-text")},R))}return h.createElement("span",m()({},Fe,{className:Ie}),M,h.createElement(c.a,{component:"",showProp:"data-show",transitionName:M?"".concat(ne,"-zoom"):"",transitionAppear:!0},$e()),me())};T.Ribbon=y;var S=P.a=T},Kvyg:function(j,P,d){},KxBF:function(j,P){function d(O,E,C){var v=-1,w=O.length;E<0&&(E=-E>w?0:w+E),C=C>w?w:C,C<0&&(C+=w),w=E>C?0:C-E>>>0,E>>>=0;for(var m=Array(w);++v<w;)m[v]=O[v+E];return m}j.exports=d},KxFI:function(j,P,d){},KxfA:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=C.isTypedArray,w=C.extend,m=C.assert,h=C.each,c=C.isObject,i=d("4NO4"),r=i.getDataItemValue,o=i.isDataItemOption,n=d("OELB"),e=n.parseDate,s=d("7G+c"),t=d("k9D9"),a=t.SOURCE_FORMAT_TYPED_ARRAY,l=t.SOURCE_FORMAT_ARRAY_ROWS,u=t.SOURCE_FORMAT_ORIGINAL,f=t.SOURCE_FORMAT_OBJECT_ROWS;function p(M,B){s.isInstance(M)||(M=s.seriesDataToSource(M)),this._source=M;var R=this._data=M.data,H=M.sourceFormat;H===a&&(this._offset=0,this._dimSize=B,this._data=R);var F=A[H===l?H+"_"+M.seriesLayoutBy:H];w(this,F)}var g=p.prototype;g.pure=!1,g.persistent=!0,g.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:T},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 B=[],R=this._data,H=0;H<R.length;H++){var F=R[H];B.push(F?F[M]:null)}return B},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:y,getItem:x,appendData:T},keyedColumns:{pure:!0,count:function(){var M=this._source.dimensionsDefine[0].name,B=this._data[M];return B?B.length:0},getItem:function(M){for(var B=[],R=this._source.dimensionsDefine,H=0;H<R.length;H++){var F=this._data[R[H].name];B.push(F?F[M]:null)}return B},appendData:function(M){var B=this._data;h(M,function(R,H){for(var F=B[H]||(B[H]=[]),K=0;K<(R||[]).length;K++)F.push(R[K])})}},original:{count:y,getItem:x,appendData:T},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(M,B){M=M-this._offset,B=B||[];for(var R=this._dimSize*M,H=0;H<this._dimSize;H++)B[H]=this._data[R+H];return B},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 T(M){for(var B=0;B<M.length;B++)this._data.push(M[B])}var S={arrayRows:b,objectRows:function(M,B,R,H){return R!=null?M[H]:M},keyedColumns:b,original:function(M,B,R,H){var F=r(M);return R==null||!(F instanceof Array)?F:F[R]},typedArray:b};function b(M,B,R,H){return R!=null?M[R]:M}var _={arrayRows:I,objectRows:function(M,B,R,H){return L(M[B],this._dimensionInfos[B])},keyedColumns:I,original:function(M,B,R,H){var F=M&&(M.value==null?M:M.value);return!this._rawData.pure&&o(M)&&(this.hasItemOption=!0),L(F instanceof Array?F[H]:F,this._dimensionInfos[B])},typedArray:function(M,B,R,H){return M[H]}};function I(M,B,R,H){return L(M[H],this._dimensionInfos[B])}function L(M,B){var R=B&&B.type;if(R==="ordinal"){var H=B&&B.ordinalMeta;return H?H.parseAndCollect(M):M}return R==="time"&&typeof M!="number"&&M!=null&&M!=="-"&&(M=+e(M)),M==null||M===""?NaN:+M}function D(M,B,R){if(!M)return;var H=M.getRawDataItem(B);if(H==null)return;var F=M.getProvider().getSource().sourceFormat,K,U,V=M.getDimensionInfo(R);return V&&(K=V.name,U=V.index),S[F](H,B,U,K)}function N(M,B,R){if(!M)return;var H=M.getProvider().getSource().sourceFormat;if(H!==u&&H!==f)return;var F=M.getRawDataItem(B);if(H===u&&!c(F)&&(F=null),F)return F[R]}P.DefaultDataProvider=p,P.defaultDimValueGetters=_,P.retrieveRawValue=D,P.retrieveRawAttr=N},L0Ub:function(j,P,d){var O=d("bYtY"),E=O.each,C=O.createHashMap,v=O.assert,w=d("Tghj"),m=w.__DEV__,h=C(["tooltip","label","itemName","itemId","seriesName"]);function c(n){var e={},s=e.encode={},t=C(),a=[],l=[],u=e.userOutput={dimensionNames:n.dimensions.slice(),encode:{}};E(n.dimensions,function(y){var x=n.getDimensionInfo(y),T=x.coordDim;if(T){var S=x.coordDimIndex;i(s,T)[S]=y,x.isExtraCoord||(t.set(T,1),o(x.type)&&(a[0]=y),i(u.encode,T)[S]=x.index),x.defaultTooltip&&l.push(y)}h.each(function(b,_){var I=i(s,_),L=x.otherDims[_];L!=null&&L!==!1&&(I[L]=x.name)})});var f=[],p={};t.each(function(y,x){var T=s[x];p[x]=T[0],f=f.concat(T)}),e.dataDimsOnCoord=f,e.encodeFirstDimNotExtra=p;var g=s.label;g&&g.length&&(a=g.slice());var A=s.tooltip;return A&&A.length?l=A.slice():l.length||(l=a.slice()),s.defaultedLabel=a,s.defaultedTooltip=l,e}function i(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function r(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function o(n){return!(n==="ordinal"||n==="time")}P.OTHER_DIMENSIONS=h,P.summarizeDimensions=c,P.getDimensionTypeByAxis=r},L3Oj:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("HjIi");d("HM/N"),d("9eas"),d("eS4l"),d("y4/Y"),d("as94"),O.registerLayout(E.curry(C,"bar")),O.extendComponentView({type:"polar"})},L41K:function(j,P,d){"use strict";d.d(P,"a",function(){return K});var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("7W2i"),r=d.n(i),o=d("LQ03"),n=d.n(o),e=d("q1tI"),s=d.n(e),t=d("BGR+"),a=d("VTBJ"),l=d("rePB"),u=d("Ff2n"),f=d("1OyB"),p=d("vuIU"),g=d("Ji7U"),A=d("LK+K"),y=d("Zm9Q"),x=d("TSYQ"),T=d.n(x),S=["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(g.a)(z,U);var V=Object(A.a)(z);function z(){var Y;return Object(f.a)(this,z),Y=V.apply(this,arguments),Y.onClick=function(){var q=Y.props,ce=q.onClick,ie=q.onStepClick,ve=q.stepIndex;ce&&ce.apply(void 0,arguments),ie(ve)},Y}return Object(p.a)(z,[{key:"renderIconNode",value:function(){var q,ce=this.props,ie=ce.prefixCls,ve=ce.progressDot,Ee=ce.stepIcon,Le=ce.stepNumber,He=ce.status,ge=ce.title,Fe=ce.description,Q=ce.icon,fe=ce.iconPrefix,Je=ce.icons,ne,X=T()("".concat(ie,"-icon"),"".concat(fe,"icon"),(q={},Object(l.a)(q,"".concat(fe,"icon-").concat(Q),Q&&b(Q)),Object(l.a)(q,"".concat(fe,"icon-check"),!Q&&He==="finish"&&(Je&&!Je.finish||!Je)),Object(l.a)(q,"".concat(fe,"icon-cross"),!Q&&He==="error"&&(Je&&!Je.error||!Je)),q)),G=e.createElement("span",{className:"".concat(ie,"-icon-dot")});return ve?typeof ve=="function"?ne=e.createElement("span",{className:"".concat(ie,"-icon")},ve(G,{index:Le-1,status:He,title:ge,description:Fe})):ne=e.createElement("span",{className:"".concat(ie,"-icon")},G):Q&&!b(Q)?ne=e.createElement("span",{className:"".concat(ie,"-icon")},Q):Je&&Je.finish&&He==="finish"?ne=e.createElement("span",{className:"".concat(ie,"-icon")},Je.finish):Je&&Je.error&&He==="error"?ne=e.createElement("span",{className:"".concat(ie,"-icon")},Je.error):Q||He==="finish"||He==="error"?ne=e.createElement("span",{className:X}):ne=e.createElement("span",{className:"".concat(ie,"-icon")},Le),Ee&&(ne=Ee({index:Le-1,status:He,title:ge,description:Fe,node:ne})),ne}},{key:"render",value:function(){var q,ce=this.props,ie=ce.className,ve=ce.prefixCls,Ee=ce.style,Le=ce.active,He=ce.status,ge=He===void 0?"wait":He,Fe=ce.iconPrefix,Q=ce.icon,fe=ce.wrapperStyle,Je=ce.stepNumber,ne=ce.disabled,X=ce.description,G=ce.title,te=ce.subTitle,we=ce.progressDot,he=ce.stepIcon,Pe=ce.tailContent,Oe=ce.icons,le=ce.stepIndex,me=ce.onStepClick,_e=ce.onClick,$e=Object(u.a)(ce,S),gt=T()("".concat(ve,"-item"),"".concat(ve,"-item-").concat(ge),ie,(q={},Object(l.a)(q,"".concat(ve,"-item-custom"),Q),Object(l.a)(q,"".concat(ve,"-item-active"),Le),Object(l.a)(q,"".concat(ve,"-item-disabled"),ne===!0),q)),et=Object(a.a)({},Ee),Ie={};return me&&!ne&&(Ie.role="button",Ie.tabIndex=0,Ie.onClick=this.onClick),e.createElement("div",Object.assign({},$e,{className:gt,style:et}),e.createElement("div",Object.assign({onClick:_e},Ie,{className:"".concat(ve,"-item-container")}),e.createElement("div",{className:"".concat(ve,"-item-tail")},Pe),e.createElement("div",{className:"".concat(ve,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(ve,"-item-content")},e.createElement("div",{className:"".concat(ve,"-item-title")},G,te&&e.createElement("div",{title:typeof te=="string"?te:void 0,className:"".concat(ve,"-item-subtitle")},te)),X&&e.createElement("div",{className:"".concat(ve,"-item-description")},X))))}}]),z}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],L=function(U){Object(g.a)(z,U);var V=Object(A.a)(z);function z(){var Y;return Object(f.a)(this,z),Y=V.apply(this,arguments),Y.onStepClick=function(q){var ce=Y.props,ie=ce.onChange,ve=ce.current;ie&&ve!==q&&ie(q)},Y}return Object(p.a)(z,[{key:"render",value:function(){var q,ce=this,ie=this.props,ve=ie.prefixCls,Ee=ie.style,Le=Ee===void 0?{}:Ee,He=ie.className,ge=ie.children,Fe=ie.direction,Q=ie.type,fe=ie.labelPlacement,Je=ie.iconPrefix,ne=ie.status,X=ie.size,G=ie.current,te=ie.progressDot,we=ie.stepIcon,he=ie.initial,Pe=ie.icons,Oe=ie.onChange,le=Object(u.a)(ie,I),me=Q==="navigation",_e=te?"vertical":fe,$e=T()(ve,"".concat(ve,"-").concat(Fe),He,(q={},Object(l.a)(q,"".concat(ve,"-").concat(X),X),Object(l.a)(q,"".concat(ve,"-label-").concat(_e),Fe==="horizontal"),Object(l.a)(q,"".concat(ve,"-dot"),!!te),Object(l.a)(q,"".concat(ve,"-navigation"),me),q));return s.a.createElement("div",Object.assign({className:$e,style:Le},le),Object(y.a)(ge).map(function(gt,et){var Ie=he+et,rt=Object(a.a)({stepNumber:"".concat(Ie+1),stepIndex:Ie,key:Ie,prefixCls:ve,iconPrefix:Je,wrapperStyle:Le,progressDot:te,stepIcon:we,icons:Pe,onStepClick:Oe&&ce.onStepClick},gt.props);return ne==="error"&&et===G-1&&(rt.className="".concat(ve,"-next-error")),gt.props.status||(Ie===G?rt.status=ne:Ie<G?rt.status="finish":rt.status="wait"),rt.active=Ie===G,Object(e.cloneElement)(gt,rt)}))}}]),z}(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),B=d("V/uB"),R=d.n(B),H=d("H84U"),F=d("CFYs"),K=function(U){r()(z,U);var V=n()(z);function z(){var Y;return m()(this,z),Y=V.apply(this,arguments),Y.renderSteps=function(q){var ce=q.getPrefixCls,ie=q.direction,ve=ce("steps",Y.props.prefixCls),Ee=ce("",Y.props.iconPrefix),Le=Y.props,He=Le.percent,ge=Le.size,Fe=T()(Y.props.className,v()({},"".concat(ve,"-rtl"),ie==="rtl")),Q={finish:e.createElement(M.a,{className:"".concat(ve,"-finish-icon")}),error:e.createElement(R.a,{className:"".concat(ve,"-error-icon")})},fe=function(ne){var X=ne.node,G=ne.status;if(G==="process"&&He!==void 0){var te=ge==="small"?32:40,we=e.createElement("div",{className:"".concat(ve,"-progress-icon")},e.createElement(F.a,{type:"circle",percent:He,width:te,strokeWidth:4,format:function(){return null}}),X);return we}return X};return e.createElement(D,E()({icons:Q},Object(t.default)(Y.props,["progress"]),{stepIcon:fe,prefixCls:ve,iconPrefix:Ee,className:Fe}))},Y}return c()(z,[{key:"render",value:function(){return e.createElement(H.a,null,this.renderSteps)}}]),z}(e.Component);K.Step=D.Step,K.defaultProps={current:0}},L5E0:function(j,P){var d=["itemStyle","borderColor"];function O(E,C){var v=E.get("color");E.eachRawSeriesByType("boxplot",function(w){var m=v[w.seriesIndex%v.length],h=w.getData();h.setVisual({legendSymbol:"roundRect",color:w.get(d)||m}),E.isSeriesFiltered(w)||h.each(function(c){var i=h.getItemModel(c);h.setItemVisual(c,{color:i.get(d,!0)})})})}j.exports=O},LBfv:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=E.createHashMap,v=E.each;O.registerProcessor({getTargetSeries:function(w){var m=C();return w.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(c,i,r){var o=r.getAxisProxy(c.name,i);v(o.getTargetSeriesModels(),function(n){m.set(n.uid,n)})})}),m},modifyOutputEnd:!0,overallReset:function(w,m){w.eachComponent("dataZoom",function(h){h.eachTargetAxis(function(c,i,r){r.getAxisProxy(c.name,i).reset(r,m)}),h.eachTargetAxis(function(c,i,r){r.getAxisProxy(c.name,i).filterData(r,m)})}),w.eachComponent("dataZoom",function(h){var c=h.findRepresentativeAxisProxy(),i=c.getDataPercentWindow(),r=c.getDataValueWindow();h.setCalculatedRange({start:i[0],end:i[1],startValue:r[0],endValue:r[1]})})}})},LCi9:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function E(p,g){for(var A=0;A<g.length;A++){var y=g[A];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function C(p,g,A){return g&&E(p.prototype,g),A&&E(p,A),p}var v=0,w=1,m=2,h=4,c=8,i=16,r=32,o=64,n=127,e=50,s=90,t=250,a=1e3,l=1e3,u=50,f=function(){function p(){O(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 C(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 T=A.changedTouches[x];y.call(this,T.identifier,T.clientX,T.clientY)}}},{key:"_touchStart",value:function(A,y,x){if(this._hasDetectedGesture()||this._state===v){this._ignored.push(A);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>t){this._state=v,this._ignored.push(A);return}if(this._waitingRelease){this._state=v,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&=~(w|c|i),this._stopLongpressTimeout();break;case 3:this._state&=~(m|r|o);break;default:this._state=v}}},{key:"_touchMove",value:function(A,y,x){var T=this._tracked.find(function(D){return D.id===A});if(T===void 0)return;T.lastX=y,T.lastY=x;var S=y-T.firstX,b=x-T.firstY;if((T.firstX!==T.lastX||T.firstY!==T.lastY)&&(T.angle=Math.atan2(b,S)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(S,b)<e)return;if(this._state&=~(w|m|h|i),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~c),this._tracked.length!==2&&(this._state&=~(r|o)),this._tracked.length===2){var _=this._tracked.find(function(D){return D.id!==A}),I=Math.hypot(_.firstX-_.lastX,_.firstY-_.lastY);if(I>e){var L=Math.abs(T.angle-_.angle);L=Math.abs((L+180)%360-180),L>s?this._state&=~r:this._state&=~o,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=v),!this._hasDetectedGesture()&&(this._state&=~(c|r|o),this._state&=~i,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&=~(w|h);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=v),this._tracked.some(function(b){return Date.now()-b.started>a})&&(this._state=v);var T=this._tracked.find(function(b){return b.id===A});if(T.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==v)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var S=0;S<this._tracked.length;S++)this._tracked[S].active&&this._ignored.push(this._tracked[S].id);this._tracked=[],this._state=v,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===v||this._state&this._state-1?!1:!(this._state&(w|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=i,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),T=this._getAverageDistance(),S=Math.abs(Math.hypot(T.first.x,T.first.y)-Math.hypot(T.last.x,T.last.y));x<S&&y<S?this._state=o:this._state=r,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(A){var y={type:this._stateToGesture(this._state)},x=this._getPosition(),T=x.last;A==="gesturestart"&&(T=x.first);switch(this._state){case r:case o:T=x.first;break}if(y.clientX=T.x,y.clientY=T.y,this._state===o){var S=this._getAverageDistance();A==="gesturestart"?(y.magnitudeX=S.first.x,y.magnitudeY=S.first.y):(y.magnitudeX=S.last.x,y.magnitudeY=S.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 w:return"onetap";case m:return"twotap";case h:return"threetap";case c:return"drag";case i:return"longpress";case r:return"twodrag";case o: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,T=0,S=0,b=0;b<this._tracked.length;b++)y+=this._tracked[b].firstX,x+=this._tracked[b].firstY,T+=this._tracked[b].lastX,S+=this._tracked[b].lastY;return{first:{x:y/A,y:x/A},last:{x:T/A,y:S/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,T=0;T<this._tracked.length;T++)A+=this._tracked[T].lastX-this._tracked[T].firstX,y+=this._tracked[T].lastY-this._tracked[T].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),T=Math.abs(y.firstY-A.firstY),S=Math.abs(y.lastX-A.lastX),b=Math.abs(y.lastY-A.lastY);return{first:{x,y:T},last:{x:S,y:b}}}}]),p}();P.default=f},LPTA:function(j,P){var d=1;typeof window!="undefined"&&(d=Math.max(window.devicePixelRatio||1,1));var O=0,E=d;P.debugMode=O,P.devicePixelRatio=E},LPzL:function(j,P,d){var O=d("ProS");d("QzjZ"),d("vL6D"),d("xiyX"),d("y4/Y"),d("8Th4"),O.extendComponentView({type:"single"})},LSTS:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O=function(){function n(e,s){for(var t=0;t<s.length;t++){var a=s[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,s,t){return s&&n(e.prototype,s),t&&n(e,t),e}}(),E=d("q1tI"),C=m(E),v=d("17x9"),w=m(v);function m(n){return n&&n.__esModule?n:{default:n}}function h(n,e){var s={};for(var t in n){if(e.indexOf(t)>=0)continue;if(!Object.prototype.hasOwnProperty.call(n,t))continue;s[t]=n[t]}return s}function c(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function i(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function r(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var o=function(n){r(e,n);function e(s){c(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s));return t.scrollListener=t.scrollListener.bind(t),t.eventListenerOptions=t.eventListenerOptions.bind(t),t.mousewheelListener=t.mousewheelListener.bind(t),t}return O(e,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,a={get passive(){t=!0}};try{document.addEventListener("test",null,a),document.removeEventListener("test",null,a)}catch(l){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var a=this.props.getScrollParent&&this.props.getScrollParent();return a!=null?a:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;var a=window;this.props.useWindow===!1&&(a=t),a.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),a.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,a=window,l=this.getParentElement(t),u=void 0;if(this.props.useWindow){var f=document.documentElement||document.body.parentNode||document.body,p=a.pageYOffset!==void 0?a.pageYOffset:f.scrollTop;this.props.isReverse?u=p:u=this.calculateOffset(t,p)}else this.props.isReverse?u=l.scrollTop:u=t.scrollHeight-l.scrollTop-l.clientHeight;u<Number(this.props.threshold)&&t&&t.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(t,a){return t?this.calculateTopPosition(t)+(t.offsetHeight-a-window.innerHeight):0}},{key:"calculateTopPosition",value:function(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}},{key:"render",value:function(){var t=this,a=this.filterProps(this.props),l=a.children,u=a.element,f=a.hasMore,p=a.initialLoad,g=a.isReverse,A=a.loader,y=a.loadMore,x=a.pageStart,T=a.ref,S=a.threshold,b=a.useCapture,_=a.useWindow,I=a.getScrollParent,L=h(a,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);L.ref=function(N){t.scrollComponent=N,T&&T(N)};var D=[l];return f&&(A?g?D.unshift(A):D.push(A):this.defaultLoader&&(g?D.unshift(this.defaultLoader):D.push(this.defaultLoader))),C.default.createElement(u,L,D)}}]),e}(E.Component);o.propTypes={children:w.default.node.isRequired,element:w.default.node,hasMore:w.default.bool,initialLoad:w.default.bool,isReverse:w.default.bool,loader:w.default.node,loadMore:w.default.func.isRequired,pageStart:w.default.number,ref:w.default.func,getScrollParent:w.default.func,threshold:w.default.number,useCapture:w.default.bool,useWindow:w.default.bool},o.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},P.default=o,j.exports=P.default},Lerx:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("Mds0"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},Llu2:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="DeliveredProcedureOutlined";var h=P.a=E.forwardRef(m)},Lo0S:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.initLogging=m,P.getLogging=h,P.Error=P.Warn=P.Info=P.Debug=void 0;var O="warn",E=function(){};P.Debug=E;var C=function(){};P.Info=C;var v=function(){};P.Warn=v;var w=function(){};P.Error=w;function m(c){if(typeof c=="undefined"?c=O:O=c,P.Debug=E=P.Info=C=P.Warn=v=P.Error=w=function(){},typeof window.console!="undefined")switch(c){case"debug":P.Debug=E=console.debug.bind(window.console);case"info":P.Info=C=console.info.bind(window.console);case"warn":P.Warn=v=console.warn.bind(window.console);case"error":P.Error=w=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+c+"'")}}function h(){return O}m()},LtfV:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="InboxOutlined";var h=P.a=E.forwardRef(m)},Lyp1:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="QuestionCircleOutlined";var h=P.a=E.forwardRef(m)},LzGr:function(j,P,d){var O=d("ProS"),E=d("rnVJ");d("EMyp"),d("8x+h"),d("wt3j"),d("uOyE"),d("/stD"),O.registerPreprocessor(E)},MBQ8:function(j,P,d){var O=d("T4UG"),E=d("MwEJ"),C=O.extend({type:"series.__base_bar__",getInitialData:function(v,w){return E(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(v){var w=this.coordinateSystem;if(w){var m=w.dataToPoint(w.clampData(v)),h=this.getData(),c=h.getLayout("offset"),i=h.getLayout("size"),r=w.getBaseAxis().isHorizontal()?0:1;return m[r]+=c+i/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:{}}});j.exports=C},MEGo:function(j,P,d){var O=d("4fz+"),E=d("Dagg"),C=d("dqUG"),v=d("2fw6"),w=d("x6Kt"),m=d("rmlV"),h=d("yxFR"),c=d("y+Vt"),i=d("h7HQ"),r=d("1Jh7"),o=d("SKnc"),n=d("K2GJ"),e=d("Fofx"),s=d("NC18"),t=s.createFromString,a=d("bYtY"),l=a.isString,u=a.extend,f=a.defaults,p=a.trim,g=a.each,A=/[\s,]+/;function y(V){if(l(V)){var z=new DOMParser;V=z.parseFromString(V,"text/xml")}for(V.nodeType===9&&(V=V.firstChild);V.nodeName.toLowerCase()!=="svg"||V.nodeType!==1;)V=V.nextSibling;return V}function x(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}x.prototype.parse=function(V,z){z=z||{};var Y=y(V);if(!Y)throw new Error("Illegal svg");var q=new O;this._root=q;var ce=Y.getAttribute("viewBox")||"",ie=parseFloat(Y.getAttribute("width")||z.width),ve=parseFloat(Y.getAttribute("height")||z.height);isNaN(ie)&&(ie=null),isNaN(ve)&&(ve=null),D(Y,q,null,!0);for(var Ee=Y.firstChild;Ee;)this._parseNode(Ee,q),Ee=Ee.nextSibling;var Le,He;if(ce){var ge=p(ce).split(A);ge.length>=4&&(Le={x:parseFloat(ge[0]||0),y:parseFloat(ge[1]||0),width:parseFloat(ge[2]),height:parseFloat(ge[3])})}if(Le&&ie!=null&&ve!=null&&(He=K(Le,ie,ve),!z.ignoreViewBox)){var Fe=q;q=new O,q.add(Fe),Fe.scale=He.scale.slice(),Fe.position=He.position.slice()}return!z.ignoreRootClip&&ie!=null&&ve!=null&&q.setClipPath(new w({shape:{x:0,y:0,width:ie,height:ve}})),{root:q,width:ie,height:ve,viewBoxRect:Le,viewBoxTransform:He}},x.prototype._parseNode=function(V,z){var Y=V.nodeName.toLowerCase();Y==="defs"?this._isDefine=!0:Y==="text"&&(this._isText=!0);var q;if(this._isDefine){var ce=S[Y];if(ce){var ie=ce.call(this,V),ve=V.getAttribute("id");ve&&(this._defs[ve]=ie)}}else{var ce=T[Y];ce&&(q=ce.call(this,V,z),z.add(q))}for(var Ee=V.firstChild;Ee;)Ee.nodeType===1&&this._parseNode(Ee,q),Ee.nodeType===3&&this._isText&&this._parseText(Ee,q),Ee=Ee.nextSibling;Y==="defs"?this._isDefine=!1:Y==="text"&&(this._isText=!1)},x.prototype._parseText=function(V,z){if(V.nodeType===1){var Y=V.getAttribute("dx")||0,q=V.getAttribute("dy")||0;this._textX+=parseFloat(Y),this._textY+=parseFloat(q)}var ce=new C({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});_(z,ce),D(V,ce,this._defs);var ie=ce.style.fontSize;ie&&ie<9&&(ce.style.fontSize=9,ce.scale=ce.scale||[1,1],ce.scale[0]*=ie/9,ce.scale[1]*=ie/9);var ve=ce.getBoundingRect();return this._textX+=ve.width,z.add(ce),ce};var T={g:function(z,Y){var q=new O;return _(Y,q),D(z,q,this._defs),q},rect:function(z,Y){var q=new w;return _(Y,q),D(z,q,this._defs),q.setShape({x:parseFloat(z.getAttribute("x")||0),y:parseFloat(z.getAttribute("y")||0),width:parseFloat(z.getAttribute("width")||0),height:parseFloat(z.getAttribute("height")||0)}),q},circle:function(z,Y){var q=new v;return _(Y,q),D(z,q,this._defs),q.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),r:parseFloat(z.getAttribute("r")||0)}),q},line:function(z,Y){var q=new h;return _(Y,q),D(z,q,this._defs),q.setShape({x1:parseFloat(z.getAttribute("x1")||0),y1:parseFloat(z.getAttribute("y1")||0),x2:parseFloat(z.getAttribute("x2")||0),y2:parseFloat(z.getAttribute("y2")||0)}),q},ellipse:function(z,Y){var q=new m;return _(Y,q),D(z,q,this._defs),q.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),rx:parseFloat(z.getAttribute("rx")||0),ry:parseFloat(z.getAttribute("ry")||0)}),q},polygon:function(z,Y){var q=z.getAttribute("points");q&&(q=I(q));var ce=new i({shape:{points:q||[]}});return _(Y,ce),D(z,ce,this._defs),ce},polyline:function(z,Y){var q=new c;_(Y,q),D(z,q,this._defs);var ce=z.getAttribute("points");ce&&(ce=I(ce));var ie=new r({shape:{points:ce||[]}});return ie},image:function(z,Y){var q=new E;return _(Y,q),D(z,q,this._defs),q.setStyle({image:z.getAttribute("xlink:href"),x:z.getAttribute("x"),y:z.getAttribute("y"),width:z.getAttribute("width"),height:z.getAttribute("height")}),q},text:function(z,Y){var q=z.getAttribute("x")||0,ce=z.getAttribute("y")||0,ie=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0;this._textX=parseFloat(q)+parseFloat(ie),this._textY=parseFloat(ce)+parseFloat(ve);var Ee=new O;return _(Y,Ee),D(z,Ee,this._defs),Ee},tspan:function(z,Y){var q=z.getAttribute("x"),ce=z.getAttribute("y");q!=null&&(this._textX=parseFloat(q)),ce!=null&&(this._textY=parseFloat(ce));var ie=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0,Ee=new O;return _(Y,Ee),D(z,Ee,this._defs),this._textX+=ie,this._textY+=ve,Ee},path:function(z,Y){var q=z.getAttribute("d")||"",ce=t(q);return _(Y,ce),D(z,ce,this._defs),ce}},S={lineargradient:function(z){var Y=parseInt(z.getAttribute("x1")||0,10),q=parseInt(z.getAttribute("y1")||0,10),ce=parseInt(z.getAttribute("x2")||10,10),ie=parseInt(z.getAttribute("y2")||0,10),ve=new o(Y,q,ce,ie);return b(z,ve),ve},radialgradient:function(z){}};function b(V,z){for(var Y=V.firstChild;Y;){if(Y.nodeType===1){var q=Y.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var ce=Y.getAttribute("stop-color")||"#000000";z.addColorStop(q,ce)}Y=Y.nextSibling}}function _(V,z){V&&V.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),f(z.__inheritedStyle,V.__inheritedStyle))}function I(V){for(var z=p(V).split(A),Y=[],q=0;q<z.length;q+=2){var ce=parseFloat(z[q]),ie=parseFloat(z[q+1]);Y.push([ce,ie])}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(V,z,Y,q){var ce=z.__inheritedStyle||{},ie=z.type==="text";if(V.nodeType===1&&(R(V,z),u(ce,F(V)),!q)){for(var ve in L)if(L.hasOwnProperty(ve)){var Ee=V.getAttribute(ve);Ee!=null&&(ce[L[ve]]=Ee)}}var Le=ie?"textFill":"fill",He=ie?"textStroke":"stroke";z.style=z.style||new n;var ge=z.style;ce.fill!=null&&ge.set(Le,M(ce.fill,Y)),ce.stroke!=null&&ge.set(He,M(ce.stroke,Y)),g(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Fe){var Q=Fe==="lineWidth"&&ie?"textStrokeWidth":Fe;ce[Fe]!=null&&ge.set(Q,parseFloat(ce[Fe]))}),(!ce.textBaseline||ce.textBaseline==="auto")&&(ce.textBaseline="alphabetic"),ce.textBaseline==="alphabetic"&&(ce.textBaseline="bottom"),ce.textAlign==="start"&&(ce.textAlign="left"),ce.textAlign==="end"&&(ce.textAlign="right"),g(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Fe){ce[Fe]!=null&&ge.set(Fe,ce[Fe])}),ce.lineDash&&(z.style.lineDash=p(ce.lineDash).split(A)),ge[He]&&ge[He]!=="none"&&(z[He]=!0),z.__inheritedStyle=ce}var N=/url\(\s*#(.*?)\)/;function M(V,z){var Y=z&&V&&V.match(N);if(Y){var q=p(Y[1]),ce=z[q];return ce}return V}var B=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function R(V,z){var Y=V.getAttribute("transform");if(Y){Y=Y.replace(/,/g," ");var q=null,ce=[];Y.replace(B,function(Le,He,ge){ce.push(He,ge)});for(var ie=ce.length-1;ie>0;ie-=2){var ve=ce[ie],Ee=ce[ie-1];q=q||e.create();switch(Ee){case"translate":ve=p(ve).split(A),e.translate(q,q,[parseFloat(ve[0]),parseFloat(ve[1]||0)]);break;case"scale":ve=p(ve).split(A),e.scale(q,q,[parseFloat(ve[0]),parseFloat(ve[1]||ve[0])]);break;case"rotate":ve=p(ve).split(A),e.rotate(q,q,parseFloat(ve[0]));break;case"skew":ve=p(ve).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":var ve=p(ve).split(A);q[0]=parseFloat(ve[0]),q[1]=parseFloat(ve[1]),q[2]=parseFloat(ve[2]),q[3]=parseFloat(ve[3]),q[4]=parseFloat(ve[4]),q[5]=parseFloat(ve[5]);break}}z.setLocalTransform(q)}}var H=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(V){var z=V.getAttribute("style"),Y={};if(!z)return Y;var q={};H.lastIndex=0;for(var ce;(ce=H.exec(z))!=null;)q[ce[1]]=ce[2];for(var ie in L)L.hasOwnProperty(ie)&&q[ie]!=null&&(Y[L[ie]]=q[ie]);return Y}function K(V,z,Y){var q=z/V.width,ce=Y/V.height,ie=Math.min(q,ce),ve=[ie,ie],Ee=[-(V.x+V.width/2)*ie+z/2,-(V.y+V.height/2)*ie+Y/2];return{scale:ve,position:Ee}}function U(V,z){var Y=new x;return Y.parse(V,z)}P.parseXML=y,P.makeViewBoxTransform=K,P.parseSVG=U},MFOe:function(j,P,d){(function(O){var E=m(),C=h(),v=c(),w=typeof window!="undefined"?window:O;j.exports={assign:E,create:C,trim:v,bind:i,slice:r,each:o,map:n,pluck:e,isList:s,isFunction:t,isObject:a,Global:w};function m(){return Object.assign?Object.assign:function(u,f,p,g){for(var A=1;A<arguments.length;A++)o(Object(arguments[A]),function(y,x){u[x]=y});return u}}function h(){if(Object.create)return function(f,p,g,A){var y=r(arguments,1);return E.apply(this,[Object.create(f)].concat(y))};var l=function(){};return function(f,p,g,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 i(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 o(l,u){e(l,function(f,p){return u(f,p),!1})}function n(l,u){var f=s(l)?[]:{};return e(l,function(p,g){return f[g]=u(p,g),!1}),f}function e(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 t(l){return l&&{}.toString.call(l)==="[object Function]"}function a(l){return l&&{}.toString.call(l)==="[object Object]"}}).call(this,d("IyRk"))},MH26:function(j,P,d){var O=d("bYtY"),E=d("YXkt"),C=d("OELB"),v=d("kj2x"),w=d("c8qY"),m=d("iPDy"),h=d("7hqr"),c=h.getStackedDimension,i=function(a,l,u,f){var p=a.getData(),g=f.type;if(!O.isArray(f)&&(g==="min"||g==="max"||g==="average"||g==="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=O.retrieve(f.yAxis,f.xAxis);else{var x=v.getAxisInfo(f,p,l,a);A=x.valueAxis;var T=c(p,x.valueDataDim);y=v.numCalculate(p,T,g)}var S=A.dim==="x"?0:1,b=1-S,_=O.clone(f),I={};_.type=null,_.coord=[],I.coord=[],_.coord[b]=-Infinity,I.coord[b]=Infinity;var L=u.get("precision");L>=0&&typeof y=="number"&&(y=+y.toFixed(Math.min(L,20))),_.coord[S]=I.coord[S]=y,f=[_,I,{type:g,valueIndex:f.valueIndex,value:y}]}return f=[v.dataTransform(a,f[0]),v.dataTransform(a,f[1]),O.extend({},f[2])],f[2].type=f[2].type||"",O.merge(f[2],f[0]),O.merge(f[2],f[1]),f};function r(a){return!isNaN(a)&&!isFinite(a)}function o(a,l,u,f){var p=1-a,g=f.dimensions[a];return r(l[p])&&r(u[p])&&l[a]===u[a]&&f.getAxis(g).containData(l[a])}function n(a,l){if(a.type==="cartesian2d"){var u=l[0].coord,f=l[1].coord;if(u&&f&&(o(1,u,f,a)||o(0,u,f,a)))return!0}return v.dataFilter(a,l[0])&&v.dataFilter(a,l[1])}function e(a,l,u,f,p){var g=f.coordinateSystem,A=a.getItemModel(l),y,x=C.parsePercent(A.get("x"),p.getWidth()),T=C.parsePercent(A.get("y"),p.getHeight());if(!isNaN(x)&&!isNaN(T))y=[x,T];else{if(f.getMarkerPosition)y=f.getMarkerPosition(a.getValues(a.dimensions,l));else{var S=g.dimensions,b=a.get(S[0],l),_=a.get(S[1],l);y=g.dataToPoint([b,_])}if(g.type==="cartesian2d"){var I=g.getAxis("x"),L=g.getAxis("y"),S=g.dimensions;r(a.get(S[0],l))?y[0]=I.toGlobalCoord(I.getExtent()[u?0:1]):r(a.get(S[1],l))&&(y[1]=L.toGlobalCoord(L.getExtent()[u?0:1]))}isNaN(x)||(y[0]=x),isNaN(T)||(y[1]=T)}a.setItemLayout(l,y)}var s=m.extend({type:"markLine",updateTransform:function(a,l,u){l.eachSeries(function(f){var p=f.markLineModel;if(p){var g=p.getData(),A=p.__from,y=p.__to;A.each(function(x){e(A,x,!0,f,u),e(y,x,!1,f,u)}),g.each(function(x){g.setItemLayout(x,[A.getItemLayout(x),y.getItemLayout(x)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},renderSeries:function(a,l,u,f){var p=a.coordinateSystem,g=a.id,A=a.getData(),y=this.markerGroupMap,x=y.get(g)||y.set(g,new w);this.group.add(x.group);var T=t(p,a,l),S=T.from,b=T.to,_=T.line;l.__from=S,l.__to=b,l.setData(_);var I=l.get("symbol"),L=l.get("symbolSize");O.isArray(I)||(I=[I,I]),typeof L=="number"&&(L=[L,L]),T.from.each(function(N){D(S,N,!0),D(b,N,!1)}),_.each(function(N){var M=_.getItemModel(N).get("lineStyle.color");_.setItemVisual(N,{color:M||S.getItemVisual(N,"color")}),_.setItemLayout(N,[S.getItemLayout(N),b.getItemLayout(N)]),_.setItemVisual(N,{fromSymbolSize:S.getItemVisual(N,"symbolSize"),fromSymbol:S.getItemVisual(N,"symbol"),toSymbolSize:b.getItemVisual(N,"symbolSize"),toSymbol:b.getItemVisual(N,"symbol")})}),x.updateData(_),T.line.eachItemGraphicEl(function(N,M){N.traverse(function(B){B.dataModel=l})});function D(N,M,B){var R=N.getItemModel(M);e(N,M,B,a,f),N.setItemVisual(M,{symbolSize:R.get("symbolSize")||L[B?0:1],symbol:R.get("symbol",!0)||I[B?0:1],color:R.get("itemStyle.color")||A.getVisual("color")})}x.__keep=!0,x.group.silent=l.get("silent")||a.get("silent")}});function t(a,l,u){var f;a?f=O.map(a&&a.dimensions,function(T){var S=l.getData().getDimensionInfo(l.getData().mapDimension(T))||{};return O.defaults({name:T},S)}):f=[{name:"value",type:"float"}];var p=new E(f,u),g=new E(f,u),A=new E([],u),y=O.map(u.get("data"),O.curry(i,l,a,u));a&&(y=O.filter(y,O.curry(n,a)));var x=a?v.dimValueGetter:function(T){return T.value};return p.initData(O.map(y,function(T){return T[0]}),null,x),g.initData(O.map(y,function(T){return T[1]}),null,x),A.initData(O.map(y,function(T){return T[2]})),A.hasItemOption=!0,{from:p,to:g,line:A}}j.exports=s},MHoB:function(j,P,d){var O=d("bYtY"),E=d("6uqw"),C=d("OELB"),v=[20,140],w=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,i){w.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){w.superApply(this,"resetItemSize",arguments);var c=this.itemSize;this._orient==="horizontal"&&c.reverse(),(c[0]==null||isNaN(c[0]))&&(c[0]=v[0]),(c[1]==null||isNaN(c[1]))&&(c[1]=v[1])},_resetRange:function(){var c=this.getExtent(),i=this.option.range;!i||i.auto?(c.auto=1,this.option.range=c):O.isArray(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],c[0]),i[1]=Math.min(i[1],c[1]))},completeVisualOption:function(){E.prototype.completeVisualOption.apply(this,arguments),O.each(this.stateList,function(c){var i=this.option.controller[c].symbolSize;i&&i[0]!==i[1]&&(i[0]=0)},this)},setSelected:function(c){this.option.range=c.slice(),this._resetRange()},getSelected:function(){var c=this.getExtent(),i=C.asc((this.get("range")||[]).slice());return i[0]>c[1]&&(i[0]=c[1]),i[1]>c[1]&&(i[1]=c[1]),i[0]<c[0]&&(i[0]=c[0]),i[1]<c[0]&&(i[1]=c[0]),i},getValueState:function(c){var i=this.option.range,r=this.getExtent();return(i[0]<=r[0]||i[0]<=c)&&(i[1]>=r[1]||c<=i[1])?"inRange":"outOfRange"},findTargetDataIndices:function(c){var i=[];return this.eachTargetSeries(function(r){var o=[],n=r.getData();n.each(this.getDataDimension(n),function(e,s){c[0]<=e&&e<=c[1]&&o.push(s)},this),i.push({seriesId:r.id,dataIndex:o})},this),i},getVisualMeta:function(c){var i=m(this,"outOfRange",this.getExtent()),r=m(this,"inRange",this.option.range.slice()),o=[];function n(f,p){o.push({value:f,color:c(f,p)})}for(var e=0,s=0,t=r.length,a=i.length;s<a&&(!r.length||i[s]<=r[0]);s++)i[s]<r[e]&&n(i[s],"outOfRange");for(var l=1;e<t;e++,l=0)l&&o.length&&n(r[e],"outOfRange"),n(r[e],"inRange");for(var l=1;s<a;s++)(!r.length||r[r.length-1]<i[s])&&(l&&(o.length&&n(o[o.length-1].value,"outOfRange"),l=0),n(i[s],"outOfRange"));var u=o.length;return{stops:o,outerColors:[u?o[0].color:"transparent",u?o[u-1].color:"transparent"]}}});function m(c,i,r){if(r[0]===r[1])return r.slice();for(var o=200,n=(r[1]-r[0])/o,e=r[0],s=[],t=0;t<=o&&e<r[1];t++)s.push(e),e+=n;return s.push(r[1]),s}var h=w;j.exports=h},MHtr:function(j,P,d){var O=d("bYtY");function E(v,w){var m=this.getAxis(),h=w instanceof Array?w[0]:w,c=(v instanceof Array?v[0]:v)/2;return m.type==="category"?m.getBandWidth():Math.abs(m.dataToCoord(h-c)-m.dataToCoord(h+c))}function C(v){var w=v.getRect();return{coordSys:{type:"singleAxis",x:w.x,y:w.y,width:w.width,height:w.height},api:{coord:function(m){return v.dataToPoint(m)},size:O.bind(E,v)}}}j.exports=C},MJZm:function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("q1tI"),m=d("rePB"),h=d("VTBJ"),c=d("KQm4"),i=d("1OyB"),r=d("vuIU"),o=d("Ji7U"),n=d("LK+K"),e=d("4IlW"),s=d("Kwbf"),t=d("TSYQ"),a=d.n(t),l=d("FTAc"),u=d("wPhX"),f=d("c3jg"),p=d("ODXe"),g=d("Ff2n"),A=d("+nKL"),y=d("HTfv"),x=d("lr6o"),T=function(Tt,Rt){var Be=Tt.className,Z=Tt.style,J=Tt.motion,je=Tt.motionNodes,Re=Tt.motionType,oe=Tt.onMotionStart,yt=Tt.onMotionEnd,zt=Tt.active,lt=Tt.treeNodeRequiredProps,$t=Object(g.a)(Tt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),cr=w.useState(!0),cn=Object(p.a)(cr,2),pr=cn[0],gr=cn[1],Zt=w.useContext(l.a),Vt=Zt.prefixCls,mt=w.useRef(!1),Yr=function(){mt.current||yt(),mt.current=!0};return Object(w.useEffect)(function(){je&&Re==="hide"&&pr&&gr(!1)},[je]),Object(w.useEffect)(function(){return je&&oe(),function(){je&&Yr()}},[]),je?w.createElement(y.default,Object.assign({ref:Rt,visible:pr},J,{motionAppear:Re==="show",onAppearEnd:Yr,onLeaveEnd:Yr}),function(Tn,Hn){var ei=Tn.className,ji=Tn.style;return w.createElement("div",{ref:Hn,className:a()("".concat(Vt,"-treenode-motion"),ei),style:ji},je.map(function(Ln){var Vn=Ln.data,kt=Vn.key,wt=Object(g.a)(Vn,["key"]),Te=Ln.isStart,xe=Ln.isEnd;delete wt.children;var Ce=Object(f.f)(kt,lt);return w.createElement(x.a,Object.assign({},wt,Ce,{active:zt,data:Ln.data,key:kt,isStart:Te,isEnd:xe}))}))}):w.createElement(x.a,Object.assign({domRef:Rt,className:Be,style:Z},$t,{active:zt}))};T.displayName="MotionTreeNode";var S=w.forwardRef(T),b=S;function _(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Rt=Et.length,Be=Tt.length;if(Math.abs(Rt-Be)!==1)return{add:!1,key:null};function Z(J,je){var Re=new Map;J.forEach(function(yt){Re.set(yt,!0)});var oe=je.filter(function(yt){return!Re.has(yt)});return oe.length===1?oe[0]:null}return Rt<Be?{add:!0,key:Z(Et,Tt)}:{add:!1,key:Z(Tt,Et)}}function I(Et,Tt,Rt){var Be=Et.findIndex(function(Re){var oe=Re.data;return oe.key===Rt}),Z=Et[Be+1],J=Tt.findIndex(function(Re){var oe=Re.data;return oe.key===Rt});if(Z){var je=Tt.findIndex(function(Re){var oe=Re.data;return oe.key===Z.data.key});return Tt.slice(J+1,je)}return Tt.slice(J+1)}var L={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},D=function(){},N="RC_TREE_MOTION_".concat(Math.random()),M={key:N},B={key:N,level:0,index:0,pos:"0",node:M},R={parent:null,children:[],pos:B.pos,data:M,isStart:[],isEnd:[]};function H(Et,Tt,Rt,Be){return Tt===!1||!Rt?Et:Et.slice(0,Math.ceil(Rt/Be)+1)}function F(Et){var Tt=Et.data.key,Rt=Et.pos;return Object(f.e)(Tt,Rt)}function K(Et){for(var Tt=String(Et.data.key),Rt=Et;Rt.parent;)Rt=Rt.parent,Tt="".concat(Rt.data.key," > ").concat(Tt);return Tt}var U=function(Tt,Rt){var Be=Tt.prefixCls,Z=Tt.data,J=Tt.selectable,je=Tt.checkable,Re=Tt.expandedKeys,oe=Tt.selectedKeys,yt=Tt.checkedKeys,zt=Tt.loadedKeys,lt=Tt.loadingKeys,$t=Tt.halfCheckedKeys,cr=Tt.keyEntities,cn=Tt.disabled,pr=Tt.dragging,gr=Tt.dragOverNodeKey,Zt=Tt.dropPosition,Vt=Tt.motion,mt=Tt.height,Yr=Tt.itemHeight,Tn=Tt.virtual,Hn=Tt.focusable,ei=Tt.activeItem,ji=Tt.focused,Ln=Tt.tabIndex,Vn=Tt.onKeyDown,kt=Tt.onFocus,wt=Tt.onBlur,Te=Tt.onActiveChange,xe=Tt.onListChangeStart,Ce=Tt.onListChangeEnd,Ye=Object(g.a)(Tt,["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"]),it=w.useRef(null);w.useImperativeHandle(Rt,function(){return{scrollTo:function(Gi){it.current.scrollTo(Gi)}}});var dt=w.useState(Re),_t=Object(p.a)(dt,2),vr=_t[0],kr=_t[1],mn=w.useState(Z),Mt=Object(p.a)(mn,2),nt=Mt[0],st=Mt[1],Xt=w.useState(Z),Dt=Object(p.a)(Xt,2),St=Dt[0],jt=Dt[1],At=w.useState([]),Ft=Object(p.a)(At,2),wr=Ft[0],sr=Ft[1],mr=w.useState(null),$r=Object(p.a)(mr,2),rn=$r[0],jn=$r[1];function Un(){st(Z),jt(Z),sr([]),jn(null),Ce()}w.useEffect(function(){kr(Re);var Ii=_(vr,Re);if(Ii.key!==null)if(Ii.add){var Gi=nt.findIndex(function(ze){var Ze=ze.data.key;return Ze===Ii.key}),Qe=H(I(nt,Z,Ii.key),Tn,mt,Yr),be=nt.slice();be.splice(Gi+1,0,R),jt(be),sr(Qe),jn("show")}else{var Ne=Z.findIndex(function(ze){var Ze=ze.data.key;return Ze===Ii.key}),Ue=H(I(Z,nt,Ii.key),Tn,mt,Yr),Xe=Z.slice();Xe.splice(Ne+1,0,R),jt(Xe),sr(Ue),jn("hide")}else nt!==Z&&(st(Z),jt(Z))},[Re,Z]),w.useEffect(function(){pr||Un()},[pr]);var ui=Vt?St:Z,yi={expandedKeys:Re,selectedKeys:oe,loadedKeys:zt,loadingKeys:lt,checkedKeys:yt,halfCheckedKeys:$t,dragOverNodeKey:gr,dropPosition:Zt,keyEntities:cr};return w.createElement(w.Fragment,null,ji&&ei&&w.createElement("span",{style:L,"aria-live":"assertive"},K(ei)),w.createElement("div",{role:"tree"},w.createElement("input",{style:L,disabled:Hn===!1||cn,tabIndex:Hn!==!1?Ln:null,onKeyDown:Vn,onFocus:kt,onBlur:wt,value:"",onChange:D})),w.createElement(A.a,Object.assign({},Ye,{data:ui,itemKey:F,height:mt,fullHeight:!1,virtual:Tn,itemHeight:Yr,prefixCls:"".concat(Be,"-list"),ref:it}),function(Ii){var Gi=Ii.pos,Qe=Ii.data,be=Qe.key,Ne=Object(g.a)(Qe,["key"]),Ue=Ii.isStart,Xe=Ii.isEnd,ze=Object(f.e)(be,Gi);delete Ne.children;var Ze=Object(f.f)(ze,yi);return w.createElement(b,Object.assign({},Ne,Ze,{active:ei&&be===ei.data.key,pos:Gi,data:Ii.data,isStart:Ue,isEnd:Xe,motion:Vt,motionNodes:be===N?wr:null,motionType:rn,onMotionStart:xe,onMotionEnd:Un,treeNodeRequiredProps:yi,onMouseMove:function(){Te(null)}}))}))},V=w.forwardRef(U);V.displayName="NodeList";var z=V,Y=d("qOx5"),q=function(Et){Object(o.a)(Rt,Et);var Tt=Object(n.a)(Rt);function Rt(){var Be;return Object(i.a)(this,Rt),Be=Tt.apply(this,arguments),Be.destroyed=!1,Be.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},Be.listRef=w.createRef(),Be.onNodeDragStart=function(Z,J){var je=Be.state,Re=je.expandedKeys,oe=je.keyEntities,yt=Be.props.onDragStart,zt=J.props.eventKey;Be.dragNode=J;var lt=Object(u.b)(Re,zt);Be.setState({dragging:!0,dragNodesKeys:Object(u.g)(zt,oe)}),Be.setExpandedKeys(lt),yt&&yt({event:Z,node:Object(f.b)(J.props)})},Be.onNodeDragEnter=function(Z,J){var je=Be.state,Re=je.expandedKeys,oe=je.keyEntities,yt=je.dragNodesKeys,zt=Be.props.onDragEnter,lt=J.props,$t=lt.pos,cr=lt.eventKey;if(!Be.dragNode||yt.indexOf(cr)!==-1)return;var cn=Object(u.c)(Z,J);if(Be.dragNode.props.eventKey===cr&&cn===0){Be.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Be.setState({dragOverNodeKey:cr,dropPosition:cn}),Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(pr){clearTimeout(Be.delayedDragEnterLogic[pr])}),Be.delayedDragEnterLogic[$t]=window.setTimeout(function(){if(!Be.state.dragging)return;var pr=Object(c.a)(Re),gr=oe[cr];gr&&(gr.children||[]).length&&(pr=Object(u.a)(Re,cr)),"expandedKeys"in Be.props||Be.setExpandedKeys(pr),zt&&zt({event:Z,node:Object(f.b)(J.props),expandedKeys:pr})},400)},0)},Be.onNodeDragOver=function(Z,J){var je=Be.state.dragNodesKeys,Re=Be.props.onDragOver,oe=J.props.eventKey;if(je.indexOf(oe)!==-1)return;if(Be.dragNode&&oe===Be.state.dragOverNodeKey){var yt=Object(u.c)(Z,J);if(yt===Be.state.dropPosition)return;Be.setState({dropPosition:yt})}Re&&Re({event:Z,node:Object(f.b)(J.props)})},Be.onNodeDragLeave=function(Z,J){var je=Be.props.onDragLeave;Be.setState({dragOverNodeKey:""}),je&&je({event:Z,node:Object(f.b)(J.props)})},Be.onNodeDragEnd=function(Z,J){var je=Be.props.onDragEnd;Be.setState({dragOverNodeKey:""}),Be.cleanDragState(),je&&je({event:Z,node:Object(f.b)(J.props)}),Be.dragNode=null},Be.onNodeDrop=function(Z,J){var je=Be.state,Re=je.dragNodesKeys,oe=Re===void 0?[]:Re,yt=je.dropPosition,zt=Be.props.onDrop,lt=J.props,$t=lt.eventKey,cr=lt.pos;if(Be.setState({dragOverNodeKey:""}),Be.cleanDragState(),oe.indexOf($t)!==-1){Object(s.a)(!1,"Can not drop to dragNode(include it's children node)");return}var cn=Object(u.k)(cr),pr={event:Z,node:Object(f.b)(J.props),dragNode:Be.dragNode?Object(f.b)(Be.dragNode.props):null,dragNodesKeys:oe.slice(),dropPosition:yt+Number(cn[cn.length-1]),dropToGap:!1};yt!==0&&(pr.dropToGap=!0),zt&&zt(pr),Be.dragNode=null},Be.cleanDragState=function(){var Z=Be.state.dragging;Z&&Be.setState({dragging:!1})},Be.onNodeClick=function(Z,J){var je=Be.props.onClick;je&&je(Z,J)},Be.onNodeDoubleClick=function(Z,J){var je=Be.props.onDoubleClick;je&&je(Z,J)},Be.onNodeSelect=function(Z,J){var je=Be.state.selectedKeys,Re=Be.state.keyEntities,oe=Be.props,yt=oe.onSelect,zt=oe.multiple,lt=J.selected,$t=J.key,cr=!lt;cr?zt?je=Object(u.a)(je,$t):je=[$t]:je=Object(u.b)(je,$t);var cn=je.map(function(pr){var gr=Re[pr];return gr?gr.node:null}).filter(function(pr){return pr});Be.setUncontrolledState({selectedKeys:je}),yt&&yt(je,{event:"select",selected:cr,node:J,selectedNodes:cn,nativeEvent:Z.nativeEvent})},Be.onNodeCheck=function(Z,J,je){var Re=Be.state,oe=Re.keyEntities,yt=Re.checkedKeys,zt=Re.halfCheckedKeys,lt=Be.props,$t=lt.checkStrictly,cr=lt.onCheck,cn=J.key,pr,gr={event:"check",node:J,checked:je,nativeEvent:Z.nativeEvent};if($t){var Zt=je?Object(u.a)(yt,cn):Object(u.b)(yt,cn),Vt=Object(u.b)(zt,cn);pr={checked:Zt,halfChecked:Vt},gr.checkedNodes=Zt.map(function(ji){return oe[ji]}).filter(function(ji){return ji}).map(function(ji){return ji.node}),Be.setUncontrolledState({checkedKeys:Zt})}else{var mt=Object(Y.a)([].concat(Object(c.a)(yt),[cn]),!0,oe),Yr=mt.checkedKeys,Tn=mt.halfCheckedKeys;if(!je){var Hn=new Set(Yr);Hn.delete(cn);var ei=Object(Y.a)(Array.from(Hn),{checked:!1,halfCheckedKeys:Tn},oe);Yr=ei.checkedKeys,Tn=ei.halfCheckedKeys}pr=Yr,gr.checkedNodes=[],gr.checkedNodesPositions=[],gr.halfCheckedKeys=Tn,Yr.forEach(function(ji){var Ln=oe[ji];if(!Ln)return;var Vn=Ln.node,kt=Ln.pos;gr.checkedNodes.push(Vn),gr.checkedNodesPositions.push({node:Vn,pos:kt})}),Be.setUncontrolledState({checkedKeys:Yr},!1,{halfCheckedKeys:Tn})}cr&&cr(pr,gr)},Be.onNodeLoad=function(Z){return new Promise(function(J){Be.setState(function(je){var Re=je.loadedKeys,oe=Re===void 0?[]:Re,yt=je.loadingKeys,zt=yt===void 0?[]:yt,lt=Be.props,$t=lt.loadData,cr=lt.onLoad,cn=Z.key;if(!$t||oe.indexOf(cn)!==-1||zt.indexOf(cn)!==-1)return{};var pr=$t(Z);return pr.then(function(){var gr=Be.state,Zt=gr.loadedKeys,Vt=gr.loadingKeys,mt=Object(u.a)(Zt,cn),Yr=Object(u.b)(Vt,cn);cr&&cr(mt,{event:"load",node:Z}),Be.setUncontrolledState({loadedKeys:mt}),Be.setState({loadingKeys:Yr}),J()}),{loadingKeys:Object(u.a)(zt,cn)}})})},Be.onNodeMouseEnter=function(Z,J){var je=Be.props.onMouseEnter;je&&je({event:Z,node:J})},Be.onNodeMouseLeave=function(Z,J){var je=Be.props.onMouseLeave;je&&je({event:Z,node:J})},Be.onNodeContextMenu=function(Z,J){var je=Be.props.onRightClick;je&&(Z.preventDefault(),je({event:Z,node:J}))},Be.onFocus=function(){var Z=Be.props.onFocus;Be.setState({focused:!0}),Z&&Z.apply(void 0,arguments)},Be.onBlur=function(){var Z=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null),Z&&Z.apply(void 0,arguments)},Be.getTreeNodeRequiredProps=function(){var Z=Be.state,J=Z.expandedKeys,je=Z.selectedKeys,Re=Z.loadedKeys,oe=Z.loadingKeys,yt=Z.checkedKeys,zt=Z.halfCheckedKeys,lt=Z.dragOverNodeKey,$t=Z.dropPosition,cr=Z.keyEntities;return{expandedKeys:J||[],selectedKeys:je||[],loadedKeys:Re||[],loadingKeys:oe||[],checkedKeys:yt||[],halfCheckedKeys:zt||[],dragOverNodeKey:lt,dropPosition:$t,keyEntities:cr}},Be.setExpandedKeys=function(Z){var J=Be.state.treeData,je=Object(f.d)(J,Z);Be.setUncontrolledState({expandedKeys:Z,flattenNodes:je},!0)},Be.onNodeExpand=function(Z,J){var je=Be.state.expandedKeys,Re=Be.state.listChanging,oe=Be.props,yt=oe.onExpand,zt=oe.loadData,lt=J.key,$t=J.expanded;if(Re)return;var cr=je.indexOf(lt),cn=!$t;if(Object(s.a)($t&&cr!==-1||!$t&&cr===-1,"Expand state not sync with index check"),cn?je=Object(u.a)(je,lt):je=Object(u.b)(je,lt),Be.setExpandedKeys(je),yt&&yt(je,{node:J,expanded:cn,nativeEvent:Z.nativeEvent}),cn&&zt){var pr=Be.onNodeLoad(J);pr&&pr.then(function(){var gr=Object(f.d)(Be.state.treeData,je);Be.setUncontrolledState({flattenNodes:gr})})}},Be.onListChangeStart=function(){Be.setUncontrolledState({listChanging:!0})},Be.onListChangeEnd=function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})},Be.onActiveChange=function(Z){var J=Be.state.activeKey,je=Be.props.onActiveChange;if(J===Z)return;Be.setState({activeKey:Z}),Z!==null&&Be.scrollTo({key:Z}),je&&je(Z)},Be.getActiveItem=function(){var Z=Be.state,J=Z.activeKey,je=Z.flattenNodes;return J===null?null:je.find(function(Re){var oe=Re.data.key;return oe===J})||null},Be.offsetActiveKey=function(Z){var J=Be.state,je=J.flattenNodes,Re=J.activeKey,oe=je.findIndex(function(lt){var $t=lt.data.key;return $t===Re});oe===-1&&Z<0&&(oe=je.length),oe=(oe+Z+je.length)%je.length;var yt=je[oe];if(yt){var zt=yt.data.key;Be.onActiveChange(zt)}else Be.onActiveChange(null)},Be.onKeyDown=function(Z){var J=Be.state,je=J.activeKey,Re=J.expandedKeys,oe=J.checkedKeys,yt=Be.props,zt=yt.onKeyDown,lt=yt.checkable,$t=yt.selectable;switch(Z.which){case e.a.UP:{Be.offsetActiveKey(-1),Z.preventDefault();break}case e.a.DOWN:{Be.offsetActiveKey(1),Z.preventDefault();break}}var cr=Be.getActiveItem();if(cr&&cr.data){var cn=Be.getTreeNodeRequiredProps(),pr=cr.data.isLeaf===!1||!!(cr.data.children||[]).length,gr=Object(f.b)(Object(h.a)(Object(h.a)({},Object(f.f)(je,cn)),{},{data:cr.data,active:!0}));switch(Z.which){case e.a.LEFT:{pr&&Re.includes(je)?Be.onNodeExpand({},gr):cr.parent&&Be.onActiveChange(cr.parent.data.key),Z.preventDefault();break}case e.a.RIGHT:{pr&&!Re.includes(je)?Be.onNodeExpand({},gr):cr.children&&cr.children.length&&Be.onActiveChange(cr.children[0].data.key),Z.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{lt&&!gr.disabled&&gr.checkable!==!1&&!gr.disableCheckbox?Be.onNodeCheck({},gr,!oe.includes(je)):!lt&&$t&&!gr.disabled&&gr.selectable!==!1&&Be.onNodeSelect({},gr);break}}}zt&&zt(Z)},Be.setUncontrolledState=function(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Be.destroyed)return;var Re=!1,oe=!0,yt={};Object.keys(Z).forEach(function(zt){if(zt in Be.props){oe=!1;return}Re=!0,yt[zt]=Z[zt]}),Re&&(!J||oe)&&Be.setState(Object(h.a)(Object(h.a)({},yt),je))},Be.scrollTo=function(Z){Be.listRef.current.scrollTo(Z)},Be}return Object(r.a)(Rt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Z,J=this.state,je=J.focused,Re=J.flattenNodes,oe=J.keyEntities,yt=J.dragging,zt=J.activeKey,lt=this.props,$t=lt.prefixCls,cr=lt.className,cn=lt.style,pr=lt.showLine,gr=lt.focusable,Zt=lt.tabIndex,Vt=Zt===void 0?0:Zt,mt=lt.selectable,Yr=lt.showIcon,Tn=lt.icon,Hn=lt.switcherIcon,ei=lt.draggable,ji=lt.checkable,Ln=lt.checkStrictly,Vn=lt.disabled,kt=lt.motion,wt=lt.loadData,Te=lt.filterTreeNode,xe=lt.height,Ce=lt.itemHeight,Ye=lt.virtual,it=lt.titleRender,dt=lt.onContextMenu,_t=Object(u.f)(this.props);return w.createElement(l.a.Provider,{value:{prefixCls:$t,selectable:mt,showIcon:Yr,icon:Tn,switcherIcon:Hn,draggable:ei,checkable:ji,checkStrictly:Ln,disabled:Vn,keyEntities:oe,loadData:wt,filterTreeNode:Te,titleRender:it,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}},w.createElement("div",{className:a()($t,cr,(Z={},Object(m.a)(Z,"".concat($t,"-show-line"),pr),Object(m.a)(Z,"".concat($t,"-focused"),je),Object(m.a)(Z,"".concat($t,"-active-focused"),zt!==null),Z))},w.createElement(z,Object.assign({ref:this.listRef,prefixCls:$t,style:cn,data:Re,disabled:Vn,selectable:mt,checkable:!!ji,motion:kt,dragging:yt,height:xe,itemHeight:Ce,virtual:Ye,focusable:gr,focused:je,tabIndex:Vt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:dt},this.getTreeNodeRequiredProps(),_t))))}}],[{key:"getDerivedStateFromProps",value:function(Z,J){var je=J.prevProps,Re={prevProps:Z};function oe(Tn){return!je&&Tn in Z||je&&je[Tn]!==Z[Tn]}var yt;if(oe("treeData")?yt=Z.treeData:oe("children")&&(Object(s.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),yt=Object(f.c)(Z.children)),yt){Re.treeData=yt;var zt=Object(f.a)(yt);Re.keyEntities=Object(h.a)(Object(m.a)({},N,B),zt.keyEntities)}var lt=Re.keyEntities||J.keyEntities;if(oe("expandedKeys")||je&&oe("autoExpandParent"))Re.expandedKeys=Z.autoExpandParent||!je&&Z.defaultExpandParent?Object(u.e)(Z.expandedKeys,lt):Z.expandedKeys;else if(!je&&Z.defaultExpandAll){var $t=Object(h.a)({},lt);delete $t[N],Re.expandedKeys=Object.keys($t).map(function(Tn){return $t[Tn].key})}else!je&&Z.defaultExpandedKeys&&(Re.expandedKeys=Z.autoExpandParent||Z.defaultExpandParent?Object(u.e)(Z.defaultExpandedKeys,lt):Z.defaultExpandedKeys);if(Re.expandedKeys||delete Re.expandedKeys,yt||Re.expandedKeys){var cr=Object(f.d)(yt||J.treeData,Re.expandedKeys||J.expandedKeys);Re.flattenNodes=cr}if(Z.selectable&&(oe("selectedKeys")?Re.selectedKeys=Object(u.d)(Z.selectedKeys,Z):!je&&Z.defaultSelectedKeys&&(Re.selectedKeys=Object(u.d)(Z.defaultSelectedKeys,Z))),Z.checkable){var cn;if(oe("checkedKeys")?cn=Object(u.j)(Z.checkedKeys)||{}:!je&&Z.defaultCheckedKeys?cn=Object(u.j)(Z.defaultCheckedKeys)||{}:yt&&(cn=Object(u.j)(Z.checkedKeys)||{checkedKeys:J.checkedKeys,halfCheckedKeys:J.halfCheckedKeys}),cn){var pr=cn,gr=pr.checkedKeys,Zt=gr===void 0?[]:gr,Vt=pr.halfCheckedKeys,mt=Vt===void 0?[]:Vt;if(!Z.checkStrictly){var Yr=Object(Y.a)(Zt,!0,lt);Zt=Yr.checkedKeys,mt=Yr.halfCheckedKeys}Re.checkedKeys=Zt,Re.halfCheckedKeys=mt}}return oe("loadedKeys")&&(Re.loadedKeys=Z.loadedKeys),Re}}]),Rt}(w.Component);q.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:[]},q.TreeNode=x.a;var ce=q,ie=ce,ve=d("RIqP"),Ee=d.n(ve),Le=d("J4zp"),He=d.n(Le),ge=d("sEfC"),Fe=d.n(ge),Q=d("vk+C"),fe=d.n(Q),Je=d("Vy0f"),ne=d.n(Je),X=d("kGiB"),G=d.n(X),te=d("H84U"),we;(function(Et){Et[Et.None=0]="None",Et[Et.Start=1]="Start",Et[Et.End=2]="End"})(we||(we={}));function he(Et,Tt){function Rt(Be){var Z=Be.key,J=Be.children;Tt(Z,Be)!==!1&&he(J||[],Tt)}Et.forEach(Rt)}function Pe(Et){var Tt=Et.treeData,Rt=Et.expandedKeys,Be=Et.startKey,Z=Et.endKey,J=[],je=we.None;if(Be&&Be===Z)return[Be];if(!Be||!Z)return[];function Re(oe){return oe===Be||oe===Z}return he(Tt,function(oe){if(je===we.End)return!1;if(Re(oe)){if(J.push(oe),je===we.None)je=we.Start;else if(je===we.Start)return je=we.End,!1}else je===we.Start&&J.push(oe);return!(Rt.indexOf(oe)===-1)}),J}function Oe(Et,Tt){var Rt=Ee()(Tt),Be=[];return he(Et,function(Z,J){var je=Rt.indexOf(Z);return je!==-1&&(Be.push(J),Rt.splice(je,1)),!!Rt.length}),Be}var le=function(Et,Tt){var Rt={};for(var Be in Et)Object.prototype.hasOwnProperty.call(Et,Be)&&Tt.indexOf(Be)<0&&(Rt[Be]=Et[Be]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,Be=Object.getOwnPropertySymbols(Et);Z<Be.length;Z++)Tt.indexOf(Be[Z])<0&&Object.prototype.propertyIsEnumerable.call(Et,Be[Z])&&(Rt[Be[Z]]=Et[Be[Z]]);return Rt};function me(Et){var Tt=Et.isLeaf,Rt=Et.expanded;return Tt?w.createElement(fe.a,null):Rt?w.createElement(ne.a,null):w.createElement(G.a,null)}function _e(Et){var Tt=Et.treeData,Rt=Et.children;return Tt||Object(f.c)(Rt)}var $e=function(Tt,Rt){var Be=Tt.defaultExpandAll,Z=Tt.defaultExpandParent,J=Tt.defaultExpandedKeys,je=le(Tt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Re=w.useRef(),oe=w.useRef(),yt=w.createRef();w.useImperativeHandle(Rt,function(){return yt.current});var zt=function(){var dt=Object(f.a)(_e(je)),_t=dt.keyEntities,vr;return Be?vr=Object.keys(_t):Z?vr=Object(u.e)(je.expandedKeys||J,_t):vr=je.expandedKeys||J,vr},lt=w.useState(je.selectedKeys||je.defaultSelectedKeys||[]),$t=He()(lt,2),cr=$t[0],cn=$t[1],pr=w.useState(zt()),gr=He()(pr,2),Zt=gr[0],Vt=gr[1];w.useEffect(function(){"selectedKeys"in je&&cn(je.selectedKeys)},[je.selectedKeys]),w.useEffect(function(){"expandedKeys"in je&&Vt(je.expandedKeys)},[je.expandedKeys]);var mt=function(dt,_t){var vr=_t.isLeaf;if(vr||dt.shiftKey||dt.metaKey||dt.ctrlKey)return;yt.current.onNodeExpand(dt,_t)},Yr=Fe()(mt,200,{leading:!0}),Tn=function(dt,_t){return"expandedKeys"in je||Vt(dt),je.onExpand?je.onExpand(dt,_t):void 0},Hn=function(dt,_t){var vr=je.expandAction;vr==="click"&&Yr(dt,_t),je.onClick&&je.onClick(dt,_t)},ei=function(dt,_t){var vr=je.expandAction;vr==="doubleClick"&&Yr(dt,_t),je.onDoubleClick&&je.onDoubleClick(dt,_t)},ji=function(dt,_t){var vr=je.multiple,kr=_t.node,mn=_t.nativeEvent,Mt=kr.key,nt=Mt===void 0?"":Mt,st=_e(je),Xt=v()(v()({},_t),{selected:!0}),Dt=mn.ctrlKey||mn.metaKey,St=mn.shiftKey,jt;vr&&Dt?(jt=dt,Re.current=nt,oe.current=jt,Xt.selectedNodes=Oe(st,jt)):vr&&St?(jt=Array.from(new Set([].concat(Ee()(oe.current||[]),Ee()(Pe({treeData:st,expandedKeys:Zt,startKey:nt,endKey:Re.current}))))),Xt.selectedNodes=Oe(st,jt)):(jt=[nt],Re.current=nt,oe.current=jt,Xt.selectedNodes=Oe(st,jt)),je.onSelect&&je.onSelect(jt,Xt),"selectedKeys"in je||cn(jt)},Ln=w.useContext(te.b),Vn=Ln.getPrefixCls,kt=Ln.direction,wt=je.prefixCls,Te=je.className,xe=le(je,["prefixCls","className"]),Ce=Vn("tree",wt),Ye=a()("".concat(Ce,"-directory"),Te,E()({},"".concat(Ce,"-directory-rtl"),kt==="rtl"));return w.createElement(vt,v()({icon:me,ref:yt,blockNode:!0},xe,{prefixCls:Ce,className:Ye,expandedKeys:Zt,selectedKeys:cr,onSelect:ji,onClick:Hn,onDoubleClick:ei,onExpand:Tn}))},gt=w.forwardRef($e);gt.displayName="DirectoryTree",gt.defaultProps={showIcon:!0,expandAction:"click"};var et=gt,Ie=d("EXcs"),rt=d("2jpz"),Ge=w.forwardRef(function(Et,Tt){var Rt,Be=w.useContext(te.b),Z=Be.getPrefixCls,J=Be.direction,je=Be.virtual,Re=Et.prefixCls,oe=Et.className,yt=Et.showIcon,zt=Et.showLine,lt=Et.switcherIcon,$t=Et.blockNode,cr=Et.children,cn=Et.checkable,pr=v()(v()({},Et),{showLine:Boolean(zt)}),gr=Z("tree",Re);return w.createElement(ie,v()({itemHeight:20,ref:Tt,virtual:je},pr,{prefixCls:gr,className:a()(oe,(Rt={},E()(Rt,"".concat(gr,"-icon-hide"),!yt),E()(Rt,"".concat(gr,"-block-node"),$t),E()(Rt,"".concat(gr,"-rtl"),J==="rtl"),Rt)),checkable:cn&&w.createElement("span",{className:"".concat(gr,"-checkbox-inner")}),switcherIcon:function(Vt){return Object(rt.a)(gr,lt,zt,Vt)}}),cr)});Ge.TreeNode=x.a,Ge.DirectoryTree=et,Ge.defaultProps={checkable:!1,showIcon:!1,motion:v()(v()({},Ie.a),{motionAppear:!1}),blockNode:!1};var vt=Ge,Ot=P.a=vt},MKOG:function(j,P,d){var O=d("bYtY"),E=d("YH21"),C=E.Dispatcher,v=d("mLcG"),w=d("Bq2U"),m=function(i){i=i||{},this.stage=i.stage||{},this.onframe=i.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,C.call(this)};m.prototype={constructor:m,addClip:function(i){this._clips.push(i)},addAnimator:function(i){i.animation=this;for(var r=i.getClips(),o=0;o<r.length;o++)this.addClip(r[o])},removeClip:function(i){var r=O.indexOf(this._clips,i);r>=0&&this._clips.splice(r,1)},removeAnimator:function(i){for(var r=i.getClips(),o=0;o<r.length;o++)this.removeClip(r[o]);i.animation=null},_update:function(){for(var i=new Date().getTime()-this._pausedTime,r=i-this._time,o=this._clips,n=o.length,e=[],s=[],t=0;t<n;t++){var a=o[t],l=a.step(i,r);l&&(e.push(l),s.push(a))}for(var t=0;t<n;)o[t]._needsRemove?(o[t]=o[n-1],o.pop(),n--):t++;n=e.length;for(var t=0;t<n;t++)s[t].fire(e[t]);this._time=i,this.onframe(r),this.trigger("frame",r),this.stage.update&&this.stage.update()},_startLoop:function(){var i=this;this._running=!0;function r(){i._running&&(v(r),!i._paused&&i._update())}v(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(i,r){r=r||{};var o=new w(i,r.loop,r.getter,r.setter);return this.addAnimator(o),o}},O.mixin(m,C);var h=m;j.exports=h},MRoa:function(j,P,d){var O=d("ProS");d("0Bwj"),d("W2nI"),d("vcCh");var E=d("gawk"),C=d("Dg8C");O.registerLayout(E),O.registerVisual(C)},MT78:function(j,P,d){var O=d("ProS");(function(){for(var C in O){if(O==null||!O.hasOwnProperty(C)||C==="default"||C==="__esModule")return;P[C]=O[C]}})();var E=d("txkQ");(function(){for(var C in E){if(E==null||!E.hasOwnProperty(C)||C==="default"||C==="__esModule")return;P[C]=E[C]}})(),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(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("Kvyg"),v=d.n(C)},MZdM:function(j,P,d){"use strict";function O(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(t){return typeof t}:O=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var E=c(d("Lo0S")),C=m(d("N/zr")),v=d("GdRQ"),w=d("GQ8N");function m(e){return e&&e.__esModule?e:{default:e}}function h(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return h=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(e===null||O(e)!=="object"&&typeof e!="function")return{default:e};var s=h();if(s&&s.has(e))return s.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(t,l,u):t[l]=e[l]}return t.default=e,s&&s.set(e,t),t}function i(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function r(e,s){for(var t=0;t<s.length;t++){var a=s[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,s,t){return s&&r(e.prototype,s),t&&r(e,t),e}var n=function(){function e(s){if(i(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,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 o(e,[{key:"viewportChangePos",value:function(t,a){var l=this._viewportLoc;t=Math.floor(t),a=Math.floor(a),this._clipViewport||(t=-l.w,a=-l.h);var u=l.x+l.w-1,f=l.y+l.h-1;if(t<0&&l.x+t<0&&(t=-l.x),u+t>=this._fbWidth&&(t-=u+t-this._fbWidth+1),l.y+a<0&&(a=-l.y),f+a>=this._fbHeight&&(a-=f+a-this._fbHeight+1),t===0&&a===0)return;E.Debug("viewportChange deltaX: "+t+", deltaY: "+a),l.x+=t,l.y+=a,this._damage(l.x,l.y,l.w,l.h),this.flip()}},{key:"viewportChangeSize",value:function(t,a){(!this._clipViewport||typeof t=="undefined"||typeof a=="undefined")&&(E.Debug("Setting viewport to full display region"),t=this._fbWidth,a=this._fbHeight),t=Math.floor(t),a=Math.floor(a),t>this._fbWidth&&(t=this._fbWidth),a>this._fbHeight&&(a=this._fbHeight);var l=this._viewportLoc;if(l.w!==t||l.h!==a){l.w=t,l.h=a;var u=this._target;u.width=t,u.height=a,this.viewportChangePos(0,0),this._damage(l.x,l.y,l.w,l.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,w.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,w.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,a){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=a;var l=this._backbuffer;if(l.width!==t||l.height!==a){var u=null;l.width>0&&l.height>0&&(u=this._drawCtx.getImageData(0,0,l.width,l.height)),l.width!==t&&(l.width=t),l.height!==a&&(l.height=a),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(t,a,l,u){t<this._damageBounds.left&&(this._damageBounds.left=t),a<this._damageBounds.top&&(this._damageBounds.top=a),t+l>this._damageBounds.right&&(this._damageBounds.right=t+l),a+u>this._damageBounds.bottom&&(this._damageBounds.bottom=a+u)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var a=this._damageBounds.left,l=this._damageBounds.top,u=this._damageBounds.right-a,f=this._damageBounds.bottom-l,p=a-this._viewportLoc.x,g=l-this._viewportLoc.y;p<0&&(u+=p,a-=p,p=0),g<0&&(f+=g,l-=g,g=0),p+u>this._viewportLoc.w&&(u=this._viewportLoc.w-p),g+f>this._viewportLoc.h&&(f=this._viewportLoc.h-g),u>0&&f>0&&this._targetCtx.drawImage(this._backbuffer,a,l,u,f,p,g,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(t,a,l,u,f,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"fill",x:t,y:a,width:l,height:u,color:f}):(this._setFillColor(f),this._drawCtx.fillRect(t,a,l,u),this._damage(t,a,l,u))}},{key:"copyImage",value:function(t,a,l,u,f,p,g){this._renderQ.length!==0&&!g?this._renderQPush({type:"copy",oldX:t,oldY:a,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,t,a,f,p,l,u,f,p),this._damage(l,u,f,p))}},{key:"imageRect",value:function(t,a,l,u,f,p){if(l===0||u===0)return;var g=new Image;g.src="data: "+f+";base64,"+C.default.encode(p),this._renderQPush({type:"img",img:g,x:t,y:a,width:l,height:u})}},{key:"startTile",value:function(t,a,l,u,f){this._tileX=t,this._tileY=a,l===16&&u===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(l,u);for(var p=f[2],g=f[1],A=f[0],y=this._tile.data,x=0;x<l*u*4;x+=4)y[x]=p,y[x+1]=g,y[x+2]=A,y[x+3]=255}},{key:"subTile",value:function(t,a,l,u,f){for(var p=f[2],g=f[1],A=f[0],y=t+l,x=a+u,T=this._tile.data,S=this._tile.width,b=a;b<x;b++)for(var _=t;_<y;_++){var I=(_+b*S)*4;T[I]=p,T[I+1]=g,T[I+2]=A,T[I+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(t,a,l,u,f,p,g){if(this._renderQ.length!==0&&!g){var A=new Uint8Array(l*u*4);A.set(new Uint8Array(f.buffer,0,A.length)),this._renderQPush({type:"blit",data:A,x:t,y:a,width:l,height:u})}else this._bgrxImageData(t,a,l,u,f,p)}},{key:"blitRgbImage",value:function(t,a,l,u,f,p,g){if(this._renderQ.length!==0&&!g){var A=new Uint8Array(l*u*3);A.set(new Uint8Array(f.buffer,0,A.length)),this._renderQPush({type:"blitRgb",data:A,x:t,y:a,width:l,height:u})}else this._rgbImageData(t,a,l,u,f,p)}},{key:"blitRgbxImage",value:function(t,a,l,u,f,p,g){if(this._renderQ.length!==0&&!g){var A=new Uint8Array(l*u*4);A.set(new Uint8Array(f.buffer,0,A.length)),this._renderQPush({type:"blitRgbx",data:A,x:t,y:a,width:l,height:u})}else this._rgbxImageData(t,a,l,u,f,p)}},{key:"drawImage",value:function(t,a,l){this._drawCtx.drawImage(t,a,l),this._damage(a,l,t.width,t.height)}},{key:"autoscale",value:function(t,a){var l;if(t===0||a===0)l=0;else{var u=this._viewportLoc,f=t/a,p=u.w/u.h;p>=f?l=t/u.w:l=a/u.h}this._rescale(l)}},{key:"_rescale",value:function(t){this._scale=t;var a=this._viewportLoc,l=t*a.w+"px",u=t*a.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(t){var a="rgb("+t[2]+","+t[1]+","+t[0]+")";a!==this._prevDrawStyle&&(this._drawCtx.fillStyle=a,this._prevDrawStyle=a)}},{key:"_rgbImageData",value:function(t,a,l,u,f,p){for(var g=this._drawCtx.createImageData(l,u),A=g.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(g,t,a),this._damage(t,a,g.width,g.height)}},{key:"_bgrxImageData",value:function(t,a,l,u,f,p){for(var g=this._drawCtx.createImageData(l,u),A=g.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(g,t,a),this._damage(t,a,g.width,g.height)}},{key:"_rgbxImageData",value:function(t,a,l,u,f,p){var g;v.supportsImageMetadata?g=new ImageData(new Uint8ClampedArray(f.buffer,f.byteOffset,l*u*4),l,u):(g=this._drawCtx.createImageData(l,u),g.data.set(new Uint8ClampedArray(f.buffer,f.byteOffset,l*u*4))),this._drawCtx.putImageData(g,t,a),this._damage(t,a,g.width,g.height)}},{key:"_renderQPush",value:function(t){this._renderQ.push(t),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 t=!0;t&&this._renderQ.length>0;){var a=this._renderQ[0];switch(a.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(a.oldX,a.oldY,a.x,a.y,a.width,a.height,!0);break;case"fill":this.fillRect(a.x,a.y,a.width,a.height,a.color,!0);break;case"blit":this.blitImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgb":this.blitRgbImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"img":if(a.img.complete&&a.img.width!==0&&a.img.height!==0){if(a.img.width!==a.width||a.img.height!==a.height){E.Error("Decoded image has incorrect dimensions. Got "+a.img.width+"x"+a.img.height+". Expected "+a.width+"x"+a.height+".");return}this.drawImage(a.img,a.x,a.y)}else a.img._noVNCDisplay=this,a.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(t){this._rescale(t)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(t){this._clipViewport=t;var a=this._viewportLoc;this.viewportChangeSize(a.w,a.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();P.default=n},Mdki:function(j,P,d){var O=d("bYtY"),E=O.each,C="\0__link_datas",v="\0__link_mainData";function w(s){var t=s.mainData,a=s.datas;a||(a={main:t},s.datasAttr={main:"data"}),s.datas=s.mainData=null,o(t,a,s),E(a,function(l){E(t.TRANSFERABLE_METHODS,function(u){l.wrapMethod(u,O.curry(m,s))})}),t.wrapMethod("cloneShallow",O.curry(c,s)),E(t.CHANGABLE_METHODS,function(l){t.wrapMethod(l,O.curry(h,s))}),O.assert(a[t.dataType]===t)}function m(s,t){if(r(this)){var a=O.extend({},this[C]);a[this.dataType]=t,o(t,a,s)}else n(t,this.dataType,this[v],s);return t}function h(s,t){return s.struct&&s.struct.update(this),t}function c(s,t){return E(t[C],function(a,l){a!==t&&n(a.cloneShallow(),l,t,s)}),t}function i(s){var t=this[v];return s==null||t==null?t:t[C][s]}function r(s){return s[v]===s}function o(s,t,a){s[C]={},E(t,function(l,u){n(l,u,s,a)})}function n(s,t,a,l){a[C][t]=s,s[v]=a,s.dataType=t,l.struct&&(s[l.structAttr]=l.struct,l.struct[l.datasAttr[t]]=s),s.getLinkedData=i}var e=w;j.exports=e},Mds0:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("8IMR")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="StarFilled";var c=v.forwardRef(h);P.default=c},Mgri:function(j,P,d){for(var O=d("bYtY"),E=d("8nly"),C=[126,25],v=[[[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]]],w=0;w<v.length;w++)for(var m=0;m<v[w].length;m++)v[w][m][0]/=10.5,v[w][m][1]/=-10.5/.75,v[w][m][0]+=C[0],v[w][m][1]+=C[1];function h(c,i){c==="china"&&i.push(new E("\u5357\u6D77\u8BF8\u5C9B",O.map(v,function(r){return{type:"polygon",exterior:r}}),C))}j.exports=h},MlIO:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(E){var C=O,v=C.lib,w=v.Base,m=v.WordArray,h=C.x64={},c=h.Word=w.extend({init:function(o,n){this.high=o,this.low=n}}),i=h.WordArray=w.extend({init:function(o,n){o=this.words=o||[],n!=E?this.sigBytes=n:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,n=o.length,e=[],s=0;s<n;s++){var t=o[s];e.push(t.high),e.push(t.low)}return m.create(e,this.sigBytes)},clone:function(){for(var o=w.clone.call(this),n=o.words=this.words.slice(0),e=n.length,s=0;s<e;s++)n[s]=n[s].clone();return o}})}(),O})},Mmt2:function(j,P,d){"use strict";function O(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(e){return typeof e}:O=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(o)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var E=v(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return C=function(){return o},o}function v(o){if(o&&o.__esModule)return o;if(o===null||O(o)!=="object"&&typeof o!="function")return{default:o};var n=C();if(n&&n.has(o))return n.get(o);var e={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in o)if(Object.prototype.hasOwnProperty.call(o,t)){var a=s?Object.getOwnPropertyDescriptor(o,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=o[t]}return e.default=o,n&&n.set(o,e),e}function w(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function m(o,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(o,s.key,s)}}function h(o,n,e){return n&&m(o.prototype,n),e&&m(o,e),o}var c=!1,i=40*1024*1024,r=function(){function o(){w(this,o),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(o,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(e){this._rQi+=e}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(e){for(var s=0,t=e-1;t>=0;t--)s+=this._rQ[this._rQi++]<<t*8;return s}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var s="",t=0;t<e;t+=4096){var a=this.rQshiftBytes(Math.min(4096,e-t));s+=String.fromCharCode.apply(null,a)}return s}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,s){s===void 0&&(s=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,s)),this._rQi+=s}},{key:"rQslice",value:function(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,s-e)}},{key:"rQwait",value:function(e,s,t){if(this.rQlen<s){if(t){if(this._rQi<t)throw new Error("rQwait cannot backup "+t+" bytes");this._rQi-=t}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map(function(s){return s.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,s){this._eventHandlers[e]=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(e,s){var t=this;this.init(),this._websocket=new WebSocket(e,s),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){E.Debug(">> WebSock.onopen"),t._websocket.protocol&&E.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),E.Debug("<< WebSock.onopen")},this._websocket.onclose=function(a){E.Debug(">> WebSock.onclose"),t._eventHandlers.close(a),E.Debug("<< WebSock.onclose")},this._websocket.onerror=function(a){E.Debug(">> WebSock.onerror: "+a),t._eventHandlers.error(a),E.Debug("<< WebSock.onerror: "+a)}}},{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(e){var s=(this._rQlen-this._rQi+e)*8,t=this._rQbufferSize<s;if(t&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,s)),this._rQbufferSize>i&&(this._rQbufferSize=i,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+i+" bytes, and the new message could not fit");if(t){var a=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(a,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(e){var s=new Uint8Array(e);s.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(s.length),this._rQ.set(s,this._rQlen),this._rQlen+=s.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):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(e){this._rQi=e}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),o}();P.default=r},MqEG:function(j,P,d){var O=d("bYtY"),E=d("fc+c"),C=d("72pK"),v=d("VXYp"),w=O.bind,m=E.extend({type:"dataZoom.inside",init:function(o,n){this._range},render:function(o,n,e,s){m.superApply(this,"render",arguments),this._range=o.getPercentRange(),O.each(this.getTargetCoordInfo(),function(t,a){var l=O.map(t,function(u){return v.generateCoordId(u.model)});O.each(t,function(u){var f=u.model,p={};O.each(["pan","zoom","scrollMove"],function(g){p[g]=w(h[g],this,u,a)},this),v.register(e,{coordId:v.generateCoordId(f),allCoordIds:l,containsPoint:function(g,A,y){return f.coordinateSystem.containPoint([A,y])},dataZoomId:o.id,dataZoomModel:o,getRange:p})},this)},this)},dispose:function(){v.unregister(this.api,this.dataZoomModel.id),m.superApply(this,"dispose",arguments),this._range=null}}),h={zoom:function(o,n,e,s){var t=this._range,a=t.slice(),l=o.axisModels[0];if(!l)return;var u=i[n](null,[s.originX,s.originY],l,e,o),f=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(a[1]-a[0])+a[0],p=Math.max(1/s.scale,0);a[0]=(a[0]-f)*p+f,a[1]=(a[1]-f)*p+f;var g=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(C(0,a,[0,100],0,g.minSpan,g.maxSpan),this._range=a,t[0]!==a[0]||t[1]!==a[1])return a},pan:c(function(o,n,e,s,t,a){var l=i[s]([a.oldX,a.oldY],[a.newX,a.newY],n,t,e);return l.signal*(o[1]-o[0])*l.pixel/l.pixelLength}),scrollMove:c(function(o,n,e,s,t,a){var l=i[s]([0,0],[a.scrollDelta,a.scrollDelta],n,t,e);return l.signal*(o[1]-o[0])*a.scrollDelta})};function c(o){return function(n,e,s,t){var a=this._range,l=a.slice(),u=n.axisModels[0];if(!u)return;var f=o(l,u,n,e,s,t);if(C(f,l,[0,100],"all"),this._range=l,a[0]!==l[0]||a[1]!==l[1])return l}}var i={grid:function(o,n,e,s,t){var a=e.axis,l={},u=t.model.coordinateSystem.getRect();return o=o||[0,0],a.dim==="x"?(l.pixel=n[0]-o[0],l.pixelLength=u.width,l.pixelStart=u.x,l.signal=a.inverse?1:-1):(l.pixel=n[1]-o[1],l.pixelLength=u.height,l.pixelStart=u.y,l.signal=a.inverse?-1:1),l},polar:function(o,n,e,s,t){var a=e.axis,l={},u=t.model.coordinateSystem,f=u.getRadiusAxis().getExtent(),p=u.getAngleAxis().getExtent();return o=o?u.pointToCoord(o):[0,0],n=u.pointToCoord(n),e.mainType==="radiusAxis"?(l.pixel=n[0]-o[0],l.pixelLength=f[1]-f[0],l.pixelStart=f[0],l.signal=a.inverse?1:-1):(l.pixel=n[1]-o[1],l.pixelLength=p[1]-p[0],l.pixelStart=p[0],l.signal=a.inverse?-1:1),l},singleAxis:function(o,n,e,s,t){var a=e.axis,l=t.model.coordinateSystem.getRect(),u={};return o=o||[0,0],a.orient==="horizontal"?(u.pixel=n[0]-o[0],u.pixelLength=l.width,u.pixelStart=l.x,u.signal=a.inverse?1:-1):(u.pixel=n[1]-o[1],u.pixelLength=l.height,u.pixelStart=l.y,u.signal=a.inverse?-1:1),u}},r=m;j.exports=r},MwEJ:function(j,P,d){var O=d("bYtY"),E=d("YXkt"),C=d("sdST"),v=d("k9D9"),w=v.SOURCE_FORMAT_ORIGINAL,m=d("L0Ub"),h=m.getDimensionTypeByAxis,c=d("4NO4"),i=c.getDataItemValue,r=d("IDmD"),o=d("i38C"),n=o.getCoordSysInfoBySeries,e=d("7G+c"),s=d("7hqr"),t=s.enableDataStack,a=d("D5nY"),l=a.makeSeriesEncodeForAxisCoordSys;function u(A,y,x){x=x||{},e.isInstance(A)||(A=e.seriesDataToSource(A));var T=y.get("coordinateSystem"),S=r.get(T),b=n(y),_;b&&(_=O.map(b.coordSysDims,function(R){var H={name:R},F=b.axisMap.get(R);if(F){var K=F.get("type");H.type=h(K)}return H})),_||(_=S&&(S.getDimensionsInfo?S.getDimensionsInfo():S.dimensions.slice())||["x","y"]);var I=C(A,{coordDimensions:_,generateCoord:x.generateCoord,encodeDefaulter:x.useEncodeDefaulter?O.curry(l,_,y):null}),L,D;b&&O.each(I,function(R,H){var F=R.coordDim,K=b.categoryAxisMap.get(F);K&&(L==null&&(L=H),R.ordinalMeta=K.getOrdinalMeta()),R.otherDims.itemName!=null&&(D=!0)}),!D&&L!=null&&(I[L].otherDims.itemName=0);var N=t(y,I),M=new E(I,y);M.setCalculationInfo(N);var B=L!=null&&f(A)?function(R,H,F,K){return K===L?F:this.defaultDimValueGetter(R,H,F,K)}:null;return M.hasItemOption=!1,M.initData(A,null,B),M}function f(A){if(A.sourceFormat===w){var y=p(A.data||[]);return y!=null&&!O.isArray(i(y))}}function p(A){for(var y=0;y<A.length&&A[y]==null;)y++;return A[y]}var g=u;j.exports=g},Mylv:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),v=d("oVpE"),w=v.createSymbol,m=d("OELB"),h=m.parsePercent,c=m.isNumeric,i=d("56rv"),r=i.setLabel,o=["itemStyle","borderWidth"],n=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new C.Circle,s=O.extendChartView({type:"pictorialBar",render:function(U,V,z){var Y=this.group,q=U.getData(),ce=this._data,ie=U.coordinateSystem,ve=ie.getBaseAxis(),Ee=!!ve.isHorizontal(),Le=ie.grid.getRect(),He={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:U,coordSys:ie,coordSysExtent:[[Le.x,Le.x+Le.width],[Le.y,Le.y+Le.height]],isHorizontal:Ee,valueDim:n[+Ee],categoryDim:n[1-Ee]};return q.diff(ce).add(function(ge){if(!q.hasValue(ge))return;var Fe=S(q,ge),Q=t(q,ge,Fe,He),fe=L(q,He,Q);q.setItemGraphicEl(ge,fe),Y.add(fe),H(fe,He,Q)}).update(function(ge,Fe){var Q=ce.getItemGraphicEl(Fe);if(!q.hasValue(ge)){Y.remove(Q);return}var fe=S(q,ge),Je=t(q,ge,fe,He),ne=M(q,Je);Q&&ne!==Q.__pictorialShapeStr&&(Y.remove(Q),q.setItemGraphicEl(ge,null),Q=null),Q?D(Q,He,Je):Q=L(q,He,Je,!0),q.setItemGraphicEl(ge,Q),Q.__pictorialSymbolMeta=Je,Y.add(Q),H(Q,He,Je)}).remove(function(ge){var Fe=ce.getItemGraphicEl(ge);Fe&&N(ce,ge,Fe.__pictorialSymbolMeta.animationModel,Fe)}).execute(),this._data=q,this.group},dispose:E.noop,remove:function(U,V){var z=this.group,Y=this._data;U.get("animation")?Y&&Y.eachItemGraphicEl(function(q){N(Y,q.dataIndex,U,q)}):z.removeAll()}});function t(U,V,z,Y){var q=U.getItemLayout(V),ce=z.get("symbolRepeat"),ie=z.get("symbolClip"),ve=z.get("symbolPosition")||"start",Ee=z.get("symbolRotate"),Le=(Ee||0)*Math.PI/180||0,He=z.get("symbolPatternSize")||2,ge=z.isAnimationEnabled(),Fe={dataIndex:V,layout:q,itemModel:z,symbolType:U.getItemVisual(V,"symbol")||"circle",color:U.getItemVisual(V,"color"),symbolClip:ie,symbolRepeat:ce,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:He,rotation:Le,animationModel:ge?z:null,hoverAnimation:ge&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};a(z,ce,q,Y,Fe),u(U,V,q,ce,ie,Fe.boundingLength,Fe.pxSign,He,Y,Fe),f(z,Fe.symbolScale,Le,Y,Fe);var Q=Fe.symbolSize,fe=z.get("symbolOffset");return E.isArray(fe)&&(fe=[h(fe[0],Q[0]),h(fe[1],Q[1])]),p(z,Q,q,ce,ie,fe,ve,Fe.valueLineWidth,Fe.boundingLength,Fe.repeatCutLength,Y,Fe),Fe}function a(U,V,z,Y,q){var ce=Y.valueDim,ie=U.get("symbolBoundingData"),ve=Y.coordSys.getOtherAxis(Y.coordSys.getBaseAxis()),Ee=ve.toGlobalCoord(ve.dataToCoord(0)),Le=1-+(z[ce.wh]<=0),He;if(E.isArray(ie)){var ge=[l(ve,ie[0])-Ee,l(ve,ie[1])-Ee];ge[1]<ge[0]&&ge.reverse(),He=ge[Le]}else ie!=null?He=l(ve,ie)-Ee:V?He=Y.coordSysExtent[ce.index][Le]-Ee:He=z[ce.wh];q.boundingLength=He,V&&(q.repeatCutLength=z[ce.wh]),q.pxSign=He>0?1:He<0?-1:0}function l(U,V){return U.toGlobalCoord(U.dataToCoord(U.scale.parse(V)))}function u(U,V,z,Y,q,ce,ie,ve,Ee,Le){var He=Ee.valueDim,ge=Ee.categoryDim,Fe=Math.abs(z[ge.wh]),Q=U.getItemVisual(V,"symbolSize");E.isArray(Q)?Q=Q.slice():(Q==null&&(Q="100%"),Q=[Q,Q]),Q[ge.index]=h(Q[ge.index],Fe),Q[He.index]=h(Q[He.index],Y?Fe:Math.abs(ce)),Le.symbolSize=Q;var fe=Le.symbolScale=[Q[0]/ve,Q[1]/ve];fe[He.index]*=(Ee.isHorizontal?-1:1)*ie}function f(U,V,z,Y,q){var ce=U.get(o)||0;ce&&(e.attr({scale:V.slice(),rotation:z}),e.updateTransform(),ce/=e.getLineScale(),ce*=V[Y.valueDim.index]),q.valueLineWidth=ce}function p(U,V,z,Y,q,ce,ie,ve,Ee,Le,He,ge){var Fe=He.categoryDim,Q=He.valueDim,fe=ge.pxSign,Je=Math.max(V[Q.index]+ve,0),ne=Je;if(Y){var X=Math.abs(Ee),G=E.retrieve(U.get("symbolMargin"),"15%")+"",te=!1;G.lastIndexOf("!")===G.length-1&&(te=!0,G=G.slice(0,G.length-1)),G=h(G,V[Q.index]);var we=Math.max(Je+G*2,0),he=te?0:G*2,Pe=c(Y),Oe=Pe?Y:F((X+he)/we),le=X-Oe*Je;G=le/2/(te?Oe:Oe-1),we=Je+G*2,he=te?0:G*2,!Pe&&Y!=="fixed"&&(Oe=Le?F((Math.abs(Le)+he)/we):0),ne=Oe*we-he,ge.repeatTimes=Oe,ge.symbolMargin=G}var me=fe*(ne/2),_e=ge.pathPosition=[];_e[Fe.index]=z[Fe.wh]/2,_e[Q.index]=ie==="start"?me:ie==="end"?Ee-me:Ee/2,ce&&(_e[0]+=ce[0],_e[1]+=ce[1]);var $e=ge.bundlePosition=[];$e[Fe.index]=z[Fe.xy],$e[Q.index]=z[Q.xy];var gt=ge.barRectShape=E.extend({},z);gt[Q.wh]=fe*Math.max(Math.abs(z[Q.wh]),Math.abs(_e[Q.index]+me)),gt[Fe.wh]=z[Fe.wh];var et=ge.clipShape={};et[Fe.xy]=-z[Fe.xy],et[Fe.wh]=He.ecSize[Fe.wh],et[Q.xy]=0,et[Q.wh]=z[Q.wh]}function g(U){var V=U.symbolPatternSize,z=w(U.symbolType,-V/2,-V/2,V,V,U.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function A(U,V,z,Y){var q=U.__pictorialBundle,ce=z.symbolSize,ie=z.valueLineWidth,ve=z.pathPosition,Ee=V.valueDim,Le=z.repeatTimes||0,He=0,ge=ce[V.valueDim.index]+ie+z.symbolMargin*2;for(B(U,function(X){X.__pictorialAnimationIndex=He,X.__pictorialRepeatTimes=Le,He<Le?R(X,null,fe(He),z,Y):R(X,null,{scale:[0,0]},z,Y,function(){q.remove(X)}),I(X,z),He++});He<Le;He++){var Fe=g(z);Fe.__pictorialAnimationIndex=He,Fe.__pictorialRepeatTimes=Le,q.add(Fe);var Q=fe(He);R(Fe,{position:Q.position,scale:[0,0]},{scale:Q.scale,rotation:Q.rotation},z,Y),Fe.on("mouseover",Je).on("mouseout",ne),I(Fe,z)}function fe(X){var G=ve.slice(),te=z.pxSign,we=X;return(z.symbolRepeatDirection==="start"?te>0:te<0)&&(we=Le-1-X),G[Ee.index]=ge*(we-Le/2+.5)+ve[Ee.index],{position:G,scale:z.symbolScale.slice(),rotation:z.rotation}}function Je(){B(U,function(X){X.trigger("emphasis")})}function ne(){B(U,function(X){X.trigger("normal")})}}function y(U,V,z,Y){var q=U.__pictorialBundle,ce=U.__pictorialMainPath;ce?R(ce,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,Y):(ce=U.__pictorialMainPath=g(z),q.add(ce),R(ce,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,Y),ce.on("mouseover",ie).on("mouseout",ve)),I(ce,z);function ie(){this.trigger("emphasis")}function ve(){this.trigger("normal")}}function x(U,V,z){var Y=E.extend({},V.barRectShape),q=U.__pictorialBarRect;q?R(q,null,{shape:Y},V,z):(q=U.__pictorialBarRect=new C.Rect({z2:2,shape:Y,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),U.add(q))}function T(U,V,z,Y){if(z.symbolClip){var q=U.__pictorialClipPath,ce=E.extend({},z.clipShape),ie=V.valueDim,ve=z.animationModel,Ee=z.dataIndex;if(q)C.updateProps(q,{shape:ce},ve,Ee);else{ce[ie.wh]=0,q=new C.Rect({shape:ce}),U.__pictorialBundle.setClipPath(q),U.__pictorialClipPath=q;var Le={};Le[ie.wh]=z.clipShape[ie.wh],C[Y?"updateProps":"initProps"](q,{shape:Le},ve,Ee)}}}function S(U,V){var z=U.getItemModel(V);return z.getAnimationDelayParams=b,z.isAnimationEnabled=_,z}function b(U){return{index:U.__pictorialAnimationIndex,count:U.__pictorialRepeatTimes}}function _(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(U,V){U.off("emphasis").off("normal");var z=V.symbolScale.slice();V.hoverAnimation&&U.on("emphasis",function(){this.animateTo({scale:[z[0]*1.1,z[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:z.slice()},400,"elasticOut")})}function L(U,V,z,Y){var q=new C.Group,ce=new C.Group;return q.add(ce),q.__pictorialBundle=ce,ce.attr("position",z.bundlePosition.slice()),z.symbolRepeat?A(q,V,z):y(q,V,z),x(q,z,Y),T(q,V,z,Y),q.__pictorialShapeStr=M(U,z),q.__pictorialSymbolMeta=z,q}function D(U,V,z){var Y=z.animationModel,q=z.dataIndex,ce=U.__pictorialBundle;C.updateProps(ce,{position:z.bundlePosition.slice()},Y,q),z.symbolRepeat?A(U,V,z,!0):y(U,V,z,!0),x(U,z,!0),T(U,V,z,!0)}function N(U,V,z,Y){var q=Y.__pictorialBarRect;q&&(q.style.text=null);var ce=[];B(Y,function(ie){ce.push(ie)}),Y.__pictorialMainPath&&ce.push(Y.__pictorialMainPath),Y.__pictorialClipPath&&(z=null),E.each(ce,function(ie){C.updateProps(ie,{scale:[0,0]},z,V,function(){Y.parent&&Y.parent.remove(Y)})}),U.setItemGraphicEl(V,null)}function M(U,V){return[U.getItemVisual(V.dataIndex,"symbol")||"none",!!V.symbolRepeat,!!V.symbolClip].join(":")}function B(U,V,z){E.each(U.__pictorialBundle.children(),function(Y){Y!==U.__pictorialBarRect&&V.call(z,Y)})}function R(U,V,z,Y,q,ce){V&&U.attr(V),Y.symbolClip&&!q?z&&U.attr(z):z&&C[q?"updateProps":"initProps"](U,z,Y.animationModel,Y.dataIndex,ce)}function H(U,V,z){var Y=z.color,q=z.dataIndex,ce=z.itemModel,ie=ce.getModel("itemStyle").getItemStyle(["color"]),ve=ce.getModel("emphasis.itemStyle").getItemStyle(),Ee=ce.getShallow("cursor");B(U,function(Fe){Fe.setColor(Y),Fe.setStyle(E.defaults({fill:Y,opacity:z.opacity},ie)),C.setHoverStyle(Fe,ve),Ee&&(Fe.cursor=Ee),Fe.z2=z.z2});var Le={},He=V.valueDim.posDesc[+(z.boundingLength>0)],ge=U.__pictorialBarRect;r(ge.style,Le,ce,Y,V.seriesModel,q,He),C.setHoverStyle(ge,Le)}function F(U){var V=Math.round(U);return Math.abs(U-V)<1e-4?V:Math.ceil(U)}var K=s;j.exports=K},"N/zr":function(j,P,d){"use strict";function O(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(c){return typeof c}:O=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},O(m)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var E=v(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return C=function(){return m},m}function v(m){if(m&&m.__esModule)return m;if(m===null||O(m)!=="object"&&typeof m!="function")return{default:m};var h=C();if(h&&h.has(m))return h.get(m);var c={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in m)if(Object.prototype.hasOwnProperty.call(m,r)){var o=i?Object.getOwnPropertyDescriptor(m,r):null;o&&(o.get||o.set)?Object.defineProperty(c,r,o):c[r]=m[r]}return c.default=m,h&&h.set(m,c),c}var w={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(h){"use strict";for(var c="",i=h.length,r=i%3,o=0;o<i-2;o+=3)c+=this.toBase64Table[h[o]>>2],c+=this.toBase64Table[((h[o]&3)<<4)+(h[o+1]>>4)],c+=this.toBase64Table[((h[o+1]&15)<<2)+(h[o+2]>>6)],c+=this.toBase64Table[h[o+2]&63];var n=i-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,i=h.indexOf("=")-c;i<0&&(i=h.length-c);for(var r=(i>>2)*3+Math.floor(i%4/1.5),o=new Array(r),n=0,e=0,s=0,t=c;t<h.length;t++){var a=this.toBinaryTable[h.charCodeAt(t)&127],l=h.charAt(t)===this.base64Pad;if(a===-1){E.Error("Illegal character code "+h.charCodeAt(t)+" at position "+t);continue}e=e<<6|a,n+=6,n>=8&&(n-=8,l||(o[s++]=e>>n&255),e&=(1<<n)-1)}if(n){var u=new Error("Corrupted base64 string");throw u.name="Base64-Error",u}return o}};P.default=w},N5BQ:function(j,P,d){var O=d("OlYY"),E=O.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"}}}),C=E;j.exports=C},NA0q:function(j,P,d){var O=d("bYtY"),E=d("6Ic6"),C=d("TkdX"),v=d("gPAo"),w=d("7aKB"),m=w.windowOpen,h="sunburstRootToNode",c=E.extend({type:"sunburst",init:function(){},render:function(r,o,n,e){var s=this;this.seriesModel=r,this.api=n,this.ecModel=o;var t=r.getData(),a=t.tree.root,l=r.getViewRoot(),u=this.group,f=r.get("renderLabelForZeroData"),p=[];l.eachNode(function(_){p.push(_)});var g=this._oldChildren||[];if(x(p,g),b(a,l),e&&e.highlight&&e.highlight.piece){var A=r.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(A)}else if(e&&e.unhighlight){var y=this.virtualPiece;!y&&a.children.length&&(y=a.children[0].piece),y&&y.onNormal()}this._initEvents(),this._oldChildren=p;function x(_,I){if(_.length===0&&I.length===0)return;new v(I,_,L,L).add(D).update(D).remove(O.curry(D,null)).execute();function L(N){return N.getId()}function D(N,M){var B=N==null?null:_[N],R=M==null?null:I[M];T(B,R)}}function T(_,I){if(!f&&_&&!_.getValue()&&(_=null),_!==a&&I!==a){if(I&&I.piece)_?(I.piece.updateData(!1,_,"normal",r,o),t.setItemGraphicEl(_.dataIndex,I.piece)):S(I);else if(_){var L=new C(_,r,o);u.add(L),t.setItemGraphicEl(_.dataIndex,L)}}}function S(_){if(!_)return;_.piece&&(u.remove(_.piece),_.piece=null)}function b(_,I){if(I.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,_,"normal",r,o):(s.virtualPiece=new C(_,r,o),u.add(s.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var L=function(D){s._rootToNode(I.parentNode)};I.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,o=function(n){var e=!1,s=r.seriesModel.getViewRoot();s.eachNode(function(t){if(!e&&t.piece&&t.piece.childAt(0)===n.target){var a=t.getModel().get("nodeClick");if(a==="rootToNode")r._rootToNode(t);else if(a==="link"){var l=t.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";m(u,f)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",o),this.group._onclickEvent=o},_rootToNode:function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:h,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},containPoint:function(r,o){var n=o.getData(),e=n.getItemLayout(0);if(e){var s=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(s*s+t*t);return a<=e.r&&a>=e.r0}}}),i=c;j.exports=i},NAnI:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("wXyp"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},NBmB:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.encodingName=E,P.encodings=void 0;var O={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};P.encodings=O;function E(C){switch(C){case O.encodingRaw:return"Raw";case O.encodingCopyRect:return"CopyRect";case O.encodingRRE:return"RRE";case O.encodingHextile:return"Hextile";case O.encodingTight:return"Tight";case O.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+C+"]"}}},NC18:function(j,P,d){var O=d("y+Vt"),E=d("IMiH"),C=d("7oTu"),v=Math.sqrt,w=Math.sin,m=Math.cos,h=Math.PI,c=function(p){return Math.sqrt(p[0]*p[0]+p[1]*p[1])},i=function(p,g){return(p[0]*g[0]+p[1]*g[1])/(c(p)*c(g))},r=function(p,g){return(p[0]*g[1]<p[1]*g[0]?-1:1)*Math.acos(i(p,g))};function o(f,p,g,A,y,x,T,S,b,_,I){var L=b*(h/180),D=m(L)*(f-g)/2+w(L)*(p-A)/2,N=-1*w(L)*(f-g)/2+m(L)*(p-A)/2,M=D*D/(T*T)+N*N/(S*S);M>1&&(T*=v(M),S*=v(M));var B=(y===x?-1:1)*v((T*T*(S*S)-T*T*(N*N)-S*S*(D*D))/(T*T*(N*N)+S*S*(D*D)))||0,R=B*T*N/S,H=B*-S*D/T,F=(f+g)/2+m(L)*R-w(L)*H,K=(p+A)/2+w(L)*R+m(L)*H,U=r([1,0],[(D-R)/T,(N-H)/S]),V=[(D-R)/T,(N-H)/S],z=[(-1*D-R)/T,(-1*N-H)/S],Y=r(V,z);i(V,z)<=-1&&(Y=h),i(V,z)>=1&&(Y=0),x===0&&Y>0&&(Y=Y-2*h),x===1&&Y<0&&(Y=Y+2*h),I.addData(_,F,K,T,S,U,Y,L,x)}var n=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function s(f){if(!f)return new E;for(var p=0,g=0,A=p,y=g,x,T=new E,S=E.CMD,b=f.match(n),_=0;_<b.length;_++){for(var I=b[_],L=I.charAt(0),D,N=I.match(e)||[],M=N.length,B=0;B<M;B++)N[B]=parseFloat(N[B]);for(var R=0;R<M;){var H,F,K,U,V,z,Y,q=p,ce=g;switch(L){case"l":p+=N[R++],g+=N[R++],D=S.L,T.addData(D,p,g);break;case"L":p=N[R++],g=N[R++],D=S.L,T.addData(D,p,g);break;case"m":p+=N[R++],g+=N[R++],D=S.M,T.addData(D,p,g),A=p,y=g,L="l";break;case"M":p=N[R++],g=N[R++],D=S.M,T.addData(D,p,g),A=p,y=g,L="L";break;case"h":p+=N[R++],D=S.L,T.addData(D,p,g);break;case"H":p=N[R++],D=S.L,T.addData(D,p,g);break;case"v":g+=N[R++],D=S.L,T.addData(D,p,g);break;case"V":g=N[R++],D=S.L,T.addData(D,p,g);break;case"C":D=S.C,T.addData(D,N[R++],N[R++],N[R++],N[R++],N[R++],N[R++]),p=N[R-2],g=N[R-1];break;case"c":D=S.C,T.addData(D,N[R++]+p,N[R++]+g,N[R++]+p,N[R++]+g,N[R++]+p,N[R++]+g),p+=N[R-2],g+=N[R-1];break;case"S":H=p,F=g;var ie=T.len(),ve=T.data;x===S.C&&(H+=p-ve[ie-4],F+=g-ve[ie-3]),D=S.C,q=N[R++],ce=N[R++],p=N[R++],g=N[R++],T.addData(D,H,F,q,ce,p,g);break;case"s":H=p,F=g;var ie=T.len(),ve=T.data;x===S.C&&(H+=p-ve[ie-4],F+=g-ve[ie-3]),D=S.C,q=p+N[R++],ce=g+N[R++],p+=N[R++],g+=N[R++],T.addData(D,H,F,q,ce,p,g);break;case"Q":q=N[R++],ce=N[R++],p=N[R++],g=N[R++],D=S.Q,T.addData(D,q,ce,p,g);break;case"q":q=N[R++]+p,ce=N[R++]+g,p+=N[R++],g+=N[R++],D=S.Q,T.addData(D,q,ce,p,g);break;case"T":H=p,F=g;var ie=T.len(),ve=T.data;x===S.Q&&(H+=p-ve[ie-4],F+=g-ve[ie-3]),p=N[R++],g=N[R++],D=S.Q,T.addData(D,H,F,p,g);break;case"t":H=p,F=g;var ie=T.len(),ve=T.data;x===S.Q&&(H+=p-ve[ie-4],F+=g-ve[ie-3]),p+=N[R++],g+=N[R++],D=S.Q,T.addData(D,H,F,p,g);break;case"A":K=N[R++],U=N[R++],V=N[R++],z=N[R++],Y=N[R++],q=p,ce=g,p=N[R++],g=N[R++],D=S.A,o(q,ce,p,g,z,Y,K,U,V,D,T);break;case"a":K=N[R++],U=N[R++],V=N[R++],z=N[R++],Y=N[R++],q=p,ce=g,p+=N[R++],g+=N[R++],D=S.A,o(q,ce,p,g,z,Y,K,U,V,D,T);break}}(L==="z"||L==="Z")&&(D=S.Z,T.addData(D),p=A,g=y),x=D}return T.toStatic(),T}function t(f,p){var g=s(f);return p=p||{},p.buildPath=function(A){if(A.setData){A.setData(g.data);var y=A.getContext();y&&A.rebuildPath(y)}else{var y=A;g.rebuildPath(y)}},p.applyTransform=function(A){C(g,A),this.dirty(!0)},p}function a(f,p){return new O(t(f,p))}function l(f,p){return O.extend(t(f,p))}function u(f,p){for(var g=[],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),g.push(x.path)}var T=new O(p);return T.createPathProxy(),T.buildPath=function(S){S.appendPath(g);var b=S.getContext();b&&S.rebuildPath(b)},T}P.createFromString=a,P.extendFromString=l,P.mergePath=u},NFKh:function(j,P,d){(function(O,E,C){j.exports=P=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(O){return O})},NH9N:function(j,P,d){var O=d("bYtY"),E=d("mFDi"),C=d("Fofx"),v=d("IwbS"),w=d("+TT/"),m=d("kzvK"),h=d("CMP+"),c=d("oVpE"),i=c.createSymbol,r=d("aX7z"),o=d("OELB"),n=d("7aKB"),e=n.encodeHTML,s=O.bind,t=O.each,a=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,T){if(this.model=A,this.api=x,this.ecModel=y,this.group.removeAll(),A.get("show",!0)){var S=this._layout(A,x),b=this._createGroup("mainGroup"),_=this._createGroup("labelGroup"),I=this._axis=this._createAxis(S,A);A.formatTooltip=function(L){return e(I.scale.getLabel(L))},t(["AxisLine","AxisTick","Control","CurrentPointer"],function(L){this["_render"+L](S,b,I,A)},this),this._renderAxisLabel(S,_,I,A),this._position(S,A)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(A,y){var x=A.get("label.position"),T=A.get("orient"),S=u(A,y);x==null||x==="auto"?x=T==="horizontal"?S.y+S.height/2<y.getHeight()/2?"-":"+":S.x+S.width/2<y.getWidth()/2?"+":"-":isNaN(x)&&(x={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[T][x]);var b={horizontal:"center",vertical:x>=0||x==="+"?"left":"right"},_={horizontal:x>=0||x==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:a/2},L=T==="vertical"?S.height:S.width,D=A.getModel("controlStyle"),N=D.get("show",!0),M=N?D.get("itemSize"):0,B=N?D.get("itemGap"):0,R=M+B,H=A.get("label.rotate")||0;H=H*a/180;var F,K,U,V,z=D.get("position",!0),Y=N&&D.get("showPlayBtn",!0),q=N&&D.get("showPrevBtn",!0),ce=N&&D.get("showNextBtn",!0),ie=0,ve=L;return z==="left"||z==="bottom"?(Y&&(F=[0,0],ie+=R),q&&(K=[ie,0],ie+=R),ce&&(U=[ve-M,0],ve-=R)):(Y&&(F=[ve-M,0],ve-=R),q&&(K=[0,0],ie+=R),ce&&(U=[ve-M,0],ve-=R)),V=[ie,ve],A.get("inverse")&&V.reverse(),{viewRect:S,mainLength:L,orient:T,rotation:I[T],labelRotation:H,labelPosOpt:x,labelAlign:A.get("label.align")||b[T],labelBaseline:A.get("label.verticalAlign")||A.get("label.baseline")||_[T],playPosition:F,prevBtnPosition:K,nextBtnPosition:U,axisExtent:V,controlSize:M,controlGap:B}},_position:function(A,y){var x=this._mainGroup,T=this._labelGroup,S=A.viewRect;if(A.orient==="vertical"){var b=C.create(),_=S.x,I=S.y+S.height;C.translate(b,b,[-_,-I]),C.rotate(b,b,-a/2),C.translate(b,b,[_,I]),S=S.clone(),S.applyTransform(b)}var L=K(S),D=K(x.getBoundingRect()),N=K(T.getBoundingRect()),M=x.position,B=T.position;B[0]=M[0]=L[0][0];var R=A.labelPosOpt;if(isNaN(R)){var H=R==="+"?0:1;U(M,D,L,1,H),U(B,N,L,1,1-H)}else{var H=R>=0?0:1;U(M,D,L,1,H),B[1]=M[1]+R}x.attr("position",M),T.attr("position",B),x.rotation=T.rotation=A.rotation,F(x),F(T);function F(V){var z=V.position;V.origin=[L[0][0]-z[0],L[1][0]-z[1]]}function K(V){return[[V.x,V.x+V.width],[V.y,V.y+V.height]]}function U(V,z,Y,q,ce){V[q]+=Y[q][ce]-z[q][ce]}},_createAxis:function(A,y){var x=y.getData(),T=y.get("axisType"),S=r.createScaleByModel(y,T);S.getTicks=function(){return x.mapArray(["value"],function(I){return I})};var b=x.getDataExtent("value");S.setExtent(b[0],b[1]),S.niceTicks();var _=new h("value",S,A.axisExtent,T);return _.model=y,_},_createGroup:function(A){var y=this["_"+A]=new v.Group;return this.group.add(y),y},_renderAxisLine:function(A,y,x,T){var S=x.getExtent();if(!T.get("lineStyle.show"))return;y.add(new v.Line({shape:{x1:S[0],y1:0,x2:S[1],y2:0},style:O.extend({lineCap:"round"},T.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(A,y,x,T){var S=T.getData(),b=x.scale.getTicks();t(b,function(_){var I=x.dataToCoord(_),L=S.getItemModel(_),D=L.getModel("itemStyle"),N=L.getModel("emphasis.itemStyle"),M={position:[I,0],onclick:s(this._changeTimeline,this,_)},B=p(L,D,y,M);v.setHoverStyle(B,N.getItemStyle()),L.get("tooltip")?(B.dataIndex=_,B.dataModel=T):B.dataIndex=B.dataModel=null},this)},_renderAxisLabel:function(A,y,x,T){var S=x.getLabelModel();if(!S.get("show"))return;var b=T.getData(),_=x.getViewLabels();t(_,function(I){var L=I.tickValue,D=b.getItemModel(L),N=D.getModel("label"),M=D.getModel("emphasis.label"),B=x.dataToCoord(I.tickValue),R=new v.Text({position:[B,0],rotation:A.labelRotation-A.rotation,onclick:s(this._changeTimeline,this,L),silent:!1});v.setTextStyle(R.style,N,{text:I.formattedLabel,textAlign:A.labelAlign,textVerticalAlign:A.labelBaseline}),y.add(R),v.setHoverStyle(R,v.setTextStyle({},M))},this)},_renderControl:function(A,y,x,T){var S=A.controlSize,b=A.rotation,_=T.getModel("controlStyle").getItemStyle(),I=T.getModel("emphasis.controlStyle").getItemStyle(),L=[0,-S/2,S,S],D=T.getPlayState(),N=T.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(B,R,H,F){if(!B)return;var K={position:B,origin:[S/2,0],rotation:F?-b:0,rectHover:!0,style:_,onclick:H},U=f(T,R,L,K);y.add(U),v.setHoverStyle(U,I)}},_renderCurrentPointer:function(A,y,x,T){var S=T.getData(),b=T.getCurrentIndex(),_=S.getItemModel(b).getModel("checkpointStyle"),I=this,L={onCreate:function(D){D.draggable=!0,D.drift=s(I._handlePointerDrag,I),D.ondragend=s(I._handlePointerDragend,I),g(D,b,x,T,!0)},onUpdate:function(D){g(D,b,x,T)}};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],T=this._axis,S=o.asc(T.getExtent().slice());x>S[1]&&(x=S[1]),x<S[0]&&(x=S[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 v.applyTransform(A,y,!0)},_findNearestTick:function(A){var y=this.model.getData(),x=Infinity,T,S=this._axis;return y.each(["value"],function(b,_){var I=S.dataToCoord(b),L=Math.abs(I-A);L<x&&(x=L,T=_)}),T},_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 w.getLayoutRect(A.getBoxLayoutParams(),{width:y.getWidth(),height:y.getHeight()},A.get("padding"))}function f(A,y,x,T){var S=v.makePath(A.get(y).replace(/^path:\/\//,""),O.clone(T||{}),new E(x[0],x[1],x[2],x[3]),"center");return S}function p(A,y,x,T,S,b){var _=y.get("color");if(S)S.setColor(_),x.add(S),b&&b.onUpdate(S);else{var I=A.get("symbol");S=i(I,-1,-1,2,2,_),S.setStyle("strokeNoScale",!0),x.add(S),b&&b.onCreate(S)}var L=y.getItemStyle(["color","symbol","symbolSize"]);S.setStyle(L),T=O.merge({rectHover:!0,z2:100},T,!0);var D=A.get("symbolSize");D=D instanceof Array?D.slice():[+D,+D],D[0]/=2,D[1]/=2,T.scale=D;var N=A.get("symbolOffset");if(N){var M=T.position=T.position||[0,0];M[0]+=o.parsePercent(N[0],D[0]),M[1]+=o.parsePercent(N[1],D[1])}var B=A.get("symbolRotate");return T.rotation=(B||0)*Math.PI/180||0,S.attr(T),S.updateTransform(),S}function g(A,y,x,T,S){if(A.dragging)return;var b=T.getModel("checkpointStyle"),_=x.dataToCoord(T.getData().get(["value"],y));S||!b.get("animation",!0)?A.attr({position:[_,0]}):(A.stopAnimation(!0),A.animateTo({position:[_,0]},b.get("animationDuration",!0),b.get("animationEasing",!0)))}j.exports=l},NJEC:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("J4zp"),v=d.n(C),w=d("q1tI"),m=d.n(w),h=d("TSYQ"),c=d.n(h),i=d("sKbD"),r=d.n(i),o=d("4IlW"),n=d("3S7+"),e=d("2/Rp"),s=d("zvFY"),t=d("YMnH"),a=d("ZvpZ"),l=d("H84U"),u=d("bogI"),f=d("0n0R"),p=void 0,g=function(y,x){var T={};for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&x.indexOf(S)<0&&(T[S]=y[S]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,S=Object.getOwnPropertySymbols(y);b<S.length;b++)x.indexOf(S[b])<0&&Object.prototype.propertyIsEnumerable.call(y,S[b])&&(T[S[b]]=y[S[b]]);return T},A=w.forwardRef(function(y,x){var T=w.useState(y.visible),S=v()(T,2),b=S[0],_=S[1];w.useEffect(function(){"visible"in y&&_(y.visible)},[y.visible]),w.useEffect(function(){"defaultVisible"in y&&_(y.defaultVisible)},[y.defaultVisible]);var I=function(Ee,Le){"visible"in y||_(Ee),y.onVisibleChange&&y.onVisibleChange(Ee,Le)},L=function(Ee){I(!1,Ee),y.onConfirm&&y.onConfirm.call(p,Ee)},D=function(Ee){I(!1,Ee),y.onCancel&&y.onCancel.call(p,Ee)},N=function(Ee){Ee.keyCode===o.a.ESC&&b&&I(!1,Ee)},M=function(Ee){var Le=y.disabled;if(Le)return;I(Ee)},B=function(Ee,Le){var He=y.okButtonProps,ge=y.cancelButtonProps,Fe=y.title,Q=y.cancelText,fe=y.okText,Je=y.okType,ne=y.icon;return w.createElement("div",{className:"".concat(Ee,"-inner-content")},w.createElement("div",{className:"".concat(Ee,"-message")},ne,w.createElement("div",{className:"".concat(Ee,"-message-title")},Object(u.a)(Fe))),w.createElement("div",{className:"".concat(Ee,"-buttons")},w.createElement(e.a,E()({onClick:D,size:"small"},ge),Q||Le.cancelText),w.createElement(e.a,E()({onClick:L},Object(s.a)(Je),{size:"small"},He),fe||Le.okText)))},R=w.useContext(l.b),H=R.getPrefixCls,F=y.prefixCls,K=y.placement,U=y.children,V=y.overlayClassName,z=g(y,["prefixCls","placement","children","overlayClassName"]),Y=H("popover",F),q=H("popconfirm",F),ce=c()(q,V),ie=w.createElement(t.a,{componentName:"Popconfirm",defaultLocale:a.a.Popconfirm},function(ve){return B(Y,ve)});return w.createElement(n.a,E()({},z,{prefixCls:Y,placement:K,onVisibleChange:M,visible:b,overlay:ie,overlayClassName:ce,ref:x}),Object(f.a)(U,{onKeyDown:function(Ee){var Le,He;(He=U==null?void 0:(Le=U.props).onKeyDown)===null||He===void 0||He.call(Le,Ee),N(Ee)}}))});A.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:w.createElement(r.a,null),disabled:!1},P.a=A},NUBc:function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("q1tI"),m=d.n(w),h=d("wx14"),c=d("rePB"),i=d("VTBJ"),r=d("1OyB"),o=d("vuIU"),n=d("Ji7U"),e=d("LK+K"),s=d("TSYQ"),t=d.n(s),a=function(Le){var He,ge="".concat(Le.rootPrefixCls,"-item"),Fe=t()(ge,"".concat(ge,"-").concat(Le.page),(He={},Object(c.a)(He,"".concat(ge,"-active"),Le.active),Object(c.a)(He,Le.className,!!Le.className),Object(c.a)(He,"".concat(ge,"-disabled"),!Le.page),He)),Q=function(){Le.onClick(Le.page)},fe=function(ne){Le.onKeyPress(ne,Le.onClick,Le.page)};return m.a.createElement("li",{title:Le.showTitle?Le.page:null,className:Fe,onClick:Q,onKeyPress:fe,tabIndex:"0"},Le.itemRender(Le.page,"page",m.a.createElement("a",{rel:"nofollow"},Le.page)))},l=a,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(Ee){Object(n.a)(He,Ee);var Le=Object(e.a)(He);function He(){var ge;Object(r.a)(this,He);for(var Fe=arguments.length,Q=new Array(Fe),fe=0;fe<Fe;fe++)Q[fe]=arguments[fe];return ge=Le.call.apply(Le,[this].concat(Q)),ge.state={goInputText:""},ge.buildOptionText=function(Je){return"".concat(Je," ").concat(ge.props.locale.items_per_page)},ge.changeSize=function(Je){ge.props.changeSize(Number(Je))},ge.handleChange=function(Je){ge.setState({goInputText:Je.target.value})},ge.handleBlur=function(Je){var ne=ge.props,X=ne.goButton,G=ne.quickGo,te=ne.rootPrefixCls,we=ge.state.goInputText;if(X||we==="")return;if(Je.relatedTarget&&(Je.relatedTarget.className.indexOf("".concat(te,"-prev"))>=0||Je.relatedTarget.className.indexOf("".concat(te,"-next"))>=0))return;ge.setState({goInputText:""}),G(ge.getValidValue())},ge.go=function(Je){var ne=ge.state.goInputText;if(ne==="")return;(Je.keyCode===u.ENTER||Je.type==="click")&&(ge.setState({goInputText:""}),ge.props.quickGo(ge.getValidValue()))},ge}return Object(o.a)(He,[{key:"getValidValue",value:function(){var Fe=this.state,Q=Fe.goInputText,fe=Fe.current;return!Q||isNaN(Q)?fe:Number(Q)}},{key:"getPageSizeOptions",value:function(){var Fe=this.props,Q=Fe.pageSize,fe=Fe.pageSizeOptions;return fe.some(function(Je){return Je.toString()===Q.toString()})?fe:fe.concat([Q.toString()]).sort(function(Je,ne){var X=isNaN(Number(Je))?0:Number(Je),G=isNaN(Number(ne))?0:Number(ne);return X-G})}},{key:"render",value:function(){var Fe=this,Q=this.props,fe=Q.pageSize,Je=Q.locale,ne=Q.rootPrefixCls,X=Q.changeSize,G=Q.quickGo,te=Q.goButton,we=Q.selectComponentClass,he=Q.buildOptionText,Pe=Q.selectPrefixCls,Oe=Q.disabled,le=this.state.goInputText,me="".concat(ne,"-options"),_e=we,$e=null,gt=null,et=null;if(!X&&!G)return null;var Ie=this.getPageSizeOptions();if(X&&_e){var rt=Ie.map(function(Ge,vt){return m.a.createElement(_e.Option,{key:vt,value:Ge.toString()},(he||Fe.buildOptionText)(Ge))});$e=m.a.createElement(_e,{disabled:Oe,prefixCls:Pe,showSearch:!1,className:"".concat(me,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(fe||Ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(vt){return vt.parentNode}},rt)}return G&&(te&&(et=typeof te=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Oe,className:"".concat(me,"-quick-jumper-button")},Je.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},te)),gt=m.a.createElement("div",{className:"".concat(me,"-quick-jumper")},Je.jump_to,m.a.createElement("input",{disabled:Oe,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Je.page,et)),m.a.createElement("li",{className:"".concat(me)},$e,gt)}}]),He}(m.a.Component);f.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=f,g=d("N2Kk");function A(){}function y(Ee){return typeof Ee=="number"&&isFinite(Ee)&&Math.floor(Ee)===Ee}function x(Ee,Le,He){return He}function T(Ee,Le,He){var ge=typeof Ee=="undefined"?Le.pageSize:Ee;return Math.floor((He.total-1)/ge)+1}var S=function(Ee){Object(n.a)(He,Ee);var Le=Object(e.a)(He);function He(ge){var Fe;Object(r.a)(this,He),Fe=Le.call(this,ge),Fe.getJumpPrevPage=function(){return Math.max(1,Fe.state.current-(Fe.props.showLessItems?3:5))},Fe.getJumpNextPage=function(){return Math.min(T(void 0,Fe.state,Fe.props),Fe.state.current+(Fe.props.showLessItems?3:5))},Fe.getItemIcon=function(X,G){var te=Fe.props.prefixCls,we=X||m.a.createElement("button",{type:"button","aria-label":G,className:"".concat(te,"-item-link")});return typeof X=="function"&&(we=m.a.createElement(X,Object(i.a)({},Fe.props))),we},Fe.savePaginationNode=function(X){Fe.paginationNode=X},Fe.isValid=function(X){return y(X)&&X!==Fe.state.current},Fe.shouldDisplayQuickJumper=function(){var X=Fe.props,G=X.showQuickJumper,te=X.pageSize,we=X.total;return we<=te?!1:G},Fe.handleKeyDown=function(X){(X.keyCode===u.ARROW_UP||X.keyCode===u.ARROW_DOWN)&&X.preventDefault()},Fe.handleKeyUp=function(X){var G=Fe.getValidValue(X),te=Fe.state.currentInputValue;G!==te&&Fe.setState({currentInputValue:G}),X.keyCode===u.ENTER?Fe.handleChange(G):X.keyCode===u.ARROW_UP?Fe.handleChange(G-1):X.keyCode===u.ARROW_DOWN&&Fe.handleChange(G+1)},Fe.changePageSize=function(X){var G=Fe.state.current,te=T(X,Fe.state,Fe.props);G=G>te?te:G,te===0&&(G=Fe.state.current),typeof X=="number"&&("pageSize"in Fe.props||Fe.setState({pageSize:X}),"current"in Fe.props||Fe.setState({current:G,currentInputValue:G})),Fe.props.onShowSizeChange(G,X),"onChange"in Fe.props&&Fe.props.onChange&&Fe.props.onChange(G,X)},Fe.handleChange=function(X){var G=Fe.props.disabled,te=X;if(Fe.isValid(te)&&!G){var we=T(void 0,Fe.state,Fe.props);te>we?te=we:te<1&&(te=1),"current"in Fe.props||Fe.setState({current:te,currentInputValue:te});var he=Fe.state.pageSize;return Fe.props.onChange(te,he),te}return Fe.state.current},Fe.prev=function(){Fe.hasPrev()&&Fe.handleChange(Fe.state.current-1)},Fe.next=function(){Fe.hasNext()&&Fe.handleChange(Fe.state.current+1)},Fe.jumpPrev=function(){Fe.handleChange(Fe.getJumpPrevPage())},Fe.jumpNext=function(){Fe.handleChange(Fe.getJumpNextPage())},Fe.hasPrev=function(){return Fe.state.current>1},Fe.hasNext=function(){return Fe.state.current<T(void 0,Fe.state,Fe.props)},Fe.runIfEnter=function(X,G){if(X.key==="Enter"||X.charCode===13){for(var te=arguments.length,we=new Array(te>2?te-2:0),he=2;he<te;he++)we[he-2]=arguments[he];G.apply(void 0,we)}},Fe.runIfEnterPrev=function(X){Fe.runIfEnter(X,Fe.prev)},Fe.runIfEnterNext=function(X){Fe.runIfEnter(X,Fe.next)},Fe.runIfEnterJumpPrev=function(X){Fe.runIfEnter(X,Fe.jumpPrev)},Fe.runIfEnterJumpNext=function(X){Fe.runIfEnter(X,Fe.jumpNext)},Fe.handleGoTO=function(X){(X.keyCode===u.ENTER||X.type==="click")&&Fe.handleChange(Fe.state.currentInputValue)};var Q=ge.onChange!==A,fe="current"in ge;fe&&!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 Je=ge.defaultCurrent;"current"in ge&&(Je=ge.current);var ne=ge.defaultPageSize;return"pageSize"in ge&&(ne=ge.pageSize),Je=Math.min(Je,T(ne,void 0,ge)),Fe.state={current:Je,currentInputValue:Je,pageSize:ne},Fe}return Object(o.a)(He,[{key:"componentDidUpdate",value:function(Fe,Q){var fe=this.props.prefixCls;if(Q.current!==this.state.current&&this.paginationNode){var Je=this.paginationNode.querySelector(".".concat(fe,"-item-").concat(Q.current));Je&&document.activeElement===Je&&Je.blur()}}},{key:"getValidValue",value:function(Fe){var Q=Fe.target.value,fe=T(void 0,this.state,this.props),Je=this.state.currentInputValue,ne;return Q===""?ne=Q:isNaN(Number(Q))?ne=Je:Q>=fe?ne=fe:ne=Number(Q),ne}},{key:"getShowSizeChanger",value:function(){var Fe=this.props,Q=Fe.showSizeChanger,fe=Fe.total,Je=Fe.totalBoundaryShowSizeChanger;return typeof Q!="undefined"?Q:fe>Je}},{key:"renderPrev",value:function(Fe){var Q=this.props,fe=Q.prevIcon,Je=Q.itemRender,ne=Je(Fe,"prev",this.getItemIcon(fe,"prev page")),X=!this.hasPrev();return Object(w.isValidElement)(ne)?Object(w.cloneElement)(ne,{disabled:X}):ne}},{key:"renderNext",value:function(Fe){var Q=this.props,fe=Q.nextIcon,Je=Q.itemRender,ne=Je(Fe,"next",this.getItemIcon(fe,"next page")),X=!this.hasNext();return Object(w.isValidElement)(ne)?Object(w.cloneElement)(ne,{disabled:X}):ne}},{key:"render",value:function(){var Fe=this,Q=this.props,fe=Q.prefixCls,Je=Q.className,ne=Q.style,X=Q.disabled,G=Q.hideOnSinglePage,te=Q.total,we=Q.locale,he=Q.showQuickJumper,Pe=Q.showLessItems,Oe=Q.showTitle,le=Q.showTotal,me=Q.simple,_e=Q.itemRender,$e=Q.showPrevNextJumpers,gt=Q.jumpPrevIcon,et=Q.jumpNextIcon,Ie=Q.selectComponentClass,rt=Q.selectPrefixCls,Ge=Q.pageSizeOptions,vt=this.state,Ot=vt.current,Et=vt.pageSize,Tt=vt.currentInputValue;if(G===!0&&te<=Et)return null;var Rt=T(void 0,this.state,this.props),Be=[],Z=null,J=null,je=null,Re=null,oe=null,yt=he&&he.goButton,zt=Pe?1:2,lt=Ot-1>0?Ot-1:0,$t=Ot+1<Rt?Ot+1:Rt,cr=Object.keys(this.props).reduce(function(Vn,kt){return(kt.substr(0,5)==="data-"||kt.substr(0,5)==="aria-"||kt==="role")&&(Vn[kt]=Fe.props[kt]),Vn},{});if(me)return yt&&(typeof yt=="boolean"?oe=m.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},we.jump_to_confirm):oe=m.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yt),oe=m.a.createElement("li",{title:Oe?"".concat(we.jump_to).concat(Ot,"/").concat(Rt):null,className:"".concat(fe,"-simple-pager")},oe)),m.a.createElement("ul",Object(h.a)({className:t()(fe,"".concat(fe,"-simple"),Object(c.a)({},"".concat(fe,"-disabled"),X),Je),style:ne,ref:this.savePaginationNode},cr),m.a.createElement("li",{title:Oe?we.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:t()("".concat(fe,"-prev"),Object(c.a)({},"".concat(fe,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(lt)),m.a.createElement("li",{title:Oe?"".concat(Ot,"/").concat(Rt):null,className:"".concat(fe,"-simple-pager")},m.a.createElement("input",{type:"text",value:Tt,disabled:X,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),m.a.createElement("span",{className:"".concat(fe,"-slash")},"/"),Rt),m.a.createElement("li",{title:Oe?we.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:t()("".concat(fe,"-next"),Object(c.a)({},"".concat(fe,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext($t)),oe);if(Rt<=3+zt*2){var cn={locale:we,rootPrefixCls:fe,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Oe,itemRender:_e};Rt||Be.push(m.a.createElement(l,Object(h.a)({},cn,{key:"noPager",page:Rt,className:"".concat(fe,"-disabled")})));for(var pr=1;pr<=Rt;pr+=1){var gr=Ot===pr;Be.push(m.a.createElement(l,Object(h.a)({},cn,{key:pr,page:pr,active:gr})))}}else{var Zt=Pe?we.prev_3:we.prev_5,Vt=Pe?we.next_3:we.next_5;$e&&(Z=m.a.createElement("li",{title:Oe?Zt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:t()("".concat(fe,"-jump-prev"),Object(c.a)({},"".concat(fe,"-jump-prev-custom-icon"),!!gt))},_e(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(gt,"prev page"))),J=m.a.createElement("li",{title:Oe?Vt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:t()("".concat(fe,"-jump-next"),Object(c.a)({},"".concat(fe,"-jump-next-custom-icon"),!!et))},_e(this.getJumpNextPage(),"jump-next",this.getItemIcon(et,"next page")))),Re=m.a.createElement(l,{locale:we,last:!0,rootPrefixCls:fe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Rt,page:Rt,active:!1,showTitle:Oe,itemRender:_e}),je=m.a.createElement(l,{locale:we,rootPrefixCls:fe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Oe,itemRender:_e});var mt=Math.max(1,Ot-zt),Yr=Math.min(Ot+zt,Rt);Ot-1<=zt&&(Yr=1+zt*2),Rt-Ot<=zt&&(mt=Rt-zt*2);for(var Tn=mt;Tn<=Yr;Tn+=1){var Hn=Ot===Tn;Be.push(m.a.createElement(l,{locale:we,rootPrefixCls:fe,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Tn,page:Tn,active:Hn,showTitle:Oe,itemRender:_e}))}Ot-1>=zt*2&&Ot!==1+2&&(Be[0]=Object(w.cloneElement)(Be[0],{className:"".concat(fe,"-item-after-jump-prev")}),Be.unshift(Z)),Rt-Ot>=zt*2&&Ot!==Rt-2&&(Be[Be.length-1]=Object(w.cloneElement)(Be[Be.length-1],{className:"".concat(fe,"-item-before-jump-next")}),Be.push(J)),mt!==1&&Be.unshift(je),Yr!==Rt&&Be.push(Re)}var ei=null;le&&(ei=m.a.createElement("li",{className:"".concat(fe,"-total-text")},le(te,[te===0?0:(Ot-1)*Et+1,Ot*Et>te?te:Ot*Et])));var ji=!this.hasPrev()||!Rt,Ln=!this.hasNext()||!Rt;return m.a.createElement("ul",Object(h.a)({className:t()(fe,Je,Object(c.a)({},"".concat(fe,"-disabled"),X)),style:ne,unselectable:"unselectable",ref:this.savePaginationNode},cr),ei,m.a.createElement("li",{title:Oe?we.prev_page:null,onClick:this.prev,tabIndex:ji?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(fe,"-prev"),Object(c.a)({},"".concat(fe,"-disabled"),ji)),"aria-disabled":ji},this.renderPrev(lt)),Be,m.a.createElement("li",{title:Oe?we.next_page:null,onClick:this.next,tabIndex:Ln?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(fe,"-next"),Object(c.a)({},"".concat(fe,"-disabled"),Ln)),"aria-disabled":Ln},this.renderNext($t)),m.a.createElement(p,{disabled:X,locale:we,rootPrefixCls:fe,selectComponentClass:Ie,selectPrefixCls:rt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ot,pageSize:Et,pageSizeOptions:Ge,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:yt}))}}],[{key:"getDerivedStateFromProps",value:function(Fe,Q){var fe={};if("current"in Fe&&(fe.current=Fe.current,Fe.current!==Q.current&&(fe.currentInputValue=fe.current)),"pageSize"in Fe&&Fe.pageSize!==Q.pageSize){var Je=Q.current,ne=T(Fe.pageSize,Q,Fe);Je=Je>ne?ne:Je,"current"in Fe||(fe.current=Je,fe.currentInputValue=Je),fe.pageSize=Fe.pageSize}return fe}}]),He}(m.a.Component);S.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:g.a,style:{},itemRender:x,totalBoundaryShowSizeChanger:50};var b=S,_=d("H4fg"),I=d("DFhj"),L=d.n(I),D=d("fEPi"),N=d.n(D),M=d("u9fO"),B=d.n(M),R=d("mO/d"),H=d.n(R),F=d("2fM7"),K=function(Le){return w.createElement(F.a,v()({size:"small"},Le))};K.Option=F.a.Option;var U=K,V=d("YMnH"),z=d("H84U"),Y=d("5OYt"),q=function(Ee,Le){var He={};for(var ge in Ee)Object.prototype.hasOwnProperty.call(Ee,ge)&&Le.indexOf(ge)<0&&(He[ge]=Ee[ge]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ge=Object.getOwnPropertySymbols(Ee);Fe<ge.length;Fe++)Le.indexOf(ge[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ge[Fe])&&(He[ge[Fe]]=Ee[ge[Fe]]);return He},ce=function(Le){var He=Le.prefixCls,ge=Le.selectPrefixCls,Fe=Le.className,Q=Le.size,fe=Le.locale,Je=q(Le,["prefixCls","selectPrefixCls","className","size","locale"]),ne=Object(Y.a)(),X=ne.xs,G=w.useContext(z.b),te=G.getPrefixCls,we=G.direction,he=te("pagination",He),Pe=function(){var me=w.createElement("span",{className:"".concat(he,"-item-ellipsis")},"\u2022\u2022\u2022"),_e=w.createElement("button",{className:"".concat(he,"-item-link"),type:"button",tabIndex:-1},w.createElement(L.a,null)),$e=w.createElement("button",{className:"".concat(he,"-item-link"),type:"button",tabIndex:-1},w.createElement(N.a,null)),gt=w.createElement("a",{className:"".concat(he,"-item-link")},w.createElement("div",{className:"".concat(he,"-item-container")},w.createElement(B.a,{className:"".concat(he,"-item-link-icon")}),me)),et=w.createElement("a",{className:"".concat(he,"-item-link")},w.createElement("div",{className:"".concat(he,"-item-container")},w.createElement(H.a,{className:"".concat(he,"-item-link-icon")}),me));if(we==="rtl"){var Ie=[$e,_e];_e=Ie[0],$e=Ie[1];var rt=[et,gt];gt=rt[0],et=rt[1]}return{prevIcon:_e,nextIcon:$e,jumpPrevIcon:gt,jumpNextIcon:et}},Oe=function(me){var _e=v()(v()({},me),fe),$e=Q==="small"||!!(X&&!Q&&Je.responsive),gt=te("select",ge),et=t()(Fe,E()({mini:$e},"".concat(he,"-rtl"),we==="rtl"));return w.createElement(b,v()({},Je,{prefixCls:he,selectPrefixCls:gt},Pe(),{className:et,selectComponentClass:$e?U:F.a,locale:_e}))};return w.createElement(V.a,{componentName:"Pagination",defaultLocale:_.a},Oe)},ie=ce,ve=P.a=ie},NohK:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=function(C){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,w=null;return function(){for(var m=this,h=arguments.length,c=new Array(h),i=0;i<h;i++)c[i]=arguments[i];clearTimeout(w),w=setTimeout(function(){C.apply(m,c)},v)}};P.default=O},Nu4q:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:function(C,v){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:C}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:v}},{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:v}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:v}},{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:C}}]}},name:"picture",theme:"twotone"};P.default=O},"O/iA":function(j,P,d){},O3gP:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("O/iA"),v=d.n(C),w=d("OaEy")},OELB:function(j,P,d){var O=d("bYtY"),E=1e-4;function C(y){return y.replace(/^\s+|\s+$/g,"")}function v(y,x,T,S){var b=x[1]-x[0],_=T[1]-T[0];if(b===0)return _===0?T[0]:(T[0]+T[1])/2;if(S)if(b>0){if(y<=x[0])return T[0];if(y>=x[1])return T[1]}else{if(y>=x[0])return T[0];if(y<=x[1])return T[1]}else{if(y===x[0])return T[0];if(y===x[1])return T[1]}return(y-x[0])/b*_+T[0]}function w(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"?C(y).match(/%$/)?parseFloat(y)/100*x:parseFloat(y):y==null?NaN:+y}function m(y,x,T){return x==null&&(x=10),x=Math.min(Math.max(0,x),20),y=(+y).toFixed(x),T?y:+y}function h(y){return y.sort(function(x,T){return x-T}),y}function c(y){if(y=+y,isNaN(y))return 0;for(var x=1,T=0;Math.round(y*x)/x!==y;)x*=10,T++;return T}function i(y){var x=y.toString(),T=x.indexOf("e");if(T>0){var S=+x.slice(T+1);return S<0?-S:0}else{var b=x.indexOf(".");return b<0?0:x.length-1-b}}function r(y,x){var T=Math.log,S=Math.LN10,b=Math.floor(T(y[1]-y[0])/S),_=Math.round(T(Math.abs(x[1]-x[0]))/S),I=Math.min(Math.max(-b+_,0),20);return isFinite(I)?I:20}function o(y,x,T){if(!y[x])return 0;var S=O.reduce(y,function(F,K){return F+(isNaN(K)?0:K)},0);if(S===0)return 0;for(var b=Math.pow(10,T),_=O.map(y,function(F){return(isNaN(F)?0:F)/S*b*100}),I=b*100,L=O.map(_,function(F){return Math.floor(F)}),D=O.reduce(L,function(F,K){return F+K},0),N=O.map(_,function(F,K){return F-L[K]});D<I;){for(var M=Number.NEGATIVE_INFINITY,B=null,R=0,H=N.length;R<H;++R)N[R]>M&&(M=N[R],B=R);++L[B],N[B]=0,++D}return L[x]/b}var n=9007199254740991;function e(y){var x=Math.PI*2;return(y%x+x)%x}function s(y){return y>-E&&y<E}var t=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function a(y){if(y instanceof Date)return y;if(typeof y=="string"){var x=t.exec(y);if(!x)return new Date(NaN);if(x[8]){var T=+x[4]||0;return x[8].toUpperCase()!=="Z"&&(T-=x[8].slice(0,3)),new Date(Date.UTC(+x[1],+(x[2]||1)-1,+x[3]||1,T,+(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 T=u(y),S=Math.pow(10,T),b=y/S,_;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=_*S,T>=-20?+y.toFixed(T<0?-T:0):y}function p(y,x){var T=(y.length-1)*x+1,S=Math.floor(T),b=+y[S-1],_=T-S;return _?b+_*(y[S]-b):b}function g(y){y.sort(function(D,N){return L(D,N,0)?-1:1});for(var x=-Infinity,T=1,S=0;S<y.length;){for(var b=y[S].interval,_=y[S].close,I=0;I<2;I++)b[I]<=x&&(b[I]=x,_[I]=I?1:1-T),x=b[I],T=_[I];b[0]===b[1]&&_[0]*_[1]!==1?y.splice(S,1):S++}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}P.linearMap=v,P.parsePercent=w,P.round=m,P.asc=h,P.getPrecision=c,P.getPrecisionSafe=i,P.getPixelPrecision=r,P.getPercentWithPrecision=o,P.MAX_SAFE_INTEGER=n,P.remRadian=e,P.isRadianAroundZero=s,P.parseDate=a,P.quantity=l,P.quantityExponent=u,P.nice=f,P.quantile=p,P.reformIntervals=g,P.isNumeric=A},OKJ2:function(j,P,d){var O=d("KxfA"),E=O.retrieveRawValue,C=d("7aKB"),v=C.getTooltipMarker,w=C.formatTpl,m=d("4NO4"),h=m.getTooltipRenderMode,c=/\{@(.+?)\}/g,i={getDataParams:function(r,o){var n=this.getData(o),e=this.getRawValue(r,o),s=n.getRawIndex(r),t=n.getName(r),a=n.getRawDataItem(r),l=n.getItemVisual(r,"color"),u=n.getItemVisual(r,"borderColor"),f=this.ecModel.getComponent("tooltip"),p=f&&f.get("renderMode"),g=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:t,dataIndex:s,data:a,dataType:o,value:e,color:l,borderColor:u,dimensionNames:x?x.dimensionNames:null,encode:x?x.encode:null,marker:v({color:l,renderMode:g}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(r,o,n,e,s){o=o||"normal";var t=this.getData(n),a=t.getItemModel(r),l=this.getDataParams(r,n);e!=null&&l.value instanceof Array&&(l.value=l.value[e]);var u=a.get(o==="normal"?[s||"label","formatter"]:[o,s||"label","formatter"]);if(typeof u=="function")return l.status=o,l.dimensionIndex=e,u(l);if(typeof u=="string"){var f=w(u,l);return f.replace(c,function(p,g){var A=g.length;return g.charAt(0)==="["&&g.charAt(A-1)==="]"&&(g=+g.slice(1,A-1)),E(t,r,g)})}},getRawValue:function(r,o){return E(this.getData(o),r)},formatTooltip:function(){}};j.exports=i},OLod:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("K3mO"))})(this,function(O){O.lib.Cipher||function(E){var C=O,v=C.lib,w=v.Base,m=v.WordArray,h=v.BufferedBlockAlgorithm,c=C.enc,i=c.Utf8,r=c.Base64,o=C.algo,n=o.EvpKDF,e=v.Cipher=h.extend({cfg:w.extend(),createEncryptor:function(I,L){return this.create(this._ENC_XFORM_MODE,I,L)},createDecryptor:function(I,L){return this.create(this._DEC_XFORM_MODE,I,L)},init:function(I,L,D){this.cfg=this.cfg.extend(D),this._xformMode=I,this._key=L,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var L=this._doFinalize();return L},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(I){return typeof I=="string"?b:x}return function(I){return{encrypt:function(D,N,M){return _(N).encrypt(I,D,N,M)},decrypt:function(D,N,M){return _(N).decrypt(I,D,N,M)}}}}()}),s=v.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),t=C.mode={},a=v.BlockCipherMode=w.extend({createEncryptor:function(I,L){return this.Encryptor.create(I,L)},createDecryptor:function(I,L){return this.Decryptor.create(I,L)},init:function(I,L){this._cipher=I,this._iv=L}}),l=t.CBC=function(){var _=a.extend();_.Encryptor=_.extend({processBlock:function(D,N){var M=this._cipher,B=M.blockSize;I.call(this,D,N,B),M.encryptBlock(D,N),this._prevBlock=D.slice(N,N+B)}}),_.Decryptor=_.extend({processBlock:function(D,N){var M=this._cipher,B=M.blockSize,R=D.slice(N,N+B);M.decryptBlock(D,N),I.call(this,D,N,B),this._prevBlock=R}});function I(L,D,N){var M,B=this._iv;B?(M=B,this._iv=E):M=this._prevBlock;for(var R=0;R<N;R++)L[D+R]^=M[R]}return _}(),u=C.pad={},f=u.Pkcs7={pad:function(I,L){for(var D=L*4,N=D-I.sigBytes%D,M=N<<24|N<<16|N<<8|N,B=[],R=0;R<N;R+=4)B.push(M);var H=m.create(B,N);I.concat(H)},unpad:function(I){var L=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=L}},p=v.BlockCipher=e.extend({cfg:e.cfg.extend({mode:l,padding:f}),reset:function(){var I;e.reset.call(this);var L=this.cfg,D=L.iv,N=L.mode;this._xformMode==this._ENC_XFORM_MODE?I=N.createEncryptor:(I=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,D&&D.words):(this._mode=I.call(N,this,D&&D.words),this._mode.__creator=I)},_doProcessBlock:function(I,L){this._mode.processBlock(I,L)},_doFinalize:function(){var I,L=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(L.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),L.unpad(I)),I},blockSize:128/32}),g=v.CipherParams=w.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),A=C.format={},y=A.OpenSSL={stringify:function(I){var L,D=I.ciphertext,N=I.salt;return N?L=m.create([1398893684,1701076831]).concat(N).concat(D):L=D,L.toString(r)},parse:function(I){var L,D=r.parse(I),N=D.words;return N[0]==1398893684&&N[1]==1701076831&&(L=m.create(N.slice(2,4)),N.splice(0,4),D.sigBytes-=16),g.create({ciphertext:D,salt:L})}},x=v.SerializableCipher=w.extend({cfg:w.extend({format:y}),encrypt:function(I,L,D,N){N=this.cfg.extend(N);var M=I.createEncryptor(D,N),B=M.finalize(L),R=M.cfg;return g.create({ciphertext:B,key:D,iv:R.iv,algorithm:I,mode:R.mode,padding:R.padding,blockSize:I.blockSize,formatter:N.format})},decrypt:function(I,L,D,N){N=this.cfg.extend(N),L=this._parse(L,N.format);var M=I.createDecryptor(D,N).finalize(L.ciphertext);return M},_parse:function(I,L){return typeof I=="string"?L.parse(I,this):I}}),T=C.kdf={},S=T.OpenSSL={execute:function(I,L,D,N){N||(N=m.random(64/8));var M=n.create({keySize:L+D}).compute(I,N),B=m.create(M.words.slice(L),D*4);return M.sigBytes=L*4,g.create({key:M,iv:B,salt:N})}},b=v.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:S}),encrypt:function(I,L,D,N){N=this.cfg.extend(N);var M=N.kdf.execute(D,I.keySize,I.ivSize);N.iv=M.iv;var B=x.encrypt.call(this,I,L,M.key,N);return B.mixIn(M),B},decrypt:function(I,L,D,N){N=this.cfg.extend(N),L=this._parse(L,N.format);var M=N.kdf.execute(D,I.keySize,I.ivSize,L.salt);N.iv=M.iv;var B=x.decrypt.call(this,I,L,M.key,N);return B}})}()})},OPEp:function(j,P,d){},OQFs:function(j,P,d){var O=d("KCsZ"),E=O([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getLineStyle:function(v){var w=E(this,v);return w.lineDash=this.getLineDash(w.lineWidth),w},getLineDash:function(v){v==null&&(v=1);var w=this.get("type"),m=Math.max(v,2),h=v*4;return w==="solid"||w==null?!1:w==="dashed"?[h,h]:[m,m]}};j.exports=C},OS9S:function(j,P,d){var O=d("bYtY"),E=O.inherits,C=d("Gev7"),v=d("mFDi");function w(c){C.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}w.prototype.incremental=!0,w.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},w.prototype.addDisplayable=function(c,i){i?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},w.prototype.addDisplayables=function(c,i){i=i||!1;for(var r=0;r<c.length;r++)this.addDisplayable(c[r],i)},w.prototype.eachPendingDisplayable=function(c){for(var i=this._cursor;i<this._displayables.length;i++)c&&c(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)c&&c(this._temporaryDisplayables[i])},w.prototype.update=function(){this.updateTransform();for(var c=this._cursor;c<this._displayables.length;c++){var i=this._displayables[c];i.parent=this,i.update(),i.parent=null}for(var c=0;c<this._temporaryDisplayables.length;c++){var i=this._temporaryDisplayables[c];i.parent=this,i.update(),i.parent=null}},w.prototype.brush=function(c,i){for(var r=this._cursor;r<this._displayables.length;r++){var o=this._displayables[r];o.beforeBrush&&o.beforeBrush(c),o.brush(c,r===this._cursor?null:this._displayables[r-1]),o.afterBrush&&o.afterBrush(c)}this._cursor=r;for(var r=0;r<this._temporaryDisplayables.length;r++){var o=this._temporaryDisplayables[r];o.beforeBrush&&o.beforeBrush(c),o.brush(c,r===0?null:this._temporaryDisplayables[r-1]),o.afterBrush&&o.afterBrush(c)}this._temporaryDisplayables=[],this.notClear=!0};var m=[];w.prototype.getBoundingRect=function(){if(!this._rect){for(var c=new v(Infinity,Infinity,-Infinity,-Infinity),i=0;i<this._displayables.length;i++){var r=this._displayables[i],o=r.getBoundingRect().clone();r.needLocalTransform()&&o.applyTransform(r.getLocalTransform(m)),c.union(o)}this._rect=c}return this._rect},w.prototype.contain=function(c,i){var r=this.transformCoordToLocal(c,i),o=this.getBoundingRect();if(o.contain(r[0],r[1]))for(var n=0;n<this._displayables.length;n++){var e=this._displayables[n];if(e.contain(c,i))return!0}return!1},E(w,C);var h=w;j.exports=h},OUJF:function(j,P,d){var O=d("ProS"),E=d("bYtY");O.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(C,v){var w=v.getComponent("timeline");return w&&C.currentIndex!=null&&(w.setCurrentIndex(C.currentIndex),!w.get("loop",!0)&&w.isIndexMax()&&w.setPlayState(!1)),v.resetOption("timeline"),E.defaults({currentIndex:w.option.currentIndex},C)}),O.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(C,v){var w=v.getComponent("timeline");w&&C.playState!=null&&w.setPlayState(C.playState)})},OXB0:function(j,P,d){var O=d("T4UG"),E=d("MwEJ"),C=d("IDmD"),v=O.extend({type:"series.heatmap",getInitialData:function(w,m){return E(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var w=C.get(this.get("coordinateSystem"));if(w&&w.dimensions)return w.dimensions[0]==="lng"&&w.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});j.exports=v},OaEy:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("bKJz"),v=d.n(C),w=d("R9oj")},Ol7k:function(j,P,d){"use strict";var O=d("PKem"),E=d("ZX9x");O.b.Sider=E.b,P.a=O.b},OlYY:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("ItGF"),m=d("4NO4"),h=d("UOVi"),c=d("zDms"),i=v.each,r=h.eachAxisDim,o=C.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(t,a,l){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var u=n(t);this.settledOption=u,this.mergeDefaultAndTheme(t,l),this.doInit(u)},mergeOption:function(t){var a=n(t);v.merge(this.option,t,!0),v.merge(this.settledOption,a,!0),this.doInit(a)},doInit:function(t){var a=this.option;w.canvasSupported||(a.realtime=!1),this._setDefaultThrottle(t),e(this,t);var l=this.settledOption;i([["start","startValue"],["end","endValue"]],function(u,f){this._rangePropMode[f]==="value"&&(a[u[0]]=l[u[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(a,l,u,f){var p=this.dependentModels[a.axis][l],g=p.__dzAxisProxy||(p.__dzAxisProxy=new c(a.name,l,this,f));t[a.name+"_"+l]=g},this)},_resetTarget:function(){var t=this.option,a=this._judgeAutoMode();r(function(l){var u=l.axisIndex;t[u]=m.normalizeToArray(t[u])},this),a==="axisIndex"?this._autoSetAxisIndex():a==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,a=!1;r(function(u){t[u.axisIndex]!=null&&(a=!0)},this);var l=t.orient;if(l==null&&a)return"orient";if(!a)return l==null&&(t.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var t=!0,a=this.get("orient",!0),l=this.option,u=this.dependentModels;if(t){var f=a==="vertical"?"y":"x";u[f+"Axis"].length?(l[f+"AxisIndex"]=[0],t=!1):i(u.singleAxis,function(p){t&&p.get("orient",!0)===a&&(l.singleAxisIndex=[p.componentIndex],t=!1)})}t&&r(function(p){if(!t)return;var g=[],A=this.dependentModels[p.axis];if(A.length&&!g.length)for(var y=0,x=A.length;y<x;y++)A[y].get("type")==="category"&&g.push(y);l[p.axisIndex]=g,g.length&&(t=!1)},this),t&&this.ecModel.eachSeries(function(p){this._isSeriesHasAllAxesTypeOf(p,"value")&&r(function(g){var A=l[g.axisIndex],y=p.get(g.axisIndex),x=p.get(g.axisId),T=p.ecModel.queryComponents({mainType:g.axis,index:y,id:x})[0];y=T.componentIndex,v.indexOf(A,y)<0&&A.push(y)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(a){!t&&(t=a.name)},this),this.option.orient=t==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,a){var l=!0;return r(function(u){var f=t.get(u.axisIndex),p=this.dependentModels[u.axis][f];(!p||p.get("type")!==a)&&(l=!1)},this),l},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return r(function(a){if(t==null){var l=this.get(a.axisIndex);l.length&&(t=this.dependentModels[a.axis][l[0]])}},this),t},eachTargetAxis:function(t,a){var l=this.ecModel;r(function(u){i(this.get(u.axisIndex),function(f){t.call(a,u,f,this,l)},this)},this)},getAxisProxy:function(t,a){return this._axisProxies[t+"_"+a]},getAxisModel:function(t,a){var l=this.getAxisProxy(t,a);return l&&l.getAxisModel()},setRawRange:function(t){var a=this.option,l=this.settledOption;i([["start","startValue"],["end","endValue"]],function(u){(t[u[0]]!=null||t[u[1]]!=null)&&(a[u[0]]=l[u[0]]=t[u[0]],a[u[1]]=l[u[1]]=t[u[1]])},this),e(this,t)},setCalculatedRange:function(t){var a=this.option;i(["start","startValue","end","endValue"],function(l){a[l]=t[l]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,a){if(t==null&&a==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var a=this._axisProxies;for(var l in a)if(a.hasOwnProperty(l)&&a[l].hostedBy(this))return a[l];for(var l in a)if(a.hasOwnProperty(l)&&!a[l].hostedBy(this))return a[l]},getRangePropMode:function(){return this._rangePropMode.slice()}});function n(t){var a={};return i(["start","end","startValue","endValue","throttle"],function(l){t.hasOwnProperty(l)&&(a[l]=t[l])}),a}function e(t,a){var l=t._rangePropMode,u=t.get("rangeMode");i([["start","startValue"],["end","endValue"]],function(f,p){var g=a[f[0]]!=null,A=a[f[1]]!=null;g&&!A?l[p]="percent":!g&&A?l[p]="value":u?l[p]=u[p]:g&&(l[p]="percent")})}var s=o;j.exports=s},OnYD:function(j,P,d){},"Oy/b":function(j,P,d){(function(E,C){j.exports=C()})(typeof self!="undefined"?self:this,function(){return function(O){var E={};function C(v){if(E[v])return E[v].exports;var w=E[v]={i:v,l:!1,exports:{}};return O[v].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=O,C.c=E,C.d=function(v,w,m){C.o(v,w)||Object.defineProperty(v,w,{enumerable:!0,get:m})},C.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},C.t=function(v,w){if(w&1&&(v=C(v)),w&8)return v;if(w&4&&typeof v=="object"&&v&&v.__esModule)return v;var m=Object.create(null);if(C.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:v}),w&2&&typeof v!="string")for(var h in v)C.d(m,h,function(c){return v[c]}.bind(null,h));return m},C.n=function(v){var w=v&&v.__esModule?function(){return v.default}:function(){return v};return C.d(w,"a",w),w},C.o=function(v,w){return Object.prototype.hasOwnProperty.call(v,w)},C.p="",C(C.s=1)}([function(O,E,C){},function(O,E,C){"use strict";C.r(E);var v=C(0),w=function(){function ot(ae,de,ye){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ae,this.start=de,this.end=ye}return ot.range=function(de,ye){return ye?!de||!de.loc||!ye.loc||de.loc.lexer!==ye.loc.lexer?null:new ot(de.loc.lexer,de.loc.start,ye.loc.end):de&&de.loc},ot}(),m=function(){function ot(de,ye){this.text=void 0,this.loc=void 0,this.text=de,this.loc=ye}var ae=ot.prototype;return ae.range=function(ye,Ke){return new ot(Ke,w.range(this,ye))},ot}(),h=function ot(ae,de){this.position=void 0;var ye="KaTeX parse error: "+ae,Ke,ct=de&&de.loc;if(ct&&ct.start<=ct.end){var Bt=ct.lexer.input;Ke=ct.start;var Ir=ct.end;Ke===Bt.length?ye+=" at end of input: ":ye+=" at position "+(Ke+1)+": ";var Br=Bt.slice(Ke,Ir).replace(/[^]/g,"$&\u0332"),un;Ke>15?un="\u2026"+Bt.slice(Ke-15,Ke):un=Bt.slice(0,Ke);var zn;Ir+15<Bt.length?zn=Bt.slice(Ir,Ir+15)+"\u2026":zn=Bt.slice(Ir),ye+=un+Br+zn}var Rn=new Error(ye);return Rn.name="ParseError",Rn.__proto__=ot.prototype,Rn.position=Ke,Rn};h.prototype.__proto__=Error.prototype;var c=h,i=function(ae,de){return ae.indexOf(de)!==-1},r=function(ae,de){return ae===void 0?de:ae},o=/([A-Z])/g,n=function(ae){return ae.replace(o,"-$1").toLowerCase()},e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},s=/[&><"']/g;function t(ot){return String(ot).replace(s,function(ae){return e[ae]})}var a=function ot(ae){return ae.type==="ordgroup"||ae.type==="color"?ae.body.length===1?ot(ae.body[0]):ae:ae.type==="font"?ot(ae.body):ae},l=function(ae){var de=a(ae);return de.type==="mathord"||de.type==="textord"||de.type==="atom"},u=function(ae){if(!ae)throw new Error("Expected non-null, but got "+String(ae));return ae},f=function(ae){var de=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(ae);return de!=null?de[1]:"_relative"},p={contains:i,deflt:r,escape:t,hyphenate:n,getBaseElem:a,isCharacterBox:l,protocolFromUrl:f},g=function(){function ot(de){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,de=de||{},this.displayMode=p.deflt(de.displayMode,!1),this.output=p.deflt(de.output,"htmlAndMathml"),this.leqno=p.deflt(de.leqno,!1),this.fleqn=p.deflt(de.fleqn,!1),this.throwOnError=p.deflt(de.throwOnError,!0),this.errorColor=p.deflt(de.errorColor,"#cc0000"),this.macros=de.macros||{},this.minRuleThickness=Math.max(0,p.deflt(de.minRuleThickness,0)),this.colorIsTextColor=p.deflt(de.colorIsTextColor,!1),this.strict=p.deflt(de.strict,"warn"),this.trust=p.deflt(de.trust,!1),this.maxSize=Math.max(0,p.deflt(de.maxSize,Infinity)),this.maxExpand=Math.max(0,p.deflt(de.maxExpand,1e3))}var ae=ot.prototype;return ae.reportNonstrict=function(ye,Ke,ct){var Bt=this.strict;if(typeof Bt=="function"&&(Bt=Bt(ye,Ke,ct)),!Bt||Bt==="ignore")return;if(Bt===!0||Bt==="error")throw new c("LaTeX-incompatible input and strict mode is set to 'error': "+(Ke+" ["+ye+"]"),ct);Bt==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ke+" ["+ye+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Bt+"': "+Ke+" ["+ye+"]"))},ae.useStrictBehavior=function(ye,Ke,ct){var Bt=this.strict;if(typeof Bt=="function")try{Bt=Bt(ye,Ke,ct)}catch(Ir){Bt="error"}return!Bt||Bt==="ignore"?!1:Bt===!0||Bt==="error"?!0:Bt==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ke+" ["+ye+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Bt+"': "+Ke+" ["+ye+"]")),!1)},ae.isTrusted=function(ye){ye.url&&!ye.protocol&&(ye.protocol=p.protocolFromUrl(ye.url));var Ke=typeof this.trust=="function"?this.trust(ye):this.trust;return Boolean(Ke)},ot}(),A=function(){function ot(de,ye,Ke){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=de,this.size=ye,this.cramped=Ke}var ae=ot.prototype;return ae.sup=function(){return D[N[this.id]]},ae.sub=function(){return D[M[this.id]]},ae.fracNum=function(){return D[B[this.id]]},ae.fracDen=function(){return D[R[this.id]]},ae.cramp=function(){return D[H[this.id]]},ae.text=function(){return D[F[this.id]]},ae.isTight=function(){return this.size>=2},ot}(),y=0,x=1,T=2,S=3,b=4,_=5,I=6,L=7,D=[new A(y,0,!1),new A(x,0,!0),new A(T,1,!1),new A(S,1,!0),new A(b,2,!1),new A(_,2,!0),new A(I,3,!1),new A(L,3,!0)],N=[b,_,b,_,I,L,I,L],M=[_,_,_,_,L,L,L,L],B=[T,S,b,_,I,L,I,L],R=[S,S,_,_,L,L,L,L],H=[x,x,S,S,_,_,L,L],F=[y,x,T,S,T,S,T,S],K={DISPLAY:D[y],TEXT:D[T],SCRIPT:D[b],SCRIPTSCRIPT:D[I]},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 V(ot){for(var ae=0;ae<U.length;ae++)for(var de=U[ae],ye=0;ye<de.blocks.length;ye++){var Ke=de.blocks[ye];if(ot>=Ke[0]&&ot<=Ke[1])return de.name}return null}var z=[];U.forEach(function(ot){return ot.blocks.forEach(function(ae){return z.push.apply(z,ae)})});function Y(ot){for(var ae=0;ae<z.length;ae+=2)if(ot>=z[ae]&&ot<=z[ae+1])return!0;return!1}var q=80,ce=function(ae,de){return"M95,"+(622+ae+de)+`
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`+ae/2.075+" -"+ae+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+ae)+`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+ae)+" "+de+"h400000v"+(40+ae)+"h-400000z"},ie=function(ae,de){return"M263,"+(601+ae+de)+`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`+ae/2.084+" -"+ae+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+ae)+`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+ae)+" "+de+"h400000v"+(40+ae)+"h-400000z"},ve=function(ae,de){return"M983 "+(10+ae+de)+`
l`+ae/3.13+" -"+ae+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+ae)+`
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+ae)+" "+de+"h400000v"+(40+ae)+"h-400000z"},Ee=function(ae,de){return"M424,"+(2398+ae+de)+`
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`+ae/4.223+" -"+ae+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+ae)+`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+ae)+" "+de+`
h400000v`+(40+ae)+"h-400000z"},Le=function(ae,de){return"M473,"+(2713+ae+de)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ae/5.298+" -"+ae+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ae)+`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+ae)+" "+de+"h400000v"+(40+ae)+"H1017.7z"},He=function(ae,de,ye){var Ke=ye-54-de-ae;return"M702 "+(ae+de)+"H400000"+(40+ae)+`
H742v`+Ke+`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 `+de+"H400000v"+(40+ae)+"H742z"},ge=function(ae,de,ye){de=1e3*de;var Ke="";switch(ae){case"sqrtMain":Ke=ce(de,q);break;case"sqrtSize1":Ke=ie(de,q);break;case"sqrtSize2":Ke=ve(de,q);break;case"sqrtSize3":Ke=Ee(de,q);break;case"sqrtSize4":Ke=Le(de,q);break;case"sqrtTall":Ke=He(de,q,ye)}return Ke},Fe={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 ot(de){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=de,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ae=ot.prototype;return ae.hasClass=function(ye){return p.contains(this.classes,ye)},ae.toNode=function(){for(var ye=document.createDocumentFragment(),Ke=0;Ke<this.children.length;Ke++)ye.appendChild(this.children[Ke].toNode());return ye},ae.toMarkup=function(){for(var ye="",Ke=0;Ke<this.children.length;Ke++)ye+=this.children[Ke].toMarkup();return ye},ae.toText=function(){var ye=function(ct){return ct.toText()};return this.children.map(ye).join("")},ot}(),fe=function(ae){return ae.filter(function(de){return de}).join(" ")},Je=function(ae,de,ye){if(this.classes=ae||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=ye||{},de){de.style.isTight()&&this.classes.push("mtight");var Ke=de.getColor();Ke&&(this.style.color=Ke)}},ne=function(ae){var de=document.createElement(ae);de.className=fe(this.classes);for(var ye in this.style)this.style.hasOwnProperty(ye)&&(de.style[ye]=this.style[ye]);for(var Ke in this.attributes)this.attributes.hasOwnProperty(Ke)&&de.setAttribute(Ke,this.attributes[Ke]);for(var ct=0;ct<this.children.length;ct++)de.appendChild(this.children[ct].toNode());return de},X=function(ae){var de="<"+ae;this.classes.length&&(de+=' class="'+p.escape(fe(this.classes))+'"');var ye="";for(var Ke in this.style)this.style.hasOwnProperty(Ke)&&(ye+=p.hyphenate(Ke)+":"+this.style[Ke]+";");ye&&(de+=' style="'+p.escape(ye)+'"');for(var ct in this.attributes)this.attributes.hasOwnProperty(ct)&&(de+=" "+ct+'="'+p.escape(this.attributes[ct])+'"');de+=">";for(var Bt=0;Bt<this.children.length;Bt++)de+=this.children[Bt].toMarkup();return de+="</"+ae+">",de},G=function(){function ot(de,ye,Ke,ct){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,Je.call(this,de,Ke,ct),this.children=ye||[]}var ae=ot.prototype;return ae.setAttribute=function(ye,Ke){this.attributes[ye]=Ke},ae.hasClass=function(ye){return p.contains(this.classes,ye)},ae.toNode=function(){return ne.call(this,"span")},ae.toMarkup=function(){return X.call(this,"span")},ot}(),te=function(){function ot(de,ye,Ke,ct){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,Je.call(this,ye,ct),this.children=Ke||[],this.setAttribute("href",de)}var ae=ot.prototype;return ae.setAttribute=function(ye,Ke){this.attributes[ye]=Ke},ae.hasClass=function(ye){return p.contains(this.classes,ye)},ae.toNode=function(){return ne.call(this,"a")},ae.toMarkup=function(){return X.call(this,"a")},ot}(),we=function(){function ot(de,ye,Ke){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=ye,this.src=de,this.classes=["mord"],this.style=Ke}var ae=ot.prototype;return ae.hasClass=function(ye){return p.contains(this.classes,ye)},ae.toNode=function(){var ye=document.createElement("img");ye.src=this.src,ye.alt=this.alt,ye.className="mord";for(var Ke in this.style)this.style.hasOwnProperty(Ke)&&(ye.style[Ke]=this.style[Ke]);return ye},ae.toMarkup=function(){var ye="<img src='"+this.src+" 'alt='"+this.alt+"' ",Ke="";for(var ct in this.style)this.style.hasOwnProperty(ct)&&(Ke+=p.hyphenate(ct)+":"+this.style[ct]+";");return Ke&&(ye+=' style="'+p.escape(Ke)+'"'),ye+="'/>",ye},ot}(),he={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Pe=function(){function ot(de,ye,Ke,ct,Bt,Ir,Br,un){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=de,this.height=ye||0,this.depth=Ke||0,this.italic=ct||0,this.skew=Bt||0,this.width=Ir||0,this.classes=Br||[],this.style=un||{},this.maxFontSize=0;var zn=V(this.text.charCodeAt(0));zn&&this.classes.push(zn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=he[this.text])}var ae=ot.prototype;return ae.hasClass=function(ye){return p.contains(this.classes,ye)},ae.toNode=function(){var ye=document.createTextNode(this.text),Ke=null;this.italic>0&&(Ke=document.createElement("span"),Ke.style.marginRight=this.italic+"em"),this.classes.length>0&&(Ke=Ke||document.createElement("span"),Ke.className=fe(this.classes));for(var ct in this.style)this.style.hasOwnProperty(ct)&&(Ke=Ke||document.createElement("span"),Ke.style[ct]=this.style[ct]);return Ke?(Ke.appendChild(ye),Ke):ye},ae.toMarkup=function(){var ye=!1,Ke="<span";this.classes.length&&(ye=!0,Ke+=' class="',Ke+=p.escape(fe(this.classes)),Ke+='"');var ct="";this.italic>0&&(ct+="margin-right:"+this.italic+"em;");for(var Bt in this.style)this.style.hasOwnProperty(Bt)&&(ct+=p.hyphenate(Bt)+":"+this.style[Bt]+";");ct&&(ye=!0,Ke+=' style="'+p.escape(ct)+'"');var Ir=p.escape(this.text);return ye?(Ke+=">",Ke+=Ir,Ke+="</span>",Ke):Ir},ot}(),Oe=function(){function ot(de,ye){this.children=void 0,this.attributes=void 0,this.children=de||[],this.attributes=ye||{}}var ae=ot.prototype;return ae.toNode=function(){var ye="http://www.w3.org/2000/svg",Ke=document.createElementNS(ye,"svg");for(var ct in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,ct)&&Ke.setAttribute(ct,this.attributes[ct]);for(var Bt=0;Bt<this.children.length;Bt++)Ke.appendChild(this.children[Bt].toNode());return Ke},ae.toMarkup=function(){var ye="<svg";for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&(ye+=" "+Ke+"='"+this.attributes[Ke]+"'");ye+=">";for(var ct=0;ct<this.children.length;ct++)ye+=this.children[ct].toMarkup();return ye+="</svg>",ye},ot}(),le=function(){function ot(de,ye){this.pathName=void 0,this.alternate=void 0,this.pathName=de,this.alternate=ye}var ae=ot.prototype;return ae.toNode=function(){var ye="http://www.w3.org/2000/svg",Ke=document.createElementNS(ye,"path");return this.alternate?Ke.setAttribute("d",this.alternate):Ke.setAttribute("d",Fe[this.pathName]),Ke},ae.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Fe[this.pathName]+"'/>"},ot}(),me=function(){function ot(de){this.attributes=void 0,this.attributes=de||{}}var ae=ot.prototype;return ae.toNode=function(){var ye="http://www.w3.org/2000/svg",Ke=document.createElementNS(ye,"line");for(var ct in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,ct)&&Ke.setAttribute(ct,this.attributes[ct]);return Ke},ae.toMarkup=function(){var ye="<line";for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&(ye+=" "+Ke+"='"+this.attributes[Ke]+"'");return ye+="/>",ye},ot}();function _e(ot){if(ot instanceof Pe)return ot;throw new Error("Expected symbolNode but got "+String(ot)+".")}function $e(ot){if(ot instanceof G)return ot;throw new Error("Expected span<HtmlDomNode> but got "+String(ot)+".")}var gt={"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]},Ie={\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 rt(ot,ae){gt[ot]=ae}function Ge(ot,ae,de){if(!gt[ae])throw new Error("Font metrics not found for font: "+ae+".");var ye=ot.charCodeAt(0),Ke=gt[ae][ye];if(!Ke&&ot[0]in Ie&&(ye=Ie[ot[0]].charCodeAt(0),Ke=gt[ae][ye]),!Ke&&de==="text"&&(Y(ye)&&(Ke=gt[ae][77])),Ke)return{depth:Ke[0],height:Ke[1],italic:Ke[2],skew:Ke[3],width:Ke[4]}}var vt={};function Ot(ot){var ae;if(ot>=5?ae=0:ot>=3?ae=1:ae=2,!vt[ae]){var de=vt[ae]={cssEmPerMu:et.quad[ae]/18};for(var ye in et)et.hasOwnProperty(ye)&&(de[ye]=et[ye][ae])}return vt[ae]}var Et={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Tt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Rt={math:{},text:{}},Be=Rt;function Z(ot,ae,de,ye,Ke,ct){Rt[ot][Ke]={font:ae,group:de,replace:ye},ct&&ye&&(Rt[ot][ye]=Rt[ot][Ke])}var J="math",je="text",Re="main",oe="ams",yt="accent-token",zt="bin",lt="close",$t="inner",cr="mathord",cn="op-token",pr="open",gr="punct",Zt="rel",Vt="spacing",mt="textord";Z(J,Re,Zt,"\u2261","\\equiv",!0),Z(J,Re,Zt,"\u227A","\\prec",!0),Z(J,Re,Zt,"\u227B","\\succ",!0),Z(J,Re,Zt,"\u223C","\\sim",!0),Z(J,Re,Zt,"\u22A5","\\perp"),Z(J,Re,Zt,"\u2AAF","\\preceq",!0),Z(J,Re,Zt,"\u2AB0","\\succeq",!0),Z(J,Re,Zt,"\u2243","\\simeq",!0),Z(J,Re,Zt,"\u2223","\\mid",!0),Z(J,Re,Zt,"\u226A","\\ll",!0),Z(J,Re,Zt,"\u226B","\\gg",!0),Z(J,Re,Zt,"\u224D","\\asymp",!0),Z(J,Re,Zt,"\u2225","\\parallel"),Z(J,Re,Zt,"\u22C8","\\bowtie",!0),Z(J,Re,Zt,"\u2323","\\smile",!0),Z(J,Re,Zt,"\u2291","\\sqsubseteq",!0),Z(J,Re,Zt,"\u2292","\\sqsupseteq",!0),Z(J,Re,Zt,"\u2250","\\doteq",!0),Z(J,Re,Zt,"\u2322","\\frown",!0),Z(J,Re,Zt,"\u220B","\\ni",!0),Z(J,Re,Zt,"\u221D","\\propto",!0),Z(J,Re,Zt,"\u22A2","\\vdash",!0),Z(J,Re,Zt,"\u22A3","\\dashv",!0),Z(J,Re,Zt,"\u220B","\\owns"),Z(J,Re,gr,".","\\ldotp"),Z(J,Re,gr,"\u22C5","\\cdotp"),Z(J,Re,mt,"#","\\#"),Z(je,Re,mt,"#","\\#"),Z(J,Re,mt,"&","\\&"),Z(je,Re,mt,"&","\\&"),Z(J,Re,mt,"\u2135","\\aleph",!0),Z(J,Re,mt,"\u2200","\\forall",!0),Z(J,Re,mt,"\u210F","\\hbar",!0),Z(J,Re,mt,"\u2203","\\exists",!0),Z(J,Re,mt,"\u2207","\\nabla",!0),Z(J,Re,mt,"\u266D","\\flat",!0),Z(J,Re,mt,"\u2113","\\ell",!0),Z(J,Re,mt,"\u266E","\\natural",!0),Z(J,Re,mt,"\u2663","\\clubsuit",!0),Z(J,Re,mt,"\u2118","\\wp",!0),Z(J,Re,mt,"\u266F","\\sharp",!0),Z(J,Re,mt,"\u2662","\\diamondsuit",!0),Z(J,Re,mt,"\u211C","\\Re",!0),Z(J,Re,mt,"\u2661","\\heartsuit",!0),Z(J,Re,mt,"\u2111","\\Im",!0),Z(J,Re,mt,"\u2660","\\spadesuit",!0),Z(je,Re,mt,"\xA7","\\S",!0),Z(je,Re,mt,"\xB6","\\P",!0),Z(J,Re,mt,"\u2020","\\dag"),Z(je,Re,mt,"\u2020","\\dag"),Z(je,Re,mt,"\u2020","\\textdagger"),Z(J,Re,mt,"\u2021","\\ddag"),Z(je,Re,mt,"\u2021","\\ddag"),Z(je,Re,mt,"\u2021","\\textdaggerdbl"),Z(J,Re,lt,"\u23B1","\\rmoustache",!0),Z(J,Re,pr,"\u23B0","\\lmoustache",!0),Z(J,Re,lt,"\u27EF","\\rgroup",!0),Z(J,Re,pr,"\u27EE","\\lgroup",!0),Z(J,Re,zt,"\u2213","\\mp",!0),Z(J,Re,zt,"\u2296","\\ominus",!0),Z(J,Re,zt,"\u228E","\\uplus",!0),Z(J,Re,zt,"\u2293","\\sqcap",!0),Z(J,Re,zt,"\u2217","\\ast"),Z(J,Re,zt,"\u2294","\\sqcup",!0),Z(J,Re,zt,"\u25EF","\\bigcirc"),Z(J,Re,zt,"\u2219","\\bullet"),Z(J,Re,zt,"\u2021","\\ddagger"),Z(J,Re,zt,"\u2240","\\wr",!0),Z(J,Re,zt,"\u2A3F","\\amalg"),Z(J,Re,zt,"&","\\And"),Z(J,Re,Zt,"\u27F5","\\longleftarrow",!0),Z(J,Re,Zt,"\u21D0","\\Leftarrow",!0),Z(J,Re,Zt,"\u27F8","\\Longleftarrow",!0),Z(J,Re,Zt,"\u27F6","\\longrightarrow",!0),Z(J,Re,Zt,"\u21D2","\\Rightarrow",!0),Z(J,Re,Zt,"\u27F9","\\Longrightarrow",!0),Z(J,Re,Zt,"\u2194","\\leftrightarrow",!0),Z(J,Re,Zt,"\u27F7","\\longleftrightarrow",!0),Z(J,Re,Zt,"\u21D4","\\Leftrightarrow",!0),Z(J,Re,Zt,"\u27FA","\\Longleftrightarrow",!0),Z(J,Re,Zt,"\u21A6","\\mapsto",!0),Z(J,Re,Zt,"\u27FC","\\longmapsto",!0),Z(J,Re,Zt,"\u2197","\\nearrow",!0),Z(J,Re,Zt,"\u21A9","\\hookleftarrow",!0),Z(J,Re,Zt,"\u21AA","\\hookrightarrow",!0),Z(J,Re,Zt,"\u2198","\\searrow",!0),Z(J,Re,Zt,"\u21BC","\\leftharpoonup",!0),Z(J,Re,Zt,"\u21C0","\\rightharpoonup",!0),Z(J,Re,Zt,"\u2199","\\swarrow",!0),Z(J,Re,Zt,"\u21BD","\\leftharpoondown",!0),Z(J,Re,Zt,"\u21C1","\\rightharpoondown",!0),Z(J,Re,Zt,"\u2196","\\nwarrow",!0),Z(J,Re,Zt,"\u21CC","\\rightleftharpoons",!0),Z(J,oe,Zt,"\u226E","\\nless",!0),Z(J,oe,Zt,"\uE010","\\@nleqslant"),Z(J,oe,Zt,"\uE011","\\@nleqq"),Z(J,oe,Zt,"\u2A87","\\lneq",!0),Z(J,oe,Zt,"\u2268","\\lneqq",!0),Z(J,oe,Zt,"\uE00C","\\@lvertneqq"),Z(J,oe,Zt,"\u22E6","\\lnsim",!0),Z(J,oe,Zt,"\u2A89","\\lnapprox",!0),Z(J,oe,Zt,"\u2280","\\nprec",!0),Z(J,oe,Zt,"\u22E0","\\npreceq",!0),Z(J,oe,Zt,"\u22E8","\\precnsim",!0),Z(J,oe,Zt,"\u2AB9","\\precnapprox",!0),Z(J,oe,Zt,"\u2241","\\nsim",!0),Z(J,oe,Zt,"\uE006","\\@nshortmid"),Z(J,oe,Zt,"\u2224","\\nmid",!0),Z(J,oe,Zt,"\u22AC","\\nvdash",!0),Z(J,oe,Zt,"\u22AD","\\nvDash",!0),Z(J,oe,Zt,"\u22EA","\\ntriangleleft"),Z(J,oe,Zt,"\u22EC","\\ntrianglelefteq",!0),Z(J,oe,Zt,"\u228A","\\subsetneq",!0),Z(J,oe,Zt,"\uE01A","\\@varsubsetneq"),Z(J,oe,Zt,"\u2ACB","\\subsetneqq",!0),Z(J,oe,Zt,"\uE017","\\@varsubsetneqq"),Z(J,oe,Zt,"\u226F","\\ngtr",!0),Z(J,oe,Zt,"\uE00F","\\@ngeqslant"),Z(J,oe,Zt,"\uE00E","\\@ngeqq"),Z(J,oe,Zt,"\u2A88","\\gneq",!0),Z(J,oe,Zt,"\u2269","\\gneqq",!0),Z(J,oe,Zt,"\uE00D","\\@gvertneqq"),Z(J,oe,Zt,"\u22E7","\\gnsim",!0),Z(J,oe,Zt,"\u2A8A","\\gnapprox",!0),Z(J,oe,Zt,"\u2281","\\nsucc",!0),Z(J,oe,Zt,"\u22E1","\\nsucceq",!0),Z(J,oe,Zt,"\u22E9","\\succnsim",!0),Z(J,oe,Zt,"\u2ABA","\\succnapprox",!0),Z(J,oe,Zt,"\u2246","\\ncong",!0),Z(J,oe,Zt,"\uE007","\\@nshortparallel"),Z(J,oe,Zt,"\u2226","\\nparallel",!0),Z(J,oe,Zt,"\u22AF","\\nVDash",!0),Z(J,oe,Zt,"\u22EB","\\ntriangleright"),Z(J,oe,Zt,"\u22ED","\\ntrianglerighteq",!0),Z(J,oe,Zt,"\uE018","\\@nsupseteqq"),Z(J,oe,Zt,"\u228B","\\supsetneq",!0),Z(J,oe,Zt,"\uE01B","\\@varsupsetneq"),Z(J,oe,Zt,"\u2ACC","\\supsetneqq",!0),Z(J,oe,Zt,"\uE019","\\@varsupsetneqq"),Z(J,oe,Zt,"\u22AE","\\nVdash",!0),Z(J,oe,Zt,"\u2AB5","\\precneqq",!0),Z(J,oe,Zt,"\u2AB6","\\succneqq",!0),Z(J,oe,Zt,"\uE016","\\@nsubseteqq"),Z(J,oe,zt,"\u22B4","\\unlhd"),Z(J,oe,zt,"\u22B5","\\unrhd"),Z(J,oe,Zt,"\u219A","\\nleftarrow",!0),Z(J,oe,Zt,"\u219B","\\nrightarrow",!0),Z(J,oe,Zt,"\u21CD","\\nLeftarrow",!0),Z(J,oe,Zt,"\u21CF","\\nRightarrow",!0),Z(J,oe,Zt,"\u21AE","\\nleftrightarrow",!0),Z(J,oe,Zt,"\u21CE","\\nLeftrightarrow",!0),Z(J,oe,Zt,"\u25B3","\\vartriangle"),Z(J,oe,mt,"\u210F","\\hslash"),Z(J,oe,mt,"\u25BD","\\triangledown"),Z(J,oe,mt,"\u25CA","\\lozenge"),Z(J,oe,mt,"\u24C8","\\circledS"),Z(J,oe,mt,"\xAE","\\circledR"),Z(je,oe,mt,"\xAE","\\circledR"),Z(J,oe,mt,"\u2221","\\measuredangle",!0),Z(J,oe,mt,"\u2204","\\nexists"),Z(J,oe,mt,"\u2127","\\mho"),Z(J,oe,mt,"\u2132","\\Finv",!0),Z(J,oe,mt,"\u2141","\\Game",!0),Z(J,oe,mt,"\u2035","\\backprime"),Z(J,oe,mt,"\u25B2","\\blacktriangle"),Z(J,oe,mt,"\u25BC","\\blacktriangledown"),Z(J,oe,mt,"\u25A0","\\blacksquare"),Z(J,oe,mt,"\u29EB","\\blacklozenge"),Z(J,oe,mt,"\u2605","\\bigstar"),Z(J,oe,mt,"\u2222","\\sphericalangle",!0),Z(J,oe,mt,"\u2201","\\complement",!0),Z(J,oe,mt,"\xF0","\\eth",!0),Z(J,oe,mt,"\u2571","\\diagup"),Z(J,oe,mt,"\u2572","\\diagdown"),Z(J,oe,mt,"\u25A1","\\square"),Z(J,oe,mt,"\u25A1","\\Box"),Z(J,oe,mt,"\u25CA","\\Diamond"),Z(J,oe,mt,"\xA5","\\yen",!0),Z(je,oe,mt,"\xA5","\\yen",!0),Z(J,oe,mt,"\u2713","\\checkmark",!0),Z(je,oe,mt,"\u2713","\\checkmark"),Z(J,oe,mt,"\u2136","\\beth",!0),Z(J,oe,mt,"\u2138","\\daleth",!0),Z(J,oe,mt,"\u2137","\\gimel",!0),Z(J,oe,mt,"\u03DD","\\digamma",!0),Z(J,oe,mt,"\u03F0","\\varkappa"),Z(J,oe,pr,"\u250C","\\ulcorner",!0),Z(J,oe,lt,"\u2510","\\urcorner",!0),Z(J,oe,pr,"\u2514","\\llcorner",!0),Z(J,oe,lt,"\u2518","\\lrcorner",!0),Z(J,oe,Zt,"\u2266","\\leqq",!0),Z(J,oe,Zt,"\u2A7D","\\leqslant",!0),Z(J,oe,Zt,"\u2A95","\\eqslantless",!0),Z(J,oe,Zt,"\u2272","\\lesssim",!0),Z(J,oe,Zt,"\u2A85","\\lessapprox",!0),Z(J,oe,Zt,"\u224A","\\approxeq",!0),Z(J,oe,zt,"\u22D6","\\lessdot"),Z(J,oe,Zt,"\u22D8","\\lll",!0),Z(J,oe,Zt,"\u2276","\\lessgtr",!0),Z(J,oe,Zt,"\u22DA","\\lesseqgtr",!0),Z(J,oe,Zt,"\u2A8B","\\lesseqqgtr",!0),Z(J,oe,Zt,"\u2251","\\doteqdot"),Z(J,oe,Zt,"\u2253","\\risingdotseq",!0),Z(J,oe,Zt,"\u2252","\\fallingdotseq",!0),Z(J,oe,Zt,"\u223D","\\backsim",!0),Z(J,oe,Zt,"\u22CD","\\backsimeq",!0),Z(J,oe,Zt,"\u2AC5","\\subseteqq",!0),Z(J,oe,Zt,"\u22D0","\\Subset",!0),Z(J,oe,Zt,"\u228F","\\sqsubset",!0),Z(J,oe,Zt,"\u227C","\\preccurlyeq",!0),Z(J,oe,Zt,"\u22DE","\\curlyeqprec",!0),Z(J,oe,Zt,"\u227E","\\precsim",!0),Z(J,oe,Zt,"\u2AB7","\\precapprox",!0),Z(J,oe,Zt,"\u22B2","\\vartriangleleft"),Z(J,oe,Zt,"\u22B4","\\trianglelefteq"),Z(J,oe,Zt,"\u22A8","\\vDash",!0),Z(J,oe,Zt,"\u22AA","\\Vvdash",!0),Z(J,oe,Zt,"\u2323","\\smallsmile"),Z(J,oe,Zt,"\u2322","\\smallfrown"),Z(J,oe,Zt,"\u224F","\\bumpeq",!0),Z(J,oe,Zt,"\u224E","\\Bumpeq",!0),Z(J,oe,Zt,"\u2267","\\geqq",!0),Z(J,oe,Zt,"\u2A7E","\\geqslant",!0),Z(J,oe,Zt,"\u2A96","\\eqslantgtr",!0),Z(J,oe,Zt,"\u2273","\\gtrsim",!0),Z(J,oe,Zt,"\u2A86","\\gtrapprox",!0),Z(J,oe,zt,"\u22D7","\\gtrdot"),Z(J,oe,Zt,"\u22D9","\\ggg",!0),Z(J,oe,Zt,"\u2277","\\gtrless",!0),Z(J,oe,Zt,"\u22DB","\\gtreqless",!0),Z(J,oe,Zt,"\u2A8C","\\gtreqqless",!0),Z(J,oe,Zt,"\u2256","\\eqcirc",!0),Z(J,oe,Zt,"\u2257","\\circeq",!0),Z(J,oe,Zt,"\u225C","\\triangleq",!0),Z(J,oe,Zt,"\u223C","\\thicksim"),Z(J,oe,Zt,"\u2248","\\thickapprox"),Z(J,oe,Zt,"\u2AC6","\\supseteqq",!0),Z(J,oe,Zt,"\u22D1","\\Supset",!0),Z(J,oe,Zt,"\u2290","\\sqsupset",!0),Z(J,oe,Zt,"\u227D","\\succcurlyeq",!0),Z(J,oe,Zt,"\u22DF","\\curlyeqsucc",!0),Z(J,oe,Zt,"\u227F","\\succsim",!0),Z(J,oe,Zt,"\u2AB8","\\succapprox",!0),Z(J,oe,Zt,"\u22B3","\\vartriangleright"),Z(J,oe,Zt,"\u22B5","\\trianglerighteq"),Z(J,oe,Zt,"\u22A9","\\Vdash",!0),Z(J,oe,Zt,"\u2223","\\shortmid"),Z(J,oe,Zt,"\u2225","\\shortparallel"),Z(J,oe,Zt,"\u226C","\\between",!0),Z(J,oe,Zt,"\u22D4","\\pitchfork",!0),Z(J,oe,Zt,"\u221D","\\varpropto"),Z(J,oe,Zt,"\u25C0","\\blacktriangleleft"),Z(J,oe,Zt,"\u2234","\\therefore",!0),Z(J,oe,Zt,"\u220D","\\backepsilon"),Z(J,oe,Zt,"\u25B6","\\blacktriangleright"),Z(J,oe,Zt,"\u2235","\\because",!0),Z(J,oe,Zt,"\u22D8","\\llless"),Z(J,oe,Zt,"\u22D9","\\gggtr"),Z(J,oe,zt,"\u22B2","\\lhd"),Z(J,oe,zt,"\u22B3","\\rhd"),Z(J,oe,Zt,"\u2242","\\eqsim",!0),Z(J,Re,Zt,"\u22C8","\\Join"),Z(J,oe,Zt,"\u2251","\\Doteq",!0),Z(J,oe,zt,"\u2214","\\dotplus",!0),Z(J,oe,zt,"\u2216","\\smallsetminus"),Z(J,oe,zt,"\u22D2","\\Cap",!0),Z(J,oe,zt,"\u22D3","\\Cup",!0),Z(J,oe,zt,"\u2A5E","\\doublebarwedge",!0),Z(J,oe,zt,"\u229F","\\boxminus",!0),Z(J,oe,zt,"\u229E","\\boxplus",!0),Z(J,oe,zt,"\u22C7","\\divideontimes",!0),Z(J,oe,zt,"\u22C9","\\ltimes",!0),Z(J,oe,zt,"\u22CA","\\rtimes",!0),Z(J,oe,zt,"\u22CB","\\leftthreetimes",!0),Z(J,oe,zt,"\u22CC","\\rightthreetimes",!0),Z(J,oe,zt,"\u22CF","\\curlywedge",!0),Z(J,oe,zt,"\u22CE","\\curlyvee",!0),Z(J,oe,zt,"\u229D","\\circleddash",!0),Z(J,oe,zt,"\u229B","\\circledast",!0),Z(J,oe,zt,"\u22C5","\\centerdot"),Z(J,oe,zt,"\u22BA","\\intercal",!0),Z(J,oe,zt,"\u22D2","\\doublecap"),Z(J,oe,zt,"\u22D3","\\doublecup"),Z(J,oe,zt,"\u22A0","\\boxtimes",!0),Z(J,oe,Zt,"\u21E2","\\dashrightarrow",!0),Z(J,oe,Zt,"\u21E0","\\dashleftarrow",!0),Z(J,oe,Zt,"\u21C7","\\leftleftarrows",!0),Z(J,oe,Zt,"\u21C6","\\leftrightarrows",!0),Z(J,oe,Zt,"\u21DA","\\Lleftarrow",!0),Z(J,oe,Zt,"\u219E","\\twoheadleftarrow",!0),Z(J,oe,Zt,"\u21A2","\\leftarrowtail",!0),Z(J,oe,Zt,"\u21AB","\\looparrowleft",!0),Z(J,oe,Zt,"\u21CB","\\leftrightharpoons",!0),Z(J,oe,Zt,"\u21B6","\\curvearrowleft",!0),Z(J,oe,Zt,"\u21BA","\\circlearrowleft",!0),Z(J,oe,Zt,"\u21B0","\\Lsh",!0),Z(J,oe,Zt,"\u21C8","\\upuparrows",!0),Z(J,oe,Zt,"\u21BF","\\upharpoonleft",!0),Z(J,oe,Zt,"\u21C3","\\downharpoonleft",!0),Z(J,oe,Zt,"\u22B8","\\multimap",!0),Z(J,oe,Zt,"\u21AD","\\leftrightsquigarrow",!0),Z(J,oe,Zt,"\u21C9","\\rightrightarrows",!0),Z(J,oe,Zt,"\u21C4","\\rightleftarrows",!0),Z(J,oe,Zt,"\u21A0","\\twoheadrightarrow",!0),Z(J,oe,Zt,"\u21A3","\\rightarrowtail",!0),Z(J,oe,Zt,"\u21AC","\\looparrowright",!0),Z(J,oe,Zt,"\u21B7","\\curvearrowright",!0),Z(J,oe,Zt,"\u21BB","\\circlearrowright",!0),Z(J,oe,Zt,"\u21B1","\\Rsh",!0),Z(J,oe,Zt,"\u21CA","\\downdownarrows",!0),Z(J,oe,Zt,"\u21BE","\\upharpoonright",!0),Z(J,oe,Zt,"\u21C2","\\downharpoonright",!0),Z(J,oe,Zt,"\u21DD","\\rightsquigarrow",!0),Z(J,oe,Zt,"\u21DD","\\leadsto"),Z(J,oe,Zt,"\u21DB","\\Rrightarrow",!0),Z(J,oe,Zt,"\u21BE","\\restriction"),Z(J,Re,mt,"\u2018","`"),Z(J,Re,mt,"$","\\$"),Z(je,Re,mt,"$","\\$"),Z(je,Re,mt,"$","\\textdollar"),Z(J,Re,mt,"%","\\%"),Z(je,Re,mt,"%","\\%"),Z(J,Re,mt,"_","\\_"),Z(je,Re,mt,"_","\\_"),Z(je,Re,mt,"_","\\textunderscore"),Z(J,Re,mt,"\u2220","\\angle",!0),Z(J,Re,mt,"\u221E","\\infty",!0),Z(J,Re,mt,"\u2032","\\prime"),Z(J,Re,mt,"\u25B3","\\triangle"),Z(J,Re,mt,"\u0393","\\Gamma",!0),Z(J,Re,mt,"\u0394","\\Delta",!0),Z(J,Re,mt,"\u0398","\\Theta",!0),Z(J,Re,mt,"\u039B","\\Lambda",!0),Z(J,Re,mt,"\u039E","\\Xi",!0),Z(J,Re,mt,"\u03A0","\\Pi",!0),Z(J,Re,mt,"\u03A3","\\Sigma",!0),Z(J,Re,mt,"\u03A5","\\Upsilon",!0),Z(J,Re,mt,"\u03A6","\\Phi",!0),Z(J,Re,mt,"\u03A8","\\Psi",!0),Z(J,Re,mt,"\u03A9","\\Omega",!0),Z(J,Re,mt,"A","\u0391"),Z(J,Re,mt,"B","\u0392"),Z(J,Re,mt,"E","\u0395"),Z(J,Re,mt,"Z","\u0396"),Z(J,Re,mt,"H","\u0397"),Z(J,Re,mt,"I","\u0399"),Z(J,Re,mt,"K","\u039A"),Z(J,Re,mt,"M","\u039C"),Z(J,Re,mt,"N","\u039D"),Z(J,Re,mt,"O","\u039F"),Z(J,Re,mt,"P","\u03A1"),Z(J,Re,mt,"T","\u03A4"),Z(J,Re,mt,"X","\u03A7"),Z(J,Re,mt,"\xAC","\\neg",!0),Z(J,Re,mt,"\xAC","\\lnot"),Z(J,Re,mt,"\u22A4","\\top"),Z(J,Re,mt,"\u22A5","\\bot"),Z(J,Re,mt,"\u2205","\\emptyset"),Z(J,oe,mt,"\u2205","\\varnothing"),Z(J,Re,cr,"\u03B1","\\alpha",!0),Z(J,Re,cr,"\u03B2","\\beta",!0),Z(J,Re,cr,"\u03B3","\\gamma",!0),Z(J,Re,cr,"\u03B4","\\delta",!0),Z(J,Re,cr,"\u03F5","\\epsilon",!0),Z(J,Re,cr,"\u03B6","\\zeta",!0),Z(J,Re,cr,"\u03B7","\\eta",!0),Z(J,Re,cr,"\u03B8","\\theta",!0),Z(J,Re,cr,"\u03B9","\\iota",!0),Z(J,Re,cr,"\u03BA","\\kappa",!0),Z(J,Re,cr,"\u03BB","\\lambda",!0),Z(J,Re,cr,"\u03BC","\\mu",!0),Z(J,Re,cr,"\u03BD","\\nu",!0),Z(J,Re,cr,"\u03BE","\\xi",!0),Z(J,Re,cr,"\u03BF","\\omicron",!0),Z(J,Re,cr,"\u03C0","\\pi",!0),Z(J,Re,cr,"\u03C1","\\rho",!0),Z(J,Re,cr,"\u03C3","\\sigma",!0),Z(J,Re,cr,"\u03C4","\\tau",!0),Z(J,Re,cr,"\u03C5","\\upsilon",!0),Z(J,Re,cr,"\u03D5","\\phi",!0),Z(J,Re,cr,"\u03C7","\\chi",!0),Z(J,Re,cr,"\u03C8","\\psi",!0),Z(J,Re,cr,"\u03C9","\\omega",!0),Z(J,Re,cr,"\u03B5","\\varepsilon",!0),Z(J,Re,cr,"\u03D1","\\vartheta",!0),Z(J,Re,cr,"\u03D6","\\varpi",!0),Z(J,Re,cr,"\u03F1","\\varrho",!0),Z(J,Re,cr,"\u03C2","\\varsigma",!0),Z(J,Re,cr,"\u03C6","\\varphi",!0),Z(J,Re,zt,"\u2217","*"),Z(J,Re,zt,"+","+"),Z(J,Re,zt,"\u2212","-"),Z(J,Re,zt,"\u22C5","\\cdot",!0),Z(J,Re,zt,"\u2218","\\circ"),Z(J,Re,zt,"\xF7","\\div",!0),Z(J,Re,zt,"\xB1","\\pm",!0),Z(J,Re,zt,"\xD7","\\times",!0),Z(J,Re,zt,"\u2229","\\cap",!0),Z(J,Re,zt,"\u222A","\\cup",!0),Z(J,Re,zt,"\u2216","\\setminus"),Z(J,Re,zt,"\u2227","\\land"),Z(J,Re,zt,"\u2228","\\lor"),Z(J,Re,zt,"\u2227","\\wedge",!0),Z(J,Re,zt,"\u2228","\\vee",!0),Z(J,Re,mt,"\u221A","\\surd"),Z(J,Re,pr,"(","("),Z(J,Re,pr,"[","["),Z(J,Re,pr,"\u27E8","\\langle",!0),Z(J,Re,pr,"\u2223","\\lvert"),Z(J,Re,pr,"\u2225","\\lVert"),Z(J,Re,lt,")",")"),Z(J,Re,lt,"]","]"),Z(J,Re,lt,"?","?"),Z(J,Re,lt,"!","!"),Z(J,Re,lt,"\u27E9","\\rangle",!0),Z(J,Re,lt,"\u2223","\\rvert"),Z(J,Re,lt,"\u2225","\\rVert"),Z(J,Re,Zt,"=","="),Z(J,Re,Zt,"<","<"),Z(J,Re,Zt,">",">"),Z(J,Re,Zt,":",":"),Z(J,Re,Zt,"\u2248","\\approx",!0),Z(J,Re,Zt,"\u2245","\\cong",!0),Z(J,Re,Zt,"\u2265","\\ge"),Z(J,Re,Zt,"\u2265","\\geq",!0),Z(J,Re,Zt,"\u2190","\\gets"),Z(J,Re,Zt,">","\\gt"),Z(J,Re,Zt,"\u2208","\\in",!0),Z(J,Re,Zt,"\uE020","\\@not"),Z(J,Re,Zt,"\u2282","\\subset",!0),Z(J,Re,Zt,"\u2283","\\supset",!0),Z(J,Re,Zt,"\u2286","\\subseteq",!0),Z(J,Re,Zt,"\u2287","\\supseteq",!0),Z(J,oe,Zt,"\u2288","\\nsubseteq",!0),Z(J,oe,Zt,"\u2289","\\nsupseteq",!0),Z(J,Re,Zt,"\u22A8","\\models"),Z(J,Re,Zt,"\u2190","\\leftarrow",!0),Z(J,Re,Zt,"\u2264","\\le"),Z(J,Re,Zt,"\u2264","\\leq",!0),Z(J,Re,Zt,"<","\\lt"),Z(J,Re,Zt,"\u2192","\\rightarrow",!0),Z(J,Re,Zt,"\u2192","\\to"),Z(J,oe,Zt,"\u2271","\\ngeq",!0),Z(J,oe,Zt,"\u2270","\\nleq",!0),Z(J,Re,Vt,"\xA0","\\ "),Z(J,Re,Vt,"\xA0","~"),Z(J,Re,Vt,"\xA0","\\space"),Z(J,Re,Vt,"\xA0","\\nobreakspace"),Z(je,Re,Vt,"\xA0","\\ "),Z(je,Re,Vt,"\xA0","~"),Z(je,Re,Vt,"\xA0","\\space"),Z(je,Re,Vt,"\xA0","\\nobreakspace"),Z(J,Re,Vt,null,"\\nobreak"),Z(J,Re,Vt,null,"\\allowbreak"),Z(J,Re,gr,",",","),Z(J,Re,gr,";",";"),Z(J,oe,zt,"\u22BC","\\barwedge",!0),Z(J,oe,zt,"\u22BB","\\veebar",!0),Z(J,Re,zt,"\u2299","\\odot",!0),Z(J,Re,zt,"\u2295","\\oplus",!0),Z(J,Re,zt,"\u2297","\\otimes",!0),Z(J,Re,mt,"\u2202","\\partial",!0),Z(J,Re,zt,"\u2298","\\oslash",!0),Z(J,oe,zt,"\u229A","\\circledcirc",!0),Z(J,oe,zt,"\u22A1","\\boxdot",!0),Z(J,Re,zt,"\u25B3","\\bigtriangleup"),Z(J,Re,zt,"\u25BD","\\bigtriangledown"),Z(J,Re,zt,"\u2020","\\dagger"),Z(J,Re,zt,"\u22C4","\\diamond"),Z(J,Re,zt,"\u22C6","\\star"),Z(J,Re,zt,"\u25C3","\\triangleleft"),Z(J,Re,zt,"\u25B9","\\triangleright"),Z(J,Re,pr,"{","\\{"),Z(je,Re,mt,"{","\\{"),Z(je,Re,mt,"{","\\textbraceleft"),Z(J,Re,lt,"}","\\}"),Z(je,Re,mt,"}","\\}"),Z(je,Re,mt,"}","\\textbraceright"),Z(J,Re,pr,"{","\\lbrace"),Z(J,Re,lt,"}","\\rbrace"),Z(J,Re,pr,"[","\\lbrack"),Z(je,Re,mt,"[","\\lbrack"),Z(J,Re,lt,"]","\\rbrack"),Z(je,Re,mt,"]","\\rbrack"),Z(J,Re,pr,"(","\\lparen"),Z(J,Re,lt,")","\\rparen"),Z(je,Re,mt,"<","\\textless"),Z(je,Re,mt,">","\\textgreater"),Z(J,Re,pr,"\u230A","\\lfloor",!0),Z(J,Re,lt,"\u230B","\\rfloor",!0),Z(J,Re,pr,"\u2308","\\lceil",!0),Z(J,Re,lt,"\u2309","\\rceil",!0),Z(J,Re,mt,"\\","\\backslash"),Z(J,Re,mt,"\u2223","|"),Z(J,Re,mt,"\u2223","\\vert"),Z(je,Re,mt,"|","\\textbar"),Z(J,Re,mt,"\u2225","\\|"),Z(J,Re,mt,"\u2225","\\Vert"),Z(je,Re,mt,"\u2225","\\textbardbl"),Z(je,Re,mt,"~","\\textasciitilde"),Z(je,Re,mt,"\\","\\textbackslash"),Z(je,Re,mt,"^","\\textasciicircum"),Z(J,Re,Zt,"\u2191","\\uparrow",!0),Z(J,Re,Zt,"\u21D1","\\Uparrow",!0),Z(J,Re,Zt,"\u2193","\\downarrow",!0),Z(J,Re,Zt,"\u21D3","\\Downarrow",!0),Z(J,Re,Zt,"\u2195","\\updownarrow",!0),Z(J,Re,Zt,"\u21D5","\\Updownarrow",!0),Z(J,Re,cn,"\u2210","\\coprod"),Z(J,Re,cn,"\u22C1","\\bigvee"),Z(J,Re,cn,"\u22C0","\\bigwedge"),Z(J,Re,cn,"\u2A04","\\biguplus"),Z(J,Re,cn,"\u22C2","\\bigcap"),Z(J,Re,cn,"\u22C3","\\bigcup"),Z(J,Re,cn,"\u222B","\\int"),Z(J,Re,cn,"\u222B","\\intop"),Z(J,Re,cn,"\u222C","\\iint"),Z(J,Re,cn,"\u222D","\\iiint"),Z(J,Re,cn,"\u220F","\\prod"),Z(J,Re,cn,"\u2211","\\sum"),Z(J,Re,cn,"\u2A02","\\bigotimes"),Z(J,Re,cn,"\u2A01","\\bigoplus"),Z(J,Re,cn,"\u2A00","\\bigodot"),Z(J,Re,cn,"\u222E","\\oint"),Z(J,Re,cn,"\u222F","\\oiint"),Z(J,Re,cn,"\u2230","\\oiiint"),Z(J,Re,cn,"\u2A06","\\bigsqcup"),Z(J,Re,cn,"\u222B","\\smallint"),Z(je,Re,$t,"\u2026","\\textellipsis"),Z(J,Re,$t,"\u2026","\\mathellipsis"),Z(je,Re,$t,"\u2026","\\ldots",!0),Z(J,Re,$t,"\u2026","\\ldots",!0),Z(J,Re,$t,"\u22EF","\\@cdots",!0),Z(J,Re,$t,"\u22F1","\\ddots",!0),Z(J,Re,mt,"\u22EE","\\varvdots"),Z(J,Re,yt,"\u02CA","\\acute"),Z(J,Re,yt,"\u02CB","\\grave"),Z(J,Re,yt,"\xA8","\\ddot"),Z(J,Re,yt,"~","\\tilde"),Z(J,Re,yt,"\u02C9","\\bar"),Z(J,Re,yt,"\u02D8","\\breve"),Z(J,Re,yt,"\u02C7","\\check"),Z(J,Re,yt,"^","\\hat"),Z(J,Re,yt,"\u20D7","\\vec"),Z(J,Re,yt,"\u02D9","\\dot"),Z(J,Re,yt,"\u02DA","\\mathring"),Z(J,Re,cr,"\u0131","\\imath",!0),Z(J,Re,cr,"\u0237","\\jmath",!0),Z(je,Re,mt,"\u0131","\\i",!0),Z(je,Re,mt,"\u0237","\\j",!0),Z(je,Re,mt,"\xDF","\\ss",!0),Z(je,Re,mt,"\xE6","\\ae",!0),Z(je,Re,mt,"\xE6","\\ae",!0),Z(je,Re,mt,"\u0153","\\oe",!0),Z(je,Re,mt,"\xF8","\\o",!0),Z(je,Re,mt,"\xC6","\\AE",!0),Z(je,Re,mt,"\u0152","\\OE",!0),Z(je,Re,mt,"\xD8","\\O",!0),Z(je,Re,yt,"\u02CA","\\'"),Z(je,Re,yt,"\u02CB","\\`"),Z(je,Re,yt,"\u02C6","\\^"),Z(je,Re,yt,"\u02DC","\\~"),Z(je,Re,yt,"\u02C9","\\="),Z(je,Re,yt,"\u02D8","\\u"),Z(je,Re,yt,"\u02D9","\\."),Z(je,Re,yt,"\u02DA","\\r"),Z(je,Re,yt,"\u02C7","\\v"),Z(je,Re,yt,"\xA8",'\\"'),Z(je,Re,yt,"\u02DD","\\H"),Z(je,Re,yt,"\u25EF","\\textcircled");var Yr={"--":!0,"---":!0,"``":!0,"''":!0};Z(je,Re,mt,"\u2013","--"),Z(je,Re,mt,"\u2013","\\textendash"),Z(je,Re,mt,"\u2014","---"),Z(je,Re,mt,"\u2014","\\textemdash"),Z(je,Re,mt,"\u2018","`"),Z(je,Re,mt,"\u2018","\\textquoteleft"),Z(je,Re,mt,"\u2019","'"),Z(je,Re,mt,"\u2019","\\textquoteright"),Z(je,Re,mt,"\u201C","``"),Z(je,Re,mt,"\u201C","\\textquotedblleft"),Z(je,Re,mt,"\u201D","''"),Z(je,Re,mt,"\u201D","\\textquotedblright"),Z(J,Re,mt,"\xB0","\\degree",!0),Z(je,Re,mt,"\xB0","\\degree"),Z(je,Re,mt,"\xB0","\\textdegree",!0),Z(J,Re,cr,"\xA3","\\pounds"),Z(J,Re,cr,"\xA3","\\mathsterling",!0),Z(je,Re,cr,"\xA3","\\pounds"),Z(je,Re,cr,"\xA3","\\textsterling",!0),Z(J,oe,mt,"\u2720","\\maltese"),Z(je,oe,mt,"\u2720","\\maltese"),Z(je,Re,Vt,"\xA0","\\ "),Z(je,Re,Vt,"\xA0"," "),Z(je,Re,Vt,"\xA0","~");for(var Tn='0123456789/@."',Hn=0;Hn<Tn.length;Hn++){var ei=Tn.charAt(Hn);Z(J,Re,mt,ei,ei)}for(var ji='0123456789!@*()-=+[]<>|";:?/.,',Ln=0;Ln<ji.length;Ln++){var Vn=ji.charAt(Ln);Z(je,Re,mt,Vn,Vn)}for(var kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",wt=0;wt<kt.length;wt++){var Te=kt.charAt(wt);Z(J,Re,cr,Te,Te),Z(je,Re,mt,Te,Te)}Z(J,oe,mt,"C","\u2102"),Z(je,oe,mt,"C","\u2102"),Z(J,oe,mt,"H","\u210D"),Z(je,oe,mt,"H","\u210D"),Z(J,oe,mt,"N","\u2115"),Z(je,oe,mt,"N","\u2115"),Z(J,oe,mt,"P","\u2119"),Z(je,oe,mt,"P","\u2119"),Z(J,oe,mt,"Q","\u211A"),Z(je,oe,mt,"Q","\u211A"),Z(J,oe,mt,"R","\u211D"),Z(je,oe,mt,"R","\u211D"),Z(J,oe,mt,"Z","\u2124"),Z(je,oe,mt,"Z","\u2124"),Z(J,Re,cr,"h","\u210E"),Z(je,Re,cr,"h","\u210E");for(var xe="",Ce=0;Ce<kt.length;Ce++){var Ye=kt.charAt(Ce);xe=String.fromCharCode(55349,56320+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56372+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56424+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56580+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56736+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56788+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56840+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56944+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),Ce<26&&(xe=String.fromCharCode(55349,56632+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe),xe=String.fromCharCode(55349,56476+Ce),Z(J,Re,cr,Ye,xe),Z(je,Re,mt,Ye,xe))}xe=String.fromCharCode(55349,56668),Z(J,Re,cr,"k",xe),Z(je,Re,mt,"k",xe);for(var it=0;it<10;it++){var dt=it.toString();xe=String.fromCharCode(55349,57294+it),Z(J,Re,cr,dt,xe),Z(je,Re,mt,dt,xe),xe=String.fromCharCode(55349,57314+it),Z(J,Re,cr,dt,xe),Z(je,Re,mt,dt,xe),xe=String.fromCharCode(55349,57324+it),Z(J,Re,cr,dt,xe),Z(je,Re,mt,dt,xe),xe=String.fromCharCode(55349,57334+it),Z(J,Re,cr,dt,xe),Z(je,Re,mt,dt,xe)}for(var _t="\xC7\xD0\xDE\xE7\xFE",vr=0;vr<_t.length;vr++){var kr=_t.charAt(vr);Z(J,Re,cr,kr,kr),Z(je,Re,mt,kr,kr)}Z(je,Re,mt,"\xF0","\xF0"),Z(je,Re,mt,"\u2013","\u2013"),Z(je,Re,mt,"\u2014","\u2014"),Z(je,Re,mt,"\u2018","\u2018"),Z(je,Re,mt,"\u2019","\u2019"),Z(je,Re,mt,"\u201C","\u201C"),Z(je,Re,mt,"\u201D","\u201D");var mn=[["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"]],Mt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],nt=function(ae,de){var ye=ae.charCodeAt(0),Ke=ae.charCodeAt(1),ct=(ye-55296)*1024+(Ke-56320)+65536,Bt=de==="math"?0:1;if(119808<=ct&&ct<120484){var Ir=Math.floor((ct-119808)/26);return[mn[Ir][2],mn[Ir][Bt]]}else if(120782<=ct&&ct<=120831){var Br=Math.floor((ct-120782)/10);return[Mt[Br][2],Mt[Br][Bt]]}else{if(ct===120485||ct===120486)return[mn[0][2],mn[0][Bt]];if(120486<ct&&ct<120782)return["",""];throw new c("Unsupported character: "+ae)}},st=[[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]],Xt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Dt=function(ae,de){return de.size<2?ae:st[ae-1][de.size-1]},St=function(){function ot(de){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=de.style,this.color=de.color,this.size=de.size||ot.BASESIZE,this.textSize=de.textSize||this.size,this.phantom=!!de.phantom,this.font=de.font||"",this.fontFamily=de.fontFamily||"",this.fontWeight=de.fontWeight||"",this.fontShape=de.fontShape||"",this.sizeMultiplier=Xt[this.size-1],this.maxSize=de.maxSize,this.minRuleThickness=de.minRuleThickness,this._fontMetrics=void 0}var ae=ot.prototype;return ae.extend=function(ye){var Ke={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 ct in ye)ye.hasOwnProperty(ct)&&(Ke[ct]=ye[ct]);return new ot(Ke)},ae.havingStyle=function(ye){return this.style===ye?this:this.extend({style:ye,size:Dt(this.textSize,ye)})},ae.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ae.havingSize=function(ye){return this.size===ye&&this.textSize===ye?this:this.extend({style:this.style.text(),size:ye,textSize:ye,sizeMultiplier:Xt[ye-1]})},ae.havingBaseStyle=function(ye){ye=ye||this.style.text();var Ke=Dt(ot.BASESIZE,ye);return this.size===Ke&&this.textSize===ot.BASESIZE&&this.style===ye?this:this.extend({style:ye,size:Ke})},ae.havingBaseSizing=function(){var ye;switch(this.style.id){case 4:case 5:ye=3;break;case 6:case 7:ye=1;break;default:ye=6}return this.extend({style:this.style.text(),size:ye})},ae.withColor=function(ye){return this.extend({color:ye})},ae.withPhantom=function(){return this.extend({phantom:!0})},ae.withFont=function(ye){return this.extend({font:ye})},ae.withTextFontFamily=function(ye){return this.extend({fontFamily:ye,font:""})},ae.withTextFontWeight=function(ye){return this.extend({fontWeight:ye,font:""})},ae.withTextFontShape=function(ye){return this.extend({fontShape:ye,font:""})},ae.sizingClasses=function(ye){return ye.size!==this.size?["sizing","reset-size"+ye.size,"size"+this.size]:[]},ae.baseSizingClasses=function(){return this.size!==ot.BASESIZE?["sizing","reset-size"+this.size,"size"+ot.BASESIZE]:[]},ae.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ot(this.size)),this._fontMetrics},ae.getColor=function(){return this.phantom?"transparent":this.color},ot}();St.BASESIZE=6;var jt=St,At={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},wr=function(ae){return typeof ae!="string"&&(ae=ae.unit),ae in At||ae in Ft||ae==="ex"},sr=function(ae,de){var ye;if(ae.unit in At)ye=At[ae.unit]/de.fontMetrics().ptPerEm/de.sizeMultiplier;else if(ae.unit==="mu")ye=de.fontMetrics().cssEmPerMu;else{var Ke;if(de.style.isTight()?Ke=de.havingStyle(de.style.text()):Ke=de,ae.unit==="ex")ye=Ke.fontMetrics().xHeight;else if(ae.unit==="em")ye=Ke.fontMetrics().quad;else throw new c("Invalid unit: '"+ae.unit+"'");Ke!==de&&(ye*=Ke.sizeMultiplier/de.sizeMultiplier)}return Math.min(ae.number*ye,de.maxSize)},mr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],$r=function(ae,de,ye){return Be[ye][ae]&&Be[ye][ae].replace&&(ae=Be[ye][ae].replace),{value:ae,metrics:Ge(ae,de,ye)}},rn=function(ae,de,ye,Ke,ct){var Bt=$r(ae,de,ye),Ir=Bt.metrics;ae=Bt.value;var Br;if(Ir){var un=Ir.italic;(ye==="text"||Ke&&Ke.font==="mathit")&&(un=0),Br=new Pe(ae,Ir.height,Ir.depth,un,Ir.skew,Ir.width,ct)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ae+"' in style '"+de+"' and mode '"+ye+"'")),Br=new Pe(ae,0,0,0,0,0,ct);if(Ke){Br.maxFontSize=Ke.sizeMultiplier,Ke.style.isTight()&&Br.classes.push("mtight");var zn=Ke.getColor();zn&&(Br.style.color=zn)}return Br},jn=function(ae,de,ye,Ke){return Ke===void 0&&(Ke=[]),ye.font==="boldsymbol"&&$r(ae,"Main-Bold",de).metrics?rn(ae,"Main-Bold",de,ye,Ke.concat(["mathbf"])):ae==="\\"||Be[de][ae].font==="main"?rn(ae,"Main-Regular",de,ye,Ke):rn(ae,"AMS-Regular",de,ye,Ke.concat(["amsrm"]))},Un=function(ae,de,ye,Ke){return/[0-9]/.test(ae.charAt(0))||p.contains(mr,ae)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ui=function(ae,de,ye,Ke){return p.contains(mr,ae)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ae.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},yi=function(ae,de,ye,Ke){return $r(ae,"Math-BoldItalic",de).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ii=function(ae,de,ye){var Ke=ae.mode,ct=ae.text,Bt=["mord"],Ir=Ke==="math"||Ke==="text"&&de.font,Br=Ir?de.font:de.fontFamily;if(ct.charCodeAt(0)===55349){var un=nt(ct,Ke),zn=un[0],Rn=un[1];return rn(ct,zn,Ke,de,Bt.concat(Rn))}else if(Br){var Fn,Ai;if(Br==="boldsymbol"||Br==="mathnormal"){var Di=Br==="boldsymbol"?yi(ct,Ke,de,Bt):ui(ct,Ke,de,Bt);Fn=Di.fontName,Ai=[Di.fontClass]}else p.contains(mr,ct)?(Fn="Main-Italic",Ai=["mathit"]):Ir?(Fn=Gr[Br].fontName,Ai=[Br]):(Fn=Lr(Br,de.fontWeight,de.fontShape),Ai=[Br,de.fontWeight,de.fontShape]);if($r(ct,Fn,Ke).metrics)return rn(ct,Fn,Ke,de,Bt.concat(Ai));if(Yr.hasOwnProperty(ct)&&Fn.substr(0,10)==="Typewriter"){for(var ya=[],Ua=0;Ua<ct.length;Ua++)ya.push(rn(ct[Ua],Fn,Ke,de,Bt.concat(Ai)));return Ze(ya)}}if(ye==="mathord"){var to=Un(ct,Ke,de,Bt);return rn(ct,to.fontName,Ke,de,Bt.concat([to.fontClass]))}else if(ye==="textord"){var go=Be[Ke][ct]&&Be[Ke][ct].font;if(go==="ams"){var wo=Lr("amsrm",de.fontWeight,de.fontShape);return rn(ct,wo,Ke,de,Bt.concat("amsrm",de.fontWeight,de.fontShape))}else if(go==="main"||!go){var qo=Lr("textrm",de.fontWeight,de.fontShape);return rn(ct,qo,Ke,de,Bt.concat(de.fontWeight,de.fontShape))}else{var Mo=Lr(go,de.fontWeight,de.fontShape);return rn(ct,Mo,Ke,de,Bt.concat(Mo,de.fontWeight,de.fontShape))}}else throw new Error("unexpected type: "+ye+" in makeOrd")},Gi=function(ae,de){if(fe(ae.classes)!==fe(de.classes)||ae.skew!==de.skew||ae.maxFontSize!==de.maxFontSize)return!1;for(var ye in ae.style)if(ae.style.hasOwnProperty(ye)&&ae.style[ye]!==de.style[ye])return!1;for(var Ke in de.style)if(de.style.hasOwnProperty(Ke)&&ae.style[Ke]!==de.style[Ke])return!1;return!0},Qe=function(ae){for(var de=0;de<ae.length-1;de++){var ye=ae[de],Ke=ae[de+1];ye instanceof Pe&&Ke instanceof Pe&&Gi(ye,Ke)&&(ye.text+=Ke.text,ye.height=Math.max(ye.height,Ke.height),ye.depth=Math.max(ye.depth,Ke.depth),ye.italic=Ke.italic,ae.splice(de+1,1),de--)}return ae},be=function(ae){for(var de=0,ye=0,Ke=0,ct=0;ct<ae.children.length;ct++){var Bt=ae.children[ct];Bt.height>de&&(de=Bt.height),Bt.depth>ye&&(ye=Bt.depth),Bt.maxFontSize>Ke&&(Ke=Bt.maxFontSize)}ae.height=de,ae.depth=ye,ae.maxFontSize=Ke},Ne=function(ae,de,ye,Ke){var ct=new G(ae,de,ye,Ke);return be(ct),ct},Ue=function(ae,de,ye,Ke){return new G(ae,de,ye,Ke)},Xe=function(ae,de,ye){var Ke=Ne([ae],[],de);return Ke.height=Math.max(ye||de.fontMetrics().defaultRuleThickness,de.minRuleThickness),Ke.style.borderBottomWidth=Ke.height+"em",Ke.maxFontSize=1,Ke},ze=function(ae,de,ye,Ke){var ct=new te(ae,de,ye,Ke);return be(ct),ct},Ze=function(ae){var de=new Q(ae);return be(de),de},bt=function(ae,de){return ae instanceof Q?Ne([],[ae],de):ae},ut=function(ae){if(ae.positionType==="individualShift"){for(var de=ae.children,ye=[de[0]],Ke=-de[0].shift-de[0].elem.depth,ct=Ke,Bt=1;Bt<de.length;Bt++){var Ir=-de[Bt].shift-ct-de[Bt].elem.depth,Br=Ir-(de[Bt-1].elem.height+de[Bt-1].elem.depth);ct=ct+Ir,ye.push({type:"kern",size:Br}),ye.push(de[Bt])}return{children:ye,depth:Ke}}var un;if(ae.positionType==="top"){for(var zn=ae.positionData,Rn=0;Rn<ae.children.length;Rn++){var Fn=ae.children[Rn];zn-=Fn.type==="kern"?Fn.size:Fn.elem.height+Fn.elem.depth}un=zn}else if(ae.positionType==="bottom")un=-ae.positionData;else{var Ai=ae.children[0];if(Ai.type!=="elem")throw new Error('First child must have type "elem".');if(ae.positionType==="shift")un=-Ai.elem.depth-ae.positionData;else if(ae.positionType==="firstBaseline")un=-Ai.elem.depth;else throw new Error("Invalid positionType "+ae.positionType+".")}return{children:ae.children,depth:un}},Gt=function(ae,de){for(var ye=ut(ae),Ke=ye.children,ct=ye.depth,Bt=0,Ir=0;Ir<Ke.length;Ir++){var Br=Ke[Ir];if(Br.type==="elem"){var un=Br.elem;Bt=Math.max(Bt,un.maxFontSize,un.height)}}Bt+=2;var zn=Ne(["pstrut"],[]);zn.style.height=Bt+"em";for(var Rn=[],Fn=ct,Ai=ct,Di=ct,ya=0;ya<Ke.length;ya++){var Ua=Ke[ya];if(Ua.type==="kern")Di+=Ua.size;else{var to=Ua.elem,go=Ua.wrapperClasses||[],wo=Ua.wrapperStyle||{},qo=Ne(go,[zn,to],void 0,wo);qo.style.top=-Bt-Di-to.depth+"em",Ua.marginLeft&&(qo.style.marginLeft=Ua.marginLeft),Ua.marginRight&&(qo.style.marginRight=Ua.marginRight),Rn.push(qo),Di+=to.height+to.depth}Fn=Math.min(Fn,Di),Ai=Math.max(Ai,Di)}var Mo=Ne(["vlist"],Rn);Mo.style.height=Ai+"em";var $i;if(Fn<0){var To=Ne([],[]),fo=Ne(["vlist"],[To]);fo.style.height=-Fn+"em";var ts=Ne(["vlist-s"],[new Pe("\u200B")]);$i=[Ne(["vlist-r"],[Mo,ts]),Ne(["vlist-r"],[fo])]}else $i=[Ne(["vlist-r"],[Mo])];var Jo=Ne(["vlist-t"],$i);return $i.length===2&&Jo.classes.push("vlist-t2"),Jo.height=Ai,Jo.depth=-Fn,Jo},Mr=function(ae,de){var ye=Ne(["mspace"],[],de),Ke=sr(ae,de);return ye.style.marginRight=Ke+"em",ye},Lr=function(ae,de,ye){var Ke="";switch(ae){case"amsrm":Ke="AMS";break;case"textrm":Ke="Main";break;case"textsf":Ke="SansSerif";break;case"texttt":Ke="Typewriter";break;default:Ke=ae}var ct;return de==="textbf"&&ye==="textit"?ct="BoldItalic":de==="textbf"?ct="Bold":de==="textit"?ct="Italic":ct="Regular",Ke+"-"+ct},Gr={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"}},Ht={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},hn=function(ae,de){var ye=Ht[ae],Ke=ye[0],ct=ye[1],Bt=ye[2],Ir=new le(Ke),Br=new Oe([Ir],{width:ct+"em",height:Bt+"em",style:"width:"+ct+"em",viewBox:"0 0 "+1e3*ct+" "+1e3*Bt,preserveAspectRatio:"xMinYMin"}),un=Ue(["overlay"],[Br],de);return un.height=Bt,un.style.height=Bt+"em",un.style.width=ct+"em",un},or={fontMap:Gr,makeSymbol:rn,mathsym:jn,makeSpan:Ne,makeSvgSpan:Ue,makeLineSpan:Xe,makeAnchor:ze,makeFragment:Ze,wrapFragment:bt,makeVList:Gt,makeOrd:Ii,makeGlue:Mr,staticSvg:hn,svgData:Ht,tryCombineChars:Qe};function vn(ot,ae){var de=nn(ot,ae);if(!de)throw new Error("Expected node of type "+ae+", but got "+(ot?"node of type "+ot.type:String(ot)));return de}function nn(ot,ae){return ot&&ot.type===ae?ot:null}function Ur(ot,ae){var de=ni(ot,ae);if(!de)throw new Error('Expected node of type "atom" and family "'+ae+'", but got '+(ot?ot.type==="atom"?"atom of family "+ot.family:"node of type "+ot.type:String(ot)));return de}function ni(ot,ae){return ot&&ot.type==="atom"&&ot.family===ae?ot:null}function Oi(ot){var ae=Hi(ot);if(!ae)throw new Error("Expected node of symbol group type, but got "+(ot?"node of type "+ot.type:String(ot)));return ae}function Hi(ot){return ot&&(ot.type==="atom"||Tt.hasOwnProperty(ot.type))?ot:null}var Ri={number:3,unit:"mu"},Ni={number:4,unit:"mu"},Yi={number:5,unit:"mu"},Qr={mord:{mop:Ri,mbin:Ni,mrel:Yi,minner:Ri},mop:{mord:Ri,mop:Ri,mrel:Yi,minner:Ri},mbin:{mord:Ni,mop:Ni,mopen:Ni,minner:Ni},mrel:{mord:Yi,mop:Yi,mopen:Yi,minner:Yi},mopen:{},mclose:{mop:Ri,mbin:Ni,mrel:Yi,minner:Ri},mpunct:{mord:Ri,mop:Ri,mrel:Yi,mopen:Ri,mclose:Ri,mpunct:Ri,minner:Ri},minner:{mord:Ri,mop:Ri,mbin:Ni,mrel:Yi,mopen:Ri,mpunct:Ri,minner:Ri}},On={mord:{mop:Ri},mop:{mord:Ri,mop:Ri},mbin:{},mrel:{},mopen:{},mclose:{mop:Ri},mpunct:{},minner:{mop:Ri}},zr={},fr={},Nr={};function Qt(ot){for(var ae=ot.type,de=ot.names,ye=ot.props,Ke=ot.handler,ct=ot.htmlBuilder,Bt=ot.mathmlBuilder,Ir={type:ae,numArgs:ye.numArgs,argTypes:ye.argTypes,greediness:ye.greediness===void 0?1:ye.greediness,allowedInText:!!ye.allowedInText,allowedInMath:ye.allowedInMath===void 0?!0:ye.allowedInMath,numOptionalArgs:ye.numOptionalArgs||0,infix:!!ye.infix,handler:Ke},Br=0;Br<de.length;++Br)zr[de[Br]]=Ir;ae&&(ct&&(fr[ae]=ct),Bt&&(Nr[ae]=Bt))}function xr(ot){var ae=ot.type,de=ot.htmlBuilder,ye=ot.mathmlBuilder;Qt({type:ae,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:de,mathmlBuilder:ye})}var Jr=function(ae){var de=nn(ae,"ordgroup");return de?de.body:[ae]},Kr=or.makeSpan,en=["leftmost","mbin","mopen","mrel","mop","mpunct"],ai=["rightmost","mrel","mclose","mpunct"],Yn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},Si={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ln=function(ae,de,ye,Ke){Ke===void 0&&(Ke=[null,null]);for(var ct=[],Bt=0;Bt<ae.length;Bt++){var Ir=Ei(ae[Bt],de);if(Ir instanceof Q){var Br=Ir.children;ct.push.apply(ct,Br)}else ct.push(Ir)}if(!ye)return ct;var un=de;if(ae.length===1){var zn=nn(ae[0],"sizing")||nn(ae[0],"styling");zn&&(zn.type==="sizing"?un=de.havingSize(zn.size):zn.type==="styling"&&(un=de.havingStyle(Yn[zn.style])))}var Rn=Kr([Ke[0]||"leftmost"],[],de),Fn=Kr([Ke[1]||"rightmost"],[],de);return Or(ct,function(Ai,Di){var ya=Di.classes[0],Ua=Ai.classes[0];ya==="mbin"&&p.contains(ai,Ua)?Di.classes[0]="mord":Ua==="mbin"&&p.contains(en,ya)&&(Ai.classes[0]="mord")},{node:Rn},Fn),Or(ct,function(Ai,Di){var ya=Zn(Di),Ua=Zn(Ai),to=ya&&Ua?Ai.hasClass("mtight")?On[ya][Ua]:Qr[ya][Ua]:null;if(to)return or.makeGlue(to,un)},{node:Rn},Fn),ct},Or=function ot(ae,de,ye,Ke){Ke&&ae.push(Ke);for(var ct=0;ct<ae.length;ct++){var Bt=ae[ct],Ir=wn(Bt);if(Ir){ot(Ir.children,de,ye);continue}if(Bt.classes[0]==="mspace")continue;var Br=de(Bt,ye.node);Br&&(ye.insertAfter?ye.insertAfter(Br):(ae.unshift(Br),ct++)),ye.node=Bt,ye.insertAfter=function(un){return function(zn){ae.splice(un+1,0,zn),ct++}}(ct)}Ke&&ae.pop()},wn=function(ae){return ae instanceof Q||ae instanceof te?ae:null},Xn=function ot(ae,de){var ye=wn(ae);if(ye){var Ke=ye.children;if(Ke.length){if(de==="right")return ot(Ke[Ke.length-1],"right");if(de==="left")return ot(Ke[0],"left")}}return ae},Zn=function(ae,de){return ae?(de&&(ae=Xn(ae,de)),Si[ae.classes[0]]||null):null},ii=function(ae,de){var ye=["nulldelimiter"].concat(ae.baseSizingClasses());return Kr(de.concat(ye))},Ei=function(ae,de,ye){if(!ae)return Kr();if(fr[ae.type]){var Ke=fr[ae.type](ae,de);if(ye&&de.size!==ye.size){Ke=Kr(de.sizingClasses(ye),[Ke],de);var ct=de.sizeMultiplier/ye.sizeMultiplier;Ke.height*=ct,Ke.depth*=ct}return Ke}else throw new c("Got group of unknown type: '"+ae.type+"'")};function ki(ot,ae){var de=Kr(["base"],ot,ae),ye=Kr(["strut"]);return ye.style.height=de.height+de.depth+"em",ye.style.verticalAlign=-de.depth+"em",de.children.unshift(ye),de}function Fi(ot,ae){var de=null;ot.length===1&&ot[0].type==="tag"&&(de=ot[0].tag,ot=ot[0].body);for(var ye=ln(ot,ae,!0),Ke=[],ct=[],Bt=0;Bt<ye.length;Bt++)if(ct.push(ye[Bt]),ye[Bt].hasClass("mbin")||ye[Bt].hasClass("mrel")||ye[Bt].hasClass("allowbreak")){for(var Ir=!1;Bt<ye.length-1&&ye[Bt+1].hasClass("mspace")&&!ye[Bt+1].hasClass("newline");)Bt++,ct.push(ye[Bt]),ye[Bt].hasClass("nobreak")&&(Ir=!0);Ir||(Ke.push(ki(ct,ae)),ct=[])}else ye[Bt].hasClass("newline")&&(ct.pop(),ct.length>0&&(Ke.push(ki(ct,ae)),ct=[]),Ke.push(ye[Bt]));ct.length>0&&Ke.push(ki(ct,ae));var Br;de&&(Br=ki(ln(de,ae,!0)),Br.classes=["tag"],Ke.push(Br));var un=Kr(["katex-html"],Ke);if(un.setAttribute("aria-hidden","true"),Br){var zn=Br.children[0];zn.style.height=un.height+un.depth+"em",zn.style.verticalAlign=-un.depth+"em"}return un}function ra(ot){return new Q(ot)}var _a=function(){function ot(de,ye){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=de,this.attributes={},this.children=ye||[]}var ae=ot.prototype;return ae.setAttribute=function(ye,Ke){this.attributes[ye]=Ke},ae.getAttribute=function(ye){return this.attributes[ye]},ae.toNode=function(){var ye=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&ye.setAttribute(Ke,this.attributes[Ke]);for(var ct=0;ct<this.children.length;ct++)ye.appendChild(this.children[ct].toNode());return ye},ae.toMarkup=function(){var ye="<"+this.type;for(var Ke in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ke)&&(ye+=" "+Ke+'="',ye+=p.escape(this.attributes[Ke]),ye+='"');ye+=">";for(var ct=0;ct<this.children.length;ct++)ye+=this.children[ct].toMarkup();return ye+="</"+this.type+">",ye},ae.toText=function(){return this.children.map(function(ye){return ye.toText()}).join("")},ot}(),wa=function(){function ot(de){this.text=void 0,this.text=de}var ae=ot.prototype;return ae.toNode=function(){return document.createTextNode(this.text)},ae.toMarkup=function(){return p.escape(this.toText())},ae.toText=function(){return this.text},ot}(),_o=function(){function ot(de){this.width=void 0,this.character=void 0,this.width=de,de>=.05555&&de<=.05556?this.character="\u200A":de>=.1666&&de<=.1667?this.character="\u2009":de>=.2222&&de<=.2223?this.character="\u2005":de>=.2777&&de<=.2778?this.character="\u2005\u200A":de>=-.05556&&de<=-.05555?this.character="\u200A\u2063":de>=-.1667&&de<=-.1666?this.character="\u2009\u2063":de>=-.2223&&de<=-.2222?this.character="\u205F\u2063":de>=-.2778&&de<=-.2777?this.character="\u2005\u2063":this.character=null}var ae=ot.prototype;return ae.toNode=function(){if(this.character)return document.createTextNode(this.character);var ye=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return ye.setAttribute("width",this.width+"em"),ye},ae.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ae.toText=function(){return this.character?this.character:" "},ot}(),bi={MathNode:_a,TextNode:wa,SpaceNode:_o,newDocumentFragment:ra},xn=function(ae,de,ye){return Be[de][ae]&&Be[de][ae].replace&&ae.charCodeAt(0)!==55349&&!(Yr.hasOwnProperty(ae)&&ye&&(ye.fontFamily&&ye.fontFamily.substr(4,2)==="tt"||ye.font&&ye.font.substr(4,2)==="tt"))&&(ae=Be[de][ae].replace),new bi.TextNode(ae)},Zi=function(ae){return ae.length===1?ae[0]:new bi.MathNode("mrow",ae)},va=function(ae,de){if(de.fontFamily==="texttt")return"monospace";if(de.fontFamily==="textsf")return de.fontShape==="textit"&&de.fontWeight==="textbf"?"sans-serif-bold-italic":de.fontShape==="textit"?"sans-serif-italic":de.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(de.fontShape==="textit"&&de.fontWeight==="textbf")return"bold-italic";if(de.fontShape==="textit")return"italic";if(de.fontWeight==="textbf")return"bold";var ye=de.font;if(!ye||ye==="mathnormal")return null;var Ke=ae.mode;if(ye==="mathit")return"italic";if(ye==="boldsymbol")return"bold-italic";if(ye==="mathbf")return"bold";if(ye==="mathbb")return"double-struck";if(ye==="mathfrak")return"fraktur";if(ye==="mathscr"||ye==="mathcal")return"script";if(ye==="mathsf")return"sans-serif";if(ye==="mathtt")return"monospace";var ct=ae.text;if(p.contains(["\\imath","\\jmath"],ct))return null;Be[Ke][ct]&&Be[Ke][ct].replace&&(ct=Be[Ke][ct].replace);var Bt=or.fontMap[ye].fontName;return Ge(ct,Bt,Ke)?or.fontMap[ye].variant:null},ta=function(ae,de,ye){if(ae.length===1){var Ke=Qi(ae[0],de);return ye&&Ke instanceof _a&&Ke.type==="mo"&&(Ke.setAttribute("lspace","0em"),Ke.setAttribute("rspace","0em")),[Ke]}for(var ct=[],Bt,Ir=0;Ir<ae.length;Ir++){var Br=Qi(ae[Ir],de);if(Br instanceof _a&&Bt instanceof _a){if(Br.type==="mtext"&&Bt.type==="mtext"&&Br.getAttribute("mathvariant")===Bt.getAttribute("mathvariant")){var un;(un=Bt.children).push.apply(un,Br.children);continue}else if(Br.type==="mn"&&Bt.type==="mn"){var zn;(zn=Bt.children).push.apply(zn,Br.children);continue}else if(Br.type==="mi"&&Br.children.length===1&&Bt.type==="mn"){var Rn=Br.children[0];if(Rn instanceof wa&&Rn.text==="."){var Fn;(Fn=Bt.children).push.apply(Fn,Br.children);continue}}else if(Bt.type==="mi"&&Bt.children.length===1){var Ai=Bt.children[0];if(Ai instanceof wa&&Ai.text==="\u0338"&&(Br.type==="mo"||Br.type==="mi"||Br.type==="mn")){var Di=Br.children[0];Di instanceof wa&&Di.text.length>0&&(Di.text=Di.text.slice(0,1)+"\u0338"+Di.text.slice(1),ct.pop())}}}ct.push(Br),Bt=Br}return ct},ma=function(ae,de,ye){return Zi(ta(ae,de,ye))},Qi=function(ae,de){if(!ae)return new bi.MathNode("mrow");if(Nr[ae.type]){var ye=Nr[ae.type](ae,de);return ye}else throw new c("Got group of unknown type: '"+ae.type+"'")};function Ya(ot,ae,de,ye){var Ke=ta(ot,de),ct;Ke.length===1&&Ke[0]instanceof _a&&p.contains(["mrow","mtable"],Ke[0].type)?ct=Ke[0]:ct=new bi.MathNode("mrow",Ke);var Bt=new bi.MathNode("annotation",[new bi.TextNode(ae)]);Bt.setAttribute("encoding","application/x-tex");var Ir=new bi.MathNode("semantics",[ct,Bt]),Br=new bi.MathNode("math",[Ir]);Br.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var un=ye?"katex":"katex-mathml";return or.makeSpan([un],[Br])}var Wa=function(ae){return new jt({style:ae.displayMode?K.DISPLAY:K.TEXT,maxSize:ae.maxSize,minRuleThickness:ae.minRuleThickness})},Ao=function(ae,de){if(de.displayMode){var ye=["katex-display"];de.leqno&&ye.push("leqno"),de.fleqn&&ye.push("fleqn"),ae=or.makeSpan(ye,[ae])}return ae},es=function(ae,de,ye){var Ke=Wa(ye),ct;if(ye.output==="mathml")return Ya(ae,de,Ke,!0);if(ye.output==="html"){var Bt=Fi(ae,Ke);ct=or.makeSpan(["katex"],[Bt])}else{var Ir=Ya(ae,de,Ke,!1),Br=Fi(ae,Ke);ct=or.makeSpan(["katex"],[Ir,Br])}return Ao(ct,ye)},so=function(ae,de,ye){var Ke=Wa(ye),ct=Fi(ae,Ke),Bt=or.makeSpan(["katex"],[ct]);return Ao(Bt,ye)},So=es,xo={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"},hr=function(ae){var de=new bi.MathNode("mo",[new bi.TextNode(xo[ae.substr(1)])]);return de.setAttribute("stretchy","true"),de},Sn={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]},dn=function(ae){return ae.type==="ordgroup"?ae.body.length:1},Kn=function(ae,de){function ye(){var Br=4e5,un=ae.label.substr(1);if(p.contains(["widehat","widecheck","widetilde","utilde"],un)){var zn=ae,Rn=dn(zn.base),Fn,Ai,Di;if(Rn>5)un==="widehat"||un==="widecheck"?(Fn=420,Br=2364,Di=.42,Ai=un+"4"):(Fn=312,Br=2340,Di=.34,Ai="tilde4");else{var ya=[1,1,2,2,3,3][Rn];un==="widehat"||un==="widecheck"?(Br=[0,1062,2364,2364,2364][ya],Fn=[0,239,300,360,420][ya],Di=[0,.24,.3,.3,.36,.42][ya],Ai=un+ya):(Br=[0,600,1033,2339,2340][ya],Fn=[0,260,286,306,312][ya],Di=[0,.26,.286,.3,.306,.34][ya],Ai="tilde"+ya)}var Ua=new le(Ai),to=new Oe([Ua],{width:"100%",height:Di+"em",viewBox:"0 0 "+Br+" "+Fn,preserveAspectRatio:"none"});return{span:or.makeSvgSpan([],[to],de),minWidth:0,height:Di}}else{var go=[],wo=Sn[un],qo=wo[0],Mo=wo[1],$i=wo[2],To=$i/1e3,fo=qo.length,ts,Jo;if(fo===1){var zo=wo[3];ts=["hide-tail"],Jo=[zo]}else if(fo===2)ts=["halfarrow-left","halfarrow-right"],Jo=["xMinYMin","xMaxYMin"];else if(fo===3)ts=["brace-left","brace-center","brace-right"],Jo=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+fo+" children.");for(var is=0;is<fo;is++){var Rs=new le(qo[is]),gs=new Oe([Rs],{width:"400em",height:To+"em",viewBox:"0 0 "+Br+" "+$i,preserveAspectRatio:Jo[is]+" slice"}),ps=or.makeSvgSpan([ts[is]],[gs],de);if(fo===1)return{span:ps,minWidth:Mo,height:To};ps.style.height=To+"em",go.push(ps)}return{span:or.makeSpan(["stretchy"],go,de),minWidth:Mo,height:To}}}var Ke=ye(),ct=Ke.span,Bt=Ke.minWidth,Ir=Ke.height;return ct.height=Ir,ct.style.height=Ir+"em",Bt>0&&(ct.style.minWidth=Bt+"em"),ct},si=function(ae,de,ye,Ke){var ct,Bt=ae.height+ae.depth+2*ye;if(/fbox|color/.test(de)){if(ct=or.makeSpan(["stretchy",de],[],Ke),de==="fbox"){var Ir=Ke.color&&Ke.getColor();Ir&&(ct.style.borderColor=Ir)}}else{var Br=[];/^[bx]cancel$/.test(de)&&Br.push(new me({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(de)&&Br.push(new me({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var un=new Oe(Br,{width:"100%",height:Bt+"em"});ct=or.makeSvgSpan([],[un],Ke)}return ct.height=Bt,ct.style.height=Bt+"em",ct},vi={encloseSpan:si,mathMLnode:hr,svgSpan:Kn},pi=function(ae,de){var ye,Ke,ct=nn(ae,"supsub"),Bt;ct?(Ke=vn(ct.base,"accent"),ye=Ke.base,ct.base=ye,Bt=$e(Ei(ct,de)),ct.base=Ke):(Ke=vn(ae,"accent"),ye=Ke.base);var Ir=Ei(ye,de.havingCrampedStyle()),Br=Ke.isShifty&&p.isCharacterBox(ye),un=0;if(Br){var zn=p.getBaseElem(ye),Rn=Ei(zn,de.havingCrampedStyle());un=_e(Rn).skew}var Fn=Math.min(Ir.height,de.fontMetrics().xHeight),Ai;if(Ke.isStretchy)Ai=vi.svgSpan(Ke,de),Ai=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ir},{type:"elem",elem:Ai,wrapperClasses:["svg-align"],wrapperStyle:un>0?{width:"calc(100% - "+2*un+"em)",marginLeft:2*un+"em"}:void 0}]},de);else{var Di,ya;Ke.label==="\\vec"?(Di=or.staticSvg("vec",de),ya=or.svgData.vec[1]):(Di=or.makeOrd({mode:Ke.mode,text:Ke.label},de,"textord"),Di=_e(Di),Di.italic=0,ya=Di.width),Ai=or.makeSpan(["accent-body"],[Di]);var Ua=Ke.label==="\\textcircled";Ua&&(Ai.classes.push("accent-full"),Fn=Ir.height);var to=un;Ua||(to-=ya/2),Ai.style.left=to+"em",Ke.label==="\\textcircled"&&(Ai.style.top=".2em"),Ai=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ir},{type:"kern",size:-Fn},{type:"elem",elem:Ai}]},de)}var go=or.makeSpan(["mord","accent"],[Ai],de);return Bt?(Bt.children[0]=go,Bt.height=Math.max(go.height,Bt.height),Bt.classes[0]="mord",Bt):go},di=function(ae,de){var ye=ae.isStretchy?vi.mathMLnode(ae.label):new bi.MathNode("mo",[xn(ae.label,ae.mode)]),Ke=new bi.MathNode("mover",[Qi(ae.base,de),ye]);return Ke.setAttribute("accent","true"),Ke},Ki=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(ot){return"\\"+ot}).join("|"));Qt({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(ae,de){var ye=de[0],Ke=!Ki.test(ae.funcName),ct=!Ke||ae.funcName==="\\widehat"||ae.funcName==="\\widetilde"||ae.funcName==="\\widecheck";return{type:"accent",mode:ae.parser.mode,label:ae.funcName,isStretchy:Ke,isShifty:ct,base:ye}},htmlBuilder:pi,mathmlBuilder:di}),Qt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ae,de){var ye=de[0];return{type:"accent",mode:ae.parser.mode,label:ae.funcName,isStretchy:!1,isShifty:!0,base:ye}},htmlBuilder:pi,mathmlBuilder:di}),Qt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0];return{type:"accentUnder",mode:ye.mode,label:Ke,base:ct}},htmlBuilder:function(ae,de){var ye=Ei(ae.base,de),Ke=vi.svgSpan(ae,de),ct=ae.label==="\\utilde"?.12:0,Bt=or.makeVList({positionType:"bottom",positionData:Ke.height+ct,children:[{type:"elem",elem:Ke,wrapperClasses:["svg-align"]},{type:"kern",size:ct},{type:"elem",elem:ye}]},de);return or.makeSpan(["mord","accentunder"],[Bt],de)},mathmlBuilder:function(ae,de){var ye=vi.mathMLnode(ae.label),Ke=new bi.MathNode("munder",[Qi(ae.base,de),ye]);return Ke.setAttribute("accentunder","true"),Ke}});var Mi=function(ae){var de=new bi.MathNode("mpadded",ae?[ae]:[]);return de.setAttribute("width","+0.6em"),de.setAttribute("lspace","0.3em"),de};Qt({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(ae,de,ye){var Ke=ae.parser,ct=ae.funcName;return{type:"xArrow",mode:Ke.mode,label:ct,body:de[0],below:ye[0]}},htmlBuilder:function(ae,de){var ye=de.style,Ke=de.havingStyle(ye.sup()),ct=or.wrapFragment(Ei(ae.body,Ke,de),de);ct.classes.push("x-arrow-pad");var Bt;ae.below&&(Ke=de.havingStyle(ye.sub()),Bt=or.wrapFragment(Ei(ae.below,Ke,de),de),Bt.classes.push("x-arrow-pad"));var Ir=vi.svgSpan(ae,de),Br=-de.fontMetrics().axisHeight+.5*Ir.height,un=-de.fontMetrics().axisHeight-.5*Ir.height-.111;(ct.depth>.25||ae.label==="\\xleftequilibrium")&&(un-=ct.depth);var zn;if(Bt){var Rn=-de.fontMetrics().axisHeight+Bt.height+.5*Ir.height+.111;zn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ct,shift:un},{type:"elem",elem:Ir,shift:Br},{type:"elem",elem:Bt,shift:Rn}]},de)}else zn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ct,shift:un},{type:"elem",elem:Ir,shift:Br}]},de);return zn.children[0].children[0].children[1].classes.push("svg-align"),or.makeSpan(["mrel","x-arrow"],[zn],de)},mathmlBuilder:function(ae,de){var ye=vi.mathMLnode(ae.label),Ke;if(ae.body){var ct=Mi(Qi(ae.body,de));if(ae.below){var Bt=Mi(Qi(ae.below,de));Ke=new bi.MathNode("munderover",[ye,Bt,ct])}else Ke=new bi.MathNode("mover",[ye,ct])}else if(ae.below){var Ir=Mi(Qi(ae.below,de));Ke=new bi.MathNode("munder",[ye,Ir])}else Ke=Mi(),Ke=new bi.MathNode("mover",[ye,Ke]);return Ke}}),Qt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ae,de){for(var ye=ae.parser,Ke=vn(de[0],"ordgroup"),ct=Ke.body,Bt="",Ir=0;Ir<ct.length;Ir++){var Br=vn(ct[Ir],"textord");Bt+=Br.text}var un=parseInt(Bt);if(isNaN(un))throw new c("\\@char has non-numeric argument "+Bt);return{type:"textord",mode:ye.mode,text:String.fromCharCode(un)}}});var pa=function(ae,de){var ye=ln(ae.body,de.withColor(ae.color),!1);return or.makeFragment(ye)},_i=function(ae,de){var ye=ta(ae.body,de.withColor(ae.color)),Ke=new bi.MathNode("mstyle",ye);return Ke.setAttribute("mathcolor",ae.color),Ke};Qt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ae,de){var ye=ae.parser,Ke=vn(de[0],"color-token").color,ct=de[1];return{type:"color",mode:ye.mode,color:Ke,body:Jr(ct)}},htmlBuilder:pa,mathmlBuilder:_i}),Qt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ae,de){var ye=ae.parser,Ke=ae.breakOnTokenText,ct=vn(de[0],"color-token").color;ye.gullet.macros.set("\\current@color",ct);var Bt=ye.parseExpression(!0,Ke);return{type:"color",mode:ye.mode,color:ct,body:Bt}},htmlBuilder:pa,mathmlBuilder:_i}),Qt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ae,de,ye){var Ke=ae.parser,ct=ae.funcName,Bt=ye[0],Ir=ct==="\\cr",Br=!1;return Ir||(Ke.settings.displayMode&&Ke.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Br=!1:Br=!0),{type:"cr",mode:Ke.mode,newLine:Br,newRow:Ir,size:Bt&&vn(Bt,"size").value}},htmlBuilder:function(ae,de){if(ae.newRow)throw new c("\\cr valid only within a tabular/array environment");var ye=or.makeSpan(["mspace"],[],de);return ae.newLine&&(ye.classes.push("newline"),ae.size&&(ye.style.marginTop=sr(ae.size,de)+"em")),ye},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mspace");return ae.newLine&&(ye.setAttribute("linebreak","newline"),ae.size&&ye.setAttribute("height",sr(ae.size,de)+"em")),ye}});var da=function(ae,de,ye){var Ke=Be.math[ae]&&Be.math[ae].replace,ct=Ge(Ke||ae,de,ye);if(!ct)throw new Error("Unsupported symbol "+ae+" and font size "+de+".");return ct},na=function(ae,de,ye,Ke){var ct=ye.havingBaseStyle(de),Bt=or.makeSpan(Ke.concat(ct.sizingClasses(ye)),[ae],ye),Ir=ct.sizeMultiplier/ye.sizeMultiplier;return Bt.height*=Ir,Bt.depth*=Ir,Bt.maxFontSize=ct.sizeMultiplier,Bt},Sa=function(ae,de,ye){var Ke=de.havingBaseStyle(ye),ct=(1-de.sizeMultiplier/Ke.sizeMultiplier)*de.fontMetrics().axisHeight;ae.classes.push("delimcenter"),ae.style.top=ct+"em",ae.height-=ct,ae.depth+=ct},Aa=function(ae,de,ye,Ke,ct,Bt){var Ir=or.makeSymbol(ae,"Main-Regular",ct,Ke),Br=na(Ir,de,Ke,Bt);return ye&&Sa(Br,Ke,de),Br},ua=function(ae,de,ye,Ke){return or.makeSymbol(ae,"Size"+de+"-Regular",ye,Ke)},La=function(ae,de,ye,Ke,ct,Bt){var Ir=ua(ae,de,ct,Ke),Br=na(or.makeSpan(["delimsizing","size"+de],[Ir],Ke),K.TEXT,Ke,Bt);return ye&&Sa(Br,Ke,K.TEXT),Br},sa=function(ae,de,ye){var Ke;de==="Size1-Regular"?Ke="delim-size1":Ke="delim-size4";var ct=or.makeSpan(["delimsizinginner",Ke],[or.makeSpan([],[or.makeSymbol(ae,de,ye)])]);return{type:"elem",elem:ct}},co={type:"kern",size:-.005},no=function(ae,de,ye,Ke,ct,Bt){var Ir,Br,un,zn;Ir=un=zn=ae,Br=null;var Rn="Size1-Regular";ae==="\\uparrow"?un=zn="\u23D0":ae==="\\Uparrow"?un=zn="\u2016":ae==="\\downarrow"?Ir=un="\u23D0":ae==="\\Downarrow"?Ir=un="\u2016":ae==="\\updownarrow"?(Ir="\\uparrow",un="\u23D0",zn="\\downarrow"):ae==="\\Updownarrow"?(Ir="\\Uparrow",un="\u2016",zn="\\Downarrow"):ae==="["||ae==="\\lbrack"?(Ir="\u23A1",un="\u23A2",zn="\u23A3",Rn="Size4-Regular"):ae==="]"||ae==="\\rbrack"?(Ir="\u23A4",un="\u23A5",zn="\u23A6",Rn="Size4-Regular"):ae==="\\lfloor"||ae==="\u230A"?(un=Ir="\u23A2",zn="\u23A3",Rn="Size4-Regular"):ae==="\\lceil"||ae==="\u2308"?(Ir="\u23A1",un=zn="\u23A2",Rn="Size4-Regular"):ae==="\\rfloor"||ae==="\u230B"?(un=Ir="\u23A5",zn="\u23A6",Rn="Size4-Regular"):ae==="\\rceil"||ae==="\u2309"?(Ir="\u23A4",un=zn="\u23A5",Rn="Size4-Regular"):ae==="("||ae==="\\lparen"?(Ir="\u239B",un="\u239C",zn="\u239D",Rn="Size4-Regular"):ae===")"||ae==="\\rparen"?(Ir="\u239E",un="\u239F",zn="\u23A0",Rn="Size4-Regular"):ae==="\\{"||ae==="\\lbrace"?(Ir="\u23A7",Br="\u23A8",zn="\u23A9",un="\u23AA",Rn="Size4-Regular"):ae==="\\}"||ae==="\\rbrace"?(Ir="\u23AB",Br="\u23AC",zn="\u23AD",un="\u23AA",Rn="Size4-Regular"):ae==="\\lgroup"||ae==="\u27EE"?(Ir="\u23A7",zn="\u23A9",un="\u23AA",Rn="Size4-Regular"):ae==="\\rgroup"||ae==="\u27EF"?(Ir="\u23AB",zn="\u23AD",un="\u23AA",Rn="Size4-Regular"):ae==="\\lmoustache"||ae==="\u23B0"?(Ir="\u23A7",zn="\u23AD",un="\u23AA",Rn="Size4-Regular"):(ae==="\\rmoustache"||ae==="\u23B1")&&(Ir="\u23AB",zn="\u23A9",un="\u23AA",Rn="Size4-Regular");var Fn=da(Ir,Rn,ct),Ai=Fn.height+Fn.depth,Di=da(un,Rn,ct),ya=Di.height+Di.depth,Ua=da(zn,Rn,ct),to=Ua.height+Ua.depth,go=0,wo=1;if(Br!==null){var qo=da(Br,Rn,ct);go=qo.height+qo.depth,wo=2}var Mo=Ai+to+go,$i=Math.max(0,Math.ceil((de-Mo)/(wo*ya))),To=Mo+$i*wo*ya,fo=Ke.fontMetrics().axisHeight;ye&&(fo*=Ke.sizeMultiplier);var ts=To/2-fo,Jo=($i+1)*.005-ya,zo=[];if(zo.push(sa(zn,Rn,ct)),Br===null)for(var is=0;is<$i;is++)zo.push(co),zo.push(sa(un,Rn,ct));else{for(var Rs=0;Rs<$i;Rs++)zo.push(co),zo.push(sa(un,Rn,ct));zo.push({type:"kern",size:Jo}),zo.push(sa(un,Rn,ct)),zo.push(co),zo.push(sa(Br,Rn,ct));for(var gs=0;gs<$i;gs++)zo.push(co),zo.push(sa(un,Rn,ct))}zo.push({type:"kern",size:Jo}),zo.push(sa(un,Rn,ct)),zo.push(co),zo.push(sa(Ir,Rn,ct));var ps=Ke.havingBaseStyle(K.TEXT),Ps=or.makeVList({positionType:"bottom",positionData:ts,children:zo},ps);return na(or.makeSpan(["delimsizing","mult"],[Ps],ps),K.TEXT,Ke,Bt)},ca=80,yo=.08,lo=function(ae,de,ye,Ke,ct){var Bt=ge(ae,Ke,ye),Ir=new le(ae,Bt),Br=new Oe([Ir],{width:"400em",height:de+"em",viewBox:"0 0 400000 "+ye,preserveAspectRatio:"xMinYMin slice"});return or.makeSvgSpan(["hide-tail"],[Br],ct)},Na=function(ae,de){var ye=de.havingBaseSizing(),Ke=Pn("\\surd",ae*ye.sizeMultiplier,Pr,ye),ct=ye.sizeMultiplier,Bt=Math.max(0,de.minRuleThickness-de.fontMetrics().sqrtRuleThickness),Ir,Br=0,un=0,zn=0,Rn;return Ke.type==="small"?(zn=1e3+1e3*Bt+ca,ae<1?ct=1:ae<1.4&&(ct=.7),Br=(1+Bt+yo)/ct,un=(1+Bt)/ct,Ir=lo("sqrtMain",Br,zn,Bt,de),Ir.style.minWidth="0.853em",Rn=.833/ct):Ke.type==="large"?(zn=(1e3+ca)*Lo[Ke.size],un=(Lo[Ke.size]+Bt)/ct,Br=(Lo[Ke.size]+Bt+yo)/ct,Ir=lo("sqrtSize"+Ke.size,Br,zn,Bt,de),Ir.style.minWidth="1.02em",Rn=1/ct):(Br=ae+Bt+yo,un=ae+Bt,zn=Math.floor(1e3*ae+Bt)+ca,Ir=lo("sqrtTall",Br,zn,Bt,de),Ir.style.minWidth="0.742em",Rn=1.056),Ir.height=un,Ir.style.height=Br+"em",{span:Ir,advanceWidth:Rn,ruleWidth:(de.fontMetrics().sqrtRuleThickness+Bt)*ct}},ho=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Io=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],eo=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Lo=[0,1.2,1.8,2.4,3],Va=function(ae,de,ye,Ke,ct){if(ae==="<"||ae==="\\lt"||ae==="\u27E8"?ae="\\langle":(ae===">"||ae==="\\gt"||ae==="\u27E9")&&(ae="\\rangle"),p.contains(ho,ae)||p.contains(eo,ae))return La(ae,de,!1,ye,Ke,ct);if(p.contains(Io,ae))return no(ae,Lo[de],!1,ye,Ke,ct);throw new c("Illegal delimiter: '"+ae+"'")},Bo=[{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}],Ho=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],Pr=[{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"}],An=function(ae){if(ae.type==="small")return"Main-Regular";if(ae.type==="large")return"Size"+ae.size+"-Regular";if(ae.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ae.type+"' here.")},Pn=function(ae,de,ye,Ke){for(var ct=Math.min(2,3-Ke.style.size),Bt=ct;Bt<ye.length&&!(ye[Bt].type==="stack");Bt++){var Ir=da(ae,An(ye[Bt]),"math"),Br=Ir.height+Ir.depth;if(ye[Bt].type==="small"){var un=Ke.havingBaseStyle(ye[Bt].style);Br*=un.sizeMultiplier}if(Br>de)return ye[Bt]}return ye[ye.length-1]},qr=function(ae,de,ye,Ke,ct,Bt){ae==="<"||ae==="\\lt"||ae==="\u27E8"?ae="\\langle":(ae===">"||ae==="\\gt"||ae==="\u27E9")&&(ae="\\rangle");var Ir;p.contains(eo,ae)?Ir=Bo:p.contains(ho,ae)?Ir=Pr:Ir=Ho;var Br=Pn(ae,de,Ir,Ke);return Br.type==="small"?Aa(ae,Br.style,ye,Ke,ct,Bt):Br.type==="large"?La(ae,Br.size,ye,Ke,ct,Bt):no(ae,de,ye,Ke,ct,Bt)},er=function(ae,de,ye,Ke,ct,Bt){var Ir=Ke.fontMetrics().axisHeight*Ke.sizeMultiplier,Br=901,un=5/Ke.fontMetrics().ptPerEm,zn=Math.max(de-Ir,ye+Ir),Rn=Math.max(zn/500*Br,2*zn-un);return qr(ae,Rn,!0,Ke,ct,Bt)},Dr={sqrtImage:Na,sizedDelim:Va,customSizedDelim:qr,leftRightDelim:er},lr={"\\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}},on=["(","\\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 fn(ot,ae){var de=Hi(ot);if(de&&p.contains(on,de.text))return de;throw new c("Invalid delimiter: '"+(de?de.text:JSON.stringify(ot))+"' after '"+ae.funcName+"'",ot)}Qt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ae,de){var ye=fn(de[0],ae);return{type:"delimsizing",mode:ae.parser.mode,size:lr[ae.funcName].size,mclass:lr[ae.funcName].mclass,delim:ye.text}},htmlBuilder:function(ae,de){return ae.delim==="."?or.makeSpan([ae.mclass]):Dr.sizedDelim(ae.delim,ae.size,de,ae.mode,[ae.mclass])},mathmlBuilder:function(ae){var de=[];ae.delim!=="."&&de.push(xn(ae.delim,ae.mode));var ye=new bi.MathNode("mo",de);return ae.mclass==="mopen"||ae.mclass==="mclose"?ye.setAttribute("fence","true"):ye.setAttribute("fence","false"),ye}});function Wn(ot){if(!ot.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Qt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ae,de){var ye=ae.parser.gullet.macros.get("\\current@color");if(ye&&typeof ye!="string")throw new c("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ae.parser.mode,delim:fn(de[0],ae).text,color:ye}}}),Qt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ae,de){var ye=fn(de[0],ae),Ke=ae.parser;++Ke.leftrightDepth;var ct=Ke.parseExpression(!1);--Ke.leftrightDepth,Ke.expect("\\right",!1);var Bt=vn(Ke.parseFunction(),"leftright-right");return{type:"leftright",mode:Ke.mode,body:ct,left:ye.text,right:Bt.delim,rightColor:Bt.color}},htmlBuilder:function(ae,de){Wn(ae);for(var ye=ln(ae.body,de,!0,["mopen","mclose"]),Ke=0,ct=0,Bt=!1,Ir=0;Ir<ye.length;Ir++)ye[Ir].isMiddle?Bt=!0:(Ke=Math.max(ye[Ir].height,Ke),ct=Math.max(ye[Ir].depth,ct));Ke*=de.sizeMultiplier,ct*=de.sizeMultiplier;var Br;if(ae.left==="."?Br=ii(de,["mopen"]):Br=Dr.leftRightDelim(ae.left,Ke,ct,de,ae.mode,["mopen"]),ye.unshift(Br),Bt)for(var un=1;un<ye.length;un++){var zn=ye[un],Rn=zn.isMiddle;Rn&&(ye[un]=Dr.leftRightDelim(Rn.delim,Ke,ct,Rn.options,ae.mode,[]))}var Fn;if(ae.right===".")Fn=ii(de,["mclose"]);else{var Ai=ae.rightColor?de.withColor(ae.rightColor):de;Fn=Dr.leftRightDelim(ae.right,Ke,ct,Ai,ae.mode,["mclose"])}return ye.push(Fn),or.makeSpan(["minner"],ye,de)},mathmlBuilder:function(ae,de){Wn(ae);var ye=ta(ae.body,de);if(ae.left!=="."){var Ke=new bi.MathNode("mo",[xn(ae.left,ae.mode)]);Ke.setAttribute("fence","true"),ye.unshift(Ke)}if(ae.right!=="."){var ct=new bi.MathNode("mo",[xn(ae.right,ae.mode)]);ct.setAttribute("fence","true"),ae.rightColor&&ct.setAttribute("mathcolor",ae.rightColor),ye.push(ct)}return Zi(ye)}}),Qt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ae,de){var ye=fn(de[0],ae);if(!ae.parser.leftrightDepth)throw new c("\\middle without preceding \\left",ye);return{type:"middle",mode:ae.parser.mode,delim:ye.text}},htmlBuilder:function(ae,de){var ye;if(ae.delim===".")ye=ii(de,[]);else{ye=Dr.sizedDelim(ae.delim,1,de,ae.mode,[]);var Ke={delim:ae.delim,options:de};ye.isMiddle=Ke}return ye},mathmlBuilder:function(ae,de){var ye=ae.delim==="\\vert"||ae.delim==="|"?xn("|","text"):xn(ae.delim,ae.mode),Ke=new bi.MathNode("mo",[ye]);return Ke.setAttribute("fence","true"),Ke.setAttribute("lspace","0.05em"),Ke.setAttribute("rspace","0.05em"),Ke}});var Dn=function(ae,de){var ye=or.wrapFragment(Ei(ae.body,de),de),Ke=ae.label.substr(1),ct=de.sizeMultiplier,Bt,Ir=0,Br=p.isCharacterBox(ae.body);if(Ke==="sout")Bt=or.makeSpan(["stretchy","sout"]),Bt.height=de.fontMetrics().defaultRuleThickness/ct,Ir=-.5*de.fontMetrics().xHeight;else{/cancel/.test(Ke)?Br||ye.classes.push("cancel-pad"):ye.classes.push("boxpad");var un=0,zn=0;/box/.test(Ke)?(zn=Math.max(de.fontMetrics().fboxrule,de.minRuleThickness),un=de.fontMetrics().fboxsep+(Ke==="colorbox"?0:zn)):un=Br?.2:0,Bt=vi.encloseSpan(ye,Ke,un,de),/fbox|boxed|fcolorbox/.test(Ke)&&(Bt.style.borderStyle="solid",Bt.style.borderWidth=zn+"em"),Ir=ye.depth+un,ae.backgroundColor&&(Bt.style.backgroundColor=ae.backgroundColor,ae.borderColor&&(Bt.style.borderColor=ae.borderColor))}var Rn;return ae.backgroundColor?Rn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Bt,shift:Ir},{type:"elem",elem:ye,shift:0}]},de):Rn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ye,shift:0},{type:"elem",elem:Bt,shift:Ir,wrapperClasses:/cancel/.test(Ke)?["svg-align"]:[]}]},de),/cancel/.test(Ke)&&(Rn.height=ye.height,Rn.depth=ye.depth),/cancel/.test(Ke)&&!Br?or.makeSpan(["mord","cancel-lap"],[Rn],de):or.makeSpan(["mord"],[Rn],de)},Jn=function(ae,de){var ye=0,Ke=new bi.MathNode(ae.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Qi(ae.body,de)]);switch(ae.label){case"\\cancel":Ke.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Ke.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Ke.setAttribute("notation","horizontalstrike");break;case"\\fbox":Ke.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(ye=de.fontMetrics().fboxsep*de.fontMetrics().ptPerEm,Ke.setAttribute("width","+"+2*ye+"pt"),Ke.setAttribute("height","+"+2*ye+"pt"),Ke.setAttribute("lspace",ye+"pt"),Ke.setAttribute("voffset",ye+"pt"),ae.label==="\\fcolorbox"){var ct=Math.max(de.fontMetrics().fboxrule,de.minRuleThickness);Ke.setAttribute("style","border: "+ct+"em solid "+String(ae.borderColor))}break;case"\\xcancel":Ke.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ae.backgroundColor&&Ke.setAttribute("mathbackground",ae.backgroundColor),Ke};Qt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ae,de,ye){var Ke=ae.parser,ct=ae.funcName,Bt=vn(de[0],"color-token").color,Ir=de[1];return{type:"enclose",mode:Ke.mode,label:ct,backgroundColor:Bt,body:Ir}},htmlBuilder:Dn,mathmlBuilder:Jn}),Qt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ae,de,ye){var Ke=ae.parser,ct=ae.funcName,Bt=vn(de[0],"color-token").color,Ir=vn(de[1],"color-token").color,Br=de[2];return{type:"enclose",mode:Ke.mode,label:ct,backgroundColor:Ir,borderColor:Bt,body:Br}},htmlBuilder:Dn,mathmlBuilder:Jn}),Qt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ae,de){var ye=ae.parser;return{type:"enclose",mode:ye.mode,label:"\\fbox",body:de[0]}}}),Qt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ae,de,ye){var Ke=ae.parser,ct=ae.funcName,Bt=de[0];return{type:"enclose",mode:Ke.mode,label:ct,body:Bt}},htmlBuilder:Dn,mathmlBuilder:Jn});var Ti={};function xi(ot){for(var ae=ot.type,de=ot.names,ye=ot.props,Ke=ot.handler,ct=ot.htmlBuilder,Bt=ot.mathmlBuilder,Ir={type:ae,numArgs:ye.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Ke},Br=0;Br<de.length;++Br)Ti[de[Br]]=Ir;ct&&(fr[ae]=ct),Bt&&(Nr[ae]=Bt)}function Bi(ot){var ae=[];ot.consumeSpaces();for(var de=ot.fetch().text;de==="\\hline"||de==="\\hdashline";)ot.consume(),ae.push(de==="\\hdashline"),ot.consumeSpaces(),de=ot.fetch().text;return ae}function ea(ot,ae,de){var ye=ae.hskipBeforeAndAfter,Ke=ae.addJot,ct=ae.cols,Bt=ae.arraystretch,Ir=ae.colSeparationType;if(ot.gullet.beginGroup(),ot.gullet.macros.set("\\\\","\\cr"),!Bt){var Br=ot.gullet.expandMacroAsText("\\arraystretch");if(Br==null)Bt=1;else if(Bt=parseFloat(Br),!Bt||Bt<0)throw new c("Invalid \\arraystretch: "+Br)}ot.gullet.beginGroup();var un=[],zn=[un],Rn=[],Fn=[];for(Fn.push(Bi(ot));;){var Ai=ot.parseExpression(!1,"\\cr");ot.gullet.endGroup(),ot.gullet.beginGroup(),Ai={type:"ordgroup",mode:ot.mode,body:Ai},de&&(Ai={type:"styling",mode:ot.mode,style:de,body:[Ai]}),un.push(Ai);var Di=ot.fetch().text;if(Di==="&")ot.consume();else if(Di==="\\end"){un.length===1&&Ai.type==="styling"&&Ai.body[0].body.length===0&&zn.pop(),Fn.length<zn.length+1&&Fn.push([]);break}else if(Di==="\\cr"){var ya=vn(ot.parseFunction(),"cr");Rn.push(ya.size),Fn.push(Bi(ot)),un=[],zn.push(un)}else throw new c("Expected & or \\\\ or \\cr or \\end",ot.nextToken)}return ot.gullet.endGroup(),ot.gullet.endGroup(),{type:"array",mode:ot.mode,addJot:Ke,arraystretch:Bt,body:zn,cols:ct,rowGaps:Rn,hskipBeforeAndAfter:ye,hLinesBeforeRow:Fn,colSeparationType:Ir}}function Ha(ot){return ot.substr(0,1)==="d"?"display":"text"}var Qa=function(ae,de){var ye,Ke,ct=ae.body.length,Bt=ae.hLinesBeforeRow,Ir=0,Br=new Array(ct),un=[],zn=Math.max(de.fontMetrics().arrayRuleWidth,de.minRuleThickness),Rn=1/de.fontMetrics().ptPerEm,Fn=5*Rn;if(ae.colSeparationType&&ae.colSeparationType==="small"){var Ai=de.havingStyle(K.SCRIPT).sizeMultiplier;Fn=.2778*(Ai/de.sizeMultiplier)}var Di=12*Rn,ya=3*Rn,Ua=ae.arraystretch*Di,to=.7*Ua,go=.3*Ua,wo=0;function qo(Ms){for(var Ws=0;Ws<Ms.length;++Ws)Ws>0&&(wo+=.25),un.push({pos:wo,isDashed:Ms[Ws]})}for(qo(Bt[0]),ye=0;ye<ae.body.length;++ye){var Mo=ae.body[ye],$i=to,To=go;Ir<Mo.length&&(Ir=Mo.length);var fo=new Array(Mo.length);for(Ke=0;Ke<Mo.length;++Ke){var ts=Ei(Mo[Ke],de);To<ts.depth&&(To=ts.depth),$i<ts.height&&($i=ts.height),fo[Ke]=ts}var Jo=ae.rowGaps[ye],zo=0;Jo&&(zo=sr(Jo,de),zo>0&&(zo+=go,To<zo&&(To=zo),zo=0)),ae.addJot&&(To+=ya),fo.height=$i,fo.depth=To,wo+=$i,fo.pos=wo,wo+=To+zo,Br[ye]=fo,qo(Bt[ye+1])}var is=wo/2+de.fontMetrics().axisHeight,Rs=ae.cols||[],gs=[],ps,Ps;for(Ke=0,Ps=0;Ke<Ir||Ps<Rs.length;++Ke,++Ps){for(var Es=Rs[Ps]||{},Vs=!0;Es.type==="separator";){if(Vs||(ps=or.makeSpan(["arraycolsep"],[]),ps.style.width=de.fontMetrics().doubleRuleSep+"em",gs.push(ps)),Es.separator==="|"||Es.separator===":"){var Ks=Es.separator==="|"?"solid":"dashed",Gs=or.makeSpan(["vertical-separator"],[],de);Gs.style.height=wo+"em",Gs.style.borderRightWidth=zn+"em",Gs.style.borderRightStyle=Ks,Gs.style.margin="0 -"+zn/2+"em",Gs.style.verticalAlign=-(wo-is)+"em",gs.push(Gs)}else throw new c("Invalid separator type: "+Es.separator);Ps++,Es=Rs[Ps]||{},Vs=!1}if(Ke>=Ir)continue;var ws=void 0;(Ke>0||ae.hskipBeforeAndAfter)&&(ws=p.deflt(Es.pregap,Fn),ws!==0&&(ps=or.makeSpan(["arraycolsep"],[]),ps.style.width=ws+"em",gs.push(ps)));var Os=[];for(ye=0;ye<ct;++ye){var $s=Br[ye],nl=$s[Ke];if(!nl)continue;var il=$s.pos-is;nl.depth=$s.depth,nl.height=$s.height,Os.push({type:"elem",elem:nl,shift:il})}Os=or.makeVList({positionType:"individualShift",children:Os},de),Os=or.makeSpan(["col-align-"+(Es.align||"c")],[Os]),gs.push(Os),(Ke<Ir-1||ae.hskipBeforeAndAfter)&&(ws=p.deflt(Es.postgap,Fn),ws!==0&&(ps=or.makeSpan(["arraycolsep"],[]),ps.style.width=ws+"em",gs.push(ps)))}if(Br=or.makeSpan(["mtable"],gs),un.length>0){for(var hl=or.makeLineSpan("hline",de,zn),Nl=or.makeLineSpan("hdashline",de,zn),Al=[{type:"elem",elem:Br,shift:0}];un.length>0;){var yl=un.pop(),al=yl.pos-is;yl.isDashed?Al.push({type:"elem",elem:Nl,shift:al}):Al.push({type:"elem",elem:hl,shift:al})}Br=or.makeVList({positionType:"individualShift",children:Al},de)}return or.makeSpan(["mord"],[Br],de)},io={c:"center ",l:"left ",r:"right "},Ja=function(ae,de){var ye=new bi.MathNode("mtable",ae.body.map(function(wo){return new bi.MathNode("mtr",wo.map(function(qo){return new bi.MathNode("mtd",[Qi(qo,de)])}))})),Ke=ae.arraystretch===.5?.1:.16+ae.arraystretch-1+(ae.addJot?.09:0);ye.setAttribute("rowspacing",Ke+"em");var ct="",Bt="";if(ae.cols){var Ir=ae.cols,Br="",un=!1,zn=0,Rn=Ir.length;Ir[0].type==="separator"&&(ct+="top ",zn=1),Ir[Ir.length-1].type==="separator"&&(ct+="bottom ",Rn-=1);for(var Fn=zn;Fn<Rn;Fn++)Ir[Fn].type==="align"?(Bt+=io[Ir[Fn].align],un&&(Br+="none "),un=!0):Ir[Fn].type==="separator"&&(un&&(Br+=Ir[Fn].separator==="|"?"solid ":"dashed ",un=!1));ye.setAttribute("columnalign",Bt.trim()),/[sd]/.test(Br)&&ye.setAttribute("columnlines",Br.trim())}if(ae.colSeparationType==="align"){for(var Ai=ae.cols||[],Di="",ya=1;ya<Ai.length;ya++)Di+=ya%2?"0em ":"1em ";ye.setAttribute("columnspacing",Di.trim())}else ae.colSeparationType==="alignat"?ye.setAttribute("columnspacing","0em"):ae.colSeparationType==="small"?ye.setAttribute("columnspacing","0.2778em"):ye.setAttribute("columnspacing","1em");var Ua="",to=ae.hLinesBeforeRow;ct+=to[0].length>0?"left ":"",ct+=to[to.length-1].length>0?"right ":"";for(var go=1;go<to.length-1;go++)Ua+=to[go].length===0?"none ":to[go][0]?"dashed ":"solid ";return/[sd]/.test(Ua)&&ye.setAttribute("rowlines",Ua.trim()),ct!==""&&(ye=new bi.MathNode("menclose",[ye]),ye.setAttribute("notation",ct.trim())),ae.arraystretch&&ae.arraystretch<1&&(ye=new bi.MathNode("mstyle",[ye]),ye.setAttribute("scriptlevel","1")),ye},Ga=function(ae,de){var ye=[],Ke=ea(ae.parser,{cols:ye,addJot:!0},"display"),ct,Bt=0,Ir={type:"ordgroup",mode:ae.mode,body:[]},Br=nn(de[0],"ordgroup");if(Br){for(var un="",zn=0;zn<Br.body.length;zn++){var Rn=vn(Br.body[zn],"textord");un+=Rn.text}ct=Number(un),Bt=ct*2}var Fn=!Bt;Ke.body.forEach(function(Ua){for(var to=1;to<Ua.length;to+=2){var go=vn(Ua[to],"styling"),wo=vn(go.body[0],"ordgroup");wo.body.unshift(Ir)}if(Fn)Bt<Ua.length&&(Bt=Ua.length);else{var qo=Ua.length/2;if(ct<qo)throw new c("Too many math in a row: "+("expected "+ct+", but got "+qo),Ua[0])}});for(var Ai=0;Ai<Bt;++Ai){var Di="r",ya=0;Ai%2===1?Di="l":Ai>0&&Fn&&(ya=1),ye[Ai]={type:"align",align:Di,pregap:ya,postgap:0}}return Ke.colSeparationType=Fn?"align":"alignat",Ke};xi({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ae,de){var ye=Hi(de[0]),Ke=ye?[de[0]]:vn(de[0],"ordgroup").body,ct=Ke.map(function(Ir){var Br=Oi(Ir),un=Br.text;if("lcr".indexOf(un)!==-1)return{type:"align",align:un};if(un==="|")return{type:"separator",separator:"|"};if(un===":")return{type:"separator",separator:":"};throw new c("Unknown column alignment: "+un,Ir)}),Bt={cols:ct,hskipBeforeAndAfter:!0};return ea(ae.parser,Bt,Ha(ae.envName))},htmlBuilder:Qa,mathmlBuilder:Ja}),xi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ae){var de={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ae.envName],ye={hskipBeforeAndAfter:!1},Ke=ea(ae.parser,ye,Ha(ae.envName));return de?{type:"leftright",mode:ae.mode,body:[Ke],left:de[0],right:de[1],rightColor:void 0}:Ke},htmlBuilder:Qa,mathmlBuilder:Ja}),xi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ae){var de={arraystretch:.5},ye=ea(ae.parser,de,"script");return ye.colSeparationType="small",ye},htmlBuilder:Qa,mathmlBuilder:Ja}),xi({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ae,de){var ye=Hi(de[0]),Ke=ye?[de[0]]:vn(de[0],"ordgroup").body,ct=Ke.map(function(Ir){var Br=Oi(Ir),un=Br.text;if("lc".indexOf(un)!==-1)return{type:"align",align:un};throw new c("Unknown column alignment: "+un,Ir)});if(ct.length>1)throw new c("{subarray} can contain only one column");var Bt={cols:ct,hskipBeforeAndAfter:!1,arraystretch:.5};if(Bt=ea(ae.parser,Bt,"script"),Bt.body[0].length>1)throw new c("{subarray} can contain only one column");return Bt},htmlBuilder:Qa,mathmlBuilder:Ja}),xi({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ae){var de={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},ye=ea(ae.parser,de,Ha(ae.envName));return{type:"leftright",mode:ae.mode,body:[ye],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Qa,mathmlBuilder:Ja}),xi({type:"array",names:["aligned"],props:{numArgs:0},handler:Ga,htmlBuilder:Qa,mathmlBuilder:Ja}),xi({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ae){var de={cols:[{type:"align",align:"c"}],addJot:!0};return ea(ae.parser,de,"display")},htmlBuilder:Qa,mathmlBuilder:Ja}),xi({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ga,htmlBuilder:Qa,mathmlBuilder:Ja}),Qt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ae,de){throw new c(ae.funcName+" valid only within array environment")}});var Ra=Ti,ia=Ra;Qt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0];if(ct.type!=="ordgroup")throw new c("Invalid environment name",ct);for(var Bt="",Ir=0;Ir<ct.body.length;++Ir)Bt+=vn(ct.body[Ir],"textord").text;if(Ke==="\\begin"){if(!ia.hasOwnProperty(Bt))throw new c("No such environment: "+Bt,ct);var Br=ia[Bt],un=ye.parseArguments("\\begin{"+Bt+"}",Br),zn=un.args,Rn=un.optArgs,Fn={mode:ye.mode,envName:Bt,parser:ye},Ai=Br.handler(Fn,zn,Rn);ye.expect("\\end",!1);var Di=ye.nextToken,ya=vn(ye.parseFunction(),"environment");if(ya.name!==Bt)throw new c("Mismatch: \\begin{"+Bt+"} matched by \\end{"+ya.name+"}",Di);return Ai}return{type:"environment",mode:ye.mode,name:Bt,nameGroup:ct}}});var qe=or.makeSpan;function rr(ot,ae){var de=ln(ot.body,ae,!0);return qe([ot.mclass],de,ae)}function Rr(ot,ae){var de,ye=ta(ot.body,ae);return ot.mclass==="minner"?bi.newDocumentFragment(ye):(ot.mclass==="mord"?ot.isCharacterBox?(de=ye[0],de.type="mi"):de=new bi.MathNode("mi",ye):(ot.isCharacterBox?(de=ye[0],de.type="mo"):de=new bi.MathNode("mo",ye),ot.mclass==="mbin"?(de.attributes.lspace="0.22em",de.attributes.rspace="0.22em"):ot.mclass==="mpunct"?(de.attributes.lspace="0em",de.attributes.rspace="0.17em"):(ot.mclass==="mopen"||ot.mclass==="mclose")&&(de.attributes.lspace="0em",de.attributes.rspace="0em")),de)}Qt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0];return{type:"mclass",mode:ye.mode,mclass:"m"+Ke.substr(5),body:Jr(ct),isCharacterBox:p.isCharacterBox(ct)}},htmlBuilder:rr,mathmlBuilder:Rr});var Cr=function(ae){var de=ae.type==="ordgroup"&&ae.body.length?ae.body[0]:ae;return de.type==="atom"&&(de.family==="bin"||de.family==="rel")?"m"+de.family:"mord"};Qt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ae,de){var ye=ae.parser;return{type:"mclass",mode:ye.mode,mclass:Cr(de[0]),body:[de[1]],isCharacterBox:p.isCharacterBox(de[1])}}}),Qt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[1],Bt=de[0],Ir;Ke!=="\\stackrel"?Ir=Cr(ct):Ir="mrel";var Br={type:"op",mode:ct.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Ke!=="\\stackrel",body:Jr(ct)},un={type:"supsub",mode:Bt.mode,base:Br,sup:Ke==="\\underset"?null:Bt,sub:Ke==="\\underset"?Bt:null};return{type:"mclass",mode:ye.mode,mclass:Ir,body:[un],isCharacterBox:p.isCharacterBox(un)}},htmlBuilder:rr,mathmlBuilder:Rr});var pn=function(ae,de){var ye=ae.font,Ke=de.withFont(ye);return Ei(ae.body,Ke)},Vr=function(ae,de){var ye=ae.font,Ke=de.withFont(ye);return Qi(ae.body,Ke)},br={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Qt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0],Bt=Ke;return Bt in br&&(Bt=br[Bt]),{type:"font",mode:ye.mode,font:Bt.slice(1),body:ct}},htmlBuilder:pn,mathmlBuilder:Vr}),Qt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ae,de){var ye=ae.parser,Ke=de[0],ct=p.isCharacterBox(Ke);return{type:"mclass",mode:ye.mode,mclass:Cr(Ke),body:[{type:"font",mode:ye.mode,font:"boldsymbol",body:Ke}],isCharacterBox:ct}}}),Qt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=ae.breakOnTokenText,Bt=ye.mode,Ir=ye.parseExpression(!0,ct),Br="math"+Ke.slice(1);return{type:"font",mode:Bt,font:Br,body:{type:"ordgroup",mode:ye.mode,body:Ir}}},htmlBuilder:pn,mathmlBuilder:Vr});var In=function(ae,de){var ye=de;return ae==="display"?ye=ye.id>=K.SCRIPT.id?ye.text():K.DISPLAY:ae==="text"&&ye.size===K.DISPLAY.size?ye=K.TEXT:ae==="script"?ye=K.SCRIPT:ae==="scriptscript"&&(ye=K.SCRIPTSCRIPT),ye},Sr=function(ae,de){var ye=In(ae.size,de.style),Ke=ye.fracNum(),ct=ye.fracDen(),Bt;Bt=de.havingStyle(Ke);var Ir=Ei(ae.numer,Bt,de);if(ae.continued){var Br=8.5/de.fontMetrics().ptPerEm,un=3.5/de.fontMetrics().ptPerEm;Ir.height=Ir.height<Br?Br:Ir.height,Ir.depth=Ir.depth<un?un:Ir.depth}Bt=de.havingStyle(ct);var zn=Ei(ae.denom,Bt,de),Rn,Fn,Ai;ae.hasBarLine?(ae.barSize?(Fn=sr(ae.barSize,de),Rn=or.makeLineSpan("frac-line",de,Fn)):Rn=or.makeLineSpan("frac-line",de),Fn=Rn.height,Ai=Rn.height):(Rn=null,Fn=0,Ai=de.fontMetrics().defaultRuleThickness);var Di,ya,Ua;ye.size===K.DISPLAY.size||ae.size==="display"?(Di=de.fontMetrics().num1,Fn>0?ya=3*Ai:ya=7*Ai,Ua=de.fontMetrics().denom1):(Fn>0?(Di=de.fontMetrics().num2,ya=Ai):(Di=de.fontMetrics().num3,ya=3*Ai),Ua=de.fontMetrics().denom2);var to;if(Rn){var wo=de.fontMetrics().axisHeight;Di-Ir.depth-(wo+.5*Fn)<ya&&(Di+=ya-(Di-Ir.depth-(wo+.5*Fn))),wo-.5*Fn-(zn.height-Ua)<ya&&(Ua+=ya-(wo-.5*Fn-(zn.height-Ua)));var qo=-(wo-.5*Fn);to=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:zn,shift:Ua},{type:"elem",elem:Rn,shift:qo},{type:"elem",elem:Ir,shift:-Di}]},de)}else{var go=Di-Ir.depth-(zn.height-Ua);go<ya&&(Di+=.5*(ya-go),Ua+=.5*(ya-go)),to=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:zn,shift:Ua},{type:"elem",elem:Ir,shift:-Di}]},de)}Bt=de.havingStyle(ye),to.height*=Bt.sizeMultiplier/de.sizeMultiplier,to.depth*=Bt.sizeMultiplier/de.sizeMultiplier;var Mo;ye.size===K.DISPLAY.size?Mo=de.fontMetrics().delim1:Mo=de.fontMetrics().delim2;var $i,To;return ae.leftDelim==null?$i=ii(de,["mopen"]):$i=Dr.customSizedDelim(ae.leftDelim,Mo,!0,de.havingStyle(ye),ae.mode,["mopen"]),ae.continued?To=or.makeSpan([]):ae.rightDelim==null?To=ii(de,["mclose"]):To=Dr.customSizedDelim(ae.rightDelim,Mo,!0,de.havingStyle(ye),ae.mode,["mclose"]),or.makeSpan(["mord"].concat(Bt.sizingClasses(de)),[$i,or.makeSpan(["mfrac"],[to]),To],de)},gn=function(ae,de){var ye=new bi.MathNode("mfrac",[Qi(ae.numer,de),Qi(ae.denom,de)]);if(!ae.hasBarLine)ye.setAttribute("linethickness","0px");else if(ae.barSize){var Ke=sr(ae.barSize,de);ye.setAttribute("linethickness",Ke+"em")}var ct=In(ae.size,de.style);if(ct.size!==de.style.size){ye=new bi.MathNode("mstyle",[ye]);var Bt=ct.size===K.DISPLAY.size?"true":"false";ye.setAttribute("displaystyle",Bt),ye.setAttribute("scriptlevel","0")}if(ae.leftDelim!=null||ae.rightDelim!=null){var Ir=[];if(ae.leftDelim!=null){var Br=new bi.MathNode("mo",[new bi.TextNode(ae.leftDelim.replace("\\",""))]);Br.setAttribute("fence","true"),Ir.push(Br)}if(Ir.push(ye),ae.rightDelim!=null){var un=new bi.MathNode("mo",[new bi.TextNode(ae.rightDelim.replace("\\",""))]);un.setAttribute("fence","true"),Ir.push(un)}return Zi(Ir)}return ye};Qt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0],Bt=de[1],Ir,Br=null,un=null,zn="auto";switch(Ke){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Ir=!0;break;case"\\\\atopfrac":Ir=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Ir=!1,Br="(",un=")";break;case"\\\\bracefrac":Ir=!1,Br="\\{",un="\\}";break;case"\\\\brackfrac":Ir=!1,Br="[",un="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Ke){case"\\cfrac":case"\\dfrac":case"\\dbinom":zn="display";break;case"\\tfrac":case"\\tbinom":zn="text";break}return{type:"genfrac",mode:ye.mode,continued:Ke==="\\cfrac",numer:ct,denom:Bt,hasBarLine:Ir,leftDelim:Br,rightDelim:un,size:zn,barSize:null}},htmlBuilder:Sr,mathmlBuilder:gn}),Qt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ae){var de=ae.parser,ye=ae.funcName,Ke=ae.token,ct;switch(ye){case"\\over":ct="\\frac";break;case"\\choose":ct="\\binom";break;case"\\atop":ct="\\\\atopfrac";break;case"\\brace":ct="\\\\bracefrac";break;case"\\brack":ct="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:de.mode,replaceWith:ct,token:Ke}}});var $n=["display","text","script","scriptscript"],qn=function(ae){var de=null;return ae.length>0&&(de=ae,de=de==="."?null:de),de};Qt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ae,de){var ye=ae.parser,Ke=de[4],ct=de[5],Bt=nn(de[0],"atom");Bt&&(Bt=Ur(de[0],"open"));var Ir=Bt?qn(Bt.text):null,Br=nn(de[1],"atom");Br&&(Br=Ur(de[1],"close"));var un=Br?qn(Br.text):null,zn=vn(de[2],"size"),Rn,Fn=null;zn.isBlank?Rn=!0:(Fn=zn.value,Rn=Fn.number>0);var Ai="auto",Di=nn(de[3],"ordgroup");if(Di){if(Di.body.length>0){var ya=vn(Di.body[0],"textord");Ai=$n[Number(ya.text)]}}else Di=vn(de[3],"textord"),Ai=$n[Number(Di.text)];return{type:"genfrac",mode:ye.mode,numer:Ke,denom:ct,continued:!1,hasBarLine:Rn,barSize:Fn,leftDelim:Ir,rightDelim:un,size:Ai}},htmlBuilder:Sr,mathmlBuilder:gn}),Qt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=ae.token;return{type:"infix",mode:ye.mode,replaceWith:"\\\\abovefrac",size:vn(de[0],"size").value,token:ct}}}),Qt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0],Bt=u(vn(de[1],"infix").size),Ir=de[2],Br=Bt.number>0;return{type:"genfrac",mode:ye.mode,numer:ct,denom:Ir,continued:!1,hasBarLine:Br,barSize:Bt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Sr,mathmlBuilder:gn});var Gn=function(ae,de){var ye=de.style,Ke,ct,Bt=nn(ae,"supsub");Bt?(Ke=Bt.sup?Ei(Bt.sup,de.havingStyle(ye.sup()),de):Ei(Bt.sub,de.havingStyle(ye.sub()),de),ct=vn(Bt.base,"horizBrace")):ct=vn(ae,"horizBrace");var Ir=Ei(ct.base,de.havingBaseStyle(K.DISPLAY)),Br=vi.svgSpan(ct,de),un;if(ct.isOver?(un=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ir},{type:"kern",size:.1},{type:"elem",elem:Br}]},de),un.children[0].children[0].children[1].classes.push("svg-align")):(un=or.makeVList({positionType:"bottom",positionData:Ir.depth+.1+Br.height,children:[{type:"elem",elem:Br},{type:"kern",size:.1},{type:"elem",elem:Ir}]},de),un.children[0].children[0].children[0].classes.push("svg-align")),Ke){var zn=or.makeSpan(["mord",ct.isOver?"mover":"munder"],[un],de);ct.isOver?un=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:zn},{type:"kern",size:.2},{type:"elem",elem:Ke}]},de):un=or.makeVList({positionType:"bottom",positionData:zn.depth+.2+Ke.height+Ke.depth,children:[{type:"elem",elem:Ke},{type:"kern",size:.2},{type:"elem",elem:zn}]},de)}return or.makeSpan(["mord",ct.isOver?"mover":"munder"],[un],de)},mi=function(ae,de){var ye=vi.mathMLnode(ae.label);return new bi.MathNode(ae.isOver?"mover":"munder",[Qi(ae.base,de),ye])};Qt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName;return{type:"horizBrace",mode:ye.mode,label:Ke,isOver:/^\\over/.test(Ke),base:de[0]}},htmlBuilder:Gn,mathmlBuilder:mi}),Qt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=de[1],ct=vn(de[0],"url").url;return ye.settings.isTrusted({command:"\\href",url:ct})?{type:"href",mode:ye.mode,href:ct,body:Jr(Ke)}:ye.formatUnsupportedCmd("\\href")},htmlBuilder:function(ae,de){var ye=ln(ae.body,de,!1);return or.makeAnchor(ae.href,[],ye,de)},mathmlBuilder:function(ae,de){var ye=ma(ae.body,de);return ye instanceof _a||(ye=new _a("mrow",[ye])),ye.setAttribute("href",ae.href),ye}}),Qt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=vn(de[0],"url").url;if(!ye.settings.isTrusted({command:"\\url",url:Ke}))return ye.formatUnsupportedCmd("\\url");for(var ct=[],Bt=0;Bt<Ke.length;Bt++){var Ir=Ke[Bt];Ir==="~"&&(Ir="\\textasciitilde"),ct.push({type:"textord",mode:"text",text:Ir})}var Br={type:"text",mode:ye.mode,font:"\\texttt",body:ct};return{type:"href",mode:ye.mode,href:Ke,body:Jr(Br)}}}),Qt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ae,de){var ye=ae.parser;return{type:"htmlmathml",mode:ye.mode,html:Jr(de[0]),mathml:Jr(de[1])}},htmlBuilder:function(ae,de){var ye=ln(ae.html,de,!1);return or.makeFragment(ye)},mathmlBuilder:function(ae,de){return ma(ae.mathml,de)}});var ti=function(ae){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ae))return{number:+ae,unit:"bp"};var de=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ae);if(!de)throw new c("Invalid size: '"+ae+"' in \\includegraphics");var ye={number:+(de[1]+de[2]),unit:de[3]};if(!wr(ye))throw new c("Invalid unit: '"+ye.unit+"' in \\includegraphics.");return ye};Qt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ae,de,ye){var Ke=ae.parser,ct={number:0,unit:"em"},Bt={number:.9,unit:"em"},Ir={number:0,unit:"em"},Br="";if(ye[0])for(var un=vn(ye[0],"raw").string,zn=un.split(","),Rn=0;Rn<zn.length;Rn++){var Fn=zn[Rn].split("=");if(Fn.length===2){var Ai=Fn[1].trim();switch(Fn[0].trim()){case"alt":Br=Ai;break;case"width":ct=ti(Ai);break;case"height":Bt=ti(Ai);break;case"totalheight":Ir=ti(Ai);break;default:throw new c("Invalid key: '"+Fn[0]+"' in \\includegraphics.")}}}var Di=vn(de[0],"url").url;return Br===""&&(Br=Di,Br=Br.replace(/^.*[\\/]/,""),Br=Br.substring(0,Br.lastIndexOf("."))),Ke.settings.isTrusted({command:"\\includegraphics",url:Di})?{type:"includegraphics",mode:Ke.mode,alt:Br,width:ct,height:Bt,totalheight:Ir,src:Di}:Ke.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ae,de){var ye=sr(ae.height,de),Ke=0;ae.totalheight.number>0&&(Ke=sr(ae.totalheight,de)-ye,Ke=Number(Ke.toFixed(2)));var ct=0;ae.width.number>0&&(ct=sr(ae.width,de));var Bt={height:ye+Ke+"em"};ct>0&&(Bt.width=ct+"em"),Ke>0&&(Bt.verticalAlign=-Ke+"em");var Ir=new we(ae.src,ae.alt,Bt);return Ir.height=ye,Ir.depth=Ke,Ir},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mglyph",[]);ye.setAttribute("alt",ae.alt);var Ke=sr(ae.height,de),ct=0;if(ae.totalheight.number>0&&(ct=sr(ae.totalheight,de)-Ke,ct=ct.toFixed(2),ye.setAttribute("valign","-"+ct+"em")),ye.setAttribute("height",Ke+ct+"em"),ae.width.number>0){var Bt=sr(ae.width,de);ye.setAttribute("width",Bt+"em")}return ye.setAttribute("src",ae.src),ye}}),Qt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=vn(de[0],"size");if(ye.settings.strict){var Bt=Ke[1]==="m",Ir=ct.value.unit==="mu";Bt?(Ir||ye.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ke+" supports only mu units, "+("not "+ct.value.unit+" units")),ye.mode!=="math"&&ye.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ke+" works only in math mode")):Ir&&ye.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ke+" doesn't support mu units")}return{type:"kern",mode:ye.mode,dimension:ct.value}},htmlBuilder:function(ae,de){return or.makeGlue(ae.dimension,de)},mathmlBuilder:function(ae,de){var ye=sr(ae.dimension,de);return new bi.SpaceNode(ye)}}),Qt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0];return{type:"lap",mode:ye.mode,alignment:Ke.slice(5),body:ct}},htmlBuilder:function(ae,de){var ye;ae.alignment==="clap"?(ye=or.makeSpan([],[Ei(ae.body,de)]),ye=or.makeSpan(["inner"],[ye],de)):ye=or.makeSpan(["inner"],[Ei(ae.body,de)]);var Ke=or.makeSpan(["fix"],[]),ct=or.makeSpan([ae.alignment],[ye,Ke],de),Bt=or.makeSpan(["strut"]);return Bt.style.height=ct.height+ct.depth+"em",Bt.style.verticalAlign=-ct.depth+"em",ct.children.unshift(Bt),ct=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ct}]},de),or.makeSpan(["mord"],[ct],de)},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mpadded",[Qi(ae.body,de)]);if(ae.alignment!=="rlap"){var Ke=ae.alignment==="llap"?"-1":"-0.5";ye.setAttribute("lspace",Ke+"width")}return ye.setAttribute("width","0px"),ye}}),Qt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ae,de){var ye=ae.funcName,Ke=ae.parser,ct=Ke.mode;Ke.switchMode("math");var Bt=ye==="\\("?"\\)":"$",Ir=Ke.parseExpression(!1,Bt);return Ke.expect(Bt),Ke.switchMode(ct),{type:"styling",mode:Ke.mode,style:"text",body:Ir}}}),Qt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ae,de){throw new c("Mismatched "+ae.funcName)}});var ri=function(ae,de){switch(de.style.size){case K.DISPLAY.size:return ae.display;case K.TEXT.size:return ae.text;case K.SCRIPT.size:return ae.script;case K.SCRIPTSCRIPT.size:return ae.scriptscript;default:return ae.text}};Qt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ae,de){var ye=ae.parser;return{type:"mathchoice",mode:ye.mode,display:Jr(de[0]),text:Jr(de[1]),script:Jr(de[2]),scriptscript:Jr(de[3])}},htmlBuilder:function(ae,de){var ye=ri(ae,de),Ke=ln(ye,de,!1);return or.makeFragment(Ke)},mathmlBuilder:function(ae,de){var ye=ri(ae,de);return ma(ye,de)}});var li=function(ae,de,ye,Ke,ct,Bt,Ir){ae=or.makeSpan([],[ae]);var Br,un;if(de){var zn=Ei(de,Ke.havingStyle(ct.sup()),Ke);un={elem:zn,kern:Math.max(Ke.fontMetrics().bigOpSpacing1,Ke.fontMetrics().bigOpSpacing3-zn.depth)}}if(ye){var Rn=Ei(ye,Ke.havingStyle(ct.sub()),Ke);Br={elem:Rn,kern:Math.max(Ke.fontMetrics().bigOpSpacing2,Ke.fontMetrics().bigOpSpacing4-Rn.height)}}var Fn;if(un&&Br){var Ai=Ke.fontMetrics().bigOpSpacing5+Br.elem.height+Br.elem.depth+Br.kern+ae.depth+Ir;Fn=or.makeVList({positionType:"bottom",positionData:Ai,children:[{type:"kern",size:Ke.fontMetrics().bigOpSpacing5},{type:"elem",elem:Br.elem,marginLeft:-Bt+"em"},{type:"kern",size:Br.kern},{type:"elem",elem:ae},{type:"kern",size:un.kern},{type:"elem",elem:un.elem,marginLeft:Bt+"em"},{type:"kern",size:Ke.fontMetrics().bigOpSpacing5}]},Ke)}else if(Br){var Di=ae.height-Ir;Fn=or.makeVList({positionType:"top",positionData:Di,children:[{type:"kern",size:Ke.fontMetrics().bigOpSpacing5},{type:"elem",elem:Br.elem,marginLeft:-Bt+"em"},{type:"kern",size:Br.kern},{type:"elem",elem:ae}]},Ke)}else if(un){var ya=ae.depth+Ir;Fn=or.makeVList({positionType:"bottom",positionData:ya,children:[{type:"elem",elem:ae},{type:"kern",size:un.kern},{type:"elem",elem:un.elem,marginLeft:Bt+"em"},{type:"kern",size:Ke.fontMetrics().bigOpSpacing5}]},Ke)}else return ae;return or.makeSpan(["mop","op-limits"],[Fn],Ke)},Xi=["\\smallint"],Pi=function(ae,de){var ye,Ke,ct=!1,Bt,Ir=nn(ae,"supsub");Ir?(ye=Ir.sup,Ke=Ir.sub,Bt=vn(Ir.base,"op"),ct=!0):Bt=vn(ae,"op");var Br=de.style,un=!1;Br.size===K.DISPLAY.size&&Bt.symbol&&!p.contains(Xi,Bt.name)&&(un=!0);var zn;if(Bt.symbol){var Rn=un?"Size2-Regular":"Size1-Regular",Fn="";if((Bt.name==="\\oiint"||Bt.name==="\\oiiint")&&(Fn=Bt.name.substr(1),Bt.name=Fn==="oiint"?"\\iint":"\\iiint"),zn=or.makeSymbol(Bt.name,Rn,"math",de,["mop","op-symbol",un?"large-op":"small-op"]),Fn.length>0){var Ai=zn.italic,Di=or.staticSvg(Fn+"Size"+(un?"2":"1"),de);zn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:zn,shift:0},{type:"elem",elem:Di,shift:un?.08:0}]},de),Bt.name="\\"+Fn,zn.classes.unshift("mop"),zn.italic=Ai}}else if(Bt.body){var ya=ln(Bt.body,de,!0);ya.length===1&&ya[0]instanceof Pe?(zn=ya[0],zn.classes[0]="mop"):zn=or.makeSpan(["mop"],or.tryCombineChars(ya),de)}else{for(var Ua=[],to=1;to<Bt.name.length;to++)Ua.push(or.mathsym(Bt.name[to],Bt.mode,de));zn=or.makeSpan(["mop"],Ua,de)}var go=0,wo=0;return(zn instanceof Pe||Bt.name==="\\oiint"||Bt.name==="\\oiiint")&&!Bt.suppressBaseShift&&(go=(zn.height-zn.depth)/2-de.fontMetrics().axisHeight,wo=zn.italic),ct?li(zn,ye,Ke,de,Br,wo,go):(go&&(zn.style.position="relative",zn.style.top=go+"em"),zn)},ga=function(ae,de){var ye;if(ae.symbol)ye=new _a("mo",[xn(ae.name,ae.mode)]),p.contains(Xi,ae.name)&&ye.setAttribute("largeop","false");else if(ae.body)ye=new _a("mo",ta(ae.body,de));else{ye=new _a("mi",[new wa(ae.name.slice(1))]);var Ke=new _a("mo",[xn("\u2061","text")]);ae.parentIsSupSub?ye=new _a("mo",[ye,Ke]):ye=ra([ye,Ke])}return ye},tr={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Qt({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(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=Ke;return ct.length===1&&(ct=tr[ct]),{type:"op",mode:ye.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:ct}},htmlBuilder:Pi,mathmlBuilder:ga}),Qt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ae,de){var ye=ae.parser,Ke=de[0];return{type:"op",mode:ye.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Jr(Ke)}},htmlBuilder:Pi,mathmlBuilder:ga});var Lt={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Qt({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(ae){var de=ae.parser,ye=ae.funcName;return{type:"op",mode:de.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:ye}},htmlBuilder:Pi,mathmlBuilder:ga}),Qt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ae){var de=ae.parser,ye=ae.funcName;return{type:"op",mode:de.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:ye}},htmlBuilder:Pi,mathmlBuilder:ga}),Qt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ae){var de=ae.parser,ye=ae.funcName,Ke=ye;return Ke.length===1&&(Ke=Lt[Ke]),{type:"op",mode:de.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Ke}},htmlBuilder:Pi,mathmlBuilder:ga});var yr=function(ae,de){var ye,Ke,ct=!1,Bt,Ir=nn(ae,"supsub");Ir?(ye=Ir.sup,Ke=Ir.sub,Bt=vn(Ir.base,"operatorname"),ct=!0):Bt=vn(ae,"operatorname");var Br;if(Bt.body.length>0){for(var un=Bt.body.map(function(Ai){var Di=Ai.text;return typeof Di=="string"?{type:"textord",mode:Ai.mode,text:Di}:Ai}),zn=ln(un,de.withFont("mathrm"),!0),Rn=0;Rn<zn.length;Rn++){var Fn=zn[Rn];Fn instanceof Pe&&(Fn.text=Fn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Br=or.makeSpan(["mop"],zn,de)}else Br=or.makeSpan(["mop"],[],de);return ct?li(Br,ye,Ke,de,de.style,0,0):Br},xt=function(ae,de){for(var ye=ta(ae.body,de.withFont("mathrm")),Ke=!0,ct=0;ct<ye.length;ct++){var Bt=ye[ct];if(!(Bt instanceof bi.SpaceNode))if(Bt instanceof bi.MathNode)switch(Bt.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Ir=Bt.children[0];Bt.children.length===1&&Ir instanceof bi.TextNode?Ir.text=Ir.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Ke=!1;break}default:Ke=!1}else Ke=!1}if(Ke){var Br=ye.map(function(Rn){return Rn.toText()}).join("");ye=[new bi.TextNode(Br)]}var un=new bi.MathNode("mi",ye);un.setAttribute("mathvariant","normal");var zn=new bi.MathNode("mo",[xn("\u2061","text")]);return ae.parentIsSupSub?new bi.MathNode("mo",[un,zn]):bi.newDocumentFragment([un,zn])};Qt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0];return{type:"operatorname",mode:ye.mode,body:Jr(ct),alwaysHandleSupSub:Ke==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:yr,mathmlBuilder:xt}),xr({type:"ordgroup",htmlBuilder:function(ae,de){return ae.semisimple?or.makeFragment(ln(ae.body,de,!1)):or.makeSpan(["mord"],ln(ae.body,de,!0),de)},mathmlBuilder:function(ae,de){return ma(ae.body,de,!0)}}),Qt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ae,de){var ye=ae.parser,Ke=de[0];return{type:"overline",mode:ye.mode,body:Ke}},htmlBuilder:function(ae,de){var ye=Ei(ae.body,de.havingCrampedStyle()),Ke=or.makeLineSpan("overline-line",de),ct=de.fontMetrics().defaultRuleThickness,Bt=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ye},{type:"kern",size:3*ct},{type:"elem",elem:Ke},{type:"kern",size:ct}]},de);return or.makeSpan(["mord","overline"],[Bt],de)},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);ye.setAttribute("stretchy","true");var Ke=new bi.MathNode("mover",[Qi(ae.body,de),ye]);return Ke.setAttribute("accent","true"),Ke}}),Qt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=de[0];return{type:"phantom",mode:ye.mode,body:Jr(Ke)}},htmlBuilder:function(ae,de){var ye=ln(ae.body,de.withPhantom(),!1);return or.makeFragment(ye)},mathmlBuilder:function(ae,de){var ye=ta(ae.body,de);return new bi.MathNode("mphantom",ye)}}),Qt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=de[0];return{type:"hphantom",mode:ye.mode,body:Ke}},htmlBuilder:function(ae,de){var ye=or.makeSpan([],[Ei(ae.body,de.withPhantom())]);if(ye.height=0,ye.depth=0,ye.children)for(var Ke=0;Ke<ye.children.length;Ke++)ye.children[Ke].height=0,ye.children[Ke].depth=0;return ye=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ye}]},de),or.makeSpan(["mord"],[ye],de)},mathmlBuilder:function(ae,de){var ye=ta(Jr(ae.body),de),Ke=new bi.MathNode("mphantom",ye),ct=new bi.MathNode("mpadded",[Ke]);return ct.setAttribute("height","0px"),ct.setAttribute("depth","0px"),ct}}),Qt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=de[0];return{type:"vphantom",mode:ye.mode,body:Ke}},htmlBuilder:function(ae,de){var ye=or.makeSpan(["inner"],[Ei(ae.body,de.withPhantom())]),Ke=or.makeSpan(["fix"],[]);return or.makeSpan(["mord","rlap"],[ye,Ke],de)},mathmlBuilder:function(ae,de){var ye=ta(Jr(ae.body),de),Ke=new bi.MathNode("mphantom",ye),ct=new bi.MathNode("mpadded",[Ke]);return ct.setAttribute("width","0px"),ct}}),Qt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=vn(de[0],"size").value,ct=de[1];return{type:"raisebox",mode:ye.mode,dy:Ke,body:ct}},htmlBuilder:function(ae,de){var ye=Ei(ae.body,de),Ke=sr(ae.dy,de);return or.makeVList({positionType:"shift",positionData:-Ke,children:[{type:"elem",elem:ye}]},de)},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mpadded",[Qi(ae.body,de)]),Ke=ae.dy.number+ae.dy.unit;return ye.setAttribute("voffset",Ke),ye}}),Qt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ae,de,ye){var Ke=ae.parser,ct=ye[0],Bt=vn(de[0],"size"),Ir=vn(de[1],"size");return{type:"rule",mode:Ke.mode,shift:ct&&vn(ct,"size").value,width:Bt.value,height:Ir.value}},htmlBuilder:function(ae,de){var ye=or.makeSpan(["mord","rule"],[],de),Ke=sr(ae.width,de),ct=sr(ae.height,de),Bt=ae.shift?sr(ae.shift,de):0;return ye.style.borderRightWidth=Ke+"em",ye.style.borderTopWidth=ct+"em",ye.style.bottom=Bt+"em",ye.width=Ke,ye.height=ct+Bt,ye.depth=-Bt,ye.maxFontSize=ct*1.125*de.sizeMultiplier,ye},mathmlBuilder:function(ae,de){var ye=sr(ae.width,de),Ke=sr(ae.height,de),ct=ae.shift?sr(ae.shift,de):0,Bt=de.color&&de.getColor()||"black",Ir=new bi.MathNode("mspace");Ir.setAttribute("mathbackground",Bt),Ir.setAttribute("width",ye+"em"),Ir.setAttribute("height",Ke+"em");var Br=new bi.MathNode("mpadded",[Ir]);return ct>=0?Br.setAttribute("height","+"+ct+"em"):(Br.setAttribute("height",ct+"em"),Br.setAttribute("depth","+"+-ct+"em")),Br.setAttribute("voffset",ct+"em"),Br}});function Ut(ot,ae,de){for(var ye=ln(ot,ae,!1),Ke=ae.sizeMultiplier/de.sizeMultiplier,ct=0;ct<ye.length;ct++){var Bt=ye[ct].classes.indexOf("sizing");Bt<0?Array.prototype.push.apply(ye[ct].classes,ae.sizingClasses(de)):ye[ct].classes[Bt+1]==="reset-size"+ae.size&&(ye[ct].classes[Bt+1]="reset-size"+de.size),ye[ct].height*=Ke,ye[ct].depth*=Ke}return or.makeFragment(ye)}var ur=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ct=function(ae,de){var ye=de.havingSize(ae.size);return Ut(ae.body,ye,de)};Qt({type:"sizing",names:ur,props:{numArgs:0,allowedInText:!0},handler:function(ae,de){var ye=ae.breakOnTokenText,Ke=ae.funcName,ct=ae.parser,Bt=ct.parseExpression(!1,ye);return{type:"sizing",mode:ct.mode,size:ur.indexOf(Ke)+1,body:Bt}},htmlBuilder:Ct,mathmlBuilder:function(ae,de){var ye=de.havingSize(ae.size),Ke=ta(ae.body,ye),ct=new bi.MathNode("mstyle",Ke);return ct.setAttribute("mathsize",ye.sizeMultiplier+"em"),ct}}),Qt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ae,de,ye){var Ke=ae.parser,ct=!1,Bt=!1,Ir=ye[0]&&vn(ye[0],"ordgroup");if(Ir)for(var Br="",un=0;un<Ir.body.length;++un){var zn=Ir.body[un];if(Br=zn.text,Br==="t")ct=!0;else if(Br==="b")Bt=!0;else{ct=!1,Bt=!1;break}}else ct=!0,Bt=!0;var Rn=de[0];return{type:"smash",mode:Ke.mode,body:Rn,smashHeight:ct,smashDepth:Bt}},htmlBuilder:function(ae,de){var ye=or.makeSpan([],[Ei(ae.body,de)]);if(!ae.smashHeight&&!ae.smashDepth)return ye;if(ae.smashHeight&&(ye.height=0,ye.children))for(var Ke=0;Ke<ye.children.length;Ke++)ye.children[Ke].height=0;if(ae.smashDepth&&(ye.depth=0,ye.children))for(var ct=0;ct<ye.children.length;ct++)ye.children[ct].depth=0;var Bt=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ye}]},de);return or.makeSpan(["mord"],[Bt],de)},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mpadded",[Qi(ae.body,de)]);return ae.smashHeight&&ye.setAttribute("height","0px"),ae.smashDepth&&ye.setAttribute("depth","0px"),ye}}),Qt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ae,de,ye){var Ke=ae.parser,ct=ye[0],Bt=de[0];return{type:"sqrt",mode:Ke.mode,body:Bt,index:ct}},htmlBuilder:function(ae,de){var ye=Ei(ae.body,de.havingCrampedStyle());ye.height===0&&(ye.height=de.fontMetrics().xHeight),ye=or.wrapFragment(ye,de);var Ke=de.fontMetrics(),ct=Ke.defaultRuleThickness,Bt=ct;de.style.id<K.TEXT.id&&(Bt=de.fontMetrics().xHeight);var Ir=ct+Bt/4,Br=ye.height+ye.depth+Ir+ct,un=Dr.sqrtImage(Br,de),zn=un.span,Rn=un.ruleWidth,Fn=un.advanceWidth,Ai=zn.height-Rn;Ai>ye.height+ye.depth+Ir&&(Ir=(Ir+Ai-ye.height-ye.depth)/2);var Di=zn.height-ye.height-Ir-Rn;ye.style.paddingLeft=Fn+"em";var ya=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ye,wrapperClasses:["svg-align"]},{type:"kern",size:-(ye.height+Di)},{type:"elem",elem:zn},{type:"kern",size:Rn}]},de);if(ae.index){var Ua=de.havingStyle(K.SCRIPTSCRIPT),to=Ei(ae.index,Ua,de),go=.6*(ya.height-ya.depth),wo=or.makeVList({positionType:"shift",positionData:-go,children:[{type:"elem",elem:to}]},de),qo=or.makeSpan(["root"],[wo]);return or.makeSpan(["mord","sqrt"],[qo,ya],de)}else return or.makeSpan(["mord","sqrt"],[ya],de)},mathmlBuilder:function(ae,de){var ye=ae.body,Ke=ae.index;return Ke?new bi.MathNode("mroot",[Qi(ye,de),Qi(Ke,de)]):new bi.MathNode("msqrt",[Qi(ye,de)])}});var dr={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};Qt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ae,de){var ye=ae.breakOnTokenText,Ke=ae.funcName,ct=ae.parser,Bt=ct.parseExpression(!0,ye),Ir=Ke.slice(1,Ke.length-5);return{type:"styling",mode:ct.mode,style:Ir,body:Bt}},htmlBuilder:function(ae,de){var ye=dr[ae.style],Ke=de.havingStyle(ye).withFont("");return Ut(ae.body,Ke,de)},mathmlBuilder:function(ae,de){var ye=dr[ae.style],Ke=de.havingStyle(ye),ct=ta(ae.body,Ke),Bt=new bi.MathNode("mstyle",ct),Ir={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Br=Ir[ae.style];return Bt.setAttribute("scriptlevel",Br[0]),Bt.setAttribute("displaystyle",Br[1]),Bt}});var nr=function(ae,de){var ye=ae.base;if(ye)if(ye.type==="op"){var Ke=ye.limits&&(de.style.size===K.DISPLAY.size||ye.alwaysHandleSupSub);return Ke?Pi:null}else if(ye.type==="operatorname"){var ct=ye.alwaysHandleSupSub&&(de.style.size===K.DISPLAY.size||ye.limits);return ct?yr:null}else{if(ye.type==="accent")return p.isCharacterBox(ye.base)?pi:null;if(ye.type==="horizBrace"){var Bt=!ae.sub;return Bt===ye.isOver?Gn:null}else return null}else return null};xr({type:"supsub",htmlBuilder:function(ae,de){var ye=nr(ae,de);if(ye)return ye(ae,de);var Ke=ae.base,ct=ae.sup,Bt=ae.sub,Ir=Ei(Ke,de),Br,un,zn=de.fontMetrics(),Rn=0,Fn=0,Ai=Ke&&p.isCharacterBox(Ke);if(ct){var Di=de.havingStyle(de.style.sup());Br=Ei(ct,Di,de),Ai||(Rn=Ir.height-Di.fontMetrics().supDrop*Di.sizeMultiplier/de.sizeMultiplier)}if(Bt){var ya=de.havingStyle(de.style.sub());un=Ei(Bt,ya,de),Ai||(Fn=Ir.depth+ya.fontMetrics().subDrop*ya.sizeMultiplier/de.sizeMultiplier)}var Ua;de.style===K.DISPLAY?Ua=zn.sup1:de.style.cramped?Ua=zn.sup3:Ua=zn.sup2;var to=de.sizeMultiplier,go=.5/zn.ptPerEm/to+"em",wo=null;if(un){var qo=ae.base&&ae.base.type==="op"&&ae.base.name&&(ae.base.name==="\\oiint"||ae.base.name==="\\oiiint");(Ir instanceof Pe||qo)&&(wo=-Ir.italic+"em")}var Mo;if(Br&&un){Rn=Math.max(Rn,Ua,Br.depth+.25*zn.xHeight),Fn=Math.max(Fn,zn.sub2);var $i=zn.defaultRuleThickness,To=4*$i;if(Rn-Br.depth-(un.height-Fn)<To){Fn=To-(Rn-Br.depth)+un.height;var fo=.8*zn.xHeight-(Rn-Br.depth);fo>0&&(Rn+=fo,Fn-=fo)}var ts=[{type:"elem",elem:un,shift:Fn,marginRight:go,marginLeft:wo},{type:"elem",elem:Br,shift:-Rn,marginRight:go}];Mo=or.makeVList({positionType:"individualShift",children:ts},de)}else if(un){Fn=Math.max(Fn,zn.sub1,un.height-.8*zn.xHeight);var Jo=[{type:"elem",elem:un,marginLeft:wo,marginRight:go}];Mo=or.makeVList({positionType:"shift",positionData:Fn,children:Jo},de)}else if(Br)Rn=Math.max(Rn,Ua,Br.depth+.25*zn.xHeight),Mo=or.makeVList({positionType:"shift",positionData:-Rn,children:[{type:"elem",elem:Br,marginRight:go}]},de);else throw new Error("supsub must have either sup or sub.");var zo=Zn(Ir,"right")||"mord";return or.makeSpan([zo],[Ir,or.makeSpan(["msupsub"],[Mo])],de)},mathmlBuilder:function(ae,de){var ye=!1,Ke,ct,Bt=nn(ae.base,"horizBrace");Bt&&(ct=!!ae.sup,ct===Bt.isOver&&(ye=!0,Ke=Bt.isOver)),ae.base&&(ae.base.type==="op"||ae.base.type==="operatorname")&&(ae.base.parentIsSupSub=!0);var Ir=[Qi(ae.base,de)];ae.sub&&Ir.push(Qi(ae.sub,de)),ae.sup&&Ir.push(Qi(ae.sup,de));var Br;if(ye)Br=Ke?"mover":"munder";else if(ae.sub)if(ae.sup){var Rn=ae.base;Rn&&Rn.type==="op"&&Rn.limits&&de.style===K.DISPLAY||Rn&&Rn.type==="operatorname"&&Rn.alwaysHandleSupSub&&(de.style===K.DISPLAY||Rn.limits)?Br="munderover":Br="msubsup"}else{var zn=ae.base;zn&&zn.type==="op"&&zn.limits&&(de.style===K.DISPLAY||zn.alwaysHandleSupSub)||zn&&zn.type==="operatorname"&&zn.alwaysHandleSupSub&&(zn.limits||de.style===K.DISPLAY)?Br="munder":Br="msub"}else{var un=ae.base;un&&un.type==="op"&&un.limits&&(de.style===K.DISPLAY||un.alwaysHandleSupSub)||un&&un.type==="operatorname"&&un.alwaysHandleSupSub&&(un.limits||de.style===K.DISPLAY)?Br="mover":Br="msup"}var Fn=new bi.MathNode(Br,Ir);return Fn}}),xr({type:"atom",htmlBuilder:function(ae,de){return or.mathsym(ae.text,ae.mode,de,["m"+ae.family])},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mo",[xn(ae.text,ae.mode)]);if(ae.family==="bin"){var Ke=va(ae,de);Ke==="bold-italic"&&ye.setAttribute("mathvariant",Ke)}else ae.family==="punct"?ye.setAttribute("separator","true"):(ae.family==="open"||ae.family==="close")&&ye.setAttribute("stretchy","false");return ye}});var Wr={mi:"italic",mn:"normal",mtext:"normal"};xr({type:"mathord",htmlBuilder:function(ae,de){return or.makeOrd(ae,de,"mathord")},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mi",[xn(ae.text,ae.mode,de)]),Ke=va(ae,de)||"italic";return Ke!==Wr[ye.type]&&ye.setAttribute("mathvariant",Ke),ye}}),xr({type:"textord",htmlBuilder:function(ae,de){return or.makeOrd(ae,de,"textord")},mathmlBuilder:function(ae,de){var ye=xn(ae.text,ae.mode,de),Ke=va(ae,de)||"normal",ct;return ae.mode==="text"?ct=new bi.MathNode("mtext",[ye]):/[0-9]/.test(ae.text)?ct=new bi.MathNode("mn",[ye]):ae.text==="\\prime"?ct=new bi.MathNode("mo",[ye]):ct=new bi.MathNode("mi",[ye]),Ke!==Wr[ct.type]&&ct.setAttribute("mathvariant",Ke),ct}});var En={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Cn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};xr({type:"spacing",htmlBuilder:function(ae,de){if(Cn.hasOwnProperty(ae.text)){var ye=Cn[ae.text].className||"";if(ae.mode==="text"){var Ke=or.makeOrd(ae,de,"textord");return Ke.classes.push(ye),Ke}else return or.makeSpan(["mspace",ye],[or.mathsym(ae.text,ae.mode,de)],de)}else{if(En.hasOwnProperty(ae.text))return or.makeSpan(["mspace",En[ae.text]],[],de);throw new c('Unknown type of space "'+ae.text+'"')}},mathmlBuilder:function(ae,de){var ye;if(Cn.hasOwnProperty(ae.text))ye=new bi.MathNode("mtext",[new bi.TextNode("\xA0")]);else{if(En.hasOwnProperty(ae.text))return new bi.MathNode("mspace");throw new c('Unknown type of space "'+ae.text+'"')}return ye}});var Nn=function(){var ae=new bi.MathNode("mtd",[]);return ae.setAttribute("width","50%"),ae};xr({type:"tag",mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mtable",[new bi.MathNode("mtr",[Nn(),new bi.MathNode("mtd",[ma(ae.body,de)]),Nn(),new bi.MathNode("mtd",[ma(ae.tag,de)])])]);return ye.setAttribute("width","100%"),ye}});var oi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Qn={"\\textbf":"textbf","\\textmd":"textmd"},Vi={"\\textit":"textit","\\textup":"textup"},wi=function(ae,de){var ye=ae.font;return ye?oi[ye]?de.withTextFontFamily(oi[ye]):Qn[ye]?de.withTextFontWeight(Qn[ye]):de.withTextFontShape(Vi[ye]):de};Qt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ae,de){var ye=ae.parser,Ke=ae.funcName,ct=de[0];return{type:"text",mode:ye.mode,body:Jr(ct),font:Ke}},htmlBuilder:function(ae,de){var ye=wi(ae,de),Ke=ln(ae.body,ye,!0);return or.makeSpan(["mord","text"],or.tryCombineChars(Ke),ye)},mathmlBuilder:function(ae,de){var ye=wi(ae,de);return ma(ae.body,ye)}}),Qt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ae,de){var ye=ae.parser;return{type:"underline",mode:ye.mode,body:de[0]}},htmlBuilder:function(ae,de){var ye=Ei(ae.body,de),Ke=or.makeLineSpan("underline-line",de),ct=de.fontMetrics().defaultRuleThickness,Bt=or.makeVList({positionType:"top",positionData:ye.height,children:[{type:"kern",size:ct},{type:"elem",elem:Ke},{type:"kern",size:3*ct},{type:"elem",elem:ye}]},de);return or.makeSpan(["mord","underline"],[Bt],de)},mathmlBuilder:function(ae,de){var ye=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);ye.setAttribute("stretchy","true");var Ke=new bi.MathNode("munder",[Qi(ae.body,de),ye]);return Ke.setAttribute("accentunder","true"),Ke}}),Qt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ae,de,ye){throw new c("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ae,de){for(var ye=Ea(ae),Ke=[],ct=de.havingStyle(de.style.text()),Bt=0;Bt<ye.length;Bt++){var Ir=ye[Bt];Ir==="~"&&(Ir="\\textasciitilde"),Ke.push(or.makeSymbol(Ir,"Typewriter-Regular",ae.mode,ct,["mord","texttt"]))}return or.makeSpan(["mord","text"].concat(ct.sizingClasses(de)),or.tryCombineChars(Ke),ct)},mathmlBuilder:function(ae,de){var ye=new bi.TextNode(Ea(ae)),Ke=new bi.MathNode("mtext",[ye]);return Ke.setAttribute("mathvariant","monospace"),Ke}});var Ea=function(ae){return ae.body.replace(/ /g,ae.star?"\u2423":"\xA0")},aa=zr,Ca=aa,fa=`[ \r
]`,ha="\\\\[a-zA-Z@]+",qi="\\\\[^\uD800-\uDFFF]",Ma=""+ha+fa+"*",za=new RegExp("^("+ha+")"+fa+"*$"),la="[\u0300-\u036F]",ao=new RegExp(la+"+$"),ka="("+fa+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(la+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(la+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Ma)+("|"+qi+")"),Ba=function(){function ot(de,ye){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=de,this.settings=ye,this.tokenRegex=new RegExp(ka,"g"),this.catcodes={"%":14}}var ae=ot.prototype;return ae.setCatcode=function(ye,Ke){this.catcodes[ye]=Ke},ae.lex=function(){var ye=this.input,Ke=this.tokenRegex.lastIndex;if(Ke===ye.length)return new m("EOF",new w(this,Ke,Ke));var ct=this.tokenRegex.exec(ye);if(ct===null||ct.index!==Ke)throw new c("Unexpected character: '"+ye[Ke]+"'",new m(ye[Ke],new w(this,Ke,Ke+1)));var Bt=ct[2]||" ";if(this.catcodes[Bt]===14){var Ir=ye.indexOf(`
`,this.tokenRegex.lastIndex);return Ir===-1?(this.tokenRegex.lastIndex=ye.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=Ir+1,this.lex()}var Br=Bt.match(za);return Br&&(Bt=Br[1]),new m(Bt,new w(this,Ke,this.tokenRegex.lastIndex))},ot}(),oo=function(){function ot(de,ye){de===void 0&&(de={}),ye===void 0&&(ye={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=ye,this.builtins=de,this.undefStack=[]}var ae=ot.prototype;return ae.beginGroup=function(){this.undefStack.push({})},ae.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 ye=this.undefStack.pop();for(var Ke in ye)ye.hasOwnProperty(Ke)&&(ye[Ke]===void 0?delete this.current[Ke]:this.current[Ke]=ye[Ke])},ae.has=function(ye){return this.current.hasOwnProperty(ye)||this.builtins.hasOwnProperty(ye)},ae.get=function(ye){return this.current.hasOwnProperty(ye)?this.current[ye]:this.builtins[ye]},ae.set=function(ye,Ke,ct){if(ct===void 0&&(ct=!1),ct){for(var Bt=0;Bt<this.undefStack.length;Bt++)delete this.undefStack[Bt][ye];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][ye]=Ke)}else{var Ir=this.undefStack[this.undefStack.length-1];Ir&&!Ir.hasOwnProperty(ye)&&(Ir[ye]=this.current[ye])}this.current[ye]=Ke},ot}(),ja={},Pa=ja;function Fr(ot,ae){ja[ot]=ae}Fr("\\@firstoftwo",function(ot){var ae=ot.consumeArgs(2);return{tokens:ae[0],numArgs:0}}),Fr("\\@secondoftwo",function(ot){var ae=ot.consumeArgs(2);return{tokens:ae[1],numArgs:0}}),Fr("\\@ifnextchar",function(ot){var ae=ot.consumeArgs(3),de=ot.future();return ae[0].length===1&&ae[0][0].text===de.text?{tokens:ae[1],numArgs:0}:{tokens:ae[2],numArgs:0}}),Fr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Fr("\\TextOrMath",function(ot){var ae=ot.consumeArgs(2);return ot.mode==="text"?{tokens:ae[0],numArgs:0}:{tokens:ae[1],numArgs:0}});var Oa={"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};Fr("\\char",function(ot){var ae=ot.popToken(),de,ye="";if(ae.text==="'")de=8,ae=ot.popToken();else if(ae.text==='"')de=16,ae=ot.popToken();else if(ae.text==="`")if(ae=ot.popToken(),ae.text[0]==="\\")ye=ae.text.charCodeAt(1);else{if(ae.text==="EOF")throw new c("\\char` missing argument");ye=ae.text.charCodeAt(0)}else de=10;if(de){if(ye=Oa[ae.text],ye==null||ye>=de)throw new c("Invalid base-"+de+" digit "+ae.text);for(var Ke;(Ke=Oa[ot.future().text])!=null&&Ke<de;)ye*=de,ye+=Ke,ot.popToken()}return"\\@char{"+ye+"}"});var No=function(ae,de){var ye=ae.consumeArgs(1)[0];if(ye.length!==1)throw new c("\\gdef's first argument must be a macro name");var Ke=ye[0].text,ct=0;for(ye=ae.consumeArgs(1)[0];ye.length===1&&ye[0].text==="#";){if(ye=ae.consumeArgs(1)[0],ye.length!==1)throw new c('Invalid argument number length "'+ye.length+'"');if(!/^[1-9]$/.test(ye[0].text))throw new c('Invalid argument number "'+ye[0].text+'"');if(ct++,parseInt(ye[0].text)!==ct)throw new c('Argument number "'+ye[0].text+'" out of order');ye=ae.consumeArgs(1)[0]}return ae.macros.set(Ke,{tokens:ye,numArgs:ct},de),""};Fr("\\gdef",function(ot){return No(ot,!0)}),Fr("\\def",function(ot){return No(ot,!1)}),Fr("\\global",function(ot){var ae=ot.consumeArgs(1)[0];if(ae.length!==1)throw new c("Invalid command after \\global");var de=ae[0].text;if(de==="\\def")return No(ot,!0);throw new c("Invalid command '"+de+"' after \\global")});var Po=function(ae,de,ye){var Ke=ae.consumeArgs(1)[0];if(Ke.length!==1)throw new c("\\newcommand's first argument must be a macro name");var ct=Ke[0].text,Bt=ae.isDefined(ct);if(Bt&&!de)throw new c("\\newcommand{"+ct+"} attempting to redefine "+(ct+"; use \\renewcommand"));if(!Bt&&!ye)throw new c("\\renewcommand{"+ct+"} when command "+ct+" does not yet exist; use \\newcommand");var Ir=0;if(Ke=ae.consumeArgs(1)[0],Ke.length===1&&Ke[0].text==="["){for(var Br="",un=ae.expandNextToken();un.text!=="]"&&un.text!=="EOF";)Br+=un.text,un=ae.expandNextToken();if(!Br.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+Br);Ir=parseInt(Br),Ke=ae.consumeArgs(1)[0]}return ae.macros.set(ct,{tokens:Ke,numArgs:Ir}),""};Fr("\\newcommand",function(ot){return Po(ot,!1,!0)}),Fr("\\renewcommand",function(ot){return Po(ot,!0,!1)}),Fr("\\providecommand",function(ot){return Po(ot,!0,!0)}),Fr("\\bgroup","{"),Fr("\\egroup","}"),Fr("\\lq","`"),Fr("\\rq","'"),Fr("\\aa","\\r a"),Fr("\\AA","\\r A"),Fr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Fr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Fr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Fr("\u212C","\\mathscr{B}"),Fr("\u2130","\\mathscr{E}"),Fr("\u2131","\\mathscr{F}"),Fr("\u210B","\\mathscr{H}"),Fr("\u2110","\\mathscr{I}"),Fr("\u2112","\\mathscr{L}"),Fr("\u2133","\\mathscr{M}"),Fr("\u211B","\\mathscr{R}"),Fr("\u212D","\\mathfrak{C}"),Fr("\u210C","\\mathfrak{H}"),Fr("\u2128","\\mathfrak{Z}"),Fr("\\Bbbk","\\Bbb{k}"),Fr("\xB7","\\cdotp"),Fr("\\llap","\\mathllap{\\textrm{#1}}"),Fr("\\rlap","\\mathrlap{\\textrm{#1}}"),Fr("\\clap","\\mathclap{\\textrm{#1}}"),Fr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Fr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Fr("\\ne","\\neq"),Fr("\u2260","\\neq"),Fr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Fr("\u2209","\\notin"),Fr("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Fr("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Fr("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Fr("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Fr("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Fr("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Fr("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Fr("\u27C2","\\perp"),Fr("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Fr("\u220C","\\notni"),Fr("\u231C","\\ulcorner"),Fr("\u231D","\\urcorner"),Fr("\u231E","\\llcorner"),Fr("\u231F","\\lrcorner"),Fr("\xA9","\\copyright"),Fr("\xAE","\\textregistered"),Fr("\uFE0F","\\textregistered"),Fr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Fr("\u22EE","\\vdots"),Fr("\\varGamma","\\mathit{\\Gamma}"),Fr("\\varDelta","\\mathit{\\Delta}"),Fr("\\varTheta","\\mathit{\\Theta}"),Fr("\\varLambda","\\mathit{\\Lambda}"),Fr("\\varXi","\\mathit{\\Xi}"),Fr("\\varPi","\\mathit{\\Pi}"),Fr("\\varSigma","\\mathit{\\Sigma}"),Fr("\\varUpsilon","\\mathit{\\Upsilon}"),Fr("\\varPhi","\\mathit{\\Phi}"),Fr("\\varPsi","\\mathit{\\Psi}"),Fr("\\varOmega","\\mathit{\\Omega}"),Fr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Fr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Fr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Fr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Fr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Fr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Qo={",":"\\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"};Fr("\\dots",function(ot){var ae="\\dotso",de=ot.expandAfterFuture().text;return de in Qo?ae=Qo[de]:de.substr(0,4)==="\\not"?ae="\\dotsb":de in Be.math&&(p.contains(["bin","rel"],Be.math[de].group)&&(ae="\\dotsb")),ae});var ss={")":!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};Fr("\\dotso",function(ot){var ae=ot.future().text;return ae in ss?"\\ldots\\,":"\\ldots"}),Fr("\\dotsc",function(ot){var ae=ot.future().text;return ae in ss&&ae!==","?"\\ldots\\,":"\\ldots"}),Fr("\\cdots",function(ot){var ae=ot.future().text;return ae in ss?"\\@cdots\\,":"\\@cdots"}),Fr("\\dotsb","\\cdots"),Fr("\\dotsm","\\cdots"),Fr("\\dotsi","\\!\\cdots"),Fr("\\dotsx","\\ldots\\,"),Fr("\\DOTSI","\\relax"),Fr("\\DOTSB","\\relax"),Fr("\\DOTSX","\\relax"),Fr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Fr("\\,","\\tmspace+{3mu}{.1667em}"),Fr("\\thinspace","\\,"),Fr("\\>","\\mskip{4mu}"),Fr("\\:","\\tmspace+{4mu}{.2222em}"),Fr("\\medspace","\\:"),Fr("\\;","\\tmspace+{5mu}{.2777em}"),Fr("\\thickspace","\\;"),Fr("\\!","\\tmspace-{3mu}{.1667em}"),Fr("\\negthinspace","\\!"),Fr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Fr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Fr("\\enspace","\\kern.5em "),Fr("\\enskip","\\hskip.5em\\relax"),Fr("\\quad","\\hskip1em\\relax"),Fr("\\qquad","\\hskip2em\\relax"),Fr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Fr("\\tag@paren","\\tag@literal{({#1})}"),Fr("\\tag@literal",function(ot){if(ot.macros.get("\\df@tag"))throw new c("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Fr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Fr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Fr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Fr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Fr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Fr("\\\\","\\newline"),Fr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var rs=gt["Main-Regular"]["T".charCodeAt(0)][1]-.7*gt["Main-Regular"]["A".charCodeAt(0)][1]+"em";Fr("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+rs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Fr("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+rs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Fr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Fr("\\@hspace","\\hskip #1\\relax"),Fr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Fr("\\ordinarycolon",":"),Fr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Fr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Fr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Fr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Fr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Fr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Fr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Fr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Fr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Fr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Fr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Fr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Fr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Fr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Fr("\u2237","\\dblcolon"),Fr("\u2239","\\eqcolon"),Fr("\u2254","\\coloneqq"),Fr("\u2255","\\eqqcolon"),Fr("\u2A74","\\Coloneqq"),Fr("\\ratio","\\vcentcolon"),Fr("\\coloncolon","\\dblcolon"),Fr("\\colonequals","\\coloneqq"),Fr("\\coloncolonequals","\\Coloneqq"),Fr("\\equalscolon","\\eqqcolon"),Fr("\\equalscoloncolon","\\Eqqcolon"),Fr("\\colonminus","\\coloneq"),Fr("\\coloncolonminus","\\Coloneq"),Fr("\\minuscolon","\\eqcolon"),Fr("\\minuscoloncolon","\\Eqcolon"),Fr("\\coloncolonapprox","\\Colonapprox"),Fr("\\coloncolonsim","\\Colonsim"),Fr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Fr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Fr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Fr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Fr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Fr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Fr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Fr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Fr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Fr("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Fr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Fr("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Fr("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Fr("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Fr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Fr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Fr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Fr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Fr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Fr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Fr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Fr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Fr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Fr("\u27E6","\\llbracket"),Fr("\u27E7","\\rrbracket"),Fr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Fr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Fr("\u2983","\\lBrace"),Fr("\u2984","\\rBrace"),Fr("\\darr","\\downarrow"),Fr("\\dArr","\\Downarrow"),Fr("\\Darr","\\Downarrow"),Fr("\\lang","\\langle"),Fr("\\rang","\\rangle"),Fr("\\uarr","\\uparrow"),Fr("\\uArr","\\Uparrow"),Fr("\\Uarr","\\Uparrow"),Fr("\\N","\\mathbb{N}"),Fr("\\R","\\mathbb{R}"),Fr("\\Z","\\mathbb{Z}"),Fr("\\alef","\\aleph"),Fr("\\alefsym","\\aleph"),Fr("\\Alpha","\\mathrm{A}"),Fr("\\Beta","\\mathrm{B}"),Fr("\\bull","\\bullet"),Fr("\\Chi","\\mathrm{X}"),Fr("\\clubs","\\clubsuit"),Fr("\\cnums","\\mathbb{C}"),Fr("\\Complex","\\mathbb{C}"),Fr("\\Dagger","\\ddagger"),Fr("\\diamonds","\\diamondsuit"),Fr("\\empty","\\emptyset"),Fr("\\Epsilon","\\mathrm{E}"),Fr("\\Eta","\\mathrm{H}"),Fr("\\exist","\\exists"),Fr("\\harr","\\leftrightarrow"),Fr("\\hArr","\\Leftrightarrow"),Fr("\\Harr","\\Leftrightarrow"),Fr("\\hearts","\\heartsuit"),Fr("\\image","\\Im"),Fr("\\infin","\\infty"),Fr("\\Iota","\\mathrm{I}"),Fr("\\isin","\\in"),Fr("\\Kappa","\\mathrm{K}"),Fr("\\larr","\\leftarrow"),Fr("\\lArr","\\Leftarrow"),Fr("\\Larr","\\Leftarrow"),Fr("\\lrarr","\\leftrightarrow"),Fr("\\lrArr","\\Leftrightarrow"),Fr("\\Lrarr","\\Leftrightarrow"),Fr("\\Mu","\\mathrm{M}"),Fr("\\natnums","\\mathbb{N}"),Fr("\\Nu","\\mathrm{N}"),Fr("\\Omicron","\\mathrm{O}"),Fr("\\plusmn","\\pm"),Fr("\\rarr","\\rightarrow"),Fr("\\rArr","\\Rightarrow"),Fr("\\Rarr","\\Rightarrow"),Fr("\\real","\\Re"),Fr("\\reals","\\mathbb{R}"),Fr("\\Reals","\\mathbb{R}"),Fr("\\Rho","\\mathrm{P}"),Fr("\\sdot","\\cdot"),Fr("\\sect","\\S"),Fr("\\spades","\\spadesuit"),Fr("\\sub","\\subset"),Fr("\\sube","\\subseteq"),Fr("\\supe","\\supseteq"),Fr("\\Tau","\\mathrm{T}"),Fr("\\thetasym","\\vartheta"),Fr("\\weierp","\\wp"),Fr("\\Zeta","\\mathrm{Z}"),Fr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Fr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Fr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Fr("\\blue","\\textcolor{##6495ed}{#1}"),Fr("\\orange","\\textcolor{##ffa500}{#1}"),Fr("\\pink","\\textcolor{##ff00af}{#1}"),Fr("\\red","\\textcolor{##df0030}{#1}"),Fr("\\green","\\textcolor{##28ae7b}{#1}"),Fr("\\gray","\\textcolor{gray}{#1}"),Fr("\\purple","\\textcolor{##9d38bd}{#1}"),Fr("\\blueA","\\textcolor{##ccfaff}{#1}"),Fr("\\blueB","\\textcolor{##80f6ff}{#1}"),Fr("\\blueC","\\textcolor{##63d9ea}{#1}"),Fr("\\blueD","\\textcolor{##11accd}{#1}"),Fr("\\blueE","\\textcolor{##0c7f99}{#1}"),Fr("\\tealA","\\textcolor{##94fff5}{#1}"),Fr("\\tealB","\\textcolor{##26edd5}{#1}"),Fr("\\tealC","\\textcolor{##01d1c1}{#1}"),Fr("\\tealD","\\textcolor{##01a995}{#1}"),Fr("\\tealE","\\textcolor{##208170}{#1}"),Fr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Fr("\\greenB","\\textcolor{##8af281}{#1}"),Fr("\\greenC","\\textcolor{##74cf70}{#1}"),Fr("\\greenD","\\textcolor{##1fab54}{#1}"),Fr("\\greenE","\\textcolor{##0d923f}{#1}"),Fr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Fr("\\goldB","\\textcolor{##ffbb71}{#1}"),Fr("\\goldC","\\textcolor{##ff9c39}{#1}"),Fr("\\goldD","\\textcolor{##e07d10}{#1}"),Fr("\\goldE","\\textcolor{##a75a05}{#1}"),Fr("\\redA","\\textcolor{##fca9a9}{#1}"),Fr("\\redB","\\textcolor{##ff8482}{#1}"),Fr("\\redC","\\textcolor{##f9685d}{#1}"),Fr("\\redD","\\textcolor{##e84d39}{#1}"),Fr("\\redE","\\textcolor{##bc2612}{#1}"),Fr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Fr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Fr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Fr("\\maroonD","\\textcolor{##ca337c}{#1}"),Fr("\\maroonE","\\textcolor{##9e034e}{#1}"),Fr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Fr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Fr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Fr("\\purpleD","\\textcolor{##7854ab}{#1}"),Fr("\\purpleE","\\textcolor{##543b78}{#1}"),Fr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Fr("\\mintB","\\textcolor{##edf2df}{#1}"),Fr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Fr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Fr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Fr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Fr("\\grayD","\\textcolor{##d6d8da}{#1}"),Fr("\\grayE","\\textcolor{##babec2}{#1}"),Fr("\\grayF","\\textcolor{##888d93}{#1}"),Fr("\\grayG","\\textcolor{##626569}{#1}"),Fr("\\grayH","\\textcolor{##3b3e40}{#1}"),Fr("\\grayI","\\textcolor{##21242c}{#1}"),Fr("\\kaBlue","\\textcolor{##314453}{#1}"),Fr("\\kaGreen","\\textcolor{##71B307}{#1}");var Ko={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},$o=function(){function ot(de,ye,Ke){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=ye,this.expansionCount=0,this.feed(de),this.macros=new oo(Pa,ye.macros),this.mode=Ke,this.stack=[]}var ae=ot.prototype;return ae.feed=function(ye){this.lexer=new Ba(ye,this.settings)},ae.switchMode=function(ye){this.mode=ye},ae.beginGroup=function(){this.macros.beginGroup()},ae.endGroup=function(){this.macros.endGroup()},ae.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ae.popToken=function(){return this.future(),this.stack.pop()},ae.pushToken=function(ye){this.stack.push(ye)},ae.pushTokens=function(ye){var Ke;(Ke=this.stack).push.apply(Ke,ye)},ae.consumeSpaces=function(){for(;;){var ye=this.future();if(ye.text===" ")this.stack.pop();else break}},ae.consumeArgs=function(ye){for(var Ke=[],ct=0;ct<ye;++ct){this.consumeSpaces();var Bt=this.popToken();if(Bt.text==="{"){for(var Ir=[],Br=1;Br!==0;){var un=this.popToken();if(Ir.push(un),un.text==="{")++Br;else if(un.text==="}")--Br;else if(un.text==="EOF")throw new c("End of input in macro argument",Bt)}Ir.pop(),Ir.reverse(),Ke[ct]=Ir}else{if(Bt.text==="EOF")throw new c("End of input expecting macro argument");Ke[ct]=[Bt]}}return Ke},ae.expandOnce=function(){var ye=this.popToken(),Ke=ye.text,ct=this._getExpansion(Ke);if(ct==null)return this.pushToken(ye),ye;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new c("Too many expansions: infinite loop or need to increase maxExpand setting");var Bt=ct.tokens;if(ct.numArgs){var Ir=this.consumeArgs(ct.numArgs);Bt=Bt.slice();for(var Br=Bt.length-1;Br>=0;--Br){var un=Bt[Br];if(un.text==="#"){if(Br===0)throw new c("Incomplete placeholder at end of macro body",un);if(un=Bt[--Br],un.text==="#")Bt.splice(Br+1,1);else if(/^[1-9]$/.test(un.text)){var zn;(zn=Bt).splice.apply(zn,[Br,2].concat(Ir[+un.text-1]))}else throw new c("Not a valid argument number",un)}}}return this.pushTokens(Bt),Bt},ae.expandAfterFuture=function(){return this.expandOnce(),this.future()},ae.expandNextToken=function(){for(;;){var ye=this.expandOnce();if(ye instanceof m)if(ye.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ae.expandMacro=function(ye){if(!this.macros.get(ye))return;var Ke=[],ct=this.stack.length;for(this.pushToken(new m(ye));this.stack.length>ct;){var Bt=this.expandOnce();Bt instanceof m&&Ke.push(this.stack.pop())}return Ke},ae.expandMacroAsText=function(ye){var Ke=this.expandMacro(ye);return Ke&&Ke.map(function(ct){return ct.text}).join("")},ae._getExpansion=function(ye){var Ke=this.macros.get(ye);if(Ke==null)return Ke;var ct=typeof Ke=="function"?Ke(this):Ke;if(typeof ct=="string"){var Bt=0;if(ct.indexOf("#")!==-1)for(var Ir=ct.replace(/##/g,"");Ir.indexOf("#"+(Bt+1))!==-1;)++Bt;for(var Br=new Ba(ct,this.settings),un=[],zn=Br.lex();zn.text!=="EOF";)un.push(zn),zn=Br.lex();un.reverse();var Rn={tokens:un,numArgs:Bt};return Rn}return ct},ae.isDefined=function(ye){return this.macros.has(ye)||Ca.hasOwnProperty(ye)||Be.math.hasOwnProperty(ye)||Be.text.hasOwnProperty(ye)||Ko.hasOwnProperty(ye)},ot}(),Uo={"\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"}},Wo={\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"},Go=function(){function ot(de,ye){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 $o(de,ye,this.mode),this.settings=ye,this.leftrightDepth=0}var ae=ot.prototype;return ae.expect=function(ye,Ke){if(Ke===void 0&&(Ke=!0),this.fetch().text!==ye)throw new c("Expected '"+ye+"', got '"+this.fetch().text+"'",this.fetch());Ke&&this.consume()},ae.consume=function(){this.nextToken=null},ae.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ae.switchMode=function(ye){this.mode=ye,this.gullet.switchMode(ye)},ae.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var ye=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),ye},ae.parseExpression=function(ye,Ke){for(var ct=[];;){this.mode==="math"&&this.consumeSpaces();var Bt=this.fetch();if(ot.endOfExpression.indexOf(Bt.text)!==-1)break;if(Ke&&Bt.text===Ke)break;if(ye&&Ca[Bt.text]&&Ca[Bt.text].infix)break;var Ir=this.parseAtom(Ke);if(!Ir)break;ct.push(Ir)}return this.mode==="text"&&this.formLigatures(ct),this.handleInfixNodes(ct)},ae.handleInfixNodes=function(ye){for(var Ke=-1,ct,Bt=0;Bt<ye.length;Bt++){var Ir=nn(ye[Bt],"infix");if(Ir){if(Ke!==-1)throw new c("only one infix operator per group",Ir.token);Ke=Bt,ct=Ir.replaceWith}}if(Ke!==-1&&ct){var Br,un,zn=ye.slice(0,Ke),Rn=ye.slice(Ke+1);zn.length===1&&zn[0].type==="ordgroup"?Br=zn[0]:Br={type:"ordgroup",mode:this.mode,body:zn},Rn.length===1&&Rn[0].type==="ordgroup"?un=Rn[0]:un={type:"ordgroup",mode:this.mode,body:Rn};var Fn;return ct==="\\\\abovefrac"?Fn=this.callFunction(ct,[Br,ye[Ke],un],[]):Fn=this.callFunction(ct,[Br,un],[]),[Fn]}else return ye},ae.handleSupSubscript=function(ye){var Ke=this.fetch(),ct=Ke.text;this.consume();var Bt=this.parseGroup(ye,!1,ot.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Bt)throw new c("Expected group after '"+ct+"'",Ke);return Bt},ae.formatUnsupportedCmd=function(ye){for(var Ke=[],ct=0;ct<ye.length;ct++)Ke.push({type:"textord",mode:"text",text:ye[ct]});var Bt={type:"text",mode:this.mode,body:Ke},Ir={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Bt]};return Ir},ae.parseAtom=function(ye){var Ke=this.parseGroup("atom",!1,null,ye);if(this.mode==="text")return Ke;for(var ct,Bt;;){this.consumeSpaces();var Ir=this.fetch();if(Ir.text==="\\limits"||Ir.text==="\\nolimits"){var Br=nn(Ke,"op");if(Br){var un=Ir.text==="\\limits";Br.limits=un,Br.alwaysHandleSupSub=!0}else if(Br=nn(Ke,"operatorname"),Br&&Br.alwaysHandleSupSub){var zn=Ir.text==="\\limits";Br.limits=zn}else throw new c("Limit controls must follow a math operator",Ir);this.consume()}else if(Ir.text==="^"){if(ct)throw new c("Double superscript",Ir);ct=this.handleSupSubscript("superscript")}else if(Ir.text==="_"){if(Bt)throw new c("Double subscript",Ir);Bt=this.handleSupSubscript("subscript")}else if(Ir.text==="'"){if(ct)throw new c("Double superscript",Ir);var Rn={type:"textord",mode:this.mode,text:"\\prime"},Fn=[Rn];for(this.consume();this.fetch().text==="'";)Fn.push(Rn),this.consume();this.fetch().text==="^"&&Fn.push(this.handleSupSubscript("superscript")),ct={type:"ordgroup",mode:this.mode,body:Fn}}else break}return ct||Bt?{type:"supsub",mode:this.mode,base:Ke,sup:ct,sub:Bt}:Ke},ae.parseFunction=function(ye,Ke,ct){var Bt=this.fetch(),Ir=Bt.text,Br=Ca[Ir];if(!Br)return null;if(this.consume(),ct!=null&&Br.greediness<=ct)throw new c("Got function '"+Ir+"' with no arguments"+(Ke?" as "+Ke:""),Bt);if(this.mode==="text"&&!Br.allowedInText)throw new c("Can't use function '"+Ir+"' in text mode",Bt);if(this.mode==="math"&&Br.allowedInMath===!1)throw new c("Can't use function '"+Ir+"' in math mode",Bt);var un=this.parseArguments(Ir,Br),zn=un.args,Rn=un.optArgs;return this.callFunction(Ir,zn,Rn,Bt,ye)},ae.callFunction=function(ye,Ke,ct,Bt,Ir){var Br={funcName:ye,parser:this,token:Bt,breakOnTokenText:Ir},un=Ca[ye];if(un&&un.handler)return un.handler(Br,Ke,ct);throw new c("No function handler for "+ye)},ae.parseArguments=function(ye,Ke){var ct=Ke.numArgs+Ke.numOptionalArgs;if(ct===0)return{args:[],optArgs:[]};for(var Bt=Ke.greediness,Ir=[],Br=[],un=0;un<ct;un++){var zn=Ke.argTypes&&Ke.argTypes[un],Rn=un<Ke.numOptionalArgs,Fn=un>0&&!Rn||un===0&&!Rn&&this.mode==="math",Ai=this.parseGroupOfType("argument to '"+ye+"'",zn,Rn,Bt,Fn);if(!Ai){if(Rn){Br.push(null);continue}throw new c("Expected group after '"+ye+"'",this.fetch())}(Rn?Br:Ir).push(Ai)}return{args:Ir,optArgs:Br}},ae.parseGroupOfType=function(ye,Ke,ct,Bt,Ir){switch(Ke){case"color":return Ir&&this.consumeSpaces(),this.parseColorGroup(ct);case"size":return Ir&&this.consumeSpaces(),this.parseSizeGroup(ct);case"url":return this.parseUrlGroup(ct,Ir);case"math":case"text":return this.parseGroup(ye,ct,Bt,void 0,Ke,Ir);case"hbox":{var Br=this.parseGroup(ye,ct,Bt,void 0,"text",Ir);if(!Br)return Br;var un={type:"styling",mode:Br.mode,body:[Br],style:"text"};return un}case"raw":{if(Ir&&this.consumeSpaces(),ct&&this.fetch().text==="{")return null;var zn=this.parseStringGroup("raw",ct,!0);if(zn)return{type:"raw",mode:"text",string:zn.text};throw new c("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(ye,ct,Bt,void 0,void 0,Ir);default:throw new c("Unknown group type as "+ye,this.fetch())}},ae.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ae.parseStringGroup=function(ye,Ke,ct){var Bt=Ke?"[":"{",Ir=Ke?"]":"}",Br=this.fetch();if(Br.text!==Bt){if(Ke)return null;if(ct&&Br.text!=="EOF"&&/[^{}[\]]/.test(Br.text))return this.consume(),Br}var un=this.mode;this.mode="text",this.expect(Bt);for(var zn="",Rn=this.fetch(),Fn=0,Ai=Rn,Di;(Di=this.fetch()).text!==Ir||ct&&Fn>0;){switch(Di.text){case"EOF":throw new c("Unexpected end of input in "+ye,Rn.range(Ai,zn));case Bt:Fn++;break;case Ir:Fn--;break}Ai=Di,zn+=Ai.text,this.consume()}return this.expect(Ir),this.mode=un,Rn.range(Ai,zn)},ae.parseRegexGroup=function(ye,Ke){var ct=this.mode;this.mode="text";for(var Bt=this.fetch(),Ir=Bt,Br="",un;(un=this.fetch()).text!=="EOF"&&ye.test(Br+un.text);)Ir=un,Br+=Ir.text,this.consume();if(Br==="")throw new c("Invalid "+Ke+": '"+Bt.text+"'",Bt);return this.mode=ct,Bt.range(Ir,Br)},ae.parseColorGroup=function(ye){var Ke=this.parseStringGroup("color",ye);if(!Ke)return null;var ct=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Ke.text);if(!ct)throw new c("Invalid color: '"+Ke.text+"'",Ke);var Bt=ct[0];return/^[0-9a-f]{6}$/i.test(Bt)&&(Bt="#"+Bt),{type:"color-token",mode:this.mode,color:Bt}},ae.parseSizeGroup=function(ye){var Ke,ct=!1;if(!ye&&this.fetch().text!=="{"?Ke=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Ke=this.parseStringGroup("size",ye),!Ke)return null;!ye&&Ke.text.length===0&&(Ke.text="0pt",ct=!0);var Bt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Ke.text);if(!Bt)throw new c("Invalid size: '"+Ke.text+"'",Ke);var Ir={number:+(Bt[1]+Bt[2]),unit:Bt[3]};if(!wr(Ir))throw new c("Invalid unit: '"+Ir.unit+"'",Ke);return{type:"size",mode:this.mode,value:Ir,isBlank:ct}},ae.parseUrlGroup=function(ye,Ke){this.gullet.lexer.setCatcode("%",13);var ct=this.parseStringGroup("url",ye,!0);if(this.gullet.lexer.setCatcode("%",14),!ct)return null;var Bt=ct.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Bt}},ae.parseGroup=function(ye,Ke,ct,Bt,Ir,Br){var un=this.mode;Ir&&this.switchMode(Ir),Br&&this.consumeSpaces();var zn=this.fetch(),Rn=zn.text,Fn;if(Ke?Rn==="[":Rn==="{"||Rn==="\\begingroup"){this.consume();var Ai=ot.endOfGroup[Rn];this.gullet.beginGroup();var Di=this.parseExpression(!1,Ai),ya=this.fetch();this.expect(Ai),this.gullet.endGroup(),Fn={type:"ordgroup",mode:this.mode,loc:w.range(zn,ya),body:Di,semisimple:Rn==="\\begingroup"||void 0}}else if(Ke)Fn=null;else if(Fn=this.parseFunction(Bt,ye,ct)||this.parseSymbol(),Fn==null&&Rn[0]==="\\"&&!Ko.hasOwnProperty(Rn)){if(this.settings.throwOnError)throw new c("Undefined control sequence: "+Rn,zn);Fn=this.formatUnsupportedCmd(Rn),this.consume()}return Ir&&this.switchMode(un),Fn},ae.formLigatures=function(ye){for(var Ke=ye.length-1,ct=0;ct<Ke;++ct){var Bt=ye[ct],Ir=Bt.text;Ir==="-"&&ye[ct+1].text==="-"&&(ct+1<Ke&&ye[ct+2].text==="-"?(ye.splice(ct,3,{type:"textord",mode:"text",loc:w.range(Bt,ye[ct+2]),text:"---"}),Ke-=2):(ye.splice(ct,2,{type:"textord",mode:"text",loc:w.range(Bt,ye[ct+1]),text:"--"}),Ke-=1)),(Ir==="'"||Ir==="`")&&ye[ct+1].text===Ir&&(ye.splice(ct,2,{type:"textord",mode:"text",loc:w.range(Bt,ye[ct+1]),text:Ir+Ir}),Ke-=1)}},ae.parseSymbol=function(){var ye=this.fetch(),Ke=ye.text;if(/^\\verb[^a-zA-Z]/.test(Ke)){this.consume();var ct=Ke.slice(5),Bt=ct.charAt(0)==="*";if(Bt&&(ct=ct.slice(1)),ct.length<2||ct.charAt(0)!==ct.slice(-1))throw new c(`\\verb assertion failed --
please report what input caused this bug`);return ct=ct.slice(1,-1),{type:"verb",mode:"text",body:ct,star:Bt}}Wo.hasOwnProperty(Ke[0])&&!Be[this.mode][Ke[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Ke[0]+'" used in math mode',ye),Ke=Wo[Ke[0]]+Ke.substr(1));var Ir=ao.exec(Ke);Ir&&(Ke=Ke.substring(0,Ir.index),Ke==="i"?Ke="\u0131":Ke==="j"&&(Ke="\u0237"));var Br;if(Be[this.mode][Ke]){this.settings.strict&&this.mode==="math"&&_t.indexOf(Ke)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Ke[0]+'" used in math mode',ye);var un=Be[this.mode][Ke].group,zn=w.range(ye),Rn;if(Et.hasOwnProperty(un)){var Fn=un;Rn={type:"atom",mode:this.mode,family:Fn,loc:zn,text:Ke}}else Rn={type:un,mode:this.mode,loc:zn,text:Ke};Br=Rn}else if(Ke.charCodeAt(0)>=128)this.settings.strict&&(Y(Ke.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Ke[0]+'" used in math mode',ye):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Ke[0]+'"'+(" ("+Ke.charCodeAt(0)+")"),ye)),Br={type:"textord",mode:"text",loc:w.range(ye),text:Ke};else return null;if(this.consume(),Ir)for(var Ai=0;Ai<Ir[0].length;Ai++){var Di=Ir[0][Ai];if(!Uo[Di])throw new c("Unknown accent ' "+Di+"'",ye);var ya=Uo[Di][this.mode];if(!ya)throw new c("Accent "+Di+" unsupported in "+this.mode+" mode",ye);Br={type:"accent",mode:this.mode,loc:w.range(ye),label:ya,isStretchy:!1,isShifty:!0,base:Br}}return Br},ot}();Go.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Go.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Go.SUPSUB_GREEDINESS=1;var Oo=function(ae,de){if(!(typeof ae=="string"||ae instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var ye=new Go(ae,de);delete ye.gullet.macros.current["\\df@tag"];var Ke=ye.parse();if(ye.gullet.macros.get("\\df@tag")){if(!de.displayMode)throw new c("\\tag works only in display equations");ye.gullet.feed("\\df@tag"),Ke=[{type:"tag",mode:"text",body:Ke,tag:ye.parse()}]}return Ke},Ka=Oo,Xa=function(ae,de,ye){de.textContent="";var Ke=Nt(ae,ye).toNode();de.appendChild(Ke)};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."),Xa=function(){throw new c("KaTeX doesn't work in quirks mode.")}));var bo=function(ae,de){var ye=Nt(ae,de).toMarkup();return ye},Eo=function(ae,de){var ye=new g(de);return Ka(ae,ye)},pt=function(ae,de,ye){if(ye.throwOnError||!(ae instanceof c))throw ae;var Ke=or.makeSpan(["katex-error"],[new Pe(de)]);return Ke.setAttribute("title",ae.toString()),Ke.setAttribute("style","color:"+ye.errorColor),Ke},Nt=function(ae,de){var ye=new g(de);try{var Ke=Ka(ae,ye);return es(Ke,ae,ye)}catch(ct){return pt(ct,ae,ye)}},sn=function(ae,de){var ye=new g(de);try{var Ke=Ka(ae,ye);return so(Ke,ae,ye)}catch(ct){return pt(ct,ae,ye)}},Mn={version:"0.11.1",render:Xa,renderToString:bo,ParseError:c,__parse:Eo,__renderToDomTree:Nt,__renderToHTMLTree:sn,__setFontMetrics:rt,__defineSymbol:Z,__defineMacro:Fr,__domTree:{Span:G,Anchor:te,SymbolNode:Pe,SvgNode:Oe,PathNode:le,LineNode:me}},hi=E.default=Mn}]).default})},P2fV:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("Q9mQ"),v=d("+L6B"),w=d("sE09"),m=d.n(w)},P2ho:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={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};P.default=O},P47w:function(j,P,d){var O=d("hydK"),E=O.createElement,C=d("IMiH"),v=d("mFDi"),w=d("Fofx"),m=d("6GrX"),h=d("pzxd"),c=d("dqUG"),i=C.CMD,r=Array.prototype.join,o="none",n=Math.round,e=Math.sin,s=Math.cos,t=Math.PI,a=Math.PI*2,l=180/t,u=1e-4;function f(V){return n(V*1e4)/1e4}function p(V){return V<u&&V>-u}function g(V,z){var Y=z?V.textFill:V.fill;return Y!=null&&Y!==o}function A(V,z){var Y=z?V.textStroke:V.stroke;return Y!=null&&Y!==o}function y(V,z){z&&x(V,"transform","matrix("+r.call(z,",")+")")}function x(V,z,Y){(!Y||Y.type!=="linear"&&Y.type!=="radial")&&V.setAttribute(z,Y)}function T(V,z,Y){V.setAttributeNS("http://www.w3.org/1999/xlink",z,Y)}function S(V,z,Y,q){if(g(z,Y)){var ce=Y?z.textFill:z.fill;ce=ce==="transparent"?o:ce,x(V,"fill",ce),x(V,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else x(V,"fill",o);if(A(z,Y)){var ie=Y?z.textStroke:z.stroke;ie=ie==="transparent"?o:ie,x(V,"stroke",ie);var ve=Y?z.textStrokeWidth:z.lineWidth,Ee=!Y&&z.strokeNoScale?q.getLineScale():1;x(V,"stroke-width",ve/Ee),x(V,"paint-order",Y?"stroke":"fill"),x(V,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var Le=z.lineDash;Le?(x(V,"stroke-dasharray",z.lineDash.join(",")),x(V,"stroke-dashoffset",n(z.lineDashOffset||0))):x(V,"stroke-dasharray",""),z.lineCap&&x(V,"stroke-linecap",z.lineCap),z.lineJoin&&x(V,"stroke-linejoin",z.lineJoin),z.miterLimit&&x(V,"stroke-miterlimit",z.miterLimit)}else x(V,"stroke",o)}function b(V){for(var z=[],Y=V.data,q=V.len(),ce=0;ce<q;){var ie=Y[ce++],ve="",Ee=0;switch(ie){case i.M:ve="M",Ee=2;break;case i.L:ve="L",Ee=2;break;case i.Q:ve="Q",Ee=4;break;case i.C:ve="C",Ee=6;break;case i.A:var Le=Y[ce++],He=Y[ce++],ge=Y[ce++],Fe=Y[ce++],Q=Y[ce++],fe=Y[ce++],Je=Y[ce++],ne=Y[ce++],X=Math.abs(fe),G=p(X-a)||(ne?fe>=a:-fe>=a),te=fe>0?fe%a:fe%a+a,we=!1;G?we=!0:p(X)?we=!1:we=te>=t===!!ne;var he=f(Le+ge*s(Q)),Pe=f(He+Fe*e(Q));G&&(ne?fe=a-1e-4:fe=-a+1e-4,we=!0,ce===9&&z.push("M",he,Pe));var Oe=f(Le+ge*s(Q+fe)),le=f(He+Fe*e(Q+fe));z.push("A",f(ge),f(Fe),n(Je*l),+we,+ne,Oe,le);break;case i.Z:ve="Z";break;case i.R:var Oe=f(Y[ce++]),le=f(Y[ce++]),me=f(Y[ce++]),_e=f(Y[ce++]);z.push("M",Oe,le,"L",Oe+me,le,"L",Oe+me,le+_e,"L",Oe,le+_e,"L",Oe,le);break}ve&&z.push(ve);for(var $e=0;$e<Ee;$e++)z.push(f(Y[ce++]))}return z.join(" ")}var _={};_.brush=function(V){var z=V.style,Y=V.__svgEl;Y||(Y=E("path"),V.__svgEl=Y),V.path||V.createPathProxy();var q=V.path;if(V.__dirtyPath){q.beginPath(),q.subPixelOptimize=!1,V.buildPath(q,V.shape),V.__dirtyPath=!1;var ce=b(q);ce.indexOf("NaN")<0&&x(Y,"d",ce)}S(Y,z,!1,V),y(Y,V.transform),z.text!=null?R(V,V.getBoundingRect()):U(V)};var I={};I.brush=function(V){var z=V.style,Y=z.image;if(Y instanceof HTMLImageElement){var q=Y.src;Y=q}if(!Y)return;var ce=z.x||0,ie=z.y||0,ve=z.width,Ee=z.height,Le=V.__svgEl;Le||(Le=E("image"),V.__svgEl=Le),Y!==V.__imageSrc&&(T(Le,"href",Y),V.__imageSrc=Y),x(Le,"width",ve),x(Le,"height",Ee),x(Le,"x",ce),x(Le,"y",ie),y(Le,V.transform),z.text!=null?R(V,V.getBoundingRect()):U(V)};var L={},D=new v,N={},M=[],B={left:"start",right:"end",center:"middle",middle:"middle"},R=function(z,Y){var q=z.style,ce=z.transform,ie=z instanceof c||q.transformText;z.__dirty&&h.normalizeTextStyle(q,!0);var ve=q.text;if(ve!=null&&(ve+=""),!h.needDrawText(ve,q))return;ve==null&&(ve=""),!ie&&ce&&(D.copy(Y),D.applyTransform(ce),Y=D);var Ee=z.__textSvgEl;Ee||(Ee=E("text"),z.__textSvgEl=Ee);var Le=Ee.style,He=q.font||m.DEFAULT_FONT,ge=Ee.__computedFont;He!==Ee.__styleFont&&(Le.font=Ee.__styleFont=He,ge=Ee.__computedFont=Le.font);var Fe=q.textPadding,Q=q.textLineHeight,fe=z.__textCotentBlock;(!fe||z.__dirtyText)&&(fe=z.__textCotentBlock=m.parsePlainText(ve,ge,Fe,Q,q.truncate));var Je=fe.outerHeight,ne=fe.lineHeight;h.getBoxPosition(N,z,q,Y);var X=N.baseX,G=N.baseY,te=N.textAlign||"left",we=N.textVerticalAlign;H(Ee,ie,ce,q,Y,X,G);var he=m.adjustTextY(G,Je,we),Pe=X,Oe=he;Fe&&(Pe=F(X,te,Fe),Oe+=Fe[0]),Oe+=ne/2,S(Ee,q,!0,z);var le=fe.canCacheByTextString,me=z.__tspanList||(z.__tspanList=[]),_e=me.length;if(le&&z.__canCacheByTextString&&z.__text===ve){if(z.__dirtyText&&_e)for(var $e=0;$e<_e;++$e)K(me[$e],te,Pe,Oe+$e*ne)}else{z.__text=ve,z.__canCacheByTextString=le;for(var gt=fe.lines,et=gt.length,$e=0;$e<et;$e++){var Ie=me[$e],rt=gt[$e];Ie?Ie.__zrText!==rt&&(Ie.innerHTML="",Ie.appendChild(document.createTextNode(rt))):(Ie=me[$e]=E("tspan"),Ee.appendChild(Ie),Ie.appendChild(document.createTextNode(rt))),K(Ie,te,Pe,Oe+$e*ne)}if(_e>et){for(;$e<_e;$e++)Ee.removeChild(me[$e]);me.length=et}}};function H(V,z,Y,q,ce,ie,ve){w.identity(M),z&&Y&&w.copy(M,Y);var Ee=q.textRotation;if(ce&&Ee){var Le=q.textOrigin;Le==="center"?(ie=ce.width/2+ce.x,ve=ce.height/2+ce.y):Le&&(ie=Le[0]+ce.x,ve=Le[1]+ce.y),M[4]-=ie,M[5]-=ve,w.rotate(M,M,Ee),M[4]+=ie,M[5]+=ve}y(V,M)}function F(V,z,Y){return z==="right"?V-Y[1]:z==="center"?V+Y[3]/2-Y[1]/2:V+Y[3]}function K(V,z,Y,q){x(V,"dominant-baseline","middle"),x(V,"text-anchor",B[z]),x(V,"x",Y),x(V,"y",q)}function U(V){V&&V.__textSvgEl&&(V.__textSvgEl.parentNode&&V.__textSvgEl.parentNode.removeChild(V.__textSvgEl),V.__textSvgEl=null,V.__tspanList=[],V.__text=null)}L.drawRectText=R,L.brush=function(V){var z=V.style;z.text!=null?R(V,!1):U(V)},P.path=_,P.image=I,P.text=L},P4Qj:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.removeSensor=P.getSensor=void 0;var O=v(d("chpo")),E=d("FxDU"),C=d("24YM");function v(c){return c&&c.__esModule?c:{default:c}}var w={},m=function(i){var r=i.getAttribute(C.SizeSensorId);if(r&&w[r])return w[r];var o=(0,O.default)();i.setAttribute(C.SizeSensorId,o);var n=(0,E.createSensor)(i);return w[o]=n,n};P.getSensor=m;var h=function(i){var r=i.element.getAttribute(C.SizeSensorId);i.element.removeAttribute(C.SizeSensorId),i.destroy(),r&&w[r]&&delete w[r]};P.removeSensor=h},P5Jw:function(j,P,d){"use strict";var O=d("rHrb"),E=O.CopyToClipboard;E.CopyToClipboard=E,j.exports=E},PArb:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("q1tI"),m=d.n(w),h=d("TSYQ"),c=d.n(h),i=d("H84U"),r=function(n,e){var s={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(s[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(s[t[a]]=n[t[a]]);return s},o=function(e){return w.createElement(i.a,null,function(s){var t,a=s.getPrefixCls,l=s.direction,u=e.prefixCls,f=e.type,p=f===void 0?"horizontal":f,g=e.orientation,A=g===void 0?"center":g,y=e.className,x=e.children,T=e.dashed,S=e.plain,b=r(e,["prefixCls","type","orientation","className","children","dashed","plain"]),_=a("divider",u),I=A.length>0?"-".concat(A):A,L=!!x,D=c()(y,_,"".concat(_,"-").concat(p),(t={},v()(t,"".concat(_,"-with-text"),L),v()(t,"".concat(_,"-with-text").concat(I),L),v()(t,"".concat(_,"-dashed"),!!T),v()(t,"".concat(_,"-plain"),!!S),v()(t,"".concat(_,"-rtl"),l==="rtl"),t));return w.createElement("div",E()({className:D},b,{role:"separator"}),x&&w.createElement("span",{className:"".concat(_,"-inner-text")},x))})};P.a=o},PD8m:function(j,P){j.exports={name:"memoryStorage",read:O,write:E,each:C,remove:v,clearAll:w};var d={};function O(m){return d[m]}function E(m,h){d[m]=h}function C(m){for(var h in d)d.hasOwnProperty(h)&&m(d[h],h)}function v(m){delete d[m]}function w(m){d={}}},PKem:function(j,P,d){"use strict";d.d(P,"a",function(){return g});var O=d("RIqP"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("pVnL"),m=d.n(w),h=d("lwsE"),c=d.n(h),i=d("W8MJ"),r=d.n(i),o=d("7W2i"),n=d.n(o),e=d("LQ03"),s=d.n(e),t=d("q1tI"),a=d.n(t),l=d("TSYQ"),u=d.n(l),f=d("H84U"),p=function(I,L){var D={};for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&L.indexOf(N)<0&&(D[N]=I[N]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,N=Object.getOwnPropertySymbols(I);M<N.length;M++)L.indexOf(N[M])<0&&Object.prototype.propertyIsEnumerable.call(I,N[M])&&(D[N[M]]=I[N[M]]);return D},g=t.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function A(I){var L=I.suffixCls,D=I.tagName,N=I.displayName;return function(M){var B;return B=function(R){n()(F,R);var H=s()(F);function F(){var K;return c()(this,F),K=H.apply(this,arguments),K.renderComponent=function(U){var V=U.getPrefixCls,z=K.props.prefixCls,Y=V(L,z);return t.createElement(M,m()({prefixCls:Y,tagName:D},K.props))},K}return r()(F,[{key:"render",value:function(){return t.createElement(f.a,null,this.renderComponent)}}]),F}(t.Component),B.displayName=N,B}}var y=function(L){var D=L.prefixCls,N=L.className,M=L.children,B=L.tagName,R=p(L,["prefixCls","className","children","tagName"]),H=u()(D,N);return t.createElement(B,m()({className:H},R),M)},x=function(I){n()(D,I);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 B,R=M.direction,H=N.props,F=H.prefixCls,K=H.className,U=H.children,V=H.hasSider,z=H.tagName,Y=p(H,["prefixCls","className","children","hasSider","tagName"]),q=u()(F,(B={},v()(B,"".concat(F,"-has-sider"),typeof V=="boolean"?V:N.state.siders.length>0),v()(B,"".concat(F,"-rtl"),R==="rtl"),B),K);return t.createElement(g.Provider,{value:{siderHook:N.getSiderHook()}},t.createElement(z,m()({className:q},Y),U))},N}return r()(D,[{key:"getSiderHook",value:function(){var M=this;return{addSider:function(R){M.setState(function(H){return{siders:[].concat(E()(H.siders),[R])}})},removeSider:function(R){M.setState(function(H){return{siders:H.siders.filter(function(F){return F!==R})}})}}}},{key:"render",value:function(){return t.createElement(f.a,null,this.renderComponent)}}]),D}(t.Component),T=A({suffixCls:"layout",tagName:"section",displayName:"Layout"})(x),S=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);T.Header=S,T.Footer=b,T.Content=_,P.b=T},PNag:function(j,P,d){var O=d("bYtY"),E=d("SKnc"),C=d("YH21"),v=d("crZl"),w=d("IwbS"),m=d("OELB"),h=d("72pK"),c=d("y7Aq"),i=d("4NO4"),r=m.linearMap,o=O.each,n=Math.min,e=Math.max,s=12,t=6,a=v.extend({type:"visualMap.continuous",init:function(){a.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(x,T,S,b){(!b||b.type!=="selectDataRange"||b.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var x=this.visualMapModel,T=this.group;this._orient=x.get("orient"),this._useHandle=x.get("calculable"),this._resetInterval(),this._renderBar(T);var S=x.get("text");this._renderEndsText(T,S,0),this._renderEndsText(T,S,1),this._updateView(!0),this.renderBackground(T),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(T)},_renderEndsText:function(x,T,S){if(!T)return;var b=T[1-S];b=b!=null?b+"":"";var _=this.visualMapModel,I=_.get("textGap"),L=_.itemSize,D=this._shapes.barGroup,N=this._applyTransform([L[0]/2,S===0?-I:L[1]+I],D),M=this._applyTransform(S===0?"bottom":"top",D),B=this._orient,R=this.visualMapModel.textStyleModel;this.group.add(new w.Text({style:{x:N[0],y:N[1],textVerticalAlign:B==="horizontal"?"middle":M,textAlign:B==="horizontal"?M:"center",text:b,textFont:R.getFont(),textFill:R.getTextColor()}}))},_renderBar:function(x){var T=this.visualMapModel,S=this._shapes,b=T.itemSize,_=this._orient,I=this._useHandle,L=c.getItemAlign(T,this.api,b),D=S.barGroup=this._createBarGroup(L);D.add(S.outOfRange=l()),D.add(S.inRange=l(null,I?A(this._orient):null,O.bind(this._dragHandle,this,"all",!1),O.bind(this._dragHandle,this,"all",!0)));var N=T.textStyleModel.getTextRect("\u56FD"),M=e(N.width,N.height);I&&(S.handleThumbs=[],S.handleLabels=[],S.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,T,S,b,_){var I=O.bind(this._dragHandle,this,T,!1),L=O.bind(this._dragHandle,this,T,!0),D=l(u(T,b),A(this._orient),I,L);D.position[0]=S[0],x.add(D);var N=this.visualMapModel.textStyleModel,M=new w.Text({draggable:!0,drift:I,onmousemove:function(H){C.stop(H.event)},ondragend:L,style:{x:0,y:0,text:"",textFont:N.getFont(),textFill:N.getTextColor()}});this.group.add(M);var B=[_==="horizontal"?b/2:b*1.5,_==="horizontal"?T===0?-(b*1.5):b*1.5:T===0?-b/2:b/2],R=this._shapes;R.handleThumbs[T]=D,R.handleLabelPoints[T]=B,R.handleLabels[T]=M},_createIndicator:function(x,T,S,b){var _=l([[0,0]],"move");_.position[0]=T[0],_.attr({invisible:!0,silent:!0}),x.add(_);var I=this.visualMapModel.textStyleModel,L=new w.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(L);var D=[b==="horizontal"?S/2:t+3,0],N=this._shapes;N.indicator=_,N.indicatorLabel=L,N.indicatorLabelPoint=D},_dragHandle:function(x,T,S,b){if(!this._useHandle)return;if(this._dragging=!T,!T){var _=this._applyTransform([S,b],this._shapes.barGroup,!0);this._updateInterval(x,_[1]),this._updateView()}T===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),T?!this._hovering&&this._clearHoverLinkToSeries():g(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[x],!1)},_resetInterval:function(){var x=this.visualMapModel,T=this._dataInterval=x.getSelected(),S=x.getExtent(),b=[0,x.itemSize[1]];this._handleEnds=[r(T[0],S,b,!0),r(T[1],S,b,!0)]},_updateInterval:function(x,T){T=T||0;var S=this.visualMapModel,b=this._handleEnds,_=[0,S.itemSize[1]];h(T,b,_,x,0);var I=S.getExtent();this._dataInterval=[r(b[0],_,I,!0),r(b[1],_,I,!0)]},_updateView:function(x){var T=this.visualMapModel,S=T.getExtent(),b=this._shapes,_=[0,T.itemSize[1]],I=x?_:this._handleEnds,L=this._createBarVisual(this._dataInterval,S,I,"inRange"),D=this._createBarVisual(S,S,_,"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(I,L)},_createBarVisual:function(x,T,S,b){var _={forceState:b,convertOpacityToAlpha:!0},I=this._makeColorGradient(x,_),L=[this.getControllerVisual(x[0],"symbolSize",_),this.getControllerVisual(x[1],"symbolSize",_)],D=this._createBarPoints(S,L);return{barColor:new E(0,0,0,1,I),barPoints:D,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(x,T){var S=100,b=[],_=(x[1]-x[0])/S;b.push({color:this.getControllerVisual(x[0],"color",T),offset:0});for(var I=1;I<S;I++){var L=x[0]+_*I;if(L>x[1])break;b.push({color:this.getControllerVisual(L,"color",T),offset:I/S})}return b.push({color:this.getControllerVisual(x[1],"color",T),offset:1}),b},_createBarPoints:function(x,T){var S=this.visualMapModel.itemSize;return[[S[0]-T[0],x[0]],[S[0],x[0]],[S[0],x[1]],[S[0]-T[1],x[1]]]},_createBarGroup:function(x){var T=this._orient,S=this.visualMapModel.get("inverse");return new w.Group(T==="horizontal"&&!S?{scale:x==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:T==="horizontal"&&S?{scale:x==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:T==="vertical"&&!S?{scale:x==="left"?[1,-1]:[-1,-1]}:{scale:x==="left"?[1,1]:[-1,1]})},_updateHandle:function(x,T){if(!this._useHandle)return;var S=this._shapes,b=this.visualMapModel,_=S.handleThumbs,I=S.handleLabels;o([0,1],function(L){var D=_[L];D.setStyle("fill",T.handlesColor[L]),D.position[1]=x[L];var N=w.applyTransform(S.handleLabelPoints[L],w.getTransform(D,this.group));I[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",S.barGroup)})},this)},_showIndicator:function(x,T,S,b){var _=this.visualMapModel,I=_.getExtent(),L=_.itemSize,D=[0,L[1]],N=r(x,I,D,!0),M=this._shapes,B=M.indicator;if(!B)return;B.position[1]=N,B.attr("invisible",!1),B.setShape("points",f(!!S,b,N,L[1]));var R={convertOpacityToAlpha:!0},H=this.getControllerVisual(x,"color",R);B.setStyle("fill",H);var F=w.applyTransform(M.indicatorLabelPoint,w.getTransform(B,this.group)),K=M.indicatorLabel;K.attr("invisible",!1);var U=this._applyTransform("left",M.barGroup),V=this._orient;K.setStyle({text:(S||"")+_.formatValueText(T),textVerticalAlign:V==="horizontal"?U:"middle",textAlign:V==="horizontal"?"center":U,x:F[0],y:F[1]})},_enableHoverLinkToSeries:function(){var x=this;this._shapes.barGroup.on("mousemove",function(T){if(x._hovering=!0,!x._dragging){var S=x.visualMapModel.itemSize,b=x._applyTransform([T.offsetX,T.offsetY],x._shapes.barGroup,!0,!0);b[1]=n(e(0,b[1]),S[1]),x._doHoverLinkToSeries(b[1],0<=b[0]&&b[0]<=S[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,T){var S=this.visualMapModel,b=S.itemSize;if(!S.option.hoverLink)return;var _=[0,b[1]],I=S.getExtent();x=n(e(_[0],x),_[1]);var L=p(S,I,_),D=[x-L,x+L],N=r(x,_,I,!0),M=[r(D[0],_,I,!0),r(D[1],_,I,!0)];D[0]<_[0]&&(M[0]=-Infinity),D[1]>_[1]&&(M[1]=Infinity),T&&(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 B=this._hoverLinkDataIndices,R=[];(T||g(S))&&(R=this._hoverLinkDataIndices=S.findTargetDataIndices(M));var H=i.compressBatches(B,R);this._dispatchHighDown("downplay",c.makeHighDownBatch(H[0],S)),this._dispatchHighDown("highlight",c.makeHighDownBatch(H[1],S))},_hoverLinkFromSeriesMouseOver:function(x){var T=x.target,S=this.visualMapModel;if(!T||T.dataIndex==null)return;var b=this.ecModel.getSeriesByIndex(T.seriesIndex);if(!S.isTargetSeries(b))return;var _=b.getData(T.dataType),I=_.get(S.getDataDimension(_),T.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_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,T,S,b){var _=w.getTransform(T,b?null:this.group);return w[O.isArray(x)?"applyTransform":"transformDirection"](x,_,S)},_dispatchHighDown:function(x,T){T&&T.length&&this.api.dispatchAction({type:x,batch:T})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function l(x,T,S,b){return new w.Polygon({shape:{points:x},draggable:!!S,cursor:T,drift:S,onmousemove:function(_){C.stop(_.event)},ondragend:b})}function u(x,T){return x===0?[[0,0],[T,0],[T,-T]]:[[0,0],[T,0],[T,T]]}function f(x,T,S,b){return x?[[0,-n(T,e(S,0))],[t,0],[0,n(T,e(b-S,0))]]:[[0,0],[5,-5],[5,5]]}function p(x,T,S){var b=s/2,_=x.get("hoverLinkDataSize");return _&&(b=r(_,T,S,!0)/2),b}function g(x){var T=x.get("hoverLinkOnHandle");return!!(T==null?x.get("realtime"):T)}function A(x){return x==="vertical"?"ns-resize":"ew-resize"}var y=a;j.exports=y},PQMj:function(j,P,d){},PSzr:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},PVpz:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.StreamCipher,w=E.algo,m=[],h=[],c=[],i=w.RabbitLegacy=v.extend({_doReset:function(){var n=this._key.words,e=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],t=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 a=0;a<4;a++)r.call(this);for(var a=0;a<8;a++)t[a]^=s[a+4&7];if(e){var l=e.words,u=l[0],f=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,g=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,A=p>>>16|g&4294901760,y=g<<16|p&65535;t[0]^=p,t[1]^=A,t[2]^=g,t[3]^=y,t[4]^=p,t[5]^=A,t[6]^=g,t[7]^=y;for(var a=0;a<4;a++)r.call(this)}},_doProcessBlock:function(n,e){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 t=0;t<4;t++)m[t]=(m[t]<<8|m[t]>>>24)&16711935|(m[t]<<24|m[t]>>>8)&4278255360,n[e+t]^=m[t]},blockSize:128/32,ivSize:64/32});function r(){for(var o=this._X,n=this._C,e=0;e<8;e++)h[e]=n[e];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 e=0;e<8;e++){var s=o[e]+n[e],t=s&65535,a=s>>>16,l=((t*t>>>17)+t*a>>>15)+a*a,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[e]=l^u}o[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,o[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,o[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,o[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,o[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,o[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,o[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,o[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.RabbitLegacy=v._createHelper(i)}(),O.RabbitLegacy})},ProS:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("aX58"),v=d("bYtY"),w=d("Qe9p"),m=d("ItGF"),h=d("BPZU"),c=d("H6uX"),i=d("fmMI"),r=d("hD7B"),o=d("IDmD"),n=d("ypgQ"),e=d("+wW9"),s=d("0V0F"),t=d("bLfw"),a=d("T4UG"),l=d("sS/r"),u=d("6Ic6"),f=d("IwbS"),p=d("4NO4"),g=d("iLNv"),A=g.throttle,y=d("/WM3"),x=d("uAnK"),T=d("mYwL"),S=d("af/B"),b=d("xTNl"),_=d("8hn6");d("A1Ka");var I=d("7DRL"),L=v.assert,D=v.each,N=v.isFunction,M=v.isObject,B=t.parseClassType,R="4.8.0",H={zrender:"4.3.1"},F=1,K=1e3,U=800,V=900,z=5e3,Y=1e3,q=1100,ce=2e3,ie=3e3,ve=3500,Ee=4e3,Le=5e3,He={PROCESSOR:{FILTER:K,SERIES_FILTER:U,STATISTIC:z},VISUAL:{LAYOUT:Y,PROGRESSIVE_LAYOUT:q,GLOBAL:ce,CHART:ie,POST_CHART_LAYOUT:ve,COMPONENT:Ee,BRUSH:Le}},ge="__flagInMainProcess",Fe="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function fe(At,Ft){return function(wr,sr,mr){if(!Ft&&this._disposed){Ot(this.id);return}wr=wr&&wr.toLowerCase(),c.prototype[At].call(this,wr,sr,mr)}}function Je(){c.call(this)}Je.prototype.on=fe("on",!0),Je.prototype.off=fe("off",!0),Je.prototype.one=fe("one",!0),v.mixin(Je,c);function ne(At,Ft,wr){wr=wr||{},typeof Ft=="string"&&(Ft=lt[Ft]),this.id,this.group,this._dom=At;var sr="canvas",mr=this._zr=C.init(At,{renderer:wr.renderer||sr,devicePixelRatio:wr.devicePixelRatio,width:wr.width,height:wr.height});this._throttledZrFlush=A(v.bind(mr.flush,mr),17);var Ft=v.clone(Ft);Ft&&e(Ft,!0),this._theme=Ft,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new o;var $r=this._api=Be(this);function rn(jn,Un){return jn.__prio-Un.__prio}h(zt,rn),h(Re,rn),this._scheduler=new S(this,$r,Re,zt),c.call(this,this._ecEventProcessor=new Z),this._messageCenter=new Je,this._initEvents(),this.resize=v.bind(this.resize,this),this._pendingActions=[],mr.animation.on("frame",this._onframe,this),_e(mr,this),v.setAsPrimitive(this)}var X=ne.prototype;X._onframe=function(){if(this._disposed)return;var At=this._scheduler;if(this[Fe]){var Ft=this[Fe].silent;this[ge]=!0,we(this),te.update.call(this),this[ge]=!1,this[Fe]=!1,le.call(this,Ft),me.call(this,Ft)}else if(At.unfinished){var wr=F,sr=this._model,mr=this._api;At.unfinished=!1;do{var $r=+new Date;At.performSeriesTasks(sr),At.performDataProcessorTasks(sr),Pe(this,sr),At.performVisualTasks(sr),rt(this,this._model,mr,"remain"),wr-=+new Date-$r}while(wr>0&&At.unfinished);At.unfinished||this._zr.flush()}},X.getDom=function(){return this._dom},X.getZr=function(){return this._zr},X.setOption=function(At,Ft,wr){if(this._disposed){Ot(this.id);return}var sr;if(M(Ft)&&(wr=Ft.lazyUpdate,sr=Ft.silent,Ft=Ft.notMerge),this[ge]=!0,!this._model||Ft){var mr=new n(this._api),$r=this._theme,rn=this._model=new i;rn.scheduler=this._scheduler,rn.init(null,null,$r,mr)}this._model.setOption(At,oe),wr?(this[Fe]={silent:sr},this[ge]=!1):(we(this),te.update.call(this),this._zr.flush(),this[Fe]=!1,this[ge]=!1,le.call(this,sr),me.call(this,sr))},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(At){if(!m.canvasSupported)return;At=At||{},At.pixelRatio=At.pixelRatio||1,At.backgroundColor=At.backgroundColor||this._model.get("backgroundColor");var Ft=this._zr;return Ft.painter.getRenderedCanvas(At)},X.getSvgDataURL=function(){if(!m.svgSupported)return;var At=this._zr,Ft=At.storage.getDisplayList();return v.each(Ft,function(wr){wr.stopAnimation(!0)}),At.painter.toDataURL()},X.getDataURL=function(At){if(this._disposed){Ot(this.id);return}At=At||{};var Ft=At.excludeComponents,wr=this._model,sr=[],mr=this;D(Ft,function(rn){wr.eachComponent({mainType:rn},function(jn){var Un=mr._componentsMap[jn.__viewId];Un.group.ignore||(sr.push(Un),Un.group.ignore=!0)})});var $r=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(At).toDataURL("image/"+(At&&At.type||"png"));return D(sr,function(rn){rn.group.ignore=!1}),$r},X.getConnectedDataURL=function(At){if(this._disposed){Ot(this.id);return}if(!m.canvasSupported)return;var Ft=At.type==="svg",wr=this.group,sr=Math.min,mr=Math.max,$r=Infinity;if(cn[wr]){var rn=$r,jn=$r,Un=-$r,ui=-$r,yi=[],Ii=At&&At.pixelRatio||1;v.each(cr,function(Xe,ze){if(Xe.group===wr){var Ze=Ft?Xe.getZr().painter.getSvgDom().innerHTML:Xe.getRenderedCanvas(v.clone(At)),bt=Xe.getDom().getBoundingClientRect();rn=sr(bt.left,rn),jn=sr(bt.top,jn),Un=mr(bt.right,Un),ui=mr(bt.bottom,ui),yi.push({dom:Ze,left:bt.left,top:bt.top})}}),rn*=Ii,jn*=Ii,Un*=Ii,ui*=Ii;var Gi=Un-rn,Qe=ui-jn,be=v.createCanvas(),Ne=C.init(be,{renderer:Ft?"svg":"canvas"});if(Ne.resize({width:Gi,height:Qe}),Ft){var Ue="";return D(yi,function(Xe){var ze=Xe.left-rn,Ze=Xe.top-jn;Ue+='<g transform="translate('+ze+","+Ze+')">'+Xe.dom+"</g>"}),Ne.painter.getSvgRoot().innerHTML=Ue,At.connectedBackgroundColor&&Ne.painter.setBackgroundColor(At.connectedBackgroundColor),Ne.refreshImmediately(),Ne.painter.toDataURL()}else return At.connectedBackgroundColor&&Ne.add(new f.Rect({shape:{x:0,y:0,width:Gi,height:Qe},style:{fill:At.connectedBackgroundColor}})),D(yi,function(Xe){var ze=new f.Image({style:{x:Xe.left*Ii-rn,y:Xe.top*Ii-jn,image:Xe.dom}});Ne.add(ze)}),Ne.refreshImmediately(),be.toDataURL("image/"+(At&&At.type||"png"))}else return this.getDataURL(At)},X.convertToPixel=v.curry(G,"convertToPixel"),X.convertFromPixel=v.curry(G,"convertFromPixel");function G(At,Ft,wr){if(this._disposed){Ot(this.id);return}var sr=this._model,mr=this._coordSysMgr.getCoordinateSystems(),$r;Ft=p.parseFinder(sr,Ft);for(var rn=0;rn<mr.length;rn++){var jn=mr[rn];if(jn[At]&&($r=jn[At](sr,Ft,wr))!=null)return $r}}X.containPixel=function(At,Ft){if(this._disposed){Ot(this.id);return}var wr=this._model,sr;return At=p.parseFinder(wr,At),v.each(At,function(mr,$r){$r.indexOf("Models")>=0&&v.each(mr,function(rn){var jn=rn.coordinateSystem;if(jn&&jn.containPoint)sr|=!!jn.containPoint(Ft);else if($r==="seriesModels"){var Un=this._chartsMap[rn.__viewId];Un&&Un.containPoint&&(sr|=Un.containPoint(Ft,rn))}},this)},this),!!sr},X.getVisual=function(At,Ft){var wr=this._model;At=p.parseFinder(wr,At,{defaultMainType:"series"});var sr=At.seriesModel,mr=sr.getData(),$r=At.hasOwnProperty("dataIndexInside")?At.dataIndexInside:At.hasOwnProperty("dataIndex")?mr.indexOfRawIndex(At.dataIndex):null;return $r!=null?mr.getItemVisual($r,Ft):mr.getVisual(Ft)},X.getViewOfComponentModel=function(At){return this._componentsMap[At.__viewId]},X.getViewOfSeriesModel=function(At){return this._chartsMap[At.__viewId]};var te={prepareAndUpdate:function(At){we(this),te.update.call(this,At)},update:function(At){var Ft=this._model,wr=this._api,sr=this._zr,mr=this._coordSysMgr,$r=this._scheduler;if(!Ft)return;$r.restoreData(Ft,At),$r.performSeriesTasks(Ft),mr.create(Ft,wr),$r.performDataProcessorTasks(Ft,At),Pe(this,Ft),mr.update(Ft,wr),gt(Ft),$r.performVisualTasks(Ft,At),et(this,Ft,wr,At);var rn=Ft.get("backgroundColor")||"transparent";if(m.canvasSupported)sr.setBackgroundColor(rn);else{var jn=w.parse(rn);rn=w.stringify(jn,"rgb"),jn[3]===0&&(rn="transparent")}Ge(Ft,wr)},updateTransform:function(At){var Ft=this._model,wr=this,sr=this._api;if(!Ft)return;var mr=[];Ft.eachComponent(function(rn,jn){var Un=wr.getViewOfComponentModel(jn);if(Un&&Un.__alive)if(Un.updateTransform){var ui=Un.updateTransform(jn,Ft,sr,At);ui&&ui.update&&mr.push(Un)}else mr.push(Un)});var $r=v.createHashMap();Ft.eachSeries(function(rn){var jn=wr._chartsMap[rn.__viewId];if(jn.updateTransform){var Un=jn.updateTransform(rn,Ft,sr,At);Un&&Un.update&&$r.set(rn.uid,1)}else $r.set(rn.uid,1)}),gt(Ft),this._scheduler.performVisualTasks(Ft,At,{setDirty:!0,dirtyMap:$r}),rt(wr,Ft,sr,At,$r),Ge(Ft,this._api)},updateView:function(At){var Ft=this._model;if(!Ft)return;u.markUpdateMethod(At,"updateView"),gt(Ft),this._scheduler.performVisualTasks(Ft,At,{setDirty:!0}),et(this,this._model,this._api,At),Ge(Ft,this._api)},updateVisual:function(At){te.update.call(this,At)},updateLayout:function(At){te.update.call(this,At)}};function we(At){var Ft=At._model,wr=At._scheduler;wr.restorePipelines(Ft),wr.prepareStageTasks(),$e(At,"component",Ft,wr),$e(At,"chart",Ft,wr),wr.plan()}function he(At,Ft,wr,sr,mr){var $r=At._model;if(!sr){D(At._componentsViews.concat(At._chartsViews),ui);return}var rn={};rn[sr+"Id"]=wr[sr+"Id"],rn[sr+"Index"]=wr[sr+"Index"],rn[sr+"Name"]=wr[sr+"Name"];var jn={mainType:sr,query:rn};mr&&(jn.subType=mr);var Un=wr.excludeSeriesId;Un!=null&&(Un=v.createHashMap(p.normalizeToArray(Un))),$r&&$r.eachComponent(jn,function(yi){(!Un||Un.get(yi.id)==null)&&ui(At[sr==="series"?"_chartsMap":"_componentsMap"][yi.__viewId])},At);function ui(yi){yi&&yi.__alive&&yi[Ft]&&yi[Ft](yi.__model,$r,At._api,wr)}}X.resize=function(At){if(this._disposed){Ot(this.id);return}this._zr.resize(At);var Ft=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Ft)return;var wr=Ft.resetOption("media"),sr=At&&At.silent;this[ge]=!0,wr&&we(this),te.update.call(this),this[ge]=!1,le.call(this,sr),me.call(this,sr)};function Pe(At,Ft){var wr=At._chartsMap,sr=At._scheduler;Ft.eachSeries(function(mr){sr.updateStreamModes(mr,wr[mr.__viewId])})}X.showLoading=function(At,Ft){if(this._disposed){Ot(this.id);return}if(M(At)&&(Ft=At,At=""),At=At||"default",this.hideLoading(),!$t[At])return;var wr=$t[At](this._api,Ft),sr=this._zr;this._loadingFX=wr,sr.add(wr)},X.hideLoading=function(){if(this._disposed){Ot(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},X.makeActionFromEvent=function(At){var Ft=v.extend({},At);return Ft.type=je[At.type],Ft},X.dispatchAction=function(At,Ft){if(this._disposed){Ot(this.id);return}if(M(Ft)||(Ft={silent:!!Ft}),!J[At.type])return;if(!this._model)return;if(this[ge]){this._pendingActions.push(At);return}Oe.call(this,At,Ft.silent),Ft.flush?this._zr.flush(!0):Ft.flush!==!1&&m.browser.weChat&&this._throttledZrFlush(),le.call(this,Ft.silent),me.call(this,Ft.silent)};function Oe(At,Ft){var wr=At.type,sr=At.escapeConnect,mr=J[wr],$r=mr.actionInfo,rn=($r.update||"update").split(":"),jn=rn.pop();rn=rn[0]!=null&&B(rn[0]),this[ge]=!0;var Un=[At],ui=!1;At.batch&&(ui=!0,Un=v.map(At.batch,function(Qe){return Qe=v.defaults(v.extend({},Qe),At),Qe.batch=null,Qe}));var yi=[],Ii,Gi=wr==="highlight"||wr==="downplay";D(Un,function(Qe){Ii=mr.action(Qe,this._model,this._api),Ii=Ii||v.extend({},Qe),Ii.type=$r.event||Ii.type,yi.push(Ii),Gi?he(this,jn,Qe,"series"):rn&&he(this,jn,Qe,rn.main,rn.sub)},this),jn!=="none"&&!Gi&&!rn&&(this[Fe]?(we(this),te.update.call(this,At),this[Fe]=!1):te[jn].call(this,At)),ui?Ii={type:$r.event||wr,escapeConnect:sr,batch:yi}:Ii=yi[0],this[ge]=!1,!Ft&&this._messageCenter.trigger(Ii.type,Ii)}function le(At){for(var Ft=this._pendingActions;Ft.length;){var wr=Ft.shift();Oe.call(this,wr,At)}}function me(At){!At&&this.trigger("updated")}function _e(At,Ft){At.on("rendered",function(){Ft.trigger("rendered"),At.animation.isFinished()&&!Ft[Fe]&&!Ft._scheduler.unfinished&&!Ft._pendingActions.length&&Ft.trigger("finished")})}X.appendData=function(At){if(this._disposed){Ot(this.id);return}var Ft=At.seriesIndex,wr=this.getModel(),sr=wr.getSeriesByIndex(Ft);sr.appendData(At),this._scheduler.unfinished=!0},X.on=fe("on",!1),X.off=fe("off",!1),X.one=fe("one",!1);function $e(At,Ft,wr,sr){for(var mr=Ft==="component",$r=mr?At._componentsViews:At._chartsViews,rn=mr?At._componentsMap:At._chartsMap,jn=At._zr,Un=At._api,ui=0;ui<$r.length;ui++)$r[ui].__alive=!1;mr?wr.eachComponent(function(Gi,Qe){Gi!=="series"&&yi(Qe)}):wr.eachSeries(yi);function yi(Gi){var Qe="_ec_"+Gi.id+"_"+Gi.type,be=rn[Qe];if(!be){var Ne=B(Gi.type),Ue=mr?l.getClass(Ne.main,Ne.sub):u.getClass(Ne.sub);be=new Ue,be.init(wr,Un),rn[Qe]=be,$r.push(be),jn.add(be.group)}Gi.__viewId=be.__id=Qe,be.__alive=!0,be.__model=Gi,be.group.__ecComponentInfo={mainType:Gi.mainType,index:Gi.componentIndex},!mr&&sr.prepareView(be,Gi,wr,Un)}for(var ui=0;ui<$r.length;){var Ii=$r[ui];Ii.__alive?ui++:(!mr&&Ii.renderTask.dispose(),jn.remove(Ii.group),Ii.dispose(wr,Un),$r.splice(ui,1),delete rn[Ii.__id],Ii.__id=Ii.group.__ecComponentInfo=null)}}function gt(At){At.clearColorPalette(),At.eachSeries(function(Ft){Ft.clearColorPalette()})}function et(At,Ft,wr,sr){Ie(At,Ft,wr,sr),D(At._chartsViews,function(mr){mr.__alive=!1}),rt(At,Ft,wr,sr),D(At._chartsViews,function(mr){mr.__alive||mr.remove(Ft,wr)})}function Ie(At,Ft,wr,sr,mr){D(mr||At._componentsViews,function($r){var rn=$r.__model;$r.render(rn,Ft,wr,sr),Rt(rn,$r)})}function rt(At,Ft,wr,sr,mr){var $r=At._scheduler,rn;Ft.eachSeries(function(jn){var Un=At._chartsMap[jn.__viewId];Un.__alive=!0;var ui=Un.renderTask;$r.updatePayload(ui,sr),mr&&mr.get(jn.uid)&&ui.dirty(),rn|=ui.perform($r.getPerformArgs(ui)),Un.group.silent=!!jn.get("silent"),Rt(jn,Un),Tt(jn,Un)}),$r.unfinished|=rn,Et(At,Ft),x(At._zr.dom,Ft)}function Ge(At,Ft){D(yt,function(wr){wr(At,Ft)})}var vt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];X._initEvents=function(){D(vt,function(At){var Ft=function(wr){var sr=this.getModel(),mr=wr.target,$r,rn=At==="globalout";if(rn)$r={};else if(mr&&mr.dataIndex!=null){var jn=mr.dataModel||sr.getSeriesByIndex(mr.seriesIndex);$r=jn&&jn.getDataParams(mr.dataIndex,mr.dataType,mr)||{}}else mr&&mr.eventData&&($r=v.extend({},mr.eventData));if($r){var Un=$r.componentType,ui=$r.componentIndex;(Un==="markLine"||Un==="markPoint"||Un==="markArea")&&(Un="series",ui=$r.seriesIndex);var yi=Un&&ui!=null&&sr.getComponent(Un,ui),Ii=yi&&this[yi.mainType==="series"?"_chartsMap":"_componentsMap"][yi.__viewId];$r.event=wr,$r.type=At,this._ecEventProcessor.eventInfo={targetEl:mr,packedEvent:$r,model:yi,view:Ii},this.trigger(At,$r)}};Ft.zrEventfulCallAtLast=!0,this._zr.on(At,Ft,this)},this),D(je,function(At,Ft){this._messageCenter.on(Ft,function(wr){this.trigger(Ft,wr)},this)},this)},X.isDisposed=function(){return this._disposed},X.clear=function(){if(this._disposed){Ot(this.id);return}this.setOption({series:[]},!0)},X.dispose=function(){if(this._disposed){Ot(this.id);return}this._disposed=!0,p.setAttribute(this.getDom(),Zt,"");var At=this._api,Ft=this._model;D(this._componentsViews,function(wr){wr.dispose(Ft,At)}),D(this._chartsViews,function(wr){wr.dispose(Ft,At)}),this._zr.dispose(),delete cr[this.id]},v.mixin(ne,c);function Ot(At){}function Et(At,Ft){var wr=At._zr,sr=wr.storage,mr=0;sr.traverse(function($r){mr++}),mr>Ft.get("hoverLayerThreshold")&&!m.node&&Ft.eachSeries(function($r){if($r.preventUsingHoverLayer)return;var rn=At._chartsMap[$r.__viewId];rn.__alive&&rn.group.traverse(function(jn){jn.useHoverLayer=!0})})}function Tt(At,Ft){var wr=At.get("blendMode")||null;Ft.group.traverse(function(sr){sr.isGroup||sr.style.blend!==wr&&sr.setStyle("blend",wr),sr.eachPendingDisplayable&&sr.eachPendingDisplayable(function(mr){mr.setStyle("blend",wr)})})}function Rt(At,Ft){var wr=At.get("z"),sr=At.get("zlevel");Ft.group.traverse(function(mr){mr.type!=="group"&&(wr!=null&&(mr.z=wr),sr!=null&&(mr.zlevel=sr))})}function Be(At){var Ft=At._coordSysMgr;return v.extend(new r(At),{getCoordinateSystems:v.bind(Ft.getCoordinateSystems,Ft),getComponentByElement:function(wr){for(;wr;){var sr=wr.__ecComponentInfo;if(sr!=null)return At._model.getComponent(sr.mainType,sr.index);wr=wr.parent}}})}function Z(){this.eventInfo}Z.prototype={constructor:Z,normalizeQuery:function(At){var Ft={},wr={},sr={};if(v.isString(At)){var mr=B(At);Ft.mainType=mr.main||null,Ft.subType=mr.sub||null}else{var $r=["Index","Name","Id"],rn={name:1,dataIndex:1,dataType:1};v.each(At,function(jn,Un){for(var ui=!1,yi=0;yi<$r.length;yi++){var Ii=$r[yi],Gi=Un.lastIndexOf(Ii);if(Gi>0&&Gi===Un.length-Ii.length){var Qe=Un.slice(0,Gi);Qe!=="data"&&(Ft.mainType=Qe,Ft[Ii.toLowerCase()]=jn,ui=!0)}}rn.hasOwnProperty(Un)&&(wr[Un]=jn,ui=!0),ui||(sr[Un]=jn)})}return{cptQuery:Ft,dataQuery:wr,otherQuery:sr}},filter:function(At,Ft,wr){var sr=this.eventInfo;if(!sr)return!0;var mr=sr.targetEl,$r=sr.packedEvent,rn=sr.model,jn=sr.view;if(!rn||!jn)return!0;var Un=Ft.cptQuery,ui=Ft.dataQuery;return yi(Un,rn,"mainType")&&yi(Un,rn,"subType")&&yi(Un,rn,"index","componentIndex")&&yi(Un,rn,"name")&&yi(Un,rn,"id")&&yi(ui,$r,"name")&&yi(ui,$r,"dataIndex")&&yi(ui,$r,"dataType")&&(!jn.filterForExposedEvent||jn.filterForExposedEvent(At,Ft.otherQuery,mr,$r));function yi(Ii,Gi,Qe,be){return Ii[Qe]==null||Gi[be||Qe]===Ii[Qe]}},afterTrigger:function(){this.eventInfo=null}};var J={},je={},Re=[],oe=[],yt=[],zt=[],lt={},$t={},cr={},cn={},pr=new Date-0,gr=new Date-0,Zt="_echarts_instance_";function Vt(At){var Ft=0,wr=1,sr=2,mr="__connectUpdateStatus";function $r(rn,jn){for(var Un=0;Un<rn.length;Un++){var ui=rn[Un];ui[mr]=jn}}D(je,function(rn,jn){At._messageCenter.on(jn,function(Un){if(cn[At.group]&&At[mr]!==Ft){if(Un&&Un.escapeConnect)return;var ui=At.makeActionFromEvent(Un),yi=[];D(cr,function(Ii){Ii!==At&&Ii.group===At.group&&yi.push(Ii)}),$r(yi,Ft),D(yi,function(Ii){Ii[mr]!==wr&&Ii.dispatchAction(ui)}),$r(yi,sr)}})})}function mt(At,Ft,wr){var sr=ji(At);if(sr)return sr;var mr=new ne(At,Ft,wr);return mr.id="ec_"+pr++,cr[mr.id]=mr,p.setAttribute(At,Zt,mr.id),Vt(mr),mr}function Yr(At){if(v.isArray(At)){var Ft=At;At=null,D(Ft,function(wr){wr.group!=null&&(At=wr.group)}),At=At||"g_"+gr++,D(Ft,function(wr){wr.group=At})}return cn[At]=!0,At}function Tn(At){cn[At]=!1}var Hn=Tn;function ei(At){typeof At=="string"?At=cr[At]:At instanceof ne||(At=ji(At)),At instanceof ne&&!At.isDisposed()&&At.dispose()}function ji(At){return cr[p.getAttribute(At,Zt)]}function Ln(At){return cr[At]}function Vn(At,Ft){lt[At]=Ft}function kt(At){oe.push(At)}function wt(At,Ft){_t(Re,At,Ft,K)}function Te(At){yt.push(At)}function xe(At,Ft,wr){typeof Ft=="function"&&(wr=Ft,Ft="");var sr=M(At)?At.type:[At,At={event:Ft}][0];At.event=(At.event||sr).toLowerCase(),Ft=At.event,L(Q.test(sr)&&Q.test(Ft)),J[sr]||(J[sr]={action:wr,actionInfo:At}),je[Ft]=sr}function Ce(At,Ft){o.register(At,Ft)}function Ye(At){var Ft=o.get(At);if(Ft)return Ft.getDimensionsInfo?Ft.getDimensionsInfo():Ft.dimensions.slice()}function it(At,Ft){_t(zt,At,Ft,Y,"layout")}function dt(At,Ft){_t(zt,At,Ft,ie,"visual")}function _t(At,Ft,wr,sr,mr){(N(Ft)||M(Ft))&&(wr=Ft,Ft=sr);var $r=S.wrapStageHandler(wr,mr);return $r.__prio=Ft,$r.__raw=wr,At.push($r),$r}function vr(At,Ft){$t[At]=Ft}function kr(At){return t.extend(At)}function mn(At){return l.extend(At)}function Mt(At){return a.extend(At)}function nt(At){return u.extend(At)}function st(At){v.$override("createCanvas",At)}function Xt(At,Ft,wr){I.registerMap(At,Ft,wr)}function Dt(At){var Ft=I.retrieveMap(At);return Ft&&Ft[0]&&{geoJson:Ft[0].geoJSON,specialAreas:Ft[0].specialAreas}}dt(ce,y),kt(e),wt(V,s),vr("default",T),xe({type:"highlight",event:"highlight",update:"highlight"},v.noop),xe({type:"downplay",event:"downplay",update:"downplay"},v.noop),Vn("light",b),Vn("dark",_);var St={};P.version=R,P.dependencies=H,P.PRIORITY=He,P.init=mt,P.connect=Yr,P.disConnect=Tn,P.disconnect=Hn,P.dispose=ei,P.getInstanceByDom=ji,P.getInstanceById=Ln,P.registerTheme=Vn,P.registerPreprocessor=kt,P.registerProcessor=wt,P.registerPostUpdate=Te,P.registerAction=xe,P.registerCoordinateSystem=Ce,P.getCoordinateSystemDimensions=Ye,P.registerLayout=it,P.registerVisual=dt,P.registerLoading=vr,P.extendComponentModel=kr,P.extendComponentView=mn,P.extendSeriesModel=Mt,P.extendChartView=nt,P.setCanvasCreator=st,P.registerMap=Xt,P.getMap=Dt,P.dataTool=St;var jt=d("txkQ");(function(){for(var At in jt)jt.hasOwnProperty(At)&&(P[At]=jt[At])})()},Pw59:function(j,P,d){"use strict";var O=d("q1tI"),E=d.n(O),C=Object(O.createContext)({});P.a=C},Q7if:function(j,P,d){var O=d("JEkh"),E=O.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"}}}});j.exports=E},Q9mQ:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("UADf"),v=d.n(C)},"QB+1":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("Ywus"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},QBsz:function(j,P){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(S,b){var _=new d(2);return S==null&&(S=0),b==null&&(b=0),_[0]=S,_[1]=b,_}function E(S,b){return S[0]=b[0],S[1]=b[1],S}function C(S){var b=new d(2);return b[0]=S[0],b[1]=S[1],b}function v(S,b,_){return S[0]=b,S[1]=_,S}function w(S,b,_){return S[0]=b[0]+_[0],S[1]=b[1]+_[1],S}function m(S,b,_,I){return S[0]=b[0]+_[0]*I,S[1]=b[1]+_[1]*I,S}function h(S,b,_){return S[0]=b[0]-_[0],S[1]=b[1]-_[1],S}function c(S){return Math.sqrt(r(S))}var i=c;function r(S){return S[0]*S[0]+S[1]*S[1]}var o=r;function n(S,b,_){return S[0]=b[0]*_[0],S[1]=b[1]*_[1],S}function e(S,b,_){return S[0]=b[0]/_[0],S[1]=b[1]/_[1],S}function s(S,b){return S[0]*b[0]+S[1]*b[1]}function t(S,b,_){return S[0]=b[0]*_,S[1]=b[1]*_,S}function a(S,b){var _=c(b);return _===0?(S[0]=0,S[1]=0):(S[0]=b[0]/_,S[1]=b[1]/_),S}function l(S,b){return Math.sqrt((S[0]-b[0])*(S[0]-b[0])+(S[1]-b[1])*(S[1]-b[1]))}var u=l;function f(S,b){return(S[0]-b[0])*(S[0]-b[0])+(S[1]-b[1])*(S[1]-b[1])}var p=f;function g(S,b){return S[0]=-b[0],S[1]=-b[1],S}function A(S,b,_,I){return S[0]=b[0]+I*(_[0]-b[0]),S[1]=b[1]+I*(_[1]-b[1]),S}function y(S,b,_){var I=b[0],L=b[1];return S[0]=_[0]*I+_[2]*L+_[4],S[1]=_[1]*I+_[3]*L+_[5],S}function x(S,b,_){return S[0]=Math.min(b[0],_[0]),S[1]=Math.min(b[1],_[1]),S}function T(S,b,_){return S[0]=Math.max(b[0],_[0]),S[1]=Math.max(b[1],_[1]),S}P.create=O,P.copy=E,P.clone=C,P.set=v,P.add=w,P.scaleAndAdd=m,P.sub=h,P.len=c,P.length=i,P.lenSquare=r,P.lengthSquare=o,P.mul=n,P.div=e,P.dot=s,P.scale=t,P.normalize=a,P.distance=l,P.dist=u,P.distanceSquare=f,P.distSquare=p,P.negate=g,P.lerp=A,P.applyTransform=y,P.min=x,P.max=T},"QO+J":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.createSensor=void 0;var O=C(d("NohK")),E=d("24YM");function C(w){return w&&w.__esModule?w:{default:w}}var v=function(m){var h=void 0,c=[],i=function(){getComputedStyle(m).position==="static"&&(m.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",E.SensorClassName),t.setAttribute("tabindex",E.SensorTabIndex),t.type="text/html",m.appendChild(t),t.data="about:blank",t},r=(0,O.default)(function(){c.forEach(function(s){s(m)})}),o=function(t){h||(h=i()),c.indexOf(t)===-1&&c.push(t)},n=function(){h&&h.parentNode&&(h.contentDocument&&h.contentDocument.defaultView.removeEventListener("resize",r),h.parentNode.removeChild(h),h=void 0,c=[])},e=function(t){var a=c.indexOf(t);a!==-1&&c.splice(a,1),c.length===0&&h&&n()};return{element:m,bind:o,destroy:n,unbind:e}};P.createSensor=v},"QQZ/":function(j,P,d){var O=d("Sq3C"),E=d("Z1HP"),C=d("Sxd8"),v=d("dt0z");function w(m,h,c){m=v(m),h=C(h);var i=h?E(m):0;return h&&i<h?O(h-i,c)+m:m}j.exports=w},QUw5:function(j,P,d){var O=d("OlYY"),E=O.extend({type:"dataZoom.select"});j.exports=E},QV2g:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=O;function O(){for(var v,w=[],m=0;m<256;m++){v=m;for(var h=0;h<8;h++)v=v&1?3988292384^v>>>1:v>>>1;w[m]=v}return w}var E=O();function C(v,w,m,h){var c=E,i=h+m;v^=-1;for(var r=h;r<i;r++)v=v>>>8^c[(v^w[r])&255];return v^-1}},QbM5:function(j,P,d){},Qe9p:function(j,P,d){var O=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 C(b){return b=Math.round(b),b<0?0:b>255?255:b}function v(b){return b=Math.round(b),b<0?0:b>360?360:b}function w(b){return b<0?0:b>1?1:b}function m(b){return b.length&&b.charAt(b.length-1)==="%"?C(parseFloat(b)/100*255):C(parseInt(b,10))}function h(b){return b.length&&b.charAt(b.length-1)==="%"?w(parseFloat(b)/100):w(parseFloat(b))}function c(b,_,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?b+(_-b)*I*6:I*2<1?_:I*3<2?b+(_-b)*(2/3-I)*6:b}function i(b,_,I){return b+(_-b)*I}function r(b,_,I,L,D){return b[0]=_,b[1]=I,b[2]=L,b[3]=D,b}function o(b,_){return b[0]=_[0],b[1]=_[1],b[2]=_[2],b[3]=_[3],b}var n=new O(20),e=null;function s(b,_){e&&o(e,_),e=n.put(b,e||_.slice())}function t(b,_){if(!b)return;_=_||[];var I=n.get(b);if(I)return o(_,I);b=b+"";var L=b.replace(/ /g,"").toLowerCase();if(L in E)return o(_,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 B=L.substr(0,N),R=L.substr(N+1,M-(N+1)).split(","),H=1;switch(B){case"rgba":if(R.length!==4){r(_,0,0,0,1);return}H=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]),H),s(b,_),_;case"hsla":if(R.length!==4){r(_,0,0,0,1);return}return R[3]=h(R[3]),a(R,_),s(b,_),_;case"hsl":if(R.length!==3){r(_,0,0,0,1);return}return a(R,_),s(b,_),_;default:return}}r(_,0,0,0,1);return}function a(b,_){var I=(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(_,C(c(M,N,I+1/3)*255),C(c(M,N,I)*255),C(c(M,N,I-1/3)*255),1),b.length===4&&(_[3]=b[3]),_}function l(b){if(!b)return;var _=b[0]/255,I=b[1]/255,L=b[2]/255,D=Math.min(_,I,L),N=Math.max(_,I,L),M=N-D,B=(N+D)/2,R,H;if(M===0)R=0,H=0;else{B<.5?H=M/(N+D):H=M/(2-N-D);var F=((N-_)/6+M/2)/M,K=((N-I)/6+M/2)/M,U=((N-L)/6+M/2)/M;_===N?R=U-K:I===N?R=1/3+F-U:L===N&&(R=2/3+K-F),R<0&&(R+=1),R>1&&(R-=1)}var V=[R*360,H,B];return b[3]!=null&&V.push(b[3]),V}function u(b,_){var I=t(b);if(I){for(var L=0;L<3;L++)_<0?I[L]=I[L]*(1-_)|0:I[L]=(255-I[L])*_+I[L]|0,I[L]>255?I[L]=255:b[L]<0&&(I[L]=0);return S(I,I.length===4?"rgba":"rgb")}}function f(b){var _=t(b);if(_)return((1<<24)+(_[0]<<16)+(_[1]<<8)+ +_[2]).toString(16).slice(1)}function p(b,_,I){if(!(_&&_.length)||!(b>=0&&b<=1))return;I=I||[];var L=b*(_.length-1),D=Math.floor(L),N=Math.ceil(L),M=_[D],B=_[N],R=L-D;return I[0]=C(i(M[0],B[0],R)),I[1]=C(i(M[1],B[1],R)),I[2]=C(i(M[2],B[2],R)),I[3]=w(i(M[3],B[3],R)),I}var g=p;function A(b,_,I){if(!(_&&_.length)||!(b>=0&&b<=1))return;var L=b*(_.length-1),D=Math.floor(L),N=Math.ceil(L),M=t(_[D]),B=t(_[N]),R=L-D,H=S([C(i(M[0],B[0],R)),C(i(M[1],B[1],R)),C(i(M[2],B[2],R)),w(i(M[3],B[3],R))],"rgba");return I?{color:H,leftIndex:D,rightIndex:N,value:L}:H}var y=A;function x(b,_,I,L){if(b=t(b),b)return b=l(b),_!=null&&(b[0]=v(_)),I!=null&&(b[1]=h(I)),L!=null&&(b[2]=h(L)),S(a(b),"rgba")}function T(b,_){if(b=t(b),b&&_!=null)return b[3]=w(_),S(b,"rgba")}function S(b,_){if(!b||!b.length)return;var I=b[0]+","+b[1]+","+b[2];return(_==="rgba"||_==="hsva"||_==="hsla")&&(I+=","+b[3]),_+"("+I+")"}P.parse=t,P.lift=u,P.toHex=f,P.fastLerp=p,P.fastMapToColor=g,P.lerp=A,P.mapToColor=y,P.modifyHSL=x,P.modifyAlpha=T,P.stringify=S},Qi1f:function(j,P,d){"use strict";d.d(P,"g",function(){return s}),d.d(P,"c",function(){return t}),d.d(P,"a",function(){return l}),d.d(P,"b",function(){return u}),d.d(P,"d",function(){return f}),d.d(P,"e",function(){return p}),d.d(P,"f",function(){return A});var O=d("VTBJ"),E=d("U8pU"),C=d("AJpP"),v=d("q1tI"),w=d.n(v),m=d("Kwbf"),h=d("MNnm"),c="rc-util-key";function i(y){if(y.attachTo)return y.attachTo;var x=document.querySelector("head");return x||document.body}function r(y){var x,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(h.a)())return null;var S=document.createElement("style");if((x=T.csp)===null||x===void 0?void 0:x.nonce){var b;S.nonce=(b=T.csp)===null||b===void 0?void 0:b.nonce}S.innerHTML=y;var _=i(T),I=_.firstChild;return T.prepend&&_.prepend?_.prepend(S):T.prepend&&I?_.insertBefore(S,I):_.appendChild(S),S}var o=new Map;function n(y,x){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=i(T);if(!o.has(S)){var b=r("",T),_=b.parentNode;o.set(S,_),_.removeChild(b)}var I=Array.from(o.get(S).children).find(function(B){return B.tagName==="STYLE"&&B[c]===x});if(I){var L,D;if(((L=T.csp)===null||L===void 0?void 0:L.nonce)&&I.nonce!==((D=T.csp)===null||D===void 0?void 0:D.nonce)){var N;I.nonce=(N=T.csp)===null||N===void 0?void 0:N.nonce}return I.innerHTML!==y&&(I.innerHTML=y),I}var M=r(y,T);return M[c]=x,M}var e=d("Pw59");function s(y,x){Object(m.a)(y,"[@ant-design/icons] ".concat(x))}function t(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 a(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(y).reduce(function(x,T){var S=y[T];switch(T){case"class":x.className=S,delete x.class;break;default:x[T]=S}return x},{})}function l(y,x,T){return T?w.a.createElement(y.tag,Object(O.a)(Object(O.a)({key:x},a(y.attrs)),T),(y.children||[]).map(function(S,b){return l(S,"".concat(x,"-").concat(y.tag,"-").concat(b))})):w.a.createElement(y.tag,Object(O.a)({key:x},a(y.attrs)),(y.children||[]).map(function(S,b){return l(S,"".concat(x,"-").concat(y.tag,"-").concat(b))}))}function u(y){return Object(C.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"},g=`
.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]:g,T=Object(v.useContext)(e.a),S=T.csp;Object(v.useEffect)(function(){n(x,"@ant-design-icons",{prepend:!0,csp:S})},[])}},Qs3X:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("X+im"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},Qs9O:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},QuXc:function(j,P){var d=function(C){this.colorStops=C||[]};d.prototype={constructor:d,addColorStop:function(C,v){this.colorStops.push({offset:C,color:v})}};var O=d;j.exports=O},Qvb6:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("ItGF"),v=d("B9fm"),w=d("gvm7"),m=d("7aKB"),h=d("OELB"),c=d("IwbS"),i=d("Ez2D"),r=d("+TT/"),o=d("Qxkt"),n=d("F9bG"),e=d("aX7z"),s=d("/y7N"),t=d("4NO4"),a=t.getTooltipRenderMode,l=E.bind,u=E.each,f=h.parsePercent,p=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),g=O.extendComponentView({type:"tooltip",init:function(_,I){if(C.node)return;var L=_.getComponent("tooltip"),D=L.get("renderMode");this._renderMode=a(D);var N;this._renderMode==="html"?(N=new v(I.getDom(),I,{appendToBody:L.get("appendToBody",!0)}),this._newLine="<br/>"):(N=new w(I),this._newLine=`
`),this._tooltipContent=N},render:function(_,I,L){if(C.node)return;this.group.removeAll(),this._tooltipModel=_,this._ecModel=I,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,I=_.get("triggerOn");n.register("itemTooltip",this._api,l(function(L,D,N){I!=="none"&&(I.indexOf(L)>=0?this._tryShow(D,N):L==="leave"&&this._hide(N))},this))},_keepShow:function(){var _=this._tooltipModel,I=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(_,I,L,{x:D._lastX,y:D._lastY})})}},manuallyShowTip:function(_,I,L,D){if(D.from===this.uid||C.node)return;var N=y(D,L);this._ticket="";var M=D.dataByCoordSys;if(D.tooltip&&D.x!=null&&D.y!=null){var B=p;B.position=[D.x,D.y],B.update(),B.tooltip=D.tooltip,this._tryShow({offsetX:D.x,offsetY:D.y,target:B},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(_,I,L,D))return;var R=i(D,I),H=R.point[0],F=R.point[1];H!=null&&F!=null&&this._tryShow({offsetX:H,offsetY:F,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(_,I,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(_,I,L,D){var N=D.seriesIndex,M=D.dataIndex,B=I.getComponent("axisPointer").coordSysAxesInfo;if(N==null||M==null||B==null)return;var R=I.getSeriesByIndex(N);if(!R)return;var H=R.getData(),_=A([H.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(_,I){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,I)):L&&L.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(_,L,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(_,I){var L=_.get("showDelay");I=E.bind(I,this),clearTimeout(this._showTimout),L>0?this._showTimout=setTimeout(I,L):I()},_showAxisTooltip:function(_,I){var L=this._ecModel,D=this._tooltipModel,N=[I.offsetX,I.offsetY],M=[],B=[],R=A([I.tooltipOption,D]),H=this._renderMode,F=this._newLine,K={};u(_,function(V){u(V.dataByAxis,function(z){var Y=L.getComponent(z.axisDim+"Axis",z.axisIndex),q=z.value,ce=[];if(!Y||q==null)return;var ie=s.getValueLabel(q,Y.axis,L,z.seriesDataIndices,z.valueLabelOpt);E.each(z.seriesDataIndices,function(Ee){var Le=L.getSeriesByIndex(Ee.seriesIndex),He=Ee.dataIndexInside,ge=Le&&Le.getDataParams(He);if(ge.axisDim=z.axisDim,ge.axisIndex=z.axisIndex,ge.axisType=z.axisType,ge.axisId=z.axisId,ge.axisValue=e.getAxisRawValue(Y.axis,q),ge.axisValueLabel=ie,ge){B.push(ge);var Fe=Le.formatTooltip(He,!0,null,H),Q;if(E.isObject(Fe)){Q=Fe.html;var fe=Fe.markers;E.merge(K,fe)}else Q=Fe;ce.push(Q)}});var ve=ie;H!=="html"?M.push(ce.join(F)):M.push((ve?m.encodeHTML(ve)+F:"")+ce.join(F))})},this),M.reverse(),M=M.join(this._newLine+this._newLine);var U=I.position;this._showOrMove(R,function(){this._updateContentNotChangedOnAxis(_)?this._updatePosition(R,U,N[0],N[1],this._tooltipContent,B):this._showTooltipContent(R,M,B,Math.random(),N[0],N[1],U,void 0,K)})},_showSeriesItemTooltip:function(_,I,L){var D=this._ecModel,N=I.seriesIndex,M=D.getSeriesByIndex(N),B=I.dataModel||M,R=I.dataIndex,H=I.dataType,F=B.getData(H),K=A([F.getItemModel(R),B,M&&(M.coordinateSystem||{}).model,this._tooltipModel]),U=K.get("trigger");if(U!=null&&U!=="item")return;var V=B.getDataParams(R,H),z=B.formatTooltip(R,!1,H,this._renderMode),Y,q;E.isObject(z)?(Y=z.html,q=z.markers):(Y=z,q=null);var ce="item_"+B.name+"_"+R;this._showOrMove(K,function(){this._showTooltipContent(K,Y,V,ce,_.offsetX,_.offsetY,_.position,_.target,q)}),L({type:"showTip",dataIndexInside:R,dataIndex:F.getRawIndex(R),seriesIndex:N,from:this.uid})},_showComponentItemTooltip:function(_,I,L){var D=I.tooltip;if(typeof D=="string"){var N=D;D={content:N,formatter:N}}var M=new o(D,this._tooltipModel,this._ecModel),B=M.get("content"),R=Math.random();this._showOrMove(M,function(){this._showTooltipContent(M,B,M.get("formatterParams")||{},R,_.offsetX,_.offsetY,_.position,I)}),L({type:"showTip",from:this.uid})},_showTooltipContent:function(_,I,L,D,N,M,B,R,H){if(this._ticket="",!_.get("showContent")||!_.get("show"))return;var F=this._tooltipContent,K=_.get("formatter");B=B||_.get("position");var U=I;if(K&&typeof K=="string")U=m.formatTpl(K,L,!0);else if(typeof K=="function"){var V=l(function(z,Y){z===this._ticket&&(F.setContent(Y,H,_),this._updatePosition(_,B,N,M,F,L,R))},this);this._ticket=D,U=K(L,D,V)}F.setContent(U,H,_),F.show(_),this._updatePosition(_,B,N,M,F,L,R)},_updatePosition:function(_,I,L,D,N,M,B){var R=this._api.getWidth(),H=this._api.getHeight();I=I||_.get("position");var F=N.getSize(),K=_.get("align"),U=_.get("verticalAlign"),V=B&&B.getBoundingRect().clone();if(B&&V.applyTransform(B.transform),typeof I=="function"&&(I=I([L,D],M,N.el,V,{viewSize:[R,H],contentSize:F.slice()})),E.isArray(I))L=f(I[0],R),D=f(I[1],H);else if(E.isObject(I)){I.width=F[0],I.height=F[1];var z=r.getLayoutRect(I,{width:R,height:H});L=z.x,D=z.y,K=null,U=null}else if(typeof I=="string"&&B){var Y=S(I,V,F);L=Y[0],D=Y[1]}else{var Y=x(L,D,N,R,H,K?null:20,U?null:20);L=Y[0],D=Y[1]}if(K&&(L-=b(K)?F[0]/2:K==="right"?F[0]:0),U&&(D-=b(U)?F[1]/2:U==="bottom"?F[1]:0),_.get("confine")){var Y=T(L,D,N,R,H);L=Y[0],D=Y[1]}N.moveTo(L,D)},_updateContentNotChangedOnAxis:function(_){var I=this._lastDataByCoordSys,L=!!I&&I.length===_.length;return L&&u(I,function(D,N){var M=D.dataByAxis||{},B=_[N]||{},R=B.dataByAxis||[];L&=M.length===R.length,L&&u(M,function(H,F){var K=R[F]||{},U=H.seriesDataIndices||[],V=K.seriesDataIndices||[];L&=H.value===K.value&&H.axisType===K.axisType&&H.axisId===K.axisId&&U.length===V.length,L&&u(U,function(z,Y){var q=V[Y];L&=z.seriesIndex===q.seriesIndex&&z.dataIndex===q.dataIndex})})}),this._lastDataByCoordSys=_,!!L},_hide:function(_){this._lastDataByCoordSys=null,_({type:"hideTip",from:this.uid})},dispose:function(_,I){if(C.node)return;this._tooltipContent.dispose(),n.unregister("itemTooltip",I)}});function A(_){for(var I=_.pop();_.length;){var L=_.pop();L&&(o.isInstance(L)&&(L=L.get("tooltip",!0)),typeof L=="string"&&(L={formatter:L}),I=new o(L,I,I.ecModel))}return I}function y(_,I){return _.dispatchAction||E.bind(I.dispatchAction,I)}function x(_,I,L,D,N,M,B){var R=L.getOuterSize(),H=R.width,F=R.height;return M!=null&&(_+H+M>D?_-=H+M:_+=M),B!=null&&(I+F+B>N?I-=F+B:I+=B),[_,I]}function T(_,I,L,D,N){var M=L.getOuterSize(),B=M.width,R=M.height;return _=Math.min(_+B,D)-B,I=Math.min(I+R,N)-R,_=Math.max(_,0),I=Math.max(I,0),[_,I]}function S(_,I,L){var D=L[0],N=L[1],M=5,B=0,R=0,H=I.width,F=I.height;switch(_){case"inside":B=I.x+H/2-D/2,R=I.y+F/2-N/2;break;case"top":B=I.x+H/2-D/2,R=I.y-N-M;break;case"bottom":B=I.x+H/2-D/2,R=I.y+F+M;break;case"left":B=I.x-D-M,R=I.y+F/2-N/2;break;case"right":B=I.x+H+M,R=I.y+F/2-N/2}return[B,R]}function b(_){return _==="center"||_==="middle"}j.exports=g},Qxkt:function(j,P,d){var O=d("bYtY"),E=d("ItGF"),C=d("4NO4"),v=C.makeInner,w=d("Yl7c"),m=w.enableClassExtend,h=w.enableClassCheck,c=d("OQFs"),i=d("m9t5"),r=d("/iHx"),o=d("VR9l"),n=O.mixin,e=v();function s(u,f,p){this.parentModel=f,this.ecModel=p,this.option=u}s.prototype={constructor:s,init:null,mergeOption:function(u){O.merge(this.option,u,!0)},get:function(u,f){return u==null?this.option:t(this.option,this.parsePath(u),!f&&a(this,u))},getShallow:function(u,f){var p=this.option,g=p==null?p:p[u],A=!f&&a(this,u);return g==null&&A&&(g=A.getShallow(u)),g},getModel:function(u,f){var p=u==null?this.option:t(this.option,u=this.parsePath(u)),g;return f=f||(g=a(this,u))&&g.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(O.clone(this.option))},setReadOnly:function(u){},parsePath:function(u){return typeof u=="string"&&(u=u.split(".")),u},customizeGetParent:function(u){e(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 t(u,f,p){for(var g=0;g<f.length;g++){if(!f[g])continue;if(u=u&&typeof u=="object"?u[f[g]]:null,u==null)break}return u==null&&p&&(u=p.get(f)),u}function a(u,f){var p=e(u).getParent;return p?p.call(u,f):u.parentModel}m(s),h(s),n(s,c),n(s,i),n(s,r),n(s,o);var l=s;j.exports=l},QyFq:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},QzjZ:function(j,P,d){var O=d("S/Yl"),E=d("IDmD");function C(v,w){var m=[];return v.eachComponent("singleAxis",function(h,c){var i=new O(h,v,w);i.name="single_"+c,i.resize(h,w),h.coordinateSystem=i,m.push(i)}),v.eachSeries(function(h){if(h.get("coordinateSystem")==="singleAxis"){var c=v.queryComponents({mainType:"singleAxis",index:h.get("singleAxisIndex"),id:h.get("singleAxisId")})[0];h.coordinateSystem=c&&c.coordinateSystem}}),m}E.register("single",{create:C,dimensions:O.prototype.dimensions})},R4Th:function(j,P,d){var O=d("ProS"),E=d("9wZj"),C=d("yO87"),v=d("Fofx"),w=d("h8O9"),m=O.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new E(C)},render:function(h,c,i){var r=h.getData(),o=this._symbolDraw;o.updateData(r),this.group.add(o.group)},updateTransform:function(h,c,i){var r=h.getData();this.group.dirty();var o=w().reset(h);o.progress&&o.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_updateGroupTransform:function(h){var c=h.coordinateSystem;c&&c.getRoamTransform&&(this.group.transform=v.clone(c.getRoamTransform()),this.group.decomposeTransform())},remove:function(h,c){this._symbolDraw&&this._symbolDraw.remove(c)},dispose:function(){}});j.exports=m},R9oj:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("pwpV"),v=d.n(C)},RBEP:function(j,P,d){for(var O=d("ProS"),E=d("VaxA"),C=function(){},v=["treemapZoomToNode","treemapRender","treemapMove"],w=0;w<v.length;w++)O.registerAction({type:v[w],update:"updateView"},C);O.registerAction({type:"treemapRootToNode",update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"treemap",query:m},c);function c(i,r){var o=["treemapZoomToNode","treemapRootToNode"],n=E.retrieveTargetInfo(m,o,i);if(n){var e=i.getViewRoot();e&&(m.direction=E.aboveViewRoot(e,n.node)?"rollUp":"drillDown"),i.resetViewRoot(n.node)}}})},RCxd:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="ExclamationCircleOutlined";var h=P.a=E.forwardRef(m)},RDYZ:function(j,P,d){var O=d("dMvE");function E(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}E.prototype={constructor:E,step:function(w,m){if(this._initialized||(this._startTime=w+this._delay,this._initialized=!0),this._paused){this._pausedTime+=m;return}var h=(w-this._startTime-this._pausedTime)/this._life;if(h<0)return;h=Math.min(h,1);var c=this.easing,i=typeof c=="string"?O[c]:c,r=typeof i=="function"?i(h):h;return this.fire("frame",r),h===1?this.loop?(this.restart(w),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(w){var m=(w-this._startTime-this._pausedTime)%this._life;this._startTime=w-m+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(w,m){w="on"+w,this[w]&&this[w](this._target,m)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var C=E;j.exports=C},RELg:function(j,P,d){var O=d("MFOe"),E=O.Global;j.exports={name:"oldIE-userDataStorage",write:h,read:c,each:i,remove:r,clearAll:o};var C="storejs",v=E.document,w=s(),m=(E.navigator?E.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function h(t,a){if(m)return;var l=e(t);w(function(u){u.setAttribute(l,a),u.save(C)})}function c(t){if(m)return;var a=e(t),l=null;return w(function(u){l=u.getAttribute(a)}),l}function i(t){w(function(a){for(var l=a.XMLDocument.documentElement.attributes,u=l.length-1;u>=0;u--){var f=l[u];t(a.getAttribute(f.name),f.name)}})}function r(t){var a=e(t);w(function(l){l.removeAttribute(a),l.save(C)})}function o(){w(function(t){var a=t.XMLDocument.documentElement.attributes;t.load(C);for(var l=a.length-1;l>=0;l--)t.removeAttribute(a[l].name);t.save(C)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(t){return t.replace(/^\d/,"___$&").replace(n,"___")}function s(){if(!v||!v.documentElement||!v.documentElement.addBehavior)return null;var t="script",a,l,u;try{l=new ActiveXObject("htmlfile"),l.open(),l.write("<"+t+">document.w=window</"+t+'><iframe src="/favicon.ico"></iframe>'),l.close(),a=l.w.frames[0].document,u=a.createElement("div")}catch(f){u=v.createElement("div"),a=v.body}return function(f){var p=[].slice.call(arguments,0);p.unshift(u),a.appendChild(u),u.addBehavior("#default#userData"),u.load(C),f.apply(this,p),a.removeChild(u);return}}},RPvy:function(j,P,d){var O=d("ProS"),E=d("VaxA"),C="sunburstRootToNode";O.registerAction({type:C,update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(i,r){var o=E.retrieveTargetInfo(m,[C],i);if(o){var n=i.getViewRoot();n&&(m.direction=E.aboveViewRoot(n,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}});var v="sunburstHighlight";O.registerAction({type:v,update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(i,r){var o=E.retrieveTargetInfo(m,[v],i);o&&(m.highlight=o.node)}});var w="sunburstUnhighlight";O.registerAction({type:w,update:"updateView"},function(m,h){h.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(i,r){m.unhighlight=!0}})},RSch:function(j,P,d){var O=d("IwbS"),E=d("bYtY");function C(m,h,c){O.Group.call(this),this._createPolyline(m,h,c)}var v=C.prototype;v._createPolyline=function(m,h,c){var i=m.getItemLayout(h),r=new O.Polyline({shape:{points:i}});this.add(r),this._updateCommonStl(m,h,c)},v.updateData=function(m,h,c){var i=m.hostModel,r=this.childAt(0),o={shape:{points:m.getItemLayout(h)}};O.updateProps(r,o,i,h),this._updateCommonStl(m,h,c)},v._updateCommonStl=function(m,h,c){var i=this.childAt(0),r=m.getItemModel(h),o=m.getItemVisual(h,"color"),n=c&&c.lineStyle,e=c&&c.hoverLineStyle;(!c||m.hasItemOption)&&(n=r.getModel("lineStyle").getLineStyle(),e=r.getModel("emphasis.lineStyle").getLineStyle()),i.useStyle(E.defaults({strokeNoScale:!0,fill:"none",stroke:o},n)),i.hoverStyle=e,O.setHoverStyle(this)},v.updateLayout=function(m,h){var c=this.childAt(0);c.setShape("points",m.getItemLayout(h))},E.inherits(C,O.Group);var w=C;j.exports=w},RXMa:function(j,P,d){var O=d("y+Vt"),E=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(v,w){var m=w.cx,h=w.cy,c=Math.PI*2;v.moveTo(m+w.r,h),v.arc(m,h,w.r,0,c,!1),v.moveTo(m+w.r0,h),v.arc(m,h,w.r0,0,c,!0)}});j.exports=E},RZPm:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("JgUQ")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="FileOutlined";var c=v.forwardRef(h);P.default=c},RlCK:function(j,P,d){var O=d("ProS"),E=d("bYtY");function C(v,w,m){var h={},c=v==="toggleSelected",i;return m.eachComponent("legend",function(r){c&&i!=null?r[i?"select":"unSelect"](w.name):v==="allSelect"||v==="inverseSelect"?r[v]():(r[v](w.name),i=r.isSelected(w.name));var o=r.getData();E.each(o,function(n){var e=n.get("name");if(e===`
`||e==="")return;var s=r.isSelected(e);h.hasOwnProperty(e)?h[e]=h[e]&&s:h[e]=s})}),v==="allSelect"||v==="inverseSelect"?{selected:h}:{name:w.name,selected:h}}O.registerAction("legendToggleSelect","legendselectchanged",E.curry(C,"toggleSelected")),O.registerAction("legendAllSelect","legendselectall",E.curry(C,"allSelect")),O.registerAction("legendInverseSelect","legendinverseselect",E.curry(C,"inverseSelect")),O.registerAction("legendSelect","legendselected",E.curry(C,"select")),O.registerAction("legendUnSelect","legendunselected",E.curry(C,"unSelect"))},RotF:function(j,P,d){j.exports=d("LSTS")},Rx6q:function(j,P){function d(O){var E=O.getRect(),C=O.getRangeInfo();return{coordSys:{type:"calendar",x:E.x,y:E.y,width:E.width,height:E.height,cellWidth:O.getCellWidth(),cellHeight:O.getCellHeight(),rangeInfo:{start:C.start,end:C.end,weeks:C.weeks,dayCount:C.allDay}},api:{coord:function(v,w){return O.dataToPoint(v,w)}}}}j.exports=d},"S/Yl":function(j,P,d){var O=d("Zvw2"),E=d("aX7z"),C=d("+TT/"),v=C.getLayoutRect,w=d("bYtY"),m=w.each;function h(i,r,o){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(i,r,o),this.model=i}h.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:h,_init:function(i,r,o){var n=this.dimension,e=new O(n,E.createScaleByModel(i),[0,0],i.get("type"),i.get("position")),s=e.type==="category";e.onBand=s&&i.get("boundaryGap"),e.inverse=i.get("inverse"),e.orient=i.get("orient"),i.axis=e,e.model=i,e.coordinateSystem=this,this._axis=e},update:function(i,r){i.eachSeries(function(o){if(o.coordinateSystem===this){var n=o.getData();m(n.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(n,e)},this),E.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(i,r){this._rect=v({left:i.get("left"),top:i.get("top"),right:i.get("right"),bottom:i.get("bottom"),width:i.get("width"),height:i.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var i=this._rect,r=this._axis,o=r.isHorizontal(),n=o?[0,i.width]:[0,i.height],e=r.reverse?1:0;r.setExtent(n[e],n[1-e]),this._updateAxisTransform(r,o?i.x:i.y)},_updateAxisTransform:function(i,r){var o=i.getExtent(),n=o[0]+o[1],e=i.isHorizontal();i.toGlobalCoord=e?function(s){return s+r}:function(s){return n-s+r},i.toLocalCoord=e?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(i){var r=this.getRect(),o=this.getAxis(),n=o.orient;return n==="horizontal"?o.contain(o.toLocalCoord(i[0]))&&i[1]>=r.y&&i[1]<=r.y+r.height:o.contain(o.toLocalCoord(i[1]))&&i[0]>=r.y&&i[0]<=r.y+r.height},pointToData:function(i){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(i[r.orient==="horizontal"?0:1]))]},dataToPoint:function(i){var r=this.getAxis(),o=this.getRect(),n=[],e=r.orient==="horizontal"?0:1;return i instanceof Array&&(i=i[0]),n[e]=r.toGlobalCoord(r.dataToCoord(+i)),n[1-e]=e===0?o.y+o.height/2:o.x+o.width/2,n}};var c=h;j.exports=c},S6kV:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.OFB=function(){var E=O.lib.BlockCipherMode.extend(),C=E.Encryptor=E.extend({processBlock:function(w,m){var h=this._cipher,c=h.blockSize,i=this._iv,r=this._keystream;i&&(r=this._keystream=i.slice(0),this._iv=void 0),h.encryptBlock(r,0);for(var o=0;o<c;o++)w[m+o]^=r[o]}});return E.Decryptor=C,E}(),O.mode.OFB})},"SA+Z":function(j,P,d){var O=d("wTVA"),E=d("EbDI"),C=d("ZhPi"),v=d("wkBT");function w(m){return O(m)||E(m)||C(m)||v()}j.exports=w,j.exports.__esModule=!0,j.exports.default=j.exports},"SA4+":function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("IwbS"),w=d("zYTA"),m=d("bYtY");function h(o,n,e){var s=o[1]-o[0];n=m.map(n,function(l){return{interval:[(l.interval[0]-o[0])/s,(l.interval[1]-o[0])/s]}});var t=n.length,a=0;return function(l){for(var u=a;u<t;u++){var f=n[u].interval;if(f[0]<=l&&l<=f[1]){a=u;break}}if(u===t)for(var u=a-1;u>=0;u--){var f=n[u].interval;if(f[0]<=l&&l<=f[1]){a=u;break}}return u>=0&&u<t&&e[u]}}function c(o,n){var e=o[1]-o[0];return n=[(n[0]-o[0])/e,(n[1]-o[0])/e],function(s){return s>=n[0]&&s<=n[1]}}function i(o){var n=o.dimensions;return n[0]==="lng"&&n[1]==="lat"}var r=C.extendChartView({type:"heatmap",render:function(o,n,e){var s;n.eachComponent("visualMap",function(a){a.eachTargetSeries(function(l){l===o&&(s=a)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=o.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(o,e,0,o.getData().count()):i(t)&&this._renderOnGeo(t,o,s,e)},incrementalPrepareRender:function(o,n,e){this.group.removeAll()},incrementalRender:function(o,n,e,s){var t=n.coordinateSystem;t&&this._renderOnCartesianAndCalendar(n,s,o.start,o.end,!0)},_renderOnCartesianAndCalendar:function(o,n,e,s,t){var a=o.coordinateSystem,l,u;if(a.type==="cartesian2d"){var f=a.getAxis("x"),p=a.getAxis("y");l=f.getBandWidth(),u=p.getBandWidth()}for(var g=this.group,A=o.getData(),y="itemStyle",x="emphasis.itemStyle",T="label",S="emphasis.label",b=o.getModel(y).getItemStyle(["color"]),_=o.getModel(x).getItemStyle(),I=o.getModel(T),L=o.getModel(S),D=a.type,N=D==="cartesian2d"?[A.mapDimension("x"),A.mapDimension("y"),A.mapDimension("value")]:[A.mapDimension("time"),A.mapDimension("value")],M=e;M<s;M++){var B;if(D==="cartesian2d"){if(isNaN(A.get(N[2],M)))continue;var R=a.dataToPoint([A.get(N[0],M),A.get(N[1],M)]);B=new v.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;B=new v.Rect({z2:1,shape:a.dataToRect([A.get(N[0],M)]).contentShape,style:{fill:A.getItemVisual(M,"color"),opacity:A.getItemVisual(M,"opacity")}})}var H=A.getItemModel(M);A.hasItemOption&&(b=H.getModel(y).getItemStyle(["color"]),_=H.getModel(x).getItemStyle(),I=H.getModel(T),L=H.getModel(S));var F=o.getRawValue(M),K="-";F&&F[2]!=null&&(K=F[2]),v.setLabelStyle(b,_,I,L,{labelFetcher:o,labelDataIndex:M,defaultText:K,isRectText:!0}),B.setStyle(b),v.setHoverStyle(B,A.hasItemOption?_:m.extend({},_)),B.incremental=t,t&&(B.useHoverLayer=!0),g.add(B),A.setItemGraphicEl(M,B)}},_renderOnGeo:function(o,n,e,s){var t=e.targetVisuals.inRange,a=e.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new w;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=o.getViewRect().clone(),p=o.getRoamTransform();f.applyTransform(p);var g=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()),T=y-g,S=x-A,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(N,M,B){var R=o.dataToPoint([N,M]);return R[0]-=g,R[1]-=A,R.push(B),R}),I=e.getExtent(),L=e.type==="visualMap.continuous"?c(I,e.option.range):h(I,e.getPieceList(),e.option.selected);u.update(_,T,S,t.color.getNormalizer(),{inRange:t.color.getColorMapper(),outOfRange:a.color.getColorMapper()},L);var D=new v.Image({style:{width:T,height:S,x:g,y:A,image:u.canvas},silent:!0});this.group.add(D)},dispose:function(){}});j.exports=r},SA8n:function(j,P,d){var O=d("Sj9i"),E=d("QBsz"),C=d("U/Mo"),v=C.getSymbolSize,w=[],m=[],h=[],c=O.quadraticAt,i=E.distSquare,r=Math.abs;function o(e,s,t){for(var a=e[0],l=e[1],u=e[2],f=Infinity,p,g=t*t,A=.1,y=.1;y<=.9;y+=.1){w[0]=c(a[0],l[0],u[0],y),w[1]=c(a[1],l[1],u[1],y);var x=r(i(w,s)-g);x<f&&(f=x,p=y)}for(var T=0;T<32;T++){var S=p+A;m[0]=c(a[0],l[0],u[0],p),m[1]=c(a[1],l[1],u[1],p),h[0]=c(a[0],l[0],u[0],S),h[1]=c(a[1],l[1],u[1],S);var x=i(m,s)-g;if(r(x)<.01)break;var b=i(h,s)-g;A/=2,x<0?b>=0?p=p+A:p=p-A:b>=0?p=p-A:p=p+A}return p}function n(e,s){var t=[],a=O.quadraticSubdivide,l=[[],[],[]],u=[[],[]],f=[];s/=2,e.eachEdge(function(p,g){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 T=A.__original;if(A[2]!=null){if(E.copy(l[0],T[0]),E.copy(l[1],T[2]),E.copy(l[2],T[1]),y&&y!=="none"){var S=v(p.node1),b=o(l,T[0],S*s);a(l[0][0],l[1][0],l[2][0],b,t),l[0][0]=t[3],l[1][0]=t[4],a(l[0][1],l[1][1],l[2][1],b,t),l[0][1]=t[3],l[1][1]=t[4]}if(x&&x!=="none"){var S=v(p.node2),b=o(l,T[1],S*s);a(l[0][0],l[1][0],l[2][0],b,t),l[1][0]=t[1],l[2][0]=t[2],a(l[0][1],l[1][1],l[2][1],b,t),l[1][1]=t[1],l[2][1]=t[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],T[0]),E.copy(u[1],T[1]),E.sub(f,u[1],u[0]),E.normalize(f,f),y&&y!=="none"){var S=v(p.node1);E.scaleAndAdd(u[0],u[0],f,S*s)}if(x&&x!=="none"){var S=v(p.node2);E.scaleAndAdd(u[1],u[1],f,-S*s)}E.copy(A[0],u[0]),E.copy(A[1],u[1])}})}j.exports=n},SJMd:function(j,P){/**
* @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,O,E,C=!1,v,w;window.PR_SHOULD_USE_CONTINUATION=!0;var m,h;(function(){var c=window,i=["break,continue,do,else,for,if,return,while"],r=[i,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],n=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],e=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],t="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",a=[o,"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=[i,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],f=[i,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],p=[i,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],g=[n,s,e,a,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",T="com",S="typ",b="lit",_="pun",I="pln",L="tag",D="dec",N="src",M="atn",B="atv",R="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(ne){for(var X=0,G=!1,te=!1,we=0,he=ne.length;we<he;++we){var Pe=ne[we];if(Pe.ignoreCase)te=!0;else if(/[a-z]/i.test(Pe.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){G=!0,te=!1;break}}var Oe={b:8,t:9,n:10,v:11,f:12,r:13};function le(et){var Ie=et.charCodeAt(0);if(Ie!==92)return Ie;var rt=et.charAt(1);return Ie=Oe[rt],Ie||("0"<=rt&&rt<="7"?parseInt(et.substring(1),8):rt==="u"||rt==="x"?parseInt(et.substring(2),16):et.charCodeAt(1))}function me(et){if(et<32)return(et<16?"\\x0":"\\x")+et.toString(16);var Ie=String.fromCharCode(et);return Ie==="\\"||Ie==="-"||Ie==="]"||Ie==="^"?"\\"+Ie:Ie}function _e(et){var Ie=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")),rt=[],Ge=Ie[0]==="^",vt=["["];Ge&&vt.push("^");for(var Ot=Ge?1:0,Et=Ie.length;Ot<Et;++Ot){var Tt=Ie[Ot];if(/\\[bdsw]/i.test(Tt))vt.push(Tt);else{var Rt=le(Tt),Be;Ot+2<Et&&Ie[Ot+1]==="-"?(Be=le(Ie[Ot+2]),Ot+=2):Be=Rt,rt.push([Rt,Be]),Be<65||Rt>122||(Be<65||Rt>90||rt.push([Math.max(65,Rt)|32,Math.min(Be,90)|32]),Be<97||Rt>122||rt.push([Math.max(97,Rt)&~32,Math.min(Be,122)&~32]))}}rt.sort(function(Re,oe){return Re[0]-oe[0]||oe[1]-Re[1]});for(var Z=[],J=[],Ot=0;Ot<rt.length;++Ot){var je=rt[Ot];je[0]<=J[1]+1?J[1]=Math.max(J[1],je[1]):Z.push(J=je)}for(var Ot=0;Ot<Z.length;++Ot){var je=Z[Ot];vt.push(me(je[0])),je[1]>je[0]&&(je[1]+1>je[0]&&vt.push("-"),vt.push(me(je[1])))}return vt.push("]"),vt.join("")}function $e(et){for(var Ie=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")),rt=Ie.length,Ge=[],vt=0,Ot=0;vt<rt;++vt){var Et=Ie[vt];if(Et==="(")++Ot;else if(Et.charAt(0)==="\\"){var Tt=+Et.substring(1);Tt&&(Tt<=Ot?Ge[Tt]=-1:Ie[vt]=me(Tt))}}for(var vt=1;vt<Ge.length;++vt)Ge[vt]===-1&&(Ge[vt]=++X);for(var vt=0,Ot=0;vt<rt;++vt){var Et=Ie[vt];if(Et==="(")++Ot,Ge[Ot]||(Ie[vt]="(?:");else if(Et.charAt(0)==="\\"){var Tt=+Et.substring(1);Tt&&Tt<=Ot&&(Ie[vt]="\\"+Ge[Tt])}}for(var vt=0;vt<rt;++vt)Ie[vt]==="^"&&Ie[vt+1]!=="^"&&(Ie[vt]="");if(et.ignoreCase&&G)for(var vt=0;vt<rt;++vt){var Et=Ie[vt],Rt=Et.charAt(0);Et.length>=2&&Rt==="["?Ie[vt]=_e(Et):Rt!=="\\"&&(Ie[vt]=Et.replace(/[a-zA-Z]/g,function(J){var je=J.charCodeAt(0);return"["+String.fromCharCode(je&~32,je|32)+"]"}))}return Ie.join("")}for(var gt=[],we=0,he=ne.length;we<he;++we){var Pe=ne[we];if(Pe.global||Pe.multiline)throw new Error(""+Pe);gt.push("(?:"+$e(Pe)+")")}return new RegExp(gt.join("|"),te?"gi":"g")}function K(ne,X){var G=/(?:^|\s)nocode(?:\s|$)/,te=[],we=0,he=[],Pe=0;function Oe(le){var me=le.nodeType;if(me==1){if(G.test(le.className))return;for(var _e=le.firstChild;_e;_e=_e.nextSibling)Oe(_e);var $e=le.nodeName.toLowerCase();($e==="br"||$e==="li")&&(te[Pe]=`
`,he[Pe<<1]=we++,he[Pe++<<1|1]=le)}else if(me==3||me==4){var gt=le.nodeValue;gt.length&&(X?gt=gt.replace(/\r\n?/g,`
`):gt=gt.replace(/[ \t\r\n]+/g," "),te[Pe]=gt,he[Pe<<1]=we,we+=gt.length,he[Pe++<<1|1]=le)}}return Oe(ne),{sourceCode:te.join("").replace(/\n$/,""),spans:he}}function U(ne,X,G,te,we){if(!G)return;var he={sourceNode:ne,pre:1,langExtension:null,numberLines:null,sourceCode:G,spans:null,basePos:X,decorations:null};te(he),we.push.apply(we,he.decorations)}var V=/\S/;function z(ne){for(var X=void 0,G=ne.firstChild;G;G=G.nextSibling){var te=G.nodeType;X=te===1?X?ne:G:te===3&&V.test(G.nodeValue)?ne:X}return X===ne?void 0:X}function Y(ne,X){var G={},te;(function(){for(var Pe=ne.concat(X),Oe=[],le={},me=0,_e=Pe.length;me<_e;++me){var $e=Pe[me],gt=$e[3];if(gt)for(var et=gt.length;--et>=0;)G[gt.charAt(et)]=$e;var Ie=$e[1],rt=""+Ie;le.hasOwnProperty(rt)||(Oe.push(Ie),le[rt]=null)}Oe.push(/[\0-\uffff]/),te=F(Oe)})();var we=X.length,he=function Pe(Oe){for(var le=Oe.sourceCode,me=Oe.basePos,_e=Oe.sourceNode,$e=[me,I],gt=0,et=le.match(te)||[],Ie={},rt=0,Ge=et.length;rt<Ge;++rt){var vt=et[rt],Ot=Ie[vt],Et=void 0,Tt;if(typeof Ot=="string")Tt=!1;else{var Rt=G[vt.charAt(0)];if(Rt)Et=vt.match(Rt[1]),Ot=Rt[0];else{for(var Be=0;Be<we;++Be)if(Rt=X[Be],Et=vt.match(Rt[1]),Et){Ot=Rt[0];break}Et||(Ot=I)}Tt=Ot.length>=5&&Ot.substring(0,5)==="lang-",Tt&&!(Et&&typeof Et[1]=="string")&&(Tt=!1,Ot=N),Tt||(Ie[vt]=Ot)}var Z=gt;if(gt+=vt.length,!Tt)$e.push(me+Z,Ot);else{var J=Et[1],je=vt.indexOf(J),Re=je+J.length;Et[2]&&(Re=vt.length-Et[2].length,je=Re-J.length);var oe=Ot.substring(5);U(_e,me+Z,vt.substring(0,je),Pe,$e),U(_e,me+Z+je,J,He(oe,J),$e),U(_e,me+Z+Re,vt.substring(Re),Pe,$e)}}Oe.decorations=$e};return he}function q(ne){var X=[],G=[];ne.tripleQuotedStrings?X.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ne.multiLineStrings?X.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):X.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ne.verbatimStrings&&G.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var te=ne.hashComments;te&&(ne.cStyleComments?(te>1?X.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):X.push([T,/^#(?:(?: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([T,/^#[^\r\n]*/,null,"#"])),ne.cStyleComments&&(G.push([T,/^\/\/[^\r\n]*/,null]),G.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var we=ne.regexLiterals;if(we){var he=we>1?"":`
\r`,Pe=he?".":"[\\S\\s]",Oe="/(?=[^/*"+he+"])(?:[^/\\x5B\\x5C"+he+"]|\\x5C"+Pe+"|\\x5B(?:[^\\x5C\\x5D"+he+"]|\\x5C"+Pe+")*(?:\\x5D|$))+/";G.push(["lang-regex",RegExp("^"+H+"("+Oe+")")])}var le=ne.types;le&&G.push([S,le]);var me=(""+ne.keywords).replace(/^ | $/g,"");me.length&&G.push([x,new RegExp("^(?:"+me.replace(/[\s,]+/g,"|")+")\\b"),null]),X.push([I,/^\s+/,null,` \r
\xA0`]);var _e="^.[^\\s\\w.$@'\"`/\\\\]*";return ne.regexLiterals&&(_e+="(?!s*/)"),G.push([b,/^@[a-z_$][a-z_$@0-9]*/i,null],[S,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[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"],[I,/^\\[\s\S]?/,null],[_,new RegExp(_e),null]),Y(X,G)}var ce=q({keywords:g,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ie(ne,X,G){for(var te=/(?:^|\s)nocode(?:\s|$)/,we=/\r\n?|\n/,he=ne.ownerDocument,Pe=he.createElement("li");ne.firstChild;)Pe.appendChild(ne.firstChild);var Oe=[Pe];function le(Ie){var rt=Ie.nodeType;if(rt==1&&!te.test(Ie.className))if(Ie.nodeName==="br")me(Ie),Ie.parentNode&&Ie.parentNode.removeChild(Ie);else for(var Ge=Ie.firstChild;Ge;Ge=Ge.nextSibling)le(Ge);else if((rt==3||rt==4)&&G){var vt=Ie.nodeValue,Ot=vt.match(we);if(Ot){var Et=vt.substring(0,Ot.index);Ie.nodeValue=Et;var Tt=vt.substring(Ot.index+Ot[0].length);if(Tt){var Rt=Ie.parentNode;Rt.insertBefore(he.createTextNode(Tt),Ie.nextSibling)}me(Ie),Et||Ie.parentNode.removeChild(Ie)}}}function me(Ie){for(;!Ie.nextSibling;)if(Ie=Ie.parentNode,!Ie)return;function rt(Ot,Et){var Tt=Et?Ot.cloneNode(!1):Ot,Rt=Ot.parentNode;if(Rt){var Be=rt(Rt,1),Z=Ot.nextSibling;Be.appendChild(Tt);for(var J=Z;J;J=Z)Z=J.nextSibling,Be.appendChild(J)}return Tt}for(var Ge=rt(Ie.nextSibling,0),vt;(vt=Ge.parentNode)&&vt.nodeType===1;)Ge=vt;Oe.push(Ge)}for(var _e=0;_e<Oe.length;++_e)le(Oe[_e]);X===(X|0)&&Oe[0].setAttribute("value",X);var $e=he.createElement("ol");$e.className="linenums";for(var gt=Math.max(0,X-1|0)||0,_e=0,et=Oe.length;_e<et;++_e)Pe=Oe[_e],Pe.className="L"+(_e+gt)%10,Pe.firstChild||Pe.appendChild(he.createTextNode("\xA0")),$e.appendChild(Pe);ne.appendChild($e)}function ve(ne){var X=/\bMSIE\s(\d+)/.exec(navigator.userAgent);X=X&&+X[1]<=8;var G=/\n/g,te=ne.sourceCode,we=te.length,he=0,Pe=ne.spans,Oe=Pe.length,le=0,me=ne.decorations,_e=me.length,$e=0;me[_e]=we;var gt,et;for(et=gt=0;et<_e;)me[et]!==me[et+2]?(me[gt++]=me[et++],me[gt++]=me[et++]):et+=2;for(_e=gt,et=gt=0;et<_e;){for(var Ie=me[et],rt=me[et+1],Ge=et+2;Ge+2<=_e&&me[Ge+1]===rt;)Ge+=2;me[gt++]=Ie,me[gt++]=rt,et=Ge}_e=me.length=gt;var vt=ne.sourceNode,Ot="";vt&&(Ot=vt.style.display,vt.style.display="none");try{for(var Et=null;le<Oe;){var Tt=Pe[le],Rt=Pe[le+2]||we,Be=me[$e+2]||we,Ge=Math.min(Rt,Be),Z=Pe[le+1],J;if(Z.nodeType!==1&&(J=te.substring(he,Ge))){X&&(J=J.replace(G,"\r")),Z.nodeValue=J;var je=Z.ownerDocument,Re=je.createElement("span");Re.className=me[$e+1];var oe=Z.parentNode;oe.replaceChild(Re,Z),Re.appendChild(Z),he<Rt&&(Pe[le+1]=Z=je.createTextNode(te.substring(Ge,Rt)),oe.insertBefore(Z,Re.nextSibling))}he=Ge,he>=Rt&&(le+=2),he>=Be&&($e+=2)}}finally{vt&&(vt.style.display=Ot)}}var Ee={};function Le(ne,X){for(var G=X.length;--G>=0;){var te=X[G];Ee.hasOwnProperty(te)?c.console&&console.warn("cannot override language handler %s",te):Ee[te]=ne}}function He(ne,X){return ne&&Ee.hasOwnProperty(ne)||(ne=/^\s*</.test(X)?"default-markup":"default-code"),Ee[ne]}Le(ce,["default-code"]),Le(Y([],[[I,/^[^<?]+/],[D,/^<!\w[^>]*(?:>|$)/],[T,/^<\!--[\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"]),Le(Y([[I,/^[\s]+/,null,` \r
`],[B,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,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"]),Le(Y([],[[B,/^[\s\S]+/]]),["uq.val"]),Le(q({keywords:n,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),Le(q({keywords:"null,true,false"}),["json"]),Le(q({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),Le(q({keywords:e,cStyleComments:!0}),["java"]),Le(q({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Le(q({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Le(q({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Le(q({keywords:f,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Le(q({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Le(q({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Le(Y([],[[y,/^[\s\S]+/]]),["regex"]);function ge(ne){var X=ne.langExtension;try{var G=K(ne.sourceNode,ne.pre),te=G.sourceCode;ne.sourceCode=te,ne.spans=G.spans,ne.basePos=0,He(X,te)(ne),ve(ne)}catch(we){c.console&&console.log(we&&we.stack||we)}}function Fe(ne,X,G){var te=G||!1,we=X||null,he=document.createElement("div");he.innerHTML="<pre>"+ne+"</pre>",he=he.firstChild,te&&ie(he,te,!0);var Pe={langExtension:we,numberLines:te,sourceNode:he,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ge(Pe),he.innerHTML}function Q(ne,X){var G=X||document.body,te=G.ownerDocument||document;function we(Tt){return G.getElementsByTagName(Tt)}for(var he=[we("pre"),we("code"),we("xmp")],Pe=[],Oe=0;Oe<he.length;++Oe)for(var le=0,me=he[Oe].length;le<me;++le)Pe.push(he[Oe][le]);he=null;var _e=Date;_e.now||(_e={now:function(){return+new Date}});var $e=0,gt=/\blang(?:uage)?-([\w.]+)(?!\S)/,et=/\bprettyprint\b/,Ie=/\bprettyprinted\b/,rt=/pre|xmp/i,Ge=/^code$/i,vt=/^(?:pre|code|xmp)$/i,Ot={};function Et(){for(var Tt=c.PR_SHOULD_USE_CONTINUATION?_e.now()+250:Infinity;$e<Pe.length&&_e.now()<Tt;$e++){for(var Rt=Pe[$e],Be=Ot,Z=Rt;Z=Z.previousSibling;){var J=Z.nodeType,je=(J===7||J===8)&&Z.nodeValue;if(je?!/^\??prettify\b/.test(je):J!==3||/\S/.test(Z.nodeValue))break;if(je){Be={},je.replace(/\b(\w+)=([\w:.%+-]+)/g,function(mt,Yr,Tn){Be[Yr]=Tn});break}}var Re=Rt.className;if((Be!==Ot||et.test(Re))&&!Ie.test(Re)){for(var oe=!1,yt=Rt.parentNode;yt;yt=yt.parentNode){var zt=yt.tagName;if(vt.test(zt)&&yt.className&&et.test(yt.className)){oe=!0;break}}if(!oe){Rt.className+=" prettyprinted";var lt=Be.lang;if(!lt){lt=Re.match(gt);var $t;!lt&&($t=z(Rt))&&Ge.test($t.tagName)&&(lt=$t.className.match(gt)),lt&&(lt=lt[1])}var cr;if(rt.test(Rt.tagName))cr=1;else{var cn=Rt.currentStyle,pr=te.defaultView,gr=cn?cn.whiteSpace:pr&&pr.getComputedStyle?pr.getComputedStyle(Rt,null).getPropertyValue("white-space"):0;cr=gr&&gr.substring(0,3)==="pre"}var Zt=Be.linenums;(Zt=Zt==="true"||+Zt)||(Zt=Re.match(/\blinenums\b(?::(\d+))?/),Zt=Zt?Zt[1]&&Zt[1].length?+Zt[1]:!0:!1),Zt&&ie(Rt,Zt,cr);var Vt={langExtension:lt,sourceNode:Rt,numberLines:Zt,pre:cr,sourceCode:null,basePos:null,spans:null,decorations:null};ge(Vt)}}}$e<Pe.length?c.setTimeout(Et,250):typeof ne=="function"&&ne()}Et()}var fe=c.PR={createSimpleLexer:Y,registerLangHandler:Le,sourceDecorator:q,PR_ATTRIB_NAME:M,PR_ATTRIB_VALUE:B,PR_COMMENT:T,PR_DECLARATION:D,PR_KEYWORD:x,PR_LITERAL:b,PR_NOCODE:R,PR_PLAIN:I,PR_PUNCTUATION:_,PR_SOURCE:N,PR_STRING:y,PR_TAG:L,PR_TYPE:S,prettyPrintOne:C?c.prettyPrintOne=Fe:m=Fe,prettyPrint:h=C?c.prettyPrint=Q:h=Q},Je=c.define;typeof Je=="function"&&Je.amd&&Je("google-code-prettify",[],function(){return fe})})()},SKnc:function(j,P,d){var O=d("bYtY"),E=d("QuXc"),C=function(m,h,c,i,r,o){this.x=m==null?0:m,this.y=h==null?0:h,this.x2=c==null?1:c,this.y2=i==null?0:i,this.type="linear",this.global=o||!1,E.call(this,r)};C.prototype={constructor:C},O.inherits(C,E);var v=C;j.exports=v},"SKx+":function(j,P,d){var O=d("ProS"),E=O.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}}}),C=E;j.exports=C},SMc4:function(j,P,d){var O=d("bYtY"),E=d("bLfw"),C=d("nkfE"),v=d("ICMv"),w=E.extend({type:"cartesian2dAxis",axis:null,init:function(){w.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){w.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){w.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(i,r){return r.type||(r.data?"category":"value")}O.merge(w.prototype,v);var h={offset:0};C("x",w,m,h),C("y",w,m,h);var c=w;j.exports=c},SRve:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},SUKs:function(j,P,d){var O=d("LPTA"),E=O.debugMode,C=function(){};E===1&&(C=console.error);var v=C;j.exports=v},SZEN:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.clientToElement=O;function O(E,C,v){var w=v.getBoundingClientRect(),m={x:0,y:0};return E<w.left?m.x=0:E>=w.right?m.x=w.width-1:m.x=E-w.left,C<w.top?m.y=0:C>=w.bottom?m.y=w.height-1:m.y=C-w.top,m}},Sdc0:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("q1tI"),m=d("rePB"),h=d("ODXe"),c=d("Ff2n"),i=d("TSYQ"),r=d.n(i),o=d("6cGi"),n=d("4IlW"),e=w.forwardRef(function(x,T){var S,b=x.prefixCls,_=b===void 0?"rc-switch":b,I=x.className,L=x.checked,D=x.defaultChecked,N=x.disabled,M=x.loadingIcon,B=x.checkedChildren,R=x.unCheckedChildren,H=x.onClick,F=x.onChange,K=x.onKeyDown,U=Object(c.a)(x,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),V=Object(o.a)(!1,{value:L,defaultValue:D}),z=Object(h.a)(V,2),Y=z[0],q=z[1];function ce(Le,He){var ge=Y;return N||(ge=Le,q(ge),F==null||F(ge,He)),ge}function ie(Le){Le.which===n.a.LEFT?ce(!1,Le):Le.which===n.a.RIGHT&&ce(!0,Le),K==null||K(Le)}function ve(Le){var He=ce(!Y,Le);H==null||H(He,Le)}var Ee=r()(_,I,(S={},Object(m.a)(S,"".concat(_,"-checked"),Y),Object(m.a)(S,"".concat(_,"-disabled"),N),S));return w.createElement("button",Object.assign({},U,{type:"button",role:"switch","aria-checked":Y,disabled:N,className:Ee,ref:T,onKeyDown:ie,onClick:ve}),M,w.createElement("span",{className:"".concat(_,"-inner")},Y?B:R))});e.displayName="Switch";var s=e,t=d("gZBC"),a=d.n(t),l=d("g0mS"),u=d("H84U"),f=d("3Nzz"),p=d("uaoM"),g=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S},A=w.forwardRef(function(x,T){var S,b=x.prefixCls,_=x.size,I=x.loading,L=x.className,D=L===void 0?"":L,N=x.disabled,M=g(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 B=w.useContext(u.b),R=B.getPrefixCls,H=B.direction,F=w.useContext(f.b),K=R("switch",b),U=w.createElement("div",{className:"".concat(K,"-handle")},I&&w.createElement(a.a,{className:"".concat(K,"-loading-icon")})),V=r()(D,(S={},v()(S,"".concat(K,"-small"),(_||F)==="small"),v()(S,"".concat(K,"-loading"),I),v()(S,"".concat(K,"-rtl"),H==="rtl"),S));return w.createElement(l.a,{insertExtraNode:!0},w.createElement(s,E()({},M,{prefixCls:K,className:V,disabled:N||I,ref:T,loadingIcon:U})))});A.__ANT_SWITCH=!0,A.displayName="Switch";var y=P.a=A},SehX:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("2B6p"),v=C.updateCenterAndZoom;O.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(w,m){var h=w.componentType||"series";m.eachComponent({mainType:h,query:w},function(c){var i=c.coordinateSystem;if(i.type!=="geo")return;var r=v(i,w,c.get("scaleLimit"));c.setCenter&&c.setCenter(r.center),c.setZoom&&c.setZoom(r.zoom),h==="series"&&E.each(c.seriesGroup,function(o){o.setCenter(r.center),o.setZoom(r.zoom)})})})},SgGq:function(j,P,d){var O=d("bYtY"),E=d("H6uX"),C=d("YH21"),v=d("pP6R");function w(t){this.pointerChecker,this._zr=t,this._opt={};var a=O.bind,l=a(m,this),u=a(h,this),f=a(c,this),p=a(i,this),g=a(r,this);E.call(this),this.setPointerChecker=function(A){this.pointerChecker=A},this.enable=function(A,y){this.disable(),this._opt=O.defaults(O.clone(y)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),A==null&&(A=!0),(A===!0||A==="move"||A==="pan")&&(t.on("mousedown",l),t.on("mousemove",u),t.on("mouseup",f)),(A===!0||A==="scale"||A==="zoom")&&(t.on("mousewheel",p),t.on("pinch",g))},this.disable=function(){t.off("mousedown",l),t.off("mousemove",u),t.off("mouseup",f),t.off("mousewheel",p),t.off("pinch",g)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}O.mixin(w,E);function m(t){if(C.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)return;var a=t.offsetX,l=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,l)&&(this._x=a,this._y=l,this._dragging=!0)}function h(t){if(!this._dragging||!e("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||v.isTaken(this._zr,"globalPan"))return;var a=t.offsetX,l=t.offsetY,u=this._x,f=this._y,p=a-u,g=l-f;this._x=a,this._y=l,this._opt.preventDefaultMouseMove&&C.stop(t.event),n(this,"pan","moveOnMouseMove",t,{dx:p,dy:g,oldX:u,oldY:f,newX:a,newY:l})}function c(t){C.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function i(t){var a=e("zoomOnMouseWheel",t,this._opt),l=e("moveOnMouseWheel",t,this._opt),u=t.wheelDelta,f=Math.abs(u),p=t.offsetX,g=t.offsetY;if(u===0||!a&&!l)return;if(a){var A=f>3?1.4:f>1?1.2:1.1,y=u>0?A:1/A;o(this,"zoom","zoomOnMouseWheel",t,{scale:y,originX:p,originY:g})}if(l){var x=Math.abs(u),T=(u>0?1:-1)*(x>3?.4:x>1?.15:.05);o(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:T,originX:p,originY:g})}}function r(t){if(v.isTaken(this._zr,"globalPan"))return;var a=t.pinchScale>1?1.1:1/1.1;o(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY})}function o(t,a,l,u,f){t.pointerChecker&&t.pointerChecker(u,f.originX,f.originY)&&(C.stop(u.event),n(t,a,l,u,f))}function n(t,a,l,u,f){f.isAvailableBehavior=O.bind(e,null,l,u),t.trigger(a,f)}function e(t,a,l){var u=l[t];return!t||u&&(!O.isString(u)||a.event[u+"Key"])}var s=w;j.exports=s},SgaC:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,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(w,c.key,c)}}function C(w,m,h){return m&&E(w.prototype,m),h&&E(w,h),w}var v=function(){function w(){O(this,w),this._subrects=0}return C(w,[{key:"decodeRect",value:function(h,c,i,r,o,n,e){if(this._subrects===0){if(o.rQwait("RRE",4+4))return!1;this._subrects=o.rQshift32();var s=o.rQshiftBytes(4);n.fillRect(h,c,i,r,s)}for(;this._subrects>0;){if(o.rQwait("RRE",4+8))return!1;var t=o.rQshiftBytes(4),a=o.rQshift16(),l=o.rQshift16(),u=o.rQshift16(),f=o.rQshift16();n.fillRect(h+a,c+l,u,f,t),this._subrects--}return!0}}]),w}();P.default=v},Sj0X:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("XuBP")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="DownOutlined";var c=v.forwardRef(h);P.default=c},Sj9i:function(j,P,d){var O=d("QBsz"),E=O.create,C=O.distSquare,v=Math.pow,w=Math.sqrt,m=1e-8,h=1e-4,c=w(3),i=1/3,r=E(),o=E(),n=E();function e(b){return b>-m&&b<m}function s(b){return b>m||b<-m}function t(b,_,I,L,D){var N=1-D;return N*N*(N*b+3*D*_)+D*D*(D*L+3*N*I)}function a(b,_,I,L,D){var N=1-D;return 3*(((_-b)*N+2*(I-_)*D)*N+(L-I)*D*D)}function l(b,_,I,L,D,N){var M=L+3*(_-I)-b,B=3*(I-_*2+b),R=3*(_-b),H=b-D,F=B*B-3*M*R,K=B*R-9*M*H,U=R*R-3*B*H,V=0;if(e(F)&&e(K))if(e(B))N[0]=0;else{var z=-R/B;z>=0&&z<=1&&(N[V++]=z)}else{var Y=K*K-4*F*U;if(e(Y)){var q=K/F,z=-B/M+q,ce=-q/2;z>=0&&z<=1&&(N[V++]=z),ce>=0&&ce<=1&&(N[V++]=ce)}else if(Y>0){var ie=w(Y),ve=F*B+1.5*M*(-K+ie),Ee=F*B+1.5*M*(-K-ie);ve<0?ve=-v(-ve,i):ve=v(ve,i),Ee<0?Ee=-v(-Ee,i):Ee=v(Ee,i);var z=(-B-(ve+Ee))/(3*M);z>=0&&z<=1&&(N[V++]=z)}else{var Le=(2*F*B-3*M*K)/(2*w(F*F*F)),He=Math.acos(Le)/3,ge=w(F),Fe=Math.cos(He),z=(-B-2*ge*Fe)/(3*M),ce=(-B+ge*(Fe+c*Math.sin(He)))/(3*M),Q=(-B+ge*(Fe-c*Math.sin(He)))/(3*M);z>=0&&z<=1&&(N[V++]=z),ce>=0&&ce<=1&&(N[V++]=ce),Q>=0&&Q<=1&&(N[V++]=Q)}}return V}function u(b,_,I,L,D){var N=6*I-12*_+6*b,M=9*_+3*L-3*b-9*I,B=3*_-3*b,R=0;if(e(M)){if(s(N)){var H=-B/N;H>=0&&H<=1&&(D[R++]=H)}}else{var F=N*N-4*M*B;if(e(F))D[0]=-N/(2*M);else if(F>0){var K=w(F),H=(-N+K)/(2*M),U=(-N-K)/(2*M);H>=0&&H<=1&&(D[R++]=H),U>=0&&U<=1&&(D[R++]=U)}}return R}function f(b,_,I,L,D,N){var M=(_-b)*D+b,B=(I-_)*D+_,R=(L-I)*D+I,H=(B-M)*D+M,F=(R-B)*D+B,K=(F-H)*D+H;N[0]=b,N[1]=M,N[2]=H,N[3]=K,N[4]=K,N[5]=F,N[6]=R,N[7]=L}function p(b,_,I,L,D,N,M,B,R,H,F){var K,U=.005,V=Infinity,z,Y,q,ce;r[0]=R,r[1]=H;for(var ie=0;ie<1;ie+=.05)o[0]=t(b,I,D,M,ie),o[1]=t(_,L,N,B,ie),q=C(r,o),q<V&&(K=ie,V=q);V=Infinity;for(var ve=0;ve<32&&!(U<h);ve++)z=K-U,Y=K+U,o[0]=t(b,I,D,M,z),o[1]=t(_,L,N,B,z),q=C(o,r),z>=0&&q<V?(K=z,V=q):(n[0]=t(b,I,D,M,Y),n[1]=t(_,L,N,B,Y),ce=C(n,r),Y<=1&&ce<V?(K=Y,V=ce):U*=.5);return F&&(F[0]=t(b,I,D,M,K),F[1]=t(_,L,N,B,K)),w(V)}function g(b,_,I,L){var D=1-L;return D*(D*b+2*L*_)+L*L*I}function A(b,_,I,L){return 2*((1-L)*(_-b)+L*(I-_))}function y(b,_,I,L,D){var N=b-2*_+I,M=2*(_-b),B=b-L,R=0;if(e(N)){if(s(M)){var H=-B/M;H>=0&&H<=1&&(D[R++]=H)}}else{var F=M*M-4*N*B;if(e(F)){var H=-M/(2*N);H>=0&&H<=1&&(D[R++]=H)}else if(F>0){var K=w(F),H=(-M+K)/(2*N),U=(-M-K)/(2*N);H>=0&&H<=1&&(D[R++]=H),U>=0&&U<=1&&(D[R++]=U)}}return R}function x(b,_,I){var L=b+I-2*_;return L===0?.5:(b-_)/L}function T(b,_,I,L,D){var N=(_-b)*L+b,M=(I-_)*L+_,B=(M-N)*L+N;D[0]=b,D[1]=N,D[2]=B,D[3]=B,D[4]=M,D[5]=I}function S(b,_,I,L,D,N,M,B,R){var H,F=.005,K=Infinity;r[0]=M,r[1]=B;for(var U=0;U<1;U+=.05){o[0]=g(b,I,D,U),o[1]=g(_,L,N,U);var V=C(r,o);V<K&&(H=U,K=V)}K=Infinity;for(var z=0;z<32&&!(F<h);z++){var Y=H-F,q=H+F;o[0]=g(b,I,D,Y),o[1]=g(_,L,N,Y);var V=C(o,r);if(Y>=0&&V<K)H=Y,K=V;else{n[0]=g(b,I,D,q),n[1]=g(_,L,N,q);var ce=C(n,r);q<=1&&ce<K?(H=q,K=ce):F*=.5}}return R&&(R[0]=g(b,I,D,H),R[1]=g(_,L,N,H)),w(K)}P.cubicAt=t,P.cubicDerivativeAt=a,P.cubicRootAt=l,P.cubicExtrema=u,P.cubicSubdivide=f,P.cubicProjectPoint=p,P.quadraticAt=g,P.quadraticDerivativeAt=A,P.quadraticRootAt=y,P.quadraticExtremum=x,P.quadraticSubdivide=T,P.quadraticProjectPoint=S},Sp2Z:function(j,P,d){var O=d("3LNs"),E=d("/y7N"),C=d("AVZG"),v=d("Znkb"),w=O.extend({makeElOption:function(r,o,n,e,s){var t=n.axis,a=t.grid,l=e.get("type"),u=m(a,t).getOtherAxis(t).getGlobalExtent(),f=t.toGlobalCoord(t.dataToCoord(o,!0));if(l&&l!=="none"){var p=E.buildElStyle(e),g=h[l](t,f,u);g.style=p,r.graphicKey=g.type,r.pointer=g}var A=C.layout(a.model,n);E.buildCartesianSingleLabelElOption(o,r,A,n,e,s)},getHandleTransform:function(r,o,n){var e=C.layout(o.axis.grid.model,o,{labelInside:!1});return e.labelMargin=n.get("handle.margin"),{position:E.getTransformedPosition(o.axis,r,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(r,o,n,e){var s=n.axis,t=s.grid,a=s.getGlobalExtent(!0),l=m(t,s).getOtherAxis(s).getGlobalExtent(),u=s.dim==="x"?0:1,f=r.position;f[u]+=o[u],f[u]=Math.min(a[1],f[u]),f[u]=Math.max(a[0],f[u]);var p=(l[1]+l[0])/2,g=[p,p];g[u]=f[u];var A=[{verticalAlign:"middle"},{align:"center"}];return{position:f,rotation:r.rotation,cursorPoint:g,tooltipOption:A[u]}}});function m(r,o){var n={};return n[o.dim+"AxisIndex"]=o.index,r.getCartesian(n)}var h={line:function(r,o,n){var e=E.makeLineShape([o,n[0]],[o,n[1]],c(r));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(r,o,n){var e=Math.max(1,r.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:E.makeRectShape([o-e/2,n[0]],[e,s],c(r))}}};function c(r){return r.dim==="x"?0:1}v.registerAxisPointerClass("CartesianAxisPointer",w);var i=w;j.exports=i},Sq3C:function(j,P,d){var O=d("sKgW"),E=d("zoYe"),C=d("wy8a"),v=d("quyA"),w=d("Z1HP"),m=d("Em2t"),h=Math.ceil;function c(i,r){r=r===void 0?" ":E(r);var o=r.length;if(o<2)return o?O(r,i):r;var n=O(r,h(i/w(r)));return v(r)?C(m(n),0,i).join(""):n.slice(0,i)}j.exports=c},SqI9:function(j,P,d){var O=d("y+Vt"),E=d("iXp4"),C=O.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:E(O.prototype.brush),buildPath:function(w,m){var h=m.cx,c=m.cy,i=Math.max(m.r0||0,0),r=Math.max(m.r,0),o=m.startAngle,n=m.endAngle,e=m.clockwise,s=Math.cos(o),t=Math.sin(o);w.moveTo(s*i+h,t*i+c),w.lineTo(s*r+h,t*r+c),w.arc(h,c,r,o,n,!e),w.lineTo(Math.cos(n)*i+h,Math.sin(n)*i+c),i!==0&&w.arc(h,c,i,n,o,e),w.closePath()}});j.exports=C},SrGk:function(j,P,d){var O=d("hydK"),E=O.createElement,C=d("bYtY"),v=d("y+Vt"),w=d("Dagg"),m=d("dqUG"),h=d("P47w"),c=h.path,i=h.image,r=h.text,o="0",n="1";function e(t,a,l,u,f){this._zrId=t,this._svgRoot=a,this._tagNames=typeof l=="string"?[l]:l,this._markLabel=u,this._domName=f||"_dom",this.nextId=0}e.prototype.createElement=E,e.prototype.getDefs=function(t){var a=this._svgRoot,l=this._svgRoot.getElementsByTagName("defs");return l.length===0?t?(l=a.insertBefore(this.createElement("defs"),a.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]},e.prototype.update=function(t,a){if(!t)return;var l=this.getDefs(!1);if(t[this._domName]&&l.contains(t[this._domName]))typeof a=="function"&&a(t);else{var u=this.add(t);u&&(t[this._domName]=u)}},e.prototype.addDom=function(t){var a=this.getDefs(!0);a.appendChild(t)},e.prototype.removeDom=function(t){var a=this.getDefs(!1);a&&t[this._domName]&&(a.removeChild(t[this._domName]),t[this._domName]=null)},e.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var a=[];return C.each(this._tagNames,function(l){var u=t.getElementsByTagName(l);a=a.concat([].slice.call(u))}),a},e.prototype.markAllUnused=function(){var t=this.getDoms(),a=this;C.each(t,function(l){l[a._markLabel]=o})},e.prototype.markUsed=function(t){t&&(t[this._markLabel]=n)},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!t)return;var a=this.getDoms(),l=this;C.each(a,function(u){u[l._markLabel]!==n&&t.removeChild(u)})},e.prototype.getSvgProxy=function(t){return t instanceof v?c:t instanceof w?i:t instanceof m?r:c},e.prototype.getTextSvgElement=function(t){return t.__textSvgEl},e.prototype.getSvgElement=function(t){return t.__svgEl};var s=e;j.exports=s},Swgg:function(j,P,d){var O=d("fc+c"),E=O.extend({type:"dataZoom.select"});j.exports=E},Sxd8:function(j,P,d){var O=d("ZCgT");function E(C){var v=O(C),w=v%1;return v===v?w?v-w:v:0}j.exports=E},T1rO:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("zdCA"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},T4UG:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("ItGF"),w=d("7aKB"),m=w.formatTime,h=w.encodeHTML,c=w.addCommas,i=w.getTooltipMarker,r=d("4NO4"),o=d("bLfw"),n=d("5Hur"),e=d("OKJ2"),s=d("+TT/"),t=s.getLayoutParams,a=s.mergeLayoutParam,l=d("9H2F"),u=l.createTask,f=d("D5nY"),p=f.prepareSource,g=f.getSource,A=d("KxfA"),y=A.retrieveRawValue,x=r.makeInner(),T=o.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(R,H,F,K){this.seriesIndex=this.componentIndex,this.dataTask=u({count:_,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(R,F),p(this);var U=this.getInitialData(R,F);D(U,this),this.dataTask.context.data=U,x(this).dataBeforeProcessed=U,S(this)},mergeDefaultAndTheme:function(R,H){var F=this.layoutMode,K=F?t(R):{},U=this.subType;o.hasClass(U)&&(U+="Series"),C.merge(R,H.getTheme().get(this.subType)),C.merge(R,this.getDefaultOption()),r.defaultEmphasis(R,"label",["show"]),this.fillDataTextStyle(R.data),F&&a(R,K,F)},mergeOption:function(R,H){R=C.merge(this.option,R,!0),this.fillDataTextStyle(R.data);var F=this.layoutMode;F&&a(this.option,R,F),p(this);var K=this.getInitialData(R,H);D(K,this),this.dataTask.dirty(),this.dataTask.context.data=K,x(this).dataBeforeProcessed=K,S(this)},fillDataTextStyle:function(R){if(R&&!C.isTypedArray(R))for(var H=["show"],F=0;F<R.length;F++)R[F]&&R[F].label&&r.defaultEmphasis(R[F],"label",H)},getInitialData:function(){},appendData:function(R){var H=this.getRawData();H.appendData(R.data)},getData:function(R){var H=M(this);if(H){var F=H.context.data;return R==null?F:F.getLinkedData(R)}else return x(this).data},setData:function(R){var H=M(this);if(H){var F=H.context;F.data!==R&&H.modifyOutputEnd&&H.setOutputEnd(R.count()),F.outputData=R,H!==this.dataTask&&(F.data=R)}x(this).data=R},getSource:function(){return g(this)},getRawData:function(){return x(this).dataBeforeProcessed},getBaseAxis:function(){var R=this.coordinateSystem;return R&&R.getBaseAxis&&R.getBaseAxis()},formatTooltip:function(R,H,F,K){var U=this;K=K||"html";var V=K==="html"?"<br/>":`
`,z=K==="richText",Y={},q=0;function ce(he){var Pe=C.reduce(he,function($e,gt,et){var Ie=ve.getDimensionInfo(et);return $e|=Ie&&Ie.tooltip!==!1&&Ie.displayName!=null},0),Oe=[];Ee.length?C.each(Ee,function($e){le(y(ve,R,$e),$e)}):C.each(he,le);function le($e,gt){var et=ve.getDimensionInfo(gt);if(!et||et.otherDims.tooltip===!1)return;var Ie=et.type,rt="sub"+U.seriesIndex+"at"+q,Ge=i({color:Fe,type:"subItem",renderMode:K,markerId:rt}),vt=typeof Ge=="string"?Ge:Ge.content,Ot=(Pe?vt+h(et.displayName||"-")+": ":"")+h(Ie==="ordinal"?$e+"":Ie==="time"?H?"":m("yyyy/MM/dd hh:mm:ss",$e):c($e));Ot&&Oe.push(Ot),z&&(Y[rt]=Fe,++q)}var me=Pe?z?`
`:"<br/>":"",_e=me+Oe.join(me||", ");return{renderMode:K,content:_e,style:Y}}function ie(he){return{renderMode:K,content:h(c(he)),style:Y}}var ve=this.getData(),Ee=ve.mapDimension("defaultedTooltip",!0),Le=Ee.length,He=this.getRawValue(R),ge=C.isArray(He),Fe=ve.getItemVisual(R,"color");C.isObject(Fe)&&Fe.colorStops&&(Fe=(Fe.colorStops[0]||{}).color),Fe=Fe||"transparent";var Q=Le>1||ge&&!Le?ce(He):ie(Le?y(ve,R,Ee[0]):ge?He[0]:He),fe=Q.content,Je=U.seriesIndex+"at"+q,ne=i({color:Fe,type:"item",renderMode:K,markerId:Je});Y[Je]=Fe,++q;var X=ve.getName(R),G=this.name;r.isNameSpecified(this)||(G=""),G=G?h(G)+(H?": ":V):"";var te=typeof ne=="string"?ne:ne.content,we=H?te+G+fe:G+te+(X?h(X)+": "+fe:fe);return{html:we,markers:Y}},isAnimationEnabled:function(){if(v.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,H,F){var K=this.ecModel,U=n.getColorFromPalette.call(this,R,H,F);return U||(U=K.getColorFromPalette(R,H,F)),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});C.mixin(T,e),C.mixin(T,n);function S(R){var H=R.name;r.isNameSpecified(R)||(R.name=b(R)||H)}function b(R){var H=R.getRawData(),F=H.mapDimension("seriesName",!0),K=[];return C.each(F,function(U){var V=H.getDimensionInfo(U);V.displayName&&K.push(V.displayName)}),K.join(" ")}function _(R){return R.model.getRawData().count()}function I(R){var H=R.model;return H.setData(H.getRawData().cloneShallow()),L}function L(R,H){H.outputData&&R.end>H.outputData.count()&&H.model.getRawData().cloneShallow(H.outputData)}function D(R,H){C.each(R.CHANGABLE_METHODS,function(F){R.wrapMethod(F,C.curry(N,H))})}function N(R){var H=M(R);H&&H.setOutputEnd(this.count())}function M(R){var H=(R.ecModel||{}).scheduler,F=H&&H.getPipeline(R.uid);if(F){var K=F.currentTask;if(K){var U=K.agentStubMap;U&&(K=U.get(R.uid))}return K}}var B=T;j.exports=B},T6xi:function(j,P,d){var O=d("YgsL"),E=d("nCxF");function C(v,w,m){var h=w.points,c=w.smooth;if(h&&h.length>=2){if(c&&c!=="spline"){var i=E(h,c,m,w.smoothConstraint);v.moveTo(h[0][0],h[0][1]);for(var r=h.length,o=0;o<(m?r:r-1);o++){var n=i[o*2],e=i[o*2+1],s=h[(o+1)%r];v.bezierCurveTo(n[0],n[1],e[0],e[1],s[0],s[1])}}else{c==="spline"&&(h=O(h,m)),v.moveTo(h[0][0],h[0][1]);for(var o=1,t=h.length;o<t;o++)v.lineTo(h[o][0],h[o][1])}m&&v.closePath()}}P.buildPath=C},TIY9:function(j,P,d){var O=d("bYtY"),E=O.each,C=d("vafp"),v=d("4NO4"),w=v.makeInner,m=d("Mgri"),h=d("F5Ls"),c=d("a9QJ"),i=d("p/La"),r=w(),o={load:function(e,s,t){var a=r(s).parsed;if(a)return a;var l=s.specialAreas||{},u=s.geoJSON,f;try{f=u?C(u,t):[]}catch(p){throw new Error(`Invalid geoJson format
`+p.message)}return m(e,f),E(f,function(p){var g=p.name;h(e,p),c(e,p),i(e,p);var A=l[g];A&&p.transformTo(A.left,A.top,A.width,A.height)}),r(s).parsed={regions:f,boundingRect:n(f)}}};function n(e){for(var s,t=0;t<e.length;t++){var a=e[t].getBoundingRect();s=s||a.clone(),s.union(a)}return s}j.exports=o},TJmX:function(j,P,d){var O=d("zM3Q"),E=["itemStyle","borderColor"],C=["itemStyle","borderColor0"],v=["itemStyle","color"],w=["itemStyle","color0"],m={seriesType:"candlestick",plan:O(),performRawSeries:!0,reset:function(h,c){var i=h.getData();if(i.setVisual({legendSymbol:"roundRect",colorP:n(1,h),colorN:n(-1,h),borderColorP:e(1,h),borderColorN:e(-1,h)}),c.isSeriesFiltered(h))return;var r=h.pipelineContext.large;return!r&&{progress:o};function o(s,t){for(var a;(a=s.next())!=null;){var l=t.getItemModel(a),u=t.getItemLayout(a).sign;t.setItemVisual(a,{color:n(u,l),borderColor:e(u,l)})}}function n(s,t){return t.get(s>0?v:w)}function e(s,t){return t.get(s>0?E:C)}}};j.exports=m},TWL2:function(j,P,d){var O=d("IwbS"),E=d("bYtY"),C=d("6Ic6");function v(i,r){O.Group.call(this);var o=new O.Polygon,n=new O.Polyline,e=new O.Text;this.add(o),this.add(n),this.add(e),this.highDownOnUpdate=function(s,t){t==="emphasis"?(n.ignore=n.hoverIgnore,e.ignore=e.hoverIgnore):(n.ignore=n.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(i,r,!0)}var w=v.prototype,m=["itemStyle","opacity"];w.updateData=function(i,r,o){var n=this.childAt(0),e=i.hostModel,s=i.getItemModel(r),t=i.getItemLayout(r),a=i.getItemModel(r).get(m);a=a==null?1:a,n.useStyle({}),o?(n.setShape({points:t.points}),n.setStyle({opacity:0}),O.initProps(n,{style:{opacity:a}},e,r)):O.updateProps(n,{style:{opacity:a},shape:{points:t.points}},e,r);var l=s.getModel("itemStyle"),u=i.getItemVisual(r,"color");n.setStyle(E.defaults({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(i,r),O.setHoverStyle(this)},w._updateLabel=function(i,r){var o=this.childAt(1),n=this.childAt(2),e=i.hostModel,s=i.getItemModel(r),t=i.getItemLayout(r),a=t.label,l=i.getItemVisual(r,"color");O.updateProps(o,{shape:{points:a.linePoints||a.linePoints}},e,r),O.updateProps(n,{style:{x:a.x,y:a.y}},e,r),n.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var u=s.getModel("label"),f=s.getModel("emphasis.label"),p=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine"),l=i.getItemVisual(r,"color");O.setLabelStyle(n.style,n.hoverStyle={},u,f,{labelFetcher:i.hostModel,labelDataIndex:r,defaultText:i.getName(r),autoColor:l,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!f.get("show"),o.ignore=o.normalIgnore=!p.get("show"),o.hoverIgnore=!g.get("show"),o.setStyle({stroke:l}),o.setStyle(p.getModel("lineStyle").getLineStyle()),o.hoverStyle=g.getModel("lineStyle").getLineStyle()},E.inherits(v,O.Group);var h=C.extend({type:"funnel",render:function(i,r,o){var n=i.getData(),e=this._data,s=this.group;n.diff(e).add(function(t){var a=new v(n,t);n.setItemGraphicEl(t,a),s.add(a)}).update(function(t,a){var l=e.getItemGraphicEl(a);l.updateData(n,t),s.add(l),n.setItemGraphicEl(t,l)}).remove(function(t){var a=e.getItemGraphicEl(t);s.remove(a)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=h;j.exports=c},TYVI:function(j,P,d){var O=d("5GtS"),E=d("T4UG"),C=E.extend({type:"series.gauge",getInitialData:function(w,m){return O(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}}}),v=C;j.exports=v},Tghj:function(j,P,d){(function(O){var E;typeof window!="undefined"?E=window.__DEV__:typeof O!="undefined"&&(E=O.__DEV__),typeof E=="undefined"&&(E=!0);var C=E;P.__DEV__=C}).call(this,d("IyRk"))},ThAp:function(j,P,d){var O=d("bYtY"),E=d("5GtS"),C=d("T4UG"),v=d("7aKB"),w=v.encodeHTML,m=v.addCommas,h=d("cCMj"),c=d("KxfA"),i=c.retrieveRawAttr,r=d("W4dC"),o=d("D5nY"),n=o.makeSeriesEncodeForNameBased,e=C.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var a=E(this,{coordDimensions:["value"],encodeDefaulter:O.curry(n,this)}),l=a.mapDimension("value"),u=O.createHashMap(),f=[],p=[],g=0,A=a.count();g<A;g++){var y=a.getName(g);u.set(y,!0),f.push({name:y,value:a.get(l,g),selected:i(a,g,"selected")})}var x=r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return O.each(x.regions,function(T){var S=T.name;u.get(S)||(f.push({name:S}),p.push(S))}),this.updateSelectedMap(f),a.appendValues([],p),a},getHostGeoModel:function(){var t=this.option.geoIndex;return t!=null?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},getRegionModel:function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},formatTooltip:function(t){for(var a=this.getData(),l=m(this.getRawValue(t)),u=a.getName(t),f=this.seriesGroup,p=[],g=0;g<f.length;g++){var A=f[g].originalData.indexOfName(u),y=a.mapDimension("value");isNaN(f[g].originalData.get(y,A))||p.push(w(f[g].name))}return p.join(", ")+"<br />"+w(u+" : "+l)},getTooltipPosition:function(t){if(t!=null){var a=this.getData().getName(t),l=this.coordinateSystem,u=l.getRegion(a);return u&&l.dataToPoint(u.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});O.mixin(e,h);var s=e;j.exports=s},TkdX:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},v=2,w=4;function m(e,s,t){E.Group.call(this);var a=new E.Sector({z2:v});a.seriesIndex=s.seriesIndex;var l=new E.Text({z2:w,silent:e.getModel("label").get("silent")});this.add(a),this.add(l),this.updateData(!0,e,"normal",s,t);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(e,s,t,a,l){this.node=s,s.piece=this,a=a||this._seriesModel,l=l||this._ecModel;var u=this.childAt(0);u.dataIndex=s.dataIndex;var f=s.getModel(),p=s.getLayout(),g=O.extend({},p);g.label=null;var A=i(s,a,l);n(s,a,A);var y=f.getModel("itemStyle").getItemStyle(),x;if(t==="normal")x=y;else{var T=f.getModel(t+".itemStyle").getItemStyle();x=O.merge(T,y)}x=O.defaults({lineJoin:"bevel",fill:x.fill||A},x),e?(u.setShape(g),u.shape.r=p.r0,E.updateProps(u,{shape:{r:p.r}},a,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:g},a),u.useStyle(x)):E.updateProps(u,{shape:g,style:x},a),this._updateLabel(a,A,t);var S=f.getShallow("cursor");if(S&&u.attr("cursor",S),e){var b=a.getShallow("highlightPolicy");this._initEvents(u,s,a,b)}this._seriesModel=a||this._seriesModel,this._ecModel=l||this._ecModel,E.setHoverStyle(this)},h.onEmphasis=function(e){var s=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(s.node===t?t.piece.updateData(!1,t,"emphasis"):o(t,s.node,e)?t.piece.childAt(0).trigger("highlight"):e!==C.NONE&&t.piece.childAt(0).trigger("downplay"))})},h.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},h.onHighlight=function(){this.updateData(!1,this.node,"highlight")},h.onDownplay=function(){this.updateData(!1,this.node,"downplay")},h._updateLabel=function(e,s,t){var a=this.node.getModel(),l=a.getModel("label"),u=t==="normal"||t==="emphasis"?l:a.getModel(t+".label"),f=a.getModel("emphasis.label"),p=O.retrieve(e.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);H("show")===!1&&(p="");var g=this.node.getLayout(),A=u.get("minAngle");A==null&&(A=l.get("minAngle")),A=A/180*Math.PI;var y=g.endAngle-g.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 T=(g.startAngle+g.endAngle)/2,S=Math.cos(T),b=Math.sin(T),_,I=H("position"),L=H("distance")||0,D=H("align");I==="outside"?(_=g.r+L,D=T>Math.PI/2?"right":"left"):!D||D==="center"?(_=(g.r+g.r0)/2,D="center"):D==="left"?(_=g.r0+L,T>Math.PI/2&&(D="right")):D==="right"&&(_=g.r-L,T>Math.PI/2&&(D="left")),x.attr("style",{text:p,textAlign:D,textVerticalAlign:H("verticalAlign")||"middle",opacity:H("opacity")});var N=_*S+g.cx,M=_*b+g.cy;x.attr("position",[N,M]);var B=H("rotate"),R=0;B==="radial"?(R=-T,R<-Math.PI/2&&(R+=Math.PI)):B==="tangential"?(R=Math.PI/2-T,R>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):typeof B=="number"&&(R=B*Math.PI/180),x.attr("rotation",R);function H(F){var K=u.get(F);return K==null?l.get(F):K}},h._initEvents=function(e,s,t,a){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var l=this,u=function(){l.onEmphasis(a)},f=function(){l.onNormal()},p=function(){l.onDownplay()},g=function(){l.onHighlight()};t.isAnimationEnabled()&&e.on("mouseover",u).on("mouseout",f).on("emphasis",u).on("normal",f).on("downplay",p).on("highlight",g)},O.inherits(m,E.Group);var c=m;function i(e,s,t){var a=e.getVisual("color"),l=e.getVisual("visualMeta");(!l||l.length===0)&&(a=null);var u=e.getModel("itemStyle").get("color");if(u)return u;if(a)return a;if(e.depth===0)return t.option.color[0];var f=t.option.color.length;return u=t.option.color[r(e)%f],u}function r(e){for(var s=e;s.depth>1;)s=s.parentNode;var t=e.getAncestors()[0];return O.indexOf(t.children,s)}function o(e,s,t){return t===C.NONE?!1:t===C.SELF?e===s:t===C.ANCESTOR?e===s||e.isAncestorOf(s):e===s||e.isDescendantOf(s)}function n(e,s,t){var a=s.getData();a.setItemVisual(e.dataIndex,"color",t)}j.exports=c},Tp9H:function(j,P,d){var O=d("ItGF"),E=d("Kagy"),C=d("IUWy"),v=E.toolbox.saveAsImage;function w(c){this.model=c}w.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:v.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:v.lang.slice()},w.prototype.unusable=!O.canvasSupported;var m=w.prototype;m.onclick=function(c,i){var r=this.model,o=r.get("name")||c.get("title.0.text")||"echarts",n=i.getZr().painter.getType()==="svg",e=n?"svg":r.get("type",!0)||"png",s=i.getConnectedDataURL({type:e,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"&&!O.browser.ie&&!O.browser.edge){var t=document.createElement("a");t.download=o+"."+e,t.target="_blank",t.href=s;var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(a)}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,o+"."+e)}else{var g=r.get("lang"),A='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(g&&g[0]||"")+'" /></body>',y=window.open();y.document.write(A)}},C.register("saveAsImage",w);var h=w;j.exports=h},"U/Mo":function(j,P){function d(E){var C=E.coordinateSystem;if(C.type!=="view")return 1;var v=E.option.nodeScaleRatio,w=C.scale,m=w&&w[0]||1,h=C.getZoom(),c=(h-1)*v+1;return c/m}function O(E){var C=E.getVisual("symbolSize");return C instanceof Array&&(C=(C[0]+C[1])/2),+C}P.getNodeGlobalScale=d,P.getSymbolSize=O},UADf:function(j,P,d){},UESt:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="RightOutlined";var h=P.a=E.forwardRef(m)},UOVi:function(j,P,d){var O=d("bYtY"),E=d("7aKB"),C=["x","y","z","radius","angle","single"],v=["cartesian2d","polar","singleAxis"];function w(i){return O.indexOf(v,i)>=0}function m(i,r){i=i.slice();var o=O.map(i,E.capitalFirst);r=(r||[]).slice();var n=O.map(r,E.capitalFirst);return function(e,s){O.each(i,function(t,a){for(var l={name:t,capital:o[a]},u=0;u<r.length;u++)l[r[u]]=t+n[u];e.call(s,l)})}}var h=m(C,["axisIndex","axis","index","id"]);function c(i,r,o){return function(t){var a={nodes:[],records:{}};if(r(function(f){a.records[f.name]={}}),!t)return a;s(t,a);var l;do l=!1,i(u);while(l);function u(f){!n(f,a)&&e(f,a)&&(s(f,a),l=!0)}return a};function n(t,a){return O.indexOf(a.nodes,t)>=0}function e(t,a){var l=!1;return r(function(u){O.each(o(t,u)||[],function(f){a.records[u.name][f]&&(l=!0)})}),l}function s(t,a){a.nodes.push(t),r(function(l){O.each(o(t,l)||[],function(u){a.records[l.name][u]=!0})})}}P.isCoordSupported=w,P.createNameEach=m,P.eachAxisDim=h,P.createLinkedNodesFinder=c},Uc92:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},UnoB:function(j,P,d){var O=d("bYtY"),E=d("OELB");function C(m,h){m.eachSeriesByType("themeRiver",function(c){var i=c.getData(),r=c.coordinateSystem,o={},n=r.getRect();o.rect=n;var e=c.get("boundaryGap"),s=r.getAxis();if(o.boundaryGap=e,s.orient==="horizontal"){e[0]=E.parsePercent(e[0],n.height),e[1]=E.parsePercent(e[1],n.height);var t=n.height-e[0]-e[1];v(i,c,t)}else{e[0]=E.parsePercent(e[0],n.width),e[1]=E.parsePercent(e[1],n.width);var a=n.width-e[0]-e[1];v(i,c,a)}i.setLayout("layoutInfo",o)})}function v(m,h,c){if(!m.count())return;for(var i=h.coordinateSystem,r=h.getLayerSeries(),o=m.mapDimension("single"),n=m.mapDimension("value"),e=O.map(r,function(A){return O.map(A.indices,function(y){var x=i.dataToPoint(m.get(o,y));return x[1]=m.get(n,y),x})}),s=w(e),t=s.y0,a=c/s.max,l=r.length,u=r[0].indices.length,f,p=0;p<u;++p){f=t[p]*a,m.setItemLayout(r[0].indices[p],{layerIndex:0,x:e[0][p][0],y0:f,y:e[0][p][1]*a});for(var g=1;g<l;++g)f+=e[g-1][p][1]*a,m.setItemLayout(r[g].indices[p],{layerIndex:g,x:e[g][p][0],y0:f,y:e[g][p][1]*a})}}function w(m){for(var h=m.length,c=m[0].length,i=[],r=[],o=0,n,e={},s=0;s<c;++s){for(var t=0,n=0;t<h;++t)n+=m[t][s][1];n>o&&(o=n),i.push(n)}for(var a=0;a<c;++a)r[a]=(o-i[a])/2;o=0;for(var l=0;l<c;++l){var u=i[l]+r[l];u>o&&(o=u)}return e.y0=r,e.max=o,e}j.exports=C},Urep:function(j,P,d){},V7ic:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("digP")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="FileTwoTone";var c=v.forwardRef(h);P.default=c},VFCP:function(j,P,d){d("dBmv"),d("KamJ")},VPsl:function(j,P){function d(O){O.eachSeriesByType("map",function(E){var C=E.get("color"),v=E.getModel("itemStyle"),w=v.get("areaColor"),m=v.get("color")||C[E.seriesIndex%C.length];E.getData().setVisual({areaColor:w,color:m})})}j.exports=d},VR9l:function(j,P,d){var O=d("KCsZ"),E=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),C={getItemStyle:function(v,w){var m=E(this,v,w),h=this.getBorderLineDash();return h&&(m.lineDash=h),m},getBorderLineDash:function(){var v=this.get("borderType");return v==="solid"||v==null?null:v==="dashed"?[5,5]:[1,1]}};j.exports=C},VSLf:function(j,P,d){d("I+Bx"),d("F0hE"),d("bBKM")},VSMT:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.decodeUTF8=O,P.encodeUTF8=E;function O(C){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(C))}catch(w){if(w instanceof URIError&&v)return C;throw w}}function E(C){return unescape(encodeURIComponent(C))}},VXYp:function(j,P,d){var O=d("bYtY"),E=d("SgGq"),C=d("iLNv"),v="\0_ec_dataZoom_roams";function w(e,s){var t=c(e),a=s.dataZoomId,l=s.coordId;O.each(t,function(p,g){var A=p.dataZoomInfos;A[a]&&O.indexOf(s.allCoordIds,l)<0&&(delete A[a],p.count--)}),r(t);var u=t[l];u||(u=t[l]={coordId:l,dataZoomInfos:{},count:0},u.controller=i(e,u),u.dispatchAction=O.curry(o,e)),!u.dataZoomInfos[a]&&u.count++,u.dataZoomInfos[a]=s;var f=n(u.dataZoomInfos);u.controller.enable(f.controlType,f.opt),u.controller.setPointerChecker(s.containsPoint),C.createOrUpdate(u,"dispatchAction",s.dataZoomModel.get("throttle",!0),"fixRate")}function m(e,s){var t=c(e);O.each(t,function(a){a.controller.dispose();var l=a.dataZoomInfos;l[s]&&(delete l[s],a.count--)}),r(t)}function h(e){return e.type+"\0_"+e.id}function c(e){var s=e.getZr();return s[v]||(s[v]={})}function i(e,s){var t=new E(e.getZr());return O.each(["pan","zoom","scrollMove"],function(a){t.on(a,function(l){var u=[];O.each(s.dataZoomInfos,function(f){if(!l.isAvailableBehavior(f.dataZoomModel.option))return;var p=(f.getRange||{})[a],g=p&&p(s.controller,l);!f.dataZoomModel.get("disabled",!0)&&g&&u.push({dataZoomId:f.dataZoomId,start:g[0],end:g[1]})}),u.length&&s.dispatchAction(u)})}),t}function r(e){O.each(e,function(s,t){s.count||(s.controller.dispose(),delete e[t])})}function o(e,s){e.dispatchAction({type:"dataZoom",batch:s})}function n(e){var s,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return O.each(e,function(u){var f=u.dataZoomModel,p=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;a[t+p]>a[t+s]&&(s=p),l&=f.get("preventDefaultMouseMove",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l}}}P.register=w,P.unregister=m,P.generateCoordId=h},VaxA:function(j,P,d){var O=d("bYtY");function E(m,h,c){if(m&&O.indexOf(h,m.type)>=0){var i=c.getData().tree.root,r=m.targetNode;if(typeof r=="string"&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=m.targetNodeId;if(o!=null&&(r=i.getNodeById(o)))return{node:r}}}function C(m){for(var h=[];m;)m=m.parentNode,m&&h.push(m);return h.reverse()}function v(m,h){var c=C(m);return O.indexOf(c,h)>=0}function w(m,h){for(var c=[];m;){var i=m.dataIndex;c.push({name:m.name,dataIndex:i,value:h.getRawValue(i)}),m=m.parentNode}return c.reverse(),c}P.retrieveTargetInfo=E,P.getPathToRoot=C,P.aboveViewRoot=v,P.wrapTreePathInfo=w},Vi4m:function(j,P,d){var O=d("bYtY");function E(v){v!=null&&O.extend(this,v),this.otherDims={}}var C=E;j.exports=C},Vl3Y:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("J4zp"),v=d.n(C),w=d("lSNA"),m=d.n(w),h=d("q1tI"),c=d("TSYQ"),i=d.n(c),r=d("85Yc"),o=d("H84U"),n=d("BGR+"),e=h.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),s=h.createContext({updateItemErrors:function(){}}),t=function(yt){var zt=Object(n.default)(yt,["prefixCls"]);return h.createElement(r.FormProvider,zt)};function a(oe){return typeof oe=="object"&&oe!=null&&oe.nodeType===1}function l(oe,yt){return(!yt||oe!=="hidden")&&oe!=="visible"&&oe!=="clip"}function u(oe,yt){if(oe.clientHeight<oe.scrollHeight||oe.clientWidth<oe.scrollWidth){var zt=getComputedStyle(oe,null);return l(zt.overflowY,yt)||l(zt.overflowX,yt)||function(lt){var $t=function(cr){if(!cr.ownerDocument||!cr.ownerDocument.defaultView)return null;try{return cr.ownerDocument.defaultView.frameElement}catch(cn){return null}}(lt);return!!$t&&($t.clientHeight<lt.scrollHeight||$t.clientWidth<lt.scrollWidth)}(oe)}return!1}function f(oe,yt,zt,lt,$t,cr,cn,pr){return cr<oe&&cn>yt||cr>oe&&cn<yt?0:cr<=oe&&pr<=zt||cn>=yt&&pr>=zt?cr-oe-lt:cn>yt&&pr<zt||cr<oe&&pr>zt?cn-yt+$t:0}var p=function(oe,yt){var zt=window,lt=yt.scrollMode,$t=yt.block,cr=yt.inline,cn=yt.boundary,pr=yt.skipOverflowHiddenElements,gr=typeof cn=="function"?cn:function(Un){return Un!==cn};if(!a(oe))throw new TypeError("Invalid target");for(var Zt=document.scrollingElement||document.documentElement,Vt=[],mt=oe;a(mt)&&gr(mt);){if((mt=mt.parentElement)===Zt){Vt.push(mt);break}mt!=null&&mt===document.body&&u(mt)&&!u(document.documentElement)||mt!=null&&u(mt,pr)&&Vt.push(mt)}for(var Yr=zt.visualViewport?zt.visualViewport.width:innerWidth,Tn=zt.visualViewport?zt.visualViewport.height:innerHeight,Hn=window.scrollX||pageXOffset,ei=window.scrollY||pageYOffset,ji=oe.getBoundingClientRect(),Ln=ji.height,Vn=ji.width,kt=ji.top,wt=ji.right,Te=ji.bottom,xe=ji.left,Ce=$t==="start"||$t==="nearest"?kt:$t==="end"?Te:kt+Ln/2,Ye=cr==="center"?xe+Vn/2:cr==="end"?wt:xe,it=[],dt=0;dt<Vt.length;dt++){var _t=Vt[dt],vr=_t.getBoundingClientRect(),kr=vr.height,mn=vr.width,Mt=vr.top,nt=vr.right,st=vr.bottom,Xt=vr.left;if(lt==="if-needed"&&kt>=0&&xe>=0&&Te<=Tn&&wt<=Yr&&kt>=Mt&&Te<=st&&xe>=Xt&&wt<=nt)return it;var Dt=getComputedStyle(_t),St=parseInt(Dt.borderLeftWidth,10),jt=parseInt(Dt.borderTopWidth,10),At=parseInt(Dt.borderRightWidth,10),Ft=parseInt(Dt.borderBottomWidth,10),wr=0,sr=0,mr="offsetWidth"in _t?_t.offsetWidth-_t.clientWidth-St-At:0,$r="offsetHeight"in _t?_t.offsetHeight-_t.clientHeight-jt-Ft:0;if(Zt===_t)wr=$t==="start"?Ce:$t==="end"?Ce-Tn:$t==="nearest"?f(ei,ei+Tn,Tn,jt,Ft,ei+Ce,ei+Ce+Ln,Ln):Ce-Tn/2,sr=cr==="start"?Ye:cr==="center"?Ye-Yr/2:cr==="end"?Ye-Yr:f(Hn,Hn+Yr,Yr,St,At,Hn+Ye,Hn+Ye+Vn,Vn),wr=Math.max(0,wr+ei),sr=Math.max(0,sr+Hn);else{wr=$t==="start"?Ce-Mt-jt:$t==="end"?Ce-st+Ft+$r:$t==="nearest"?f(Mt,st,kr,jt,Ft+$r,Ce,Ce+Ln,Ln):Ce-(Mt+kr/2)+$r/2,sr=cr==="start"?Ye-Xt-St:cr==="center"?Ye-(Xt+mn/2)+mr/2:cr==="end"?Ye-nt+At+mr:f(Xt,nt,mn,St,At+mr,Ye,Ye+Vn,Vn);var rn=_t.scrollLeft,jn=_t.scrollTop;Ce+=jn-(wr=Math.max(0,Math.min(jn+wr,_t.scrollHeight-kr+$r))),Ye+=rn-(sr=Math.max(0,Math.min(rn+sr,_t.scrollWidth-mn+mr)))}it.push({el:_t,top:wr,left:sr})}return it};function g(oe){return oe===Object(oe)&&Object.keys(oe).length!==0}function A(oe,yt){yt===void 0&&(yt="auto");var zt="scrollBehavior"in document.body.style;oe.forEach(function(lt){var $t=lt.el,cr=lt.top,cn=lt.left;$t.scroll&&zt?$t.scroll({top:cr,left:cn,behavior:yt}):($t.scrollTop=cr,$t.scrollLeft=cn)})}function y(oe){return oe===!1?{block:"end",inline:"nearest"}:g(oe)?oe:{block:"start",inline:"nearest"}}function x(oe,yt){var zt=!oe.ownerDocument.documentElement.contains(oe);if(g(yt)&&typeof yt.behavior=="function")return yt.behavior(zt?[]:p(oe,yt));if(zt)return;var lt=y(yt);return A(p(oe,lt),lt.behavior)}var T=x;function S(oe){return oe===void 0||oe===!1?[]:Array.isArray(oe)?oe:[oe]}function b(oe,yt){if(!oe.length)return;var zt=oe.join("_");return yt?"".concat(yt,"_").concat(zt):zt}function _(oe){var yt=S(oe);return yt.join("_")}function I(oe){var yt=Object(r.useForm)(),zt=v()(yt,1),lt=zt[0],$t=Object(h.useRef)({}),cr=Object(h.useMemo)(function(){return oe||E()(E()({},lt),{__INTERNAL__:{itemRef:function(pr){return function(gr){var Zt=_(pr);gr?$t.current[Zt]=gr:delete $t.current[Zt]}}},scrollToField:function(pr){var gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zt=S(pr),Vt=b(Zt,cr.__INTERNAL__.name),mt=Vt?document.getElementById(Vt):null;mt&&T(mt,E()({scrollMode:"if-needed",block:"nearest"},gr))},getFieldInstance:function(pr){var gr=_(pr);return $t.current[gr]}})},[oe,lt]);return[cr]}var L=d("3Nzz"),D=function(oe,yt){var zt={};for(var lt in oe)Object.prototype.hasOwnProperty.call(oe,lt)&&yt.indexOf(lt)<0&&(zt[lt]=oe[lt]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,lt=Object.getOwnPropertySymbols(oe);$t<lt.length;$t++)yt.indexOf(lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(oe,lt[$t])&&(zt[lt[$t]]=oe[lt[$t]]);return zt},N=function(yt,zt){var lt,$t=h.useContext(L.b),cr=h.useContext(o.b),cn=cr.getPrefixCls,pr=cr.direction,gr=yt.name,Zt=yt.prefixCls,Vt=yt.className,mt=Vt===void 0?"":Vt,Yr=yt.size,Tn=Yr===void 0?$t:Yr,Hn=yt.form,ei=yt.colon,ji=yt.labelAlign,Ln=yt.labelCol,Vn=yt.wrapperCol,kt=yt.hideRequiredMark,wt=yt.layout,Te=wt===void 0?"horizontal":wt,xe=yt.scrollToFirstError,Ce=yt.requiredMark,Ye=yt.onFinishFailed,it=D(yt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),dt=Object(h.useMemo)(function(){return Ce!==void 0?Ce:!kt},[kt,Ce]),_t=cn("form",Zt),vr=i()(_t,(lt={},m()(lt,"".concat(_t,"-").concat(Te),!0),m()(lt,"".concat(_t,"-hide-required-mark"),dt===!1),m()(lt,"".concat(_t,"-rtl"),pr==="rtl"),m()(lt,"".concat(_t,"-").concat(Tn),Tn),lt),mt),kr=I(Hn),mn=v()(kr,1),Mt=mn[0],nt=Mt.__INTERNAL__;nt.name=gr;var st=Object(h.useMemo)(function(){return{name:gr,labelAlign:ji,labelCol:Ln,wrapperCol:Vn,vertical:Te==="vertical",colon:ei,requiredMark:dt,itemRef:nt.itemRef}},[gr,ji,Ln,Vn,Te,ei,dt]);h.useImperativeHandle(zt,function(){return Mt});var Xt=function(St){Ye&&Ye(St),xe&&St.errorFields.length&&Mt.scrollToField(St.errorFields[0].name)};return h.createElement(L.a,{size:Tn},h.createElement(e.Provider,{value:st},h.createElement(r.default,E()({id:gr},it,{onFinishFailed:Xt,form:Mt,className:vr}))))},M=h.forwardRef(N),B=M,R=d("cDf5"),H=d.n(R),F=d("RIqP"),K=d.n(F),U=d("Y+p1"),V=d.n(U),z=d("KW7l"),Y=d("c+Xe"),q=d("qrJ5"),ce=d("CWQg"),ie=d("uaoM"),ve=d("/kpp"),Ee=d("YMnH"),Le=d("ZvpZ"),He=function(yt){var zt=yt.prefixCls,lt=yt.label,$t=yt.htmlFor,cr=yt.labelCol,cn=yt.labelAlign,pr=yt.colon,gr=yt.required,Zt=yt.requiredMark,Vt=Object(Ee.b)("Form"),mt=v()(Vt,1),Yr=mt[0];return lt?h.createElement(e.Consumer,{key:"label"},function(Tn){var Hn,ei=Tn.vertical,ji=Tn.labelAlign,Ln=Tn.labelCol,Vn=Tn.colon,kt,wt=cr||Ln||{},Te=cn||ji,xe="".concat(zt,"-item-label"),Ce=i()(xe,Te==="left"&&"".concat(xe,"-left"),wt.className),Ye=lt,it=pr===!0||Vn!==!1&&pr!==!1,dt=it&&!ei;dt&&typeof lt=="string"&&lt.trim()!==""&&(Ye=lt.replace(/[:|]\s*$/,"")),Zt==="optional"&&!gr&&(Ye=h.createElement(h.Fragment,null,Ye,h.createElement("span",{className:"".concat(zt,"-item-optional")},(Yr==null?void 0:Yr.optional)||((kt=Le.a.Form)===null||kt===void 0?void 0:kt.optional))));var _t=i()((Hn={},m()(Hn,"".concat(zt,"-item-required"),gr),m()(Hn,"".concat(zt,"-item-required-mark-optional"),Zt==="optional"),m()(Hn,"".concat(zt,"-item-no-colon"),!it),Hn));return h.createElement(ve.a,E()({},wt,{className:Ce}),h.createElement("label",{htmlFor:$t,className:_t,title:typeof lt=="string"?lt:""},Ye))}):null},ge=He,Fe=d("gZBC"),Q=d.n(Fe),fe=d("kbBi"),Je=d.n(fe),ne=d("J84W"),X=d.n(ne),G=d("sKbD"),te=d.n(G),we=d("YrtM"),he=d("HTfv"),Pe=d("hkKa");function Oe(oe,yt,zt){var lt=h.useRef({errors:oe,visible:!!oe.length}),$t=Object(Pe.a)(),cr=function(){var pr=lt.current.visible,gr=!!oe.length,Zt=lt.current.errors;lt.current.errors=oe,lt.current.visible=gr,pr!==gr?yt(gr):(Zt.length!==oe.length||Zt.some(function(Vt,mt){return Vt!==oe[mt]}))&&$t()};return h.useEffect(function(){if(!zt){var cn=setTimeout(cr,10);return function(){return clearTimeout(cn)}}},[oe]),zt&&cr(),[lt.current.visible,lt.current.errors]}var le={success:X.a,warning:te.a,error:Je.a,validating:Q.a},me=function(yt){var zt=yt.prefixCls,lt=yt.wrapperCol,$t=yt.children,cr=yt.help,cn=yt.errors,pr=yt.onDomErrorVisibleChange,gr=yt.hasFeedback,Zt=yt.validateStatus,Vt=yt.extra,mt=Object(Pe.a)(),Yr="".concat(zt,"-item"),Tn=h.useContext(e),Hn=lt||Tn.wrapperCol||{},ei=i()("".concat(Yr,"-control"),Hn.className),ji=Oe(cn,function(Ye){Ye&&Promise.resolve().then(function(){pr(!0)}),mt()},!!cr),Ln=v()(ji,2),Vn=Ln[0],kt=Ln[1];h.useEffect(function(){return function(){pr(!1)}},[]);var wt=Object(we.a)(function(){return kt},Vn,function(Ye,it){return it}),Te=Zt&&le[Zt],xe=gr&&Te?h.createElement("span",{className:"".concat(Yr,"-children-icon")},h.createElement(Te,null)):null,Ce=E()({},Tn);return delete Ce.labelCol,delete Ce.wrapperCol,h.createElement(e.Provider,{value:Ce},h.createElement(ve.a,E()({},Hn,{className:ei}),h.createElement("div",{className:"".concat(Yr,"-control-input")},h.createElement("div",{className:"".concat(Yr,"-control-input-content")},$t),xe),h.createElement(he.default,{motionDeadline:500,visible:Vn,motionName:"show-help",onLeaveEnd:function(){pr(!1)},motionAppear:!0,removeOnLeave:!0},function(Ye){var it=Ye.className;return h.createElement("div",{className:i()("".concat(Yr,"-explain"),it),key:"help"},wt.map(function(dt,_t){return h.createElement("div",{key:_t,role:"alert"},dt)}))}),Vt&&h.createElement("div",{className:"".concat(Yr,"-extra")},Vt)))},_e=me,$e=d("0n0R"),gt=d("xEkU"),et=d.n(gt);function Ie(oe){var yt=h.useState(oe),zt=v()(yt,2),lt=zt[0],$t=zt[1],cr=Object(h.useRef)(null),cn=Object(h.useRef)([]),pr=Object(h.useRef)(!1);h.useEffect(function(){return function(){pr.current=!0,et.a.cancel(cr.current)}},[]);function gr(Zt){if(pr.current)return;cr.current===null&&(cn.current=[],cr.current=et()(function(){cr.current=null,$t(function(Vt){var mt=Vt;return cn.current.forEach(function(Yr){mt=Yr(mt)}),mt})})),cn.current.push(Zt)}return[lt,gr]}function rt(){var oe=h.useContext(e),yt=oe.itemRef,zt=h.useRef({});function lt($t,cr){var cn=cr&&H()(cr)==="object"&&cr.ref,pr=$t.join("_");return(zt.current.name!==pr||zt.current.originRef!==cn)&&(zt.current.name=pr,zt.current.originRef=cn,zt.current.ref=Object(Y.a)(yt($t),cn)),zt.current.ref}return lt}var Ge=function(oe,yt){var zt={};for(var lt in oe)Object.prototype.hasOwnProperty.call(oe,lt)&&yt.indexOf(lt)<0&&(zt[lt]=oe[lt]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,lt=Object.getOwnPropertySymbols(oe);$t<lt.length;$t++)yt.indexOf(lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(oe,lt[$t])&&(zt[lt[$t]]=oe[lt[$t]]);return zt},vt=Object(ce.a)("success","warning","error","validating",""),Ot=h.memo(function(oe){var yt=oe.children;return yt},function(oe,yt){return oe.value===yt.value&&oe.update===yt.update});function Et(oe){return oe===null&&Object(ie.a)(!1,"Form.Item","`null` is passed as `name` property"),!(oe==null)}function Tt(oe){var yt=oe.name,zt=oe.fieldKey,lt=oe.noStyle,$t=oe.dependencies,cr=oe.prefixCls,cn=oe.style,pr=oe.className,gr=oe.shouldUpdate,Zt=oe.hasFeedback,Vt=oe.help,mt=oe.rules,Yr=oe.validateStatus,Tn=oe.children,Hn=oe.required,ei=oe.label,ji=oe.trigger,Ln=ji===void 0?"onChange":ji,Vn=oe.validateTrigger,kt=oe.hidden,wt=Ge(oe,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Te=h.useRef(!1),xe=h.useContext(o.b),Ce=xe.getPrefixCls,Ye=h.useContext(e),it=Ye.name,dt=Ye.requiredMark,_t=h.useContext(s),vr=_t.updateItemErrors,kr=h.useState(!!Vt),mn=v()(kr,2),Mt=mn[0],nt=mn[1],st=h.useRef(Yr),Xt=Ie({}),Dt=v()(Xt,2),St=Dt[0],jt=Dt[1],At=h.useContext(z.b),Ft=At.validateTrigger,wr=Vn!==void 0?Vn:Ft;function sr(Qe){Te.current||nt(Qe)}var mr=Et(yt),$r=h.useRef([]);h.useEffect(function(){return function(){Te.current=!0,vr($r.current.join("__SPLIT__"),[])}},[]);var rn=Ce("form",cr),jn=lt?vr:function(Qe,be){jt(function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V()(Ne[Qe],be)?Ne:E()(E()({},Ne),m()({},Qe,be))})},Un=rt();function ui(Qe,be,Ne,Ue){var Xe,ze;if(lt&&!kt)return Qe;var Ze=[];Object.keys(St).forEach(function(Mr){Ze=[].concat(K()(Ze),K()(St[Mr]||[]))});var bt;Vt!=null?bt=S(Vt):(bt=Ne?Ne.errors:[],bt=[].concat(K()(bt),K()(Ze)));var ut="";Yr!==void 0?ut=Yr:(Ne==null?void 0:Ne.validating)?ut="validating":((ze=Ne==null?void 0:Ne.errors)===null||ze===void 0?void 0:ze.length)||Ze.length?ut="error":(Ne==null?void 0:Ne.touched)&&(ut="success"),Mt&&Vt&&(st.current=ut);var Gt=(Xe={},m()(Xe,"".concat(rn,"-item"),!0),m()(Xe,"".concat(rn,"-item-with-help"),Mt||Vt),m()(Xe,"".concat(pr),!!pr),m()(Xe,"".concat(rn,"-item-has-feedback"),ut&&Zt),m()(Xe,"".concat(rn,"-item-has-success"),ut==="success"),m()(Xe,"".concat(rn,"-item-has-warning"),ut==="warning"),m()(Xe,"".concat(rn,"-item-has-error"),ut==="error"),m()(Xe,"".concat(rn,"-item-has-error-leave"),!Vt&&Mt&&st.current==="error"),m()(Xe,"".concat(rn,"-item-is-validating"),ut==="validating"),m()(Xe,"".concat(rn,"-item-hidden"),kt),Xe);return h.createElement(q.a,E()({className:i()(Gt),style:cn,key:"row"},Object(n.default)(wt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),h.createElement(ge,E()({htmlFor:be,required:Ue,requiredMark:dt},oe,{prefixCls:rn})),h.createElement(_e,E()({},oe,Ne,{errors:bt,prefixCls:rn,onDomErrorVisibleChange:sr,validateStatus:ut}),h.createElement(s.Provider,{value:{updateItemErrors:jn}},Qe)))}var yi=typeof Tn=="function",Ii=h.useRef(0);if(Ii.current+=1,!mr&&!yi&&!$t)return ui(Tn);var Gi={};return typeof ei=="string"&&(Gi.label=ei),h.createElement(r.Field,E()({},oe,{messageVariables:Gi,trigger:Ln,validateTrigger:wr,onReset:function(){sr(!1)}}),function(Qe,be,Ne){var Ue=be.errors,Xe=S(yt).length&&be?be.name:[],ze=b(Xe,it);if(lt){if($r.current=K()(Xe),zt){var Ze=Array.isArray(zt)?zt:[zt];$r.current=[].concat(K()(Xe.slice(0,-1)),K()(Ze))}vr($r.current.join("__SPLIT__"),Ue)}var bt=Hn!==void 0?Hn:!!(mt&&mt.some(function(Gr){if(Gr&&H()(Gr)==="object"&&Gr.required)return!0;if(typeof Gr=="function"){var Ht=Gr(Ne);return Ht&&Ht.required}return!1})),ut=E()({},Qe),Gt=null;if(Object(ie.a)(!(gr&&$t),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Tn)&&mr)Object(ie.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),Gt=Tn;else if(yi&&(!(gr||$t)||mr))Object(ie.a)(!!(gr||$t),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(ie.a)(!mr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if($t&&!yi&&!mr)Object(ie.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object($e.b)(Tn)){Object(ie.a)(Tn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Mr=E()(E()({},Tn.props),ut);Mr.id||(Mr.id=ze),Object(Y.c)(Tn)&&(Mr.ref=Un(Xe,Tn));var Lr=new Set([].concat(K()(S(Ln)),K()(S(wr))));Lr.forEach(function(Gr){Mr[Gr]=function(){for(var Ht,hn,or,vn,nn,Ur=arguments.length,ni=new Array(Ur),Oi=0;Oi<Ur;Oi++)ni[Oi]=arguments[Oi];(or=ut[Gr])===null||or===void 0||(Ht=or).call.apply(Ht,[ut].concat(ni)),(nn=(vn=Tn.props)[Gr])===null||nn===void 0||(hn=nn).call.apply(hn,[vn].concat(ni))}}),Gt=h.createElement(Ot,{value:ut[oe.valuePropName||"value"],update:Ii.current},Object($e.a)(Tn,Mr))}else yi&&(gr||$t)&&!mr?Gt=Tn(Ne):(Object(ie.a)(!Xe.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Gt=Tn);return ui(Gt,ze,be,bt)})}var Rt=Tt,Be=function(oe,yt){var zt={};for(var lt in oe)Object.prototype.hasOwnProperty.call(oe,lt)&&yt.indexOf(lt)<0&&(zt[lt]=oe[lt]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,lt=Object.getOwnPropertySymbols(oe);$t<lt.length;$t++)yt.indexOf(lt[$t])<0&&Object.prototype.propertyIsEnumerable.call(oe,lt[$t])&&(zt[lt[$t]]=oe[lt[$t]]);return zt},Z=function(yt){var zt=yt.children,lt=Be(yt,["children"]);return Object(ie.a)(!!lt.name,"Form.List","Miss `name` prop."),h.createElement(r.List,lt,function($t,cr){return zt($t.map(function(cn){return E()(E()({},cn),{fieldKey:cn.key})}),cr)})},J=Z,je=B;je.Item=Rt,je.List=J,je.useForm=I,je.Provider=t,je.create=function(){Object(ie.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Re=P.a=je},VpOo:function(j,P){function d(O,E){var C=E.x,v=E.y,w=E.width,m=E.height,h=E.r,c,i,r,o;w<0&&(C=C+w,w=-w),m<0&&(v=v+m,m=-m),typeof h=="number"?c=i=r=o=h:h instanceof Array?h.length===1?c=i=r=o=h[0]:h.length===2?(c=r=h[0],i=o=h[1]):h.length===3?(c=h[0],i=o=h[1],r=h[2]):(c=h[0],i=h[1],r=h[2],o=h[3]):c=i=r=o=0;var n;c+i>w&&(n=c+i,c*=w/n,i*=w/n),r+o>w&&(n=r+o,r*=w/n,o*=w/n),i+r>m&&(n=i+r,i*=m/n,r*=m/n),c+o>m&&(n=c+o,c*=m/n,o*=m/n),O.moveTo(C+c,v),O.lineTo(C+w-i,v),i!==0&&O.arc(C+w-i,v+i,i,-Math.PI/2,0),O.lineTo(C+w,v+m-r),r!==0&&O.arc(C+w-r,v+m-r,r,0,Math.PI/2),O.lineTo(C+o,v+m),o!==0&&O.arc(C+o,v+m-o,o,Math.PI/2,Math.PI),O.lineTo(C,v+c),c!==0&&O.arc(C+c,v+c,c,Math.PI,Math.PI*1.5)}P.buildPath=d},"VrN/":function(j,P,d){(function(O,E){j.exports=E()})(this,function(){"use strict";var O=navigator.userAgent,E=navigator.platform,C=/gecko\/\d/i.test(O),v=/MSIE \d/.test(O),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),m=/Edge\/(\d+)/.exec(O),h=v||w||m,c=h&&(v?document.documentMode||6:+(m||w)[1]),i=!m&&/WebKit\//.test(O),r=i&&/Qt\/\d+\.\d+/.test(O),o=!m&&/Chrome\//.test(O),n=/Opera\//.test(O),e=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),t=/PhantomJS/.test(O),a=!m&&/AppleWebKit/.test(O)&&/Mobile\/\w+/.test(O),l=/Android/.test(O),u=a||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),f=a||/Mac/.test(E),p=/\bCrOS\b/.test(O),g=/win/i.test(E),A=n&&O.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(n=!1,i=!0);var y=f&&(r||n&&(A==null||A<12.11)),x=C||h&&c>=9;function T(k){return new RegExp("(^|\\s)"+k+"(?:$|\\s)\\s*")}var S=function(W,$){var re=W.className,se=T($).exec(re);if(se){var ke=re.slice(se.index+se[0].length);W.className=re.slice(0,se.index)+(ke?se[1]+ke:"")}};function b(k){for(var W=k.childNodes.length;W>0;--W)k.removeChild(k.firstChild);return k}function _(k,W){return b(k).appendChild(W)}function I(k,W,$,re){var se=document.createElement(k);if($&&(se.className=$),re&&(se.style.cssText=re),typeof W=="string")se.appendChild(document.createTextNode(W));else if(W)for(var ke=0;ke<W.length;++ke)se.appendChild(W[ke]);return se}function L(k,W,$,re){var se=I(k,W,$,re);return se.setAttribute("role","presentation"),se}var D;document.createRange?D=function(W,$,re,se){var ke=document.createRange();return ke.setEnd(se||W,re),ke.setStart(W,$),ke}:D=function(W,$,re){var se=document.body.createTextRange();try{se.moveToElementText(W.parentNode)}catch(ke){return se}return se.collapse(!0),se.moveEnd("character",re),se.moveStart("character",$),se};function N(k,W){if(W.nodeType==3&&(W=W.parentNode),k.contains)return k.contains(W);do if(W.nodeType==11&&(W=W.host),W==k)return!0;while(W=W.parentNode)}function M(){var k;try{k=document.activeElement}catch(W){k=document.body||null}for(;k&&k.shadowRoot&&k.shadowRoot.activeElement;)k=k.shadowRoot.activeElement;return k}function B(k,W){var $=k.className;T(W).test($)||(k.className+=($?" ":"")+W)}function R(k,W){for(var $=k.split(" "),re=0;re<$.length;re++)$[re]&&!T($[re]).test(W)&&(W+=" "+$[re]);return W}var H=function(W){W.select()};a?H=function(W){W.selectionStart=0,W.selectionEnd=W.value.length}:h&&(H=function(W){try{W.select()}catch($){}});function F(k){var W=Array.prototype.slice.call(arguments,1);return function(){return k.apply(null,W)}}function K(k,W,$){W||(W={});for(var re in k)k.hasOwnProperty(re)&&($!==!1||!W.hasOwnProperty(re))&&(W[re]=k[re]);return W}function U(k,W,$,re,se){W==null&&(W=k.search(/[^\s\u00a0]/),W==-1&&(W=k.length));for(var ke=re||0,ft=se||0;;){var Kt=k.indexOf(" ",ke);if(Kt<0||Kt>=W)return ft+(W-ke);ft+=Kt-ke,ft+=$-ft%$,ke=Kt+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};V.prototype.onTimeout=function(k){k.id=0,k.time<=+new Date?k.f():setTimeout(k.handler,k.time-+new Date)},V.prototype.set=function(k,W){this.f=W;var $=+new Date+k;(!this.id||$<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,k),this.time=$)};function z(k,W){for(var $=0;$<k.length;++$)if(k[$]==W)return $;return-1}var Y=50,q={toString:function(){return"CodeMirror.Pass"}},ce={scroll:!1},ie={origin:"*mouse"},ve={origin:"+move"};function Ee(k,W,$){for(var re=0,se=0;;){var ke=k.indexOf(" ",re);ke==-1&&(ke=k.length);var ft=ke-re;if(ke==k.length||se+ft>=W)return re+Math.min(ft,W-se);if(se+=ke-re,se+=$-se%$,re=ke+1,se>=W)return re}}var Le=[""];function He(k){for(;Le.length<=k;)Le.push(ge(Le)+" ");return Le[k]}function ge(k){return k[k.length-1]}function Fe(k,W){for(var $=[],re=0;re<k.length;re++)$[re]=W(k[re],re);return $}function Q(k,W,$){for(var re=0,se=$(W);re<k.length&&$(k[re])<=se;)re++;k.splice(re,0,W)}function fe(){}function Je(k,W){var $;return Object.create?$=Object.create(k):(fe.prototype=k,$=new fe),W&&K(W,$),$}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function X(k){return/\w/.test(k)||k>"\x80"&&(k.toUpperCase()!=k.toLowerCase()||ne.test(k))}function G(k,W){return W?W.source.indexOf("\\w")>-1&&X(k)?!0:W.test(k):X(k)}function te(k){for(var W in k)if(k.hasOwnProperty(W)&&k[W])return!1;return!0}var we=/[\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 he(k){return k.charCodeAt(0)>=768&&we.test(k)}function Pe(k,W,$){for(;($<0?W>0:W<k.length)&&he(k.charAt(W));)W+=$;return W}function Oe(k,W,$){for(var re=W>$?-1:1;;){if(W==$)return W;var se=(W+$)/2,ke=re<0?Math.ceil(se):Math.floor(se);if(ke==W)return k(ke)?W:$;k(ke)?$=ke:W=ke+re}}function le(k,W,$,re){if(!k)return re(W,$,"ltr",0);for(var se=!1,ke=0;ke<k.length;++ke){var ft=k[ke];(ft.from<$&&ft.to>W||W==$&&ft.to==W)&&(re(Math.max(ft.from,W),Math.min(ft.to,$),ft.level==1?"rtl":"ltr",ke),se=!0)}se||re(W,$,"ltr")}var me=null;function _e(k,W,$){var re;me=null;for(var se=0;se<k.length;++se){var ke=k[se];if(ke.from<W&&ke.to>W)return se;ke.to==W&&(ke.from!=ke.to&&$=="before"?re=se:me=se),ke.from==W&&(ke.from!=ke.to&&$!="before"?re=se:me=se)}return re!=null?re:me}var $e=function(){var k="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",W="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(ir){return ir<=247?k.charAt(ir):1424<=ir&&ir<=1524?"R":1536<=ir&&ir<=1785?W.charAt(ir-1536):1774<=ir&&ir<=2220?"r":8192<=ir&&ir<=8203?"w":ir==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,se=/[stwN]/,ke=/[LRr]/,ft=/[Lb1n]/,Kt=/[1n]/;function qt(ir,bn,Bn){this.level=ir,this.from=bn,this.to=Bn}return function(ir,bn){var Bn=bn=="ltr"?"L":"R";if(ir.length==0||bn=="ltr"&&!re.test(ir))return!1;for(var ci=ir.length,fi=[],Ji=0;Ji<ci;++Ji)fi.push($(ir.charCodeAt(Ji)));for(var ba=0,Fa=Bn;ba<ci;++ba){var Da=fi[ba];Da=="m"?fi[ba]=Fa:Fa=Da}for(var Ia=0,Za=Bn;Ia<ci;++Ia){var mo=fi[Ia];mo=="1"&&Za=="r"?fi[Ia]="n":ke.test(mo)&&(Za=mo,mo=="r"&&(fi[Ia]="R"))}for(var Vo=1,Fo=fi[0];Vo<ci-1;++Vo){var Ta=fi[Vo];Ta=="+"&&Fo=="1"&&fi[Vo+1]=="1"?fi[Vo]="1":Ta==","&&Fo==fi[Vo+1]&&(Fo=="1"||Fo=="n")&&(fi[Vo]=Fo),Fo=Ta}for(var fs=0;fs<ci;++fs){var ks=fi[fs];if(ks==",")fi[fs]="N";else if(ks=="%"){var hs=void 0;for(hs=fs+1;hs<ci&&fi[hs]=="%";++hs);for(var cl=fs&&fi[fs-1]=="!"||hs<ci&&fi[hs]=="1"?"1":"N",cs=fs;cs<hs;++cs)fi[cs]=cl;fs=hs-1}}for(var us=0,Cl=Bn;us<ci;++us){var dl=fi[us];Cl=="L"&&dl=="1"?fi[us]="L":ke.test(dl)&&(Cl=dl)}for(var Qs=0;Qs<ci;++Qs)if(se.test(fi[Qs])){var Js=void 0;for(Js=Qs+1;Js<ci&&se.test(fi[Js]);++Js);for(var Bs=(Qs?fi[Qs-1]:Bn)=="L",Vl=(Js<ci?fi[Js]:Bn)=="L",ku=Bs==Vl?Bs?"L":"R":Bn,gu=Qs;gu<Js;++gu)fi[gu]=ku;Qs=Js-1}for(var Zs=[],vu,Ol=0;Ol<ci;)if(ft.test(fi[Ol])){var Vu=Ol;for(++Ol;Ol<ci&&ft.test(fi[Ol]);++Ol);Zs.push(new qt(0,Vu,Ol))}else{var Au=Ol,xu=Zs.length,Nu=bn=="rtl"?1:0;for(++Ol;Ol<ci&&fi[Ol]!="L";++Ol);for(var kl=Au;kl<Ol;)if(Kt.test(fi[kl])){Au<kl&&(Zs.splice(xu,0,new qt(1,Au,kl)),xu+=Nu);var Eu=kl;for(++kl;kl<Ol&&Kt.test(fi[kl]);++kl);Zs.splice(xu,0,new qt(2,Eu,kl)),xu+=Nu,Au=kl}else++kl;Au<Ol&&Zs.splice(xu,0,new qt(1,Au,Ol))}return bn=="ltr"&&(Zs[0].level==1&&(vu=ir.match(/^\s+/))&&(Zs[0].from=vu[0].length,Zs.unshift(new qt(0,0,vu[0].length))),ge(Zs).level==1&&(vu=ir.match(/\s+$/))&&(ge(Zs).to-=vu[0].length,Zs.push(new qt(0,ci-vu[0].length,ci)))),bn=="rtl"?Zs.reverse():Zs}}();function gt(k,W){var $=k.order;return $==null&&($=k.order=$e(k.text,W)),$}var et=[],Ie=function(W,$,re){if(W.addEventListener)W.addEventListener($,re,!1);else if(W.attachEvent)W.attachEvent("on"+$,re);else{var se=W._handlers||(W._handlers={});se[$]=(se[$]||et).concat(re)}};function rt(k,W){return k._handlers&&k._handlers[W]||et}function Ge(k,W,$){if(k.removeEventListener)k.removeEventListener(W,$,!1);else if(k.detachEvent)k.detachEvent("on"+W,$);else{var re=k._handlers,se=re&&re[W];if(se){var ke=z(se,$);ke>-1&&(re[W]=se.slice(0,ke).concat(se.slice(ke+1)))}}}function vt(k,W){var $=rt(k,W);if(!$.length)return;for(var re=Array.prototype.slice.call(arguments,2),se=0;se<$.length;++se)$[se].apply(null,re)}function Ot(k,W,$){return typeof W=="string"&&(W={type:W,preventDefault:function(){this.defaultPrevented=!0}}),vt(k,$||W.type,k,W),J(W)||W.codemirrorIgnore}function Et(k){var W=k._handlers&&k._handlers.cursorActivity;if(!W)return;for(var $=k.curOp.cursorActivityHandlers||(k.curOp.cursorActivityHandlers=[]),re=0;re<W.length;++re)z($,W[re])==-1&&$.push(W[re])}function Tt(k,W){return rt(k,W).length>0}function Rt(k){k.prototype.on=function(W,$){Ie(this,W,$)},k.prototype.off=function(W,$){Ge(this,W,$)}}function Be(k){k.preventDefault?k.preventDefault():k.returnValue=!1}function Z(k){k.stopPropagation?k.stopPropagation():k.cancelBubble=!0}function J(k){return k.defaultPrevented!=null?k.defaultPrevented:k.returnValue==!1}function je(k){Be(k),Z(k)}function Re(k){return k.target||k.srcElement}function oe(k){var W=k.which;return W==null&&(k.button&1?W=1:k.button&2?W=3:k.button&4&&(W=2)),f&&k.ctrlKey&&W==1&&(W=3),W}var yt=function(){if(h&&c<9)return!1;var k=I("div");return"draggable"in k||"dragDrop"in k}(),zt;function lt(k){if(zt==null){var W=I("span","\u200B");_(k,I("span",[W,document.createTextNode("x")])),k.firstChild.offsetHeight!=0&&(zt=W.offsetWidth<=1&&W.offsetHeight>2&&!(h&&c<8))}var $=zt?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return $.setAttribute("cm-text",""),$}var $t;function cr(k){if($t!=null)return $t;var W=_(k,document.createTextNode("A\u062EA")),$=D(W,0,1).getBoundingClientRect(),re=D(W,1,2).getBoundingClientRect();return b(k),!$||$.left==$.right?!1:$t=re.right-$.right<3}var cn=`
b`.split(/\n/).length!=3?function(k){for(var W=0,$=[],re=k.length;W<=re;){var se=k.indexOf(`
`,W);se==-1&&(se=k.length);var ke=k.slice(W,k.charAt(se-1)=="\r"?se-1:se),ft=ke.indexOf("\r");ft!=-1?($.push(ke.slice(0,ft)),W+=ft+1):($.push(ke),W=se+1)}return $}:function(k){return k.split(/\r\n?|\n/)},pr=window.getSelection?function(k){try{return k.selectionStart!=k.selectionEnd}catch(W){return!1}}:function(k){var W;try{W=k.ownerDocument.selection.createRange()}catch($){}return!W||W.parentElement()!=k?!1:W.compareEndPoints("StartToEnd",W)!=0},gr=function(){var k=I("div");return"oncopy"in k?!0:(k.setAttribute("oncopy","return;"),typeof k.oncopy=="function")}(),Zt=null;function Vt(k){if(Zt!=null)return Zt;var W=_(k,I("span","x")),$=W.getBoundingClientRect(),re=D(W,0,1).getBoundingClientRect();return Zt=Math.abs($.left-re.left)>1}var mt={},Yr={};function Tn(k,W){arguments.length>2&&(W.dependencies=Array.prototype.slice.call(arguments,2)),mt[k]=W}function Hn(k,W){Yr[k]=W}function ei(k){if(typeof k=="string"&&Yr.hasOwnProperty(k))k=Yr[k];else if(k&&typeof k.name=="string"&&Yr.hasOwnProperty(k.name)){var W=Yr[k.name];typeof W=="string"&&(W={name:W}),k=Je(W,k),k.name=W.name}else{if(typeof k=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(k))return ei("application/xml");if(typeof k=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(k))return ei("application/json")}return typeof k=="string"?{name:k}:k||{name:"null"}}function ji(k,W){W=ei(W);var $=mt[W.name];if(!$)return ji(k,"text/plain");var re=$(k,W);if(Ln.hasOwnProperty(W.name)){var se=Ln[W.name];for(var ke in se){if(!se.hasOwnProperty(ke))continue;re.hasOwnProperty(ke)&&(re["_"+ke]=re[ke]),re[ke]=se[ke]}}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 Ln={};function Vn(k,W){var $=Ln.hasOwnProperty(k)?Ln[k]:Ln[k]={};K(W,$)}function kt(k,W){if(W===!0)return W;if(k.copyState)return k.copyState(W);var $={};for(var re in W){var se=W[re];se instanceof Array&&(se=se.concat([])),$[re]=se}return $}function wt(k,W){for(var $;k.innerMode&&!($=k.innerMode(W),!$||$.mode==k);)W=$.state,k=$.mode;return $||{mode:k,state:W}}function Te(k,W,$){return k.startState?k.startState(W,$):!0}var xe=function(W,$,re){this.pos=this.start=0,this.string=W,this.tabSize=$||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};xe.prototype.eol=function(){return this.pos>=this.string.length},xe.prototype.sol=function(){return this.pos==this.lineStart},xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},xe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},xe.prototype.eat=function(k){var W=this.string.charAt(this.pos),$;if(typeof k=="string"?$=W==k:$=W&&(k.test?k.test(W):k(W)),$)return++this.pos,W},xe.prototype.eatWhile=function(k){for(var W=this.pos;this.eat(k););return this.pos>W},xe.prototype.eatSpace=function(){for(var k=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>k},xe.prototype.skipToEnd=function(){this.pos=this.string.length},xe.prototype.skipTo=function(k){var W=this.string.indexOf(k,this.pos);if(W>-1)return this.pos=W,!0},xe.prototype.backUp=function(k){this.pos-=k},xe.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)},xe.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},xe.prototype.match=function(k,W,$){if(typeof k=="string"){var re=function(Kt){return $?Kt.toLowerCase():Kt},se=this.string.substr(this.pos,k.length);if(re(se)==re(k))return W!==!1&&(this.pos+=k.length),!0}else{var ke=this.string.slice(this.pos).match(k);return ke&&ke.index>0?null:(ke&&W!==!1&&(this.pos+=ke[0].length),ke)}},xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},xe.prototype.hideFirstChars=function(k,W){this.lineStart+=k;try{return W()}finally{this.lineStart-=k}},xe.prototype.lookAhead=function(k){var W=this.lineOracle;return W&&W.lookAhead(k)},xe.prototype.baseToken=function(){var k=this.lineOracle;return k&&k.baseToken(this.pos)};function Ce(k,W){if(W-=k.first,W<0||W>=k.size)throw new Error("There is no line "+(W+k.first)+" in the document.");for(var $=k;!$.lines;)for(var re=0;;++re){var se=$.children[re],ke=se.chunkSize();if(W<ke){$=se;break}W-=ke}return $.lines[W]}function Ye(k,W,$){var re=[],se=W.line;return k.iter(W.line,$.line+1,function(ke){var ft=ke.text;se==$.line&&(ft=ft.slice(0,$.ch)),se==W.line&&(ft=ft.slice(W.ch)),re.push(ft),++se}),re}function it(k,W,$){var re=[];return k.iter(W,$,function(se){re.push(se.text)}),re}function dt(k,W){var $=W-k.height;if($)for(var re=k;re;re=re.parent)re.height+=$}function _t(k){if(k.parent==null)return null;for(var W=k.parent,$=z(W.lines,k),re=W.parent;re;W=re,re=re.parent)for(var se=0;!(re.children[se]==W);++se)$+=re.children[se].chunkSize();return $+W.first}function vr(k,W){var $=k.first;e:do{for(var re=0;re<k.children.length;++re){var se=k.children[re],ke=se.height;if(W<ke){k=se;continue e}W-=ke,$+=se.chunkSize()}return $}while(!k.lines);for(var ft=0;ft<k.lines.length;++ft){var Kt=k.lines[ft],qt=Kt.height;if(W<qt)break;W-=qt}return $+ft}function kr(k,W){return W>=k.first&&W<k.first+k.size}function mn(k,W){return String(k.lineNumberFormatter(W+k.firstLineNumber))}function Mt(k,W,$){if($===void 0&&($=null),!(this instanceof Mt))return new Mt(k,W,$);this.line=k,this.ch=W,this.sticky=$}function nt(k,W){return k.line-W.line||k.ch-W.ch}function st(k,W){return k.sticky==W.sticky&&nt(k,W)==0}function Xt(k){return Mt(k.line,k.ch)}function Dt(k,W){return nt(k,W)<0?W:k}function St(k,W){return nt(k,W)<0?k:W}function jt(k,W){return Math.max(k.first,Math.min(W,k.first+k.size-1))}function At(k,W){if(W.line<k.first)return Mt(k.first,0);var $=k.first+k.size-1;return W.line>$?Mt($,Ce(k,$).text.length):Ft(W,Ce(k,W.line).text.length)}function Ft(k,W){var $=k.ch;return $==null||$>W?Mt(k.line,W):$<0?Mt(k.line,0):k}function wr(k,W){for(var $=[],re=0;re<W.length;re++)$[re]=At(k,W[re]);return $}var sr=function(W,$){this.state=W,this.lookAhead=$},mr=function(W,$,re,se){this.state=$,this.doc=W,this.line=re,this.maxLookAhead=se||0,this.baseTokens=null,this.baseTokenPos=1};mr.prototype.lookAhead=function(k){var W=this.doc.getLine(this.line+k);return W!=null&&k>this.maxLookAhead&&(this.maxLookAhead=k),W},mr.prototype.baseToken=function(k){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=k;)this.baseTokenPos+=2;var W=this.baseTokens[this.baseTokenPos+1];return{type:W&&W.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-k}},mr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mr.fromSaved=function(k,W,$){return W instanceof sr?new mr(k,kt(k.mode,W.state),$,W.lookAhead):new mr(k,kt(k.mode,W),$)},mr.prototype.save=function(k){var W=k!==!1?kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new sr(W,this.maxLookAhead):W};function $r(k,W,$,re){var se=[k.state.modeGen],ke={};be(k,W.text,k.doc.mode,$,function(ir,bn){return se.push(ir,bn)},ke,re);for(var ft=$.state,Kt=function(bn){$.baseTokens=se;var Bn=k.state.overlays[bn],ci=1,fi=0;$.state=!0,be(k,W.text,Bn.mode,$,function(Ji,ba){for(var Fa=ci;fi<Ji;){var Da=se[ci];Da>Ji&&se.splice(ci,1,Ji,se[ci+1],Da),ci+=2,fi=Math.min(Ji,Da)}if(!ba)return;if(Bn.opaque)se.splice(Fa,ci-Fa,Ji,"overlay "+ba),ci=Fa+2;else for(;Fa<ci;Fa+=2){var Ia=se[Fa+1];se[Fa+1]=(Ia?Ia+" ":"")+"overlay "+ba}},ke),$.state=ft,$.baseTokens=null,$.baseTokenPos=1},qt=0;qt<k.state.overlays.length;++qt)Kt(qt);return{styles:se,classes:ke.bgClass||ke.textClass?ke:null}}function rn(k,W,$){if(!W.styles||W.styles[0]!=k.state.modeGen){var re=jn(k,_t(W)),se=W.text.length>k.options.maxHighlightLength&&kt(k.doc.mode,re.state),ke=$r(k,W,re);se&&(re.state=se),W.stateAfter=re.save(!se),W.styles=ke.styles,ke.classes?W.styleClasses=ke.classes:W.styleClasses&&(W.styleClasses=null),$===k.doc.highlightFrontier&&(k.doc.modeFrontier=Math.max(k.doc.modeFrontier,++k.doc.highlightFrontier))}return W.styles}function jn(k,W,$){var re=k.doc,se=k.display;if(!re.mode.startState)return new mr(re,!0,W);var ke=Ne(k,W,$),ft=ke>re.first&&Ce(re,ke-1).stateAfter,Kt=ft?mr.fromSaved(re,ft,ke):new mr(re,Te(re.mode),ke);return re.iter(ke,W,function(qt){Un(k,qt.text,Kt);var ir=Kt.line;qt.stateAfter=ir==W-1||ir%5==0||ir>=se.viewFrom&&ir<se.viewTo?Kt.save():null,Kt.nextLine()}),$&&(re.modeFrontier=Kt.line),Kt}function Un(k,W,$,re){var se=k.doc.mode,ke=new xe(W,k.options.tabSize,$);for(ke.start=ke.pos=re||0,W==""&&ui(se,$.state);!ke.eol();)yi(se,ke,$.state),ke.start=ke.pos}function ui(k,W){if(k.blankLine)return k.blankLine(W);if(!k.innerMode)return;var $=wt(k,W);if($.mode.blankLine)return $.mode.blankLine($.state)}function yi(k,W,$,re){for(var se=0;se<10;se++){re&&(re[0]=wt(k,$).mode);var ke=k.token(W,$);if(W.pos>W.start)return ke}throw new Error("Mode "+k.name+" failed to advance stream.")}var Ii=function(W,$,re){this.start=W.start,this.end=W.pos,this.string=W.current(),this.type=$||null,this.state=re};function Gi(k,W,$,re){var se=k.doc,ke=se.mode,ft;W=At(se,W);var Kt=Ce(se,W.line),qt=jn(k,W.line,$),ir=new xe(Kt.text,k.options.tabSize,qt),bn;for(re&&(bn=[]);(re||ir.pos<W.ch)&&!ir.eol();)ir.start=ir.pos,ft=yi(ke,ir,qt.state),re&&bn.push(new Ii(ir,ft,kt(se.mode,qt.state)));return re?bn:new Ii(ir,ft,qt.state)}function Qe(k,W){if(k)for(;;){var $=k.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!$)break;k=k.slice(0,$.index)+k.slice($.index+$[0].length);var re=$[1]?"bgClass":"textClass";W[re]==null?W[re]=$[2]:new RegExp("(?:^|\\s)"+$[2]+"(?:$|\\s)").test(W[re])||(W[re]+=" "+$[2])}return k}function be(k,W,$,re,se,ke,ft){var Kt=$.flattenSpans;Kt==null&&(Kt=k.options.flattenSpans);var qt=0,ir=null,bn=new xe(W,k.options.tabSize,re),Bn,ci=k.options.addModeClass&&[null];for(W==""&&Qe(ui($,re.state),ke);!bn.eol();){if(bn.pos>k.options.maxHighlightLength?(Kt=!1,ft&&Un(k,W,re,bn.pos),bn.pos=W.length,Bn=null):Bn=Qe(yi($,bn,re.state,ci),ke),ci){var fi=ci[0].name;fi&&(Bn="m-"+(Bn?fi+" "+Bn:fi))}if(!Kt||ir!=Bn){for(;qt<bn.start;)qt=Math.min(bn.start,qt+5e3),se(qt,ir);ir=Bn}bn.start=bn.pos}for(;qt<bn.pos;){var Ji=Math.min(bn.pos,qt+5e3);se(Ji,ir),qt=Ji}}function Ne(k,W,$){for(var re,se,ke=k.doc,ft=$?-1:W-(k.doc.mode.innerMode?1e3:100),Kt=W;Kt>ft;--Kt){if(Kt<=ke.first)return ke.first;var qt=Ce(ke,Kt-1),ir=qt.stateAfter;if(ir&&(!$||Kt+(ir instanceof sr?ir.lookAhead:0)<=ke.modeFrontier))return Kt;var bn=U(qt.text,null,k.options.tabSize);(se==null||re>bn)&&(se=Kt-1,re=bn)}return se}function Ue(k,W){if(k.modeFrontier=Math.min(k.modeFrontier,W),k.highlightFrontier<W-10)return;for(var $=k.first,re=W-1;re>$;re--){var se=Ce(k,re).stateAfter;if(se&&(!(se instanceof sr)||re+se.lookAhead<W)){$=re+1;break}}k.highlightFrontier=Math.min(k.highlightFrontier,$)}var Xe=!1,ze=!1;function Ze(){Xe=!0}function bt(){ze=!0}function ut(k,W,$){this.marker=k,this.from=W,this.to=$}function Gt(k,W){if(k)for(var $=0;$<k.length;++$){var re=k[$];if(re.marker==W)return re}}function Mr(k,W){for(var $,re=0;re<k.length;++re)k[re]!=W&&($||($=[])).push(k[re]);return $}function Lr(k,W){k.markedSpans=k.markedSpans?k.markedSpans.concat([W]):[W],W.marker.attachLine(k)}function Gr(k,W,$){var re;if(k)for(var se=0;se<k.length;++se){var ke=k[se],ft=ke.marker,Kt=ke.from==null||(ft.inclusiveLeft?ke.from<=W:ke.from<W);if(Kt||ke.from==W&&ft.type=="bookmark"&&(!$||!ke.marker.insertLeft)){var qt=ke.to==null||(ft.inclusiveRight?ke.to>=W:ke.to>W);(re||(re=[])).push(new ut(ft,ke.from,qt?null:ke.to))}}return re}function Ht(k,W,$){var re;if(k)for(var se=0;se<k.length;++se){var ke=k[se],ft=ke.marker,Kt=ke.to==null||(ft.inclusiveRight?ke.to>=W:ke.to>W);if(Kt||ke.from==W&&ft.type=="bookmark"&&(!$||ke.marker.insertLeft)){var qt=ke.from==null||(ft.inclusiveLeft?ke.from<=W:ke.from<W);(re||(re=[])).push(new ut(ft,qt?null:ke.from-W,ke.to==null?null:ke.to-W))}}return re}function hn(k,W){if(W.full)return null;var $=kr(k,W.from.line)&&Ce(k,W.from.line).markedSpans,re=kr(k,W.to.line)&&Ce(k,W.to.line).markedSpans;if(!$&&!re)return null;var se=W.from.ch,ke=W.to.ch,ft=nt(W.from,W.to)==0,Kt=Gr($,se,ft),qt=Ht(re,ke,ft),ir=W.text.length==1,bn=ge(W.text).length+(ir?se:0);if(Kt)for(var Bn=0;Bn<Kt.length;++Bn){var ci=Kt[Bn];if(ci.to==null){var fi=Gt(qt,ci.marker);fi?ir&&(ci.to=fi.to==null?null:fi.to+bn):ci.to=se}}if(qt)for(var Ji=0;Ji<qt.length;++Ji){var ba=qt[Ji];if(ba.to!=null&&(ba.to+=bn),ba.from==null){var Fa=Gt(Kt,ba.marker);Fa||(ba.from=bn,ir&&(Kt||(Kt=[])).push(ba))}else ba.from+=bn,ir&&(Kt||(Kt=[])).push(ba)}Kt&&(Kt=or(Kt)),qt&&qt!=Kt&&(qt=or(qt));var Da=[Kt];if(!ir){var Ia=W.text.length-2,Za;if(Ia>0&&Kt)for(var mo=0;mo<Kt.length;++mo)Kt[mo].to==null&&(Za||(Za=[])).push(new ut(Kt[mo].marker,null,null));for(var Vo=0;Vo<Ia;++Vo)Da.push(Za);Da.push(qt)}return Da}function or(k){for(var W=0;W<k.length;++W){var $=k[W];$.from!=null&&$.from==$.to&&$.marker.clearWhenEmpty!==!1&&k.splice(W--,1)}return k.length?k:null}function vn(k,W,$){var re=null;if(k.iter(W.line,$.line+1,function(fi){if(fi.markedSpans)for(var Ji=0;Ji<fi.markedSpans.length;++Ji){var ba=fi.markedSpans[Ji].marker;ba.readOnly&&(!re||z(re,ba)==-1)&&(re||(re=[])).push(ba)}}),!re)return null;for(var se=[{from:W,to:$}],ke=0;ke<re.length;++ke)for(var ft=re[ke],Kt=ft.find(0),qt=0;qt<se.length;++qt){var ir=se[qt];if(nt(ir.to,Kt.from)<0||nt(ir.from,Kt.to)>0)continue;var bn=[qt,1],Bn=nt(ir.from,Kt.from),ci=nt(ir.to,Kt.to);(Bn<0||!ft.inclusiveLeft&&!Bn)&&bn.push({from:ir.from,to:Kt.from}),(ci>0||!ft.inclusiveRight&&!ci)&&bn.push({from:Kt.to,to:ir.to}),se.splice.apply(se,bn),qt+=bn.length-3}return se}function nn(k){var W=k.markedSpans;if(!W)return;for(var $=0;$<W.length;++$)W[$].marker.detachLine(k);k.markedSpans=null}function Ur(k,W){if(!W)return;for(var $=0;$<W.length;++$)W[$].marker.attachLine(k);k.markedSpans=W}function ni(k){return k.inclusiveLeft?-1:0}function Oi(k){return k.inclusiveRight?1:0}function Hi(k,W){var $=k.lines.length-W.lines.length;if($!=0)return $;var re=k.find(),se=W.find(),ke=nt(re.from,se.from)||ni(k)-ni(W);if(ke)return-ke;var ft=nt(re.to,se.to)||Oi(k)-Oi(W);return ft||W.id-k.id}function Ri(k,W){var $=ze&&k.markedSpans,re;if($)for(var se=void 0,ke=0;ke<$.length;++ke)se=$[ke],se.marker.collapsed&&(W?se.from:se.to)==null&&(!re||Hi(re,se.marker)<0)&&(re=se.marker);return re}function Ni(k){return Ri(k,!0)}function Yi(k){return Ri(k,!1)}function Qr(k,W){var $=ze&&k.markedSpans,re;if($)for(var se=0;se<$.length;++se){var ke=$[se];ke.marker.collapsed&&(ke.from==null||ke.from<W)&&(ke.to==null||ke.to>W)&&(!re||Hi(re,ke.marker)<0)&&(re=ke.marker)}return re}function On(k,W,$,re,se){var ke=Ce(k,W),ft=ze&&ke.markedSpans;if(ft)for(var Kt=0;Kt<ft.length;++Kt){var qt=ft[Kt];if(!qt.marker.collapsed)continue;var ir=qt.marker.find(0),bn=nt(ir.from,$)||ni(qt.marker)-ni(se),Bn=nt(ir.to,re)||Oi(qt.marker)-Oi(se);if(bn>=0&&Bn<=0||bn<=0&&Bn>=0)continue;if(bn<=0&&(qt.marker.inclusiveRight&&se.inclusiveLeft?nt(ir.to,$)>=0:nt(ir.to,$)>0)||bn>=0&&(qt.marker.inclusiveRight&&se.inclusiveLeft?nt(ir.from,re)<=0:nt(ir.from,re)<0))return!0}}function zr(k){for(var W;W=Ni(k);)k=W.find(-1,!0).line;return k}function fr(k){for(var W;W=Yi(k);)k=W.find(1,!0).line;return k}function Nr(k){for(var W,$;W=Yi(k);)k=W.find(1,!0).line,($||($=[])).push(k);return $}function Qt(k,W){var $=Ce(k,W),re=zr($);return $==re?W:_t(re)}function xr(k,W){if(W>k.lastLine())return W;var $=Ce(k,W),re;if(!Jr(k,$))return W;for(;re=Yi($);)$=re.find(1,!0).line;return _t($)+1}function Jr(k,W){var $=ze&&W.markedSpans;if($)for(var re=void 0,se=0;se<$.length;++se){if(re=$[se],!re.marker.collapsed)continue;if(re.from==null)return!0;if(re.marker.widgetNode)continue;if(re.from==0&&re.marker.inclusiveLeft&&Kr(k,W,re))return!0}}function Kr(k,W,$){if($.to==null){var re=$.marker.find(1,!0);return Kr(k,re.line,Gt(re.line.markedSpans,$.marker))}if($.marker.inclusiveRight&&$.to==W.text.length)return!0;for(var se=void 0,ke=0;ke<W.markedSpans.length;++ke)if(se=W.markedSpans[ke],se.marker.collapsed&&!se.marker.widgetNode&&se.from==$.to&&(se.to==null||se.to!=$.from)&&(se.marker.inclusiveLeft||$.marker.inclusiveRight)&&Kr(k,W,se))return!0}function en(k){k=zr(k);for(var W=0,$=k.parent,re=0;re<$.lines.length;++re){var se=$.lines[re];if(se==k)break;W+=se.height}for(var ke=$.parent;ke;$=ke,ke=$.parent)for(var ft=0;ft<ke.children.length;++ft){var Kt=ke.children[ft];if(Kt==$)break;W+=Kt.height}return W}function ai(k){if(k.height==0)return 0;for(var W=k.text.length,$,re=k;$=Ni(re);){var se=$.find(0,!0);re=se.from.line,W+=se.from.ch-se.to.ch}for(re=k;$=Yi(re);){var ke=$.find(0,!0);W-=re.text.length-ke.from.ch,re=ke.to.line,W+=re.text.length-ke.to.ch}return W}function Yn(k){var W=k.display,$=k.doc;W.maxLine=Ce($,$.first),W.maxLineLength=ai(W.maxLine),W.maxLineChanged=!0,$.iter(function(re){var se=ai(re);se>W.maxLineLength&&(W.maxLineLength=se,W.maxLine=re)})}var Si=function(W,$,re){this.text=W,Ur(this,$),this.height=re?re(this):1};Si.prototype.lineNo=function(){return _t(this)},Rt(Si);function ln(k,W,$,re){k.text=W,k.stateAfter&&(k.stateAfter=null),k.styles&&(k.styles=null),k.order!=null&&(k.order=null),nn(k),Ur(k,$);var se=re?re(k):1;se!=k.height&&dt(k,se)}function Or(k){k.parent=null,nn(k)}var wn={},Xn={};function Zn(k,W){if(!k||/^\s*$/.test(k))return null;var $=W.addModeClass?Xn:wn;return $[k]||($[k]=k.replace(/\S+/g,"cm-$&"))}function ii(k,W){var $=L("span",null,null,i?"padding-right: .1px":null),re={pre:L("pre",[$],"CodeMirror-line"),content:$,col:0,pos:0,cm:k,trailingSpace:!1,splitSpaces:k.getOption("lineWrapping")};W.measure={};for(var se=0;se<=(W.rest?W.rest.length:0);se++){var ke=se?W.rest[se-1]:W.line,ft=void 0;re.pos=0,re.addToken=ki,cr(k.display.measure)&&(ft=gt(ke,k.doc.direction))&&(re.addToken=ra(re.addToken,ft)),re.map=[];var Kt=W!=k.display.externalMeasured&&_t(ke);wa(ke,re,rn(k,ke,Kt)),ke.styleClasses&&(ke.styleClasses.bgClass&&(re.bgClass=R(ke.styleClasses.bgClass,re.bgClass||"")),ke.styleClasses.textClass&&(re.textClass=R(ke.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(lt(k.display.measure))),se==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(i){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 vt(k,"renderLine",k,W.line,re.pre),re.pre.className&&(re.textClass=R(re.pre.className,re.textClass||"")),re}function Ei(k){var W=I("span","\u2022","cm-invalidchar");return W.title="\\u"+k.charCodeAt(0).toString(16),W.setAttribute("aria-label",W.title),W}function ki(k,W,$,re,se,ke,ft){if(!W)return;var Kt=k.splitSpaces?Fi(W,k.trailingSpace):W,qt=k.cm.state.specialChars,ir=!1,bn;if(!qt.test(W))k.col+=W.length,bn=document.createTextNode(Kt),k.map.push(k.pos,k.pos+W.length,bn),h&&c<9&&(ir=!0),k.pos+=W.length;else{bn=document.createDocumentFragment();for(var Bn=0;;){qt.lastIndex=Bn;var ci=qt.exec(W),fi=ci?ci.index-Bn:W.length-Bn;if(fi){var Ji=document.createTextNode(Kt.slice(Bn,Bn+fi));h&&c<9?bn.appendChild(I("span",[Ji])):bn.appendChild(Ji),k.map.push(k.pos,k.pos+fi,Ji),k.col+=fi,k.pos+=fi}if(!ci)break;Bn+=fi+1;var ba=void 0;if(ci[0]==" "){var Fa=k.cm.options.tabSize,Da=Fa-k.col%Fa;ba=bn.appendChild(I("span",He(Da),"cm-tab")),ba.setAttribute("role","presentation"),ba.setAttribute("cm-text"," "),k.col+=Da}else ci[0]=="\r"||ci[0]==`
`?(ba=bn.appendChild(I("span",ci[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ba.setAttribute("cm-text",ci[0]),k.col+=1):(ba=k.cm.options.specialCharPlaceholder(ci[0]),ba.setAttribute("cm-text",ci[0]),h&&c<9?bn.appendChild(I("span",[ba])):bn.appendChild(ba),k.col+=1);k.map.push(k.pos,k.pos+1,ba),k.pos++}}if(k.trailingSpace=Kt.charCodeAt(W.length-1)==32,$||re||se||ir||ke||ft){var Ia=$||"";re&&(Ia+=re),se&&(Ia+=se);var Za=I("span",[bn],Ia,ke);if(ft)for(var mo in ft)ft.hasOwnProperty(mo)&&mo!="style"&&mo!="class"&&Za.setAttribute(mo,ft[mo]);return k.content.appendChild(Za)}k.content.appendChild(bn)}function Fi(k,W){if(k.length>1&&!/ /.test(k))return k;for(var $=W,re="",se=0;se<k.length;se++){var ke=k.charAt(se);ke==" "&&$&&(se==k.length-1||k.charCodeAt(se+1)==32)&&(ke="\xA0"),re+=ke,$=ke==" "}return re}function ra(k,W){return function($,re,se,ke,ft,Kt,qt){se=se?se+" cm-force-border":"cm-force-border";for(var ir=$.pos,bn=ir+re.length;;){for(var Bn=void 0,ci=0;ci<W.length&&!(Bn=W[ci],Bn.to>ir&&Bn.from<=ir);ci++);if(Bn.to>=bn)return k($,re,se,ke,ft,Kt,qt);k($,re.slice(0,Bn.to-ir),se,ke,null,Kt,qt),ke=null,re=re.slice(Bn.to-ir),ir=Bn.to}}}function _a(k,W,$,re){var se=!re&&$.widgetNode;se&&k.map.push(k.pos,k.pos+W,se),!re&&k.cm.display.input.needsContentAttribute&&(se||(se=k.content.appendChild(document.createElement("span"))),se.setAttribute("cm-marker",$.id)),se&&(k.cm.display.input.setUneditable(se),k.content.appendChild(se)),k.pos+=W,k.trailingSpace=!1}function wa(k,W,$){var re=k.markedSpans,se=k.text,ke=0;if(!re){for(var ft=1;ft<$.length;ft+=2)W.addToken(W,se.slice(ke,ke=$[ft]),Zn($[ft+1],W.cm.options));return}for(var Kt=se.length,qt=0,ir=1,bn="",Bn,ci,fi=0,Ji,ba,Fa,Da,Ia;;){if(fi==qt){Ji=ba=Fa=ci="",Ia=null,Da=null,fi=Infinity;for(var Za=[],mo=void 0,Vo=0;Vo<re.length;++Vo){var Fo=re[Vo],Ta=Fo.marker;if(Ta.type=="bookmark"&&Fo.from==qt&&Ta.widgetNode)Za.push(Ta);else if(Fo.from<=qt&&(Fo.to==null||Fo.to>qt||Ta.collapsed&&Fo.to==qt&&Fo.from==qt)){if(Fo.to!=null&&Fo.to!=qt&&fi>Fo.to&&(fi=Fo.to,ba=""),Ta.className&&(Ji+=" "+Ta.className),Ta.css&&(ci=(ci?ci+";":"")+Ta.css),Ta.startStyle&&Fo.from==qt&&(Fa+=" "+Ta.startStyle),Ta.endStyle&&Fo.to==fi&&(mo||(mo=[])).push(Ta.endStyle,Fo.to),Ta.title&&((Ia||(Ia={})).title=Ta.title),Ta.attributes)for(var fs in Ta.attributes)(Ia||(Ia={}))[fs]=Ta.attributes[fs];Ta.collapsed&&(!Da||Hi(Da.marker,Ta)<0)&&(Da=Fo)}else Fo.from>qt&&fi>Fo.from&&(fi=Fo.from)}if(mo)for(var ks=0;ks<mo.length;ks+=2)mo[ks+1]==fi&&(ba+=" "+mo[ks]);if(!Da||Da.from==qt)for(var hs=0;hs<Za.length;++hs)_a(W,0,Za[hs]);if(Da&&(Da.from||0)==qt){if(_a(W,(Da.to==null?Kt+1:Da.to)-qt,Da.marker,Da.from==null),Da.to==null)return;Da.to==qt&&(Da=!1)}}if(qt>=Kt)break;for(var cl=Math.min(Kt,fi);;){if(bn){var cs=qt+bn.length;if(!Da){var us=cs>cl?bn.slice(0,cl-qt):bn;W.addToken(W,us,Bn?Bn+Ji:Ji,Fa,qt+us.length==fi?ba:"",ci,Ia)}if(cs>=cl){bn=bn.slice(cl-qt),qt=cl;break}qt=cs,Fa=""}bn=se.slice(ke,ke=$[ir++]),Bn=Zn($[ir++],W.cm.options)}}}function _o(k,W,$){this.line=W,this.rest=Nr(W),this.size=this.rest?_t(ge(this.rest))-$+1:1,this.node=this.text=null,this.hidden=Jr(k,W)}function bi(k,W,$){for(var re=[],se,ke=W;ke<$;ke=se){var ft=new _o(k.doc,Ce(k.doc,ke),ke);se=ke+ft.size,re.push(ft)}return re}var xn=null;function Zi(k){xn?xn.ops.push(k):k.ownsGroup=xn={ops:[k],delayedCallbacks:[]}}function va(k){var W=k.delayedCallbacks,$=0;do{for(;$<W.length;$++)W[$].call(null);for(var re=0;re<k.ops.length;re++){var se=k.ops[re];if(se.cursorActivityHandlers)for(;se.cursorActivityCalled<se.cursorActivityHandlers.length;)se.cursorActivityHandlers[se.cursorActivityCalled++].call(null,se.cm)}}while($<W.length)}function ta(k,W){var $=k.ownsGroup;if(!$)return;try{va($)}finally{xn=null,W($)}}var ma=null;function Qi(k,W){var $=rt(k,W);if(!$.length)return;var re=Array.prototype.slice.call(arguments,2),se;xn?se=xn.delayedCallbacks:ma?se=ma:(se=ma=[],setTimeout(Ya,0));for(var ke=function(qt){se.push(function(){return $[qt].apply(null,re)})},ft=0;ft<$.length;++ft)ke(ft)}function Ya(){var k=ma;ma=null;for(var W=0;W<k.length;++W)k[W]()}function Wa(k,W,$,re){for(var se=0;se<W.changes.length;se++){var ke=W.changes[se];ke=="text"?So(k,W):ke=="gutter"?hr(k,W,$,re):ke=="class"?xo(k,W):ke=="widget"&&Sn(k,W,re)}W.changes=null}function Ao(k){return k.node==k.text&&(k.node=I("div",null,null,"position: relative"),k.text.parentNode&&k.text.parentNode.replaceChild(k.node,k.text),k.node.appendChild(k.text),h&&c<8&&(k.node.style.zIndex=2)),k.node}function es(k,W){var $=W.bgClass?W.bgClass+" "+(W.line.bgClass||""):W.line.bgClass;if($&&($+=" CodeMirror-linebackground"),W.background)$?W.background.className=$:(W.background.parentNode.removeChild(W.background),W.background=null);else if($){var re=Ao(W);W.background=re.insertBefore(I("div",null,$),re.firstChild),k.display.input.setUneditable(W.background)}}function so(k,W){var $=k.display.externalMeasured;return $&&$.line==W.line?(k.display.externalMeasured=null,W.measure=$.measure,$.built):ii(k,W)}function So(k,W){var $=W.text.className,re=so(k,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,xo(k,W)):$&&(W.text.className=$)}function xo(k,W){es(k,W),W.line.wrapClass?Ao(W).className=W.line.wrapClass:W.node!=W.text&&(W.node.className="");var $=W.textClass?W.textClass+" "+(W.line.textClass||""):W.line.textClass;W.text.className=$||""}function hr(k,W,$,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 se=Ao(W);W.gutterBackground=I("div",null,"CodeMirror-gutter-background "+W.line.gutterClass,"left: "+(k.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),k.display.input.setUneditable(W.gutterBackground),se.insertBefore(W.gutterBackground,W.text)}var ke=W.line.gutterMarkers;if(k.options.lineNumbers||ke){var ft=Ao(W),Kt=W.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(k.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(k.display.input.setUneditable(Kt),ft.insertBefore(Kt,W.text),W.line.gutterClass&&(Kt.className+=" "+W.line.gutterClass),k.options.lineNumbers&&(!ke||!ke["CodeMirror-linenumbers"])&&(W.lineNumber=Kt.appendChild(I("div",mn(k.options,$),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+k.display.lineNumInnerWidth+"px"))),ke)for(var qt=0;qt<k.display.gutterSpecs.length;++qt){var ir=k.display.gutterSpecs[qt].className,bn=ke.hasOwnProperty(ir)&&ke[ir];bn&&Kt.appendChild(I("div",[bn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[ir]+"px; width: "+re.gutterWidth[ir]+"px"))}}}function Sn(k,W,$){W.alignable&&(W.alignable=null);for(var re=T("CodeMirror-linewidget"),se=W.node.firstChild,ke=void 0;se;se=ke)ke=se.nextSibling,re.test(se.className)&&W.node.removeChild(se);Kn(k,W,$)}function dn(k,W,$,re){var se=so(k,W);return W.text=W.node=se.pre,se.bgClass&&(W.bgClass=se.bgClass),se.textClass&&(W.textClass=se.textClass),xo(k,W),hr(k,W,$,re),Kn(k,W,re),W.node}function Kn(k,W,$){if(si(k,W.line,W,$,!0),W.rest)for(var re=0;re<W.rest.length;re++)si(k,W.rest[re],W,$,!1)}function si(k,W,$,re,se){if(!W.widgets)return;for(var ke=Ao($),ft=0,Kt=W.widgets;ft<Kt.length;++ft){var qt=Kt[ft],ir=I("div",[qt.node],"CodeMirror-linewidget"+(qt.className?" "+qt.className:""));qt.handleMouseEvents||ir.setAttribute("cm-ignore-events","true"),vi(qt,ir,$,re),k.display.input.setUneditable(ir),se&&qt.above?ke.insertBefore(ir,$.gutter||$.text):ke.appendChild(ir),Qi(qt,"redraw")}}function vi(k,W,$,re){if(k.noHScroll){($.alignable||($.alignable=[])).push(W);var se=re.wrapperWidth;W.style.left=re.fixedPos+"px",k.coverGutter||(se-=re.gutterTotalWidth,W.style.paddingLeft=re.gutterTotalWidth+"px"),W.style.width=se+"px"}k.coverGutter&&(W.style.zIndex=5,W.style.position="relative",k.noHScroll||(W.style.marginLeft=-re.gutterTotalWidth+"px"))}function pi(k){if(k.height!=null)return k.height;var W=k.doc.cm;if(!W)return 0;if(!N(document.body,k.node)){var $="position: relative;";k.coverGutter&&($+="margin-left: -"+W.display.gutters.offsetWidth+"px;"),k.noHScroll&&($+="width: "+W.display.wrapper.clientWidth+"px;"),_(W.display.measure,I("div",[k.node],null,$))}return k.height=k.node.parentNode.offsetHeight}function di(k,W){for(var $=Re(W);$!=k.wrapper;$=$.parentNode)if(!$||$.nodeType==1&&$.getAttribute("cm-ignore-events")=="true"||$.parentNode==k.sizer&&$!=k.mover)return!0}function Ki(k){return k.lineSpace.offsetTop}function Mi(k){return k.mover.offsetHeight-k.lineSpace.offsetHeight}function pa(k){if(k.cachedPaddingH)return k.cachedPaddingH;var W=_(k.measure,I("pre","x","CodeMirror-line-like")),$=window.getComputedStyle?window.getComputedStyle(W):W.currentStyle,re={left:parseInt($.paddingLeft),right:parseInt($.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(k.cachedPaddingH=re),re}function _i(k){return Y-k.display.nativeBarWidth}function da(k){return k.display.scroller.clientWidth-_i(k)-k.display.barWidth}function na(k){return k.display.scroller.clientHeight-_i(k)-k.display.barHeight}function Sa(k,W,$){var re=k.options.lineWrapping,se=re&&da(k);if(!W.measure.heights||re&&W.measure.width!=se){var ke=W.measure.heights=[];if(re){W.measure.width=se;for(var ft=W.text.firstChild.getClientRects(),Kt=0;Kt<ft.length-1;Kt++){var qt=ft[Kt],ir=ft[Kt+1];Math.abs(qt.bottom-ir.bottom)>2&&ke.push((qt.bottom+ir.top)/2-$.top)}}ke.push($.bottom-$.top)}}function Aa(k,W,$){if(k.line==W)return{map:k.measure.map,cache:k.measure.cache};for(var re=0;re<k.rest.length;re++)if(k.rest[re]==W)return{map:k.measure.maps[re],cache:k.measure.caches[re]};for(var se=0;se<k.rest.length;se++)if(_t(k.rest[se])>$)return{map:k.measure.maps[se],cache:k.measure.caches[se],before:!0}}function ua(k,W){W=zr(W);var $=_t(W),re=k.display.externalMeasured=new _o(k.doc,W,$);re.lineN=$;var se=re.built=ii(k,re);return re.text=se.pre,_(k.display.lineMeasure,se.pre),re}function La(k,W,$,re){return no(k,co(k,W),$,re)}function sa(k,W){if(W>=k.display.viewFrom&&W<k.display.viewTo)return k.display.view[Ra(k,W)];var $=k.display.externalMeasured;if($&&W>=$.lineN&&W<$.lineN+$.size)return $}function co(k,W){var $=_t(W),re=sa(k,$);re&&!re.text?re=null:re&&re.changes&&(Wa(k,re,$,Ha(k)),k.curOp.forceUpdate=!0),re||(re=ua(k,W));var se=Aa(re,W,$);return{line:W,view:re,rect:null,map:se.map,cache:se.cache,before:se.before,hasHeights:!1}}function no(k,W,$,re,se){W.before&&($=-1);var ke=$+(re||""),ft;return W.cache.hasOwnProperty(ke)?ft=W.cache[ke]:(W.rect||(W.rect=W.view.text.getBoundingClientRect()),W.hasHeights||(Sa(k,W.view,W.rect),W.hasHeights=!0),ft=Na(k,W,$,re),ft.bogus||(W.cache[ke]=ft)),{left:ft.left,right:ft.right,top:se?ft.rtop:ft.top,bottom:se?ft.rbottom:ft.bottom}}var ca={left:0,right:0,top:0,bottom:0};function yo(k,W,$){for(var re,se,ke,ft,Kt,qt,ir=0;ir<k.length;ir+=3)if(Kt=k[ir],qt=k[ir+1],W<Kt?(se=0,ke=1,ft="left"):W<qt?(se=W-Kt,ke=se+1):(ir==k.length-3||W==qt&&k[ir+3]>W)&&(ke=qt-Kt,se=ke-1,W>=qt&&(ft="right")),se!=null){if(re=k[ir+2],Kt==qt&&$==(re.insertLeft?"left":"right")&&(ft=$),$=="left"&&se==0)for(;ir&&k[ir-2]==k[ir-3]&&k[ir-1].insertLeft;)re=k[(ir-=3)+2],ft="left";if($=="right"&&se==qt-Kt)for(;ir<k.length-3&&k[ir+3]==k[ir+4]&&!k[ir+5].insertLeft;)re=k[(ir+=3)+2],ft="right";break}return{node:re,start:se,end:ke,collapse:ft,coverStart:Kt,coverEnd:qt}}function lo(k,W){var $=ca;if(W=="left")for(var re=0;re<k.length&&!(($=k[re]).left!=$.right);re++);else for(var se=k.length-1;se>=0&&!(($=k[se]).left!=$.right);se--);return $}function Na(k,W,$,re){var se=yo(W.map,$,re),ke=se.node,ft=se.start,Kt=se.end,qt=se.collapse,ir;if(ke.nodeType==3){for(var bn=0;bn<4;bn++){for(;ft&&he(W.line.text.charAt(se.coverStart+ft));)--ft;for(;se.coverStart+Kt<se.coverEnd&&he(W.line.text.charAt(se.coverStart+Kt));)++Kt;if(h&&c<9&&ft==0&&Kt==se.coverEnd-se.coverStart?ir=ke.parentNode.getBoundingClientRect():ir=lo(D(ke,ft,Kt).getClientRects(),re),ir.left||ir.right||ft==0)break;Kt=ft,ft=ft-1,qt="right"}h&&c<11&&(ir=ho(k.display.measure,ir))}else{ft>0&&(qt=re="right");var Bn;k.options.lineWrapping&&(Bn=ke.getClientRects()).length>1?ir=Bn[re=="right"?Bn.length-1:0]:ir=ke.getBoundingClientRect()}if(h&&c<9&&!ft&&(!ir||!ir.left&&!ir.right)){var ci=ke.parentNode.getClientRects()[0];ci?ir={left:ci.left,right:ci.left+ea(k.display),top:ci.top,bottom:ci.bottom}:ir=ca}for(var fi=ir.top-W.rect.top,Ji=ir.bottom-W.rect.top,ba=(fi+Ji)/2,Fa=W.view.measure.heights,Da=0;Da<Fa.length-1&&!(ba<Fa[Da]);Da++);var Ia=Da?Fa[Da-1]:0,Za=Fa[Da],mo={left:(qt=="right"?ir.right:ir.left)-W.rect.left,right:(qt=="left"?ir.left:ir.right)-W.rect.left,top:Ia,bottom:Za};return!ir.left&&!ir.right&&(mo.bogus=!0),k.options.singleCursorHeightPerLine||(mo.rtop=fi,mo.rbottom=Ji),mo}function ho(k,W){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vt(k))return W;var $=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:W.left*$,right:W.right*$,top:W.top*re,bottom:W.bottom*re}}function Io(k){if(k.measure&&(k.measure.cache={},k.measure.heights=null,k.rest))for(var W=0;W<k.rest.length;W++)k.measure.caches[W]={}}function eo(k){k.display.externalMeasure=null,b(k.display.lineMeasure);for(var W=0;W<k.display.view.length;W++)Io(k.display.view[W])}function Lo(k){eo(k),k.display.cachedCharWidth=k.display.cachedTextHeight=k.display.cachedPaddingH=null,k.options.lineWrapping||(k.display.maxLineChanged=!0),k.display.lineNumChars=null}function Va(){return o&&l?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Bo(){return o&&l?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ho(k){var W=0;if(k.widgets)for(var $=0;$<k.widgets.length;++$)k.widgets[$].above&&(W+=pi(k.widgets[$]));return W}function Pr(k,W,$,re,se){if(!se){var ke=Ho(W);$.top+=ke,$.bottom+=ke}if(re=="line")return $;re||(re="local");var ft=en(W);if(re=="local"?ft+=Ki(k.display):ft-=k.display.viewOffset,re=="page"||re=="window"){var Kt=k.display.lineSpace.getBoundingClientRect();ft+=Kt.top+(re=="window"?0:Bo());var qt=Kt.left+(re=="window"?0:Va());$.left+=qt,$.right+=qt}return $.top+=ft,$.bottom+=ft,$}function An(k,W,$){if($=="div")return W;var re=W.left,se=W.top;if($=="page")re-=Va(),se-=Bo();else if($=="local"||!$){var ke=k.display.sizer.getBoundingClientRect();re+=ke.left,se+=ke.top}var ft=k.display.lineSpace.getBoundingClientRect();return{left:re-ft.left,top:se-ft.top}}function Pn(k,W,$,re,se){return re||(re=Ce(k.doc,W.line)),Pr(k,re,La(k,re,W.ch,se),$)}function qr(k,W,$,re,se,ke){re=re||Ce(k.doc,W.line),se||(se=co(k,re));function ft(Ji,ba){var Fa=no(k,se,Ji,ba?"right":"left",ke);return ba?Fa.left=Fa.right:Fa.right=Fa.left,Pr(k,re,Fa,$)}var Kt=gt(re,k.doc.direction),qt=W.ch,ir=W.sticky;if(qt>=re.text.length?(qt=re.text.length,ir="before"):qt<=0&&(qt=0,ir="after"),!Kt)return ft(ir=="before"?qt-1:qt,ir=="before");function bn(Ji,ba,Fa){var Da=Kt[ba],Ia=Da.level==1;return ft(Fa?Ji-1:Ji,Ia!=Fa)}var Bn=_e(Kt,qt,ir),ci=me,fi=bn(qt,Bn,ir=="before");return ci!=null&&(fi.other=bn(qt,ci,ir!="before")),fi}function er(k,W){var $=0;W=At(k.doc,W),k.options.lineWrapping||($=ea(k.display)*W.ch);var re=Ce(k.doc,W.line),se=en(re)+Ki(k.display);return{left:$,right:$,top:se,bottom:se+re.height}}function Dr(k,W,$,re,se){var ke=Mt(k,W,$);return ke.xRel=se,re&&(ke.outside=re),ke}function lr(k,W,$){var re=k.doc;if($+=k.display.viewOffset,$<0)return Dr(re.first,0,null,-1,-1);var se=vr(re,$),ke=re.first+re.size-1;if(se>ke)return Dr(re.first+re.size-1,Ce(re,ke).text.length,null,1,1);W<0&&(W=0);for(var ft=Ce(re,se);;){var Kt=Dn(k,ft,se,W,$),qt=Qr(ft,Kt.ch+(Kt.xRel>0||Kt.outside>0?1:0));if(!qt)return Kt;var ir=qt.find(1);if(ir.line==se)return ir;ft=Ce(re,se=ir.line)}}function on(k,W,$,re){re-=Ho(W);var se=W.text.length,ke=Oe(function(ft){return no(k,$,ft-1).bottom<=re},se,0);return se=Oe(function(ft){return no(k,$,ft).top>re},ke,se),{begin:ke,end:se}}function fn(k,W,$,re){$||($=co(k,W));var se=Pr(k,W,no(k,$,re),"line").top;return on(k,W,$,se)}function Wn(k,W,$,re){return k.bottom<=$?!1:k.top>$?!0:(re?k.left:k.right)>W}function Dn(k,W,$,re,se){se-=en(W);var ke=co(k,W),ft=Ho(W),Kt=0,qt=W.text.length,ir=!0,bn=gt(W,k.doc.direction);if(bn){var Bn=(k.options.lineWrapping?Ti:Jn)(k,W,$,ke,bn,re,se);ir=Bn.level!=1,Kt=ir?Bn.from:Bn.to-1,qt=ir?Bn.to:Bn.from-1}var ci=null,fi=null,Ji=Oe(function(Vo){var Fo=no(k,ke,Vo);return Fo.top+=ft,Fo.bottom+=ft,Wn(Fo,re,se,!1)?(Fo.top<=se&&Fo.left<=re&&(ci=Vo,fi=Fo),!0):!1},Kt,qt),ba,Fa,Da=!1;if(fi){var Ia=re-fi.left<fi.right-re,Za=Ia==ir;Ji=ci+(Za?0:1),Fa=Za?"after":"before",ba=Ia?fi.left:fi.right}else{!ir&&(Ji==qt||Ji==Kt)&&Ji++,Fa=Ji==0?"after":Ji==W.text.length?"before":no(k,ke,Ji-(ir?1:0)).bottom+ft<=se==ir?"after":"before";var mo=qr(k,Mt($,Ji,Fa),"line",W,ke);ba=mo.left,Da=se<mo.top?-1:se>=mo.bottom?1:0}return Ji=Pe(W.text,Ji,1),Dr($,Ji,Fa,Da,re-ba)}function Jn(k,W,$,re,se,ke,ft){var Kt=Oe(function(Bn){var ci=se[Bn],fi=ci.level!=1;return Wn(qr(k,Mt($,fi?ci.to:ci.from,fi?"before":"after"),"line",W,re),ke,ft,!0)},0,se.length-1),qt=se[Kt];if(Kt>0){var ir=qt.level!=1,bn=qr(k,Mt($,ir?qt.from:qt.to,ir?"after":"before"),"line",W,re);Wn(bn,ke,ft,!0)&&bn.top>ft&&(qt=se[Kt-1])}return qt}function Ti(k,W,$,re,se,ke,ft){var Kt=on(k,W,re,ft),qt=Kt.begin,ir=Kt.end;/\s/.test(W.text.charAt(ir-1))&&ir--;for(var bn=null,Bn=null,ci=0;ci<se.length;ci++){var fi=se[ci];if(fi.from>=ir||fi.to<=qt)continue;var Ji=fi.level!=1,ba=no(k,re,Ji?Math.min(ir,fi.to)-1:Math.max(qt,fi.from)).right,Fa=ba<ke?ke-ba+1e9:ba-ke;(!bn||Bn>Fa)&&(bn=fi,Bn=Fa)}return bn||(bn=se[se.length-1]),bn.from<qt&&(bn={from:qt,to:bn.to,level:bn.level}),bn.to>ir&&(bn={from:bn.from,to:ir,level:bn.level}),bn}var xi;function Bi(k){if(k.cachedTextHeight!=null)return k.cachedTextHeight;if(xi==null){xi=I("pre",null,"CodeMirror-line-like");for(var W=0;W<49;++W)xi.appendChild(document.createTextNode("x")),xi.appendChild(I("br"));xi.appendChild(document.createTextNode("x"))}_(k.measure,xi);var $=xi.offsetHeight/50;return $>3&&(k.cachedTextHeight=$),b(k.measure),$||1}function ea(k){if(k.cachedCharWidth!=null)return k.cachedCharWidth;var W=I("span","xxxxxxxxxx"),$=I("pre",[W],"CodeMirror-line-like");_(k.measure,$);var re=W.getBoundingClientRect(),se=(re.right-re.left)/10;return se>2&&(k.cachedCharWidth=se),se||10}function Ha(k){for(var W=k.display,$={},re={},se=W.gutters.clientLeft,ke=W.gutters.firstChild,ft=0;ke;ke=ke.nextSibling,++ft){var Kt=k.display.gutterSpecs[ft].className;$[Kt]=ke.offsetLeft+ke.clientLeft+se,re[Kt]=ke.clientWidth}return{fixedPos:Qa(W),gutterTotalWidth:W.gutters.offsetWidth,gutterLeft:$,gutterWidth:re,wrapperWidth:W.wrapper.clientWidth}}function Qa(k){return k.scroller.getBoundingClientRect().left-k.sizer.getBoundingClientRect().left}function io(k){var W=Bi(k.display),$=k.options.lineWrapping,re=$&&Math.max(5,k.display.scroller.clientWidth/ea(k.display)-3);return function(se){if(Jr(k.doc,se))return 0;var ke=0;if(se.widgets)for(var ft=0;ft<se.widgets.length;ft++)se.widgets[ft].height&&(ke+=se.widgets[ft].height);return $?ke+(Math.ceil(se.text.length/re)||1)*W:ke+W}}function Ja(k){var W=k.doc,$=io(k);W.iter(function(re){var se=$(re);se!=re.height&&dt(re,se)})}function Ga(k,W,$,re){var se=k.display;if(!$&&Re(W).getAttribute("cm-not-content")=="true")return null;var ke,ft,Kt=se.lineSpace.getBoundingClientRect();try{ke=W.clientX-Kt.left,ft=W.clientY-Kt.top}catch(Bn){return null}var qt=lr(k,ke,ft),ir;if(re&&qt.xRel>0&&(ir=Ce(k.doc,qt.line).text).length==qt.ch){var bn=U(ir,ir.length,k.options.tabSize)-ir.length;qt=Mt(qt.line,Math.max(0,Math.round((ke-pa(k.display).left)/ea(k.display))-bn))}return qt}function Ra(k,W){if(W>=k.display.viewTo)return null;if(W-=k.display.viewFrom,W<0)return null;for(var $=k.display.view,re=0;re<$.length;re++)if(W-=$[re].size,W<0)return re}function ia(k,W,$,re){W==null&&(W=k.doc.first),$==null&&($=k.doc.first+k.doc.size),re||(re=0);var se=k.display;if(re&&$<se.viewTo&&(se.updateLineNumbers==null||se.updateLineNumbers>W)&&(se.updateLineNumbers=W),k.curOp.viewChanged=!0,W>=se.viewTo)ze&&Qt(k.doc,W)<se.viewTo&&rr(k);else if($<=se.viewFrom)ze&&xr(k.doc,$+re)>se.viewFrom?rr(k):(se.viewFrom+=re,se.viewTo+=re);else if(W<=se.viewFrom&&$>=se.viewTo)rr(k);else if(W<=se.viewFrom){var ke=Rr(k,$,$+re,1);ke?(se.view=se.view.slice(ke.index),se.viewFrom=ke.lineN,se.viewTo+=re):rr(k)}else if($>=se.viewTo){var ft=Rr(k,W,W,-1);ft?(se.view=se.view.slice(0,ft.index),se.viewTo=ft.lineN):rr(k)}else{var Kt=Rr(k,W,W,-1),qt=Rr(k,$,$+re,1);Kt&&qt?(se.view=se.view.slice(0,Kt.index).concat(bi(k,Kt.lineN,qt.lineN)).concat(se.view.slice(qt.index)),se.viewTo+=re):rr(k)}var ir=se.externalMeasured;ir&&($<ir.lineN?ir.lineN+=re:W<ir.lineN+ir.size&&(se.externalMeasured=null))}function qe(k,W,$){k.curOp.viewChanged=!0;var re=k.display,se=k.display.externalMeasured;if(se&&W>=se.lineN&&W<se.lineN+se.size&&(re.externalMeasured=null),W<re.viewFrom||W>=re.viewTo)return;var ke=re.view[Ra(k,W)];if(ke.node==null)return;var ft=ke.changes||(ke.changes=[]);z(ft,$)==-1&&ft.push($)}function rr(k){k.display.viewFrom=k.display.viewTo=k.doc.first,k.display.view=[],k.display.viewOffset=0}function Rr(k,W,$,re){var se=Ra(k,W),ke,ft=k.display.view;if(!ze||$==k.doc.first+k.doc.size)return{index:se,lineN:$};for(var Kt=k.display.viewFrom,qt=0;qt<se;qt++)Kt+=ft[qt].size;if(Kt!=W){if(re>0){if(se==ft.length-1)return null;ke=Kt+ft[se].size-W,se++}else ke=Kt-W;W+=ke,$+=ke}for(;Qt(k.doc,$)!=$;){if(se==(re<0?0:ft.length-1))return null;$+=re*ft[se-(re<0?1:0)].size,se+=re}return{index:se,lineN:$}}function Cr(k,W,$){var re=k.display,se=re.view;se.length==0||W>=re.viewTo||$<=re.viewFrom?(re.view=bi(k,W,$),re.viewFrom=W):(re.viewFrom>W?re.view=bi(k,W,re.viewFrom).concat(re.view):re.viewFrom<W&&(re.view=re.view.slice(Ra(k,W))),re.viewFrom=W,re.viewTo<$?re.view=re.view.concat(bi(k,re.viewTo,$)):re.viewTo>$&&(re.view=re.view.slice(0,Ra(k,$)))),re.viewTo=$}function pn(k){for(var W=k.display.view,$=0,re=0;re<W.length;re++){var se=W[re];!se.hidden&&(!se.node||se.changes)&&++$}return $}function Vr(k){k.display.input.showSelection(k.display.input.prepareSelection())}function br(k,W){W===void 0&&(W=!0);for(var $=k.doc,re={},se=re.cursors=document.createDocumentFragment(),ke=re.selection=document.createDocumentFragment(),ft=0;ft<$.sel.ranges.length;ft++){if(!W&&ft==$.sel.primIndex)continue;var Kt=$.sel.ranges[ft];if(Kt.from().line>=k.display.viewTo||Kt.to().line<k.display.viewFrom)continue;var qt=Kt.empty();(qt||k.options.showCursorWhenSelecting)&&In(k,Kt.head,se),qt||gn(k,Kt,ke)}return re}function In(k,W,$){var re=qr(k,W,"div",null,null,!k.options.singleCursorHeightPerLine),se=$.appendChild(I("div","\xA0","CodeMirror-cursor"));if(se.style.left=re.left+"px",se.style.top=re.top+"px",se.style.height=Math.max(0,re.bottom-re.top)*k.options.cursorHeight+"px",re.other){var ke=$.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ke.style.display="",ke.style.left=re.other.left+"px",ke.style.top=re.other.top+"px",ke.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function Sr(k,W){return k.top-W.top||k.left-W.left}function gn(k,W,$){var re=k.display,se=k.doc,ke=document.createDocumentFragment(),ft=pa(k.display),Kt=ft.left,qt=Math.max(re.sizerWidth,da(k)-re.sizer.offsetLeft)-ft.right,ir=se.direction=="ltr";function bn(Za,mo,Vo,Fo){mo<0&&(mo=0),mo=Math.round(mo),Fo=Math.round(Fo),ke.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+Za+`px;
top: `+mo+"px; width: "+(Vo==null?qt-Za:Vo)+`px;
height: `+(Fo-mo)+"px"))}function Bn(Za,mo,Vo){var Fo=Ce(se,Za),Ta=Fo.text.length,fs,ks;function hs(us,Cl){return Pn(k,Mt(Za,us),"div",Fo,Cl)}function cl(us,Cl,dl){var Qs=fn(k,Fo,null,us),Js=Cl=="ltr"==(dl=="after")?"left":"right",Bs=dl=="after"?Qs.begin:Qs.end-(/\s/.test(Fo.text.charAt(Qs.end-1))?2:1);return hs(Bs,Js)[Js]}var cs=gt(Fo,se.direction);return le(cs,mo||0,Vo==null?Ta:Vo,function(us,Cl,dl,Qs){var Js=dl=="ltr",Bs=hs(us,Js?"left":"right"),Vl=hs(Cl-1,Js?"right":"left"),ku=mo==null&&us==0,gu=Vo==null&&Cl==Ta,Zs=Qs==0,vu=!cs||Qs==cs.length-1;if(Vl.top-Bs.top<=3){var Ol=(ir?ku:gu)&&Zs,Vu=(ir?gu:ku)&&vu,Au=Ol?Kt:(Js?Bs:Vl).left,xu=Vu?qt:(Js?Vl:Bs).right;bn(Au,Bs.top,xu-Au,Bs.bottom)}else{var Nu,kl,Eu,Ku;Js?(Nu=ir&&ku&&Zs?Kt:Bs.left,kl=ir?qt:cl(us,dl,"before"),Eu=ir?Kt:cl(Cl,dl,"after"),Ku=ir&&gu&&vu?qt:Vl.right):(Nu=ir?cl(us,dl,"before"):Kt,kl=!ir&&ku&&Zs?qt:Bs.right,Eu=!ir&&gu&&vu?Kt:Vl.left,Ku=ir?cl(Cl,dl,"after"):qt),bn(Nu,Bs.top,kl-Nu,Bs.bottom),Bs.bottom<Vl.top&&bn(Kt,Bs.bottom,null,Vl.top),bn(Eu,Vl.top,Ku-Eu,Vl.bottom)}(!fs||Sr(Bs,fs)<0)&&(fs=Bs),Sr(Vl,fs)<0&&(fs=Vl),(!ks||Sr(Bs,ks)<0)&&(ks=Bs),Sr(Vl,ks)<0&&(ks=Vl)}),{start:fs,end:ks}}var ci=W.from(),fi=W.to();if(ci.line==fi.line)Bn(ci.line,ci.ch,fi.ch);else{var Ji=Ce(se,ci.line),ba=Ce(se,fi.line),Fa=zr(Ji)==zr(ba),Da=Bn(ci.line,ci.ch,Fa?Ji.text.length+1:null).end,Ia=Bn(fi.line,Fa?0:null,fi.ch).start;Fa&&(Da.top<Ia.top-2?(bn(Da.right,Da.top,null,Da.bottom),bn(Kt,Ia.top,Ia.left,Ia.bottom)):bn(Da.right,Da.top,Ia.left-Da.right,Da.bottom)),Da.bottom<Ia.top&&bn(Kt,Da.bottom,null,Ia.top)}$.appendChild(ke)}function $n(k){if(!k.state.focused)return;var W=k.display;clearInterval(W.blinker);var $=!0;W.cursorDiv.style.visibility="",k.options.cursorBlinkRate>0?W.blinker=setInterval(function(){k.hasFocus()||ti(k),W.cursorDiv.style.visibility=($=!$)?"":"hidden"},k.options.cursorBlinkRate):k.options.cursorBlinkRate<0&&(W.cursorDiv.style.visibility="hidden")}function qn(k){k.state.focused||(k.display.input.focus(),mi(k))}function Gn(k){k.state.delayingBlurEvent=!0,setTimeout(function(){k.state.delayingBlurEvent&&(k.state.delayingBlurEvent=!1,ti(k))},100)}function mi(k,W){if(k.state.delayingBlurEvent&&(k.state.delayingBlurEvent=!1),k.options.readOnly=="nocursor")return;k.state.focused||(vt(k,"focus",k,W),k.state.focused=!0,B(k.display.wrapper,"CodeMirror-focused"),!k.curOp&&k.display.selForContextMenu!=k.doc.sel&&(k.display.input.reset(),i&&setTimeout(function(){return k.display.input.reset(!0)},20)),k.display.input.receivedFocus()),$n(k)}function ti(k,W){if(k.state.delayingBlurEvent)return;k.state.focused&&(vt(k,"blur",k,W),k.state.focused=!1,S(k.display.wrapper,"CodeMirror-focused")),clearInterval(k.display.blinker),setTimeout(function(){k.state.focused||(k.display.shift=!1)},150)}function ri(k){for(var W=k.display,$=W.lineDiv.offsetTop,re=0;re<W.view.length;re++){var se=W.view[re],ke=k.options.lineWrapping,ft=void 0,Kt=0;if(se.hidden)continue;if(h&&c<8){var qt=se.node.offsetTop+se.node.offsetHeight;ft=qt-$,$=qt}else{var ir=se.node.getBoundingClientRect();ft=ir.bottom-ir.top,!ke&&se.text.firstChild&&(Kt=se.text.firstChild.getBoundingClientRect().right-ir.left-1)}var bn=se.line.height-ft;if((bn>.005||bn<-.005)&&(dt(se.line,ft),li(se.line),se.rest))for(var Bn=0;Bn<se.rest.length;Bn++)li(se.rest[Bn]);if(Kt>k.display.sizerWidth){var ci=Math.ceil(Kt/ea(k.display));ci>k.display.maxLineLength&&(k.display.maxLineLength=ci,k.display.maxLine=se.line,k.display.maxLineChanged=!0)}}}function li(k){if(k.widgets)for(var W=0;W<k.widgets.length;++W){var $=k.widgets[W],re=$.node.parentNode;re&&($.height=re.offsetHeight)}}function Xi(k,W,$){var re=$&&$.top!=null?Math.max(0,$.top):k.scroller.scrollTop;re=Math.floor(re-Ki(k));var se=$&&$.bottom!=null?$.bottom:re+k.wrapper.clientHeight,ke=vr(W,re),ft=vr(W,se);if($&&$.ensure){var Kt=$.ensure.from.line,qt=$.ensure.to.line;Kt<ke?(ke=Kt,ft=vr(W,en(Ce(W,Kt))+k.wrapper.clientHeight)):Math.min(qt,W.lastLine())>=ft&&(ke=vr(W,en(Ce(W,qt))-k.wrapper.clientHeight),ft=qt)}return{from:ke,to:Math.max(ft,ke+1)}}function Pi(k,W){if(Ot(k,"scrollCursorIntoView"))return;var $=k.display,re=$.sizer.getBoundingClientRect(),se=null;if(W.top+re.top<0?se=!0:W.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(se=!1),se!=null&&!t){var ke=I("div","\u200B",null,`position: absolute;
top: `+(W.top-$.viewOffset-Ki(k.display))+`px;
height: `+(W.bottom-W.top+_i(k)+$.barHeight)+`px;
left: `+W.left+"px; width: "+Math.max(2,W.right-W.left)+"px;");k.display.lineSpace.appendChild(ke),ke.scrollIntoView(se),k.display.lineSpace.removeChild(ke)}}function ga(k,W,$,re){re==null&&(re=0);var se;!k.options.lineWrapping&&W==$&&(W=W.ch?Mt(W.line,W.sticky=="before"?W.ch-1:W.ch,"after"):W,$=W.sticky=="before"?Mt(W.line,W.ch+1,"before"):W);for(var ke=0;ke<5;ke++){var ft=!1,Kt=qr(k,W),qt=!$||$==W?Kt:qr(k,$);se={left:Math.min(Kt.left,qt.left),top:Math.min(Kt.top,qt.top)-re,right:Math.max(Kt.left,qt.left),bottom:Math.max(Kt.bottom,qt.bottom)+re};var ir=Lt(k,se),bn=k.doc.scrollTop,Bn=k.doc.scrollLeft;if(ir.scrollTop!=null&&(nr(k,ir.scrollTop),Math.abs(k.doc.scrollTop-bn)>1&&(ft=!0)),ir.scrollLeft!=null&&(En(k,ir.scrollLeft),Math.abs(k.doc.scrollLeft-Bn)>1&&(ft=!0)),!ft)break}return se}function tr(k,W){var $=Lt(k,W);$.scrollTop!=null&&nr(k,$.scrollTop),$.scrollLeft!=null&&En(k,$.scrollLeft)}function Lt(k,W){var $=k.display,re=Bi(k.display);W.top<0&&(W.top=0);var se=k.curOp&&k.curOp.scrollTop!=null?k.curOp.scrollTop:$.scroller.scrollTop,ke=na(k),ft={};W.bottom-W.top>ke&&(W.bottom=W.top+ke);var Kt=k.doc.height+Mi($),qt=W.top<re,ir=W.bottom>Kt-re;if(W.top<se)ft.scrollTop=qt?0:W.top;else if(W.bottom>se+ke){var bn=Math.min(W.top,(ir?Kt:W.bottom)-ke);bn!=se&&(ft.scrollTop=bn)}var Bn=k.options.fixedGutter?0:$.gutters.offsetWidth,ci=k.curOp&&k.curOp.scrollLeft!=null?k.curOp.scrollLeft:$.scroller.scrollLeft-Bn,fi=da(k)-$.gutters.offsetWidth,Ji=W.right-W.left>fi;return Ji&&(W.right=W.left+fi),W.left<10?ft.scrollLeft=0:W.left<ci?ft.scrollLeft=Math.max(0,W.left+Bn-(Ji?0:10)):W.right>fi+ci-3&&(ft.scrollLeft=W.right+(Ji?0:10)-fi),ft}function yr(k,W){if(W==null)return;Ct(k),k.curOp.scrollTop=(k.curOp.scrollTop==null?k.doc.scrollTop:k.curOp.scrollTop)+W}function xt(k){Ct(k);var W=k.getCursor();k.curOp.scrollToPos={from:W,to:W,margin:k.options.cursorScrollMargin}}function Ut(k,W,$){(W!=null||$!=null)&&Ct(k),W!=null&&(k.curOp.scrollLeft=W),$!=null&&(k.curOp.scrollTop=$)}function ur(k,W){Ct(k),k.curOp.scrollToPos=W}function Ct(k){var W=k.curOp.scrollToPos;if(W){k.curOp.scrollToPos=null;var $=er(k,W.from),re=er(k,W.to);dr(k,$,re,W.margin)}}function dr(k,W,$,re){var se=Lt(k,{left:Math.min(W.left,$.left),top:Math.min(W.top,$.top)-re,right:Math.max(W.right,$.right),bottom:Math.max(W.bottom,$.bottom)+re});Ut(k,se.scrollLeft,se.scrollTop)}function nr(k,W){if(Math.abs(k.doc.scrollTop-W)<2)return;C||Ko(k,{top:W}),Wr(k,W,!0),C&&Ko(k),Pa(k,100)}function Wr(k,W,$){if(W=Math.max(0,Math.min(k.display.scroller.scrollHeight-k.display.scroller.clientHeight,W)),k.display.scroller.scrollTop==W&&!$)return;k.doc.scrollTop=W,k.display.scrollbars.setScrollTop(W),k.display.scroller.scrollTop!=W&&(k.display.scroller.scrollTop=W)}function En(k,W,$,re){if(W=Math.max(0,Math.min(W,k.display.scroller.scrollWidth-k.display.scroller.clientWidth)),($?W==k.doc.scrollLeft:Math.abs(k.doc.scrollLeft-W)<2)&&!re)return;k.doc.scrollLeft=W,Go(k),k.display.scroller.scrollLeft!=W&&(k.display.scroller.scrollLeft=W),k.display.scrollbars.setScrollLeft(W)}function Cn(k){var W=k.display,$=W.gutters.offsetWidth,re=Math.round(k.doc.height+Mi(k.display));return{clientHeight:W.scroller.clientHeight,viewHeight:W.wrapper.clientHeight,scrollWidth:W.scroller.scrollWidth,clientWidth:W.scroller.clientWidth,viewWidth:W.wrapper.clientWidth,barLeft:k.options.fixedGutter?$:0,docHeight:re,scrollHeight:re+_i(k)+W.barHeight,nativeBarWidth:W.nativeBarWidth,gutterWidth:$}}var Nn=function(W,$,re){this.cm=re;var se=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ke=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");se.tabIndex=ke.tabIndex=-1,W(se),W(ke),Ie(se,"scroll",function(){se.clientHeight&&$(se.scrollTop,"vertical")}),Ie(ke,"scroll",function(){ke.clientWidth&&$(ke.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Nn.prototype.update=function(k){var W=k.scrollWidth>k.clientWidth+1,$=k.scrollHeight>k.clientHeight+1,re=k.nativeBarWidth;if($){this.vert.style.display="block",this.vert.style.bottom=W?re+"px":"0";var se=k.viewHeight-(W?re:0);this.vert.firstChild.style.height=Math.max(0,k.scrollHeight-k.clientHeight+se)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(W){this.horiz.style.display="block",this.horiz.style.right=$?re+"px":"0",this.horiz.style.left=k.barLeft+"px";var ke=k.viewWidth-k.barLeft-($?re:0);this.horiz.firstChild.style.width=Math.max(0,k.scrollWidth-k.clientWidth+ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&k.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:$?re:0,bottom:W?re:0}},Nn.prototype.setScrollLeft=function(k){this.horiz.scrollLeft!=k&&(this.horiz.scrollLeft=k),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Nn.prototype.setScrollTop=function(k){this.vert.scrollTop!=k&&(this.vert.scrollTop=k),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Nn.prototype.zeroWidthHack=function(){var k=f&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=k,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Nn.prototype.enableZeroWidthBar=function(k,W,$){k.style.pointerEvents="auto";function re(){var se=k.getBoundingClientRect(),ke=$=="vert"?document.elementFromPoint(se.right-1,(se.top+se.bottom)/2):document.elementFromPoint((se.right+se.left)/2,se.bottom-1);ke!=k?k.style.pointerEvents="none":W.set(1e3,re)}W.set(1e3,re)},Nn.prototype.clear=function(){var k=this.horiz.parentNode;k.removeChild(this.horiz),k.removeChild(this.vert)};var oi=function(){};oi.prototype.update=function(){return{bottom:0,right:0}},oi.prototype.setScrollLeft=function(){},oi.prototype.setScrollTop=function(){},oi.prototype.clear=function(){};function Qn(k,W){W||(W=Cn(k));var $=k.display.barWidth,re=k.display.barHeight;Vi(k,W);for(var se=0;se<4&&$!=k.display.barWidth||re!=k.display.barHeight;se++)$!=k.display.barWidth&&k.options.lineWrapping&&ri(k),Vi(k,Cn(k)),$=k.display.barWidth,re=k.display.barHeight}function Vi(k,W){var $=k.display,re=$.scrollbars.update(W);$.sizer.style.paddingRight=($.barWidth=re.right)+"px",$.sizer.style.paddingBottom=($.barHeight=re.bottom)+"px",$.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?($.scrollbarFiller.style.display="block",$.scrollbarFiller.style.height=re.bottom+"px",$.scrollbarFiller.style.width=re.right+"px"):$.scrollbarFiller.style.display="",re.bottom&&k.options.coverGutterNextToScrollbar&&k.options.fixedGutter?($.gutterFiller.style.display="block",$.gutterFiller.style.height=re.bottom+"px",$.gutterFiller.style.width=W.gutterWidth+"px"):$.gutterFiller.style.display=""}var wi={native:Nn,null:oi};function Ea(k){k.display.scrollbars&&(k.display.scrollbars.clear(),k.display.scrollbars.addClass&&S(k.display.wrapper,k.display.scrollbars.addClass)),k.display.scrollbars=new wi[k.options.scrollbarStyle](function(W){k.display.wrapper.insertBefore(W,k.display.scrollbarFiller),Ie(W,"mousedown",function(){k.state.focused&&setTimeout(function(){return k.display.input.focus()},0)}),W.setAttribute("cm-not-content","true")},function(W,$){$=="horizontal"?En(k,W):nr(k,W)},k),k.display.scrollbars.addClass&&B(k.display.wrapper,k.display.scrollbars.addClass)}var aa=0;function Ca(k){k.curOp={cm:k,viewChanged:!1,startHeight:k.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:++aa},Zi(k.curOp)}function fa(k){var W=k.curOp;W&&ta(W,function($){for(var re=0;re<$.ops.length;re++)$.ops[re].cm.curOp=null;ha($)})}function ha(k){for(var W=k.ops,$=0;$<W.length;$++)qi(W[$]);for(var re=0;re<W.length;re++)Ma(W[re]);for(var se=0;se<W.length;se++)za(W[se]);for(var ke=0;ke<W.length;ke++)la(W[ke]);for(var ft=0;ft<W.length;ft++)ao(W[ft])}function qi(k){var W=k.cm,$=W.display;No(W),k.updateMaxLine&&Yn(W),k.mustUpdate=k.viewChanged||k.forceUpdate||k.scrollTop!=null||k.scrollToPos&&(k.scrollToPos.from.line<$.viewFrom||k.scrollToPos.to.line>=$.viewTo)||$.maxLineChanged&&W.options.lineWrapping,k.update=k.mustUpdate&&new Oa(W,k.mustUpdate&&{top:k.scrollTop,ensure:k.scrollToPos},k.forceUpdate)}function Ma(k){k.updatedDisplay=k.mustUpdate&&ss(k.cm,k.update)}function za(k){var W=k.cm,$=W.display;k.updatedDisplay&&ri(W),k.barMeasure=Cn(W),$.maxLineChanged&&!W.options.lineWrapping&&(k.adjustWidthTo=La(W,$.maxLine,$.maxLine.text.length).left+3,W.display.sizerWidth=k.adjustWidthTo,k.barMeasure.scrollWidth=Math.max($.scroller.clientWidth,$.sizer.offsetLeft+k.adjustWidthTo+_i(W)+W.display.barWidth),k.maxScrollLeft=Math.max(0,$.sizer.offsetLeft+k.adjustWidthTo-da(W))),(k.updatedDisplay||k.selectionChanged)&&(k.preparedSelection=$.input.prepareSelection())}function la(k){var W=k.cm;k.adjustWidthTo!=null&&(W.display.sizer.style.minWidth=k.adjustWidthTo+"px",k.maxScrollLeft<W.doc.scrollLeft&&En(W,Math.min(W.display.scroller.scrollLeft,k.maxScrollLeft),!0),W.display.maxLineChanged=!1);var $=k.focus&&k.focus==M();k.preparedSelection&&W.display.input.showSelection(k.preparedSelection,$),(k.updatedDisplay||k.startHeight!=W.doc.height)&&Qn(W,k.barMeasure),k.updatedDisplay&&Wo(W,k.barMeasure),k.selectionChanged&&$n(W),W.state.focused&&k.updateInput&&W.display.input.reset(k.typing),$&&qn(k.cm)}function ao(k){var W=k.cm,$=W.display,re=W.doc;if(k.updatedDisplay&&rs(W,k.update),$.wheelStartX!=null&&(k.scrollTop!=null||k.scrollLeft!=null||k.scrollToPos)&&($.wheelStartX=$.wheelStartY=null),k.scrollTop!=null&&Wr(W,k.scrollTop,k.forceScroll),k.scrollLeft!=null&&En(W,k.scrollLeft,!0,!0),k.scrollToPos){var se=ga(W,At(re,k.scrollToPos.from),At(re,k.scrollToPos.to),k.scrollToPos.margin);Pi(W,se)}var ke=k.maybeHiddenMarkers,ft=k.maybeUnhiddenMarkers;if(ke)for(var Kt=0;Kt<ke.length;++Kt)ke[Kt].lines.length||vt(ke[Kt],"hide");if(ft)for(var qt=0;qt<ft.length;++qt)ft[qt].lines.length&&vt(ft[qt],"unhide");$.wrapper.offsetHeight&&(re.scrollTop=W.display.scroller.scrollTop),k.changeObjs&&vt(W,"changes",W,k.changeObjs),k.update&&k.update.finish()}function ka(k,W){if(k.curOp)return W();Ca(k);try{return W()}finally{fa(k)}}function Ba(k,W){return function(){if(k.curOp)return W.apply(k,arguments);Ca(k);try{return W.apply(k,arguments)}finally{fa(k)}}}function oo(k){return function(){if(this.curOp)return k.apply(this,arguments);Ca(this);try{return k.apply(this,arguments)}finally{fa(this)}}}function ja(k){return function(){var W=this.cm;if(!W||W.curOp)return k.apply(this,arguments);Ca(W);try{return k.apply(this,arguments)}finally{fa(W)}}}function Pa(k,W){k.doc.highlightFrontier<k.display.viewTo&&k.state.highlight.set(W,F(Fr,k))}function Fr(k){var W=k.doc;if(W.highlightFrontier>=k.display.viewTo)return;var $=+new Date+k.options.workTime,re=jn(k,W.highlightFrontier),se=[];W.iter(re.line,Math.min(W.first+W.size,k.display.viewTo+500),function(ke){if(re.line>=k.display.viewFrom){var ft=ke.styles,Kt=ke.text.length>k.options.maxHighlightLength?kt(W.mode,re.state):null,qt=$r(k,ke,re,!0);Kt&&(re.state=Kt),ke.styles=qt.styles;var ir=ke.styleClasses,bn=qt.classes;bn?ke.styleClasses=bn:ir&&(ke.styleClasses=null);for(var Bn=!ft||ft.length!=ke.styles.length||ir!=bn&&(!ir||!bn||ir.bgClass!=bn.bgClass||ir.textClass!=bn.textClass),ci=0;!Bn&&ci<ft.length;++ci)Bn=ft[ci]!=ke.styles[ci];Bn&&se.push(re.line),ke.stateAfter=re.save(),re.nextLine()}else ke.text.length<=k.options.maxHighlightLength&&Un(k,ke.text,re),ke.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>$)return Pa(k,k.options.workDelay),!0}),W.highlightFrontier=re.line,W.modeFrontier=Math.max(W.modeFrontier,re.line),se.length&&ka(k,function(){for(var ke=0;ke<se.length;ke++)qe(k,se[ke],"text")})}var Oa=function(W,$,re){var se=W.display;this.viewport=$,this.visible=Xi(se,W.doc,$),this.editorIsHidden=!se.wrapper.offsetWidth,this.wrapperHeight=se.wrapper.clientHeight,this.wrapperWidth=se.wrapper.clientWidth,this.oldDisplayWidth=da(W),this.force=re,this.dims=Ha(W),this.events=[]};Oa.prototype.signal=function(k,W){Tt(k,W)&&this.events.push(arguments)},Oa.prototype.finish=function(){for(var k=0;k<this.events.length;k++)vt.apply(null,this.events[k])};function No(k){var W=k.display;!W.scrollbarsClipped&&W.scroller.offsetWidth&&(W.nativeBarWidth=W.scroller.offsetWidth-W.scroller.clientWidth,W.heightForcer.style.height=_i(k)+"px",W.sizer.style.marginBottom=-W.nativeBarWidth+"px",W.sizer.style.borderRightWidth=_i(k)+"px",W.scrollbarsClipped=!0)}function Po(k){if(k.hasFocus())return null;var W=M();if(!W||!N(k.display.lineDiv,W))return null;var $={activeElt:W};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&N(k.display.lineDiv,re.anchorNode)&&($.anchorNode=re.anchorNode,$.anchorOffset=re.anchorOffset,$.focusNode=re.focusNode,$.focusOffset=re.focusOffset)}return $}function Qo(k){if(!k||!k.activeElt||k.activeElt==M())return;if(k.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(k.activeElt.nodeName)&&k.anchorNode&&N(document.body,k.anchorNode)&&N(document.body,k.focusNode)){var W=window.getSelection(),$=document.createRange();$.setEnd(k.anchorNode,k.anchorOffset),$.collapse(!1),W.removeAllRanges(),W.addRange($),W.extend(k.focusNode,k.focusOffset)}}function ss(k,W){var $=k.display,re=k.doc;if(W.editorIsHidden)return rr(k),!1;if(!W.force&&W.visible.from>=$.viewFrom&&W.visible.to<=$.viewTo&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo)&&$.renderedView==$.view&&pn(k)==0)return!1;Oo(k)&&(rr(k),W.dims=Ha(k));var se=re.first+re.size,ke=Math.max(W.visible.from-k.options.viewportMargin,re.first),ft=Math.min(se,W.visible.to+k.options.viewportMargin);$.viewFrom<ke&&ke-$.viewFrom<20&&(ke=Math.max(re.first,$.viewFrom)),$.viewTo>ft&&$.viewTo-ft<20&&(ft=Math.min(se,$.viewTo)),ze&&(ke=Qt(k.doc,ke),ft=xr(k.doc,ft));var Kt=ke!=$.viewFrom||ft!=$.viewTo||$.lastWrapHeight!=W.wrapperHeight||$.lastWrapWidth!=W.wrapperWidth;Cr(k,ke,ft),$.viewOffset=en(Ce(k.doc,$.viewFrom)),k.display.mover.style.top=$.viewOffset+"px";var qt=pn(k);if(!Kt&&qt==0&&!W.force&&$.renderedView==$.view&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo))return!1;var ir=Po(k);return qt>4&&($.lineDiv.style.display="none"),$o(k,$.updateLineNumbers,W.dims),qt>4&&($.lineDiv.style.display=""),$.renderedView=$.view,Qo(ir),b($.cursorDiv),b($.selectionDiv),$.gutters.style.height=$.sizer.style.minHeight=0,Kt&&($.lastWrapHeight=W.wrapperHeight,$.lastWrapWidth=W.wrapperWidth,Pa(k,400)),$.updateLineNumbers=null,!0}function rs(k,W){for(var $=W.viewport,re=!0;;re=!1){if(!re||!k.options.lineWrapping||W.oldDisplayWidth==da(k)){if($&&$.top!=null&&($={top:Math.min(k.doc.height+Mi(k.display)-na(k),$.top)}),W.visible=Xi(k.display,k.doc,$),W.visible.from>=k.display.viewFrom&&W.visible.to<=k.display.viewTo)break}else re&&(W.visible=Xi(k.display,k.doc,$));if(!ss(k,W))break;ri(k);var se=Cn(k);Vr(k),Qn(k,se),Wo(k,se),W.force=!1}W.signal(k,"update",k),(k.display.viewFrom!=k.display.reportedViewFrom||k.display.viewTo!=k.display.reportedViewTo)&&(W.signal(k,"viewportChange",k,k.display.viewFrom,k.display.viewTo),k.display.reportedViewFrom=k.display.viewFrom,k.display.reportedViewTo=k.display.viewTo)}function Ko(k,W){var $=new Oa(k,W);if(ss(k,$)){ri(k),rs(k,$);var re=Cn(k);Vr(k),Qn(k,re),Wo(k,re),$.finish()}}function $o(k,W,$){var re=k.display,se=k.options.lineNumbers,ke=re.lineDiv,ft=ke.firstChild;function Kt(Ji){var ba=Ji.nextSibling;return i&&f&&k.display.currentWheelTarget==Ji?Ji.style.display="none":Ji.parentNode.removeChild(Ji),ba}for(var qt=re.view,ir=re.viewFrom,bn=0;bn<qt.length;bn++){var Bn=qt[bn];if(!Bn.hidden)if(!Bn.node||Bn.node.parentNode!=ke){var ci=dn(k,Bn,ir,$);ke.insertBefore(ci,ft)}else{for(;ft!=Bn.node;)ft=Kt(ft);var fi=se&&W!=null&&W<=ir&&Bn.lineNumber;Bn.changes&&(z(Bn.changes,"gutter")>-1&&(fi=!1),Wa(k,Bn,ir,$)),fi&&(b(Bn.lineNumber),Bn.lineNumber.appendChild(document.createTextNode(mn(k.options,ir)))),ft=Bn.node.nextSibling}ir+=Bn.size}for(;ft;)ft=Kt(ft)}function Uo(k){var W=k.gutters.offsetWidth;k.sizer.style.marginLeft=W+"px"}function Wo(k,W){k.display.sizer.style.minHeight=W.docHeight+"px",k.display.heightForcer.style.top=W.docHeight+"px",k.display.gutters.style.height=W.docHeight+k.display.barHeight+_i(k)+"px"}function Go(k){var W=k.display,$=W.view;if(!W.alignWidgets&&(!W.gutters.firstChild||!k.options.fixedGutter))return;for(var re=Qa(W)-W.scroller.scrollLeft+k.doc.scrollLeft,se=W.gutters.offsetWidth,ke=re+"px",ft=0;ft<$.length;ft++)if(!$[ft].hidden){k.options.fixedGutter&&($[ft].gutter&&($[ft].gutter.style.left=ke),$[ft].gutterBackground&&($[ft].gutterBackground.style.left=ke));var Kt=$[ft].alignable;if(Kt)for(var qt=0;qt<Kt.length;qt++)Kt[qt].style.left=ke}k.options.fixedGutter&&(W.gutters.style.left=re+se+"px")}function Oo(k){if(!k.options.lineNumbers)return!1;var W=k.doc,$=mn(k.options,W.first+W.size-1),re=k.display;if($.length!=re.lineNumChars){var se=re.measure.appendChild(I("div",[I("div",$)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ke=se.firstChild.offsetWidth,ft=se.offsetWidth-ke;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(ke,re.lineGutter.offsetWidth-ft)+1,re.lineNumWidth=re.lineNumInnerWidth+ft,re.lineNumChars=re.lineNumInnerWidth?$.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",Uo(k.display),!0}return!1}function Ka(k,W){for(var $=[],re=!1,se=0;se<k.length;se++){var ke=k[se],ft=null;if(typeof ke!="string"&&(ft=ke.style,ke=ke.className),ke=="CodeMirror-linenumbers")if(W)re=!0;else continue;$.push({className:ke,style:ft})}return W&&!re&&$.push({className:"CodeMirror-linenumbers",style:null}),$}function Xa(k){var W=k.gutters,$=k.gutterSpecs;b(W),k.lineGutter=null;for(var re=0;re<$.length;++re){var se=$[re],ke=se.className,ft=se.style,Kt=W.appendChild(I("div",null,"CodeMirror-gutter "+ke));ft&&(Kt.style.cssText=ft),ke=="CodeMirror-linenumbers"&&(k.lineGutter=Kt,Kt.style.width=(k.lineNumWidth||1)+"px")}W.style.display=$.length?"":"none",Uo(k)}function bo(k){Xa(k.display),ia(k),Go(k)}function Eo(k,W,$,re){var se=this;this.input=$,se.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),se.scrollbarFiller.setAttribute("cm-not-content","true"),se.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),se.gutterFiller.setAttribute("cm-not-content","true"),se.lineDiv=L("div",null,"CodeMirror-code"),se.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),se.cursorDiv=I("div",null,"CodeMirror-cursors"),se.measure=I("div",null,"CodeMirror-measure"),se.lineMeasure=I("div",null,"CodeMirror-measure"),se.lineSpace=L("div",[se.measure,se.lineMeasure,se.selectionDiv,se.cursorDiv,se.lineDiv],null,"position: relative; outline: none");var ke=L("div",[se.lineSpace],"CodeMirror-lines");se.mover=I("div",[ke],null,"position: relative"),se.sizer=I("div",[se.mover],"CodeMirror-sizer"),se.sizerWidth=null,se.heightForcer=I("div",null,null,"position: absolute; height: "+Y+"px; width: 1px;"),se.gutters=I("div",null,"CodeMirror-gutters"),se.lineGutter=null,se.scroller=I("div",[se.sizer,se.heightForcer,se.gutters],"CodeMirror-scroll"),se.scroller.setAttribute("tabIndex","-1"),se.wrapper=I("div",[se.scrollbarFiller,se.gutterFiller,se.scroller],"CodeMirror"),h&&c<8&&(se.gutters.style.zIndex=-1,se.scroller.style.paddingRight=0),!i&&!(C&&u)&&(se.scroller.draggable=!0),k&&(k.appendChild?k.appendChild(se.wrapper):k(se.wrapper)),se.viewFrom=se.viewTo=W.first,se.reportedViewFrom=se.reportedViewTo=W.first,se.view=[],se.renderedView=null,se.externalMeasured=null,se.viewOffset=0,se.lastWrapHeight=se.lastWrapWidth=0,se.updateLineNumbers=null,se.nativeBarWidth=se.barHeight=se.barWidth=0,se.scrollbarsClipped=!1,se.lineNumWidth=se.lineNumInnerWidth=se.lineNumChars=null,se.alignWidgets=!1,se.cachedCharWidth=se.cachedTextHeight=se.cachedPaddingH=null,se.maxLine=null,se.maxLineLength=0,se.maxLineChanged=!1,se.wheelDX=se.wheelDY=se.wheelStartX=se.wheelStartY=null,se.shift=!1,se.selForContextMenu=null,se.activeTouch=null,se.gutterSpecs=Ka(re.gutters,re.lineNumbers),Xa(se),$.init(se)}var pt=0,Nt=null;h?Nt=-.53:C?Nt=15:o?Nt=-.7:e&&(Nt=-1/3);function sn(k){var W=k.wheelDeltaX,$=k.wheelDeltaY;return W==null&&k.detail&&k.axis==k.HORIZONTAL_AXIS&&(W=k.detail),$==null&&k.detail&&k.axis==k.VERTICAL_AXIS?$=k.detail:$==null&&($=k.wheelDelta),{x:W,y:$}}function Mn(k){var W=sn(k);return W.x*=Nt,W.y*=Nt,W}function hi(k,W){var $=sn(W),re=$.x,se=$.y,ke=k.display,ft=ke.scroller,Kt=ft.scrollWidth>ft.clientWidth,qt=ft.scrollHeight>ft.clientHeight;if(!(re&&Kt||se&&qt))return;if(se&&f&&i){e:for(var ir=W.target,bn=ke.view;ir!=ft;ir=ir.parentNode)for(var Bn=0;Bn<bn.length;Bn++)if(bn[Bn].node==ir){k.display.currentWheelTarget=ir;break e}}if(re&&!C&&!n&&Nt!=null){se&&qt&&nr(k,Math.max(0,ft.scrollTop+se*Nt)),En(k,Math.max(0,ft.scrollLeft+re*Nt)),(!se||se&&qt)&&Be(W),ke.wheelStartX=null;return}if(se&&Nt!=null){var ci=se*Nt,fi=k.doc.scrollTop,Ji=fi+ke.wrapper.clientHeight;ci<0?fi=Math.max(0,fi+ci-50):Ji=Math.min(k.doc.height,Ji+ci+50),Ko(k,{top:fi,bottom:Ji})}pt<20&&(ke.wheelStartX==null?(ke.wheelStartX=ft.scrollLeft,ke.wheelStartY=ft.scrollTop,ke.wheelDX=re,ke.wheelDY=se,setTimeout(function(){if(ke.wheelStartX==null)return;var ba=ft.scrollLeft-ke.wheelStartX,Fa=ft.scrollTop-ke.wheelStartY,Da=Fa&&ke.wheelDY&&Fa/ke.wheelDY||ba&&ke.wheelDX&&ba/ke.wheelDX;if(ke.wheelStartX=ke.wheelStartY=null,!Da)return;Nt=(Nt*pt+Da)/(pt+1),++pt},200)):(ke.wheelDX+=re,ke.wheelDY+=se))}var ot=function(W,$){this.ranges=W,this.primIndex=$};ot.prototype.primary=function(){return this.ranges[this.primIndex]},ot.prototype.equals=function(k){if(k==this)return!0;if(k.primIndex!=this.primIndex||k.ranges.length!=this.ranges.length)return!1;for(var W=0;W<this.ranges.length;W++){var $=this.ranges[W],re=k.ranges[W];if(!st($.anchor,re.anchor)||!st($.head,re.head))return!1}return!0},ot.prototype.deepCopy=function(){for(var k=[],W=0;W<this.ranges.length;W++)k[W]=new ae(Xt(this.ranges[W].anchor),Xt(this.ranges[W].head));return new ot(k,this.primIndex)},ot.prototype.somethingSelected=function(){for(var k=0;k<this.ranges.length;k++)if(!this.ranges[k].empty())return!0;return!1},ot.prototype.contains=function(k,W){W||(W=k);for(var $=0;$<this.ranges.length;$++){var re=this.ranges[$];if(nt(W,re.from())>=0&&nt(k,re.to())<=0)return $}return-1};var ae=function(W,$){this.anchor=W,this.head=$};ae.prototype.from=function(){return St(this.anchor,this.head)},ae.prototype.to=function(){return Dt(this.anchor,this.head)},ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function de(k,W,$){var re=k&&k.options.selectionsMayTouch,se=W[$];W.sort(function(ci,fi){return nt(ci.from(),fi.from())}),$=z(W,se);for(var ke=1;ke<W.length;ke++){var ft=W[ke],Kt=W[ke-1],qt=nt(Kt.to(),ft.from());if(re&&!ft.empty()?qt>0:qt>=0){var ir=St(Kt.from(),ft.from()),bn=Dt(Kt.to(),ft.to()),Bn=Kt.empty()?ft.from()==ft.head:Kt.from()==Kt.head;ke<=$&&--$,W.splice(--ke,2,new ae(Bn?bn:ir,Bn?ir:bn))}}return new ot(W,$)}function ye(k,W){return new ot([new ae(k,W||k)],0)}function Ke(k){return k.text?Mt(k.from.line+k.text.length-1,ge(k.text).length+(k.text.length==1?k.from.ch:0)):k.to}function ct(k,W){if(nt(k,W.from)<0)return k;if(nt(k,W.to)<=0)return Ke(W);var $=k.line+W.text.length-(W.to.line-W.from.line)-1,re=k.ch;return k.line==W.to.line&&(re+=Ke(W).ch-W.to.ch),Mt($,re)}function Bt(k,W){for(var $=[],re=0;re<k.sel.ranges.length;re++){var se=k.sel.ranges[re];$.push(new ae(ct(se.anchor,W),ct(se.head,W)))}return de(k.cm,$,k.sel.primIndex)}function Ir(k,W,$){return k.line==W.line?Mt($.line,k.ch-W.ch+$.ch):Mt($.line+(k.line-W.line),k.ch)}function Br(k,W,$){for(var re=[],se=Mt(k.first,0),ke=se,ft=0;ft<W.length;ft++){var Kt=W[ft],qt=Ir(Kt.from,se,ke),ir=Ir(Ke(Kt),se,ke);if(se=Kt.to,ke=ir,$=="around"){var bn=k.sel.ranges[ft],Bn=nt(bn.head,bn.anchor)<0;re[ft]=new ae(Bn?ir:qt,Bn?qt:ir)}else re[ft]=new ae(qt,qt)}return new ot(re,k.sel.primIndex)}function un(k){k.doc.mode=ji(k.options,k.doc.modeOption),zn(k)}function zn(k){k.doc.iter(function(W){W.stateAfter&&(W.stateAfter=null),W.styles&&(W.styles=null)}),k.doc.modeFrontier=k.doc.highlightFrontier=k.doc.first,Pa(k,100),k.state.modeGen++,k.curOp&&ia(k)}function Rn(k,W){return W.from.ch==0&&W.to.ch==0&&ge(W.text)==""&&(!k.cm||k.cm.options.wholeLineUpdateBefore)}function Fn(k,W,$,re){function se(Ia){return $?$[Ia]:null}function ke(Ia,Za,mo){ln(Ia,Za,mo,re),Qi(Ia,"change",Ia,W)}function ft(Ia,Za){for(var mo=[],Vo=Ia;Vo<Za;++Vo)mo.push(new Si(ir[Vo],se(Vo),re));return mo}var Kt=W.from,qt=W.to,ir=W.text,bn=Ce(k,Kt.line),Bn=Ce(k,qt.line),ci=ge(ir),fi=se(ir.length-1),Ji=qt.line-Kt.line;if(W.full)k.insert(0,ft(0,ir.length)),k.remove(ir.length,k.size-ir.length);else if(Rn(k,W)){var ba=ft(0,ir.length-1);ke(Bn,Bn.text,fi),Ji&&k.remove(Kt.line,Ji),ba.length&&k.insert(Kt.line,ba)}else if(bn==Bn)if(ir.length==1)ke(bn,bn.text.slice(0,Kt.ch)+ci+bn.text.slice(qt.ch),fi);else{var Fa=ft(1,ir.length-1);Fa.push(new Si(ci+bn.text.slice(qt.ch),fi,re)),ke(bn,bn.text.slice(0,Kt.ch)+ir[0],se(0)),k.insert(Kt.line+1,Fa)}else if(ir.length==1)ke(bn,bn.text.slice(0,Kt.ch)+ir[0]+Bn.text.slice(qt.ch),se(0)),k.remove(Kt.line+1,Ji);else{ke(bn,bn.text.slice(0,Kt.ch)+ir[0],se(0)),ke(Bn,ci+Bn.text.slice(qt.ch),fi);var Da=ft(1,ir.length-1);Ji>1&&k.remove(Kt.line+1,Ji-1),k.insert(Kt.line+1,Da)}Qi(k,"change",k,W)}function Ai(k,W,$){function re(se,ke,ft){if(se.linked)for(var Kt=0;Kt<se.linked.length;++Kt){var qt=se.linked[Kt];if(qt.doc==ke)continue;var ir=ft&&qt.sharedHist;if($&&!ir)continue;W(qt.doc,ir),re(qt.doc,se,ir)}}re(k,null,!0)}function Di(k,W){if(W.cm)throw new Error("This document is already in use.");k.doc=W,W.cm=k,Ja(k),un(k),ya(k),k.options.lineWrapping||Yn(k),k.options.mode=W.modeOption,ia(k)}function ya(k){(k.doc.direction=="rtl"?B:S)(k.display.lineDiv,"CodeMirror-rtl")}function Ua(k){ka(k,function(){ya(k),ia(k)})}function to(k){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=k||1}function go(k,W){var $={from:Xt(W.from),to:Ke(W),text:Ye(k,W.from,W.to)};return ts(k,$,W.from.line,W.to.line+1),Ai(k,function(re){return ts(re,$,W.from.line,W.to.line+1)},!0),$}function wo(k){for(;k.length;){var W=ge(k);if(W.ranges)k.pop();else break}}function qo(k,W){if(W)return wo(k.done),ge(k.done);if(k.done.length&&!ge(k.done).ranges)return ge(k.done);if(k.done.length>1&&!k.done[k.done.length-2].ranges)return k.done.pop(),ge(k.done)}function Mo(k,W,$,re){var se=k.history;se.undone.length=0;var ke=+new Date,ft,Kt;if((se.lastOp==re||se.lastOrigin==W.origin&&W.origin&&(W.origin.charAt(0)=="+"&&se.lastModTime>ke-(k.cm?k.cm.options.historyEventDelay:500)||W.origin.charAt(0)=="*"))&&(ft=qo(se,se.lastOp==re)))Kt=ge(ft.changes),nt(W.from,W.to)==0&&nt(W.from,Kt.to)==0?Kt.to=Ke(W):ft.changes.push(go(k,W));else{var qt=ge(se.done);for((!qt||!qt.ranges)&&fo(k.sel,se.done),ft={changes:[go(k,W)],generation:se.generation},se.done.push(ft);se.done.length>se.undoDepth;)se.done.shift(),se.done[0].ranges||se.done.shift()}se.done.push($),se.generation=++se.maxGeneration,se.lastModTime=se.lastSelTime=ke,se.lastOp=se.lastSelOp=re,se.lastOrigin=se.lastSelOrigin=W.origin,Kt||vt(k,"historyAdded")}function $i(k,W,$,re){var se=W.charAt(0);return se=="*"||se=="+"&&$.ranges.length==re.ranges.length&&$.somethingSelected()==re.somethingSelected()&&new Date-k.history.lastSelTime<=(k.cm?k.cm.options.historyEventDelay:500)}function To(k,W,$,re){var se=k.history,ke=re&&re.origin;$==se.lastSelOp||ke&&se.lastSelOrigin==ke&&(se.lastModTime==se.lastSelTime&&se.lastOrigin==ke||$i(k,ke,ge(se.done),W))?se.done[se.done.length-1]=W:fo(W,se.done),se.lastSelTime=+new Date,se.lastSelOrigin=ke,se.lastSelOp=$,re&&re.clearRedo!==!1&&wo(se.undone)}function fo(k,W){var $=ge(W);$&&$.ranges&&$.equals(k)||W.push(k)}function ts(k,W,$,re){var se=W["spans_"+k.id],ke=0;k.iter(Math.max(k.first,$),Math.min(k.first+k.size,re),function(ft){ft.markedSpans&&((se||(se=W["spans_"+k.id]={}))[ke]=ft.markedSpans),++ke})}function Jo(k){if(!k)return null;for(var W,$=0;$<k.length;++$)k[$].marker.explicitlyCleared?W||(W=k.slice(0,$)):W&&W.push(k[$]);return W?W.length?W:null:k}function zo(k,W){var $=W["spans_"+k.id];if(!$)return null;for(var re=[],se=0;se<W.text.length;++se)re.push(Jo($[se]));return re}function is(k,W){var $=zo(k,W),re=hn(k,W);if(!$)return re;if(!re)return $;for(var se=0;se<$.length;++se){var ke=$[se],ft=re[se];if(ke&&ft){e:for(var Kt=0;Kt<ft.length;++Kt){for(var qt=ft[Kt],ir=0;ir<ke.length;++ir)if(ke[ir].marker==qt.marker)continue e;ke.push(qt)}}else ft&&($[se]=ft)}return $}function Rs(k,W,$){for(var re=[],se=0;se<k.length;++se){var ke=k[se];if(ke.ranges){re.push($?ot.prototype.deepCopy.call(ke):ke);continue}var ft=ke.changes,Kt=[];re.push({changes:Kt});for(var qt=0;qt<ft.length;++qt){var ir=ft[qt],bn=void 0;if(Kt.push({from:ir.from,to:ir.to,text:ir.text}),W)for(var Bn in ir)(bn=Bn.match(/^spans_(\d+)$/))&&(z(W,Number(bn[1]))>-1&&(ge(Kt)[Bn]=ir[Bn],delete ir[Bn]))}}return re}function gs(k,W,$,re){if(re){var se=k.anchor;if($){var ke=nt(W,se)<0;ke!=nt($,se)<0?(se=W,W=$):ke!=nt(W,$)<0&&(W=$)}return new ae(se,W)}else return new ae($||W,W)}function ps(k,W,$,re,se){se==null&&(se=k.cm&&(k.cm.display.shift||k.extend)),ws(k,new ot([gs(k.sel.primary(),W,$,se)],0),re)}function Ps(k,W,$){for(var re=[],se=k.cm&&(k.cm.display.shift||k.extend),ke=0;ke<k.sel.ranges.length;ke++)re[ke]=gs(k.sel.ranges[ke],W[ke],null,se);var ft=de(k.cm,re,k.sel.primIndex);ws(k,ft,$)}function Es(k,W,$,re){var se=k.sel.ranges.slice(0);se[W]=$,ws(k,de(k.cm,se,k.sel.primIndex),re)}function Vs(k,W,$,re){ws(k,ye(W,$),re)}function Ks(k,W,$){var re={ranges:W.ranges,update:function(ke){this.ranges=[];for(var ft=0;ft<ke.length;ft++)this.ranges[ft]=new ae(At(k,ke[ft].anchor),At(k,ke[ft].head))},origin:$&&$.origin};return vt(k,"beforeSelectionChange",k,re),k.cm&&vt(k.cm,"beforeSelectionChange",k.cm,re),re.ranges!=W.ranges?de(k.cm,re.ranges,re.ranges.length-1):W}function Gs(k,W,$){var re=k.history.done,se=ge(re);se&&se.ranges?(re[re.length-1]=W,Os(k,W,$)):ws(k,W,$)}function ws(k,W,$){Os(k,W,$),To(k,k.sel,k.cm?k.cm.curOp.id:NaN,$)}function Os(k,W,$){(Tt(k,"beforeSelectionChange")||k.cm&&Tt(k.cm,"beforeSelectionChange"))&&(W=Ks(k,W,$));var re=$&&$.bias||(nt(W.primary().head,k.sel.primary().head)<0?-1:1);$s(k,il(k,W,re,!0)),!($&&$.scroll===!1)&&k.cm&&xt(k.cm)}function $s(k,W){if(W.equals(k.sel))return;k.sel=W,k.cm&&(k.cm.curOp.updateInput=1,k.cm.curOp.selectionChanged=!0,Et(k.cm)),Qi(k,"cursorActivity",k)}function nl(k){$s(k,il(k,k.sel,null,!1))}function il(k,W,$,re){for(var se,ke=0;ke<W.ranges.length;ke++){var ft=W.ranges[ke],Kt=W.ranges.length==k.sel.ranges.length&&k.sel.ranges[ke],qt=Nl(k,ft.anchor,Kt&&Kt.anchor,$,re),ir=Nl(k,ft.head,Kt&&Kt.head,$,re);(se||qt!=ft.anchor||ir!=ft.head)&&(se||(se=W.ranges.slice(0,ke)),se[ke]=new ae(qt,ir))}return se?de(k.cm,se,W.primIndex):W}function hl(k,W,$,re,se){var ke=Ce(k,W.line);if(ke.markedSpans)for(var ft=0;ft<ke.markedSpans.length;++ft){var Kt=ke.markedSpans[ft],qt=Kt.marker,ir="selectLeft"in qt?!qt.selectLeft:qt.inclusiveLeft,bn="selectRight"in qt?!qt.selectRight:qt.inclusiveRight;if((Kt.from==null||(ir?Kt.from<=W.ch:Kt.from<W.ch))&&(Kt.to==null||(bn?Kt.to>=W.ch:Kt.to>W.ch))){if(se&&(vt(qt,"beforeCursorEnter"),qt.explicitlyCleared))if(ke.markedSpans){--ft;continue}else break;if(!qt.atomic)continue;if($){var Bn=qt.find(re<0?1:-1),ci=void 0;if((re<0?bn:ir)&&(Bn=Al(k,Bn,-re,Bn&&Bn.line==W.line?ke:null)),Bn&&Bn.line==W.line&&(ci=nt(Bn,$))&&(re<0?ci<0:ci>0))return hl(k,Bn,W,re,se)}var fi=qt.find(re<0?-1:1);return(re<0?ir:bn)&&(fi=Al(k,fi,re,fi.line==W.line?ke:null)),fi?hl(k,fi,W,re,se):null}}return W}function Nl(k,W,$,re,se){var ke=re||1,ft=hl(k,W,$,ke,se)||!se&&hl(k,W,$,ke,!0)||hl(k,W,$,-ke,se)||!se&&hl(k,W,$,-ke,!0);return ft||(k.cantEdit=!0,Mt(k.first,0))}function Al(k,W,$,re){return $<0&&W.ch==0?W.line>k.first?At(k,Mt(W.line-1)):null:$>0&&W.ch==(re||Ce(k,W.line)).text.length?W.line<k.first+k.size-1?Mt(W.line+1,0):null:new Mt(W.line,W.ch+$)}function yl(k){k.setSelection(Mt(k.firstLine(),0),Mt(k.lastLine()),ce)}function al(k,W,$){var re={canceled:!1,from:W.from,to:W.to,text:W.text,origin:W.origin,cancel:function(){return re.canceled=!0}};return $&&(re.update=function(se,ke,ft,Kt){se&&(re.from=At(k,se)),ke&&(re.to=At(k,ke)),ft&&(re.text=ft),Kt!==void 0&&(re.origin=Kt)}),vt(k,"beforeChange",k,re),k.cm&&vt(k.cm,"beforeChange",k.cm,re),re.canceled?(k.cm&&(k.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function Ms(k,W,$){if(k.cm){if(!k.cm.curOp)return Ba(k.cm,Ms)(k,W,$);if(k.cm.state.suppressEdits)return}if((Tt(k,"beforeChange")||k.cm&&Tt(k.cm,"beforeChange"))&&(W=al(k,W,!0),!W))return;var re=Xe&&!$&&vn(k,W.from,W.to);if(re)for(var se=re.length-1;se>=0;--se)Ws(k,{from:re[se].from,to:re[se].to,text:se?[""]:W.text,origin:W.origin});else Ws(k,W)}function Ws(k,W){if(W.text.length==1&&W.text[0]==""&&nt(W.from,W.to)==0)return;var $=Bt(k,W);Mo(k,W,$,k.cm?k.cm.curOp.id:NaN),wl(k,W,$,hn(k,W));var re=[];Ai(k,function(se,ke){!ke&&z(re,se.history)==-1&&(As(se.history,W),re.push(se.history)),wl(se,W,null,hn(se,W))})}function Is(k,W,$){var re=k.cm&&k.cm.state.suppressEdits;if(re&&!$)return;for(var se=k.history,ke,ft=k.sel,Kt=W=="undo"?se.done:se.undone,qt=W=="undo"?se.undone:se.done,ir=0;ir<Kt.length&&!(ke=Kt[ir],$?ke.ranges&&!ke.equals(k.sel):!ke.ranges);ir++);if(ir==Kt.length)return;for(se.lastOrigin=se.lastSelOrigin=null;;)if(ke=Kt.pop(),ke.ranges){if(fo(ke,qt),$&&!ke.equals(k.sel)){ws(k,ke,{clearRedo:!1});return}ft=ke}else if(re){Kt.push(ke);return}else break;var bn=[];fo(ft,qt),qt.push({changes:bn,generation:se.generation}),se.generation=ke.generation||++se.maxGeneration;for(var Bn=Tt(k,"beforeChange")||k.cm&&Tt(k.cm,"beforeChange"),ci=function(Fa){var Da=ke.changes[Fa];if(Da.origin=W,Bn&&!al(k,Da,!1))return Kt.length=0,{};bn.push(go(k,Da));var Ia=Fa?Bt(k,Da):ge(Kt);wl(k,Da,Ia,is(k,Da)),!Fa&&k.cm&&k.cm.scrollIntoView({from:Da.from,to:Ke(Da)});var Za=[];Ai(k,function(mo,Vo){!Vo&&z(Za,mo.history)==-1&&(As(mo.history,Da),Za.push(mo.history)),wl(mo,Da,null,is(mo,Da))})},fi=ke.changes.length-1;fi>=0;--fi){var Ji=ci(fi);if(Ji)return Ji.v}}function bl(k,W){if(W==0)return;if(k.first+=W,k.sel=new ot(Fe(k.sel.ranges,function(se){return new ae(Mt(se.anchor.line+W,se.anchor.ch),Mt(se.head.line+W,se.head.ch))}),k.sel.primIndex),k.cm){ia(k.cm,k.first,k.first-W,W);for(var $=k.cm.display,re=$.viewFrom;re<$.viewTo;re++)qe(k.cm,re,"gutter")}}function wl(k,W,$,re){if(k.cm&&!k.cm.curOp)return Ba(k.cm,wl)(k,W,$,re);if(W.to.line<k.first){bl(k,W.text.length-1-(W.to.line-W.from.line));return}if(W.from.line>k.lastLine())return;if(W.from.line<k.first){var se=W.text.length-1-(k.first-W.from.line);bl(k,se),W={from:Mt(k.first,0),to:Mt(W.to.line+se,W.to.ch),text:[ge(W.text)],origin:W.origin}}var ke=k.lastLine();W.to.line>ke&&(W={from:W.from,to:Mt(ke,Ce(k,ke).text.length),text:[W.text[0]],origin:W.origin}),W.removed=Ye(k,W.from,W.to),$||($=Bt(k,W)),k.cm?ol(k.cm,W,re):Fn(k,W,re),Os(k,$,ce),k.cantEdit&&Nl(k,Mt(k.firstLine(),0))&&(k.cantEdit=!1)}function ol(k,W,$){var re=k.doc,se=k.display,ke=W.from,ft=W.to,Kt=!1,qt=ke.line;k.options.lineWrapping||(qt=_t(zr(Ce(re,ke.line))),re.iter(qt,ft.line+1,function(fi){if(fi==se.maxLine)return Kt=!0,!0})),re.sel.contains(W.from,W.to)>-1&&Et(k),Fn(re,W,$,io(k)),k.options.lineWrapping||(re.iter(qt,ke.line+W.text.length,function(fi){var Ji=ai(fi);Ji>se.maxLineLength&&(se.maxLine=fi,se.maxLineLength=Ji,se.maxLineChanged=!0,Kt=!1)}),Kt&&(k.curOp.updateMaxLine=!0)),Ue(re,ke.line),Pa(k,400);var ir=W.text.length-(ft.line-ke.line)-1;W.full?ia(k):ke.line==ft.line&&W.text.length==1&&!Rn(k.doc,W)?qe(k,ke.line,"text"):ia(k,ke.line,ft.line+1,ir);var bn=Tt(k,"changes"),Bn=Tt(k,"change");if(Bn||bn){var ci={from:ke,to:ft,text:W.text,removed:W.removed,origin:W.origin};Bn&&Qi(k,"change",k,ci),bn&&(k.curOp.changeObjs||(k.curOp.changeObjs=[])).push(ci)}k.display.selForContextMenu=null}function el(k,W,$,re,se){var ke;re||(re=$),nt(re,$)<0&&(ke=[re,$],$=ke[0],re=ke[1]),typeof W=="string"&&(W=k.splitLines(W)),Ms(k,{from:$,to:re,text:W,origin:se})}function ms(k,W,$,re){$<k.line?k.line+=re:W<k.line&&(k.line=W,k.ch=0)}function Ss(k,W,$,re){for(var se=0;se<k.length;++se){var ke=k[se],ft=!0;if(ke.ranges){ke.copied||(ke=k[se]=ke.deepCopy(),ke.copied=!0);for(var Kt=0;Kt<ke.ranges.length;Kt++)ms(ke.ranges[Kt].anchor,W,$,re),ms(ke.ranges[Kt].head,W,$,re);continue}for(var qt=0;qt<ke.changes.length;++qt){var ir=ke.changes[qt];if($<ir.from.line)ir.from=Mt(ir.from.line+re,ir.from.ch),ir.to=Mt(ir.to.line+re,ir.to.ch);else if(W<=ir.to.line){ft=!1;break}}ft||(k.splice(0,se+1),se=0)}}function As(k,W){var $=W.from.line,re=W.to.line,se=W.text.length-(re-$)-1;Ss(k.done,$,re,se),Ss(k.undone,$,re,se)}function Ts(k,W,$,re){var se=W,ke=W;return typeof W=="number"?ke=Ce(k,jt(k,W)):se=_t(W),se==null?null:(re(ke,se)&&k.cm&&qe(k.cm,se,$),ke)}function Us(k){this.lines=k,this.parent=null;for(var W=0,$=0;$<k.length;++$)k[$].parent=this,W+=k[$].height;this.height=W}Us.prototype={chunkSize:function(){return this.lines.length},removeInner:function(W,$){for(var re=W,se=W+$;re<se;++re){var ke=this.lines[re];this.height-=ke.height,Or(ke),Qi(ke,"delete")}this.lines.splice(W,$)},collapse:function(W){W.push.apply(W,this.lines)},insertInner:function(W,$,re){this.height+=re,this.lines=this.lines.slice(0,W).concat($).concat(this.lines.slice(W));for(var se=0;se<$.length;++se)$[se].parent=this},iterN:function(W,$,re){for(var se=W+$;W<se;++W)if(re(this.lines[W]))return!0}};function _l(k){this.children=k;for(var W=0,$=0,re=0;re<k.length;++re){var se=k[re];W+=se.chunkSize(),$+=se.height,se.parent=this}this.size=W,this.height=$,this.parent=null}_l.prototype={chunkSize:function(){return this.size},removeInner:function(W,$){this.size-=$;for(var re=0;re<this.children.length;++re){var se=this.children[re],ke=se.chunkSize();if(W<ke){var ft=Math.min($,ke-W),Kt=se.height;if(se.removeInner(W,ft),this.height-=Kt-se.height,ke==ft&&(this.children.splice(re--,1),se.parent=null),($-=ft)==0)break;W=0}else W-=ke}if(this.size-$<25&&(this.children.length>1||!(this.children[0]instanceof Us))){var qt=[];this.collapse(qt),this.children=[new Us(qt)],this.children[0].parent=this}},collapse:function(W){for(var $=0;$<this.children.length;++$)this.children[$].collapse(W)},insertInner:function(W,$,re){this.size+=$.length,this.height+=re;for(var se=0;se<this.children.length;++se){var ke=this.children[se],ft=ke.chunkSize();if(W<=ft){if(ke.insertInner(W,$,re),ke.lines&&ke.lines.length>50){for(var Kt=ke.lines.length%25+25,qt=Kt;qt<ke.lines.length;){var ir=new Us(ke.lines.slice(qt,qt+=25));ke.height-=ir.height,this.children.splice(++se,0,ir),ir.parent=this}ke.lines=ke.lines.slice(0,Kt),this.maybeSpill()}break}W-=ft}},maybeSpill:function(){if(this.children.length<=10)return;var W=this;do{var $=W.children.splice(W.children.length-5,5),re=new _l($);if(W.parent){W.size-=re.size,W.height-=re.height;var ke=z(W.parent.children,W);W.parent.children.splice(ke+1,0,re)}else{var se=new _l(W.children);se.parent=W,W.children=[se,re],W=se}re.parent=W.parent}while(W.children.length>10);W.parent.maybeSpill()},iterN:function(W,$,re){for(var se=0;se<this.children.length;++se){var ke=this.children[se],ft=ke.chunkSize();if(W<ft){var Kt=Math.min($,ft-W);if(ke.iterN(W,Kt,re))return!0;if(($-=Kt)==0)break;W=0}else W-=ft}}};var Il=function(W,$,re){if(re)for(var se in re)re.hasOwnProperty(se)&&(this[se]=re[se]);this.doc=W,this.node=$};Il.prototype.clear=function(){var k=this.doc.cm,W=this.line.widgets,$=this.line,re=_t($);if(re==null||!W)return;for(var se=0;se<W.length;++se)W[se]==this&&W.splice(se--,1);W.length||($.widgets=null);var ke=pi(this);dt($,Math.max(0,$.height-ke)),k&&(ka(k,function(){Sl(k,$,-ke),qe(k,re,"widget")}),Qi(k,"lineWidgetCleared",k,this,re))},Il.prototype.changed=function(){var k=this,W=this.height,$=this.doc.cm,re=this.line;this.height=null;var se=pi(this)-W;if(!se)return;Jr(this.doc,re)||dt(re,re.height+se),$&&ka($,function(){$.curOp.forceUpdate=!0,Sl($,re,se),Qi($,"lineWidgetChanged",$,k,_t(re))})},Rt(Il);function Sl(k,W,$){en(W)<(k.curOp&&k.curOp.scrollTop||k.doc.scrollTop)&&yr(k,$)}function Zl(k,W,$,re){var se=new Il(k,$,re),ke=k.cm;return ke&&se.noHScroll&&(ke.display.alignWidgets=!0),Ts(k,W,"widget",function(ft){var Kt=ft.widgets||(ft.widgets=[]);if(se.insertAt==null?Kt.push(se):Kt.splice(Math.min(Kt.length-1,Math.max(0,se.insertAt)),0,se),se.line=ft,ke&&!Jr(k,ft)){var qt=en(ft)<k.scrollTop;dt(ft,ft.height+pi(se)),qt&&yr(ke,se.height),ke.curOp.forceUpdate=!0}return!0}),ke&&Qi(ke,"lineWidgetAdded",ke,se,typeof W=="number"?W:_t(W)),se}var iu=0,tl=function(W,$){this.lines=[],this.type=$,this.doc=W,this.id=++iu};tl.prototype.clear=function(){if(this.explicitlyCleared)return;var k=this.doc.cm,W=k&&!k.curOp;if(W&&Ca(k),Tt(this,"clear")){var $=this.find();$&&Qi(this,"clear",$.from,$.to)}for(var re=null,se=null,ke=0;ke<this.lines.length;++ke){var ft=this.lines[ke],Kt=Gt(ft.markedSpans,this);k&&!this.collapsed?qe(k,_t(ft),"text"):k&&(Kt.to!=null&&(se=_t(ft)),Kt.from!=null&&(re=_t(ft))),ft.markedSpans=Mr(ft.markedSpans,Kt),Kt.from==null&&this.collapsed&&!Jr(this.doc,ft)&&k&&dt(ft,Bi(k.display))}if(k&&this.collapsed&&!k.options.lineWrapping)for(var qt=0;qt<this.lines.length;++qt){var ir=zr(this.lines[qt]),bn=ai(ir);bn>k.display.maxLineLength&&(k.display.maxLine=ir,k.display.maxLineLength=bn,k.display.maxLineChanged=!0)}re!=null&&k&&this.collapsed&&ia(k,re,se+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,k&&nl(k.doc)),k&&Qi(k,"markerCleared",k,this,re,se),W&&fa(k),this.parent&&this.parent.clear()},tl.prototype.find=function(k,W){k==null&&this.type=="bookmark"&&(k=1);for(var $,re,se=0;se<this.lines.length;++se){var ke=this.lines[se],ft=Gt(ke.markedSpans,this);if(ft.from!=null&&($=Mt(W?ke:_t(ke),ft.from),k==-1))return $;if(ft.to!=null&&(re=Mt(W?ke:_t(ke),ft.to),k==1))return re}return $&&{from:$,to:re}},tl.prototype.changed=function(){var k=this,W=this.find(-1,!0),$=this,re=this.doc.cm;if(!W||!re)return;ka(re,function(){var se=W.line,ke=_t(W.line),ft=sa(re,ke);if(ft&&(Io(ft),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!Jr($.doc,se)&&$.height!=null){var Kt=$.height;$.height=null;var qt=pi($)-Kt;qt&&dt(se,se.height+qt)}Qi(re,"markerChanged",re,k)})},tl.prototype.attachLine=function(k){if(!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(!W.maybeHiddenMarkers||z(W.maybeHiddenMarkers,this)==-1)&&(W.maybeUnhiddenMarkers||(W.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(k)},tl.prototype.detachLine=function(k){if(this.lines.splice(z(this.lines,k),1),!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(W.maybeHiddenMarkers||(W.maybeHiddenMarkers=[])).push(this)}},Rt(tl);function xl(k,W,$,re,se){if(re&&re.shared)return Pl(k,W,$,re,se);if(k.cm&&!k.cm.curOp)return Ba(k.cm,xl)(k,W,$,re,se);var ke=new tl(k,se),ft=nt(W,$);if(re&&K(re,ke,!1),ft>0||ft==0&&ke.clearWhenEmpty!==!1)return ke;if(ke.replacedWith&&(ke.collapsed=!0,ke.widgetNode=L("span",[ke.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||ke.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(ke.widgetNode.insertLeft=!0)),ke.collapsed){if(On(k,W.line,W,$,ke)||W.line!=$.line&&On(k,$.line,W,$,ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");bt()}ke.addToHistory&&Mo(k,{from:W,to:$,origin:"markText"},k.sel,NaN);var Kt=W.line,qt=k.cm,ir;if(k.iter(Kt,$.line+1,function(Bn){qt&&ke.collapsed&&!qt.options.lineWrapping&&zr(Bn)==qt.display.maxLine&&(ir=!0),ke.collapsed&&Kt!=W.line&&dt(Bn,0),Lr(Bn,new ut(ke,Kt==W.line?W.ch:null,Kt==$.line?$.ch:null)),++Kt}),ke.collapsed&&k.iter(W.line,$.line+1,function(Bn){Jr(k,Bn)&&dt(Bn,0)}),ke.clearOnEnter&&Ie(ke,"beforeCursorEnter",function(){return ke.clear()}),ke.readOnly&&(Ze(),(k.history.done.length||k.history.undone.length)&&k.clearHistory()),ke.collapsed&&(ke.id=++iu,ke.atomic=!0),qt){if(ir&&(qt.curOp.updateMaxLine=!0),ke.collapsed)ia(qt,W.line,$.line+1);else if(ke.className||ke.startStyle||ke.endStyle||ke.css||ke.attributes||ke.title)for(var bn=W.line;bn<=$.line;bn++)qe(qt,bn,"text");ke.atomic&&nl(qt.doc),Qi(qt,"markerAdded",qt,ke)}return ke}var Ns=function(W,$){this.markers=W,this.primary=$;for(var re=0;re<W.length;++re)W[re].parent=this};Ns.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var k=0;k<this.markers.length;++k)this.markers[k].clear();Qi(this,"clear")},Ns.prototype.find=function(k,W){return this.primary.find(k,W)},Rt(Ns);function Pl(k,W,$,re,se){re=K(re),re.shared=!1;var ke=[xl(k,W,$,re,se)],ft=ke[0],Kt=re.widgetNode;return Ai(k,function(qt){Kt&&(re.widgetNode=Kt.cloneNode(!0)),ke.push(xl(qt,At(qt,W),At(qt,$),re,se));for(var ir=0;ir<qt.linked.length;++ir)if(qt.linked[ir].isParent)return;ft=ge(ke)}),new Ns(ke,ft)}function uu(k){return k.findMarks(Mt(k.first,0),k.clipPos(Mt(k.lastLine())),function(W){return W.parent})}function $l(k,W){for(var $=0;$<W.length;$++){var re=W[$],se=re.find(),ke=k.clipPos(se.from),ft=k.clipPos(se.to);if(nt(ke,ft)){var Kt=xl(k,ke,ft,re.primary,re.primary.type);re.markers.push(Kt),Kt.parent=re}}}function au(k){for(var W=function(se){var ke=k[se],ft=[ke.primary.doc];Ai(ke.primary.doc,function(ir){return ft.push(ir)});for(var Kt=0;Kt<ke.markers.length;Kt++){var qt=ke.markers[Kt];z(ft,qt.doc)==-1&&(qt.parent=null,ke.markers.splice(Kt--,1))}},$=0;$<k.length;$++)W($)}var cu=0,Xs=function k(W,$,re,se,ke){if(!(this instanceof k))return new k(W,$,re,se,ke);re==null&&(re=0),_l.call(this,[new Us([new Si("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var ft=Mt(re,0);this.sel=ye(ft),this.history=new to(null),this.id=++cu,this.modeOption=$,this.lineSep=se,this.direction=ke=="rtl"?"rtl":"ltr",this.extend=!1,typeof W=="string"&&(W=this.splitLines(W)),Fn(this,{from:ft,to:ft,text:W}),ws(this,ye(ft),ce)};Xs.prototype=Je(_l.prototype,{constructor:Xs,iter:function(W,$,re){re?this.iterN(W-this.first,$-W,re):this.iterN(this.first,this.first+this.size,W)},insert:function(W,$){for(var re=0,se=0;se<$.length;++se)re+=$[se].height;this.insertInner(W-this.first,$,re)},remove:function(W,$){this.removeInner(W-this.first,$)},getValue:function(W){var $=it(this,this.first,this.first+this.size);return W===!1?$:$.join(W||this.lineSeparator())},setValue:ja(function(k){var W=Mt(this.first,0),$=this.first+this.size-1;Ms(this,{from:W,to:Mt($,Ce(this,$).text.length),text:this.splitLines(k),origin:"setValue",full:!0},!0),this.cm&&Ut(this.cm,0,0),ws(this,ye(W),ce)}),replaceRange:function(W,$,re,se){$=At(this,$),re=re?At(this,re):$,el(this,W,$,re,se)},getRange:function(W,$,re){var se=Ye(this,At(this,W),At(this,$));return re===!1?se:se.join(re||this.lineSeparator())},getLine:function(W){var $=this.getLineHandle(W);return $&&$.text},getLineHandle:function(W){if(kr(this,W))return Ce(this,W)},getLineNumber:function(W){return _t(W)},getLineHandleVisualStart:function(W){return typeof W=="number"&&(W=Ce(this,W)),zr(W)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(W){return At(this,W)},getCursor:function(W){var $=this.sel.primary(),re;return W==null||W=="head"?re=$.head:W=="anchor"?re=$.anchor:W=="end"||W=="to"||W===!1?re=$.to():re=$.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ja(function(k,W,$){Vs(this,At(this,typeof k=="number"?Mt(k,W||0):k),null,$)}),setSelection:ja(function(k,W,$){Vs(this,At(this,k),At(this,W||k),$)}),extendSelection:ja(function(k,W,$){ps(this,At(this,k),W&&At(this,W),$)}),extendSelections:ja(function(k,W){Ps(this,wr(this,k),W)}),extendSelectionsBy:ja(function(k,W){var $=Fe(this.sel.ranges,k);Ps(this,wr(this,$),W)}),setSelections:ja(function(k,W,$){if(!k.length)return;for(var re=[],se=0;se<k.length;se++)re[se]=new ae(At(this,k[se].anchor),At(this,k[se].head));W==null&&(W=Math.min(k.length-1,this.sel.primIndex)),ws(this,de(this.cm,re,W),$)}),addSelection:ja(function(k,W,$){var re=this.sel.ranges.slice(0);re.push(new ae(At(this,k),At(this,W||k))),ws(this,de(this.cm,re,re.length-1),$)}),getSelection:function(W){for(var $=this.sel.ranges,re,se=0;se<$.length;se++){var ke=Ye(this,$[se].from(),$[se].to());re=re?re.concat(ke):ke}return W===!1?re:re.join(W||this.lineSeparator())},getSelections:function(W){for(var $=[],re=this.sel.ranges,se=0;se<re.length;se++){var ke=Ye(this,re[se].from(),re[se].to());W!==!1&&(ke=ke.join(W||this.lineSeparator())),$[se]=ke}return $},replaceSelection:function(W,$,re){for(var se=[],ke=0;ke<this.sel.ranges.length;ke++)se[ke]=W;this.replaceSelections(se,$,re||"+input")},replaceSelections:ja(function(k,W,$){for(var re=[],se=this.sel,ke=0;ke<se.ranges.length;ke++){var ft=se.ranges[ke];re[ke]={from:ft.from(),to:ft.to(),text:this.splitLines(k[ke]),origin:$}}for(var Kt=W&&W!="end"&&Br(this,re,W),qt=re.length-1;qt>=0;qt--)Ms(this,re[qt]);Kt?Gs(this,Kt):this.cm&&xt(this.cm)}),undo:ja(function(){Is(this,"undo")}),redo:ja(function(){Is(this,"redo")}),undoSelection:ja(function(){Is(this,"undo",!0)}),redoSelection:ja(function(){Is(this,"redo",!0)}),setExtending:function(W){this.extend=W},getExtending:function(){return this.extend},historySize:function(){for(var W=this.history,$=0,re=0,se=0;se<W.done.length;se++)W.done[se].ranges||++$;for(var ke=0;ke<W.undone.length;ke++)W.undone[ke].ranges||++re;return{undo:$,redo:re}},clearHistory:function(){var W=this;this.history=new to(this.history.maxGeneration),Ai(this,function($){return $.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:Rs(this.history.done),undone:Rs(this.history.undone)}},setHistory:function(W){var $=this.history=new to(this.history.maxGeneration);$.done=Rs(W.done.slice(0),null,!0),$.undone=Rs(W.undone.slice(0),null,!0)},setGutterMarker:ja(function(k,W,$){return Ts(this,k,"gutter",function(re){var se=re.gutterMarkers||(re.gutterMarkers={});return se[W]=$,!$&&te(se)&&(re.gutterMarkers=null),!0})}),clearGutter:ja(function(k){var W=this;this.iter(function($){$.gutterMarkers&&$.gutterMarkers[k]&&Ts(W,$,"gutter",function(){return $.gutterMarkers[k]=null,te($.gutterMarkers)&&($.gutterMarkers=null),!0})})}),lineInfo:function(W){var $;if(typeof W=="number"){if(!kr(this,W))return null;if($=W,W=Ce(this,W),!W)return null}else if($=_t(W),$==null)return null;return{line:$,handle:W,text:W.text,gutterMarkers:W.gutterMarkers,textClass:W.textClass,bgClass:W.bgClass,wrapClass:W.wrapClass,widgets:W.widgets}},addLineClass:ja(function(k,W,$){return Ts(this,k,W=="gutter"?"gutter":"class",function(re){var se=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass";if(!re[se])re[se]=$;else{if(T($).test(re[se]))return!1;re[se]+=" "+$}return!0})}),removeLineClass:ja(function(k,W,$){return Ts(this,k,W=="gutter"?"gutter":"class",function(re){var se=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass",ke=re[se];if(ke)if($==null)re[se]=null;else{var ft=ke.match(T($));if(!ft)return!1;var Kt=ft.index+ft[0].length;re[se]=ke.slice(0,ft.index)+(!ft.index||Kt==ke.length?"":" ")+ke.slice(Kt)||null}else return!1;return!0})}),addLineWidget:ja(function(k,W,$){return Zl(this,k,W,$)}),removeLineWidget:function(W){W.clear()},markText:function(W,$,re){return xl(this,At(this,W),At(this,$),re,re&&re.type||"range")},setBookmark:function(W,$){var re={replacedWith:$&&($.nodeType==null?$.widget:$),insertLeft:$&&$.insertLeft,clearWhenEmpty:!1,shared:$&&$.shared,handleMouseEvents:$&&$.handleMouseEvents};return W=At(this,W),xl(this,W,W,re,"bookmark")},findMarksAt:function(W){W=At(this,W);var $=[],re=Ce(this,W.line).markedSpans;if(re)for(var se=0;se<re.length;++se){var ke=re[se];(ke.from==null||ke.from<=W.ch)&&(ke.to==null||ke.to>=W.ch)&&$.push(ke.marker.parent||ke.marker)}return $},findMarks:function(W,$,re){W=At(this,W),$=At(this,$);var se=[],ke=W.line;return this.iter(W.line,$.line+1,function(ft){var Kt=ft.markedSpans;if(Kt)for(var qt=0;qt<Kt.length;qt++){var ir=Kt[qt];!(ir.to!=null&&ke==W.line&&W.ch>=ir.to||ir.from==null&&ke!=W.line||ir.from!=null&&ke==$.line&&ir.from>=$.ch)&&(!re||re(ir.marker))&&se.push(ir.marker.parent||ir.marker)}++ke}),se},getAllMarks:function(){var W=[];return this.iter(function($){var re=$.markedSpans;if(re)for(var se=0;se<re.length;++se)re[se].from!=null&&W.push(re[se].marker)}),W},posFromIndex:function(W){var $,re=this.first,se=this.lineSeparator().length;return this.iter(function(ke){var ft=ke.text.length+se;if(ft>W)return $=W,!0;W-=ft,++re}),At(this,Mt(re,$))},indexFromPos:function(W){W=At(this,W);var $=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(se){$+=se.text.length+re}),$},copy:function(W){var $=new Xs(it(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return $.scrollTop=this.scrollTop,$.scrollLeft=this.scrollLeft,$.sel=this.sel,$.extend=!1,W&&($.history.undoDepth=this.history.undoDepth,$.setHistory(this.getHistory())),$},linkedDoc:function(W){W||(W={});var $=this.first,re=this.first+this.size;W.from!=null&&W.from>$&&($=W.from),W.to!=null&&W.to<re&&(re=W.to);var se=new Xs(it(this,$,re),W.mode||this.modeOption,$,this.lineSep,this.direction);return W.sharedHist&&(se.history=this.history),(this.linked||(this.linked=[])).push({doc:se,sharedHist:W.sharedHist}),se.linked=[{doc:this,isParent:!0,sharedHist:W.sharedHist}],$l(se,uu(this)),se},unlinkDoc:function(W){if(W instanceof Er&&(W=W.doc),this.linked)for(var $=0;$<this.linked.length;++$){var re=this.linked[$];if(re.doc!=W)continue;this.linked.splice($,1),W.unlinkDoc(this),au(uu(this));break}if(W.history==this.history){var se=[W.id];Ai(W,function(ke){return se.push(ke.id)},!0),W.history=new to(null),W.history.done=Rs(this.history.done,se),W.history.undone=Rs(this.history.undone,se)}},iterLinkedDocs:function(W){Ai(this,W)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(W){return this.lineSep?W.split(this.lineSep):cn(W)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ja(function(k){if(k!="rtl"&&(k="ltr"),k==this.direction)return;this.direction=k,this.iter(function(W){return W.order=null}),this.cm&&Ua(this.cm)})}),Xs.prototype.eachLine=Xs.prototype.iter;var _s=0;function fl(k){var W=this;if(du(W),Ot(W,k)||di(W.display,k))return;Be(k),h&&(_s=+new Date);var $=Ga(W,k,!0),re=k.dataTransfer.files;if(!$||W.isReadOnly())return;if(re&&re.length&&window.FileReader&&window.File)for(var se=re.length,ke=Array(se),ft=0,Kt=function(){++ft==se&&Ba(W,function(){$=At(W.doc,$);var Ji={from:$,to:$,text:W.doc.splitLines(ke.filter(function(ba){return ba!=null}).join(W.doc.lineSeparator())),origin:"paste"};Ms(W.doc,Ji),Gs(W.doc,ye(At(W.doc,$),At(W.doc,Ke(Ji))))})()},qt=function(Ji,ba){if(W.options.allowDropFileTypes&&z(W.options.allowDropFileTypes,Ji.type)==-1){Kt();return}var Fa=new FileReader;Fa.onerror=function(){return Kt()},Fa.onload=function(){var Da=Fa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Da)){Kt();return}ke[ba]=Da,Kt()},Fa.readAsText(Ji)},ir=0;ir<re.length;ir++)qt(re[ir],ir);else{if(W.state.draggingText&&W.doc.sel.contains($)>-1){W.state.draggingText(k),setTimeout(function(){return W.display.input.focus()},20);return}try{var bn=k.dataTransfer.getData("Text");if(bn){var Bn;if(W.state.draggingText&&!W.state.draggingText.copy&&(Bn=W.listSelections()),Os(W.doc,ye($,$)),Bn)for(var ci=0;ci<Bn.length;++ci)el(W.doc,"",Bn[ci].anchor,Bn[ci].head,"drag");W.replaceSelection(bn,"around","paste"),W.display.input.focus()}}catch(fi){}}}function ql(k,W){if(h&&(!k.state.draggingText||+new Date-_s<100)){je(W);return}if(Ot(k,W)||di(k.display,W))return;if(W.dataTransfer.setData("Text",k.getSelection()),W.dataTransfer.effectAllowed="copyMove",W.dataTransfer.setDragImage&&!e){var $=I("img",null,null,"position: fixed; left: 0; top: 0;");$.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n&&($.width=$.height=1,k.display.wrapper.appendChild($),$._top=$.offsetTop),W.dataTransfer.setDragImage($,0,0),n&&$.parentNode.removeChild($)}}function yu(k,W){var $=Ga(k,W);if(!$)return;var re=document.createDocumentFragment();In(k,$,re),k.display.dragCursor||(k.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),k.display.lineSpace.insertBefore(k.display.dragCursor,k.display.cursorDiv)),_(k.display.dragCursor,re)}function du(k){k.display.dragCursor&&(k.display.lineSpace.removeChild(k.display.dragCursor),k.display.dragCursor=null)}function Ll(k){if(!document.getElementsByClassName)return;for(var W=document.getElementsByClassName("CodeMirror"),$=[],re=0;re<W.length;re++){var se=W[re].CodeMirror;se&&$.push(se)}$.length&&$[0].operation(function(){for(var ke=0;ke<$.length;ke++)k($[ke])})}var Xl=!1;function Ou(){if(Xl)return;hu(),Xl=!0}function hu(){var k;Ie(window,"resize",function(){k==null&&(k=setTimeout(function(){k=null,Ll(bu)},100))}),Ie(window,"blur",function(){return Ll(ti)})}function bu(k){var W=k.display;W.cachedCharWidth=W.cachedTextHeight=W.cachedPaddingH=null,W.scrollbarsClipped=!1,k.setSize()}for(var Dl={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"},Fl=0;Fl<10;Fl++)Dl[Fl+48]=Dl[Fl+96]=String(Fl);for(var jl=65;jl<=90;jl++)Dl[jl]=String.fromCharCode(jl);for(var Hl=1;Hl<=12;Hl++)Dl[Hl+111]=Dl[Hl+63235]="F"+Hl;var Fs={};Fs.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"},Fs.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"},Fs.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"},Fs.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"]},Fs.default=f?Fs.macDefault:Fs.pcDefault;function rl(k){var W=k.split(/-(?!$)/);k=W[W.length-1];for(var $,re,se,ke,ft=0;ft<W.length-1;ft++){var Kt=W[ft];if(/^(cmd|meta|m)$/i.test(Kt))ke=!0;else if(/^a(lt)?$/i.test(Kt))$=!0;else if(/^(c|ctrl|control)$/i.test(Kt))re=!0;else if(/^s(hift)?$/i.test(Kt))se=!0;else throw new Error("Unrecognized modifier name: "+Kt)}return $&&(k="Alt-"+k),re&&(k="Ctrl-"+k),ke&&(k="Cmd-"+k),se&&(k="Shift-"+k),k}function Kl(k){var W={};for(var $ in k)if(k.hasOwnProperty($)){var re=k[$];if(/^(name|fallthrough|(de|at)tach)$/.test($))continue;if(re=="..."){delete k[$];continue}for(var se=Fe($.split(" "),rl),ke=0;ke<se.length;ke++){var ft=void 0,Kt=void 0;ke==se.length-1?(Kt=se.join(" "),ft=re):(Kt=se.slice(0,ke+1).join(" "),ft="...");var qt=W[Kt];if(!qt)W[Kt]=ft;else if(qt!=ft)throw new Error("Inconsistent bindings for "+Kt)}delete k[$]}for(var ir in W)k[ir]=W[ir];return k}function sl(k,W,$,re){W=Bl(W);var se=W.call?W.call(k,re):W[k];if(se===!1)return"nothing";if(se==="...")return"multi";if(se!=null&&$(se))return"handled";if(W.fallthrough){if(Object.prototype.toString.call(W.fallthrough)!="[object Array]")return sl(k,W.fallthrough,$,re);for(var ke=0;ke<W.fallthrough.length;ke++){var ft=sl(k,W.fallthrough[ke],$,re);if(ft)return ft}}}function Yl(k){var W=typeof k=="string"?k:Dl[k.keyCode];return W=="Ctrl"||W=="Alt"||W=="Shift"||W=="Mod"}function _u(k,W,$){var re=k;return W.altKey&&re!="Alt"&&(k="Alt-"+k),(y?W.metaKey:W.ctrlKey)&&re!="Ctrl"&&(k="Ctrl-"+k),(y?W.ctrlKey:W.metaKey)&&re!="Mod"&&(k="Cmd-"+k),!$&&W.shiftKey&&re!="Shift"&&(k="Shift-"+k),k}function wu(k,W){if(n&&k.keyCode==34&&k.char)return!1;var $=Dl[k.keyCode];return $==null||k.altGraphKey?!1:(k.keyCode==3&&k.code&&($=k.code),_u($,k,W))}function Bl(k){return typeof k=="string"?Fs[k]:k}function El(k,W){for(var $=k.doc.sel.ranges,re=[],se=0;se<$.length;se++){for(var ke=W($[se]);re.length&&nt(ke.from,ge(re).to)<=0;){var ft=re.pop();if(nt(ft.from,ke.from)<0){ke.from=ft.from;break}}re.push(ke)}ka(k,function(){for(var Kt=re.length-1;Kt>=0;Kt--)el(k.doc,"",re[Kt].from,re[Kt].to,"+delete");xt(k)})}function Ql(k,W,$){var re=Pe(k.text,W+$,$);return re<0||re>k.text.length?null:re}function Iu(k,W,$){var re=Ql(k,W.ch,$);return re==null?null:new Mt(W.line,re,$<0?"after":"before")}function Lu(k,W,$,re,se){if(k){W.doc.direction=="rtl"&&(se=-se);var ke=gt($,W.doc.direction);if(ke){var ft=se<0?ge(ke):ke[0],Kt=se<0==(ft.level==1),qt=Kt?"after":"before",ir;if(ft.level>0||W.doc.direction=="rtl"){var bn=co(W,$);ir=se<0?$.text.length-1:0;var Bn=no(W,bn,ir).top;ir=Oe(function(ci){return no(W,bn,ci).top==Bn},se<0==(ft.level==1)?ft.from:ft.to-1,ir),qt=="before"&&(ir=Ql($,ir,1))}else ir=se<0?ft.to:ft.from;return new Mt(re,ir,qt)}}return new Mt(re,se<0?$.text.length:0,se<0?"before":"after")}function ou(k,W,$,re){var se=gt(W,k.doc.direction);if(!se)return Iu(W,$,re);$.ch>=W.text.length?($.ch=W.text.length,$.sticky="before"):$.ch<=0&&($.ch=0,$.sticky="after");var ke=_e(se,$.ch,$.sticky),ft=se[ke];if(k.doc.direction=="ltr"&&ft.level%2==0&&(re>0?ft.to>$.ch:ft.from<$.ch))return Iu(W,$,re);var Kt=function(Ia,Za){return Ql(W,Ia instanceof Mt?Ia.ch:Ia,Za)},qt,ir=function(Ia){return k.options.lineWrapping?(qt=qt||co(k,W),fn(k,W,qt,Ia)):{begin:0,end:W.text.length}},bn=ir($.sticky=="before"?Kt($,-1):$.ch);if(k.doc.direction=="rtl"||ft.level==1){var Bn=ft.level==1==re<0,ci=Kt($,Bn?1:-1);if(ci!=null&&(Bn?ci<=ft.to&&ci<=bn.end:ci>=ft.from&&ci>=bn.begin)){var fi=Bn?"before":"after";return new Mt($.line,ci,fi)}}var Ji=function(Ia,Za,mo){for(var Vo=function(hs,cl){return cl?new Mt($.line,Kt(hs,1),"before"):new Mt($.line,hs,"after")};Ia>=0&&Ia<se.length;Ia+=Za){var Fo=se[Ia],Ta=Za>0==(Fo.level!=1),fs=Ta?mo.begin:Kt(mo.end,-1);if(Fo.from<=fs&&fs<Fo.to)return Vo(fs,Ta);if(fs=Ta?Fo.from:Kt(Fo.to,-1),mo.begin<=fs&&fs<mo.end)return Vo(fs,Ta)}},ba=Ji(ke+re,re,bn);if(ba)return ba;var Fa=re>0?bn.end:Kt(bn.begin,-1);return Fa!=null&&!(re>0&&Fa==W.text.length)&&(ba=Ji(re>0?0:se.length-1,re,ir(Fa)),ba)?ba:null}var eu={selectAll:yl,singleSelection:function(W){return W.setSelection(W.getCursor("anchor"),W.getCursor("head"),ce)},killLine:function(W){return El(W,function($){if($.empty()){var re=Ce(W.doc,$.head.line).text.length;return $.head.ch==re&&$.head.line<W.lastLine()?{from:$.head,to:Mt($.head.line+1,0)}:{from:$.head,to:Mt($.head.line,re)}}else return{from:$.from(),to:$.to()}})},deleteLine:function(W){return El(W,function($){return{from:Mt($.from().line,0),to:At(W.doc,Mt($.to().line+1,0))}})},delLineLeft:function(W){return El(W,function($){return{from:Mt($.from().line,0),to:$.from()}})},delWrappedLineLeft:function(W){return El(W,function($){var re=W.charCoords($.head,"div").top+5,se=W.coordsChar({left:0,top:re},"div");return{from:se,to:$.from()}})},delWrappedLineRight:function(W){return El(W,function($){var re=W.charCoords($.head,"div").top+5,se=W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:re},"div");return{from:$.from(),to:se}})},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(Mt(W.firstLine(),0))},goDocEnd:function(W){return W.extendSelection(Mt(W.lastLine()))},goLineStart:function(W){return W.extendSelectionsBy(function($){return su(W,$.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(W){return W.extendSelectionsBy(function($){return fu(W,$.head)},{origin:"+move",bias:1})},goLineEnd:function(W){return W.extendSelectionsBy(function($){return Ul(W,$.head.line)},{origin:"+move",bias:-1})},goLineRight:function(W){return W.extendSelectionsBy(function($){var re=W.cursorCoords($.head,"div").top+5;return W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:re},"div")},ve)},goLineLeft:function(W){return W.extendSelectionsBy(function($){var re=W.cursorCoords($.head,"div").top+5;return W.coordsChar({left:0,top:re},"div")},ve)},goLineLeftSmart:function(W){return W.extendSelectionsBy(function($){var re=W.cursorCoords($.head,"div").top+5,se=W.coordsChar({left:0,top:re},"div");return se.ch<W.getLine(se.line).search(/\S/)?fu(W,$.head):se},ve)},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 $=[],re=W.listSelections(),se=W.options.tabSize,ke=0;ke<re.length;ke++){var ft=re[ke].from(),Kt=U(W.getLine(ft.line),ft.ch,se);$.push(He(se-Kt%se))}W.replaceSelections($)},defaultTab:function(W){W.somethingSelected()?W.indentSelection("add"):W.execCommand("insertTab")},transposeChars:function(W){return ka(W,function(){for(var $=W.listSelections(),re=[],se=0;se<$.length;se++){if(!$[se].empty())continue;var ke=$[se].head,ft=Ce(W.doc,ke.line).text;if(ft){if(ke.ch==ft.length&&(ke=new Mt(ke.line,ke.ch-1)),ke.ch>0)ke=new Mt(ke.line,ke.ch+1),W.replaceRange(ft.charAt(ke.ch-1)+ft.charAt(ke.ch-2),Mt(ke.line,ke.ch-2),ke,"+transpose");else if(ke.line>W.doc.first){var Kt=Ce(W.doc,ke.line-1).text;Kt&&(ke=new Mt(ke.line,1),W.replaceRange(ft.charAt(0)+W.doc.lineSeparator()+Kt.charAt(Kt.length-1),Mt(ke.line-1,Kt.length-1),ke,"+transpose"))}}re.push(new ae(ke,ke))}W.setSelections(re)})},newlineAndIndent:function(W){return ka(W,function(){for(var $=W.listSelections(),re=$.length-1;re>=0;re--)W.replaceRange(W.doc.lineSeparator(),$[re].anchor,$[re].head,"+input");$=W.listSelections();for(var se=0;se<$.length;se++)W.indentLine($[se].from().line,null,!0);xt(W)})},openLine:function(W){return W.replaceSelection(`
`,"start")},toggleOverwrite:function(W){return W.toggleOverwrite()}};function su(k,W){var $=Ce(k.doc,W),re=zr($);return re!=$&&(W=_t(re)),Lu(!0,k,re,W,1)}function Ul(k,W){var $=Ce(k.doc,W),re=fr($);return re!=$&&(W=_t(re)),Lu(!0,k,$,W,-1)}function fu(k,W){var $=su(k,W.line),re=Ce(k.doc,$.line),se=gt(re,k.doc.direction);if(!se||se[0].level==0){var ke=Math.max($.ch,re.text.search(/\S/)),ft=W.line==$.line&&W.ch<=ke&&W.ch;return Mt($.line,ft?0:ke,$.sticky)}return $}function pl(k,W,$){if(typeof W=="string"&&(W=eu[W],!W))return!1;k.display.input.ensurePolled();var re=k.display.shift,se=!1;try{k.isReadOnly()&&(k.state.suppressEdits=!0),$&&(k.display.shift=!1),se=W(k)!=q}finally{k.display.shift=re,k.state.suppressEdits=!1}return se}function ml(k,W,$){for(var re=0;re<k.state.keyMaps.length;re++){var se=sl(W,k.state.keyMaps[re],$,k);if(se)return se}return k.options.extraKeys&&sl(W,k.options.extraKeys,$,k)||sl(W,k.options.keyMap,$,k)}var Wl=new V;function as(k,W,$,re){var se=k.state.keySeq;if(se){if(Yl(W))return"handled";if(/\'$/.test(W)?k.state.keySeq=null:Wl.set(50,function(){k.state.keySeq==se&&(k.state.keySeq=null,k.display.input.reset())}),uo(k,se+" "+W,$,re))return!0}return uo(k,W,$,re)}function uo(k,W,$,re){var se=ml(k,W,re);return se=="multi"&&(k.state.keySeq=W),se=="handled"&&Qi(k,"keyHandled",k,W,$),(se=="handled"||se=="multi")&&(Be($),$n(k)),!!se}function Do(k,W){var $=wu(W,!0);return $?W.shiftKey&&!k.state.keySeq?as(k,"Shift-"+$,W,function(re){return pl(k,re,!0)})||as(k,$,W,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return pl(k,re)}):as(k,$,W,function(re){return pl(k,re)}):!1}function Xo(k,W,$){return as(k,"'"+$+"'",W,function(re){return pl(k,re,!0)})}var Ls=null;function zl(k){var W=this;if(k.target&&k.target!=W.display.input.getField())return;if(W.curOp.focus=M(),Ot(W,k))return;h&&c<11&&k.keyCode==27&&(k.returnValue=!1);var $=k.keyCode;W.display.shift=$==16||k.shiftKey;var re=Do(W,k);n&&(Ls=re?$:null,!re&&$==88&&!gr&&(f?k.metaKey:k.ctrlKey)&&W.replaceSelection("",null,"cut")),C&&!f&&!re&&$==46&&k.shiftKey&&!k.ctrlKey&&document.execCommand&&document.execCommand("cut"),$==18&&!/\bCodeMirror-crosshair\b/.test(W.display.lineDiv.className)&&Rl(W)}function Rl(k){var W=k.display.lineDiv;B(W,"CodeMirror-crosshair");function $(re){(re.keyCode==18||!re.altKey)&&(S(W,"CodeMirror-crosshair"),Ge(document,"keyup",$),Ge(document,"mouseover",$))}Ie(document,"keyup",$),Ie(document,"mouseover",$)}function ll(k){k.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,k)}function Tl(k){var W=this;if(k.target&&k.target!=W.display.input.getField())return;if(di(W.display,k)||Ot(W,k)||k.ctrlKey&&!k.altKey||f&&k.metaKey)return;var $=k.keyCode,re=k.charCode;if(n&&$==Ls){Ls=null,Be(k);return}if(n&&(!k.which||k.which<10)&&Do(W,k))return;var se=String.fromCharCode(re==null?$:re);if(se=="\b")return;if(Xo(W,k,se))return;W.display.input.onKeyPress(k)}var Ml=400,Jl=function(W,$,re){this.time=W,this.pos=$,this.button=re};Jl.prototype.compare=function(k,W,$){return this.time+Ml>k&&nt(W,this.pos)==0&&$==this.button};var Ys,tu;function Su(k,W){var $=+new Date;return tu&&tu.compare($,k,W)?(Ys=tu=null,"triple"):Ys&&Ys.compare($,k,W)?(tu=new Jl($,k,W),Ys=null,"double"):(Ys=new Jl($,k,W),tu=null,"single")}function pu(k){var W=this,$=W.display;if(Ot(W,k)||$.activeTouch&&$.input.supportsTouch())return;if($.input.ensurePolled(),$.shift=k.shiftKey,di($,k)){i||($.scroller.draggable=!1,setTimeout(function(){return $.scroller.draggable=!0},100));return}if(ul(W,k))return;var re=Ga(W,k),se=oe(k),ke=re?Su(re,se):"single";if(window.focus(),se==1&&W.state.selectingText&&W.state.selectingText(k),re&&Du(W,se,re,ke,k))return;se==1?re?ls(W,re,ke,k):Re(k)==$.scroller&&Be(k):se==2?(re&&ps(W.doc,re),setTimeout(function(){return $.input.focus()},20)):se==3&&(x?W.display.input.onContextMenu(k):Gn(W))}function Du(k,W,$,re,se){var ke="Click";return re=="double"?ke="Double"+ke:re=="triple"&&(ke="Triple"+ke),ke=(W==1?"Left":W==2?"Middle":"Right")+ke,as(k,_u(ke,se),se,function(ft){if(typeof ft=="string"&&(ft=eu[ft]),!ft)return!1;var Kt=!1;try{k.isReadOnly()&&(k.state.suppressEdits=!0),Kt=ft(k,$)!=q}finally{k.state.suppressEdits=!1}return Kt})}function Hu(k,W,$){var re=k.getOption("configureMouse"),se=re?re(k,W,$):{};if(se.unit==null){var ke=p?$.shiftKey&&$.metaKey:$.altKey;se.unit=ke?"rectangle":W=="single"?"char":W=="double"?"word":"line"}return(se.extend==null||k.doc.extend)&&(se.extend=k.doc.extend||$.shiftKey),se.addNew==null&&(se.addNew=f?$.metaKey:$.ctrlKey),se.moveOnDrag==null&&(se.moveOnDrag=!(f?$.altKey:$.ctrlKey)),se}function ls(k,W,$,re){h?setTimeout(F(qn,k),0):k.curOp.focus=M();var se=Hu(k,$,re),ke=k.doc.sel,ft;k.options.dragDrop&&yt&&!k.isReadOnly()&&$=="single"&&(ft=ke.contains(W))>-1&&(nt((ft=ke.ranges[ft]).from(),W)<0||W.xRel>0)&&(nt(ft.to(),W)>0||W.xRel<0)?Zo(k,re,W,se):Cs(k,re,W,se)}function Zo(k,W,$,re){var se=k.display,ke=!1,ft=Ba(k,function(ir){i&&(se.scroller.draggable=!1),k.state.draggingText=!1,Ge(se.wrapper.ownerDocument,"mouseup",ft),Ge(se.wrapper.ownerDocument,"mousemove",Kt),Ge(se.scroller,"dragstart",qt),Ge(se.scroller,"drop",ft),ke||(Be(ir),re.addNew||ps(k.doc,$,null,null,re.extend),i&&!e||h&&c==9?setTimeout(function(){se.wrapper.ownerDocument.body.focus({preventScroll:!0}),se.input.focus()},20):se.input.focus())}),Kt=function(bn){ke=ke||Math.abs(W.clientX-bn.clientX)+Math.abs(W.clientY-bn.clientY)>=10},qt=function(){return ke=!0};i&&(se.scroller.draggable=!0),k.state.draggingText=ft,ft.copy=!re.moveOnDrag,se.scroller.dragDrop&&se.scroller.dragDrop(),Ie(se.wrapper.ownerDocument,"mouseup",ft),Ie(se.wrapper.ownerDocument,"mousemove",Kt),Ie(se.scroller,"dragstart",qt),Ie(se.scroller,"drop",ft),Gn(k),setTimeout(function(){return se.input.focus()},20)}function ds(k,W,$){if($=="char")return new ae(W,W);if($=="word")return k.findWordAt(W);if($=="line")return new ae(Mt(W.line,0),At(k.doc,Mt(W.line+1,0)));var re=$(k,W);return new ae(re.from,re.to)}function Cs(k,W,$,re){var se=k.display,ke=k.doc;Be(W);var ft,Kt,qt=ke.sel,ir=qt.ranges;if(re.addNew&&!re.extend?(Kt=ke.sel.contains($),Kt>-1?ft=ir[Kt]:ft=new ae($,$)):(ft=ke.sel.primary(),Kt=ke.sel.primIndex),re.unit=="rectangle")re.addNew||(ft=new ae($,$)),$=Ga(k,W,!0,!0),Kt=-1;else{var bn=ds(k,$,re.unit);re.extend?ft=gs(ft,bn.anchor,bn.head,re.extend):ft=bn}re.addNew?Kt==-1?(Kt=ir.length,ws(ke,de(k,ir.concat([ft]),Kt),{scroll:!1,origin:"*mouse"})):ir.length>1&&ir[Kt].empty()&&re.unit=="char"&&!re.extend?(ws(ke,de(k,ir.slice(0,Kt).concat(ir.slice(Kt+1)),0),{scroll:!1,origin:"*mouse"}),qt=ke.sel):Es(ke,Kt,ft,ie):(Kt=0,ws(ke,new ot([ft],0),ie),qt=ke.sel);var Bn=$;function ci(Za){if(nt(Bn,Za)==0)return;if(Bn=Za,re.unit=="rectangle"){for(var mo=[],Vo=k.options.tabSize,Fo=U(Ce(ke,$.line).text,$.ch,Vo),Ta=U(Ce(ke,Za.line).text,Za.ch,Vo),fs=Math.min(Fo,Ta),ks=Math.max(Fo,Ta),hs=Math.min($.line,Za.line),cl=Math.min(k.lastLine(),Math.max($.line,Za.line));hs<=cl;hs++){var cs=Ce(ke,hs).text,us=Ee(cs,fs,Vo);fs==ks?mo.push(new ae(Mt(hs,us),Mt(hs,us))):cs.length>us&&mo.push(new ae(Mt(hs,us),Mt(hs,Ee(cs,ks,Vo))))}mo.length||mo.push(new ae($,$)),ws(ke,de(k,qt.ranges.slice(0,Kt).concat(mo),Kt),{origin:"*mouse",scroll:!1}),k.scrollIntoView(Za)}else{var Cl=ft,dl=ds(k,Za,re.unit),Qs=Cl.anchor,Js;nt(dl.anchor,Qs)>0?(Js=dl.head,Qs=St(Cl.from(),dl.anchor)):(Js=dl.anchor,Qs=Dt(Cl.to(),dl.head));var Bs=qt.ranges.slice(0);Bs[Kt]=js(k,new ae(At(ke,Qs),Js)),ws(ke,de(k,Bs,Kt),ie)}}var fi=se.wrapper.getBoundingClientRect(),Ji=0;function ba(Za){var mo=++Ji,Vo=Ga(k,Za,!0,re.unit=="rectangle");if(!Vo)return;if(nt(Vo,Bn)!=0){k.curOp.focus=M(),ci(Vo);var Fo=Xi(se,ke);(Vo.line>=Fo.to||Vo.line<Fo.from)&&setTimeout(Ba(k,function(){Ji==mo&&ba(Za)}),150)}else{var Ta=Za.clientY<fi.top?-20:Za.clientY>fi.bottom?20:0;Ta&&setTimeout(Ba(k,function(){if(Ji!=mo)return;se.scroller.scrollTop+=Ta,ba(Za)}),50)}}function Fa(Za){k.state.selectingText=!1,Ji=Infinity,Za&&(Be(Za),se.input.focus()),Ge(se.wrapper.ownerDocument,"mousemove",Da),Ge(se.wrapper.ownerDocument,"mouseup",Ia),ke.history.lastSelOrigin=null}var Da=Ba(k,function(Za){Za.buttons===0||!oe(Za)?Fa(Za):ba(Za)}),Ia=Ba(k,Fa);k.state.selectingText=Ia,Ie(se.wrapper.ownerDocument,"mousemove",Da),Ie(se.wrapper.ownerDocument,"mouseup",Ia)}function js(k,W){var $=W.anchor,re=W.head,se=Ce(k.doc,$.line);if(nt($,re)==0&&$.sticky==re.sticky)return W;var ke=gt(se);if(!ke)return W;var ft=_e(ke,$.ch,$.sticky),Kt=ke[ft];if(Kt.from!=$.ch&&Kt.to!=$.ch)return W;var qt=ft+(Kt.from==$.ch==(Kt.level!=1)?0:1);if(qt==0||qt==ke.length)return W;var ir;if(re.line!=$.line)ir=(re.line-$.line)*(k.doc.direction=="ltr"?1:-1)>0;else{var bn=_e(ke,re.ch,re.sticky),Bn=bn-ft||(re.ch-$.ch)*(Kt.level==1?-1:1);bn==qt-1||bn==qt?ir=Bn<0:ir=Bn>0}var ci=ke[qt+(ir?-1:0)],fi=ir==(ci.level==1),Ji=fi?ci.from:ci.to,ba=fi?"after":"before";return $.ch==Ji&&$.sticky==ba?W:new ae(new Mt($.line,Ji,ba),re)}function vs(k,W,$,re){var se,ke;if(W.touches)se=W.touches[0].clientX,ke=W.touches[0].clientY;else try{se=W.clientX,ke=W.clientY}catch(ci){return!1}if(se>=Math.floor(k.display.gutters.getBoundingClientRect().right))return!1;re&&Be(W);var ft=k.display,Kt=ft.lineDiv.getBoundingClientRect();if(ke>Kt.bottom||!Tt(k,$))return J(W);ke-=Kt.top-ft.viewOffset;for(var qt=0;qt<k.display.gutterSpecs.length;++qt){var ir=ft.gutters.childNodes[qt];if(ir&&ir.getBoundingClientRect().right>=se){var bn=vr(k.doc,ke),Bn=k.display.gutterSpecs[qt];return vt(k,$,k,bn,Bn.className,W),J(W)}}}function ul(k,W){return vs(k,W,"gutterClick",!0)}function gl(k,W){if(di(k.display,W)||vl(k,W))return;if(Ot(k,W,"contextmenu"))return;x||k.display.input.onContextMenu(W)}function vl(k,W){return Tt(k,"gutterContextMenu")?vs(k,W,"gutterContextMenu",!1):!1}function ru(k){k.display.wrapper.className=k.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+k.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Lo(k)}var lu={toString:function(){return"CodeMirror.Init"}},mu={},pe={};function We(k){var W=k.optionHandlers;function $(re,se,ke,ft){k.defaults[re]=se,ke&&(W[re]=ft?function(Kt,qt,ir){ir!=lu&&ke(Kt,qt,ir)}:ke)}k.defineOption=$,k.Init=lu,$("value","",function(re,se){return re.setValue(se)},!0),$("mode",null,function(re,se){re.doc.modeOption=se,un(re)},!0),$("indentUnit",2,un,!0),$("indentWithTabs",!1),$("smartIndent",!0),$("tabSize",4,function(re){zn(re),Lo(re),ia(re)},!0),$("lineSeparator",null,function(re,se){if(re.doc.lineSep=se,!se)return;var ke=[],ft=re.doc.first;re.doc.iter(function(qt){for(var ir=0;;){var bn=qt.text.indexOf(se,ir);if(bn==-1)break;ir=bn+se.length,ke.push(Mt(ft,bn))}ft++});for(var Kt=ke.length-1;Kt>=0;Kt--)el(re.doc,se,ke[Kt],Mt(ke[Kt].line,ke[Kt].ch+se.length))}),$("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,se,ke){re.state.specialChars=new RegExp(se.source+(se.test(" ")?"":"| "),"g"),ke!=lu&&re.refresh()}),$("specialCharPlaceholder",Ei,function(re){return re.refresh()},!0),$("electricChars",!0),$("inputStyle",u?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),$("spellcheck",!1,function(re,se){return re.getInputField().spellcheck=se},!0),$("autocorrect",!1,function(re,se){return re.getInputField().autocorrect=se},!0),$("autocapitalize",!1,function(re,se){return re.getInputField().autocapitalize=se},!0),$("rtlMoveVisually",!g),$("wholeLineUpdateBefore",!0),$("theme","default",function(re){ru(re),bo(re)},!0),$("keyMap","default",function(re,se,ke){var ft=Bl(se),Kt=ke!=lu&&Bl(ke);Kt&&Kt.detach&&Kt.detach(re,ft),ft.attach&&ft.attach(re,Kt||null)}),$("extraKeys",null),$("configureMouse",null),$("lineWrapping",!1,Yt,!0),$("gutters",[],function(re,se){re.display.gutterSpecs=Ka(se,re.options.lineNumbers),bo(re)},!0),$("fixedGutter",!0,function(re,se){re.display.gutters.style.left=se?Qa(re.display)+"px":"0",re.refresh()},!0),$("coverGutterNextToScrollbar",!1,function(re){return Qn(re)},!0),$("scrollbarStyle","native",function(re){Ea(re),Qn(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),$("lineNumbers",!1,function(re,se){re.display.gutterSpecs=Ka(re.options.gutters,se),bo(re)},!0),$("firstLineNumber",1,bo,!0),$("lineNumberFormatter",function(re){return re},bo,!0),$("showCursorWhenSelecting",!1,Vr,!0),$("resetSelectionOnContextMenu",!0),$("lineWiseCopyCut",!0),$("pasteLinesPerSelection",!0),$("selectionsMayTouch",!1),$("readOnly",!1,function(re,se){se=="nocursor"&&(ti(re),re.display.input.blur()),re.display.input.readOnlyChanged(se)}),$("screenReaderLabel",null,function(re,se){se=se===""?null:se,re.display.input.screenReaderLabelChanged(se)}),$("disableInput",!1,function(re,se){se||re.display.input.reset()},!0),$("dragDrop",!0,ht),$("allowDropFileTypes",null),$("cursorBlinkRate",530),$("cursorScrollMargin",0),$("cursorHeight",1,Vr,!0),$("singleCursorHeightPerLine",!0,Vr,!0),$("workTime",100),$("workDelay",100),$("flattenSpans",!0,zn,!0),$("addModeClass",!1,zn,!0),$("pollInterval",100),$("undoDepth",200,function(re,se){return re.doc.history.undoDepth=se}),$("historyEventDelay",1250),$("viewportMargin",10,function(re){return re.refresh()},!0),$("maxHighlightLength",1e4,zn,!0),$("moveInputWithCursor",!0,function(re,se){se||re.display.input.resetPosition()}),$("tabindex",null,function(re,se){return re.display.input.getField().tabIndex=se||""}),$("autofocus",null),$("direction","ltr",function(re,se){return re.doc.setDirection(se)},!0),$("phrases",null)}function ht(k,W,$){var re=$&&$!=lu;if(!W!=!re){var se=k.display.dragFunctions,ke=W?Ie:Ge;ke(k.display.scroller,"dragstart",se.start),ke(k.display.scroller,"dragenter",se.enter),ke(k.display.scroller,"dragover",se.over),ke(k.display.scroller,"dragleave",se.leave),ke(k.display.scroller,"drop",se.drop)}}function Yt(k){k.options.lineWrapping?(B(k.display.wrapper,"CodeMirror-wrap"),k.display.sizer.style.minWidth="",k.display.sizerWidth=null):(S(k.display.wrapper,"CodeMirror-wrap"),Yn(k)),Ja(k),ia(k),Lo(k),setTimeout(function(){return Qn(k)},100)}function Er(k,W){var $=this;if(!(this instanceof Er))return new Er(k,W);this.options=W=W?K(W):{},K(mu,W,!1);var re=W.value;typeof re=="string"?re=new Xs(re,W.mode,null,W.lineSeparator,W.direction):W.mode&&(re.modeOption=W.mode),this.doc=re;var se=new Er.inputStyles[W.inputStyle](this),ke=this.display=new Eo(k,re,se,W);ke.wrapper.CodeMirror=this,ru(this),W.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ea(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},W.autofocus&&!u&&ke.input.focus(),h&&c<11&&setTimeout(function(){return $.display.input.reset(!0)},20),Xr(this),Ou(),Ca(this),this.curOp.forceUpdate=!0,Di(this,re),W.autofocus&&!u||this.hasFocus()?setTimeout(function(){$.hasFocus()&&!$.state.focused&&mi($)},20):ti(this);for(var ft in pe)pe.hasOwnProperty(ft)&&pe[ft](this,W[ft],lu);Oo(this),W.finishInit&&W.finishInit(this);for(var Kt=0;Kt<De.length;++Kt)De[Kt](this);fa(this),i&&W.lineWrapping&&getComputedStyle(ke.lineDiv).textRendering=="optimizelegibility"&&(ke.lineDiv.style.textRendering="auto")}Er.defaults=mu,Er.optionHandlers=pe;function Xr(k){var W=k.display;Ie(W.scroller,"mousedown",Ba(k,pu)),h&&c<11?Ie(W.scroller,"dblclick",Ba(k,function(qt){if(Ot(k,qt))return;var ir=Ga(k,qt);if(!ir||ul(k,qt)||di(k.display,qt))return;Be(qt);var bn=k.findWordAt(ir);ps(k.doc,bn.anchor,bn.head)})):Ie(W.scroller,"dblclick",function(qt){return Ot(k,qt)||Be(qt)}),Ie(W.scroller,"contextmenu",function(qt){return gl(k,qt)}),Ie(W.input.getField(),"contextmenu",function(qt){W.scroller.contains(qt.target)||gl(k,qt)});var $,re={end:0};function se(){W.activeTouch&&($=setTimeout(function(){return W.activeTouch=null},1e3),re=W.activeTouch,re.end=+new Date)}function ke(qt){if(qt.touches.length!=1)return!1;var ir=qt.touches[0];return ir.radiusX<=1&&ir.radiusY<=1}function ft(qt,ir){if(ir.left==null)return!0;var bn=ir.left-qt.left,Bn=ir.top-qt.top;return bn*bn+Bn*Bn>20*20}Ie(W.scroller,"touchstart",function(qt){if(!Ot(k,qt)&&!ke(qt)&&!ul(k,qt)){W.input.ensurePolled(),clearTimeout($);var ir=+new Date;W.activeTouch={start:ir,moved:!1,prev:ir-re.end<=300?re:null},qt.touches.length==1&&(W.activeTouch.left=qt.touches[0].pageX,W.activeTouch.top=qt.touches[0].pageY)}}),Ie(W.scroller,"touchmove",function(){W.activeTouch&&(W.activeTouch.moved=!0)}),Ie(W.scroller,"touchend",function(qt){var ir=W.activeTouch;if(ir&&!di(W,qt)&&ir.left!=null&&!ir.moved&&new Date-ir.start<300){var bn=k.coordsChar(W.activeTouch,"page"),Bn;!ir.prev||ft(ir,ir.prev)?Bn=new ae(bn,bn):!ir.prev.prev||ft(ir,ir.prev.prev)?Bn=k.findWordAt(bn):Bn=new ae(Mt(bn.line,0),At(k.doc,Mt(bn.line+1,0))),k.setSelection(Bn.anchor,Bn.head),k.focus(),Be(qt)}se()}),Ie(W.scroller,"touchcancel",se),Ie(W.scroller,"scroll",function(){W.scroller.clientHeight&&(nr(k,W.scroller.scrollTop),En(k,W.scroller.scrollLeft,!0),vt(k,"scroll",k))}),Ie(W.scroller,"mousewheel",function(qt){return hi(k,qt)}),Ie(W.scroller,"DOMMouseScroll",function(qt){return hi(k,qt)}),Ie(W.wrapper,"scroll",function(){return W.wrapper.scrollTop=W.wrapper.scrollLeft=0}),W.dragFunctions={enter:function(ir){Ot(k,ir)||je(ir)},over:function(ir){Ot(k,ir)||(yu(k,ir),je(ir))},start:function(ir){return ql(k,ir)},drop:Ba(k,fl),leave:function(ir){Ot(k,ir)||du(k)}};var Kt=W.input.getField();Ie(Kt,"keyup",function(qt){return ll.call(k,qt)}),Ie(Kt,"keydown",Ba(k,zl)),Ie(Kt,"keypress",Ba(k,Tl)),Ie(Kt,"focus",function(qt){return mi(k,qt)}),Ie(Kt,"blur",function(qt){return ti(k,qt)})}var De=[];Er.defineInitHook=function(k){return De.push(k)};function ee(k,W,$,re){var se=k.doc,ke;$==null&&($="add"),$=="smart"&&(se.mode.indent?ke=jn(k,W).state:$="prev");var ft=k.options.tabSize,Kt=Ce(se,W),qt=U(Kt.text,null,ft);Kt.stateAfter&&(Kt.stateAfter=null);var ir=Kt.text.match(/^\s*/)[0],bn;if(!re&&!/\S/.test(Kt.text))bn=0,$="not";else if($=="smart"&&(bn=se.mode.indent(ke,Kt.text.slice(ir.length),Kt.text),bn==q||bn>150)){if(!re)return;$="prev"}$=="prev"?W>se.first?bn=U(Ce(se,W-1).text,null,ft):bn=0:$=="add"?bn=qt+k.options.indentUnit:$=="subtract"?bn=qt-k.options.indentUnit:typeof $=="number"&&(bn=qt+$),bn=Math.max(0,bn);var Bn="",ci=0;if(k.options.indentWithTabs)for(var fi=Math.floor(bn/ft);fi;--fi)ci+=ft,Bn+=" ";if(ci<bn&&(Bn+=He(bn-ci)),Bn!=ir)return el(se,Bn,Mt(W,0),Mt(W,ir.length),"+input"),Kt.stateAfter=null,!0;for(var Ji=0;Ji<se.sel.ranges.length;Ji++){var ba=se.sel.ranges[Ji];if(ba.head.line==W&&ba.head.ch<ir.length){var Fa=Mt(W,ir.length);Es(se,Ji,new ae(Fa,Fa));break}}}var Ae=null;function Ve(k){Ae=k}function at(k,W,$,re,se){var ke=k.doc;k.display.shift=!1,re||(re=ke.sel);var ft=+new Date-200,Kt=se=="paste"||k.state.pasteIncoming>ft,qt=cn(W),ir=null;if(Kt&&re.ranges.length>1)if(Ae&&Ae.text.join(`
`)==W){if(re.ranges.length%Ae.text.length==0){ir=[];for(var bn=0;bn<Ae.text.length;bn++)ir.push(ke.splitLines(Ae.text[bn]))}}else qt.length==re.ranges.length&&k.options.pasteLinesPerSelection&&(ir=Fe(qt,function(Da){return[Da]}));for(var Bn=k.curOp.updateInput,ci=re.ranges.length-1;ci>=0;ci--){var fi=re.ranges[ci],Ji=fi.from(),ba=fi.to();fi.empty()&&($&&$>0?Ji=Mt(Ji.line,Ji.ch-$):k.state.overwrite&&!Kt?ba=Mt(ba.line,Math.min(Ce(ke,ba.line).text.length,ba.ch+ge(qt).length)):Kt&&Ae&&Ae.lineWise&&Ae.text.join(`
`)==qt.join(`
`)&&(Ji=ba=Mt(Ji.line,0)));var Fa={from:Ji,to:ba,text:ir?ir[ci%ir.length]:qt,origin:se||(Kt?"paste":k.state.cutIncoming>ft?"cut":"+input")};Ms(k.doc,Fa),Qi(k,"inputRead",k,Fa)}W&&!Kt&&Wt(k,W),xt(k),k.curOp.updateInput<2&&(k.curOp.updateInput=Bn),k.curOp.typing=!0,k.state.pasteIncoming=k.state.cutIncoming=-1}function It(k,W){var $=k.clipboardData&&k.clipboardData.getData("Text");if($)return k.preventDefault(),!W.isReadOnly()&&!W.options.disableInput&&ka(W,function(){return at(W,$,0,null,"paste")}),!0}function Wt(k,W){if(!k.options.electricChars||!k.options.smartIndent)return;for(var $=k.doc.sel,re=$.ranges.length-1;re>=0;re--){var se=$.ranges[re];if(se.head.ch>100||re&&$.ranges[re-1].head.line==se.head.line)continue;var ke=k.getModeAt(se.head),ft=!1;if(ke.electricChars){for(var Kt=0;Kt<ke.electricChars.length;Kt++)if(W.indexOf(ke.electricChars.charAt(Kt))>-1){ft=ee(k,se.head.line,"smart");break}}else ke.electricInput&&(ke.electricInput.test(Ce(k.doc,se.head.line).text.slice(0,se.head.ch))&&(ft=ee(k,se.head.line,"smart")));ft&&Qi(k,"electricInput",k,se.head.line)}}function Pt(k){for(var W=[],$=[],re=0;re<k.doc.sel.ranges.length;re++){var se=k.doc.sel.ranges[re].head.line,ke={anchor:Mt(se,0),head:Mt(se+1,0)};$.push(ke),W.push(k.getRange(ke.anchor,ke.head))}return{text:W,ranges:$}}function _r(k,W,$,re){k.setAttribute("autocorrect",$?"":"off"),k.setAttribute("autocapitalize",re?"":"off"),k.setAttribute("spellcheck",!!W)}function Zr(){var k=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),W=I("div",[k],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return i?k.style.width="1000px":k.setAttribute("wrap","off"),a&&(k.style.border="1px solid black"),_r(k),W}function Tr(k){var W=k.optionHandlers,$=k.helpers={};k.prototype={constructor:k,focus:function(){window.focus(),this.display.input.focus()},setOption:function(se,ke){var ft=this.options,Kt=ft[se];if(ft[se]==ke&&se!="mode")return;ft[se]=ke,W.hasOwnProperty(se)&&Ba(this,W[se])(this,ke,Kt),vt(this,"optionChange",this,se)},getOption:function(se){return this.options[se]},getDoc:function(){return this.doc},addKeyMap:function(se,ke){this.state.keyMaps[ke?"push":"unshift"](Bl(se))},removeKeyMap:function(se){for(var ke=this.state.keyMaps,ft=0;ft<ke.length;++ft)if(ke[ft]==se||ke[ft].name==se)return ke.splice(ft,1),!0},addOverlay:oo(function(re,se){var ke=re.token?re:k.getMode(this.options,re);if(ke.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:ke,modeSpec:re,opaque:se&&se.opaque,priority:se&&se.priority||0},function(ft){return ft.priority}),this.state.modeGen++,ia(this)}),removeOverlay:oo(function(re){for(var se=this.state.overlays,ke=0;ke<se.length;++ke){var ft=se[ke].modeSpec;if(ft==re||typeof re=="string"&&ft.name==re){se.splice(ke,1),this.state.modeGen++,ia(this);return}}}),indentLine:oo(function(re,se,ke){typeof se!="string"&&typeof se!="number"&&(se==null?se=this.options.smartIndent?"smart":"prev":se=se?"add":"subtract"),kr(this.doc,re)&&ee(this,re,se,ke)}),indentSelection:oo(function(re){for(var se=this.doc.sel.ranges,ke=-1,ft=0;ft<se.length;ft++){var Kt=se[ft];if(Kt.empty())Kt.head.line>ke&&(ee(this,Kt.head.line,re,!0),ke=Kt.head.line,ft==this.doc.sel.primIndex&&xt(this));else{var qt=Kt.from(),ir=Kt.to(),bn=Math.max(ke,qt.line);ke=Math.min(this.lastLine(),ir.line-(ir.ch?0:1))+1;for(var Bn=bn;Bn<ke;++Bn)ee(this,Bn,re);var ci=this.doc.sel.ranges;qt.ch==0&&se.length==ci.length&&ci[ft].from().ch>0&&Es(this.doc,ft,new ae(qt,ci[ft].to()),ce)}}}),getTokenAt:function(se,ke){return Gi(this,se,ke)},getLineTokens:function(se,ke){return Gi(this,Mt(se),ke,!0)},getTokenTypeAt:function(se){se=At(this.doc,se);var ke=rn(this,Ce(this.doc,se.line)),ft=0,Kt=(ke.length-1)/2,qt=se.ch,ir;if(qt==0)ir=ke[2];else for(;;){var bn=ft+Kt>>1;if((bn?ke[bn*2-1]:0)>=qt)Kt=bn;else if(ke[bn*2+1]<qt)ft=bn+1;else{ir=ke[bn*2+2];break}}var Bn=ir?ir.indexOf("overlay "):-1;return Bn<0?ir:Bn==0?null:ir.slice(0,Bn-1)},getModeAt:function(se){var ke=this.doc.mode;return ke.innerMode?k.innerMode(ke,this.getTokenAt(se).state).mode:ke},getHelper:function(se,ke){return this.getHelpers(se,ke)[0]},getHelpers:function(se,ke){var ft=[];if(!$.hasOwnProperty(ke))return ft;var Kt=$[ke],qt=this.getModeAt(se);if(typeof qt[ke]=="string")Kt[qt[ke]]&&ft.push(Kt[qt[ke]]);else if(qt[ke])for(var ir=0;ir<qt[ke].length;ir++){var bn=Kt[qt[ke][ir]];bn&&ft.push(bn)}else qt.helperType&&Kt[qt.helperType]?ft.push(Kt[qt.helperType]):Kt[qt.name]&&ft.push(Kt[qt.name]);for(var Bn=0;Bn<Kt._global.length;Bn++){var ci=Kt._global[Bn];ci.pred(qt,this)&&z(ft,ci.val)==-1&&ft.push(ci.val)}return ft},getStateAfter:function(se,ke){var ft=this.doc;return se=jt(ft,se==null?ft.first+ft.size-1:se),jn(this,se+1,ke).state},cursorCoords:function(se,ke){var ft,Kt=this.doc.sel.primary();return se==null?ft=Kt.head:typeof se=="object"?ft=At(this.doc,se):ft=se?Kt.from():Kt.to(),qr(this,ft,ke||"page")},charCoords:function(se,ke){return Pn(this,At(this.doc,se),ke||"page")},coordsChar:function(se,ke){return se=An(this,se,ke||"page"),lr(this,se.left,se.top)},lineAtHeight:function(se,ke){return se=An(this,{top:se,left:0},ke||"page").top,vr(this.doc,se+this.display.viewOffset)},heightAtLine:function(se,ke,ft){var Kt=!1,qt;if(typeof se=="number"){var ir=this.doc.first+this.doc.size-1;se<this.doc.first?se=this.doc.first:se>ir&&(se=ir,Kt=!0),qt=Ce(this.doc,se)}else qt=se;return Pr(this,qt,{top:0,left:0},ke||"page",ft||Kt).top+(Kt?this.doc.height-en(qt):0)},defaultTextHeight:function(){return Bi(this.display)},defaultCharWidth:function(){return ea(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(se,ke,ft,Kt,qt){var ir=this.display;se=qr(this,At(this.doc,se));var bn=se.bottom,Bn=se.left;if(ke.style.position="absolute",ke.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ke),ir.sizer.appendChild(ke),Kt=="over")bn=se.top;else if(Kt=="above"||Kt=="near"){var ci=Math.max(ir.wrapper.clientHeight,this.doc.height),fi=Math.max(ir.sizer.clientWidth,ir.lineSpace.clientWidth);(Kt=="above"||se.bottom+ke.offsetHeight>ci)&&se.top>ke.offsetHeight?bn=se.top-ke.offsetHeight:se.bottom+ke.offsetHeight<=ci&&(bn=se.bottom),Bn+ke.offsetWidth>fi&&(Bn=fi-ke.offsetWidth)}ke.style.top=bn+"px",ke.style.left=ke.style.right="",qt=="right"?(Bn=ir.sizer.clientWidth-ke.offsetWidth,ke.style.right="0px"):(qt=="left"?Bn=0:qt=="middle"&&(Bn=(ir.sizer.clientWidth-ke.offsetWidth)/2),ke.style.left=Bn+"px"),ft&&tr(this,{left:Bn,top:bn,right:Bn+ke.offsetWidth,bottom:bn+ke.offsetHeight})},triggerOnKeyDown:oo(zl),triggerOnKeyPress:oo(Tl),triggerOnKeyUp:ll,triggerOnMouseDown:oo(pu),execCommand:function(se){if(eu.hasOwnProperty(se))return eu[se].call(null,this)},triggerElectric:oo(function(re){Wt(this,re)}),findPosH:function(se,ke,ft,Kt){var qt=1;ke<0&&(qt=-1,ke=-ke);for(var ir=At(this.doc,se),bn=0;bn<ke&&!(ir=Ar(this.doc,ir,qt,ft,Kt),ir.hitSide);++bn);return ir},moveH:oo(function(re,se){var ke=this;this.extendSelectionsBy(function(ft){return ke.display.shift||ke.doc.extend||ft.empty()?Ar(ke.doc,ft.head,re,se,ke.options.rtlMoveVisually):re<0?ft.from():ft.to()},ve)}),deleteH:oo(function(re,se){var ke=this.doc.sel,ft=this.doc;ke.somethingSelected()?ft.replaceSelection("",null,"+delete"):El(this,function(Kt){var qt=Ar(ft,Kt.head,re,se,!1);return re<0?{from:qt,to:Kt.head}:{from:Kt.head,to:qt}})}),findPosV:function(se,ke,ft,Kt){var qt=1,ir=Kt;ke<0&&(qt=-1,ke=-ke);for(var bn=At(this.doc,se),Bn=0;Bn<ke;++Bn){var ci=qr(this,bn,"div");if(ir==null?ir=ci.left:ci.left=ir,bn=Hr(this,ci,qt,ft),bn.hitSide)break}return bn},moveV:oo(function(re,se){var ke=this,ft=this.doc,Kt=[],qt=!this.display.shift&&!ft.extend&&ft.sel.somethingSelected();if(ft.extendSelectionsBy(function(bn){if(qt)return re<0?bn.from():bn.to();var Bn=qr(ke,bn.head,"div");bn.goalColumn!=null&&(Bn.left=bn.goalColumn),Kt.push(Bn.left);var ci=Hr(ke,Bn,re,se);return se=="page"&&bn==ft.sel.primary()&&yr(ke,Pn(ke,ci,"div").top-Bn.top),ci},ve),Kt.length)for(var ir=0;ir<ft.sel.ranges.length;ir++)ft.sel.ranges[ir].goalColumn=Kt[ir]}),findWordAt:function(se){var ke=this.doc,ft=Ce(ke,se.line).text,Kt=se.ch,qt=se.ch;if(ft){var ir=this.getHelper(se,"wordChars");(se.sticky=="before"||qt==ft.length)&&Kt?--Kt:++qt;for(var bn=ft.charAt(Kt),Bn=G(bn,ir)?function(ci){return G(ci,ir)}:/\s/.test(bn)?function(ci){return/\s/.test(ci)}:function(ci){return!/\s/.test(ci)&&!G(ci)};Kt>0&&Bn(ft.charAt(Kt-1));)--Kt;for(;qt<ft.length&&Bn(ft.charAt(qt));)++qt}return new ae(Mt(se.line,Kt),Mt(se.line,qt))},toggleOverwrite:function(se){if(se!=null&&se==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),vt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==M()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:oo(function(re,se){Ut(this,re,se)}),getScrollInfo:function(){var se=this.display.scroller;return{left:se.scrollLeft,top:se.scrollTop,height:se.scrollHeight-_i(this)-this.display.barHeight,width:se.scrollWidth-_i(this)-this.display.barWidth,clientHeight:na(this),clientWidth:da(this)}},scrollIntoView:oo(function(re,se){re==null?(re={from:this.doc.sel.primary().head,to:null},se==null&&(se=this.options.cursorScrollMargin)):typeof re=="number"?re={from:Mt(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=se||0,re.from.line!=null?ur(this,re):dr(this,re.from,re.to,re.margin)}),setSize:oo(function(re,se){var ke=this,ft=function(ir){return typeof ir=="number"||/^\d+$/.test(String(ir))?ir+"px":ir};re!=null&&(this.display.wrapper.style.width=ft(re)),se!=null&&(this.display.wrapper.style.height=ft(se)),this.options.lineWrapping&&eo(this);var Kt=this.display.viewFrom;this.doc.iter(Kt,this.display.viewTo,function(qt){if(qt.widgets){for(var ir=0;ir<qt.widgets.length;ir++)if(qt.widgets[ir].noHScroll){qe(ke,Kt,"widget");break}}++Kt}),this.curOp.forceUpdate=!0,vt(this,"refresh",this)}),operation:function(se){return ka(this,se)},startOperation:function(){return Ca(this)},endOperation:function(){return fa(this)},refresh:oo(function(){var re=this.display.cachedTextHeight;ia(this),this.curOp.forceUpdate=!0,Lo(this),Ut(this,this.doc.scrollLeft,this.doc.scrollTop),Uo(this.display),(re==null||Math.abs(re-Bi(this.display))>.5||this.options.lineWrapping)&&Ja(this),vt(this,"refresh",this)}),swapDoc:oo(function(re){var se=this.doc;return se.cm=null,this.state.selectingText&&this.state.selectingText(),Di(this,re),Lo(this),this.display.input.reset(),Ut(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,Qi(this,"swapDoc",this,se),se}),phrase:function(se){var ke=this.options.phrases;return ke&&Object.prototype.hasOwnProperty.call(ke,se)?ke[se]:se},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}},Rt(k),k.registerHelper=function(re,se,ke){$.hasOwnProperty(re)||($[re]=k[re]={_global:[]}),$[re][se]=ke},k.registerGlobalHelper=function(re,se,ke,ft){k.registerHelper(re,se,ft),$[re]._global.push({pred:ke,val:ft})}}function Ar(k,W,$,re,se){var ke=W,ft=$,Kt=Ce(k,W.line),qt=se&&k.direction=="rtl"?-$:$;function ir(){var Ia=W.line+qt;return Ia<k.first||Ia>=k.first+k.size?!1:(W=new Mt(Ia,W.ch,W.sticky),Kt=Ce(k,Ia))}function bn(Ia){var Za;if(re=="codepoint"){var mo=Kt.text.charCodeAt(W.ch+(re>0?0:-1));isNaN(mo)?Za=null:Za=new Mt(W.line,Math.max(0,Math.min(Kt.text.length,W.ch+$*(mo>=55296&&mo<56320?2:1))),-$)}else se?Za=ou(k.cm,Kt,W,$):Za=Iu(Kt,W,$);if(Za==null)if(!Ia&&ir())W=Lu(se,k.cm,Kt,W.line,qt);else return!1;else W=Za;return!0}if(re=="char"||re=="codepoint")bn();else if(re=="column")bn(!0);else if(re=="word"||re=="group")for(var Bn=null,ci=re=="group",fi=k.cm&&k.cm.getHelper(W,"wordChars"),Ji=!0;!($<0&&!bn(!Ji));Ji=!1){var ba=Kt.text.charAt(W.ch)||`
`,Fa=G(ba,fi)?"w":ci&&ba==`
`?"n":!ci||/\s/.test(ba)?null:"p";if(ci&&!Ji&&!Fa&&(Fa="s"),Bn&&Bn!=Fa){$<0&&($=1,bn(),W.sticky="after");break}if(Fa&&(Bn=Fa),$>0&&!bn(!Ji))break}var Da=Nl(k,W,ke,ft,!0);return st(ke,Da)&&(Da.hitSide=!0),Da}function Hr(k,W,$,re){var se=k.doc,ke=W.left,ft;if(re=="page"){var Kt=Math.min(k.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),qt=Math.max(Kt-.5*Bi(k.display),3);ft=($>0?W.bottom:W.top)+$*qt}else re=="line"&&(ft=$>0?W.bottom+3:W.top-3);for(var ir;!(ir=lr(k,ke,ft),!ir.outside);){if($<0?ft<=0:ft>=se.height){ir.hitSide=!0;break}ft+=$*5}return ir}var tn=function(W){this.cm=W,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tn.prototype.init=function(k){var W=this,$=this,re=$.cm,se=$.div=k.lineDiv;_r(se,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function ke(Kt){for(var qt=Kt.target;qt;qt=qt.parentNode){if(qt==se)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(qt.className))break}return!1}Ie(se,"paste",function(Kt){if(!ke(Kt)||Ot(re,Kt)||It(Kt,re))return;c<=11&&setTimeout(Ba(re,function(){return W.updateFromDOM()}),20)}),Ie(se,"compositionstart",function(Kt){W.composing={data:Kt.data,done:!1}}),Ie(se,"compositionupdate",function(Kt){W.composing||(W.composing={data:Kt.data,done:!1})}),Ie(se,"compositionend",function(Kt){W.composing&&(Kt.data!=W.composing.data&&W.readFromDOMSoon(),W.composing.done=!0)}),Ie(se,"touchstart",function(){return $.forceCompositionEnd()}),Ie(se,"input",function(){W.composing||W.readFromDOMSoon()});function ft(Kt){if(!ke(Kt)||Ot(re,Kt))return;if(re.somethingSelected())Ve({lineWise:!1,text:re.getSelections()}),Kt.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var qt=Pt(re);Ve({lineWise:!0,text:qt.text}),Kt.type=="cut"&&re.operation(function(){re.setSelections(qt.ranges,0,ce),re.replaceSelection("",null,"cut")})}else return;if(Kt.clipboardData){Kt.clipboardData.clearData();var ir=Ae.text.join(`
`);if(Kt.clipboardData.setData("Text",ir),Kt.clipboardData.getData("Text")==ir){Kt.preventDefault();return}}var bn=Zr(),Bn=bn.firstChild;re.display.lineSpace.insertBefore(bn,re.display.lineSpace.firstChild),Bn.value=Ae.text.join(`
`);var ci=document.activeElement;H(Bn),setTimeout(function(){re.display.lineSpace.removeChild(bn),ci.focus(),ci==se&&$.showPrimarySelection()},50)}Ie(se,"copy",ft),Ie(se,"cut",ft)},tn.prototype.screenReaderLabelChanged=function(k){k?this.div.setAttribute("aria-label",k):this.div.removeAttribute("aria-label")},tn.prototype.prepareSelection=function(){var k=br(this.cm,!1);return k.focus=document.activeElement==this.div,k},tn.prototype.showSelection=function(k,W){if(!k||!this.cm.display.view.length)return;(k.focus||W)&&this.showPrimarySelection(),this.showMultipleSelections(k)},tn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tn.prototype.showPrimarySelection=function(){var k=this.getSelection(),W=this.cm,$=W.doc.sel.primary(),re=$.from(),se=$.to();if(W.display.viewTo==W.display.viewFrom||re.line>=W.display.viewTo||se.line<W.display.viewFrom){k.removeAllRanges();return}var ke=Wi(W,k.anchorNode,k.anchorOffset),ft=Wi(W,k.focusNode,k.focusOffset);if(ke&&!ke.bad&&ft&&!ft.bad&&nt(St(ke,ft),re)==0&&nt(Dt(ke,ft),se)==0)return;var Kt=W.display.view,qt=re.line>=W.display.viewFrom&&_n(W,re)||{node:Kt[0].measure.map[2],offset:0},ir=se.line<W.display.viewTo&&_n(W,se);if(!ir){var bn=Kt[Kt.length-1].measure,Bn=bn.maps?bn.maps[bn.maps.length-1]:bn.map;ir={node:Bn[Bn.length-1],offset:Bn[Bn.length-2]-Bn[Bn.length-3]}}if(!qt||!ir){k.removeAllRanges();return}var ci=k.rangeCount&&k.getRangeAt(0),fi;try{fi=D(qt.node,qt.offset,ir.offset,ir.node)}catch(Ji){}fi&&(!C&&W.state.focused?(k.collapse(qt.node,qt.offset),fi.collapsed||(k.removeAllRanges(),k.addRange(fi))):(k.removeAllRanges(),k.addRange(fi)),ci&&k.anchorNode==null?k.addRange(ci):C&&this.startGracePeriod()),this.rememberSelection()},tn.prototype.startGracePeriod=function(){var k=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){k.gracePeriod=!1,k.selectionChanged()&&k.cm.operation(function(){return k.cm.curOp.selectionChanged=!0})},20)},tn.prototype.showMultipleSelections=function(k){_(this.cm.display.cursorDiv,k.cursors),_(this.cm.display.selectionDiv,k.selection)},tn.prototype.rememberSelection=function(){var k=this.getSelection();this.lastAnchorNode=k.anchorNode,this.lastAnchorOffset=k.anchorOffset,this.lastFocusNode=k.focusNode,this.lastFocusOffset=k.focusOffset},tn.prototype.selectionInEditor=function(){var k=this.getSelection();if(!k.rangeCount)return!1;var W=k.getRangeAt(0).commonAncestorContainer;return N(this.div,W)},tn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},tn.prototype.blur=function(){this.div.blur()},tn.prototype.getField=function(){return this.div},tn.prototype.supportsTouch=function(){return!0},tn.prototype.receivedFocus=function(){var k=this;this.selectionInEditor()?this.pollSelection():ka(this.cm,function(){return k.cm.curOp.selectionChanged=!0});function W(){k.cm.state.focused&&(k.pollSelection(),k.polling.set(k.cm.options.pollInterval,W))}this.polling.set(this.cm.options.pollInterval,W)},tn.prototype.selectionChanged=function(){var k=this.getSelection();return k.anchorNode!=this.lastAnchorNode||k.anchorOffset!=this.lastAnchorOffset||k.focusNode!=this.lastFocusNode||k.focusOffset!=this.lastFocusOffset},tn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var k=this.getSelection(),W=this.cm;if(l&&o&&this.cm.display.gutterSpecs.length&&gi(k.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var $=Wi(W,k.anchorNode,k.anchorOffset),re=Wi(W,k.focusNode,k.focusOffset);$&&re&&ka(W,function(){ws(W.doc,ye($,re),ce),($.bad||re.bad)&&(W.curOp.selectionChanged=!0)})},tn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var k=this.cm,W=k.display,$=k.doc.sel.primary(),re=$.from(),se=$.to();if(re.ch==0&&re.line>k.firstLine()&&(re=Mt(re.line-1,Ce(k.doc,re.line-1).length)),se.ch==Ce(k.doc,se.line).text.length&&se.line<k.lastLine()&&(se=Mt(se.line+1,0)),re.line<W.viewFrom||se.line>W.viewTo-1)return!1;var ke,ft,Kt;re.line==W.viewFrom||(ke=Ra(k,re.line))==0?(ft=_t(W.view[0].line),Kt=W.view[0].node):(ft=_t(W.view[ke].line),Kt=W.view[ke-1].node.nextSibling);var qt=Ra(k,se.line),ir,bn;if(qt==W.view.length-1?(ir=W.viewTo-1,bn=W.lineDiv.lastChild):(ir=_t(W.view[qt+1].line)-1,bn=W.view[qt+1].node.previousSibling),!Kt)return!1;for(var Bn=k.doc.splitLines(oa(k,Kt,bn,ft,ir)),ci=Ye(k.doc,Mt(ft,0),Mt(ir,Ce(k.doc,ir).text.length));Bn.length>1&&ci.length>1;)if(ge(Bn)==ge(ci))Bn.pop(),ci.pop(),ir--;else if(Bn[0]==ci[0])Bn.shift(),ci.shift(),ft++;else break;for(var fi=0,Ji=0,ba=Bn[0],Fa=ci[0],Da=Math.min(ba.length,Fa.length);fi<Da&&ba.charCodeAt(fi)==Fa.charCodeAt(fi);)++fi;for(var Ia=ge(Bn),Za=ge(ci),mo=Math.min(Ia.length-(Bn.length==1?fi:0),Za.length-(ci.length==1?fi:0));Ji<mo&&Ia.charCodeAt(Ia.length-Ji-1)==Za.charCodeAt(Za.length-Ji-1);)++Ji;if(Bn.length==1&&ci.length==1&&ft==re.line)for(;fi&&fi>re.ch&&Ia.charCodeAt(Ia.length-Ji-1)==Za.charCodeAt(Za.length-Ji-1);)fi--,Ji++;Bn[Bn.length-1]=Ia.slice(0,Ia.length-Ji).replace(/^\u200b+/,""),Bn[0]=Bn[0].slice(fi).replace(/\u200b+$/,"");var Vo=Mt(ft,fi),Fo=Mt(ir,ci.length?ge(ci).length-Ji:0);if(Bn.length>1||Bn[0]||nt(Vo,Fo))return el(k.doc,Bn,Vo,Fo,"+input"),!0},tn.prototype.ensurePolled=function(){this.forceCompositionEnd()},tn.prototype.reset=function(){this.forceCompositionEnd()},tn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},tn.prototype.readFromDOMSoon=function(){var k=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(k.readDOMTimeout=null,k.composing)if(k.composing.done)k.composing=null;else return;k.updateFromDOM()},80)},tn.prototype.updateFromDOM=function(){var k=this;(this.cm.isReadOnly()||!this.pollContent())&&ka(this.cm,function(){return ia(k.cm)})},tn.prototype.setUneditable=function(k){k.contentEditable="false"},tn.prototype.onKeyPress=function(k){if(k.charCode==0||this.composing)return;k.preventDefault(),this.cm.isReadOnly()||Ba(this.cm,at)(this.cm,String.fromCharCode(k.charCode==null?k.keyCode:k.charCode),0)},tn.prototype.readOnlyChanged=function(k){this.div.contentEditable=String(k!="nocursor")},tn.prototype.onContextMenu=function(){},tn.prototype.resetPosition=function(){},tn.prototype.needsContentAttribute=!0;function _n(k,W){var $=sa(k,W.line);if(!$||$.hidden)return null;var re=Ce(k.doc,W.line),se=Aa($,re,W.line),ke=gt(re,k.doc.direction),ft="left";if(ke){var Kt=_e(ke,W.ch);ft=Kt%2?"right":"left"}var qt=yo(se.map,W.ch,ft);return qt.offset=qt.collapse=="right"?qt.end:qt.start,qt}function gi(k){for(var W=k;W;W=W.parentNode)if(/CodeMirror-gutter-wrapper/.test(W.className))return!0;return!1}function Li(k,W){return W&&(k.bad=!0),k}function oa(k,W,$,re,se){var ke="",ft=!1,Kt=k.doc.lineSeparator(),qt=!1;function ir(fi){return function(Ji){return Ji.id==fi}}function bn(){ft&&(ke+=Kt,qt&&(ke+=Kt),ft=qt=!1)}function Bn(fi){fi&&(bn(),ke+=fi)}function ci(fi){if(fi.nodeType==1){var Ji=fi.getAttribute("cm-text");if(Ji){Bn(Ji);return}var ba=fi.getAttribute("cm-marker"),Fa;if(ba){var Da=k.findMarks(Mt(re,0),Mt(se+1,0),ir(+ba));Da.length&&(Fa=Da[0].find(0))&&Bn(Ye(k.doc,Fa.from,Fa.to).join(Kt));return}if(fi.getAttribute("contenteditable")=="false")return;var Ia=/^(pre|div|p|li|table|br)$/i.test(fi.nodeName);if(!/^br$/i.test(fi.nodeName)&&fi.textContent.length==0)return;Ia&&bn();for(var Za=0;Za<fi.childNodes.length;Za++)ci(fi.childNodes[Za]);/^(pre|p)$/i.test(fi.nodeName)&&(qt=!0),Ia&&(ft=!0)}else fi.nodeType==3&&Bn(fi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(ci(W),W==$);)W=W.nextSibling,qt=!1;return ke}function Wi(k,W,$){var re;if(W==k.display.lineDiv){if(re=k.display.lineDiv.childNodes[$],!re)return Li(k.clipPos(Mt(k.display.viewTo-1)),!0);W=null,$=0}else for(re=W;;re=re.parentNode){if(!re||re==k.display.lineDiv)return null;if(re.parentNode&&re.parentNode==k.display.lineDiv)break}for(var se=0;se<k.display.view.length;se++){var ke=k.display.view[se];if(ke.node==re)return ro(ke,W,$)}}function ro(k,W,$){var re=k.text.firstChild,se=!1;if(!W||!N(re,W))return Li(Mt(_t(k.line),0),!0);if(W==re&&(se=!0,W=re.childNodes[$],$=0,!W)){var ke=k.rest?ge(k.rest):k.line;return Li(Mt(_t(ke),ke.text.length),se)}var ft=W.nodeType==3?W:null,Kt=W;for(!ft&&W.childNodes.length==1&&W.firstChild.nodeType==3&&(ft=W.firstChild,$&&($=ft.nodeValue.length));Kt.parentNode!=re;)Kt=Kt.parentNode;var qt=k.measure,ir=qt.maps;function bn(Fa,Da,Ia){for(var Za=-1;Za<(ir?ir.length:0);Za++)for(var mo=Za<0?qt.map:ir[Za],Vo=0;Vo<mo.length;Vo+=3){var Fo=mo[Vo+2];if(Fo==Fa||Fo==Da){var Ta=_t(Za<0?k.line:k.rest[Za]),fs=mo[Vo]+Ia;return(Ia<0||Fo!=Fa)&&(fs=mo[Vo+(Ia?1:0)]),Mt(Ta,fs)}}}var Bn=bn(ft,Kt,$);if(Bn)return Li(Bn,se);for(var ci=Kt.nextSibling,fi=ft?ft.nodeValue.length-$:0;ci;ci=ci.nextSibling){if(Bn=bn(ci,ci.firstChild,0),Bn)return Li(Mt(Bn.line,Bn.ch-fi),se);fi+=ci.textContent.length}for(var Ji=Kt.previousSibling,ba=$;Ji;Ji=Ji.previousSibling){if(Bn=bn(Ji,Ji.firstChild,-1),Bn)return Li(Mt(Bn.line,Bn.ch+ba),se);ba+=Ji.textContent.length}}var xa=function(W){this.cm=W,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};xa.prototype.init=function(k){var W=this,$=this,re=this.cm;this.createField(k);var se=this.textarea;k.wrapper.insertBefore(this.wrapper,k.wrapper.firstChild),a&&(se.style.width="0px"),Ie(se,"input",function(){h&&c>=9&&W.hasSelection&&(W.hasSelection=null),$.poll()}),Ie(se,"paste",function(ft){if(Ot(re,ft)||It(ft,re))return;re.state.pasteIncoming=+new Date,$.fastPoll()});function ke(ft){if(Ot(re,ft))return;if(re.somethingSelected())Ve({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var Kt=Pt(re);Ve({lineWise:!0,text:Kt.text}),ft.type=="cut"?re.setSelections(Kt.ranges,null,ce):($.prevInput="",se.value=Kt.text.join(`
`),H(se))}else return;ft.type=="cut"&&(re.state.cutIncoming=+new Date)}Ie(se,"cut",ke),Ie(se,"copy",ke),Ie(k.scroller,"paste",function(ft){if(di(k,ft)||Ot(re,ft))return;if(!se.dispatchEvent){re.state.pasteIncoming=+new Date,$.focus();return}var Kt=new Event("paste");Kt.clipboardData=ft.clipboardData,se.dispatchEvent(Kt)}),Ie(k.lineSpace,"selectstart",function(ft){di(k,ft)||Be(ft)}),Ie(se,"compositionstart",function(){var ft=re.getCursor("from");$.composing&&$.composing.range.clear(),$.composing={start:ft,range:re.markText(ft,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Ie(se,"compositionend",function(){$.composing&&($.poll(),$.composing.range.clear(),$.composing=null)})},xa.prototype.createField=function(k){this.wrapper=Zr(),this.textarea=this.wrapper.firstChild},xa.prototype.screenReaderLabelChanged=function(k){k?this.textarea.setAttribute("aria-label",k):this.textarea.removeAttribute("aria-label")},xa.prototype.prepareSelection=function(){var k=this.cm,W=k.display,$=k.doc,re=br(k);if(k.options.moveInputWithCursor){var se=qr(k,$.sel.primary().head,"div"),ke=W.wrapper.getBoundingClientRect(),ft=W.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(W.wrapper.clientHeight-10,se.top+ft.top-ke.top)),re.teLeft=Math.max(0,Math.min(W.wrapper.clientWidth-10,se.left+ft.left-ke.left))}return re},xa.prototype.showSelection=function(k){var W=this.cm,$=W.display;_($.cursorDiv,k.cursors),_($.selectionDiv,k.selection),k.teTop!=null&&(this.wrapper.style.top=k.teTop+"px",this.wrapper.style.left=k.teLeft+"px")},xa.prototype.reset=function(k){if(this.contextMenuPending||this.composing)return;var W=this.cm;if(W.somethingSelected()){this.prevInput="";var $=W.getSelection();this.textarea.value=$,W.state.focused&&H(this.textarea),h&&c>=9&&(this.hasSelection=$)}else k||(this.prevInput=this.textarea.value="",h&&c>=9&&(this.hasSelection=null))},xa.prototype.getField=function(){return this.textarea},xa.prototype.supportsTouch=function(){return!1},xa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!u||M()!=this.textarea))try{this.textarea.focus()}catch(k){}},xa.prototype.blur=function(){this.textarea.blur()},xa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},xa.prototype.receivedFocus=function(){this.slowPoll()},xa.prototype.slowPoll=function(){var k=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){k.poll(),k.cm.state.focused&&k.slowPoll()})},xa.prototype.fastPoll=function(){var k=!1,W=this;W.pollingFast=!0;function $(){var re=W.poll();!re&&!k?(k=!0,W.polling.set(60,$)):(W.pollingFast=!1,W.slowPoll())}W.polling.set(20,$)},xa.prototype.poll=function(){var k=this,W=this.cm,$=this.textarea,re=this.prevInput;if(this.contextMenuPending||!W.state.focused||pr($)&&!re&&!this.composing||W.isReadOnly()||W.options.disableInput||W.state.keySeq)return!1;var se=$.value;if(se==re&&!W.somethingSelected())return!1;if(h&&c>=9&&this.hasSelection===se||f&&/[\uf700-\uf7ff]/.test(se))return W.display.input.reset(),!1;if(W.doc.sel==W.display.selForContextMenu){var ke=se.charCodeAt(0);if(ke==8203&&!re&&(re="\u200B"),ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var ft=0,Kt=Math.min(re.length,se.length);ft<Kt&&re.charCodeAt(ft)==se.charCodeAt(ft);)++ft;return ka(W,function(){at(W,se.slice(ft),re.length-ft,null,k.composing?"*compose":null),se.length>1e3||se.indexOf(`
`)>-1?$.value=k.prevInput="":k.prevInput=se,k.composing&&(k.composing.range.clear(),k.composing.range=W.markText(k.composing.start,W.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},xa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},xa.prototype.onKeyPress=function(){h&&c>=9&&(this.hasSelection=null),this.fastPoll()},xa.prototype.onContextMenu=function(k){var W=this,$=W.cm,re=$.display,se=W.textarea;W.contextMenuPending&&W.contextMenuPending();var ke=Ga($,k),ft=re.scroller.scrollTop;if(!ke||n)return;var Kt=$.options.resetSelectionOnContextMenu;Kt&&$.doc.sel.contains(ke)==-1&&Ba($,ws)($.doc,ye(ke),ce);var qt=se.style.cssText,ir=W.wrapper.style.cssText,bn=W.wrapper.offsetParent.getBoundingClientRect();W.wrapper.style.cssText="position: static",se.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(k.clientY-bn.top-5)+"px; left: "+(k.clientX-bn.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 Bn;i&&(Bn=window.scrollY),re.input.focus(),i&&window.scrollTo(null,Bn),re.input.reset(),$.somethingSelected()||(se.value=W.prevInput=" "),W.contextMenuPending=fi,re.selForContextMenu=$.doc.sel,clearTimeout(re.detectingSelectAll);function ci(){if(se.selectionStart!=null){var ba=$.somethingSelected(),Fa="\u200B"+(ba?se.value:"");se.value="\u21DA",se.value=Fa,W.prevInput=ba?"":"\u200B",se.selectionStart=1,se.selectionEnd=Fa.length,re.selForContextMenu=$.doc.sel}}function fi(){if(W.contextMenuPending!=fi)return;if(W.contextMenuPending=!1,W.wrapper.style.cssText=ir,se.style.cssText=qt,h&&c<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=ft),se.selectionStart!=null){(!h||h&&c<9)&&ci();var ba=0,Fa=function Da(){re.selForContextMenu==$.doc.sel&&se.selectionStart==0&&se.selectionEnd>0&&W.prevInput=="\u200B"?Ba($,yl)($):ba++<10?re.detectingSelectAll=setTimeout(Da,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(Fa,200)}}if(h&&c>=9&&ci(),x){je(k);var Ji=function ba(){Ge(window,"mouseup",ba),setTimeout(fi,20)};Ie(window,"mouseup",Ji)}else setTimeout(fi,50)},xa.prototype.readOnlyChanged=function(k){k||this.reset(),this.textarea.disabled=k=="nocursor",this.textarea.readOnly=!!k},xa.prototype.setUneditable=function(){},xa.prototype.needsContentAttribute=!1;function Co(k,W){if(W=W?K(W):{},W.value=k.value,!W.tabindex&&k.tabIndex&&(W.tabindex=k.tabIndex),!W.placeholder&&k.placeholder&&(W.placeholder=k.placeholder),W.autofocus==null){var $=M();W.autofocus=$==k||k.getAttribute("autofocus")!=null&&$==document.body}function re(){k.value=Kt.getValue()}var se;if(k.form&&(Ie(k.form,"submit",re),!W.leaveSubmitMethodAlone)){var ke=k.form;se=ke.submit;try{var ft=ke.submit=function(){re(),ke.submit=se,ke.submit(),ke.submit=ft}}catch(qt){}}W.finishInit=function(qt){qt.save=re,qt.getTextArea=function(){return k},qt.toTextArea=function(){qt.toTextArea=isNaN,re(),k.parentNode.removeChild(qt.getWrapperElement()),k.style.display="",k.form&&(Ge(k.form,"submit",re),!W.leaveSubmitMethodAlone&&typeof k.form.submit=="function"&&(k.form.submit=se))}},k.style.display="none";var Kt=Er(function(qt){return k.parentNode.insertBefore(qt,k.nextSibling)},W);return Kt}function po(k){k.off=Ge,k.on=Ie,k.wheelEventPixels=Mn,k.Doc=Xs,k.splitLines=cn,k.countColumn=U,k.findColumn=Ee,k.isWordChar=X,k.Pass=q,k.signal=vt,k.Line=Si,k.changeEnd=Ke,k.scrollbarModel=wi,k.Pos=Mt,k.cmpPos=nt,k.modes=mt,k.mimeModes=Yr,k.resolveMode=ei,k.getMode=ji,k.modeExtensions=Ln,k.extendMode=Vn,k.copyState=kt,k.startState=Te,k.innerMode=wt,k.commands=eu,k.keyMap=Fs,k.keyName=wu,k.isModifierKey=Yl,k.lookupKey=sl,k.normalizeKeyMap=Kl,k.StringStream=xe,k.SharedTextMarker=Ns,k.TextMarker=tl,k.LineWidget=Il,k.e_preventDefault=Be,k.e_stopPropagation=Z,k.e_stop=je,k.addClass=B,k.contains=N,k.rmClass=S,k.keyNames=Dl}We(Er),Tr(Er);var Yo="iter insert remove copy getEditor constructor".split(" ");for(var os in Xs.prototype)Xs.prototype.hasOwnProperty(os)&&z(Yo,os)<0&&(Er.prototype[os]=function(k){return function(){return k.apply(this.doc,arguments)}}(Xs.prototype[os]));return Rt(Xs),Er.inputStyles={textarea:xa,contenteditable:tn},Er.defineMode=function(k){!Er.defaults.mode&&k!="null"&&(Er.defaults.mode=k),Tn.apply(this,arguments)},Er.defineMIME=Hn,Er.defineMode("null",function(){return{token:function(W){return W.skipToEnd()}}}),Er.defineMIME("text/plain","null"),Er.defineExtension=function(k,W){Er.prototype[k]=W},Er.defineDocExtension=function(k,W){Xs.prototype[k]=W},Er.fromTextArea=Co,po(Er),Er.version="5.58.2",Er})},Vy0f:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("iYpf"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},W2nI:function(j,P,d){var O=d("IwbS"),E=d("ProS"),C=d("bYtY"),v=["itemStyle","opacity"],w=["emphasis","itemStyle","opacity"],m=["lineStyle","opacity"],h=["emphasis","lineStyle","opacity"];function c(s,t){return s.getVisual("opacity")||s.getModel().get(t)}function i(s,t,a){var l=s.getGraphicEl(),u=c(s,t);a!=null&&(u==null&&(u=1),u*=a),l.downplay&&l.downplay(),l.traverse(function(f){f.type!=="group"&&f.setStyle("opacity",u)})}function r(s,t){var a=c(s,t),l=s.getGraphicEl();l.traverse(function(u){u.type!=="group"&&u.setStyle("opacity",a)}),l.highlight&&l.highlight()}var o=O.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(s,t){var a=t.extent;s.moveTo(t.x1,t.y1),s.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(s.lineTo(t.x2+a,t.y2),s.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(s.lineTo(t.x2,t.y2+a),s.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),s.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),n=E.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(s,t,a){var l=this,u=s.getGraph(),f=this.group,p=s.layoutInfo,g=p.width,A=p.height,y=s.getData(),x=s.getData("edge"),T=s.get("orient");this._model=s,f.removeAll(),f.attr("position",[p.x,p.y]),u.eachEdge(function(S){var b=new o;b.dataIndex=S.dataIndex,b.seriesIndex=s.seriesIndex,b.dataType="edge";var _=S.getModel("lineStyle"),I=_.get("curveness"),L=S.node1.getLayout(),D=S.node1.getModel(),N=D.get("localX"),M=D.get("localY"),B=S.node2.getLayout(),R=S.node2.getModel(),H=R.get("localX"),F=R.get("localY"),K=S.getLayout(),U,V,z,Y,q,ce,ie,ve;b.shape.extent=Math.max(1,K.dy),b.shape.orient=T,T==="vertical"?(U=(N!=null?N*g:L.x)+K.sy,V=(M!=null?M*A:L.y)+L.dy,z=(H!=null?H*g:B.x)+K.ty,Y=F!=null?F*A:B.y,q=U,ce=V*(1-I)+Y*I,ie=z,ve=V*I+Y*(1-I)):(U=(N!=null?N*g:L.x)+L.dx,V=(M!=null?M*A:L.y)+K.sy,z=H!=null?H*g:B.x,Y=(F!=null?F*A:B.y)+K.ty,q=U*(1-I)+z*I,ce=V,ie=U*I+z*(1-I),ve=Y),b.setShape({x1:U,y1:V,x2:z,y2:Y,cpx1:q,cpy1:ce,cpx2:ie,cpy2:ve}),b.setStyle(_.getItemStyle());switch(b.style.fill){case"source":b.style.fill=S.node1.getVisual("color");break;case"target":b.style.fill=S.node2.getVisual("color");break}O.setHoverStyle(b,S.getModel("emphasis.lineStyle").getItemStyle()),f.add(b),x.setItemGraphicEl(S.dataIndex,b)}),u.eachNode(function(S){var b=S.getLayout(),_=S.getModel(),I=_.get("localX"),L=_.get("localY"),D=_.getModel("label"),N=_.getModel("emphasis.label"),M=new O.Rect({shape:{x:I!=null?I*g:b.x,y:L!=null?L*A:b.y,width:b.dx,height:b.dy},style:_.getModel("itemStyle").getItemStyle()}),B=S.getModel("emphasis.itemStyle").getItemStyle();O.setLabelStyle(M.style,B,D,N,{labelFetcher:s,labelDataIndex:S.dataIndex,defaultText:S.id,isRectText:!0}),M.setStyle("fill",S.getVisual("color")),O.setHoverStyle(M,B),f.add(M),y.setItemGraphicEl(S.dataIndex,M),M.dataType="node"}),y.eachItemGraphicEl(function(S,b){var _=y.getItemModel(b);_.get("draggable")&&(S.drift=function(I,L){l._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=L,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:s.id,dataIndex:y.getRawIndex(b),localX:this.shape.x/g,localY:this.shape.y/A})},S.ondragend=function(){l._focusAdjacencyDisabled=!1},S.draggable=!0,S.cursor="move"),S.highlight=function(){this.trigger("emphasis")},S.downplay=function(){this.trigger("normal")},S.focusNodeAdjHandler&&S.off("mouseover",S.focusNodeAdjHandler),S.unfocusNodeAdjHandler&&S.off("mouseout",S.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(S.on("mouseover",S.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,dataIndex:S.dataIndex}))}),S.on("mouseout",S.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(a)}))}),x.eachItemGraphicEl(function(S,b){var _=x.getItemModel(b);S.focusNodeAdjHandler&&S.off("mouseover",S.focusNodeAdjHandler),S.unfocusNodeAdjHandler&&S.off("mouseout",S.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(S.on("mouseover",S.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,edgeDataIndex:S.dataIndex}))}),S.on("mouseout",S.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(a)}))}),!this._data&&s.get("animation")&&f.setClipPath(e(f.getBoundingRect(),s,function(){f.removeClipPath()})),this._data=s.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(s){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,s.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(s,t,a,l){var u=s.getData(),f=u.graph,p=l.dataIndex,g=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(S){i(S,v,.1)}),f.eachEdge(function(S){i(S,m,.1)}),y){r(y,w);var T=g.get("focusNodeAdjacency");T==="outEdges"?C.each(y.outEdges,function(S){if(S.dataIndex<0)return;r(S,h),r(S.node2,w)}):T==="inEdges"?C.each(y.inEdges,function(S){if(S.dataIndex<0)return;r(S,h),r(S.node1,w)}):T==="allEdges"&&C.each(y.edges,function(S){if(S.dataIndex<0)return;r(S,h),S.node1!==y&&r(S.node1,w),S.node2!==y&&r(S.node2,w)})}x&&(r(x,h),r(x.node1,w),r(x.node2,w))},unfocusNodeAdjacency:function(s,t,a,l){var u=s.getGraph();u.eachNode(function(f){i(f,v)}),u.eachEdge(function(f){i(f,m)})}});function e(s,t,a){var l=new O.Rect({shape:{x:s.x-10,y:s.y-10,width:0,height:s.height+20}});return O.initProps(l,{shape:{width:s.width+20}},t,a),l}j.exports=n},W4dC:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=C.each,w=C.createHashMap,m=d("7DRL"),h=d("TIY9"),c=d("yS9w"),i=d("mFDi"),r={geoJSON:h,svg:c},o={load:function(t,a,l){var u=[],f=w(),p=w(),g,A=s(t);return v(A,function(y){var x=r[y.type].load(t,y,l);v(x.regions,function(S){var b=S.name;a&&a.hasOwnProperty(b)&&(S=S.cloneShallow(b=a[b])),u.push(S),f.set(b,S),p.set(b,S.center)});var T=x.boundingRect;T&&(g?g.union(T):g=T.clone())}),{regions:u,regionsMap:f,nameCoordMap:p,boundingRect:g||new i(0,0,0,0)}},makeGraphic:n("makeGraphic"),removeGraphic:n("removeGraphic")};function n(t){return function(a,l){var u=s(a),f=[];return v(u,function(p){var g=r[p.type][t];g&&f.push(g(a,p,l))}),f}}function e(t){}function s(t){var a=m.retrieveMap(t)||[];return a}j.exports=o},WGYa:function(j,P,d){var O=d("7yuC"),E=O.forceLayout,C=d("HF/U"),v=C.simpleLayout,w=d("lOQZ"),m=w.circularLayout,h=d("OELB"),c=h.linearMap,i=d("QBsz"),r=d("bYtY");function o(n){n.eachSeriesByType("graph",function(e){var s=e.coordinateSystem;if(s&&s.type!=="view")return;if(e.get("layout")==="force"){var t=e.preservedPoints||{},a=e.getGraph(),l=a.data,u=a.edgeData,f=e.getModel("force"),p=f.get("initLayout");e.preservedPoints?l.each(function(D){var N=l.getId(D);l.setItemLayout(D,t[N]||[NaN,NaN])}):!p||p==="none"?v(e):p==="circular"&&m(e,"value");var g=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 T=l.mapArray("value",function(D,N){var M=l.getItemLayout(N),B=c(D,g,y);return isNaN(B)&&(B=(y[0]+y[1])/2),{w:B,rep:B,fixed:l.getItemModel(N).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),S=u.mapArray("value",function(D,N){var M=a.getEdgeByIndex(N),B=c(D,A,x);isNaN(B)&&(B=(x[0]+x[1])/2);var R=M.getModel();return{n1:T[M.node1.dataIndex],n2:T[M.node2.dataIndex],d:B,curveness:R.get("lineStyle.curveness")||0,ignoreForceLayout:R.get("ignoreForceLayout")}}),s=e.coordinateSystem,b=s.getBoundingRect(),_=E(T,S,{rect:b,gravity:f.get("gravity"),friction:f.get("friction")}),I=_.step;_.step=function(D){for(var N=0,M=T.length;N<M;N++)T[N].fixed&&i.copy(T[N].p,a.getNodeByIndex(N).getLayout());I(function(B,R,H){for(var F=0,K=B.length;F<K;F++)B[F].fixed||a.getNodeByIndex(F).setLayout(B[F].p),t[l.getId(F)]=B[F].p;for(var F=0,K=R.length;F<K;F++){var U=R[F],V=a.getEdgeByIndex(F),z=U.n1.p,Y=U.n2.p,q=V.getLayout();q=q?q.slice():[],q[0]=q[0]||[],q[1]=q[1]||[],i.copy(q[0],z),i.copy(q[1],Y),+U.curveness&&(q[2]=[(z[0]+Y[0])/2-(z[1]-Y[1])*U.curveness,(z[1]+Y[1])/2-(Y[0]-z[0])*U.curveness]),V.setLayout(q)}D&&D(H)})},e.forceLayout=_,e.preservedPoints=t,_.step()}else e.forceLayout=null})}j.exports=o},"WN+l":function(j,P,d){var O=d("bYtY"),E=d("IwbS");function C(w,m,h,c){var i=h.axis;if(i.scale.isBlank())return;var r=h.getModel("splitArea"),o=r.getModel("areaStyle"),n=o.get("color"),e=c.coordinateSystem.getRect(),s=i.getTicksCoords({tickModel:r,clamp:!0});if(!s.length)return;var t=n.length,a=w.__splitAreaColors,l=O.createHashMap(),u=0;if(a)for(var f=0;f<s.length;f++){var p=a.get(s[f].tickValue);if(p!=null){u=(p+(t-1)*f)%t;break}}var g=i.toGlobalCoord(s[0].coord),A=o.getAreaStyle();n=O.isArray(n)?n:[n];for(var f=1;f<s.length;f++){var y=i.toGlobalCoord(s[f].coord),x,T,S,b;i.isHorizontal()?(x=g,T=e.y,S=y-x,b=e.height,g=x+S):(x=e.x,T=g,S=e.width,b=y-T,g=T+b);var _=s[f-1].tickValue;_!=null&&l.set(_,u),m.add(new E.Rect({anid:_!=null?"area_"+_:null,shape:{x,y:T,width:S,height:b},style:O.defaults({fill:n[u]},A),silent:!0})),u=(u+1)%t}w.__splitAreaColors=l}function v(w){w.__splitAreaColors=null}P.rectCoordAxisBuildSplitArea=C,P.rectCoordAxisHandleRemove=v},WXVj:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("Bqw1")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="MinusSquareOutlined";var c=v.forwardRef(h);P.default=c},WYAk:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){(function(){var E=O,C=E.lib,v=C.Base,w=E.enc,m=w.Utf8,h=E.algo,c=h.HMAC=v.extend({init:function(r,o){r=this._hasher=new r.init,typeof o=="string"&&(o=m.parse(o));var n=r.blockSize,e=n*4;o.sigBytes>e&&(o=r.finalize(o)),o.clamp();for(var s=this._oKey=o.clone(),t=this._iKey=o.clone(),a=s.words,l=t.words,u=0;u<n;u++)a[u]^=1549556828,l[u]^=909522486;s.sigBytes=t.sigBytes=e,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 o=this._hasher,n=o.finalize(r);o.reset();var e=o.finalize(this._oKey.clone().concat(n));return e}})})()})},Wqna:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=C.isObject,w=C.each,m=C.map,h=C.indexOf,c=C.retrieve,i=d("+TT/"),r=i.getLayoutRect,o=d("aX7z"),n=o.createScaleByModel,e=o.ifAxisCrossZero,s=o.niceScaleExtent,t=o.estimateLabelUnionRect,a=d("y+lR"),l=d("7AJT"),u=d("IDmD"),f=d("7hqr"),p=f.getStackedDimension;d("jtI2");function g(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),w(M.x,function(R){s(R.scale,R.model)}),w(M.y,function(R){s(R.scale,R.model)});var B={};w(M.x,function(R){x(M,"y",R,B)}),w(M.y,function(R){x(M,"x",R,B)}),this.resize(this.model,N)};function x(D,N,M,B){M.getAxesOnZeroOf=function(){return H?[H]:[]};var R=D[N],H,F=M.model,K=F.get("axisLine.onZero"),U=F.get("axisLine.onZeroAxisIndex");if(!K)return;if(U!=null)T(R[U])&&(H=R[U]);else for(var V in R)if(R.hasOwnProperty(V)&&T(R[V])&&!B[z(R[V])]){H=R[V];break}H&&(B[z(H)]=!0);function z(Y){return Y.dim+"_"+Y.index}}function T(D){return D&&D.type!=="category"&&D.type!=="time"&&e(D)}y.resize=function(D,N,M){var B=r(D.getBoxLayoutParams(),{width:N.getWidth(),height:N.getHeight()});this._rect=B;var R=this._axesList;H(),!M&&D.get("containLabel")&&(w(R,function(F){if(!F.model.get("axisLabel.inside")){var K=t(F);if(K){var U=F.isHorizontal()?"height":"width",V=F.model.get("axisLabel.margin");B[U]-=K[U]+V,F.position==="top"?B.y+=K.height+V:F.position==="left"&&(B.x+=K.width+V)}}}),H());function H(){w(R,function(F){var K=F.isHorizontal(),U=K?[0,B.width]:[0,B.height],V=F.inverse?1:0;F.setExtent(U[V],U[1-V]),S(F,K?B.x:B.y)})}},y.getAxis=function(D,N){var M=this._axesMap[D];if(M!=null){if(N==null){for(var B in M)if(M.hasOwnProperty(B))return M[B]}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]}v(D)&&(N=D.yAxisIndex,D=D.xAxisIndex);for(var B=0,R=this._coordsList;B<R.length;B++)if(R[B].getAxis("x").index===D||R[B].getAxis("y").index===N)return R[B]},y.getCartesians=function(){return this._coordsList.slice()},y.convertToPixel=function(D,N,M){var B=this._findConvertTarget(D,N);return B.cartesian?B.cartesian.dataToPoint(M):B.axis?B.axis.toGlobalCoord(B.axis.dataToCoord(M)):null},y.convertFromPixel=function(D,N,M){var B=this._findConvertTarget(D,N);return B.cartesian?B.cartesian.pointToData(M):B.axis?B.axis.coordToData(B.axis.toLocalCoord(M)):null},y._findConvertTarget=function(D,N){var M=N.seriesModel,B=N.xAxisModel||M&&M.getReferringComponents("xAxis")[0],R=N.yAxisModel||M&&M.getReferringComponents("yAxis")[0],H=N.gridModel,F=this._coordsList,K,U;if(M)K=M.coordinateSystem,h(F,K)<0&&(K=null);else if(B&&R)K=this.getCartesian(B.componentIndex,R.componentIndex);else if(B)U=this.getAxis("x",B.componentIndex);else if(R)U=this.getAxis("y",R.componentIndex);else if(H){var V=H.coordinateSystem;V===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 B={left:!1,right:!1,top:!1,bottom:!1},R={x:{},y:{}},H={x:0,y:0};if(N.eachComponent("xAxis",F("x"),this),N.eachComponent("yAxis",F("y"),this),!H.x||!H.y){this._axesMap={},this._axesList=[];return}this._axesMap=R,w(R.x,function(K,U){w(R.y,function(V,z){var Y="x"+U+"y"+z,q=new a(Y);q.grid=this,q.model=D,this._coordsMap[Y]=q,this._coordsList.push(q),q.addAxis(K),q.addAxis(V)},this)},this);function F(K){return function(U,V){if(!g(U,D,N))return;var z=U.get("position");K==="x"?z!=="top"&&z!=="bottom"&&(z=B.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=B.left?"right":"left"),B[z]=!0;var Y=new l(K,n(U),[0,0],U.get("type"),z),q=Y.type==="category";Y.onBand=q&&U.get("boundaryGap"),Y.inverse=U.get("inverse"),U.axis=Y,Y.model=U,Y.grid=this,Y.index=V,this._axesList.push(Y),R[K][V]=Y,H[K]++}}},y._updateScale=function(D,N){w(this._axesList,function(B){B.scale.setExtent(Infinity,-Infinity)}),D.eachSeries(function(B){if(I(B)){var R=_(B,D),H=R[0],F=R[1];if(!g(H,N,D)||!g(F,N,D))return;var K=this.getCartesian(H.componentIndex,F.componentIndex),U=B.getData(),V=K.getAxis("x"),z=K.getAxis("y");U.type==="list"&&(M(U,V,B),M(U,z,B))}},this);function M(B,R,H){w(B.mapDimension(R.dim,!0),function(F){R.scale.unionExtentFromData(B,p(B,F))})}},y.getTooltipAxes=function(D){var N=[],M=[];return w(this.getCartesians(),function(B){var R=D!=null&&D!=="auto"?B.getAxis(D):B.getBaseAxis(),H=B.getOtherAxis(R);h(N,R)<0&&N.push(R),h(M,H)<0&&M.push(H)}),{baseAxes:N,otherAxes:M}};function S(D,N){var M=D.getExtent(),B=M[0]+M[1];D.toGlobalCoord=D.dim==="x"?function(R){return R+N}:function(R){return B-R+N},D.toLocalCoord=D.dim==="x"?function(R){return R-N}:function(R){return B-R+N}}var b=["xAxis","yAxis"];function _(D,N){return m(b,function(M){var B=D.getReferringComponents(M)[0];return B})}function I(D){return D.get("coordinateSystem")==="cartesian2d"}A.create=function(D,N){var M=[];return D.eachComponent("grid",function(B,R){var H=new A(B,D,N);H.name="grid_"+R,H.resize(B,N,!0),B.coordinateSystem=H,M.push(H)}),D.eachSeries(function(B){if(!I(B))return;var R=_(B,D),H=R[0],F=R[1],K=H.getCoordSysModel(),U=K.coordinateSystem;B.coordinateSystem=U.getCartesian(H.componentIndex,F.componentIndex)}),M},A.dimensions=A.prototype.dimensions=a.prototype.dimensions,u.register("cartesian2d",A);var L=A;j.exports=L},"X+im":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("KQeH")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="DownloadOutlined";var c=v.forwardRef(h);P.default=c},"X2/X":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},XAae:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("hwYd"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},XOKv:function(j,P,d){d("OXB0"),d("SA4+")},Xmg4:function(j,P,d){var O=d("bYtY"),E=d("LPTA"),C=E.devicePixelRatio,v=d("K2GJ"),w=d("3C/r");function m(){return!1}function h(r,o,n){var e=O.createCanvas(),s=o.getWidth(),t=o.getHeight(),a=e.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=s+"px",a.height=t+"px",e.setAttribute("data-zr-dom-id",r)),e.width=s*n,e.height=t*n,e}var c=function(o,n,e){var s;e=e||C,typeof o=="string"?s=h(o,n,e):O.isObject(o)&&(s=o,o=s.id),this.id=o,this.dom=s;var t=s.style;t&&(s.onselectstart=m,t["-webkit-user-select"]="none",t["user-select"]="none",t["-webkit-touch-callout"]="none",t["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",t.padding=0,t.margin=0,t["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=e};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 o=this.dpr;this.domBack=h("back-"+this.id,this.painter,o),this.ctxBack=this.domBack.getContext("2d"),o!==1&&this.ctxBack.scale(o,o)},resize:function(o,n){var e=this.dpr,s=this.dom,t=s.style,a=this.domBack;t&&(t.width=o+"px",t.height=n+"px"),s.width=o*e,s.height=n*e,a&&(a.width=o*e,a.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(o,n){var e=this.dom,s=this.ctx,t=e.width,a=e.height,n=n||this.clearColor,l=this.motionBlur&&!o,u=this.lastFrameAlpha,f=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,t/f,a/f)),s.clearRect(0,0,t,a),n&&n!=="transparent"){var p;n.colorStops?(p=n.__canvasGradient||v.getGradient(s,n,{x:0,y:0,width:t,height:a}),n.__canvasGradient=p):n.image&&(p=w.prototype.getCanvasPattern.call(n,s)),s.save(),s.fillStyle=p||n,s.fillRect(0,0,t,a),s.restore()}if(l){var g=this.domBack;s.save(),s.globalAlpha=u,s.drawImage(g,0,0,t,a),s.restore()}}};var i=c;j.exports=i},Xnb7:function(j,P,d){var O=d("1RvN"),E=new O(50);function C(h){if(typeof h=="string"){var c=E.get(h);return c&&c.image}else return h}function v(h,c,i,r,o){if(h)if(typeof h=="string"){if(c&&c.__zrImageSrc===h||!i)return c;var n=E.get(h),e={hostEl:i,cb:r,cbPayload:o};return n?(c=n.image,!m(c)&&n.pending.push(e)):(c=new Image,c.onload=c.onerror=w,E.put(h,c.__cachedImgObj={image:c,pending:[e]}),c.src=c.__zrImageSrc=h),c}else return h;else return c}function w(){var h=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var c=0;c<h.pending.length;c++){var i=h.pending[c],r=i.cb;r&&r(this,i.cbPayload),i.hostEl.dirty()}h.pending.length=0}function m(h){return h&&h.width&&h.height}P.findExistImage=C,P.createOrUpdateImage=v,P.isImageReady=m},XpcN:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("oVpE"),m=w.createSymbol,h=d("IwbS"),c=d("eRkO"),i=c.makeBackground,r=d("+TT/"),o=v.curry,n=v.each,e=h.Group,s=C.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(f,p,g){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 T=f.get("selector",!0),S=f.get("selectorPosition",!0);T&&(!S||S==="auto")&&(S=x==="horizontal"?"end":"start"),this.renderInner(y,f,p,g,T,x,S);var b=f.getBoxLayoutParams(),_={width:g.getWidth(),height:g.getHeight()},I=f.get("padding"),L=r.getLayoutRect(b,_,I),D=this.layoutInner(f,y,L,A,T,S),N=r.getLayoutRect(v.defaults({width:D.width,height:D.height},b),_,I);this.group.attr("position",[N.x-D.x,N.y-D.y]),this.group.add(this._backgroundEl=i(D,f))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(f,p,g,A,y,x,T){var S=this.getContentGroup(),b=v.createHashMap(),_=p.get("selectedMode"),I=[];g.eachRawSeries(function(L){!L.get("legendHoverLink")&&I.push(L.id)}),n(p.getData(),function(L,D){var N=L.get("name");if(!this.newlineDisabled&&(N===""||N===`
`)){S.add(new e({newline:!0}));return}var M=g.getSeriesByName(N)[0];if(b.get(N))return;if(M){var B=M.getData(),R=B.getVisual("color"),H=B.getVisual("borderColor");typeof R=="function"&&(R=R(M.getDataParams(0))),typeof H=="function"&&(H=H(M.getDataParams(0)));var F=B.getVisual("legendSymbol")||"roundRect",K=B.getVisual("symbol"),U=this._createItem(N,D,L,p,F,K,f,R,H,_);U.on("click",o(a,N,null,A,I)).on("mouseover",o(l,M.name,null,A,I)).on("mouseout",o(u,M.name,null,A,I)),b.set(N,!0)}else g.eachRawSeries(function(V){if(b.get(N))return;if(V.legendVisualProvider){var z=V.legendVisualProvider;if(!z.containName(N))return;var Y=z.indexOfName(N),q=z.getItemVisual(Y,"color"),ce=z.getItemVisual(Y,"borderColor"),ie="roundRect",ve=this._createItem(N,D,L,p,ie,null,f,q,ce,_);ve.on("click",o(a,null,N,A,I)).on("mouseover",o(l,null,N,A,I)).on("mouseout",o(u,null,N,A,I)),b.set(N,!0)}},this)},this),y&&this._createSelector(y,p,A,x,T)},_createSelector:function(f,p,g,A,y){var x=this.getSelectorGroup();n(f,function(S){T(S)});function T(S){var b=S.type,_=new h.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){g.dispatchAction({type:b==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(_);var I=p.getModel("selectorLabel"),L=p.getModel("emphasis.selectorLabel");h.setLabelStyle(_.style,_.hoverStyle={},I,L,{defaultText:S.title,isRectText:!1}),h.setHoverStyle(_)}},_createItem:function(f,p,g,A,y,x,T,S,b,_){var I=A.get("itemWidth"),L=A.get("itemHeight"),D=A.get("inactiveColor"),N=A.get("inactiveBorderColor"),M=A.get("symbolKeepAspect"),B=A.getModel("itemStyle"),R=A.isSelected(f),H=new e,F=g.getModel("textStyle"),K=g.get("icon"),U=g.getModel("tooltip"),V=U.parentModel;y=K||y;var z=m(y,0,0,I,L,R?S:D,M==null?!0:M);if(H.add(t(z,y,B,b,N,R)),!K&&x&&(x!==y||x==="none")){var Y=L*.8;x==="none"&&(x="circle");var q=m(x,(I-Y)/2,(L-Y)/2,Y,Y,R?S:D,M==null?!0:M);H.add(t(q,x,B,b,N,R))}var ce=T==="left"?I+5:-5,ie=T,ve=A.get("formatter"),Ee=f;typeof ve=="string"&&ve?Ee=ve.replace("{name}",f!=null?f:""):typeof ve=="function"&&(Ee=ve(f)),H.add(new h.Text({style:h.setTextStyle({},F,{text:Ee,x:ce,y:L/2,textFill:R?F.getTextColor():D,textAlign:ie,textVerticalAlign:"middle"})}));var Le=new h.Rect({shape:H.getBoundingRect(),invisible:!0,tooltip:U.get("show")?v.extend({content:f,formatter:V.get("formatter",!0)||function(){return f},formatterParams:{componentType:"legend",legendIndex:A.componentIndex,name:f,$vars:["name"]}},U.option):null});return H.add(Le),H.eachChild(function(He){He.silent=!0}),Le.silent=!_,this.getContentGroup().add(H),h.setHoverStyle(H),H.__legendDataIndex=p,H},layoutInner:function(f,p,g,A,y,x){var T=this.getContentGroup(),S=this.getSelectorGroup();r.box(f.get("orient"),T,f.get("itemGap"),g.width,g.height);var b=T.getBoundingRect(),_=[-b.x,-b.y];if(y){r.box("horizontal",S,f.get("selectorItemGap",!0));var I=S.getBoundingRect(),L=[-I.x,-I.y],D=f.get("selectorButtonGap",!0),N=f.getOrient().index,M=N===0?"width":"height",B=N===0?"height":"width",R=N===0?"y":"x";x==="end"?L[N]+=b[M]+D:_[N]+=I[M]+D,L[1-N]+=b[B]/2-I[B]/2,S.attr("position",L),T.attr("position",_);var H={x:0,y:0};return H[M]=b[M]+D+I[M],H[B]=Math.max(b[B],I[B]),H[R]=Math.min(0,I[R]+L[1-N]),H}else return T.attr("position",_),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function t(f,p,g,A,y,x){var T;return p!=="line"&&p.indexOf("empty")<0?(T=g.getItemStyle(),f.style.stroke=A,x||(T.stroke=y)):T=g.getItemStyle(["borderWidth","borderColor"]),f.setStyle(T)}function a(f,p,g,A){u(f,p,g,A),g.dispatchAction({type:"legendToggleSelect",name:f!=null?f:p}),l(f,p,g,A)}function l(f,p,g,A){var y=g.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||g.dispatchAction({type:"highlight",seriesName:f,name:p,excludeSeriesId:A})}function u(f,p,g,A){var y=g.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||g.dispatchAction({type:"downplay",seriesName:f,name:p,excludeSeriesId:A})}j.exports=s},XuBP:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},XxSj:function(j,P,d){var O=d("bYtY"),E=d("Qe9p"),C=d("OELB"),v=C.linearMap,w=O.each,m=O.isObject,h=-1,c=function(x){var T=x.mappingMethod,S=x.type,b=this.option=O.clone(x);this.type=S,this.mappingMethod=T,this._normalizeData=g[T];var _=i[S];this.applyVisual=_.applyVisual,this.getColorMapper=_.getColorMapper,this._doMap=_._doMap[T],T==="piecewise"?(n(b),r(b)):T==="category"?b.categories?o(b):n(b,!0):(O.assert(T!=="linear"||b.dataExtent),n(b))};c.prototype={constructor:c,mapValueToVisual:function(x){var T=this._normalizeData(x);return this._doMap(T,x)},getNormalizer:function(){return O.bind(this._normalizeData,this)}};var i=c.visualHandlers={color:{applyVisual:t("color"),getColorMapper:function(){var x=this.option;return O.bind(x.mappingMethod==="category"?function(T,S){return!S&&(T=this._normalizeData(T)),a.call(this,T)}:function(T,S,b){var _=!!b;return!S&&(T=this._normalizeData(T)),b=E.fastLerp(T,x.parsedVisual,b),_?b:E.stringify(b,"rgba")},this)},_doMap:{linear:function(x){return E.stringify(E.fastLerp(x,this.option.parsedVisual),"rgba")},category:a,piecewise:function(x,T){var S=f.call(this,T);return S==null&&(S=E.stringify(E.fastLerp(x,this.option.parsedVisual),"rgba")),S},fixed:l}},colorHue:e(function(x,T){return E.modifyHSL(x,T)}),colorSaturation:e(function(x,T){return E.modifyHSL(x,null,T)}),colorLightness:e(function(x,T){return E.modifyHSL(x,null,null,T)}),colorAlpha:e(function(x,T){return E.modifyAlpha(x,T)}),opacity:{applyVisual:t("opacity"),_doMap:u([0,1])},liftZ:{applyVisual:t("liftZ"),_doMap:{linear:l,category:l,piecewise:l,fixed:l}},symbol:{applyVisual:function(x,T,S){var b=this.mapValueToVisual(x);if(O.isString(b))S("symbol",b);else if(m(b))for(var _ in b)b.hasOwnProperty(_)&&S(_,b[_])},_doMap:{linear:s,category:a,piecewise:function(x,T){var S=f.call(this,T);return S==null&&(S=s.call(this,x)),S},fixed:l}},symbolSize:{applyVisual:t("symbolSize"),_doMap:u([0,1])}};function r(x){var T=x.pieceList;x.hasSpecialVisual=!1,O.each(T,function(S,b){S.originIndex=b,S.visual!=null&&(x.hasSpecialVisual=!0)})}function o(x){var T=x.categories,S=x.visual,b=x.categoryMap={};if(w(T,function(L,D){b[L]=D}),!O.isArray(S)){var _=[];O.isObject(S)?w(S,function(L,D){var N=b[D];_[N!=null?N:h]=L}):_[h]=S,S=p(x,_)}for(var I=T.length-1;I>=0;I--)S[I]==null&&(delete b[T[I]],T.pop())}function n(x,T){var S=x.visual,b=[];O.isObject(S)?w(S,function(I){b.push(I)}):S!=null&&b.push(S);var _={color:1,symbol:1};!T&&b.length===1&&!_.hasOwnProperty(x.type)&&(b[1]=b[0]),p(x,b)}function e(x){return{applyVisual:function(T,S,b){T=this.mapValueToVisual(T),b("color",x(S("color"),T))},_doMap:u([0,1])}}function s(x){var T=this.option.visual;return T[Math.round(v(x,[0,1],[0,T.length-1],!0))]||{}}function t(x){return function(T,S,b){b(x,this.mapValueToVisual(T))}}function a(x){var T=this.option.visual;return T[this.option.loop&&x!==h?x%T.length:x]}function l(){return this.option.visual[0]}function u(x){return{linear:function(T){return v(T,x,this.option.visual,!0)},category:a,piecewise:function(T,S){var b=f.call(this,S);return b==null&&(b=v(T,x,this.option.visual,!0)),b},fixed:l}}function f(x){var T=this.option,S=T.pieceList;if(T.hasSpecialVisual){var b=c.findPieceIndex(x,S),_=S[b];if(_&&_.visual)return _.visual[this.type]}}function p(x,T){return x.visual=T,x.type==="color"&&(x.parsedVisual=O.map(T,function(S){return E.parse(S)})),T}var g={linear:function(x){return v(x,this.option.dataExtent,[0,1],!0)},piecewise:function(x){var T=this.option.pieceList,S=c.findPieceIndex(x,T,!0);if(S!=null)return v(S,[0,T.length-1],[0,1],!0)},category:function(x){var T=this.option.categories?this.option.categoryMap[x]:x;return T==null?h:T},fixed:O.noop};c.listVisualTypes=function(){var x=[];return O.each(i,function(T,S){x.push(S)}),x},c.addVisualHandler=function(x,T){i[x]=T},c.isValidType=function(x){return i.hasOwnProperty(x)},c.eachVisual=function(x,T,S){O.isObject(x)?O.each(x,T,S):T.call(S,x)},c.mapVisual=function(x,T,S){var b,_=O.isArray(x)?[]:O.isObject(x)?{}:(b=!0,null);return c.eachVisual(x,function(I,L){var D=T.call(S,I,L);b?_=D:_[L]=D}),_},c.retrieveVisuals=function(x){var T={},S;return x&&w(i,function(b,_){x.hasOwnProperty(_)&&(T[_]=x[_],S=!0)}),S?T:null},c.prepareVisualTypes=function(x){if(m(x)){var T=[];w(x,function(S,b){T.push(b)}),x=T}else if(O.isArray(x))x=x.slice();else return[];return x.sort(function(S,b){return b==="color"&&S!=="color"&&S.indexOf("color")===0?1:-1}),x},c.dependsOn=function(x,T){return T==="color"?!!(x&&x.indexOf(T)===0):x===T},c.findPieceIndex=function(x,T,S){for(var b,_=Infinity,I=0,L=T.length;I<L;I++){var D=T[I].value;if(D!=null){if(D===x||typeof D=="string"&&D===x+"")return I;S&&R(D,I)}}for(var I=0,L=T.length;I<L;I++){var N=T[I],M=N.interval,B=N.close;if(M){if(M[0]===-Infinity){if(A(B[1],x,M[1]))return I}else if(M[1]===Infinity){if(A(B[0],M[0],x))return I}else if(A(B[0],M[0],x)&&A(B[1],x,M[1]))return I;S&&R(M[0],I),S&&R(M[1],I)}}if(S)return x===Infinity?T.length-1:x===-Infinity?0:b;function R(H,F){var K=Math.abs(H-x);K<_&&(_=K,b=F)}};function A(x,T,S){return x?T<=S:T<S}var y=c;j.exports=y},XzQk:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("KpQ+"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},Y1PL:function(j,P,d){"use strict";d.r(P),d.d(P,"ResizableTextArea",function(){return g});var O=d("wx14"),E=d("1OyB"),C=d("vuIU"),v=d("Ji7U"),w=d("LK+K"),m=d("q1tI"),h=d("VTBJ"),c=d("rePB"),i=d("t23M"),r=d("bT9E"),o=d("TSYQ"),n=d.n(o),e=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,s=["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"],t={},a;function l(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=x.getAttribute("id")||x.getAttribute("data-reactid")||x.getAttribute("name");if(T&&t[S])return t[S];var b=window.getComputedStyle(x),_=b.getPropertyValue("box-sizing")||b.getPropertyValue("-moz-box-sizing")||b.getPropertyValue("-webkit-box-sizing"),I=parseFloat(b.getPropertyValue("padding-bottom"))+parseFloat(b.getPropertyValue("padding-top")),L=parseFloat(b.getPropertyValue("border-bottom-width"))+parseFloat(b.getPropertyValue("border-top-width")),D=s.map(function(M){return"".concat(M,":").concat(b.getPropertyValue(M))}).join(";"),N={sizingStyle:D,paddingSize:I,borderSize:L,boxSizing:_};return T&&S&&(t[S]=N),N}function u(x){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),document.body.appendChild(a)),x.getAttribute("wrap")?a.setAttribute("wrap",x.getAttribute("wrap")):a.removeAttribute("wrap");var _=l(x,T),I=_.paddingSize,L=_.borderSize,D=_.boxSizing,N=_.sizingStyle;a.setAttribute("style","".concat(N,";").concat(e)),a.value=x.value||x.placeholder||"";var M=Number.MIN_SAFE_INTEGER,B=Number.MAX_SAFE_INTEGER,R=a.scrollHeight,H;if(D==="border-box"?R+=L:D==="content-box"&&(R-=I),S!==null||b!==null){a.value=" ";var F=a.scrollHeight-I;S!==null&&(M=F*S,D==="border-box"&&(M=M+I+L),R=Math.max(M,R)),b!==null&&(B=F*b,D==="border-box"&&(B=B+I+L),H=R>B?"":"hidden",R=Math.min(B,R))}return{height:R,minHeight:M,maxHeight:B,overflowY:H,resize:"none"}}var f;(function(x){x[x.NONE=0]="NONE",x[x.RESIZING=1]="RESIZING",x[x.RESIZED=2]="RESIZED"})(f||(f={}));var p=function(x){Object(v.a)(S,x);var T=Object(w.a)(S);function S(b){var _;return Object(E.a)(this,S),_=T.call(this,b),_.nextFrameActionId=void 0,_.resizeFrameId=void 0,_.textArea=void 0,_.saveTextArea=function(I){_.textArea=I},_.handleResize=function(I){var L=_.state.resizeStatus,D=_.props,N=D.autoSize,M=D.onResize;if(L!==f.NONE)return;typeof M=="function"&&M(I),N&&_.resizeOnNextFrame()},_.resizeOnNextFrame=function(){cancelAnimationFrame(_.nextFrameActionId),_.nextFrameActionId=requestAnimationFrame(_.resizeTextarea)},_.resizeTextarea=function(){var I=_.props.autoSize;if(!I||!_.textArea)return;var L=I.minRows,D=I.maxRows,N=u(_.textArea,!1,L,D);_.setState({textareaStyles:N,resizeStatus:f.RESIZING},function(){cancelAnimationFrame(_.resizeFrameId),_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:f.RESIZED},function(){_.resizeFrameId=requestAnimationFrame(function(){_.setState({resizeStatus:f.NONE}),_.fixFirefoxAutoScroll()})})})})},_.renderTextArea=function(){var I=_.props,L=I.prefixCls,D=L===void 0?"rc-textarea":L,N=I.autoSize,M=I.onResize,B=I.className,R=I.disabled,H=_.state,F=H.textareaStyles,K=H.resizeStatus,U=Object(r.a)(_.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),V=n()(D,B,Object(c.a)({},"".concat(D,"-disabled"),R));"value"in U&&(U.value=U.value||"");var z=Object(h.a)(Object(h.a)(Object(h.a)({},_.props.style),F),K===f.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(i.a,{onResize:_.handleResize,disabled:!(N||M)},m.createElement("textarea",Object(O.a)({},U,{className:V,style:z,ref:_.saveTextArea})))},_.state={textareaStyles:{},resizeStatus:f.NONE},_}return Object(C.a)(S,[{key:"componentDidUpdate",value:function(_){_.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var _=this.textArea.selectionStart,I=this.textArea.selectionEnd;this.textArea.setSelectionRange(_,I)}}catch(L){}}},{key:"render",value:function(){return this.renderTextArea()}}]),S}(m.Component),g=p,A=function(x){Object(v.a)(S,x);var T=Object(w.a)(S);function S(b){var _;Object(E.a)(this,S),_=T.call(this,b),_.resizableTextArea=void 0,_.focus=function(){_.resizableTextArea.textArea.focus()},_.saveTextArea=function(L){_.resizableTextArea=L},_.handleChange=function(L){var D=_.props.onChange;_.setValue(L.target.value,function(){_.resizableTextArea.resizeTextarea()}),D&&D(L)},_.handleKeyDown=function(L){var D=_.props,N=D.onPressEnter,M=D.onKeyDown;L.keyCode===13&&N&&N(L),M&&M(L)};var I=typeof b.value=="undefined"||b.value===null?b.defaultValue:b.value;return _.state={value:I},_}return Object(C.a)(S,[{key:"setValue",value:function(_,I){"value"in this.props||this.setState({value:_},I)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(g,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(_){return"value"in _?{value:_.value}:null}}]),S}(m.Component),y=P.default=A},YH21:function(j,P,d){var O=d("H6uX");P.Dispatcher=O;var E=d("ItGF"),C=d("Ze12"),v=C.isCanvasEl,w=C.transformCoordWithViewport,m=typeof window!="undefined"&&!!window.addEventListener,h=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function i(u,f,p,g){return p=p||{},g||!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 g=f.clientX,A=f.clientY;if(v(u)){var y=u.getBoundingClientRect();p.zrX=g-y.left,p.zrY=A-y.top;return}else if(w(c,u,g,A)){p.zrX=c[0],p.zrY=c[1];return}}p.zrX=p.zrY=0}function o(u){return u||window.event}function n(u,f,p){if(f=o(f),f.zrX!=null)return f;var g=f.type,A=g&&g.indexOf("touch")>=0;if(!A)i(u,f,f,p),f.zrDelta=f.wheelDelta?f.wheelDelta/120:-(f.detail||0)/3;else{var y=g!=="touchend"?f.targetTouches[0]:f.changedTouches[0];y&&i(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 e(u,f,p,g){m?u.addEventListener(f,p,g):u.attachEvent("on"+f,p)}function s(u,f,p,g){m?u.removeEventListener(f,p,g):u.detachEvent("on"+f,p)}var t=m?function(u){u.preventDefault(),u.stopPropagation(),u.cancelBubble=!0}:function(u){u.returnValue=!1,u.cancelBubble=!0};function a(u){return u.which===2||u.which===3}function l(u){return u.which>1}P.clientToLocal=i,P.getNativeEvent=o,P.normalizeEvent=n,P.addEventListener=e,P.removeEventListener=s,P.stop=t,P.isMiddleOrRightButtonOnMouseUpDown=a,P.notLeftMouse=l},YJ9k:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,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(w,c.key,c)}}function C(w,m,h){return m&&E(w.prototype,m),h&&E(w,h),w}var v=function(){function w(){O(this,w),this._listeners=new Map}return C(w,[{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(i){return i.call(c,h)}),!h.defaultPrevented):!0}}]),w}();P.default=v},YJCA:function(j,P,d){"use strict";d.d(P,"a",function(){return te}),d.d(P,"b",function(){return Pe});var O=d("wx14"),E=d("ODXe"),C=d("vpQ4"),v=d("1OyB"),w=d("vuIU"),m=d("md7G"),h=d("foSv"),c=d("Ji7U"),i=d("JX7q"),r=d("rePB"),o=d("q1tI"),n=d.n(o),e=d("17x9"),s=d.n(e),t=d("i8i4"),a=d.n(t),l=d("QLaP"),u=d.n(l),f=d("KQm4"),p=function(){function Oe(){Object(v.a)(this,Oe),Object(r.a)(this,"refs",{})}return Object(w.a)(Oe,[{key:"add",value:function(me,_e){this.refs[me]||(this.refs[me]=[]),this.refs[me].push(_e)}},{key:"remove",value:function(me,_e){var $e=this.getIndex(me,_e);$e!==-1&&this.refs[me].splice($e,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var me=this;return this.refs[this.active.collection].find(function(_e){var $e=_e.node;return $e.sortableInfo.index==me.active.index})}},{key:"getIndex",value:function(me,_e){return this.refs[me].indexOf(_e)}},{key:"getOrderedRefs",value:function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[me].sort(g)}}]),Oe}();function g(Oe,le){var me=Oe.node.sortableInfo.index,_e=le.node.sortableInfo.index;return me-_e}function A(Oe,le,me){return Oe=Oe.slice(),Oe.splice(me<0?Oe.length+me:me,0,Oe.splice(le,1)[0]),Oe}function y(Oe,le){return Object.keys(Oe).reduce(function(me,_e){return le.indexOf(_e)===-1&&(me[_e]=Oe[_e]),me},{})}var x={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},T=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Oe=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],le=(Array.prototype.slice.call(Oe).join("").match(/-(moz|webkit|ms)-/)||Oe.OLink===""&&["","o"])[1];switch(le){case"ms":return"ms";default:return le&&le.length?le[0].toUpperCase()+le.substr(1):""}}();function S(Oe,le){Object.keys(le).forEach(function(me){Oe.style[me]=le[me]})}function b(Oe,le){Oe.style["".concat(T,"Transform")]=le==null?"":"translate3d(".concat(le.x,"px,").concat(le.y,"px,0)")}function _(Oe,le){Oe.style["".concat(T,"TransitionDuration")]=le==null?"":"".concat(le,"ms")}function I(Oe,le){for(;Oe;){if(le(Oe))return Oe;Oe=Oe.parentNode}return null}function L(Oe,le,me){return Math.max(Oe,Math.min(me,le))}function D(Oe){return Oe.substr(-2)==="px"?parseFloat(Oe):0}function N(Oe){var le=window.getComputedStyle(Oe);return{bottom:D(le.marginBottom),left:D(le.marginLeft),right:D(le.marginRight),top:D(le.marginTop)}}function M(Oe,le){var me=le.displayName||le.name;return me?"".concat(Oe,"(").concat(me,")"):Oe}function B(Oe,le){var me=Oe.getBoundingClientRect();return{top:me.top+le.top,left:me.left+le.left}}function R(Oe){return Oe.touches&&Oe.touches.length?{x:Oe.touches[0].pageX,y:Oe.touches[0].pageY}:Oe.changedTouches&&Oe.changedTouches.length?{x:Oe.changedTouches[0].pageX,y:Oe.changedTouches[0].pageY}:{x:Oe.pageX,y:Oe.pageY}}function H(Oe){return Oe.touches&&Oe.touches.length||Oe.changedTouches&&Oe.changedTouches.length}function F(Oe,le){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Oe)return;var _e={left:me.left+Oe.offsetLeft,top:me.top+Oe.offsetTop};return Oe.parentNode===le?_e:F(Oe.parentNode,le,_e)}function K(Oe,le,me){return Oe<me&&Oe>le?Oe-1:Oe>me&&Oe<le?Oe+1:Oe}function U(Oe){var le=Oe.lockOffset,me=Oe.width,_e=Oe.height,$e=le,gt=le,et="px";if(typeof le=="string"){var Ie=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(le);u()(Ie!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',le),$e=parseFloat(le),gt=parseFloat(le),et=Ie[1]}return u()(isFinite($e)&&isFinite(gt),"lockOffset value should be a finite. Given %s",le),et==="%"&&($e=$e*me/100,gt=gt*_e/100),{x:$e,y:gt}}function V(Oe){var le=Oe.height,me=Oe.width,_e=Oe.lockOffset,$e=Array.isArray(_e)?_e:[_e,_e];u()($e.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",_e);var gt=Object(E.a)($e,2),et=gt[0],Ie=gt[1];return[U({height:le,lockOffset:et,width:me}),U({height:le,lockOffset:Ie,width:me})]}function z(Oe){var le=window.getComputedStyle(Oe),me=/(auto|scroll)/,_e=["overflow","overflowX","overflowY"];return _e.find(function($e){return me.test(le[$e])})}function Y(Oe){return Oe instanceof HTMLElement?z(Oe)?Oe:Y(Oe.parentNode):null}function q(Oe){var le=window.getComputedStyle(Oe);return le.display==="grid"?{x:D(le.gridColumnGap),y:D(le.gridRowGap)}:{x:0,y:0}}var ce={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},ie={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ve(Oe){var le="input, textarea, select, canvas, [contenteditable]",me=Oe.querySelectorAll(le),_e=Oe.cloneNode(!0),$e=Object(f.a)(_e.querySelectorAll(le));return $e.forEach(function(gt,et){if(gt.type!=="file"&&(gt.value=me[et].value),gt.type==="radio"&&gt.name&&(gt.name="__sortableClone__".concat(gt.name)),gt.tagName===ie.Canvas&&me[et].width>0&&me[et].height>0){var Ie=gt.getContext("2d");Ie.drawImage(me[et],0,0)}}),_e}function Ee(Oe){var le,me,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=le=function($e){Object(c.a)(gt,$e);function gt(){return Object(v.a)(this,gt),Object(m.a)(this,Object(h.a)(gt).apply(this,arguments))}return Object(w.a)(gt,[{key:"componentDidMount",value:function(){var Ie=Object(t.findDOMNode)(this);Ie.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return u()(_e.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 Ie=_e.withRef?"wrappedInstance":null;return Object(o.createElement)(Oe,Object(O.a)({ref:Ie},this.props))}}]),gt}(o.Component),Object(r.a)(le,"displayName",M("sortableHandle",Oe)),me}function Le(Oe){return Oe.sortableHandle!=null}var He=function(){function Oe(le,me){Object(v.a)(this,Oe),this.container=le,this.onScrollCallback=me}return Object(w.a)(Oe,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(me){var _e=this,$e=me.translate,gt=me.minTranslate,et=me.maxTranslate,Ie=me.width,rt=me.height,Ge={x:0,y:0},vt={x:1,y:1},Ot={x:10,y:10},Et=this.container,Tt=Et.scrollTop,Rt=Et.scrollLeft,Be=Et.scrollHeight,Z=Et.scrollWidth,J=Et.clientHeight,je=Et.clientWidth,Re=Tt===0,oe=Be-Tt-J===0,yt=Rt===0,zt=Z-Rt-je===0;$e.y>=et.y-rt/2&&!oe?(Ge.y=1,vt.y=Ot.y*Math.abs((et.y-rt/2-$e.y)/rt)):$e.x>=et.x-Ie/2&&!zt?(Ge.x=1,vt.x=Ot.x*Math.abs((et.x-Ie/2-$e.x)/Ie)):$e.y<=gt.y+rt/2&&!Re?(Ge.y=-1,vt.y=Ot.y*Math.abs(($e.y-rt/2-gt.y)/rt)):$e.x<=gt.x+Ie/2&&!yt&&(Ge.x=-1,vt.x=Ot.x*Math.abs(($e.x-Ie/2-gt.x)/Ie)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(Ge.x!==0||Ge.y!==0)&&(this.interval=setInterval(function(){_e.isAutoScrolling=!0;var lt={left:vt.x*Ge.x,top:vt.y*Ge.y};_e.container.scrollTop+=lt.top,_e.container.scrollLeft+=lt.left,_e.onScrollCallback(lt)},5))}}]),Oe}();function ge(Oe){var le=Oe.node;return{height:le.offsetHeight,width:le.offsetWidth}}function Fe(Oe){var le=[ie.Input,ie.Textarea,ie.Select,ie.Option,ie.Button];return le.indexOf(Oe.target.tagName)!==-1?!0:!!I(Oe.target,function(me){return me.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},fe={lift:[ce.SPACE],drop:[ce.SPACE],cancel:[ce.ESC],up:[ce.UP,ce.LEFT],down:[ce.DOWN,ce.RIGHT]},Je={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:ge,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:fe,shouldCancelStart:Fe,transitionDuration:300,useWindowAsScrollContainer:!1},ne=Object.keys(Q);function X(Oe){u()(!(Oe.distance&&Oe.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function G(Oe,le){try{var me=Oe()}catch(_e){return le(!0,_e)}return me&&me.then?me.then(le.bind(null,!1),le.bind(null,!0)):le(!1,value)}function te(Oe){var le,me,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=le=function($e){Object(c.a)(gt,$e);function gt(et){var Ie;return Object(v.a)(this,gt),Ie=Object(m.a)(this,Object(h.a)(gt).call(this,et)),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"state",{}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handleStart",function(rt){var Ge=Ie.props,vt=Ge.distance,Ot=Ge.shouldCancelStart;if(rt.button===2||Ot(rt))return;Ie.touched=!0,Ie.position=R(rt);var Et=I(rt.target,function(je){return je.sortableInfo!=null});if(Et&&Et.sortableInfo&&Ie.nodeIsChild(Et)&&!Ie.state.sorting){var Tt=Ie.props.useDragHandle,Rt=Et.sortableInfo,Be=Rt.index,Z=Rt.collection,J=Rt.disabled;if(J)return;if(Tt&&!I(rt.target,Le))return;Ie.manager.active={collection:Z,index:Be},!H(rt)&&rt.target.tagName===ie.Anchor&&rt.preventDefault(),vt||(Ie.props.pressDelay===0?Ie.handlePress(rt):Ie.pressTimer=setTimeout(function(){return Ie.handlePress(rt)},Ie.props.pressDelay))}}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"nodeIsChild",function(rt){return rt.sortableInfo.manager===Ie.manager}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handleMove",function(rt){var Ge=Ie.props,vt=Ge.distance,Ot=Ge.pressThreshold;if(!Ie.state.sorting&&Ie.touched&&!Ie._awaitingUpdateBeforeSortStart){var Et=R(rt),Tt={x:Ie.position.x-Et.x,y:Ie.position.y-Et.y},Rt=Math.abs(Tt.x)+Math.abs(Tt.y);Ie.delta=Tt,!vt&&(!Ot||Rt>=Ot)?(clearTimeout(Ie.cancelTimer),Ie.cancelTimer=setTimeout(Ie.cancel,0)):vt&&Rt>=vt&&Ie.manager.isActive()&&Ie.handlePress(rt)}}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handleEnd",function(){Ie.touched=!1,Ie.cancel()}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"cancel",function(){var rt=Ie.props.distance,Ge=Ie.state.sorting;Ge||(rt||clearTimeout(Ie.pressTimer),Ie.manager.active=null)}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handlePress",function(rt){try{var Ge=Ie.manager.getActive(),vt=function(){if(Ge){var Ot=function(){var cr=oe.sortableInfo.index,cn=N(oe),pr=q(Ie.container),gr=Ie.scrollContainer.getBoundingClientRect(),Zt=Rt({index:cr,node:oe,collection:yt});if(Ie.node=oe,Ie.margin=cn,Ie.gridGap=pr,Ie.width=Zt.width,Ie.height=Zt.height,Ie.marginOffset={x:Ie.margin.left+Ie.margin.right+Ie.gridGap.x,y:Math.max(Ie.margin.top,Ie.margin.bottom,Ie.gridGap.y)},Ie.boundingClientRect=oe.getBoundingClientRect(),Ie.containerBoundingRect=gr,Ie.index=cr,Ie.newIndex=cr,Ie.axis={x:Tt.indexOf("x")>=0,y:Tt.indexOf("y")>=0},Ie.offsetEdge=F(oe,Ie.container),zt?Ie.initialOffset=R(Object(C.a)({},rt,{pageX:Ie.boundingClientRect.left,pageY:Ie.boundingClientRect.top})):Ie.initialOffset=R(rt),Ie.initialScroll={left:Ie.scrollContainer.scrollLeft,top:Ie.scrollContainer.scrollTop},Ie.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Ie.helper=Ie.helperContainer.appendChild(ve(oe)),S(Ie.helper,{boxSizing:"border-box",height:"".concat(Ie.height,"px"),left:"".concat(Ie.boundingClientRect.left-cn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Ie.boundingClientRect.top-cn.top,"px"),width:"".concat(Ie.width,"px")}),zt&&Ie.helper.focus(),Z&&(Ie.sortableGhost=oe,S(oe,{opacity:0,visibility:"hidden"})),Ie.minTranslate={},Ie.maxTranslate={},zt){var Vt=Re?{top:0,left:0,width:Ie.contentWindow.innerWidth,height:Ie.contentWindow.innerHeight}:Ie.containerBoundingRect,mt=Vt.top,Yr=Vt.left,Tn=Vt.width,Hn=Vt.height,ei=mt+Hn,ji=Yr+Tn;Ie.axis.x&&(Ie.minTranslate.x=Yr-Ie.boundingClientRect.left,Ie.maxTranslate.x=ji-(Ie.boundingClientRect.left+Ie.width)),Ie.axis.y&&(Ie.minTranslate.y=mt-Ie.boundingClientRect.top,Ie.maxTranslate.y=ei-(Ie.boundingClientRect.top+Ie.height))}else Ie.axis.x&&(Ie.minTranslate.x=(Re?0:gr.left)-Ie.boundingClientRect.left-Ie.width/2,Ie.maxTranslate.x=(Re?Ie.contentWindow.innerWidth:gr.left+gr.width)-Ie.boundingClientRect.left-Ie.width/2),Ie.axis.y&&(Ie.minTranslate.y=(Re?0:gr.top)-Ie.boundingClientRect.top-Ie.height/2,Ie.maxTranslate.y=(Re?Ie.contentWindow.innerHeight:gr.top+gr.height)-Ie.boundingClientRect.top-Ie.height/2);Be&&Be.split(" ").forEach(function(Ln){return Ie.helper.classList.add(Ln)}),Ie.listenerNode=rt.touches?oe:Ie.contentWindow,zt?(Ie.listenerNode.addEventListener("wheel",Ie.handleKeyEnd,!0),Ie.listenerNode.addEventListener("mousedown",Ie.handleKeyEnd,!0),Ie.listenerNode.addEventListener("keydown",Ie.handleKeyDown)):(x.move.forEach(function(Ln){return Ie.listenerNode.addEventListener(Ln,Ie.handleSortMove,!1)}),x.end.forEach(function(Ln){return Ie.listenerNode.addEventListener(Ln,Ie.handleSortEnd,!1)})),Ie.setState({sorting:!0,sortingIndex:cr}),je&&je({node:oe,index:cr,collection:yt,isKeySorting:zt,nodes:Ie.manager.getOrderedRefs(),helper:Ie.helper},rt),zt&&Ie.keyMove(0)},Et=Ie.props,Tt=Et.axis,Rt=Et.getHelperDimensions,Be=Et.helperClass,Z=Et.hideSortableGhost,J=Et.updateBeforeSortStart,je=Et.onSortStart,Re=Et.useWindowAsScrollContainer,oe=Ge.node,yt=Ge.collection,zt=Ie.manager.isKeySorting,lt=function(){if(typeof J=="function"){Ie._awaitingUpdateBeforeSortStart=!0;var $t=G(function(){var cr=oe.sortableInfo.index;return Promise.resolve(J({collection:yt,index:cr,node:oe,isKeySorting:zt},rt)).then(function(){})},function(cr,cn){if(Ie._awaitingUpdateBeforeSortStart=!1,cr)throw cn;return cn});if($t&&$t.then)return $t.then(function(){})}}();return lt&&lt.then?lt.then(Ot):Ot(lt)}}();return Promise.resolve(vt&&vt.then?vt.then(function(){}):void 0)}catch(Ot){return Promise.reject(Ot)}}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handleSortMove",function(rt){var Ge=Ie.props.onSortMove;typeof rt.preventDefault=="function"&&rt.preventDefault(),Ie.updateHelperPosition(rt),Ie.animateNodes(),Ie.autoscroll(),Ge&&Ge(rt)}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handleSortEnd",function(rt){var Ge=Ie.props,vt=Ge.hideSortableGhost,Ot=Ge.onSortEnd,Et=Ie.manager,Tt=Et.active.collection,Rt=Et.isKeySorting,Be=Ie.manager.getOrderedRefs();Ie.listenerNode&&(Rt?(Ie.listenerNode.removeEventListener("wheel",Ie.handleKeyEnd,!0),Ie.listenerNode.removeEventListener("mousedown",Ie.handleKeyEnd,!0),Ie.listenerNode.removeEventListener("keydown",Ie.handleKeyDown)):(x.move.forEach(function(oe){return Ie.listenerNode.removeEventListener(oe,Ie.handleSortMove)}),x.end.forEach(function(oe){return Ie.listenerNode.removeEventListener(oe,Ie.handleSortEnd)}))),Ie.helper.parentNode.removeChild(Ie.helper),vt&&Ie.sortableGhost&&S(Ie.sortableGhost,{opacity:"",visibility:""});for(var Z=0,J=Be.length;Z<J;Z++){var je=Be[Z],Re=je.node;je.edgeOffset=null,je.boundingClientRect=null,b(Re,null),_(Re,null),je.translate=null}Ie.autoScroller.clear(),Ie.manager.active=null,Ie.manager.isKeySorting=!1,Ie.setState({sorting:!1,sortingIndex:null}),typeof Ot=="function"&&Ot({collection:Tt,newIndex:Ie.newIndex,oldIndex:Ie.index,isKeySorting:Rt,nodes:Be},rt),Ie.touched=!1}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"autoscroll",function(){var rt=Ie.props.disableAutoscroll,Ge=Ie.manager.isKeySorting;if(rt){Ie.autoScroller.clear();return}if(Ge){var vt=Object(C.a)({},Ie.translate),Ot=0,Et=0;Ie.axis.x&&(vt.x=Math.min(Ie.maxTranslate.x,Math.max(Ie.minTranslate.x,Ie.translate.x)),Ot=Ie.translate.x-vt.x),Ie.axis.y&&(vt.y=Math.min(Ie.maxTranslate.y,Math.max(Ie.minTranslate.y,Ie.translate.y)),Et=Ie.translate.y-vt.y),Ie.translate=vt,b(Ie.helper,Ie.translate),Ie.scrollContainer.scrollLeft+=Ot,Ie.scrollContainer.scrollTop+=Et;return}Ie.autoScroller.update({height:Ie.height,maxTranslate:Ie.maxTranslate,minTranslate:Ie.minTranslate,translate:Ie.translate,width:Ie.width})}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"onAutoScroll",function(rt){Ie.translate.x+=rt.left,Ie.translate.y+=rt.top,Ie.animateNodes()}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handleKeyDown",function(rt){var Ge=rt.keyCode,vt=Ie.props,Ot=vt.shouldCancelStart,Et=vt.keyCodes,Tt=Et===void 0?{}:Et,Rt=Object(C.a)({},fe,Tt);if(Ie.manager.active&&!Ie.manager.isKeySorting||!Ie.manager.active&&(!Rt.lift.includes(Ge)||Ot(rt)||!Ie.isValidSortingTarget(rt)))return;rt.stopPropagation(),rt.preventDefault(),Rt.lift.includes(Ge)&&!Ie.manager.active?Ie.keyLift(rt):Rt.drop.includes(Ge)&&Ie.manager.active?Ie.keyDrop(rt):Rt.cancel.includes(Ge)?(Ie.newIndex=Ie.manager.active.index,Ie.keyDrop(rt)):Rt.up.includes(Ge)?Ie.keyMove(-1):Rt.down.includes(Ge)&&Ie.keyMove(1)}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"keyLift",function(rt){var Ge=rt.target,vt=I(Ge,function(Rt){return Rt.sortableInfo!=null}),Ot=vt.sortableInfo,Et=Ot.index,Tt=Ot.collection;Ie.initialFocusedNode=Ge,Ie.manager.isKeySorting=!0,Ie.manager.active={index:Et,collection:Tt},Ie.handlePress(rt)}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"keyMove",function(rt){var Ge=Ie.manager.getOrderedRefs(),vt=Ge[Ge.length-1].node.sortableInfo.index,Ot=Ie.newIndex+rt,Et=Ie.newIndex;if(Ot<0||Ot>vt)return;Ie.prevIndex=Et,Ie.newIndex=Ot;var Tt=K(Ie.newIndex,Ie.prevIndex,Ie.index),Rt=Ge.find(function(zt){var lt=zt.node;return lt.sortableInfo.index===Tt}),Be=Rt.node,Z=Ie.containerScrollDelta,J=Rt.boundingClientRect||B(Be,Z),je=Rt.translate||{x:0,y:0},Re={top:J.top+je.y-Z.top,left:J.left+je.x-Z.left},oe=Et<Ot,yt={x:oe&&Ie.axis.x?Be.offsetWidth-Ie.width:0,y:oe&&Ie.axis.y?Be.offsetHeight-Ie.height:0};Ie.handleSortMove({pageX:Re.left+yt.x,pageY:Re.top+yt.y,ignoreTransition:rt===0})}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"keyDrop",function(rt){Ie.handleSortEnd(rt),Ie.initialFocusedNode&&Ie.initialFocusedNode.focus()}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"handleKeyEnd",function(rt){Ie.manager.active&&Ie.keyDrop(rt)}),Object(r.a)(Object(i.a)(Object(i.a)(Ie)),"isValidSortingTarget",function(rt){var Ge=Ie.props.useDragHandle,vt=rt.target,Ot=I(vt,function(Et){return Et.sortableInfo!=null});return Ot&&Ot.sortableInfo&&!Ot.sortableInfo.disabled&&(Ge?Le(vt):vt.sortableInfo)}),X(et),Ie.manager=new p,Ie.events={end:Ie.handleEnd,move:Ie.handleMove,start:Ie.handleStart},Ie}return Object(w.a)(gt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Ie=this,rt=this.props.useWindowAsScrollContainer,Ge=this.getContainer();Promise.resolve(Ge).then(function(vt){Ie.container=vt,Ie.document=Ie.container.ownerDocument||document;var Ot=Ie.props.contentWindow||Ie.document.defaultView||window;Ie.contentWindow=typeof Ot=="function"?Ot():Ot,Ie.scrollContainer=rt?Ie.document.scrollingElement||Ie.document.documentElement:Y(Ie.container)||Ie.container,Ie.autoScroller=new He(Ie.scrollContainer,Ie.onAutoScroll),Object.keys(Ie.events).forEach(function(Et){return x[Et].forEach(function(Tt){return Ie.container.addEventListener(Tt,Ie.events[Et],!1)})}),Ie.container.addEventListener("keydown",Ie.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Ie=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(rt){return x[rt].forEach(function(Ge){return Ie.container.removeEventListener(Ge,Ie.events[rt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Ie){var rt=this.props,Ge=rt.lockAxis,vt=rt.lockOffset,Ot=rt.lockToContainerEdges,Et=rt.transitionDuration,Tt=rt.keyboardSortingTransitionDuration,Rt=Tt===void 0?Et:Tt,Be=this.manager.isKeySorting,Z=Ie.ignoreTransition,J=R(Ie),je={x:J.x-this.initialOffset.x,y:J.y-this.initialOffset.y};if(je.y-=window.pageYOffset-this.initialWindowScroll.top,je.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=je,Ot){var Re=V({height:this.height,lockOffset:vt,width:this.width}),oe=Object(E.a)(Re,2),yt=oe[0],zt=oe[1],lt={x:this.width/2-yt.x,y:this.height/2-yt.y},$t={x:this.width/2-zt.x,y:this.height/2-zt.y};je.x=L(this.minTranslate.x+lt.x,this.maxTranslate.x-$t.x,je.x),je.y=L(this.minTranslate.y+lt.y,this.maxTranslate.y-$t.y,je.y)}Ge==="x"?je.y=0:Ge==="y"&&(je.x=0),Be&&Rt&&!Z&&_(this.helper,Rt),b(this.helper,je)}},{key:"animateNodes",value:function(){var Ie=this.props,rt=Ie.transitionDuration,Ge=Ie.hideSortableGhost,vt=Ie.onSortOver,Ot=this.containerScrollDelta,Et=this.windowScrollDelta,Tt=this.manager.getOrderedRefs(),Rt={left:this.offsetEdge.left+this.translate.x+Ot.left,top:this.offsetEdge.top+this.translate.y+Ot.top},Be=this.manager.isKeySorting,Z=this.newIndex;this.newIndex=null;for(var J=0,je=Tt.length;J<je;J++){var Re=Tt[J].node,oe=Re.sortableInfo.index,yt=Re.offsetWidth,zt=Re.offsetHeight,lt={height:this.height>zt?zt/2:this.height/2,width:this.width>yt?yt/2:this.width/2},$t=Be&&oe>this.index&&oe<=Z,cr=Be&&oe<this.index&&oe>=Z,cn={x:0,y:0},pr=Tt[J].edgeOffset;pr||(pr=F(Re,this.container),Tt[J].edgeOffset=pr,Be&&(Tt[J].boundingClientRect=B(Re,Ot)));var gr=J<Tt.length-1&&Tt[J+1],Zt=J>0&&Tt[J-1];if(gr&&!gr.edgeOffset&&(gr.edgeOffset=F(gr.node,this.container),Be&&(gr.boundingClientRect=B(gr.node,Ot))),oe===this.index){Ge&&(this.sortableGhost=Re,S(Re,{opacity:0,visibility:"hidden"}));continue}rt&&_(Re,rt),this.axis.x?this.axis.y?cr||oe<this.index&&(Rt.left+Et.left-lt.width<=pr.left&&Rt.top+Et.top<=pr.top+lt.height||Rt.top+Et.top+lt.height<=pr.top)?(cn.x=this.width+this.marginOffset.x,pr.left+cn.x>this.containerBoundingRect.width-lt.width&&(gr&&(cn.x=gr.edgeOffset.left-pr.left,cn.y=gr.edgeOffset.top-pr.top)),this.newIndex===null&&(this.newIndex=oe)):($t||oe>this.index&&(Rt.left+Et.left+lt.width>=pr.left&&Rt.top+Et.top+lt.height>=pr.top||Rt.top+Et.top+lt.height>=pr.top+zt))&&(cn.x=-(this.width+this.marginOffset.x),pr.left+cn.x<this.containerBoundingRect.left+lt.width&&(Zt&&(cn.x=Zt.edgeOffset.left-pr.left,cn.y=Zt.edgeOffset.top-pr.top)),this.newIndex=oe):$t||oe>this.index&&Rt.left+Et.left+lt.width>=pr.left?(cn.x=-(this.width+this.marginOffset.x),this.newIndex=oe):(cr||oe<this.index&&Rt.left+Et.left<=pr.left+lt.width)&&(cn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=oe)):this.axis.y&&($t||oe>this.index&&Rt.top+Et.top+lt.height>=pr.top?(cn.y=-(this.height+this.marginOffset.y),this.newIndex=oe):(cr||oe<this.index&&Rt.top+Et.top<=pr.top+lt.height)&&(cn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=oe))),b(Re,cn),Tt[J].translate=cn}this.newIndex==null&&(this.newIndex=this.index),Be&&(this.newIndex=Z);var Vt=Be?this.prevIndex:Z;vt&&this.newIndex!==Vt&&vt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Vt,isKeySorting:Be,nodes:Tt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return u()(_e.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 Ie=this.props.getContainer;return typeof Ie!="function"?Object(t.findDOMNode)(this):Ie(_e.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Ie=_e.withRef?"wrappedInstance":null;return Object(o.createElement)(Oe,Object(O.a)({ref:Ie},y(this.props,ne)))}},{key:"helperContainer",get:function(){var Ie=this.props.helperContainer;return typeof Ie=="function"?Ie():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Ie=this.props.useWindowAsScrollContainer;return Ie?{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}}}]),gt}(o.Component),Object(r.a)(le,"displayName",M("sortableList",Oe)),Object(r.a)(le,"defaultProps",Je),Object(r.a)(le,"propTypes",Q),Object(r.a)(le,"childContextTypes",{manager:s.a.object.isRequired}),me}var we={index:s.a.number.isRequired,collection:s.a.oneOfType([s.a.number,s.a.string]),disabled:s.a.bool},he=Object.keys(we);function Pe(Oe){var le,me,_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return me=le=function($e){Object(c.a)(gt,$e);function gt(){return Object(v.a)(this,gt),Object(m.a)(this,Object(h.a)(gt).apply(this,arguments))}return Object(w.a)(gt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Ie){this.node&&(Ie.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Ie.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Ie.collection!==this.props.collection&&(this.unregister(Ie.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Ie=this.props,rt=Ie.collection,Ge=Ie.disabled,vt=Ie.index,Ot=Object(t.findDOMNode)(this);Ot.sortableInfo={collection:rt,disabled:Ge,index:vt,manager:this.context.manager},this.node=Ot,this.ref={node:Ot},this.context.manager.add(rt,this.ref)}},{key:"unregister",value:function(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Ie,this.ref)}},{key:"getWrappedInstance",value:function(){return u()(_e.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 Ie=_e.withRef?"wrappedInstance":null;return Object(o.createElement)(Oe,Object(O.a)({ref:Ie},y(this.props,he)))}}]),gt}(o.Component),Object(r.a)(le,"displayName",M("sortableElement",Oe)),Object(r.a)(le,"contextTypes",{manager:s.a.object.isRequired}),Object(r.a)(le,"propTypes",we),Object(r.a)(le,"defaultProps",{collection:0}),me}},YNAk:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("QyFq")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="CaretDownFilled";var c=v.forwardRef(h);P.default=c},YNf1:function(j,P,d){var O=d("IwbS"),E=d("6Ic6"),C=.3,v=E.extend({type:"parallel",init:function(){this._dataGroup=new O.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,e,s,t){var a=this._dataGroup,l=n.getData(),u=this._data,f=n.coordinateSystem,p=f.dimensions,g=c(n);l.diff(u).add(A).update(y).remove(x).execute();function A(S){var b=h(l,a,S,p,f);i(b,l,S,g)}function y(S,b){var _=u.getItemGraphicEl(b),I=m(l,S,p,f);l.setItemGraphicEl(S,_);var L=t&&t.animation===!1?null:n;O.updateProps(_,{shape:{points:I}},L,S),i(_,l,S,g)}function x(S){var b=u.getItemGraphicEl(S);a.remove(b)}if(!this._initialized){this._initialized=!0;var T=w(f,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(T)}this._data=l},incrementalPrepareRender:function(n,e,s){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,e,s){for(var t=e.getData(),a=e.coordinateSystem,l=a.dimensions,u=c(e),f=n.start;f<n.end;f++){var p=h(t,this._dataGroup,f,l,a);p.incremental=!0,i(p,t,f,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function w(n,e,s){var t=n.model,a=n.getRect(),l=new O.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),u=t.get("layout")==="horizontal"?"width":"height";return l.setShape(u,0),O.initProps(l,{shape:{width:a.width,height:a.height}},e,s),l}function m(n,e,s,t){for(var a=[],l=0;l<s.length;l++){var u=s[l],f=n.get(n.mapDimension(u),e);r(f,t.getAxis(u).type)||a.push(t.dataToPoint(f,u))}return a}function h(n,e,s,t,a){var l=m(n,s,t,a),u=new O.Polyline({shape:{points:l},silent:!0,z2:10});return e.add(u),n.setItemGraphicEl(s,u),u}function c(n){var e=n.get("smooth",!0);return e===!0&&(e=C),{lineStyle:n.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:C}}function i(n,e,s,t){var a=t.lineStyle;if(e.hasItemOption){var l=e.getItemModel(s).getModel("lineStyle");a=l.getLineStyle()}n.useStyle(a);var u=n.style;u.fill=null,u.stroke=e.getItemVisual(s,"color"),u.opacity=e.getItemVisual(s,"opacity"),t.smooth&&(n.shape.smooth=t.smooth)}function r(n,e){return e==="category"?n==null:n==null||isNaN(n)}var o=v;j.exports=o},YOMW:function(j,P,d){var O=d("bYtY"),E={get:function(w,m,h){var c=O.clone((C[w]||{})[m]);return h&&O.isArray(c)?c[c.length-1]:c}},C={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]}},v=E;j.exports=v},YXkt:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("Qxkt"),w=d("gPAo"),m=d("7G+c"),h=d("KxfA"),c=h.defaultDimValueGetters,i=h.DefaultDataProvider,r=d("L0Ub"),o=r.summarizeDimensions,n=d("Vi4m"),e=C.isObject,s="undefined",t=-1,a="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 g(z){return z._rawCount>65535?u:p}function A(z){var Y=z.constructor;return Y===Array?z.slice():new Y(z)}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function T(z,Y){C.each(y.concat(Y.__wrappedMethods||[]),function(q){Y.hasOwnProperty(q)&&(z[q]=Y[q])}),z.__wrappedMethods=Y.__wrappedMethods,C.each(x,function(q){z[q]=C.clone(Y[q])}),z._calculationInfo=C.extend(Y._calculationInfo)}var S=function(z,Y){z=z||["x","y"];for(var q={},ce=[],ie={},ve=0;ve<z.length;ve++){var Ee=z[ve];C.isString(Ee)?Ee=new n({name:Ee}):Ee instanceof n||(Ee=new n(Ee));var Le=Ee.name;Ee.type=Ee.type||"float",Ee.coordDim||(Ee.coordDim=Le,Ee.coordDimIndex=0),Ee.otherDims=Ee.otherDims||{},ce.push(Le),q[Le]=Ee,Ee.index=ve,Ee.createInvertedIndices&&(ie[Le]=[])}this.dimensions=ce,this._dimensionInfos=q,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=o(this),this._invertedIndicesMap=ie,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},b=S.prototype;b.type="list",b.hasItemOption=!0,b.getDimension=function(z){return(typeof z=="number"||!isNaN(z)&&!this._dimensionInfos.hasOwnProperty(z))&&(z=this.dimensions[z]),z},b.getDimensionInfo=function(z){return this._dimensionInfos[this.getDimension(z)]},b.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},b.mapDimension=function(z,Y){var q=this._dimensionsSummary;if(Y==null)return q.encodeFirstDimNotExtra[z];var ce=q.encode[z];return Y===!0?(ce||[]).slice():ce&&ce[Y]},b.initData=function(z,Y,q){var ce=m.isInstance(z)||C.isArrayLike(z);ce&&(z=new i(z,this.dimensions.length)),this._rawData=z,this._storage={},this._indices=null,this._nameList=Y||[],this._idList=[],this._nameRepeatCount={},q||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=q=q||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,z.count()),z.pure&&(this.hasItemOption=!1)},b.getProvider=function(){return this._rawData},b.appendData=function(z){var Y=this._rawData,q=this.count();Y.appendData(z);var ce=Y.count();Y.persistent||(ce+=q),this._initDataFromProvider(q,ce)},b.appendValues=function(z,Y){for(var q=this._chunkSize,ce=this._storage,ie=this.dimensions,ve=ie.length,Ee=this._rawExtent,Le=this.count(),He=Le+Math.max(z.length,Y?Y.length:0),ge=this._chunkCount,Fe=0;Fe<ve;Fe++){var Q=ie[Fe];Ee[Q]||(Ee[Q]=K()),ce[Q]||(ce[Q]=[]),_(ce,this._dimensionInfos[Q],q,ge,He),this._chunkCount=ce[Q].length}for(var fe=new Array(ve),Je=Le;Je<He;Je++){for(var ne=Je-Le,X=Math.floor(Je/q),G=Je%q,te=0;te<ve;te++){var Q=ie[te],we=this._dimValueGetterArrayRows(z[ne]||fe,Q,ne,te);ce[Q][X][G]=we;var he=Ee[Q];we<he[0]&&(he[0]=we),we>he[1]&&(he[1]=we)}Y&&(this._nameList[Je]=Y[ne])}this._rawCount=this._count=He,this._extent={},I(this)},b._initDataFromProvider=function(z,Y){if(z>=Y)return;for(var q=this._chunkSize,ce=this._rawData,ie=this._storage,ve=this.dimensions,Ee=ve.length,Le=this._dimensionInfos,He=this._nameList,ge=this._idList,Fe=this._rawExtent,Q=this._nameRepeatCount={},fe,Je=this._chunkCount,ne=0;ne<Ee;ne++){var X=ve[ne];Fe[X]||(Fe[X]=K());var G=Le[X];G.otherDims.itemName===0&&(fe=this._nameDimIdx=ne),G.otherDims.itemId===0&&(this._idDimIdx=ne),ie[X]||(ie[X]=[]),_(ie,G,q,Je,Y),this._chunkCount=ie[X].length}for(var te=new Array(Ee),we=z;we<Y;we++){te=ce.getItem(we,te);for(var he=Math.floor(we/q),Pe=we%q,Oe=0;Oe<Ee;Oe++){var X=ve[Oe],le=ie[X][he],me=this._dimValueGetter(te,X,we,Oe);le[Pe]=me;var _e=Fe[X];me<_e[0]&&(_e[0]=me),me>_e[1]&&(_e[1]=me)}if(!ce.pure){var $e=He[we];if(te&&$e==null){if(te.name!=null)He[we]=$e=te.name;else if(fe!=null){var gt=ve[fe],et=ie[gt][he];if(et){$e=et[Pe];var Ie=Le[gt].ordinalMeta;Ie&&Ie.categories.length&&($e=Ie.categories[$e])}}}var rt=te==null?null:te.id;rt==null&&$e!=null&&(Q[$e]=Q[$e]||0,rt=$e,Q[$e]>0&&(rt+="__ec__"+Q[$e]),Q[$e]++),rt!=null&&(ge[we]=rt)}}!ce.persistent&&ce.clean&&ce.clean(),this._rawCount=this._count=Y,this._extent={},I(this)};function _(z,Y,q,ce,ie){var ve=l[Y.type],Ee=ce-1,Le=Y.name,He=z[Le][Ee];if(He&&He.length<q){for(var ge=new ve(Math.min(ie-Ee*q,q)),Fe=0;Fe<He.length;Fe++)ge[Fe]=He[Fe];z[Le][Ee]=ge}for(var Q=ce*q;Q<ie;Q+=q)z[Le].push(new ve(Math.min(ie-Q,q)))}function I(z){var Y=z._invertedIndicesMap;C.each(Y,function(q,ce){var ie=z._dimensionInfos[ce],ve=ie.ordinalMeta;if(ve){q=Y[ce]=new f(ve.categories.length);for(var Ee=0;Ee<q.length;Ee++)q[Ee]=t;for(var Ee=0;Ee<z._count;Ee++)q[z.get(ce,Ee)]=Ee}})}function L(z,Y,q){var ce;if(Y!=null){var ie=z._chunkSize,ve=Math.floor(q/ie),Ee=q%ie,Le=z.dimensions[Y],He=z._storage[Le][ve];if(He){ce=He[Ee];var ge=z._dimensionInfos[Le].ordinalMeta;ge&&ge.categories.length&&(ce=ge.categories[ce])}}return ce}b.count=function(){return this._count},b.getIndices=function(){var z,Y=this._indices;if(Y){var q=Y.constructor,ce=this._count;if(q===Array){z=new q(ce);for(var ie=0;ie<ce;ie++)z[ie]=Y[ie]}else z=new q(Y.buffer,0,ce)}else for(var q=g(this),z=new q(this.count()),ie=0;ie<z.length;ie++)z[ie]=ie;return z},b.get=function(z,Y){if(!(Y>=0&&Y<this._count))return NaN;var q=this._storage;if(!q[z])return NaN;Y=this.getRawIndex(Y);var ce=Math.floor(Y/this._chunkSize),ie=Y%this._chunkSize,ve=q[z][ce],Ee=ve[ie];return Ee},b.getByRawIndex=function(z,Y){if(!(Y>=0&&Y<this._rawCount))return NaN;var q=this._storage[z];if(!q)return NaN;var ce=Math.floor(Y/this._chunkSize),ie=Y%this._chunkSize,ve=q[ce];return ve[ie]},b._getFast=function(z,Y){var q=Math.floor(Y/this._chunkSize),ce=Y%this._chunkSize,ie=this._storage[z][q];return ie[ce]},b.getValues=function(z,Y){var q=[];C.isArray(z)||(Y=z,z=this.dimensions);for(var ce=0,ie=z.length;ce<ie;ce++)q.push(this.get(z[ce],Y));return q},b.hasValue=function(z){for(var Y=this._dimensionsSummary.dataDimsOnCoord,q=0,ce=Y.length;q<ce;q++)if(isNaN(this.get(Y[q],z)))return!1;return!0},b.getDataExtent=function(z){z=this.getDimension(z);var Y=this._storage[z],q=K();if(!Y)return q;var ce=this.count(),ie=!this._indices,ve;if(ie)return this._rawExtent[z].slice();if(ve=this._extent[z],ve)return ve.slice();ve=q;for(var Ee=ve[0],Le=ve[1],He=0;He<ce;He++){var ge=this._getFast(z,this.getRawIndex(He));ge<Ee&&(Ee=ge),ge>Le&&(Le=ge)}return ve=[Ee,Le],this._extent[z]=ve,ve},b.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},b.setApproximateExtent=function(z,Y){Y=this.getDimension(Y),this._approximateExtent[Y]=z.slice()},b.getCalculationInfo=function(z){return this._calculationInfo[z]},b.setCalculationInfo=function(z,Y){e(z)?C.extend(this._calculationInfo,z):this._calculationInfo[z]=Y},b.getSum=function(z){var Y=this._storage[z],q=0;if(Y)for(var ce=0,ie=this.count();ce<ie;ce++){var ve=this.get(z,ce);isNaN(ve)||(q+=ve)}return q},b.getMedian=function(z){var Y=[];this.each(z,function(ie,ve){isNaN(ie)||Y.push(ie)});var q=[].concat(Y).sort(function(ie,ve){return ie-ve}),ce=this.count();return ce===0?0:ce%2===1?q[(ce-1)/2]:(q[ce/2]+q[ce/2-1])/2},b.rawIndexOf=function(z,Y){var q=z&&this._invertedIndicesMap[z],ce=q[Y];return ce==null||isNaN(ce)?t:ce},b.indexOfName=function(z){for(var Y=0,q=this.count();Y<q;Y++)if(this.getName(Y)===z)return Y;return-1},b.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var Y=this._indices,q=Y[z];if(q!=null&&q<this._count&&q===z)return z;for(var ce=0,ie=this._count-1;ce<=ie;){var ve=(ce+ie)/2|0;if(Y[ve]<z)ce=ve+1;else if(Y[ve]>z)ie=ve-1;else return ve}return-1},b.indicesOfNearest=function(z,Y,q){var ce=this._storage,ie=ce[z],ve=[];if(!ie)return ve;q==null&&(q=Infinity);for(var Ee=Infinity,Le=-1,He=0,ge=0,Fe=this.count();ge<Fe;ge++){var Q=Y-this.get(z,ge),fe=Math.abs(Q);fe<=q&&((fe<Ee||fe===Ee&&Q>=0&&Le<0)&&(Ee=fe,Le=Q,He=0),Q===Le&&(ve[He++]=ge))}return ve.length=He,ve},b.getRawIndex=D;function D(z){return z}function N(z){return z<this._count&&z>=0?this._indices[z]:-1}b.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var Y=[],q=0;q<this.dimensions.length;q++){var ce=this.dimensions[q];Y.push(this.get(ce,z))}return Y},b.getName=function(z){var Y=this.getRawIndex(z);return this._nameList[Y]||L(this,this._nameDimIdx,Y)||""},b.getId=function(z){return M(this,this.getRawIndex(z))};function M(z,Y){var q=z._idList[Y];return q==null&&(q=L(z,z._idDimIdx,Y)),q==null&&(q=a+Y),q}function B(z){return C.isArray(z)||(z=[z]),z}function R(z,Y){for(var q=0;q<Y.length;q++)z._dimensionInfos[Y[q]]||console.error("Unkown dimension "+Y[q])}b.each=function(z,Y,q,ce){"use strict";if(!this._count)return;typeof z=="function"&&(ce=q,q=Y,Y=z,z=[]),q=q||ce||this,z=C.map(B(z),this.getDimension,this);for(var ie=z.length,ve=0;ve<this.count();ve++)switch(ie){case 0:Y.call(q,ve);break;case 1:Y.call(q,this.get(z[0],ve),ve);break;case 2:Y.call(q,this.get(z[0],ve),this.get(z[1],ve),ve);break;default:for(var Ee=0,Le=[];Ee<ie;Ee++)Le[Ee]=this.get(z[Ee],ve);Le[Ee]=ve,Y.apply(q,Le)}},b.filterSelf=function(z,Y,q,ce){"use strict";if(!this._count)return;typeof z=="function"&&(ce=q,q=Y,Y=z,z=[]),q=q||ce||this,z=C.map(B(z),this.getDimension,this);for(var ie=this.count(),ve=g(this),Ee=new ve(ie),Le=[],He=z.length,ge=0,Fe=z[0],Q=0;Q<ie;Q++){var fe,Je=this.getRawIndex(Q);if(He===0)fe=Y.call(q,Q);else if(He===1){var ne=this._getFast(Fe,Je);fe=Y.call(q,ne,Q)}else{for(var X=0;X<He;X++)Le[X]=this._getFast(Fe,Je);Le[X]=Q,fe=Y.apply(q,Le)}fe&&(Ee[ge++]=Je)}return ge<ie&&(this._indices=Ee),this._count=ge,this._extent={},this.getRawIndex=this._indices?N:D,this},b.selectRange=function(z){"use strict";if(!this._count)return;var Y=[];for(var q in z)z.hasOwnProperty(q)&&Y.push(q);var ce=Y.length;if(!ce)return;var ie=this.count(),ve=g(this),Ee=new ve(ie),Le=0,He=Y[0],ge=z[He][0],Fe=z[He][1],Q=!1;if(!this._indices){var fe=0;if(ce===1){for(var Je=this._storage[Y[0]],ne=0;ne<this._chunkCount;ne++)for(var X=Je[ne],G=Math.min(this._count-ne*this._chunkSize,this._chunkSize),te=0;te<G;te++){var we=X[te];(we>=ge&&we<=Fe||isNaN(we))&&(Ee[Le++]=fe),fe++}Q=!0}else if(ce===2){for(var Je=this._storage[He],he=this._storage[Y[1]],Pe=z[Y[1]][0],Oe=z[Y[1]][1],ne=0;ne<this._chunkCount;ne++)for(var X=Je[ne],le=he[ne],G=Math.min(this._count-ne*this._chunkSize,this._chunkSize),te=0;te<G;te++){var we=X[te],me=le[te];(we>=ge&&we<=Fe||isNaN(we))&&(me>=Pe&&me<=Oe||isNaN(me))&&(Ee[Le++]=fe),fe++}Q=!0}}if(!Q)if(ce===1)for(var te=0;te<ie;te++){var _e=this.getRawIndex(te),we=this._getFast(He,_e);(we>=ge&&we<=Fe||isNaN(we))&&(Ee[Le++]=_e)}else for(var te=0;te<ie;te++){for(var $e=!0,_e=this.getRawIndex(te),ne=0;ne<ce;ne++){var gt=Y[ne],we=this._getFast(q,_e);(we<z[gt][0]||we>z[gt][1])&&($e=!1)}$e&&(Ee[Le++]=this.getRawIndex(te))}return Le<ie&&(this._indices=Ee),this._count=Le,this._extent={},this.getRawIndex=this._indices?N:D,this},b.mapArray=function(z,Y,q,ce){"use strict";typeof z=="function"&&(ce=q,q=Y,Y=z,z=[]),q=q||ce||this;var ie=[];return this.each(z,function(){ie.push(Y&&Y.apply(this,arguments))},q),ie};function H(z,Y){var q=z.dimensions,ce=new S(C.map(q,z.getDimensionInfo,z),z.hostModel);T(ce,z);for(var ie=ce._storage={},ve=z._storage,Ee=0;Ee<q.length;Ee++){var Le=q[Ee];ve[Le]&&(C.indexOf(Y,Le)>=0?(ie[Le]=F(ve[Le]),ce._rawExtent[Le]=K(),ce._extent[Le]=null):ie[Le]=ve[Le])}return ce}function F(z){for(var Y=new Array(z.length),q=0;q<z.length;q++)Y[q]=A(z[q]);return Y}function K(){return[Infinity,-Infinity]}b.map=function(z,Y,q,ce){"use strict";q=q||ce||this,z=C.map(B(z),this.getDimension,this);var ie=H(this,z);ie._indices=this._indices,ie.getRawIndex=ie._indices?N:D;for(var ve=ie._storage,Ee=[],Le=this._chunkSize,He=z.length,ge=this.count(),Fe=[],Q=ie._rawExtent,fe=0;fe<ge;fe++){for(var Je=0;Je<He;Je++)Fe[Je]=this.get(z[Je],fe);Fe[He]=fe;var ne=Y&&Y.apply(q,Fe);if(ne!=null){typeof ne!="object"&&(Ee[0]=ne,ne=Ee);for(var X=this.getRawIndex(fe),G=Math.floor(X/Le),te=X%Le,we=0;we<ne.length;we++){var he=z[we],Pe=ne[we],Oe=Q[he],le=ve[he];le&&(le[G][te]=Pe),Pe<Oe[0]&&(Oe[0]=Pe),Pe>Oe[1]&&(Oe[1]=Pe)}}}return ie},b.downSample=function(z,Y,q,ce){for(var ie=H(this,[z]),ve=ie._storage,Ee=[],Le=Math.floor(1/Y),He=ve[z],ge=this.count(),Fe=this._chunkSize,Q=ie._rawExtent[z],fe=new(g(this))(ge),Je=0,ne=0;ne<ge;ne+=Le){Le>ge-ne&&(Le=ge-ne,Ee.length=Le);for(var X=0;X<Le;X++){var G=this.getRawIndex(ne+X),te=Math.floor(G/Fe),we=G%Fe;Ee[X]=He[te][we]}var he=q(Ee),Pe=this.getRawIndex(Math.min(ne+ce(Ee,he)||0,ge-1)),Oe=Math.floor(Pe/Fe),le=Pe%Fe;He[Oe][le]=he,he<Q[0]&&(Q[0]=he),he>Q[1]&&(Q[1]=he),fe[Je++]=Pe}return ie._count=Je,ie._indices=fe,ie.getRawIndex=N,ie},b.getItemModel=function(z){var Y=this.hostModel;return new v(this.getRawDataItem(z),Y,Y&&Y.ecModel)},b.diff=function(z){var Y=this;return new w(z?z.getIndices():[],this.getIndices(),function(q){return M(z,q)},function(q){return M(Y,q)})},b.getVisual=function(z){var Y=this._visual;return Y&&Y[z]},b.setVisual=function(z,Y){if(e(z)){for(var q in z)z.hasOwnProperty(q)&&this.setVisual(q,z[q]);return}this._visual=this._visual||{},this._visual[z]=Y},b.setLayout=function(z,Y){if(e(z)){for(var q in z)z.hasOwnProperty(q)&&this.setLayout(q,z[q]);return}this._layout[z]=Y},b.getLayout=function(z){return this._layout[z]},b.getItemLayout=function(z){return this._itemLayouts[z]},b.setItemLayout=function(z,Y,q){this._itemLayouts[z]=q?C.extend(this._itemLayouts[z]||{},Y):Y},b.clearItemLayouts=function(){this._itemLayouts.length=0},b.getItemVisual=function(z,Y,q){var ce=this._itemVisuals[z],ie=ce&&ce[Y];return ie==null&&!q?this.getVisual(Y):ie},b.setItemVisual=function(z,Y,q){var ce=this._itemVisuals[z]||{},ie=this.hasItemVisual;if(this._itemVisuals[z]=ce,e(Y)){for(var ve in Y)Y.hasOwnProperty(ve)&&(ce[ve]=Y[ve],ie[ve]=!0);return}ce[Y]=q,ie[Y]=!0},b.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var U=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};b.setItemGraphicEl=function(z,Y){var q=this.hostModel;Y&&(Y.dataIndex=z,Y.dataType=this.dataType,Y.seriesIndex=q&&q.seriesIndex,Y.type==="group"&&Y.traverse(U,Y)),this._graphicEls[z]=Y},b.getItemGraphicEl=function(z){return this._graphicEls[z]},b.eachItemGraphicEl=function(z,Y){C.each(this._graphicEls,function(q,ce){q&&(z&&z.call(Y,q,ce))})},b.cloneShallow=function(z){if(!z){var Y=C.map(this.dimensions,this.getDimensionInfo,this);z=new S(Y,this.hostModel)}if(z._storage=this._storage,T(z,this),this._indices){var q=this._indices.constructor;z._indices=new q(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?N:D,z},b.wrapMethod=function(z,Y){var q=this[z];if(typeof q!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var ce=q.apply(this,arguments);return Y.apply(this,[ce].concat(C.slice(arguments)))}},b.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],b.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=S;j.exports=V},YgsL:function(j,P,d){var O=d("QBsz"),E=O.distance;function C(w,m,h,c,i,r,o){var n=(h-w)*.5,e=(c-m)*.5;return(2*(m-h)+n+e)*o+(-3*(m-h)-2*n-e)*r+n*i+m}function v(w,m){for(var h=w.length,c=[],i=0,r=1;r<h;r++)i+=E(w[r-1],w[r]);var o=i/2;o=o<h?h:o;for(var r=0;r<o;r++){var n=r/(o-1)*(m?h:h-1),e=Math.floor(n),s=n-e,t,a=w[e%h],l,u;m?(t=w[(e-1+h)%h],l=w[(e+1)%h],u=w[(e+2)%h]):(t=w[e===0?e:e-1],l=w[e>h-2?h-1:e+1],u=w[e>h-3?h-1:e+2]);var f=s*s,p=s*f;c.push([C(t[0],a[0],l[0],u[0],s,f,p),C(t[1],a[1],l[1],u[1],s,f,p)])}return c}j.exports=v},Yl7c:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=".",w="___EC__COMPONENT__CONTAINER___";function m(t){var a={main:"",sub:""};return t&&(t=t.split(v),a.main=t[0]||"",a.sub=t[1]||""),a}function h(t){C.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t,a){t.$constructor=t,t.extend=function(l){var u=this,f=function(){l.$constructor?l.$constructor.apply(this,arguments):u.apply(this,arguments)};return C.extend(f.prototype,l),f.extend=this.extend,f.superCall=o,f.superApply=n,C.inherits(f,this),f.superClass=u,f}}var i=0;function r(t){var a=["__\0is_clz",i++,Math.random().toFixed(3)].join("_");t.prototype[a]=!0,t.isInstance=function(l){return!!(l&&l[a])}}function o(t,a){var l=C.slice(arguments,2);return this.superClass.prototype[a].apply(t,l)}function n(t,a,l){return this.superClass.prototype[a].apply(t,l)}function e(t,a){a=a||{};var l={};t.registerClass=function(p,g){if(g){if(h(g),g=m(g),!g.sub)l[g.main]=p;else if(g.sub!==w){var A=u(g);A[g.sub]=p}}return p},t.getClass=function(p,g,A){var y=l[p];if(y&&y[w]&&(y=g?y[g]:null),A&&!y)throw new Error(g?"Component "+p+"."+(g||"")+" not exists. Load it first.":p+".type should be specified.");return y},t.getClassesByMainType=function(p){p=m(p);var g=[],A=l[p.main];return A&&A[w]?C.each(A,function(y,x){x!==w&&g.push(y)}):g.push(A),g},t.hasClass=function(p){return p=m(p),!!l[p.main]},t.getAllClassMainTypes=function(){var p=[];return C.each(l,function(g,A){p.push(A)}),p},t.hasSubTypes=function(p){p=m(p);var g=l[p.main];return g&&g[w]},t.parseClassType=m;function u(p){var g=l[p.main];return(!g||!g[w])&&(g=l[p.main]={},g[w]=!0),g}if(a.registerWhenExtend){var f=t.extend;f&&(t.extend=function(p){var g=f.call(this,p);return t.registerClass(g,p.type)})}return t}function s(t,a){}P.parseClassType=m,P.enableClassExtend=c,P.enableClassCheck=r,P.enableClassManagement=e,P.setReadOnly=s},Ynxi:function(j,P,d){var O=d("bYtY"),E=d("ProS"),C=d("IwbS"),v=d("+TT/"),w=v.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,i,r){if(this.group.removeAll(),!c.get("show"))return;var o=this.group,n=c.getModel("textStyle"),e=c.getModel("subtextStyle"),s=c.get("textAlign"),t=O.retrieve2(c.get("textBaseline"),c.get("textVerticalAlign")),a=new C.Text({style:C.setTextStyle({},n,{text:c.get("text"),textFill:n.getTextColor()},{disableBox:!0}),z2:10}),l=a.getBoundingRect(),u=c.get("subtext"),f=new C.Text({style:C.setTextStyle({},e,{text:u,textFill:e.getTextColor(),y:l.height+c.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=c.get("link"),g=c.get("sublink"),A=c.get("triggerEvent",!0);a.silent=!p&&!A,f.silent=!g&&!A,p&&a.on("click",function(){h(p,"_"+c.get("target"))}),g&&f.on("click",function(){h(p,"_"+c.get("subtarget"))}),a.eventData=f.eventData=A?{componentType:"title",componentIndex:c.componentIndex}:null,o.add(a),u&&o.add(f);var y=o.getBoundingRect(),x=c.getBoxLayoutParams();x.width=y.width,x.height=y.height;var T=w(x,{width:r.getWidth(),height:r.getHeight()},c.get("padding"));s||(s=c.get("left")||c.get("right"),s==="middle"&&(s="center"),s==="right"?T.x+=T.width:s==="center"&&(T.x+=T.width/2)),t||(t=c.get("top")||c.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?T.y+=T.height:t==="middle"&&(T.y+=T.height/2),t=t||"top"),o.attr("position",[T.x,T.y]);var S={textAlign:s,textVerticalAlign:t};a.setStyle(S),f.setStyle(S),y=o.getBoundingRect();var b=T.margin,_=c.getItemStyle(["color","opacity"]);_.fill=c.get("backgroundColor");var I=new C.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});o.add(I)}})},Ywus:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("DO2E")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="DeleteOutlined";var c=v.forwardRef(h);P.default=c},Z0Lh:function(j,P,d){"use strict";var O=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var E=O(d("pVnL")),C=O(d("HjOm")),v=O(d("Z6rY")),w={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"]},C.default),timePickerLocale:(0,E.default)({},v.default)};w.lang.ok="\u786E \u5B9A";var m=w;P.default=m},Z1HP:function(j,P,d){var O=d("ycre"),E=d("quyA"),C=d("q4HE");function v(w){return E(w)?C(w):O(w)}j.exports=v},Z1r0:function(j,P){function d(O){var E=O.findComponents({mainType:"legend"});if(!E||!E.length)return;O.eachSeriesByType("graph",function(C){var v=C.getCategoriesData(),w=C.getGraph(),m=w.data,h=v.mapArray(v.getName);m.filterSelf(function(c){var i=m.getItemModel(c),r=i.getShallow("category");if(r!=null){typeof r=="number"&&(r=h[r]);for(var o=0;o<E.length;o++)if(!E[o].isSelected(r))return!1}return!0})},this)}j.exports=d},Z1wy:function(j,P,d){var O=d("ProS");d("ThAp"),d("pmaE"),d("SehX"),d("7uqq");var E=d("zuHt"),C=d("VPsl"),v=d("9u0u"),w=d("lELe"),m=d("d4KN");O.registerLayout(E),O.registerVisual(C),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,v),O.registerPreprocessor(w),m("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(j,P,d){var O=d("MwEJ"),E=d("T4UG"),C=E.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(v,w){return O(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}});j.exports=C},Z6rY:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},E=O;P.default=E},Z8zF:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("IwbS"),m=d("56rv"),h=m.setLabel,c=d("Qxkt"),i=d("tceW"),r=d("y+Vt"),o=d("4fz+"),n=d("iLNv"),e=n.throttle,s=d("sK/D"),t=s.createClipPath,a=d("wr5s"),l=["itemStyle","barBorderWidth"],u=[0,0];v.extend(c.prototype,i);function f(U,V){var z=U.getArea&&U.getArea();if(U.type==="cartesian2d"){var Y=U.getBaseAxis();if(Y.type!=="category"||!Y.onBand){var q=V.getLayout("bandWidth");Y.isHorizontal()?(z.x-=q,z.width+=q*2):(z.y-=q,z.height+=q*2)}}return z}var p=C.extendChartView({type:"bar",render:function(U,V,z){this._updateDrawMode(U);var Y=U.get("coordinateSystem");return(Y==="cartesian2d"||Y==="polar")&&(this._isLargeDraw?this._renderLarge(U,V,z):this._renderNormal(U,V,z)),this.group},incrementalPrepareRender:function(U,V,z){this._clear(),this._updateDrawMode(U)},incrementalRender:function(U,V,z,Y){this._incrementalRenderLarge(U,V)},_updateDrawMode:function(U){var V=U.pipelineContext.large;(this._isLargeDraw==null||V^this._isLargeDraw)&&(this._isLargeDraw=V,this._clear())},_renderNormal:function(U,V,z){var Y=this.group,q=U.getData(),ce=this._data,ie=U.coordinateSystem,ve=ie.getBaseAxis(),Ee;ie.type==="cartesian2d"?Ee=ve.isHorizontal():ie.type==="polar"&&(Ee=ve.dim==="angle");var Le=U.isAnimationEnabled()?U:null,He=U.get("clip",!0),ge=f(ie,q);Y.removeClipPath();var Fe=U.get("roundCap",!0),Q=U.get("showBackground",!0),fe=U.getModel("backgroundStyle"),Je=fe.get("barBorderRadius")||0,ne=[],X=this._backgroundEls||[];q.diff(ce).add(function(we){var he=q.getItemModel(we),Pe=b[ie.type](q,we,he);if(Q){var Oe=b[ie.type](q,we),le=K(ie,Ee,Oe);le.useStyle(fe.getBarItemStyle()),ie.type==="cartesian2d"&&le.setShape("r",Je),ne[we]=le}if(!q.hasValue(we))return;if(He){var me=y[ie.type](ge,Pe);if(me){Y.remove(_e);return}}var _e=x[ie.type](we,Pe,Ee,Le,!1,Fe);q.setItemGraphicEl(we,_e),Y.add(_e),I(_e,q,we,he,Pe,U,Ee,ie.type==="polar")}).update(function(we,he){var Pe=q.getItemModel(we),Oe=b[ie.type](q,we,Pe);if(Q){var le=X[he];le.useStyle(fe.getBarItemStyle()),ie.type==="cartesian2d"&&le.setShape("r",Je),ne[we]=le;var me=b[ie.type](q,we),_e=F(Ee,me,ie);w.updateProps(le,{shape:_e},Le,we)}var $e=ce.getItemGraphicEl(he);if(!q.hasValue(we)){Y.remove($e);return}if(He){var gt=y[ie.type](ge,Oe);if(gt){Y.remove($e);return}}$e?w.updateProps($e,{shape:Oe},Le,we):$e=x[ie.type](we,Oe,Ee,Le,!0,Fe),q.setItemGraphicEl(we,$e),Y.add($e),I($e,q,we,Pe,Oe,U,Ee,ie.type==="polar")}).remove(function(we){var he=ce.getItemGraphicEl(we);ie.type==="cartesian2d"?he&&T(we,Le,he):he&&S(we,Le,he)}).execute();var G=this._backgroundGroup||(this._backgroundGroup=new o);G.removeAll();for(var te=0;te<ne.length;++te)G.add(ne[te]);Y.add(G),this._backgroundEls=ne,this._data=q},_renderLarge:function(U,V,z){this._clear(),N(U,this.group);var Y=U.get("clip",!0)?t(U.coordinateSystem,!1,U):null;Y?this.group.setClipPath(Y):this.group.removeClipPath()},_incrementalRenderLarge:function(U,V){this._removeBackground(),N(V,this.group,!0)},dispose:v.noop,remove:function(U){this._clear(U)},_clear:function(U){var V=this.group,z=this._data;U&&U.get("animation")&&z&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],z.eachItemGraphicEl(function(Y){Y.type==="sector"?S(Y.dataIndex,U,Y):T(Y.dataIndex,U,Y)})):V.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),g=Math.max,A=Math.min,y={cartesian2d:function(U,V){var z=V.width<0?-1:1,Y=V.height<0?-1:1;z<0&&(V.x+=V.width,V.width=-V.width),Y<0&&(V.y+=V.height,V.height=-V.height);var q=g(V.x,U.x),ce=A(V.x+V.width,U.x+U.width),ie=g(V.y,U.y),ve=A(V.y+V.height,U.y+U.height);V.x=q,V.y=ie,V.width=ce-q,V.height=ve-ie;var Ee=V.width<0||V.height<0;return z<0&&(V.x+=V.width,V.width=-V.width),Y<0&&(V.y+=V.height,V.height=-V.height),Ee},polar:function(U){return!1}},x={cartesian2d:function(U,V,z,Y,q){var ce=new w.Rect({shape:v.extend({},V),z2:1});if(ce.name="item",Y){var ie=ce.shape,ve=z?"height":"width",Ee={};ie[ve]=0,Ee[ve]=V[ve],w[q?"updateProps":"initProps"](ce,{shape:Ee},Y,U)}return ce},polar:function(U,V,z,Y,q,ce){var ie=V.startAngle<V.endAngle,ve=!z&&ce?a:w.Sector,Ee=new ve({shape:v.defaults({clockwise:ie},V),z2:1});if(Ee.name="item",Y){var Le=Ee.shape,He=z?"r":"endAngle",ge={};Le[He]=z?0:V.startAngle,ge[He]=V[He],w[q?"updateProps":"initProps"](Ee,{shape:ge},Y,U)}return Ee}};function T(U,V,z){z.style.text=null,w.updateProps(z,{shape:{width:0}},V,U,function(){z.parent&&z.parent.remove(z)})}function S(U,V,z){z.style.text=null,w.updateProps(z,{shape:{r:z.shape.r0}},V,U,function(){z.parent&&z.parent.remove(z)})}var b={cartesian2d:function(U,V,z){var Y=U.getItemLayout(V),q=z?L(z,Y):0,ce=Y.width>0?1:-1,ie=Y.height>0?1:-1;return{x:Y.x+ce*q/2,y:Y.y+ie*q/2,width:Y.width-ce*q,height:Y.height-ie*q}},polar:function(U,V,z){var Y=U.getItemLayout(V);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 I(U,V,z,Y,q,ce,ie,ve){var Ee=V.getItemVisual(z,"color"),Le=V.getItemVisual(z,"opacity"),He=V.getVisual("borderColor"),ge=Y.getModel("itemStyle"),Fe=Y.getModel("emphasis.itemStyle").getBarItemStyle();ve||U.setShape("r",ge.get("barBorderRadius")||0),U.useStyle(v.defaults({stroke:_(q)?"none":He,fill:_(q)?"none":Ee,opacity:Le},ge.getBarItemStyle()));var Q=Y.getShallow("cursor");Q&&U.attr("cursor",Q);var fe=ie?q.height>0?"bottom":"top":q.width>0?"left":"right";ve||h(U.style,Fe,Y,Ee,ce,z,fe),_(q)&&(Fe.fill=Fe.stroke="none"),w.setHoverStyle(U,Fe)}function L(U,V){var z=U.get(l)||0,Y=isNaN(V.width)?Number.MAX_VALUE:Math.abs(V.width),q=isNaN(V.height)?Number.MAX_VALUE:Math.abs(V.height);return Math.min(z,Y,q)}var D=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(U,V){for(var z=V.points,Y=this.__startPoint,q=this.__baseDimIdx,ce=0;ce<z.length;ce+=2)Y[q]=z[ce+q],U.moveTo(Y[0],Y[1]),U.lineTo(z[ce],z[ce+1])}});function N(U,V,z){var Y=U.getData(),q=[],ce=Y.getLayout("valueAxisHorizontal")?1:0;q[1-ce]=Y.getLayout("valueAxisStart");var ie=Y.getLayout("largeDataIndices"),ve=Y.getLayout("barWidth"),Ee=U.getModel("backgroundStyle"),Le=U.get("showBackground",!0);if(Le){var He=Y.getLayout("largeBackgroundPoints"),ge=[];ge[1-ce]=Y.getLayout("backgroundStart");var Fe=new D({shape:{points:He},incremental:!!z,__startPoint:ge,__baseDimIdx:ce,__largeDataIndices:ie,__barWidth:ve,silent:!0,z2:0});H(Fe,Ee,Y),V.add(Fe)}var Q=new D({shape:{points:Y.getLayout("largePoints")},incremental:!!z,__startPoint:q,__baseDimIdx:ce,__largeDataIndices:ie,__barWidth:ve});V.add(Q),R(Q,U,Y),Q.seriesIndex=U.seriesIndex,U.get("silent")||(Q.on("mousedown",M),Q.on("mousemove",M))}var M=e(function(U){var V=this,z=B(V,U.offsetX,U.offsetY);V.dataIndex=z>=0?z:null},30,!1);function B(U,V,z){var Y=U.__baseDimIdx,q=1-Y,ce=U.shape.points,ie=U.__largeDataIndices,ve=Math.abs(U.__barWidth/2),Ee=U.__startPoint[q];u[0]=V,u[1]=z;for(var Le=u[Y],He=u[1-Y],ge=Le-ve,Fe=Le+ve,Q=0,fe=ce.length/2;Q<fe;Q++){var Je=Q*2,ne=ce[Je+Y],X=ce[Je+q];if(ne>=ge&&ne<=Fe&&(Ee<=X?He>=Ee&&He<=X:He>=X&&He<=Ee))return ie[Q]}return-1}function R(U,V,z){var Y=z.getVisual("borderColor")||z.getVisual("color"),q=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);U.useStyle(q),U.style.fill=null,U.style.stroke=Y,U.style.lineWidth=z.getLayout("barWidth")}function H(U,V,z){var Y=V.get("borderColor")||V.get("color"),q=V.getItemStyle(["color","borderColor"]);U.useStyle(q),U.style.fill=null,U.style.stroke=Y,U.style.lineWidth=z.getLayout("barWidth")}function F(U,V,z){var Y,q=z.type==="polar";return q?Y=z.getArea():Y=z.grid.getRect(),q?{cx:Y.cx,cy:Y.cy,r0:U?Y.r0:V.r0,r:U?Y.r:V.r,startAngle:U?V.startAngle:0,endAngle:U?V.endAngle:Math.PI*2}:{x:U?V.x:Y.x,y:U?Y.y:V.y,width:U?V.width:Y.width,height:U?Y.height:V.height}}function K(U,V,z){var Y=U.type==="polar"?w.Sector:w.Rect;return new Y({shape:F(V,z,U),silent:!0,z2:0})}j.exports=p},ZCgT:function(j,P,d){var O=d("tLB3"),E=1/0,C=17976931348623157e292;function v(w){if(!w)return w===0?w:0;if(w=O(w),w===E||w===-E){var m=w<0?-1:1;return m*C}return w===w?w:0}j.exports=v},ZLWo:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},ZMnZ:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("2oIt")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="UpOutlined";var c=v.forwardRef(h);P.default=c},ZTPi:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("q1tI"),m=d("rePB"),h=d("ODXe"),c=d("Ff2n"),i=d("VTBJ"),r=d("TSYQ"),o=d.n(r),n=d("Zm9Q"),e=d("6cGi"),s=d("KQm4"),t=d("xEkU"),a=d.n(t),l=d("1OyB"),u=d("vuIU"),f=d("Ji7U"),p=d("LK+K"),g=d("m+aA"),A=d("Kwbf"),y=d("c+Xe"),x=d("bdgK"),T="rc-observer-key",S=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(){var qr;return Object(l.a)(this,Pn),qr=An.apply(this,arguments),qr.resizeObserver=null,qr.childNode=null,qr.currentElement=null,qr.state={width:0,height:0,offsetHeight:0,offsetWidth:0},qr.onResize=function(er){var Dr=qr.props.onResize,lr=er[0].target,on=lr.getBoundingClientRect(),fn=on.width,Wn=on.height,Dn=lr.offsetWidth,Jn=lr.offsetHeight,Ti=Math.floor(fn),xi=Math.floor(Wn);if(qr.state.width!==Ti||qr.state.height!==xi||qr.state.offsetWidth!==Dn||qr.state.offsetHeight!==Jn){var Bi={width:Ti,height:xi,offsetWidth:Dn,offsetHeight:Jn};qr.setState(Bi),Dr&&Promise.resolve().then(function(){Dr(Object(i.a)(Object(i.a)({},Bi),{},{offsetWidth:Dn,offsetHeight:Jn}))})}},qr.setChildNode=function(er){qr.childNode=er},qr}return Object(u.a)(Pn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var er=this.props.disabled;if(er){this.destroyObserver();return}var Dr=Object(g.a)(this.childNode||this),lr=Dr!==this.currentElement;lr&&(this.destroyObserver(),this.currentElement=Dr),!this.resizeObserver&&Dr&&(this.resizeObserver=new x.default(this.onResize),this.resizeObserver.observe(Dr))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var er=this.props.children,Dr=Object(n.a)(er);if(Dr.length>1)Object(A.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Dr.length===0)return Object(A.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var lr=Dr[0];if(w.isValidElement(lr)&&Object(y.c)(lr)){var on=lr.ref;Dr[0]=w.cloneElement(lr,{ref:Object(y.a)(on,this.setChildNode)})}return Dr.length===1?Dr[0]:Dr.map(function(fn,Wn){return!w.isValidElement(fn)||"key"in fn&&fn.key!==null?fn:w.cloneElement(fn,{key:"".concat(T,"-").concat(Wn)})})}}]),Pn}(w.Component);S.displayName="ResizeObserver";var b=S;function _(Pr){var An=Object(w.useRef)(),Pn=Object(w.useRef)(!1);function qr(){for(var er=arguments.length,Dr=new Array(er),lr=0;lr<er;lr++)Dr[lr]=arguments[lr];Pn.current||(a.a.cancel(An.current),An.current=a()(function(){Pr.apply(void 0,Dr)}))}return Object(w.useEffect)(function(){return function(){Pn.current=!0,a.a.cancel(An.current)}},[]),qr}function I(Pr){var An=Object(w.useRef)([]),Pn=Object(w.useState)({}),qr=Object(h.a)(Pn,2),er=qr[1],Dr=Object(w.useRef)(typeof Pr=="function"?Pr():Pr),lr=_(function(){var fn=Dr.current;An.current.forEach(function(Wn){fn=Wn(fn)}),An.current=[],Dr.current=fn,er({})});function on(fn){An.current.push(fn),lr()}return[Dr.current,on]}var L=d("4IlW");function D(Pr,An){var Pn,qr=Pr.prefixCls,er=Pr.id,Dr=Pr.active,lr=Pr.rtl,on=Pr.tab,fn=on.key,Wn=on.tab,Dn=on.disabled,Jn=on.closeIcon,Ti=Pr.tabBarGutter,xi=Pr.tabPosition,Bi=Pr.closable,ea=Pr.renderWrapper,Ha=Pr.removeAriaLabel,Qa=Pr.editable,io=Pr.onClick,Ja=Pr.onRemove,Ga=Pr.onFocus,Ra="".concat(qr,"-tab");w.useEffect(function(){return Ja},[]);var ia={};xi==="top"||xi==="bottom"?ia[lr?"marginLeft":"marginRight"]=Ti:ia.marginBottom=Ti;var qe=Qa&&Bi!==!1&&!Dn;function rr(pn){if(Dn)return;io(pn)}function Rr(pn){pn.preventDefault(),pn.stopPropagation(),Qa.onEdit("remove",{key:fn,event:pn})}var Cr=w.createElement("div",{key:fn,ref:An,className:o()(Ra,(Pn={},Object(m.a)(Pn,"".concat(Ra,"-with-remove"),qe),Object(m.a)(Pn,"".concat(Ra,"-active"),Dr),Object(m.a)(Pn,"".concat(Ra,"-disabled"),Dn),Pn)),style:ia,onClick:rr},w.createElement("div",{role:"tab","aria-selected":Dr,id:er&&"".concat(er,"-tab-").concat(fn),className:"".concat(Ra,"-btn"),"aria-controls":er&&"".concat(er,"-panel-").concat(fn),"aria-disabled":Dn,tabIndex:Dn?null:0,onClick:function(Vr){Vr.stopPropagation(),rr(Vr)},onKeyDown:function(Vr){[L.a.SPACE,L.a.ENTER].includes(Vr.which)&&(Vr.preventDefault(),rr(Vr))},onFocus:Ga},Wn),qe&&w.createElement("button",{type:"button","aria-label":Ha||"remove",tabIndex:0,className:"".concat(Ra,"-remove"),onClick:function(Vr){Vr.stopPropagation(),Rr(Vr)}},Jn||Qa.removeIcon||"\xD7"));return ea&&(Cr=ea(Cr)),Cr}var N=w.forwardRef(D),M={width:0,height:0,left:0,top:0};function B(Pr,An,Pn){return Object(w.useMemo)(function(){for(var qr,er=new Map,Dr=An.get((qr=Pr[0])===null||qr===void 0?void 0:qr.key)||M,lr=Dr.left+Dr.width,on=0;on<Pr.length;on+=1){var fn=Pr[on].key,Wn=An.get(fn);if(!Wn){var Dn;Wn=An.get((Dn=Pr[on-1])===null||Dn===void 0?void 0:Dn.key)||M}var Jn=er.get(fn)||Object(i.a)({},Wn);Jn.right=lr-Jn.left-Jn.width,er.set(fn,Jn)}return er},[Pr.map(function(qr){return qr.key}).join("_"),An,Pn])}var R={width:0,height:0,left:0,top:0,right:0};function H(Pr,An,Pn,qr,er){var Dr=er.tabs,lr=er.tabPosition,on=er.rtl,fn,Wn,Dn;["top","bottom"].includes(lr)?(fn="width",Wn=on?"right":"left",Dn=Math.abs(An.left)):(fn="height",Wn="top",Dn=-An.top);var Jn=An[fn],Ti=Pn[fn],xi=qr[fn],Bi=Jn;return Ti+xi>Jn&&(Bi=Jn-xi),Object(w.useMemo)(function(){if(!Dr.length)return[0,0];for(var ea=Dr.length,Ha=ea,Qa=0;Qa<ea;Qa+=1){var io=Pr.get(Dr[Qa].key)||R;if(io[Wn]+io[fn]>Dn+Bi){Ha=Qa-1;break}}for(var Ja=0,Ga=ea-1;Ga>=0;Ga-=1){var Ra=Pr.get(Dr[Ga].key)||R;if(Ra[Wn]<Dn){Ja=Ga+1;break}}return[Ja,Ha]},[Pr,Dn,Bi,lr,Dr.map(function(ea){return ea.key}).join("_"),on])}var F=d("wx14"),K=d("JX7q"),U=d("I8Z2"),V=d("bT9E"),z=d("2GS6"),Y=d("Gytx"),q=d.n(Y),ce=d("U8pU"),ie=/iPhone/i,ve=/iPod/i,Ee=/iPad/i,Le=/\bAndroid(?:.+)Mobile\b/i,He=/Android/i,ge=/\bAndroid(?:.+)SD4930UR\b/i,Fe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Q=/Windows Phone/i,fe=/\bWindows(?:.+)ARM\b/i,Je=/BlackBerry/i,ne=/BB10/i,X=/Opera Mini/i,G=/\b(CriOS|Chrome)(?:.+)Mobile/i,te=/Mobile(?:.+)Firefox\b/i;function we(Pr,An){return Pr.test(An)}function he(Pr){var An=Pr||(typeof navigator!="undefined"?navigator.userAgent:""),Pn=(An||"").split("[FBAN");if(typeof Pn[1]!="undefined"){var qr=Pn,er=Object(h.a)(qr,1);An=er[0]}if(Pn=An.split("Twitter"),typeof Pn[1]!="undefined"){var Dr=Pn,lr=Object(h.a)(Dr,1);An=lr[0]}var on={apple:{phone:we(ie,An)&&!we(Q,An),ipod:we(ve,An),tablet:!we(ie,An)&&we(Ee,An)&&!we(Q,An),device:(we(ie,An)||we(ve,An)||we(Ee,An))&&!we(Q,An)},amazon:{phone:we(ge,An),tablet:!we(ge,An)&&we(Fe,An),device:we(ge,An)||we(Fe,An)},android:{phone:!we(Q,An)&&we(ge,An)||!we(Q,An)&&we(Le,An),tablet:!we(Q,An)&&!we(ge,An)&&!we(Le,An)&&(we(Fe,An)||we(He,An)),device:!we(Q,An)&&(we(ge,An)||we(Fe,An)||we(Le,An)||we(He,An))||we(/\bokhttp\b/i,An)},windows:{phone:we(Q,An),tablet:we(fe,An),device:we(Q,An)||we(fe,An)},other:{blackberry:we(Je,An),blackberry10:we(ne,An),opera:we(X,An),firefox:we(te,An),chrome:we(G,An),device:we(Je,An)||we(ne,An)||we(X,An)||we(te,An)||we(G,An)},any:null,phone:null,tablet:null};return on.any=on.apple.device||on.android.device||on.windows.device||on.other.device,on.phone=on.apple.phone||on.android.phone||on.windows.phone,on.tablet=on.apple.tablet||on.android.tablet||on.windows.tablet,on}var Pe=Object(i.a)(Object(i.a)({},he()),{},{isMobile:he}),Oe=Pe;function le(){}function me(Pr,An,Pn){var qr=An||"";return Pr.key||"".concat(qr,"item_").concat(Pn)}function _e(Pr){return"".concat(Pr,"-menu-")}function $e(Pr,An){var Pn=-1;w.Children.forEach(Pr,function(qr){Pn+=1,qr&&qr.type&&qr.type.isMenuItemGroup?w.Children.forEach(qr.props.children,function(er){Pn+=1,An(er,Pn)}):An(qr,Pn)})}function gt(Pr,An,Pn){if(!Pr||Pn.find)return;w.Children.forEach(Pr,function(qr){if(qr){var er=qr.type;if(!er||!(er.isSubMenu||er.isMenuItem||er.isMenuItemGroup))return;An.indexOf(qr.key)!==-1?Pn.find=!0:qr.props.children&&gt(qr.props.children,An,Pn)}})}var et=["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"],Ie=function(An){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qr=An&&typeof An.getBoundingClientRect=="function"&&An.getBoundingClientRect().width;if(qr){if(Pn){var er=getComputedStyle(An),Dr=er.marginLeft,lr=er.marginRight;qr+=+Dr.replace("px","")+ +lr.replace("px","")}qr=+qr.toFixed(6)}return qr||0},rt=function(An,Pn,qr){An&&Object(ce.a)(An.style)==="object"&&(An.style[Pn]=qr)},Ge=function(){return Oe.any},vt=d("i8i4"),Ot=d.n(vt),Et=d("wgJM"),Tt=d("l4aY"),Rt=d("zT1h"),Be=d("QC+M");function Z(Pr,An,Pn){return Pn?Pr[0]===An[0]:Pr[0]===An[0]&&Pr[1]===An[1]}function J(Pr,An,Pn){var qr=Pr[An]||{};return Object(i.a)(Object(i.a)({},qr),Pn)}function je(Pr,An,Pn,qr){for(var er=Pn.points,Dr=Object.keys(Pr),lr=0;lr<Dr.length;lr+=1){var on=Dr[lr];if(Z(Pr[on].points,er,qr))return"".concat(An,"-placement-").concat(on)}return""}var Re=d("5Z9U"),oe=d("MNnm");function yt(Pr,An){var Pn={};return Pn[Pr.toLowerCase()]=An.toLowerCase(),Pn["Webkit".concat(Pr)]="webkit".concat(An),Pn["Moz".concat(Pr)]="moz".concat(An),Pn["ms".concat(Pr)]="MS".concat(An),Pn["O".concat(Pr)]="o".concat(An.toLowerCase()),Pn}function zt(Pr,An){var Pn={animationend:yt("Animation","AnimationEnd"),transitionend:yt("Transition","TransitionEnd")};return Pr&&("AnimationEvent"in An||delete Pn.animationend.animation,"TransitionEvent"in An||delete Pn.transitionend.transition),Pn}var lt=zt(Object(oe.a)(),typeof window!="undefined"?window:{}),$t={};if(Object(oe.a)()){var cr=document.createElement("div");$t=cr.style}var cn={};function pr(Pr){if(cn[Pr])return cn[Pr];var An=lt[Pr];if(An)for(var Pn=Object.keys(An),qr=Pn.length,er=0;er<qr;er+=1){var Dr=Pn[er];if(Object.prototype.hasOwnProperty.call(An,Dr)&&Dr in $t)return cn[Pr]=An[Dr],cn[Pr]}return""}var gr=pr("animationend"),Zt=pr("transitionend"),Vt=!!(gr&&Zt),mt=gr||"animationend",Yr=Zt||"transitionend";function Tn(Pr,An){if(!Pr)return null;if(Object(ce.a)(Pr)==="object"){var Pn=An.replace(/-\w/g,function(qr){return qr[1].toUpperCase()});return Pr[Pn]}return"".concat(Pr,"-").concat(An)}var Hn="none",ei="appear",ji="enter",Ln="leave",Vn="none",kt="prepare",wt="start",Te="active",xe="end";function Ce(Pr){var An=Object(w.useRef)(!1),Pn=Object(w.useState)(Pr),qr=Object(h.a)(Pn,2),er=qr[0],Dr=qr[1];function lr(on){An.current||Dr(on)}return Object(w.useEffect)(function(){return function(){An.current=!0}},[]),[er,lr]}var Ye=Object(oe.a)()?w.useLayoutEffect:w.useEffect,it=Ye,dt=function(){var Pr=w.useRef(null);function An(){Et.a.cancel(Pr.current)}function Pn(qr){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;An();var Dr=Object(Et.a)(function(){er<=1?qr({isCanceled:function(){return Dr!==Pr.current}}):Pn(qr,er-1)});Pr.current=Dr}return w.useEffect(function(){return function(){An()}},[]),[Pn,An]},_t=[kt,wt,Te,xe],vr=!1,kr=!0;function mn(Pr){return Pr===Te||Pr===xe}var Mt=function(Pr,An){var Pn=w.useState(Vn),qr=Object(h.a)(Pn,2),er=qr[0],Dr=qr[1],lr=dt(),on=Object(h.a)(lr,2),fn=on[0],Wn=on[1];function Dn(){Dr(kt)}return it(function(){if(er!==Vn&&er!==xe){var Jn=_t.indexOf(er),Ti=_t[Jn+1],xi=An(er);xi===vr?Dr(Ti):fn(function(Bi){function ea(){if(Bi.isCanceled())return;Dr(Ti)}xi===!0?ea():Promise.resolve(xi).then(ea)})}},[Pr,er]),w.useEffect(function(){return function(){Wn()}},[]),[Dn,er]},nt=function(Pr){var An=Object(w.useRef)(),Pn=Object(w.useRef)(Pr);Pn.current=Pr;var qr=w.useCallback(function(lr){Pn.current(lr)},[]);function er(lr){lr&&(lr.removeEventListener(Yr,qr),lr.removeEventListener(mt,qr))}function Dr(lr){An.current&&An.current!==lr&&er(An.current),lr&&lr!==An.current&&(lr.addEventListener(Yr,qr),lr.addEventListener(mt,qr),An.current=lr)}return w.useEffect(function(){return function(){er(An.current)}},[]),[Dr,er]};function st(Pr,An,Pn,qr){var er=qr.motionEnter,Dr=er===void 0?!0:er,lr=qr.motionAppear,on=lr===void 0?!0:lr,fn=qr.motionLeave,Wn=fn===void 0?!0:fn,Dn=qr.motionDeadline,Jn=qr.motionLeaveImmediately,Ti=qr.onAppearPrepare,xi=qr.onEnterPrepare,Bi=qr.onLeavePrepare,ea=qr.onAppearStart,Ha=qr.onEnterStart,Qa=qr.onLeaveStart,io=qr.onAppearActive,Ja=qr.onEnterActive,Ga=qr.onLeaveActive,Ra=qr.onAppearEnd,ia=qr.onEnterEnd,qe=qr.onLeaveEnd,rr=qr.onVisibleChanged,Rr=Ce(),Cr=Object(h.a)(Rr,2),pn=Cr[0],Vr=Cr[1],br=Ce(Hn),In=Object(h.a)(br,2),Sr=In[0],gn=In[1],$n=Ce(null),qn=Object(h.a)($n,2),Gn=qn[0],mi=qn[1],ti=Object(w.useRef)(!1),ri=Object(w.useRef)(null),li=Object(w.useRef)(!1),Xi=Object(w.useRef)(null);function Pi(){var Cn=Pn();return Cn||Xi.current}var ga=Object(w.useRef)(!1);function tr(Cn){var Nn=Pi();if(Cn&&!Cn.deadline&&Cn.target!==Nn)return;var oi;Sr===ei&&ga.current?oi=Ra==null?void 0:Ra(Nn,Cn):Sr===ji&&ga.current?oi=ia==null?void 0:ia(Nn,Cn):Sr===Ln&&ga.current&&(oi=qe==null?void 0:qe(Nn,Cn)),oi!==!1&&!li.current&&(gn(Hn),mi(null))}var Lt=nt(tr),yr=Object(h.a)(Lt,1),xt=yr[0],Ut=w.useMemo(function(){var Cn,Nn,oi;switch(Sr){case"appear":return Cn={},Object(m.a)(Cn,kt,Ti),Object(m.a)(Cn,wt,ea),Object(m.a)(Cn,Te,io),Cn;case"enter":return Nn={},Object(m.a)(Nn,kt,xi),Object(m.a)(Nn,wt,Ha),Object(m.a)(Nn,Te,Ja),Nn;case"leave":return oi={},Object(m.a)(oi,kt,Bi),Object(m.a)(oi,wt,Qa),Object(m.a)(oi,Te,Ga),oi;default:return{}}},[Sr]),ur=Mt(Sr,function(Cn){if(Cn===kt){var Nn=Ut[kt];return Nn?Nn(Pi()):vr}if(nr in Ut){var oi;mi(((oi=Ut[nr])===null||oi===void 0?void 0:oi.call(Ut,Pi(),null))||null)}return nr===Te&&(xt(Pi()),Dn>0&&(clearTimeout(ri.current),ri.current=setTimeout(function(){tr({deadline:!0})},Dn))),kr}),Ct=Object(h.a)(ur,2),dr=Ct[0],nr=Ct[1],Wr=mn(nr);ga.current=Wr,it(function(){Vr(An);var Cn=ti.current;if(ti.current=!0,!Pr)return;var Nn;!Cn&&An&&on&&(Nn=ei),Cn&&An&&Dr&&(Nn=ji),(Cn&&!An&&Wn||!Cn&&Jn&&!An&&Wn)&&(Nn=Ln),Nn&&(gn(Nn),dr())},[An]),Object(w.useEffect)(function(){(Sr===ei&&!on||Sr===ji&&!Dr||Sr===Ln&&!Wn)&&gn(Hn)},[on,Dr,Wn]),Object(w.useEffect)(function(){return function(){clearTimeout(ri.current),li.current=!0}},[]),Object(w.useEffect)(function(){pn!==void 0&&Sr===Hn&&(rr==null||rr(pn))},[pn,Sr]);var En=Gn;return Ut[kt]&&nr===wt&&(En=Object(i.a)({transition:"none"},En)),[Sr,nr,En,pn!=null?pn:An]}var Xt=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(){return Object(l.a)(this,Pn),An.apply(this,arguments)}return Object(u.a)(Pn,[{key:"render",value:function(){return this.props.children}}]),Pn}(w.Component),Dt=Xt;function St(Pr){var An=Pr;Object(ce.a)(Pr)==="object"&&(An=Pr.transitionSupport);function Pn(er){return!!(er.motionName&&An)}var qr=w.forwardRef(function(er,Dr){var lr=er.visible,on=lr===void 0?!0:lr,fn=er.removeOnLeave,Wn=fn===void 0?!0:fn,Dn=er.forceRender,Jn=er.children,Ti=er.motionName,xi=er.leavedClassName,Bi=er.eventProps,ea=Pn(er),Ha=Object(w.useRef)(),Qa=Object(w.useRef)();function io(){try{return Object(g.a)(Ha.current||Qa.current)}catch(gn){return null}}var Ja=st(ea,on,io,er),Ga=Object(h.a)(Ja,4),Ra=Ga[0],ia=Ga[1],qe=Ga[2],rr=Ga[3],Rr=w.useRef(rr);rr&&(Rr.current=!0);var Cr=Object(w.useRef)(Dr);Cr.current=Dr;var pn=w.useCallback(function(gn){Ha.current=gn,Object(y.b)(Cr.current,gn)},[]),Vr,br=Object(i.a)(Object(i.a)({},Bi),{},{visible:on});if(!Jn)Vr=null;else if(Ra===Hn||!Pn(er))rr?Vr=Jn(Object(i.a)({},br),pn):!Wn&&Rr.current?Vr=Jn(Object(i.a)(Object(i.a)({},br),{},{className:xi}),pn):Dn?Vr=Jn(Object(i.a)(Object(i.a)({},br),{},{style:{display:"none"}}),pn):Vr=null;else{var In,Sr;ia===kt?Sr="prepare":mn(ia)?Sr="active":ia===wt&&(Sr="start"),Vr=Jn(Object(i.a)(Object(i.a)({},br),{},{className:o()(Tn(Ti,Ra),(In={},Object(m.a)(In,Tn(Ti,"".concat(Ra,"-").concat(Sr)),Sr),Object(m.a)(In,Ti,typeof Ti=="string"),In)),style:qe}),pn)}return w.createElement(Dt,{ref:Qa},Vr)});return qr.displayName="CSSMotion",qr}var jt=St(Vt),At="add",Ft="keep",wr="remove",sr="removed";function mr(Pr){var An;return Pr&&Object(ce.a)(Pr)==="object"&&"key"in Pr?An=Pr:An={key:Pr},Object(i.a)(Object(i.a)({},An),{},{key:String(An.key)})}function $r(){var Pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Pr.map(mr)}function rn(){var Pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Pn=[],qr=0,er=An.length,Dr=$r(Pr),lr=$r(An);Dr.forEach(function(Wn){for(var Dn=!1,Jn=qr;Jn<er;Jn+=1){var Ti=lr[Jn];if(Ti.key===Wn.key){qr<Jn&&(Pn=Pn.concat(lr.slice(qr,Jn).map(function(xi){return Object(i.a)(Object(i.a)({},xi),{},{status:At})})),qr=Jn),Pn.push(Object(i.a)(Object(i.a)({},Ti),{},{status:Ft})),qr+=1,Dn=!0;break}}Dn||Pn.push(Object(i.a)(Object(i.a)({},Wn),{},{status:wr}))}),qr<er&&(Pn=Pn.concat(lr.slice(qr).map(function(Wn){return Object(i.a)(Object(i.a)({},Wn),{},{status:At})})));var on={};Pn.forEach(function(Wn){var Dn=Wn.key;on[Dn]=(on[Dn]||0)+1});var fn=Object.keys(on).filter(function(Wn){return on[Wn]>1});return fn.forEach(function(Wn){Pn=Pn.filter(function(Dn){var Jn=Dn.key,Ti=Dn.status;return Jn!==Wn||Ti!==wr}),Pn.forEach(function(Dn){Dn.key===Wn&&(Dn.status=Ft)})}),Pn}var jn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Un(Pr){var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jt,Pn=function(qr){Object(f.a)(Dr,qr);var er=Object(p.a)(Dr);function Dr(){var lr;return Object(l.a)(this,Dr),lr=er.apply(this,arguments),lr.state={keyEntities:[]},lr.removeKey=function(on){lr.setState(function(fn){var Wn=fn.keyEntities;return{keyEntities:Wn.map(function(Dn){return Dn.key!==on?Dn:Object(i.a)(Object(i.a)({},Dn),{},{status:sr})})}})},lr}return Object(u.a)(Dr,[{key:"render",value:function(){var on=this,fn=this.state.keyEntities,Wn=this.props,Dn=Wn.component,Jn=Wn.children,Ti=Wn.onVisibleChanged,xi=Object(c.a)(Wn,["component","children","onVisibleChanged"]),Bi=Dn||w.Fragment,ea={};return jn.forEach(function(Ha){ea[Ha]=xi[Ha],delete xi[Ha]}),delete xi.keys,w.createElement(Bi,xi,fn.map(function(Ha){var Qa=Ha.status,io=Object(c.a)(Ha,["status"]),Ja=Qa===At||Qa===Ft;return w.createElement(An,Object(F.a)({},ea,{key:io.key,visible:Ja,eventProps:io,onVisibleChanged:function(Ra){Ti==null||Ti(Ra,{key:io.key}),Ra||on.removeKey(io.key)}}),Jn)}))}}],[{key:"getDerivedStateFromProps",value:function(on,fn){var Wn=on.keys,Dn=fn.keyEntities,Jn=$r(Wn),Ti=rn(Dn,Jn);return{keyEntities:Ti.filter(function(xi){var Bi=Dn.find(function(ea){var Ha=ea.key;return xi.key===Ha});return!(Bi&&Bi.status===sr&&xi.status===wr)})}}}]),Dr}(w.Component);return Pn.defaultProps={component:"div"},Pn}var ui=Un(Vt),yi=jt;function Ii(Pr){var An=Pr.prefixCls,Pn=Pr.motion,qr=Pr.animation,er=Pr.transitionName;return Pn||(qr?{motionName:"".concat(An,"-").concat(qr)}:er?{motionName:er}:null)}function Gi(Pr){var An=Pr.prefixCls,Pn=Pr.visible,qr=Pr.zIndex,er=Pr.mask,Dr=Pr.maskMotion,lr=Pr.maskAnimation,on=Pr.maskTransitionName;if(!er)return null;var fn={};return(Dr||on||lr)&&(fn=Object(i.a)({motionAppear:!0},Ii({motion:Dr,prefixCls:An,transitionName:on,animation:lr}))),w.createElement(yi,Object(F.a)({},fn,{visible:Pn,removeOnLeave:!0}),function(Wn){var Dn=Wn.className;return w.createElement("div",{style:{zIndex:qr},className:o()("".concat(An,"-mask"),Dn)})})}var Qe=d("9mu1"),be=d("o0o1"),Ne=d.n(be),Ue=d("HaE+"),Xe=["measure","align",null,"motion"],ze=function(Pr,An){var Pn=Object(w.useState)(null),qr=Object(h.a)(Pn,2),er=qr[0],Dr=qr[1],lr=Object(w.useRef)(),on=Object(w.useRef)(!1);function fn(Jn){on.current||Dr(Jn)}function Wn(){Et.a.cancel(lr.current)}function Dn(Jn){Wn(),lr.current=Object(Et.a)(function(){fn(function(Ti){switch(er){case"align":return"motion";case"motion":return"stable";default:}return Ti}),Jn==null||Jn()})}return Object(w.useEffect)(function(){fn("measure")},[Pr]),Object(w.useEffect)(function(){switch(er){case"measure":An();break;default:}er&&(lr.current=Object(Et.a)(Object(Ue.a)(Ne.a.mark(function Jn(){var Ti,xi;return Ne.a.wrap(function(ea){for(;;)switch(ea.prev=ea.next){case 0:Ti=Xe.indexOf(er),xi=Xe[Ti+1],xi&&Ti!==-1&&fn(xi);case 3:case"end":return ea.stop()}},Jn)}))))},[er]),Object(w.useEffect)(function(){return function(){on.current=!0,Wn()}},[]),[er,Dn]},Ze=function(Pr){var An=w.useState({width:0,height:0}),Pn=Object(h.a)(An,2),qr=Pn[0],er=Pn[1];function Dr(on){er({width:on.offsetWidth,height:on.offsetHeight})}var lr=w.useMemo(function(){var on={};if(Pr){var fn=qr.width,Wn=qr.height;Pr.indexOf("height")!==-1&&Wn?on.height=Wn:Pr.indexOf("minHeight")!==-1&&Wn&&(on.minHeight=Wn),Pr.indexOf("width")!==-1&&fn?on.width=fn:Pr.indexOf("minWidth")!==-1&&fn&&(on.minWidth=fn)}return on},[Pr,qr]);return[lr,Dr]},bt=w.forwardRef(function(Pr,An){var Pn=Pr.visible,qr=Pr.prefixCls,er=Pr.className,Dr=Pr.style,lr=Pr.children,on=Pr.zIndex,fn=Pr.stretch,Wn=Pr.destroyPopupOnHide,Dn=Pr.forceRender,Jn=Pr.align,Ti=Pr.point,xi=Pr.getRootDomNode,Bi=Pr.getClassNameFromAlign,ea=Pr.onAlign,Ha=Pr.onMouseEnter,Qa=Pr.onMouseLeave,io=Pr.onMouseDown,Ja=Pr.onTouchStart,Ga=Object(w.useRef)(),Ra=Object(w.useRef)(),ia=Object(w.useState)(),qe=Object(h.a)(ia,2),rr=qe[0],Rr=qe[1],Cr=Ze(fn),pn=Object(h.a)(Cr,2),Vr=pn[0],br=pn[1];function In(){fn&&br(xi())}var Sr=ze(Pn,In),gn=Object(h.a)(Sr,2),$n=gn[0],qn=gn[1],Gn=Object(w.useRef)();function mi(){return Ti||xi}function ti(){var Lt;(Lt=Ga.current)===null||Lt===void 0||Lt.forceAlign()}function ri(Lt,yr){var xt=Bi(yr);rr!==xt&&Rr(xt),$n==="align"&&(rr!==xt?Promise.resolve().then(function(){ti()}):qn(function(){var Ut;(Ut=Gn.current)===null||Ut===void 0||Ut.call(Gn)}),ea==null||ea(Lt,yr))}var li=Object(i.a)({},Ii(Pr));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Lt){var yr=li[Lt];li[Lt]=function(xt,Ut){return qn(),yr==null?void 0:yr(xt,Ut)}});function Xi(){return new Promise(function(Lt){Gn.current=Lt})}w.useEffect(function(){!li.motionName&&$n==="motion"&&qn()},[li.motionName,$n]),w.useImperativeHandle(An,function(){return{forceAlign:ti,getElement:function(){return Ra.current}}});var Pi=Object(i.a)(Object(i.a)({},Vr),{},{zIndex:on,opacity:$n==="motion"||$n==="stable"||!Pn?void 0:0,pointerEvents:$n==="stable"?void 0:"none"},Dr),ga=!0;(Jn==null?void 0:Jn.points)&&($n==="align"||$n==="stable")&&(ga=!1);var tr=lr;return w.Children.count(lr)>1&&(tr=w.createElement("div",{className:"".concat(qr,"-content")},lr)),w.createElement(yi,Object(F.a)({visible:Pn,ref:Ra,leavedClassName:"".concat(qr,"-hidden")},li,{onAppearPrepare:Xi,onEnterPrepare:Xi,removeOnLeave:Wn,forceRender:Dn}),function(Lt,yr){var xt=Lt.className,Ut=Lt.style,ur=o()(qr,er,rr,xt);return w.createElement(Qe.a,{target:mi(),key:"popup",ref:Ga,monitorWindowResize:!0,disabled:ga,align:Jn,onAlign:ri},w.createElement("div",{ref:yr,className:ur,onMouseEnter:Ha,onMouseLeave:Qa,onMouseDownCapture:io,onTouchStartCapture:Ja,style:Object(i.a)(Object(i.a)({},Ut),Pi)},tr))})});bt.displayName="PopupInner";var ut=bt,Gt=w.forwardRef(function(Pr,An){var Pn=Pr.prefixCls,qr=Pr.visible,er=Pr.zIndex,Dr=Pr.children,lr=Pr.mobile;lr=lr===void 0?{}:lr;var on=lr.popupClassName,fn=lr.popupStyle,Wn=lr.popupMotion,Dn=Wn===void 0?{}:Wn,Jn=lr.popupRender,Ti=w.useRef();w.useImperativeHandle(An,function(){return{forceAlign:function(){},getElement:function(){return Ti.current}}});var xi=Object(i.a)({zIndex:er},fn),Bi=Dr;return w.Children.count(Dr)>1&&(Bi=w.createElement("div",{className:"".concat(Pn,"-content")},Dr)),Jn&&(Bi=Jn(Bi)),w.createElement(yi,Object(F.a)({visible:qr,ref:Ti,removeOnLeave:!0},Dn),function(ea,Ha){var Qa=ea.className,io=ea.style,Ja=o()(Pn,on,Qa);return w.createElement("div",{ref:Ha,className:Ja,style:Object(i.a)(Object(i.a)({},io),xi)},Bi)})});Gt.displayName="MobilePopupInner";var Mr=Gt,Lr=["visible","mobile"],Gr=w.forwardRef(function(Pr,An){var Pn=Pr.visible,qr=Pr.mobile,er=Object(c.a)(Pr,Lr),Dr=Object(w.useState)(Pn),lr=Object(h.a)(Dr,2),on=lr[0],fn=lr[1],Wn=Object(w.useState)(!1),Dn=Object(h.a)(Wn,2),Jn=Dn[0],Ti=Dn[1],xi=Object(i.a)(Object(i.a)({},er),{},{visible:on});Object(w.useEffect)(function(){fn(Pn),Pn&&qr&&Ti(Object(Re.a)())},[Pn,qr]);var Bi=Jn?w.createElement(Mr,Object(F.a)({},xi,{mobile:qr,ref:An})):w.createElement(ut,Object(F.a)({},xi,{ref:An}));return w.createElement("div",null,w.createElement(Gi,xi),Bi)});Gr.displayName="Popup";var Ht=Gr,hn=w.createContext(null),or=hn;function vn(){}function nn(){return""}function Ur(Pr){return Pr?Pr.ownerDocument:window.document}var ni=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Oi(Pr){var An=function(Pn){Object(f.a)(er,Pn);var qr=Object(p.a)(er);function er(Dr){var lr;Object(l.a)(this,er),lr=qr.call(this,Dr),lr.popupRef=w.createRef(),lr.triggerRef=w.createRef(),lr.attachId=void 0,lr.clickOutsideHandler=void 0,lr.touchOutsideHandler=void 0,lr.contextMenuOutsideHandler1=void 0,lr.contextMenuOutsideHandler2=void 0,lr.mouseDownTimeout=void 0,lr.focusTime=void 0,lr.preClickTime=void 0,lr.preTouchTime=void 0,lr.delayTimer=void 0,lr.hasPopupMouseDown=void 0,lr.onMouseEnter=function(fn){var Wn=lr.props.mouseEnterDelay;lr.fireEvents("onMouseEnter",fn),lr.delaySetPopupVisible(!0,Wn,Wn?null:fn)},lr.onMouseMove=function(fn){lr.fireEvents("onMouseMove",fn),lr.setPoint(fn)},lr.onMouseLeave=function(fn){lr.fireEvents("onMouseLeave",fn),lr.delaySetPopupVisible(!1,lr.props.mouseLeaveDelay)},lr.onPopupMouseEnter=function(){lr.clearDelayTimer()},lr.onPopupMouseLeave=function(fn){var Wn;if(fn.relatedTarget&&!fn.relatedTarget.setTimeout&&Object(Tt.a)((Wn=lr.popupRef.current)===null||Wn===void 0?void 0:Wn.getElement(),fn.relatedTarget))return;lr.delaySetPopupVisible(!1,lr.props.mouseLeaveDelay)},lr.onFocus=function(fn){lr.fireEvents("onFocus",fn),lr.clearDelayTimer(),lr.isFocusToShow()&&(lr.focusTime=Date.now(),lr.delaySetPopupVisible(!0,lr.props.focusDelay))},lr.onMouseDown=function(fn){lr.fireEvents("onMouseDown",fn),lr.preClickTime=Date.now()},lr.onTouchStart=function(fn){lr.fireEvents("onTouchStart",fn),lr.preTouchTime=Date.now()},lr.onBlur=function(fn){lr.fireEvents("onBlur",fn),lr.clearDelayTimer(),lr.isBlurToHide()&&lr.delaySetPopupVisible(!1,lr.props.blurDelay)},lr.onContextMenu=function(fn){fn.preventDefault(),lr.fireEvents("onContextMenu",fn),lr.setPopupVisible(!0,fn)},lr.onContextMenuClose=function(){lr.isContextMenuToShow()&&lr.close()},lr.onClick=function(fn){if(lr.fireEvents("onClick",fn),lr.focusTime){var Wn;if(lr.preClickTime&&lr.preTouchTime?Wn=Math.min(lr.preClickTime,lr.preTouchTime):lr.preClickTime?Wn=lr.preClickTime:lr.preTouchTime&&(Wn=lr.preTouchTime),Math.abs(Wn-lr.focusTime)<20)return;lr.focusTime=0}lr.preClickTime=0,lr.preTouchTime=0,lr.isClickToShow()&&(lr.isClickToHide()||lr.isBlurToHide())&&fn&&fn.preventDefault&&fn.preventDefault();var Dn=!lr.state.popupVisible;(lr.isClickToHide()&&!Dn||Dn&&lr.isClickToShow())&&lr.setPopupVisible(!lr.state.popupVisible,fn)},lr.onPopupMouseDown=function(){if(lr.hasPopupMouseDown=!0,clearTimeout(lr.mouseDownTimeout),lr.mouseDownTimeout=window.setTimeout(function(){lr.hasPopupMouseDown=!1},0),lr.context){var fn;(fn=lr.context).onPopupMouseDown.apply(fn,arguments)}},lr.onDocumentClick=function(fn){if(lr.props.mask&&!lr.props.maskClosable)return;var Wn=fn.target,Dn=lr.getRootDomNode(),Jn=lr.getPopupDomNode();(!Object(Tt.a)(Dn,Wn)||lr.isContextMenuOnly())&&!Object(Tt.a)(Jn,Wn)&&!lr.hasPopupMouseDown&&lr.close()},lr.getRootDomNode=function(){var fn=lr.props.getTriggerDOMNode;if(fn)return fn(lr.triggerRef.current);try{var Wn=Object(g.a)(lr.triggerRef.current);if(Wn)return Wn}catch(Dn){}return Ot.a.findDOMNode(Object(K.a)(lr))},lr.getPopupClassNameFromAlign=function(fn){var Wn=[],Dn=lr.props,Jn=Dn.popupPlacement,Ti=Dn.builtinPlacements,xi=Dn.prefixCls,Bi=Dn.alignPoint,ea=Dn.getPopupClassNameFromAlign;return Jn&&Ti&&Wn.push(je(Ti,xi,fn,Bi)),ea&&Wn.push(ea(fn)),Wn.join(" ")},lr.getComponent=function(){var fn=lr.props,Wn=fn.prefixCls,Dn=fn.destroyPopupOnHide,Jn=fn.popupClassName,Ti=fn.onPopupAlign,xi=fn.popupMotion,Bi=fn.popupAnimation,ea=fn.popupTransitionName,Ha=fn.popupStyle,Qa=fn.mask,io=fn.maskAnimation,Ja=fn.maskTransitionName,Ga=fn.maskMotion,Ra=fn.zIndex,ia=fn.popup,qe=fn.stretch,rr=fn.alignPoint,Rr=fn.mobile,Cr=fn.forceRender,pn=lr.state,Vr=pn.popupVisible,br=pn.point,In=lr.getPopupAlign(),Sr={};return lr.isMouseEnterToShow()&&(Sr.onMouseEnter=lr.onPopupMouseEnter),lr.isMouseLeaveToHide()&&(Sr.onMouseLeave=lr.onPopupMouseLeave),Sr.onMouseDown=lr.onPopupMouseDown,Sr.onTouchStart=lr.onPopupMouseDown,w.createElement(Ht,Object(F.a)({prefixCls:Wn,destroyPopupOnHide:Dn,visible:Vr,point:rr&&br,className:Jn,align:In,onAlign:Ti,animation:Bi,getClassNameFromAlign:lr.getPopupClassNameFromAlign},Sr,{stretch:qe,getRootDomNode:lr.getRootDomNode,style:Ha,mask:Qa,zIndex:Ra,transitionName:ea,maskAnimation:io,maskTransitionName:Ja,maskMotion:Ga,ref:lr.popupRef,motion:xi,mobile:Rr,forceRender:Cr}),typeof ia=="function"?ia():ia)},lr.attachParent=function(fn){Et.a.cancel(lr.attachId);var Wn=lr.props,Dn=Wn.getPopupContainer,Jn=Wn.getDocument,Ti=lr.getRootDomNode(),xi;Dn?(Ti||Dn.length===0)&&(xi=Dn(Ti)):xi=Jn(lr.getRootDomNode()).body,xi?xi.appendChild(fn):lr.attachId=Object(Et.a)(function(){lr.attachParent(fn)})},lr.getContainer=function(){var fn=lr.props.getDocument,Wn=fn(lr.getRootDomNode()).createElement("div");return Wn.style.position="absolute",Wn.style.top="0",Wn.style.left="0",Wn.style.width="100%",lr.attachParent(Wn),Wn},lr.setPoint=function(fn){var Wn=lr.props.alignPoint;if(!Wn||!fn)return;lr.setState({point:{pageX:fn.pageX,pageY:fn.pageY}})},lr.handlePortalUpdate=function(){lr.state.prevPopupVisible!==lr.state.popupVisible&&lr.props.afterPopupVisibleChange(lr.state.popupVisible)},lr.triggerContextValue={onPopupMouseDown:lr.onPopupMouseDown};var on;return"popupVisible"in Dr?on=!!Dr.popupVisible:on=!!Dr.defaultPopupVisible,lr.state={prevPopupVisible:on,popupVisible:on},ni.forEach(function(fn){lr["fire".concat(fn)]=function(Wn){lr.fireEvents(fn,Wn)}}),lr}return Object(u.a)(er,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var lr=this.props,on=this.state;if(on.popupVisible){var fn;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(fn=lr.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Rt.a)(fn,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(fn=fn||lr.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Rt.a)(fn,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(fn=fn||lr.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Rt.a)(fn,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Rt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Et.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var lr;return((lr=this.popupRef.current)===null||lr===void 0?void 0:lr.getElement())||null}},{key:"getPopupAlign",value:function(){var lr=this.props,on=lr.popupPlacement,fn=lr.popupAlign,Wn=lr.builtinPlacements;return on&&Wn?J(Wn,on,fn):fn}},{key:"setPopupVisible",value:function(lr,on){var fn=this.props.alignPoint,Wn=this.state.popupVisible;this.clearDelayTimer(),Wn!==lr&&("popupVisible"in this.props||this.setState({popupVisible:lr,prevPopupVisible:Wn}),this.props.onPopupVisibleChange(lr)),fn&&on&&lr&&this.setPoint(on)}},{key:"delaySetPopupVisible",value:function(lr,on,fn){var Wn=this,Dn=on*1e3;if(this.clearDelayTimer(),Dn){var Jn=fn?{pageX:fn.pageX,pageY:fn.pageY}:null;this.delayTimer=window.setTimeout(function(){Wn.setPopupVisible(lr,Jn),Wn.clearDelayTimer()},Dn)}else this.setPopupVisible(lr,fn)}},{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(lr){var on=this.props.children.props,fn=this.props;return on[lr]&&fn[lr]?this["fire".concat(lr)]:on[lr]||fn[lr]}},{key:"isClickToShow",value:function(){var lr=this.props,on=lr.action,fn=lr.showAction;return on.indexOf("click")!==-1||fn.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var lr=this.props.action;return lr==="contextMenu"||lr.length===1&&lr[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var lr=this.props,on=lr.action,fn=lr.showAction;return on.indexOf("contextMenu")!==-1||fn.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var lr=this.props,on=lr.action,fn=lr.hideAction;return on.indexOf("click")!==-1||fn.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var lr=this.props,on=lr.action,fn=lr.showAction;return on.indexOf("hover")!==-1||fn.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var lr=this.props,on=lr.action,fn=lr.hideAction;return on.indexOf("hover")!==-1||fn.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var lr=this.props,on=lr.action,fn=lr.showAction;return on.indexOf("focus")!==-1||fn.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var lr=this.props,on=lr.action,fn=lr.hideAction;return on.indexOf("focus")!==-1||fn.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var lr;(lr=this.popupRef.current)===null||lr===void 0||lr.forceAlign()}}},{key:"fireEvents",value:function(lr,on){var fn=this.props.children.props[lr];fn&&fn(on);var Wn=this.props[lr];Wn&&Wn(on)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var lr=this.state.popupVisible,on=this.props,fn=on.children,Wn=on.forceRender,Dn=on.alignPoint,Jn=on.className,Ti=on.autoDestroy,xi=w.Children.only(fn),Bi={key:"trigger"};this.isContextMenuToShow()?Bi.onContextMenu=this.onContextMenu:Bi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Bi.onClick=this.onClick,Bi.onMouseDown=this.onMouseDown,Bi.onTouchStart=this.onTouchStart):(Bi.onClick=this.createTwoChains("onClick"),Bi.onMouseDown=this.createTwoChains("onMouseDown"),Bi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Bi.onMouseEnter=this.onMouseEnter,Dn&&(Bi.onMouseMove=this.onMouseMove)):Bi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Bi.onMouseLeave=this.onMouseLeave:Bi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Bi.onFocus=this.onFocus,Bi.onBlur=this.onBlur):(Bi.onFocus=this.createTwoChains("onFocus"),Bi.onBlur=this.createTwoChains("onBlur"));var ea=o()(xi&&xi.props&&xi.props.className,Jn);ea&&(Bi.className=ea);var Ha=Object(i.a)({},Bi);Object(y.c)(xi)&&(Ha.ref=Object(y.a)(this.triggerRef,xi.ref));var Qa=w.cloneElement(xi,Ha),io;return(lr||this.popupRef.current||Wn)&&(io=w.createElement(Pr,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!lr&&Ti&&(io=null),w.createElement(or.Provider,{value:this.triggerContextValue},Qa,io)}}],[{key:"getDerivedStateFromProps",value:function(lr,on){var fn=lr.popupVisible,Wn={};return fn!==void 0&&on.popupVisible!==fn&&(Wn.popupVisible=fn,Wn.prevPopupVisible=on.popupVisible),Wn}}]),er}(w.Component);return An.contextType=or,An.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:nn,getDocument:Ur,onPopupVisibleChange:vn,afterPopupVisibleChange:vn,onPopupAlign:vn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},An}var Hi=Oi(Be.a),Ri={adjustX:1,adjustY:1},Ni={topLeft:{points:["bl","tl"],overflow:Ri,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ri,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ri,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ri,offset:[4,0]}},Yi={topLeft:{points:["bl","tl"],overflow:Ri,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ri,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ri,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ri,offset:[4,0]}},Qr=Ni,On=0,zr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},fr=function(An,Pn,qr){var er=_e(Pn),Dr=An.getState();An.setState({defaultActiveFirst:Object(i.a)(Object(i.a)({},Dr.defaultActiveFirst),{},Object(m.a)({},er,qr))})},Nr=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(qr){var er;Object(l.a)(this,Pn),er=An.call(this,qr),er.onDestroy=function(Dn){er.props.onDestroy(Dn)},er.onKeyDown=function(Dn){var Jn=Dn.keyCode,Ti=er.menuInstance,xi=er.props.store,Bi=er.getVisible();if(Jn===L.a.ENTER)return er.onTitleClick(Dn),fr(xi,er.props.eventKey,!0),!0;if(Jn===L.a.RIGHT)return Bi?Ti.onKeyDown(Dn):(er.triggerOpenChange(!0),fr(xi,er.props.eventKey,!0)),!0;if(Jn===L.a.LEFT){var ea;if(Bi)ea=Ti.onKeyDown(Dn);else return;return ea||(er.triggerOpenChange(!1),ea=!0),ea}return Bi&&(Jn===L.a.UP||Jn===L.a.DOWN)?Ti.onKeyDown(Dn):void 0},er.onOpenChange=function(Dn){er.props.onOpenChange(Dn)},er.onPopupVisibleChange=function(Dn){er.triggerOpenChange(Dn,Dn?"mouseenter":"mouseleave")},er.onMouseEnter=function(Dn){var Jn=er.props,Ti=Jn.eventKey,xi=Jn.onMouseEnter,Bi=Jn.store;fr(Bi,er.props.eventKey,!1),xi({key:Ti,domEvent:Dn})},er.onMouseLeave=function(Dn){var Jn=er.props,Ti=Jn.parentMenu,xi=Jn.eventKey,Bi=Jn.onMouseLeave;Ti.subMenuInstance=Object(K.a)(er),Bi({key:xi,domEvent:Dn})},er.onTitleMouseEnter=function(Dn){var Jn=er.props,Ti=Jn.eventKey,xi=Jn.onItemHover,Bi=Jn.onTitleMouseEnter;xi({key:Ti,hover:!0}),Bi({key:Ti,domEvent:Dn})},er.onTitleMouseLeave=function(Dn){var Jn=er.props,Ti=Jn.parentMenu,xi=Jn.eventKey,Bi=Jn.onItemHover,ea=Jn.onTitleMouseLeave;Ti.subMenuInstance=Object(K.a)(er),Bi({key:xi,hover:!1}),ea({key:xi,domEvent:Dn})},er.onTitleClick=function(Dn){var Jn=Object(K.a)(er),Ti=Jn.props;if(Ti.onTitleClick({key:Ti.eventKey,domEvent:Dn}),Ti.triggerSubMenuAction==="hover")return;er.triggerOpenChange(!er.getVisible(),"click"),fr(Ti.store,er.props.eventKey,!1)},er.onSubMenuClick=function(Dn){typeof er.props.onClick=="function"&&er.props.onClick(er.addKeyPath(Dn))},er.onSelect=function(Dn){er.props.onSelect(Dn)},er.onDeselect=function(Dn){er.props.onDeselect(Dn)},er.getPrefixCls=function(){return"".concat(er.props.rootPrefixCls,"-submenu")},er.getActiveClassName=function(){return"".concat(er.getPrefixCls(),"-active")},er.getDisabledClassName=function(){return"".concat(er.getPrefixCls(),"-disabled")},er.getSelectedClassName=function(){return"".concat(er.getPrefixCls(),"-selected")},er.getOpenClassName=function(){return"".concat(er.props.rootPrefixCls,"-submenu-open")},er.getVisible=function(){return er.state.isOpen},er.getMode=function(){return er.state.mode},er.saveMenuInstance=function(Dn){er.menuInstance=Dn},er.addKeyPath=function(Dn){return Object(i.a)(Object(i.a)({},Dn),{},{keyPath:(Dn.keyPath||[]).concat(er.props.eventKey)})},er.triggerOpenChange=function(Dn,Jn){var Ti=er.props.eventKey,xi=function(){er.onOpenChange({key:Ti,item:Object(K.a)(er),trigger:Jn,open:Dn})};Jn==="mouseenter"?er.mouseenterTimeout=setTimeout(function(){xi()},0):xi()},er.isChildrenSelected=function(){var Dn={find:!1};return gt(er.props.children,er.props.selectedKeys,Dn),Dn.find},er.isInlineMode=function(){return er.getMode()==="inline"},er.adjustWidth=function(){if(!er.subMenuTitle||!er.menuInstance)return;var Dn=vt.findDOMNode(er.menuInstance);if(Dn.offsetWidth>=er.subMenuTitle.offsetWidth)return;Dn.style.minWidth="".concat(er.subMenuTitle.offsetWidth,"px")},er.saveSubMenuTitle=function(Dn){er.subMenuTitle=Dn},er.getBaseProps=function(){var Dn=Object(K.a)(er),Jn=Dn.props,Ti=er.getMode();return{mode:Ti==="horizontal"?"vertical":Ti,visible:er.getVisible(),level:Jn.level+1,inlineIndent:Jn.inlineIndent,focusable:!1,onClick:er.onSubMenuClick,onSelect:er.onSelect,onDeselect:er.onDeselect,onDestroy:er.onDestroy,selectedKeys:Jn.selectedKeys,eventKey:"".concat(Jn.eventKey,"-menu-"),openKeys:Jn.openKeys,motion:Jn.motion,onOpenChange:er.onOpenChange,subMenuOpenDelay:Jn.subMenuOpenDelay,parentMenu:Object(K.a)(er),subMenuCloseDelay:Jn.subMenuCloseDelay,forceSubMenuRender:Jn.forceSubMenuRender,triggerSubMenuAction:Jn.triggerSubMenuAction,builtinPlacements:Jn.builtinPlacements,defaultActiveFirst:Jn.store.getState().defaultActiveFirst[_e(Jn.eventKey)],multiple:Jn.multiple,prefixCls:Jn.rootPrefixCls,id:er.internalMenuId,manualRef:er.saveMenuInstance,itemIcon:Jn.itemIcon,expandIcon:Jn.expandIcon,direction:Jn.direction}},er.getMotion=function(Dn,Jn){var Ti=Object(K.a)(er),xi=Ti.haveRendered,Bi=er.props,ea=Bi.motion,Ha=Bi.rootPrefixCls,Qa=Object(i.a)(Object(i.a)({},ea),{},{leavedClassName:"".concat(Ha,"-hidden"),removeOnLeave:!1,motionAppear:xi||!Jn||Dn!=="inline"});return Qa};var Dr=qr.store,lr=qr.eventKey,on=Dr.getState(),fn=on.defaultActiveFirst;er.isRootMenu=!1;var Wn=!1;return fn&&(Wn=fn[lr]),fr(Dr,lr,Wn),er.state={mode:qr.mode,isOpen:qr.isOpen},er}return Object(u.a)(Pn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var er=this,Dr=this.props,lr=Dr.mode,on=Dr.parentMenu,fn=Dr.manualRef,Wn=Dr.isOpen,Dn=function(){er.setState({mode:lr,isOpen:Wn})},Jn=Wn!==this.state.isOpen,Ti=lr!==this.state.mode;if((Ti||Jn)&&(Et.a.cancel(this.updateStateRaf),Ti?this.updateStateRaf=Object(Et.a)(Dn):Dn()),fn&&fn(this),lr!=="horizontal"||!(on==null?void 0:on.isRootMenu)||!Wn)return;this.minWidthTimeout=setTimeout(function(){return er.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var er=this.props,Dr=er.onDestroy,lr=er.eventKey;Dr&&Dr(lr),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Et.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(er,Dr){var lr=this.getBaseProps();return w.createElement(ii,Object(F.a)({},lr,{id:this.internalMenuId,className:er,style:Dr}),this.props.children)}},{key:"renderChildren",value:function(){var er=this,Dr=this.getBaseProps(),lr=Dr.mode,on=Dr.visible,fn=Dr.forceSubMenuRender,Wn=Dr.direction,Dn=this.getMotion(lr,on);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||on||fn,!this.haveOpened)return w.createElement("div",null);var Jn=o()("".concat(Dr.prefixCls,"-sub"),Object(m.a)({},"".concat(Dr.prefixCls,"-rtl"),Wn==="rtl"));return this.isInlineMode()?w.createElement(yi,Object(F.a)({visible:Dr.visible,forceRender:fn},Dn),function(Ti){var xi=Ti.className,Bi=Ti.style,ea=o()(Jn,xi);return er.renderPopupMenu(ea,Bi)}):this.renderPopupMenu(Jn)}},{key:"render",value:function(){var er,Dr,lr,on=Object(i.a)({},this.props),fn=this.getVisible(),Wn=this.getPrefixCls(),Dn=this.isInlineMode(),Jn=this.getMode(),Ti=o()(Wn,"".concat(Wn,"-").concat(Jn),(er={},Object(m.a)(er,on.className,!!on.className),Object(m.a)(er,this.getOpenClassName(),fn),Object(m.a)(er,this.getActiveClassName(),on.active||fn&&!Dn),Object(m.a)(er,this.getDisabledClassName(),on.disabled),Object(m.a)(er,this.getSelectedClassName(),this.isChildrenSelected()),er));this.internalMenuId||(on.eventKey?this.internalMenuId="".concat(on.eventKey,"$Menu"):(On+=1,this.internalMenuId="$__$".concat(On,"$Menu")));var xi={},Bi={},ea={};on.disabled||(xi={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Bi={onClick:this.onTitleClick},ea={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ha={},Qa=on.direction,io=Qa==="rtl";Dn&&(io?Ha.paddingRight=on.inlineIndent*on.level:Ha.paddingLeft=on.inlineIndent*on.level);var Ja={};this.getVisible()&&(Ja={"aria-owns":this.internalMenuId});var Ga=null;Jn!=="horizontal"&&(Ga=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ga=w.createElement(this.props.expandIcon,Object(i.a)({},this.props))));var Ra=w.createElement("div",Object(F.a)({ref:this.saveSubMenuTitle,style:Ha,className:"".concat(Wn,"-title"),role:"button"},ea,Bi,{"aria-expanded":fn},Ja,{"aria-haspopup":"true",title:typeof on.title=="string"?on.title:void 0}),on.title,Ga||w.createElement("i",{className:"".concat(Wn,"-arrow")})),ia=this.renderChildren(),qe=((Dr=on.parentMenu)===null||Dr===void 0?void 0:Dr.isRootMenu)?on.parentMenu.props.getPopupContainer:function(mi){return mi.parentNode},rr=zr[Jn],Rr=on.popupOffset?{offset:on.popupOffset}:{},Cr=o()((lr={},Object(m.a)(lr,on.popupClassName,on.popupClassName&&!Dn),Object(m.a)(lr,"".concat(Wn,"-rtl"),io),lr)),pn=on.disabled,Vr=on.triggerSubMenuAction,br=on.subMenuOpenDelay,In=on.forceSubMenuRender,Sr=on.subMenuCloseDelay,gn=on.builtinPlacements;et.forEach(function(mi){return delete on[mi]}),delete on.onClick;var $n=io?Object(i.a)(Object(i.a)({},Yi),gn):Object(i.a)(Object(i.a)({},Ni),gn);delete on.direction;var qn=this.getBaseProps(),Gn=Dn?null:this.getMotion(qn.mode,qn.visible);return w.createElement("li",Object(F.a)({},on,xi,{className:Ti,role:"menuitem"}),w.createElement(Hi,{prefixCls:Wn,popupClassName:o()("".concat(Wn,"-popup"),Cr),getPopupContainer:qe,builtinPlacements:$n,popupPlacement:rr,popupVisible:Dn?!1:fn,popupAlign:Rr,popup:Dn?null:ia,action:pn||Dn?[]:[Vr],mouseEnterDelay:br,mouseLeaveDelay:Sr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:In,popupMotion:Gn},Ra),Dn?ia:null)}}]),Pn}(w.Component);Nr.defaultProps={onMouseEnter:le,onMouseLeave:le,onTitleMouseEnter:le,onTitleMouseLeave:le,onTitleClick:le,manualRef:le,mode:"vertical",title:""};var Qt=Object(U.b)(function(Pr,An){var Pn=Pr.openKeys,qr=Pr.activeKey,er=Pr.selectedKeys,Dr=An.eventKey,lr=An.subMenuKey;return{isOpen:Pn.indexOf(Dr)>-1,active:qr[lr]===Dr,selectedKeys:er}})(Nr);Qt.isSubMenu=!0;var xr=Qt,Jr="menuitem-overflowed",Kr=.5,en=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(){var qr;return Object(l.a)(this,Pn),qr=An.apply(this,arguments),qr.resizeObserver=null,qr.mutationObserver=null,qr.originalTotalWidth=0,qr.overflowedItems=[],qr.menuItemSizes=[],qr.cancelFrameId=null,qr.state={lastVisibleIndex:void 0},qr.childRef=w.createRef(),qr.getMenuItemNodes=function(){var er=qr.props.prefixCls,Dr=qr.childRef.current;return Dr?[].slice.call(Dr.children).filter(function(lr){return lr.className.split(" ").indexOf("".concat(er,"-overflowed-submenu"))<0}):[]},qr.getOverflowedSubMenuItem=function(er,Dr,lr){var on=qr.props,fn=on.overflowedIndicator,Wn=on.level,Dn=on.mode,Jn=on.prefixCls,Ti=on.theme;if(Wn!==1||Dn!=="horizontal")return null;var xi=qr.props.children[0],Bi=xi.props,ea=Bi.children,Ha=Bi.title,Qa=Bi.style,io=Object(c.a)(Bi,["children","title","style"]),Ja=Object(i.a)({},Qa),Ga="".concat(er,"-overflowed-indicator"),Ra="".concat(er,"-overflowed-indicator");Dr.length===0&&lr!==!0?Ja=Object(i.a)(Object(i.a)({},Ja),{},{display:"none"}):lr&&(Ja=Object(i.a)(Object(i.a)({},Ja),{},{visibility:"hidden",position:"absolute"}),Ga="".concat(Ga,"-placeholder"),Ra="".concat(Ra,"-placeholder"));var ia=Ti?"".concat(Jn,"-").concat(Ti):"",qe={};return et.forEach(function(rr){io[rr]!==void 0&&(qe[rr]=io[rr])}),w.createElement(xr,Object(F.a)({title:fn,className:"".concat(Jn,"-overflowed-submenu"),popupClassName:ia},qe,{key:Ga,eventKey:Ra,disabled:!1,style:Ja}),Dr)},qr.setChildrenWidthAndResize=function(){if(qr.props.mode!=="horizontal")return;var er=qr.childRef.current;if(!er)return;var Dr=er.children;if(!Dr||Dr.length===0)return;var lr=er.children[Dr.length-1];rt(lr,"display","inline-block");var on=qr.getMenuItemNodes(),fn=on.filter(function(Wn){return Wn.className.split(" ").indexOf(Jr)>=0});fn.forEach(function(Wn){rt(Wn,"display","inline-block")}),qr.menuItemSizes=on.map(function(Wn){return Ie(Wn,!0)}),fn.forEach(function(Wn){rt(Wn,"display","none")}),qr.overflowedIndicatorWidth=Ie(er.children[er.children.length-1],!0),qr.originalTotalWidth=qr.menuItemSizes.reduce(function(Wn,Dn){return Wn+Dn},0),qr.handleResize(),rt(lr,"display","none")},qr.handleResize=function(){if(qr.props.mode!=="horizontal")return;var er=qr.childRef.current;if(!er)return;var Dr=Ie(er);qr.overflowedItems=[];var lr=0,on;qr.originalTotalWidth>Dr+Kr&&(on=-1,qr.menuItemSizes.forEach(function(fn){lr+=fn,lr+qr.overflowedIndicatorWidth<=Dr&&(on+=1)})),qr.setState({lastVisibleIndex:on})},qr}return Object(u.a)(Pn,[{key:"componentDidMount",value:function(){var er=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Dr=this.childRef.current;if(!Dr)return;this.resizeObserver=new x.default(function(lr){lr.forEach(function(){var on=er.cancelFrameId;cancelAnimationFrame(on),er.cancelFrameId=requestAnimationFrame(er.setChildrenWidthAndResize)})}),[].slice.call(Dr.children).concat(Dr).forEach(function(lr){er.resizeObserver.observe(lr)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){er.resizeObserver.disconnect(),[].slice.call(Dr.children).concat(Dr).forEach(function(lr){er.resizeObserver.observe(lr)}),er.setChildrenWidthAndResize()}),this.mutationObserver.observe(Dr,{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(er){var Dr=this,lr=this.state.lastVisibleIndex;return(er||[]).reduce(function(on,fn,Wn){var Dn=fn;if(Dr.props.mode==="horizontal"){var Jn=Dr.getOverflowedSubMenuItem(fn.props.eventKey,[]);lr!==void 0&&Dr.props.className.indexOf("".concat(Dr.props.prefixCls,"-root"))!==-1&&(Wn>lr&&(Dn=w.cloneElement(fn,{style:{display:"none"},eventKey:"".concat(fn.props.eventKey,"-hidden"),className:"".concat(Jr)})),Wn===lr+1&&(Dr.overflowedItems=er.slice(lr+1).map(function(xi){return w.cloneElement(xi,{key:xi.props.eventKey,mode:"vertical-left"})}),Jn=Dr.getOverflowedSubMenuItem(fn.props.eventKey,Dr.overflowedItems)));var Ti=[].concat(Object(s.a)(on),[Jn,Dn]);return Wn===er.length-1&&Ti.push(Dr.getOverflowedSubMenuItem(fn.props.eventKey,[],!0)),Ti}return[].concat(Object(s.a)(on),[Dn])},[])}},{key:"render",value:function(){var er=this.props,Dr=er.visible,lr=er.prefixCls,on=er.overflowedIndicator,fn=er.mode,Wn=er.level,Dn=er.tag,Jn=er.children,Ti=er.theme,xi=Object(c.a)(er,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Bi=Dn;return w.createElement(Bi,Object(F.a)({ref:this.childRef},xi),this.renderChildren(Jn))}}]),Pn}(w.Component);en.defaultProps={tag:"div",className:""};var ai=en;function Yn(Pr){return Pr.length?Pr.every(function(An){return!!An.props.disabled}):!0}function Si(Pr,An,Pn){var qr=Pr.getState();Pr.setState({activeKey:Object(i.a)(Object(i.a)({},qr.activeKey),{},Object(m.a)({},An,Pn))})}function ln(Pr){return Pr.eventKey||"0-menu-"}function Or(Pr,An){var Pn=An,qr=Pr.children,er=Pr.eventKey;if(Pn){var Dr;if($e(qr,function(lr,on){lr&&lr.props&&!lr.props.disabled&&Pn===me(lr,er,on)&&(Dr=!0)}),Dr)return Pn}return Pn=null,Pr.defaultActiveFirst&&$e(qr,function(lr,on){!Pn&&lr&&!lr.props.disabled&&(Pn=me(lr,er,on))}),Pn}function wn(Pr){if(!Pr)return;var An=this.instanceArray.indexOf(Pr);An!==-1?this.instanceArray[An]=Pr:this.instanceArray.push(Pr)}var Xn=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(qr){var er;return Object(l.a)(this,Pn),er=An.call(this,qr),er.onKeyDown=function(Dr,lr){var on=Dr.keyCode,fn;if(er.getFlatInstanceArray().forEach(function(Dn){Dn&&Dn.props.active&&Dn.onKeyDown&&(fn=Dn.onKeyDown(Dr))}),fn)return 1;var Wn=null;return(on===L.a.UP||on===L.a.DOWN)&&(Wn=er.step(on===L.a.UP?-1:1)),Wn?(Dr.preventDefault(),Si(er.props.store,ln(er.props),Wn.props.eventKey),typeof lr=="function"&&lr(Wn),1):void 0},er.onItemHover=function(Dr){var lr=Dr.key,on=Dr.hover;Si(er.props.store,ln(er.props),on?lr:null)},er.onDeselect=function(Dr){er.props.onDeselect(Dr)},er.onSelect=function(Dr){er.props.onSelect(Dr)},er.onClick=function(Dr){er.props.onClick(Dr)},er.onOpenChange=function(Dr){er.props.onOpenChange(Dr)},er.onDestroy=function(Dr){er.props.onDestroy(Dr)},er.getFlatInstanceArray=function(){return er.instanceArray},er.step=function(Dr){var lr=er.getFlatInstanceArray(),on=er.props.store.getState().activeKey[ln(er.props)],fn=lr.length;if(!fn)return null;Dr<0&&(lr=lr.concat().reverse());var Wn=-1;if(lr.every(function(xi,Bi){return xi&&xi.props.eventKey===on?(Wn=Bi,!1):!0}),!er.props.defaultActiveFirst&&Wn!==-1&&Yn(lr.slice(Wn,fn-1)))return;var Dn=(Wn+1)%fn,Jn=Dn;do{var Ti=lr[Jn];if(!Ti||Ti.props.disabled)Jn=(Jn+1)%fn;else return Ti}while(Jn!==Dn);return null},er.renderCommonMenuItem=function(Dr,lr,on){var fn=er.props.store.getState(),Wn=Object(K.a)(er),Dn=Wn.props,Jn=me(Dr,Dn.eventKey,lr),Ti=Dr.props;if(!Ti||typeof Dr.type=="string")return Dr;var xi=Jn===fn.activeKey,Bi=Object(i.a)(Object(i.a)({mode:Ti.mode||Dn.mode,level:Dn.level,inlineIndent:Dn.inlineIndent,renderMenuItem:er.renderMenuItem,rootPrefixCls:Dn.prefixCls,index:lr,parentMenu:Dn.parentMenu,manualRef:Ti.disabled?void 0:Object(z.a)(Dr.ref,wn.bind(Object(K.a)(er))),eventKey:Jn,active:!Ti.disabled&&xi,multiple:Dn.multiple,onClick:function(Ha){(Ti.onClick||le)(Ha),er.onClick(Ha)},onItemHover:er.onItemHover,motion:Dn.motion,subMenuOpenDelay:Dn.subMenuOpenDelay,subMenuCloseDelay:Dn.subMenuCloseDelay,forceSubMenuRender:Dn.forceSubMenuRender,onOpenChange:er.onOpenChange,onDeselect:er.onDeselect,onSelect:er.onSelect,builtinPlacements:Dn.builtinPlacements,itemIcon:Ti.itemIcon||er.props.itemIcon,expandIcon:Ti.expandIcon||er.props.expandIcon},on),{},{direction:Dn.direction});return(Dn.mode==="inline"||Ge())&&(Bi.triggerSubMenuAction="click"),w.cloneElement(Dr,Object(i.a)(Object(i.a)({},Bi),{},{key:Jn||lr}))},er.renderMenuItem=function(Dr,lr,on){if(!Dr)return null;var fn=er.props.store.getState(),Wn={openKeys:fn.openKeys,selectedKeys:fn.selectedKeys,triggerSubMenuAction:er.props.triggerSubMenuAction,subMenuKey:on};return er.renderCommonMenuItem(Dr,lr,Wn)},qr.store.setState({activeKey:Object(i.a)(Object(i.a)({},qr.store.getState().activeKey),{},Object(m.a)({},qr.eventKey,Or(qr,qr.activeKey)))}),er.instanceArray=[],er}return Object(u.a)(Pn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(er){return this.props.visible||er.visible||this.props.className!==er.className||!q()(this.props.style,er.style)}},{key:"componentDidUpdate",value:function(er){var Dr=this.props,lr="activeKey"in Dr?Dr.activeKey:Dr.store.getState().activeKey[ln(Dr)],on=Or(Dr,lr);if(on!==lr)Si(Dr.store,ln(Dr),on);else if("activeKey"in er){var fn=Or(er,er.activeKey);on!==fn&&Si(Dr.store,ln(Dr),on)}}},{key:"render",value:function(){var er=this,Dr=Object(F.a)({},this.props);this.instanceArray=[];var lr=o()(Dr.prefixCls,Dr.className,"".concat(Dr.prefixCls,"-").concat(Dr.mode)),on={className:lr,role:Dr.role||"menu"};Dr.id&&(on.id=Dr.id),Dr.focusable&&(on.tabIndex=0,on.onKeyDown=this.onKeyDown);var fn=Dr.prefixCls,Wn=Dr.eventKey,Dn=Dr.visible,Jn=Dr.level,Ti=Dr.mode,xi=Dr.overflowedIndicator,Bi=Dr.theme;return et.forEach(function(ea){return delete Dr[ea]}),delete Dr.onClick,w.createElement(ai,Object(F.a)({},Dr,{prefixCls:fn,mode:Ti,tag:"ul",level:Jn,theme:Bi,visible:Dn,overflowedIndicator:xi},on),Object(n.a)(Dr.children).map(function(ea,Ha){return er.renderMenuItem(ea,Ha,Wn||"0-menu-")}))}}]),Pn}(w.Component);Xn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:le};var Zn=Object(U.b)()(Xn),ii=Zn;function Ei(Pr,An,Pn){var qr=Pr.prefixCls,er=Pr.motion,Dr=Pr.defaultMotions,lr=Dr===void 0?{}:Dr,on=Pr.openAnimation,fn=Pr.openTransitionName,Wn=An.switchingModeFromInline;if(er)return er;if(Object(ce.a)(on)==="object"&&on)Object(A.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof on=="string")return{motionName:"".concat(qr,"-open-").concat(on)};if(fn)return{motionName:fn};var Dn=lr[Pn];return Dn||(Wn?null:lr.other)}var ki=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(qr){var er;Object(l.a)(this,Pn),er=An.call(this,qr),er.onSelect=function(on){var fn=Object(K.a)(er),Wn=fn.props;if(Wn.selectable){var Dn=er.store.getState(),Jn=Dn.selectedKeys,Ti=on.key;Wn.multiple?Jn=Jn.concat([Ti]):Jn=[Ti],"selectedKeys"in Wn||er.store.setState({selectedKeys:Jn}),Wn.onSelect(Object(i.a)(Object(i.a)({},on),{},{selectedKeys:Jn}))}},er.onClick=function(on){var fn=er.getRealMenuMode(),Wn=Object(K.a)(er),Dn=Wn.store,Jn=Wn.props.onOpenChange;fn!=="inline"&&!("openKeys"in er.props)&&(Dn.setState({openKeys:[]}),Jn([])),er.props.onClick(on)},er.onKeyDown=function(on,fn){er.innerMenu.getWrappedInstance().onKeyDown(on,fn)},er.onOpenChange=function(on){var fn=Object(K.a)(er),Wn=fn.props,Dn=er.store.getState().openKeys.concat(),Jn=!1,Ti=function(Bi){var ea=!1;if(Bi.open)ea=Dn.indexOf(Bi.key)===-1,ea&&Dn.push(Bi.key);else{var Ha=Dn.indexOf(Bi.key);ea=Ha!==-1,ea&&Dn.splice(Ha,1)}Jn=Jn||ea};Array.isArray(on)?on.forEach(Ti):Ti(on),Jn&&("openKeys"in er.props||er.store.setState({openKeys:Dn}),Wn.onOpenChange(Dn))},er.onDeselect=function(on){var fn=Object(K.a)(er),Wn=fn.props;if(Wn.selectable){var Dn=er.store.getState().selectedKeys.concat(),Jn=on.key,Ti=Dn.indexOf(Jn);Ti!==-1&&Dn.splice(Ti,1),"selectedKeys"in Wn||er.store.setState({selectedKeys:Dn}),Wn.onDeselect(Object(i.a)(Object(i.a)({},on),{},{selectedKeys:Dn}))}},er.onMouseEnter=function(on){er.restoreModeVerticalFromInline();var fn=er.props.onMouseEnter;fn&&fn(on)},er.onTransitionEnd=function(on){var fn=on.propertyName==="width"&&on.target===on.currentTarget,Wn=on.target.className,Dn=Object.prototype.toString.call(Wn)==="[object SVGAnimatedString]"?Wn.animVal:Wn,Jn=on.propertyName==="font-size"&&Dn.indexOf("anticon")>=0;(fn||Jn)&&er.restoreModeVerticalFromInline()},er.setInnerMenu=function(on){er.innerMenu=on},er.isRootMenu=!0;var Dr=qr.defaultSelectedKeys,lr=qr.defaultOpenKeys;return"selectedKeys"in qr&&(Dr=qr.selectedKeys||[]),"openKeys"in qr&&(lr=qr.openKeys||[]),er.store=Object(U.c)({selectedKeys:Dr,openKeys:lr,activeKey:{"0-menu-":Or(qr,qr.activeKey)}}),er.state={switchingModeFromInline:!1,prevProps:qr,inlineOpenKeys:[],store:er.store},er}return Object(u.a)(Pn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(er){var Dr=this.props,lr=Dr.siderCollapsed,on=Dr.inlineCollapsed,fn=Dr.onOpenChange;(!er.inlineCollapsed&&on||!er.siderCollapsed&&lr)&&fn([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var er=this.props.collapsedWidth,Dr=this.store,lr=this.prevOpenKeys,on=this.getInlineCollapsed()&&(er===0||er==="0"||er==="0px");on?(this.prevOpenKeys=Dr.getState().openKeys.concat(),this.store.setState({openKeys:[]})):lr&&(this.store.setState({openKeys:lr}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var er=this.props.mode,Dr=this.state.switchingModeFromInline,lr=this.getInlineCollapsed();return Dr&&lr?"inline":lr?"vertical":er}},{key:"getInlineCollapsed",value:function(){var er=this.props,Dr=er.inlineCollapsed,lr=er.siderCollapsed;return lr!==void 0?lr:Dr}},{key:"restoreModeVerticalFromInline",value:function(){var er=this.state.switchingModeFromInline;er&&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 er=Object(i.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Dr=this.getRealMenuMode();return er.className+=" ".concat(er.prefixCls,"-root"),er.direction==="rtl"&&(er.className+=" ".concat(er.prefixCls,"-rtl")),er=Object(i.a)(Object(i.a)({},er),{},{mode:Dr,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ei(this.props,this.state,Dr)}),delete er.openAnimation,delete er.openTransitionName,w.createElement(U.a,{store:this.store},w.createElement(ii,Object(F.a)({},er,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(er,Dr){var lr=Dr.prevProps,on=Dr.store,fn=on.getState(),Wn={},Dn={prevProps:er};return lr.mode==="inline"&&er.mode!=="inline"&&(Dn.switchingModeFromInline=!0),"openKeys"in er?Wn.openKeys=er.openKeys||[]:((er.inlineCollapsed&&!lr.inlineCollapsed||er.siderCollapsed&&!lr.siderCollapsed)&&(Dn.switchingModeFromInline=!0,Dn.inlineOpenKeys=fn.openKeys,Wn.openKeys=[]),(!er.inlineCollapsed&&lr.inlineCollapsed||!er.siderCollapsed&&lr.siderCollapsed)&&(Wn.openKeys=Dr.inlineOpenKeys,Dn.inlineOpenKeys=[])),Object.keys(Wn).length&&on.setState(Wn),Dn}}]),Pn}(w.Component);ki.defaultProps={selectable:!0,onClick:le,onSelect:le,onOpenChange:le,onDeselect:le,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:w.createElement("span",null,"\xB7\xB7\xB7")};var Fi=ki,ra=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(){var qr;return Object(l.a)(this,Pn),qr=An.apply(this,arguments),qr.onKeyDown=function(er){var Dr=er.keyCode;return Dr===L.a.ENTER?(qr.onClick(er),!0):void 0},qr.onMouseLeave=function(er){var Dr=qr.props,lr=Dr.eventKey,on=Dr.onItemHover,fn=Dr.onMouseLeave;on({key:lr,hover:!1}),fn({key:lr,domEvent:er})},qr.onMouseEnter=function(er){var Dr=qr.props,lr=Dr.eventKey,on=Dr.onItemHover,fn=Dr.onMouseEnter;on({key:lr,hover:!0}),fn({key:lr,domEvent:er})},qr.onClick=function(er){var Dr=qr.props,lr=Dr.eventKey,on=Dr.multiple,fn=Dr.onClick,Wn=Dr.onSelect,Dn=Dr.onDeselect,Jn=Dr.isSelected,Ti={key:lr,keyPath:[lr],item:Object(K.a)(qr),domEvent:er};fn(Ti),on?Jn?Dn(Ti):Wn(Ti):Jn||Wn(Ti)},qr.saveNode=function(er){qr.node=er},qr}return Object(u.a)(Pn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var er=this.props;er.onDestroy&&er.onDestroy(er.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 er,Dr=Object(i.a)({},this.props),lr=o()(this.getPrefixCls(),Dr.className,(er={},Object(m.a)(er,this.getActiveClassName(),!Dr.disabled&&Dr.active),Object(m.a)(er,this.getSelectedClassName(),Dr.isSelected),Object(m.a)(er,this.getDisabledClassName(),Dr.disabled),er)),on=Object(i.a)(Object(i.a)({},Dr.attribute),{},{title:typeof Dr.title=="string"?Dr.title:void 0,className:lr,role:Dr.role||"menuitem","aria-disabled":Dr.disabled});Dr.role==="option"?on=Object(i.a)(Object(i.a)({},on),{},{role:"option","aria-selected":Dr.isSelected}):(Dr.role===null||Dr.role==="none")&&(on.role="none");var fn={onClick:Dr.disabled?null:this.onClick,onMouseLeave:Dr.disabled?null:this.onMouseLeave,onMouseEnter:Dr.disabled?null:this.onMouseEnter},Wn=Object(i.a)({},Dr.style);Dr.mode==="inline"&&(Dr.direction==="rtl"?Wn.paddingRight=Dr.inlineIndent*Dr.level:Wn.paddingLeft=Dr.inlineIndent*Dr.level),et.forEach(function(Jn){return delete Dr[Jn]}),delete Dr.direction;var Dn=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Dn=w.createElement(this.props.itemIcon,this.props)),w.createElement("li",Object(F.a)({},Object(V.a)(Dr,["onClick","onMouseEnter","onMouseLeave","onSelect"]),on,fn,{style:Wn,ref:this.saveNode}),Dr.children,Dn)}}]),Pn}(w.Component);ra.isMenuItem=!0,ra.defaultProps={onSelect:le,onMouseEnter:le,onMouseLeave:le,manualRef:le};var _a=Object(U.b)(function(Pr,An){var Pn=Pr.activeKey,qr=Pr.selectedKeys,er=An.eventKey,Dr=An.subMenuKey;return{active:Pn[Dr]===er,isSelected:Array.isArray(qr)?qr.indexOf(er)!==-1:qr===er}})(ra),wa=_a,_o=function(Pr){Object(f.a)(Pn,Pr);var An=Object(p.a)(Pn);function Pn(){var qr;return Object(l.a)(this,Pn),qr=An.apply(this,arguments),qr.renderInnerMenuItem=function(er){var Dr=qr.props,lr=Dr.renderMenuItem,on=Dr.index;return lr(er,on,qr.props.subMenuKey)},qr}return Object(u.a)(Pn,[{key:"render",value:function(){var er=Object(F.a)({},this.props),Dr=er.className,lr=Dr===void 0?"":Dr,on=er.rootPrefixCls,fn="".concat(on,"-item-group-title"),Wn="".concat(on,"-item-group-list"),Dn=er.title,Jn=er.children;return et.forEach(function(Ti){return delete er[Ti]}),delete er.direction,w.createElement("li",Object(F.a)({},er,{onClick:function(xi){return xi.stopPropagation()},className:"".concat(lr," ").concat(on,"-item-group")}),w.createElement("div",{className:fn,title:typeof Dn=="string"?Dn:void 0},Dn),w.createElement("ul",{className:Wn},w.Children.map(Jn,this.renderInnerMenuItem)))}}]),Pn}(w.Component);_o.isMenuItemGroup=!0,_o.defaultProps={disabled:!0};var bi=_o,xn=function(An){var Pn=An.className,qr=An.rootPrefixCls,er=An.style;return w.createElement("li",{className:"".concat(Pn," ").concat(qr,"-item-divider"),style:er})};xn.defaultProps={disabled:!0,className:"",style:{}};var Zi=xn,va=Fi,ta={adjustX:1,adjustY:1},ma=[0,0],Qi={topLeft:{points:["bl","tl"],overflow:ta,offset:[0,-4],targetOffset:ma},topCenter:{points:["bc","tc"],overflow:ta,offset:[0,-4],targetOffset:ma},topRight:{points:["br","tr"],overflow:ta,offset:[0,-4],targetOffset:ma},bottomLeft:{points:["tl","bl"],overflow:ta,offset:[0,4],targetOffset:ma},bottomCenter:{points:["tc","bc"],overflow:ta,offset:[0,4],targetOffset:ma},bottomRight:{points:["tr","br"],overflow:ta,offset:[0,4],targetOffset:ma}},Ya=Qi;function Wa(Pr,An){var Pn=Pr.arrow,qr=Pn===void 0?!1:Pn,er=Pr.prefixCls,Dr=er===void 0?"rc-dropdown":er,lr=Pr.transitionName,on=Pr.animation,fn=Pr.align,Wn=Pr.placement,Dn=Wn===void 0?"bottomLeft":Wn,Jn=Pr.placements,Ti=Jn===void 0?Ya:Jn,xi=Pr.getPopupContainer,Bi=Pr.showAction,ea=Pr.hideAction,Ha=Pr.overlayClassName,Qa=Pr.overlayStyle,io=Pr.visible,Ja=Pr.trigger,Ga=Ja===void 0?["hover"]:Ja,Ra=Object(c.a)(Pr,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),ia=w.useState(),qe=Object(h.a)(ia,2),rr=qe[0],Rr=qe[1],Cr="visible"in Pr?io:rr,pn=w.useRef(null);w.useImperativeHandle(An,function(){return pn.current});var Vr=function(){var ri=Pr.overlay,li;return typeof ri=="function"?li=ri():li=ri,li},br=function(ri){var li=Pr.onOverlayClick,Xi=Vr().props;Rr(!1),li&&li(ri),Xi.onClick&&Xi.onClick(ri)},In=function(ri){var li=Pr.onVisibleChange;Rr(ri),typeof li=="function"&&li(ri)},Sr=function(){var ri=Vr(),li={prefixCls:"".concat(Dr,"-menu"),onClick:br};return typeof ri.type=="string"&&delete li.prefixCls,w.createElement(w.Fragment,null,qr&&w.createElement("div",{className:"".concat(Dr,"-arrow")}),w.cloneElement(ri,li))},gn=function(){var ri=Pr.overlay;return typeof ri=="function"?Sr:Sr()},$n=function(){var ri=Pr.minOverlayWidthMatchTrigger,li=Pr.alignPoint;return"minOverlayWidthMatchTrigger"in Pr?ri:!li},qn=function(){var ri=Pr.openClassName;return ri!==void 0?ri:"".concat(Dr,"-open")},Gn=function(){var ri=Pr.children,li=ri.props?ri.props:{},Xi=o()(li.className,qn());return rr&&ri?w.cloneElement(ri,{className:Xi}):ri},mi=ea;return!mi&&Ga.indexOf("contextMenu")!==-1&&(mi=["click"]),w.createElement(Hi,Object.assign({},Ra,{prefixCls:Dr,ref:pn,popupClassName:o()(Ha,Object(m.a)({},"".concat(Dr,"-show-arrow"),qr)),popupStyle:Qa,builtinPlacements:Ti,action:Ga,showAction:Bi,hideAction:mi||[],popupPlacement:Dn,popupAlign:fn,popupTransitionName:lr,popupAnimation:on,popupVisible:Cr,stretch:$n()?"minWidth":"",popup:gn(),onPopupVisibleChange:In,getPopupContainer:xi}),Gn())}var Ao=w.forwardRef(Wa),es=Ao;function so(Pr,An){var Pn=Pr.prefixCls,qr=Pr.editable,er=Pr.locale,Dr=Pr.style;return!qr||qr.showAdd===!1?null:w.createElement("button",{ref:An,type:"button",className:"".concat(Pn,"-nav-add"),style:Dr,"aria-label":(er==null?void 0:er.addAriaLabel)||"Add tab",onClick:function(on){qr.onEdit("add",{event:on})}},qr.addIcon||"+")}var So=w.forwardRef(so);function xo(Pr,An){var Pn=Pr.prefixCls,qr=Pr.id,er=Pr.tabs,Dr=Pr.locale,lr=Pr.mobile,on=Pr.moreIcon,fn=on===void 0?"More":on,Wn=Pr.moreTransitionName,Dn=Pr.style,Jn=Pr.className,Ti=Pr.editable,xi=Pr.tabBarGutter,Bi=Pr.rtl,ea=Pr.onTabClick,Ha=Object(w.useState)(!1),Qa=Object(h.a)(Ha,2),io=Qa[0],Ja=Qa[1],Ga=Object(w.useState)(null),Ra=Object(h.a)(Ga,2),ia=Ra[0],qe=Ra[1],rr="".concat(qr,"-more-popup"),Rr="".concat(Pn,"-dropdown"),Cr=ia!==null?"".concat(rr,"-").concat(ia):null,pn=Dr==null?void 0:Dr.dropdownAriaLabel,Vr=w.createElement(va,{onClick:function(Gn){var mi=Gn.key,ti=Gn.domEvent;ea(mi,ti),Ja(!1)},id:rr,tabIndex:-1,role:"listbox","aria-activedescendant":Cr,selectedKeys:[ia],"aria-label":pn!==void 0?pn:"expanded dropdown"},er.map(function(qn){return w.createElement(wa,{key:qn.key,id:"".concat(rr,"-").concat(qn.key),role:"option","aria-controls":qr&&"".concat(qr,"-panel-").concat(qn.key),disabled:qn.disabled},qn.tab)}));function br(qn){for(var Gn=er.filter(function(Xi){return!Xi.disabled}),mi=Gn.findIndex(function(Xi){return Xi.key===ia})||0,ti=Gn.length,ri=0;ri<ti;ri+=1){mi=(mi+qn+ti)%ti;var li=Gn[mi];if(!li.disabled){qe(li.key);return}}}function In(qn){var Gn=qn.which;if(!io){[L.a.DOWN,L.a.SPACE,L.a.ENTER].includes(Gn)&&(Ja(!0),qn.preventDefault());return}switch(Gn){case L.a.UP:br(-1),qn.preventDefault();break;case L.a.DOWN:br(1),qn.preventDefault();break;case L.a.ESC:Ja(!1);break;case L.a.SPACE:case L.a.ENTER:ia!==null&&ea(ia,qn);break}}Object(w.useEffect)(function(){var qn=document.getElementById(Cr);qn&&qn.scrollIntoView&&qn.scrollIntoView(!1)},[ia]),Object(w.useEffect)(function(){io||qe(null)},[io]);var Sr=Object(m.a)({},Bi?"marginLeft":"marginRight",xi);er.length||(Sr.visibility="hidden",Sr.order=1);var gn=o()(Object(m.a)({},"".concat(Rr,"-rtl"),Bi)),$n=lr?null:w.createElement(es,{prefixCls:Rr,overlay:Vr,trigger:["hover"],visible:io,transitionName:Wn,onVisibleChange:Ja,overlayClassName:gn,mouseEnterDelay:.1,mouseLeaveDelay:.1},w.createElement("button",{type:"button",className:"".concat(Pn,"-nav-more"),style:Sr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":rr,id:"".concat(qr,"-more"),"aria-expanded":io,onKeyDown:In},fn));return w.createElement("div",{className:o()("".concat(Pn,"-nav-operations"),Jn),style:Dn,ref:An},$n,w.createElement(So,{prefixCls:Pn,locale:Dr,editable:Ti}))}var hr=w.forwardRef(xo),Sn=Object(w.createContext)(null),dn=.1,Kn=.01,si=20,vi=Math.pow(.995,si);function pi(){var Pr=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(Pr)||/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(Pr.substr(0,4)))}function di(Pr,An){var Pn=Object(w.useState)(),qr=Object(h.a)(Pn,2),er=qr[0],Dr=qr[1],lr=Object(w.useState)(0),on=Object(h.a)(lr,2),fn=on[0],Wn=on[1],Dn=Object(w.useState)(0),Jn=Object(h.a)(Dn,2),Ti=Jn[0],xi=Jn[1],Bi=Object(w.useState)(),ea=Object(h.a)(Bi,2),Ha=ea[0],Qa=ea[1],io=Object(w.useRef)();function Ja(pn){var Vr=pn.touches[0],br=Vr.screenX,In=Vr.screenY;Dr({x:br,y:In}),window.clearInterval(io.current)}function Ga(pn){if(!er)return;pn.preventDefault();var Vr=pn.touches[0],br=Vr.screenX,In=Vr.screenY;Dr({x:br,y:In});var Sr=br-er.x,gn=In-er.y;An(Sr,gn);var $n=Date.now();Wn($n),xi($n-fn),Qa({x:Sr,y:gn})}function Ra(){if(!er)return;if(Dr(null),Qa(null),Ha){var pn=Ha.x/Ti,Vr=Ha.y/Ti,br=Math.abs(pn),In=Math.abs(Vr);if(Math.max(br,In)<dn)return;var Sr=pn,gn=Vr;io.current=window.setInterval(function(){if(Math.abs(Sr)<Kn&&Math.abs(gn)<Kn){window.clearInterval(io.current);return}Sr*=vi,gn*=vi,An(Sr*si,gn*si)},si)}}var ia=Object(w.useRef)(0),qe=Object(w.useRef)(!1),rr=Object(w.useRef)();function Rr(pn){var Vr=pn.deltaX,br=pn.deltaY,In=0,Sr=Math.abs(Vr),gn=Math.abs(br);Sr===gn?In=rr.current==="x"?Vr:br:Sr>gn?(In=Vr,rr.current="x"):(In=br,rr.current="y");var $n=Date.now();$n-ia.current>100&&(qe.current=!1),(An(-In,-In)||qe.current)&&(pn.preventDefault(),qe.current=!0),ia.current=$n}var Cr=Object(w.useRef)(null);Cr.current={onTouchStart:Ja,onTouchMove:Ga,onTouchEnd:Ra,onWheel:Rr},w.useEffect(function(){function pn(Sr){Cr.current.onTouchStart(Sr)}function Vr(Sr){Cr.current.onTouchMove(Sr)}function br(Sr){Cr.current.onTouchEnd(Sr)}function In(Sr){Cr.current.onWheel(Sr)}return document.addEventListener("touchmove",Vr,{passive:!1}),document.addEventListener("touchend",br,{passive:!1}),Pr.current.addEventListener("touchstart",pn,{passive:!1}),Pr.current.addEventListener("wheel",In),function(){document.removeEventListener("touchmove",Vr),document.removeEventListener("touchend",br)}},[])}function Ki(){var Pr=Object(w.useRef)(new Map);function An(qr){return Pr.current.has(qr)||Pr.current.set(qr,w.createRef()),Pr.current.get(qr)}function Pn(qr){Pr.current.delete(qr)}return[An,Pn]}function Mi(Pr,An){var Pn=w.useRef(Pr),qr=w.useState({}),er=Object(h.a)(qr,2),Dr=er[1];function lr(on){var fn=typeof on=="function"?on(Pn.current):on;fn!==Pn.current&&An(fn,Pn.current),Pn.current=fn,Dr({})}return[Pn.current,lr]}var pa=function(An){var Pn=An.position,qr=An.prefixCls,er=An.extra;if(!er)return null;var Dr,lr=er;return Pn==="right"&&(Dr=lr.right||!lr.left&&lr||null),Pn==="left"&&(Dr=lr.left||null),Dr?w.createElement("div",{className:"".concat(qr,"-extra-content")},Dr):null};function _i(Pr,An){var Pn,qr=w.useContext(Sn),er=qr.prefixCls,Dr=qr.tabs,lr=Pr.className,on=Pr.style,fn=Pr.id,Wn=Pr.animated,Dn=Pr.activeKey,Jn=Pr.rtl,Ti=Pr.extra,xi=Pr.editable,Bi=Pr.locale,ea=Pr.tabPosition,Ha=Pr.tabBarGutter,Qa=Pr.children,io=Pr.onTabClick,Ja=Pr.onTabScroll,Ga=Object(w.useRef)(),Ra=Object(w.useRef)(),ia=Object(w.useRef)(),qe=Object(w.useRef)(),rr=Ki(),Rr=Object(h.a)(rr,2),Cr=Rr[0],pn=Rr[1],Vr=ea==="top"||ea==="bottom",br=Mi(0,function(Rn,Fn){Vr&&Ja&&Ja({direction:Rn>Fn?"left":"right"})}),In=Object(h.a)(br,2),Sr=In[0],gn=In[1],$n=Mi(0,function(Rn,Fn){!Vr&&Ja&&Ja({direction:Rn>Fn?"top":"bottom"})}),qn=Object(h.a)($n,2),Gn=qn[0],mi=qn[1],ti=Object(w.useState)(0),ri=Object(h.a)(ti,2),li=ri[0],Xi=ri[1],Pi=Object(w.useState)(0),ga=Object(h.a)(Pi,2),tr=ga[0],Lt=ga[1],yr=Object(w.useState)(0),xt=Object(h.a)(yr,2),Ut=xt[0],ur=xt[1],Ct=Object(w.useState)(0),dr=Object(h.a)(Ct,2),nr=dr[0],Wr=dr[1],En=Object(w.useState)(null),Cn=Object(h.a)(En,2),Nn=Cn[0],oi=Cn[1],Qn=Object(w.useState)(null),Vi=Object(h.a)(Qn,2),wi=Vi[0],Ea=Vi[1],aa=Object(w.useState)(0),Ca=Object(h.a)(aa,2),fa=Ca[0],ha=Ca[1],qi=Object(w.useState)(0),Ma=Object(h.a)(qi,2),za=Ma[0],la=Ma[1],ao=I(new Map),ka=Object(h.a)(ao,2),Ba=ka[0],oo=ka[1],ja=B(Dr,Ba,li),Pa="".concat(er,"-nav-operations-hidden"),Fr=0,Oa=0;Vr?Jn?(Fr=0,Oa=Math.max(0,li-Nn)):(Fr=Math.min(0,Nn-li),Oa=0):(Fr=Math.min(0,wi-tr),Oa=0);function No(Rn){return Rn<Fr?[Fr,!1]:Rn>Oa?[Oa,!1]:[Rn,!0]}var Po=Object(w.useRef)(),Qo=Object(w.useState)(),ss=Object(h.a)(Qo,2),rs=ss[0],Ko=ss[1];function $o(){Ko(Date.now())}function Uo(){window.clearTimeout(Po.current)}di(Ga,function(Rn,Fn){var Ai=!1;function Di(ya,Ua){ya(function(to){var go=No(to+Ua),wo=Object(h.a)(go,2),qo=wo[0],Mo=wo[1];return Ai=Mo,qo})}if(Vr){if(Nn>=li)return Ai;Di(gn,Rn)}else{if(wi>=tr)return Ai;Di(mi,Fn)}return Uo(),$o(),Ai}),Object(w.useEffect)(function(){return Uo(),rs&&(Po.current=window.setTimeout(function(){Ko(0)},100)),Uo},[rs]);function Wo(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dn,Fn=ja.get(Rn);if(!Fn)return;if(Vr){var Ai=Sr;Jn?Fn.right<Sr?Ai=Fn.right:Fn.right+Fn.width>Sr+Nn&&(Ai=Fn.right+Fn.width-Nn):Fn.left<-Sr?Ai=-Fn.left:Fn.left+Fn.width>-Sr+Nn&&(Ai=-(Fn.left+Fn.width-Nn)),mi(0),gn(No(Ai)[0])}else{var Di=Gn;Fn.top<-Gn?Di=-Fn.top:Fn.top+Fn.height>-Gn+wi&&(Di=-(Fn.top+Fn.height-wi)),gn(0),mi(No(Di)[0])}}var Go=H(ja,{width:Nn,height:wi,left:Sr,top:Gn},{width:Ut,height:nr},{width:fa,height:za},Object(i.a)(Object(i.a)({},Pr),{},{tabs:Dr})),Oo=Object(h.a)(Go,2),Ka=Oo[0],Xa=Oo[1],bo=Dr.map(function(Rn){var Fn=Rn.key;return w.createElement(N,{id:fn,prefixCls:er,key:Fn,rtl:Jn,tab:Rn,closable:Rn.closable,editable:xi,active:Fn===Dn,tabPosition:ea,tabBarGutter:Ha,renderWrapper:Qa,removeAriaLabel:Bi==null?void 0:Bi.removeAriaLabel,ref:Cr(Fn),onClick:function(Di){io(Fn,Di)},onRemove:function(){pn(Fn)},onFocus:function(){Wo(Fn),$o(),Jn||(Ga.current.scrollLeft=0),Ga.current.scrollTop=0}})}),Eo=_(function(){var Rn,Fn,Ai,Di,ya,Ua,to,go,wo,qo=((Rn=Ga.current)===null||Rn===void 0?void 0:Rn.offsetWidth)||0,Mo=((Fn=Ga.current)===null||Fn===void 0?void 0:Fn.offsetHeight)||0,$i=((Ai=qe.current)===null||Ai===void 0?void 0:Ai.offsetWidth)||0,To=((Di=qe.current)===null||Di===void 0?void 0:Di.offsetHeight)||0,fo=((ya=ia.current)===null||ya===void 0?void 0:ya.offsetWidth)||0,ts=((Ua=ia.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0;oi(qo),Ea(Mo),ha($i),la(To);var Jo=(((to=Ra.current)===null||to===void 0?void 0:to.offsetWidth)||0)-$i,zo=(((go=Ra.current)===null||go===void 0?void 0:go.offsetHeight)||0)-To;Xi(Jo),Lt(zo);var is=(wo=ia.current)===null||wo===void 0?void 0:wo.className.includes(Pa);ur(Jo-(is?0:fo)),Wr(zo-(is?0:ts)),oo(function(){var Rs=new Map;return Dr.forEach(function(gs){var ps=gs.key,Ps=Cr(ps).current;Ps&&Rs.set(ps,{width:Ps.offsetWidth,height:Ps.offsetHeight,left:Ps.offsetLeft,top:Ps.offsetTop})}),Rs})}),pt=Dr.slice(0,Ka),Nt=Dr.slice(Xa+1),sn=[].concat(Object(s.a)(pt),Object(s.a)(Nt)),Mn=Object(w.useState)(),hi=Object(h.a)(Mn,2),ot=hi[0],ae=hi[1],de=ja.get(Dn),ye=Object(w.useRef)();function Ke(){a.a.cancel(ye.current)}Object(w.useEffect)(function(){var Rn={};return de&&(Vr?(Jn?Rn.right=de.right:Rn.left=de.left,Rn.width=de.width):(Rn.top=de.top,Rn.height=de.height)),Ke(),ye.current=a()(function(){ae(Rn)}),Ke},[de,Vr,Jn]),Object(w.useEffect)(function(){Wo()},[Dn,de,ja,Vr]),Object(w.useEffect)(function(){Eo()},[Jn,Ha,Dn,Dr.map(function(Rn){return Rn.key}).join("_")]);var ct=!!sn.length,Bt="".concat(er,"-nav-wrap"),Ir,Br,un,zn;return Vr?Jn?(Br=Sr>0,Ir=Sr+Nn<li):(Ir=Sr<0,Br=-Sr+Nn<li):(un=Gn<0,zn=-Gn+wi<tr),w.createElement("div",{ref:An,role:"tablist",className:o()("".concat(er,"-nav"),lr),style:on,onKeyDown:function(){$o()}},w.createElement(pa,{position:"left",extra:Ti,prefixCls:er}),w.createElement(b,{onResize:Eo},w.createElement("div",{className:o()(Bt,(Pn={},Object(m.a)(Pn,"".concat(Bt,"-ping-left"),Ir),Object(m.a)(Pn,"".concat(Bt,"-ping-right"),Br),Object(m.a)(Pn,"".concat(Bt,"-ping-top"),un),Object(m.a)(Pn,"".concat(Bt,"-ping-bottom"),zn),Pn)),ref:Ga},w.createElement(b,{onResize:Eo},w.createElement("div",{ref:Ra,className:"".concat(er,"-nav-list"),style:{transform:"translate(".concat(Sr,"px, ").concat(Gn,"px)"),transition:rs?"none":void 0}},bo,w.createElement(So,{ref:qe,prefixCls:er,locale:Bi,editable:xi,style:{visibility:ct?"hidden":null}}),w.createElement("div",{className:o()("".concat(er,"-ink-bar"),Object(m.a)({},"".concat(er,"-ink-bar-animated"),Wn.inkBar)),style:ot}))))),w.createElement(hr,Object.assign({},Pr,{ref:ia,prefixCls:er,tabs:sn,className:!ct&&Pa})),w.createElement(pa,{position:"right",extra:Ti,prefixCls:er}))}var da=w.forwardRef(_i);function na(Pr){var An=Pr.id,Pn=Pr.activeKey,qr=Pr.animated,er=Pr.tabPosition,Dr=Pr.rtl,lr=Pr.destroyInactiveTabPane,on=w.useContext(Sn),fn=on.prefixCls,Wn=on.tabs,Dn=qr.tabPane,Jn=Wn.findIndex(function(Ti){return Ti.key===Pn});return w.createElement("div",{className:o()("".concat(fn,"-content-holder"))},w.createElement("div",{className:o()("".concat(fn,"-content"),"".concat(fn,"-content-").concat(er),Object(m.a)({},"".concat(fn,"-content-animated"),Dn)),style:Jn&&Dn?Object(m.a)({},Dr?"marginRight":"marginLeft","-".concat(Jn,"00%")):null},Wn.map(function(Ti){return w.cloneElement(Ti.node,{key:Ti.key,prefixCls:fn,tabKey:Ti.key,id:An,animated:Dn,active:Ti.key===Pn,destroyInactiveTabPane:lr})})))}function Sa(Pr){var An=Pr.prefixCls,Pn=Pr.forceRender,qr=Pr.className,er=Pr.style,Dr=Pr.id,lr=Pr.active,on=Pr.animated,fn=Pr.destroyInactiveTabPane,Wn=Pr.tabKey,Dn=Pr.children,Jn=w.useState(Pn),Ti=Object(h.a)(Jn,2),xi=Ti[0],Bi=Ti[1];w.useEffect(function(){lr?Bi(!0):fn&&Bi(!1)},[lr,fn]);var ea={};return lr||(on?(ea.visibility="hidden",ea.height=0,ea.overflowY="hidden"):ea.display="none"),w.createElement("div",{id:Dr&&"".concat(Dr,"-panel-").concat(Wn),role:"tabpanel",tabIndex:lr?0:-1,"aria-labelledby":Dr&&"".concat(Dr,"-tab-").concat(Wn),"aria-hidden":!lr,style:Object(i.a)(Object(i.a)({},ea),er),className:o()("".concat(An,"-tabpane"),lr&&"".concat(An,"-tabpane-active"),qr)},(lr||xi||Pn)&&Dn)}var Aa=0;function ua(Pr){return Object(n.a)(Pr).map(function(An){if(w.isValidElement(An)){var Pn=An.key!==void 0?String(An.key):void 0;return Object(i.a)(Object(i.a)({key:Pn},An.props),{},{node:An})}return null}).filter(function(An){return An})}function La(Pr,An){var Pn,qr=Pr.id,er=Pr.prefixCls,Dr=er===void 0?"rc-tabs":er,lr=Pr.className,on=Pr.children,fn=Pr.direction,Wn=Pr.activeKey,Dn=Pr.defaultActiveKey,Jn=Pr.editable,Ti=Pr.animated,xi=Pr.tabPosition,Bi=xi===void 0?"top":xi,ea=Pr.tabBarGutter,Ha=Pr.tabBarStyle,Qa=Pr.tabBarExtraContent,io=Pr.locale,Ja=Pr.moreIcon,Ga=Pr.moreTransitionName,Ra=Pr.destroyInactiveTabPane,ia=Pr.renderTabBar,qe=Pr.onChange,rr=Pr.onTabClick,Rr=Pr.onTabScroll,Cr=Object(c.a)(Pr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),pn=ua(on),Vr=fn==="rtl",br;Ti===!1?br={inkBar:!1,tabPane:!1}:br=Object(i.a)({inkBar:!0,tabPane:!1},Ti!==!0?Ti:null);var In=Object(w.useState)(!1),Sr=Object(h.a)(In,2),gn=Sr[0],$n=Sr[1];Object(w.useEffect)(function(){$n(pi())},[]);var qn=Object(e.a)(function(){var nr;return(nr=pn[0])===null||nr===void 0?void 0:nr.key},{value:Wn,defaultValue:Dn}),Gn=Object(h.a)(qn,2),mi=Gn[0],ti=Gn[1],ri=Object(w.useState)(function(){return pn.findIndex(function(nr){return nr.key===mi})}),li=Object(h.a)(ri,2),Xi=li[0],Pi=li[1];Object(w.useEffect)(function(){var nr=pn.findIndex(function(En){return En.key===mi});if(nr===-1){var Wr;nr=Math.max(0,Math.min(Xi,pn.length-1)),ti((Wr=pn[nr])===null||Wr===void 0?void 0:Wr.key)}Pi(nr)},[pn.map(function(nr){return nr.key}).join("_"),mi,Xi]);var ga=Object(e.a)(null,{value:qr}),tr=Object(h.a)(ga,2),Lt=tr[0],yr=tr[1],xt=Bi;gn&&!["left","right"].includes(Bi)&&(xt="top"),Object(w.useEffect)(function(){qr||(yr("rc-tabs-".concat(Aa)),Aa+=1)},[]);function Ut(nr,Wr){rr==null||rr(nr,Wr),ti(nr),qe==null||qe(nr)}var ur={id:Lt,activeKey:mi,animated:br,tabPosition:xt,rtl:Vr,mobile:gn},Ct,dr=Object(i.a)(Object(i.a)({},ur),{},{editable:Jn,locale:io,moreIcon:Ja,moreTransitionName:Ga,tabBarGutter:ea,onTabClick:Ut,onTabScroll:Rr,extra:Qa,style:Ha,panes:on});return ia?Ct=ia(dr,da):Ct=w.createElement(da,Object.assign({},dr)),w.createElement(Sn.Provider,{value:{tabs:pn,prefixCls:Dr}},w.createElement("div",Object.assign({ref:An,id:qr,className:o()(Dr,"".concat(Dr,"-").concat(xt),(Pn={},Object(m.a)(Pn,"".concat(Dr,"-mobile"),gn),Object(m.a)(Pn,"".concat(Dr,"-editable"),Jn),Object(m.a)(Pn,"".concat(Dr,"-rtl"),Vr),Pn),lr)},Cr),Ct,w.createElement(na,Object.assign({destroyInactiveTabPane:Ra},ur,{animated:br}))))}var sa=w.forwardRef(La);sa.TabPane=Sa;var co=sa,no=co,ca=d("cCPh"),yo=d.n(ca),lo=d("fNCr"),Na=d.n(lo),ho=d("V/uB"),Io=d.n(ho),eo=d("uaoM"),Lo=d("H84U"),Va=function(Pr,An){var Pn={};for(var qr in Pr)Object.prototype.hasOwnProperty.call(Pr,qr)&&An.indexOf(qr)<0&&(Pn[qr]=Pr[qr]);if(Pr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var er=0,qr=Object.getOwnPropertySymbols(Pr);er<qr.length;er++)An.indexOf(qr[er])<0&&Object.prototype.propertyIsEnumerable.call(Pr,qr[er])&&(Pn[qr[er]]=Pr[qr[er]]);return Pn};function Bo(Pr){var An,Pn=Pr.type,qr=Pr.className,er=Pr.size,Dr=Pr.onEdit,lr=Pr.hideAdd,on=Pr.centered,fn=Pr.addIcon,Wn=Va(Pr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),Dn=Wn.prefixCls,Jn=w.useContext(Lo.b),Ti=Jn.getPrefixCls,xi=Jn.direction,Bi=Ti("tabs",Dn),ea;return Pn==="editable-card"&&(ea={onEdit:function(Qa,io){var Ja=io.key,Ga=io.event;Dr==null||Dr(Qa==="add"?Ga:Ja,Qa)},removeIcon:w.createElement(Io.a,null),addIcon:fn||w.createElement(Na.a,null),showAdd:lr!==!0}),Object(eo.a)(!("onPrevClick"in Wn)&&!("onNextClick"in Wn),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),w.createElement(no,E()({direction:xi},Wn,{moreTransitionName:"slide-up",className:o()(qr,(An={},v()(An,"".concat(Bi,"-").concat(er),er),v()(An,"".concat(Bi,"-card"),["card","editable-card"].includes(Pn)),v()(An,"".concat(Bi,"-editable-card"),Pn==="editable-card"),v()(An,"".concat(Bi,"-centered"),on),An)),editable:ea,moreIcon:w.createElement(yo.a,null),prefixCls:Bi}))}Bo.TabPane=Sa;var Ho=P.a=Bo},ZTW2:function(j,P,d){},ZWlE:function(j,P,d){var O=d("bYtY"),E=d("4NO4");function C(m){v(m),w(m)}function v(m){if(m.parallel)return;var h=!1;O.each(m.series,function(c){c&&c.type==="parallel"&&(h=!0)}),h&&(m.parallel=[{}])}function w(m){var h=E.normalizeToArray(m.parallelAxis);O.each(h,function(c){if(!O.isObject(c))return;var i=c.parallelIndex||0,r=E.normalizeToArray(m.parallel)[i];r&&r.parallelAxisDefault&&O.merge(c,r.parallelAxisDefault,!1)})}j.exports=C},ZX9x:function(j,P,d){"use strict";d.d(P,"a",function(){return I}),d.d(P,"b",function(){return N});var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("lwsE"),m=d.n(w),h=d("W8MJ"),c=d.n(h),i=d("7W2i"),r=d.n(i),o=d("LQ03"),n=d.n(o),e=d("q1tI"),s=d("TSYQ"),t=d.n(s),a=d("BGR+"),l=d("T1rO"),u=d.n(l),f=d("fEPi"),p=d.n(f),g=d("DFhj"),A=d.n(g),y=d("PKem"),x=d("H84U"),T=function(B){return!isNaN(parseFloat(B))&&isFinite(B)},S=T,b=function(M,B){var R={};for(var H in M)Object.prototype.hasOwnProperty.call(M,H)&&B.indexOf(H)<0&&(R[H]=M[H]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,H=Object.getOwnPropertySymbols(M);F<H.length;F++)B.indexOf(H[F])<0&&Object.prototype.propertyIsEnumerable.call(M,H[F])&&(R[H[F]]=M[H[F]]);return R},_={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),L=function(){var M=0;return function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return M+=1,"".concat(B).concat(M)}}(),D=function(M){r()(R,M);var B=n()(R);function R(H){var F;m()(this,R),F=B.call(this,H),F.responsiveHandler=function(V){F.setState({below:V.matches});var z=F.props.onBreakpoint,Y=F.state.collapsed;z&&z(V.matches),Y!==V.matches&&F.setCollapsed(V.matches,"responsive")},F.setCollapsed=function(V,z){"collapsed"in F.props||F.setState({collapsed:V});var Y=F.props.onCollapse;Y&&Y(V,z)},F.toggle=function(){var V=!F.state.collapsed;F.setCollapsed(V,"clickTrigger")},F.renderSider=function(V){var z,Y=V.getPrefixCls,q=F.props,ce=q.prefixCls,ie=q.className,ve=q.theme,Ee=q.collapsible,Le=q.reverseArrow,He=q.trigger,ge=q.style,Fe=q.width,Q=q.collapsedWidth,fe=q.zeroWidthTriggerStyle,Je=q.children,ne=b(q,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),X=F.state,G=X.collapsed,te=X.below,we=Y("layout-sider",ce),he=Object(a.default)(ne,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Pe=G?Q:Fe,Oe=S(Pe)?"".concat(Pe,"px"):String(Pe),le=parseFloat(String(Q||0))===0?e.createElement("span",{onClick:F.toggle,className:t()("".concat(we,"-zero-width-trigger"),"".concat(we,"-zero-width-trigger-").concat(Le?"right":"left")),style:fe},He||e.createElement(u.a,null)):null,me={expanded:Le?e.createElement(p.a,null):e.createElement(A.a,null),collapsed:Le?e.createElement(A.a,null):e.createElement(p.a,null)},_e=G?"collapsed":"expanded",$e=me[_e],gt=He!==null?le||e.createElement("div",{className:"".concat(we,"-trigger"),onClick:F.toggle,style:{width:Oe}},He||$e):null,et=v()(v()({},ge),{flex:"0 0 ".concat(Oe),maxWidth:Oe,minWidth:Oe,width:Oe}),Ie=t()(ie,we,"".concat(we,"-").concat(ve),(z={},E()(z,"".concat(we,"-collapsed"),!!G),E()(z,"".concat(we,"-has-trigger"),Ee&&He!==null&&!le),E()(z,"".concat(we,"-below"),!!te),E()(z,"".concat(we,"-zero-width"),parseFloat(Oe)===0),z));return e.createElement("aside",v()({className:Ie},he,{style:et}),e.createElement("div",{className:"".concat(we,"-children")},Je),Ee||te&&le?gt:null)},F.uniqueId=L("ant-sider-");var K;typeof window!="undefined"&&(K=window.matchMedia),K&&H.breakpoint&&H.breakpoint in _&&(F.mql=K("(max-width: ".concat(_[H.breakpoint],")")));var U;return"collapsed"in H?U=H.collapsed:U=H.defaultCollapsed,F.state={collapsed:U,below:!1},F}return c()(R,[{key:"componentDidMount",value:function(){var F;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(F=this.props)===null||F===void 0||F.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var F,K;(F=this===null||this===void 0?void 0:this.mql)===null||F===void 0||F.removeListener(this.responsiveHandler),(K=this.props)===null||K===void 0||K.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var F=this.state.collapsed,K=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:F,collapsedWidth:K}},e.createElement(x.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(F){return"collapsed"in F?{collapsed:F.collapsed}:null}}]),R}(e.Component);D.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var N=function(M){r()(R,M);var B=n()(R);function R(){return m()(this,R),B.apply(this,arguments)}return c()(R,[{key:"render",value:function(){var F=this;return e.createElement(y.a.Consumer,null,function(K){return e.createElement(D,v()({},K,F.props))})}}]),R}(e.Component)},ZYIC:function(j,P,d){var O=d("zM3Q"),E={seriesType:"lines",plan:O(),reset:function(C){var v=C.coordinateSystem,w=C.get("polyline"),m=C.pipelineContext.large;function h(c,i){var r=[];if(m){var o,n=c.end-c.start;if(w){for(var e=0,s=c.start;s<c.end;s++)e+=C.getLineCoordsCount(s);o=new Float32Array(n+e*2)}else o=new Float32Array(n*4);for(var t=0,a=[],s=c.start;s<c.end;s++){var l=C.getLineCoords(s,r);w&&(o[t++]=l);for(var u=0;u<l;u++)a=v.dataToPoint(r[u],!1,a),o[t++]=a[0],o[t++]=a[1]}i.setLayout("linesPoints",o)}else for(var s=c.start;s<c.end;s++){var f=i.getItemModel(s),l=C.getLineCoords(s,r),p=[];if(w)for(var g=0;g<l;g++)p.push(v.dataToPoint(r[g]));else{p[0]=v.dataToPoint(r[0]),p[1]=v.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])}i.setItemLayout(s,p)}}return{progress:h}}};j.exports=E},Ze12:function(j,P,d){var O=d("ItGF"),E=d("hOwI"),C=E.buildTransformer,v="___zrEVENTSAVED",w=[];function m(o,n,e,s,t){return h(w,n,s,t,!0)&&h(o,e,w[0],w[1])}function h(o,n,e,s,t){if(n.getBoundingClientRect&&O.domSupported&&!r(n)){var a=n[v]||(n[v]={}),l=c(n,a),u=i(l,a,t);if(u)return u(o,e,s),!0}return!1}function c(o,n){var e=n.markers;if(e)return e;e=n.markers=[];for(var s=["left","right"],t=["top","bottom"],a=0;a<4;a++){var l=document.createElement("div"),u=l.style,f=a%2,p=(a>>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",t[p]+":0",s[1-f]+":auto",t[1-p]+":auto",""].join("!important;"),o.appendChild(l),e.push(l)}return e}function i(o,n,e){for(var s=e?"invTrans":"trans",t=n[s],a=n.srcCoords,l=!0,u=[],f=[],p=0;p<4;p++){var g=o[p].getBoundingClientRect(),A=2*p,y=g.left,x=g.top;u.push(y,x),l=l&&a&&y===a[A]&&x===a[A+1],f.push(o[p].offsetLeft,o[p].offsetTop)}return l&&t?t:(n.srcCoords=u,n[s]=e?C(f,u):C(u,f))}function r(o){return o.nodeName.toUpperCase()==="CANVAS"}P.transformLocalCoord=m,P.transformCoordWithViewport=h,P.isCanvasEl=r},Znkb:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("zTMp"),w=C.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(r,o,n,e){this.axisPointerClass&&v.fixValue(r),w.superApply(this,"render",arguments),m(this,r,o,n,e,!0)},updateAxisPointer:function(r,o,n,e,s){m(this,r,o,n,e,!1)},remove:function(r,o){var n=this._axisPointer;n&&n.remove(o),w.superApply(this,"remove",arguments)},dispose:function(r,o){h(this,o),w.superApply(this,"dispose",arguments)}});function m(r,o,n,e,s,t){var a=w.getAxisPointerClass(r.axisPointerClass);if(!a)return;var l=v.getAxisPointerModel(o);l?(r._axisPointer||(r._axisPointer=new a)).render(o,l,e,t):h(r,e)}function h(r,o,n){var e=r._axisPointer;e&&e.dispose(o,n),r._axisPointer=null}var c=[];w.registerAxisPointerClass=function(r,o){c[r]=o},w.getAxisPointerClass=function(r){return r&&c[r]};var i=w;j.exports=i},"Znn+":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("9ama"),v=d.n(C)},ZqQs:function(j,P,d){var O=d("bYtY");function E(m){var h=m&&m.timeline;O.isArray(h)||(h=h?[h]:[]),O.each(h,function(c){if(!c)return;C(c)})}function C(m){var h=m.type,c={number:"value",time:"time"};if(c[h]&&(m.axisType=c[h],delete m.type),v(m),w(m,"controlPosition")){var i=m.controlStyle||(m.controlStyle={});w(i,"position")||(i.position=m.controlPosition),i.position==="none"&&!w(i,"show")&&(i.show=!1,delete i.position),delete m.controlPosition}O.each(m.data||[],function(r){O.isObject(r)&&!O.isArray(r)&&(!w(r,"value")&&w(r,"name")&&(r.value=r.name),v(r))})}function v(m){var h=m.itemStyle||(m.itemStyle={}),c=h.emphasis||(h.emphasis={}),i=m.label||m.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};O.each(i,function(n,e){!o[e]&&!w(r,e)&&(r[e]=n)}),c.label&&!w(i,"emphasis")&&(i.emphasis=c.label,delete c.label)}function w(m,h){return m.hasOwnProperty(h)}j.exports=E},Zss7:function(j,P,d){var O;(function(E){var C=/^\s+/,v=/\s+$/,w=0,m=E.round,h=E.min,c=E.max,i=E.random;function r(ge,Fe){if(ge=ge||"",Fe=Fe||{},ge instanceof r)return ge;if(!(this instanceof r))return new r(ge,Fe);var Q=o(ge);this._originalInput=ge,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=Fe.format||Q.format,this._gradientType=Fe.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=w++}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 Fe=this.toRgb();return(Fe.r*299+Fe.g*587+Fe.b*114)/1e3},getLuminance:function(){var Fe=this.toRgb(),Q,fe,Je,ne,X,G;return Q=Fe.r/255,fe=Fe.g/255,Je=Fe.b/255,Q<=.03928?ne=Q/12.92:ne=E.pow((Q+.055)/1.055,2.4),fe<=.03928?X=fe/12.92:X=E.pow((fe+.055)/1.055,2.4),Je<=.03928?G=Je/12.92:G=E.pow((Je+.055)/1.055,2.4),.2126*ne+.7152*X+.0722*G},setAlpha:function(Fe){return this._a=H(Fe),this._roundA=m(100*this._a)/100,this},toHsv:function(){var Fe=t(this._r,this._g,this._b);return{h:Fe.h*360,s:Fe.s,v:Fe.v,a:this._a}},toHsvString:function(){var Fe=t(this._r,this._g,this._b),Q=m(Fe.h*360),fe=m(Fe.s*100),Je=m(Fe.v*100);return this._a==1?"hsv("+Q+", "+fe+"%, "+Je+"%)":"hsva("+Q+", "+fe+"%, "+Je+"%, "+this._roundA+")"},toHsl:function(){var Fe=e(this._r,this._g,this._b);return{h:Fe.h*360,s:Fe.s,l:Fe.l,a:this._a}},toHslString:function(){var Fe=e(this._r,this._g,this._b),Q=m(Fe.h*360),fe=m(Fe.s*100),Je=m(Fe.l*100);return this._a==1?"hsl("+Q+", "+fe+"%, "+Je+"%)":"hsla("+Q+", "+fe+"%, "+Je+"%, "+this._roundA+")"},toHex:function(Fe){return l(this._r,this._g,this._b,Fe)},toHexString:function(Fe){return"#"+this.toHex(Fe)},toHex8:function(Fe){return u(this._r,this._g,this._b,this._a,Fe)},toHex8String:function(Fe){return"#"+this.toHex8(Fe)},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(F(this._r,255)*100)+"%",g:m(F(this._g,255)*100)+"%",b:m(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%)":"rgba("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(Fe){var Q="#"+f(this._r,this._g,this._b,this._a),fe=Q,Je=this._gradientType?"GradientType = 1, ":"";if(Fe){var ne=r(Fe);fe="#"+f(ne._r,ne._g,ne._b,ne._a)}return"progid:DXImageTransform.Microsoft.gradient("+Je+"startColorstr="+Q+",endColorstr="+fe+")"},toString:function(Fe){var Q=!!Fe;Fe=Fe||this._format;var fe=!1,Je=this._a<1&&this._a>=0,ne=!Q&&Je&&(Fe==="hex"||Fe==="hex6"||Fe==="hex3"||Fe==="hex4"||Fe==="hex8"||Fe==="name");return ne?Fe==="name"&&this._a===0?this.toName():this.toRgbString():(Fe==="rgb"&&(fe=this.toRgbString()),Fe==="prgb"&&(fe=this.toPercentageRgbString()),(Fe==="hex"||Fe==="hex6")&&(fe=this.toHexString()),Fe==="hex3"&&(fe=this.toHexString(!0)),Fe==="hex4"&&(fe=this.toHex8String(!0)),Fe==="hex8"&&(fe=this.toHex8String()),Fe==="name"&&(fe=this.toName()),Fe==="hsl"&&(fe=this.toHslString()),Fe==="hsv"&&(fe=this.toHsvString()),fe||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(Fe,Q){var fe=Fe.apply(null,[this].concat([].slice.call(Q)));return this._r=fe._r,this._g=fe._g,this._b=fe._b,this.setAlpha(fe._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(Fe,Q){return Fe.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(I,arguments)}},r.fromRatio=function(ge,Fe){if(typeof ge=="object"){var Q={};for(var fe in ge)ge.hasOwnProperty(fe)&&(fe==="a"?Q[fe]=ge[fe]:Q[fe]=q(ge[fe]));ge=Q}return r(ge,Fe)};function o(ge){var Fe={r:0,g:0,b:0},Q=1,fe=null,Je=null,ne=null,X=!1,G=!1;return typeof ge=="string"&&(ge=Le(ge)),typeof ge=="object"&&(Ee(ge.r)&&Ee(ge.g)&&Ee(ge.b)?(Fe=n(ge.r,ge.g,ge.b),X=!0,G=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):Ee(ge.h)&&Ee(ge.s)&&Ee(ge.v)?(fe=q(ge.s),Je=q(ge.v),Fe=a(ge.h,fe,Je),X=!0,G="hsv"):Ee(ge.h)&&Ee(ge.s)&&Ee(ge.l)&&(fe=q(ge.s),ne=q(ge.l),Fe=s(ge.h,fe,ne),X=!0,G="hsl"),ge.hasOwnProperty("a")&&(Q=ge.a)),Q=H(Q),{ok:X,format:ge.format||G,r:h(255,c(Fe.r,0)),g:h(255,c(Fe.g,0)),b:h(255,c(Fe.b,0)),a:Q}}function n(ge,Fe,Q){return{r:F(ge,255)*255,g:F(Fe,255)*255,b:F(Q,255)*255}}function e(ge,Fe,Q){ge=F(ge,255),Fe=F(Fe,255),Q=F(Q,255);var fe=c(ge,Fe,Q),Je=h(ge,Fe,Q),ne,X,G=(fe+Je)/2;if(fe==Je)ne=X=0;else{var te=fe-Je;X=G>.5?te/(2-fe-Je):te/(fe+Je);switch(fe){case ge:ne=(Fe-Q)/te+(Fe<Q?6:0);break;case Fe:ne=(Q-ge)/te+2;break;case Q:ne=(ge-Fe)/te+4;break}ne/=6}return{h:ne,s:X,l:G}}function s(ge,Fe,Q){var fe,Je,ne;ge=F(ge,360),Fe=F(Fe,100),Q=F(Q,100);function X(we,he,Pe){return Pe<0&&(Pe+=1),Pe>1&&(Pe-=1),Pe<1/6?we+(he-we)*6*Pe:Pe<1/2?he:Pe<2/3?we+(he-we)*(2/3-Pe)*6:we}if(Fe===0)fe=Je=ne=Q;else{var G=Q<.5?Q*(1+Fe):Q+Fe-Q*Fe,te=2*Q-G;fe=X(te,G,ge+1/3),Je=X(te,G,ge),ne=X(te,G,ge-1/3)}return{r:fe*255,g:Je*255,b:ne*255}}function t(ge,Fe,Q){ge=F(ge,255),Fe=F(Fe,255),Q=F(Q,255);var fe=c(ge,Fe,Q),Je=h(ge,Fe,Q),ne,X,G=fe,te=fe-Je;if(X=fe===0?0:te/fe,fe==Je)ne=0;else{switch(fe){case ge:ne=(Fe-Q)/te+(Fe<Q?6:0);break;case Fe:ne=(Q-ge)/te+2;break;case Q:ne=(ge-Fe)/te+4;break}ne/=6}return{h:ne,s:X,v:G}}function a(ge,Fe,Q){ge=F(ge,360)*6,Fe=F(Fe,100),Q=F(Q,100);var fe=E.floor(ge),Je=ge-fe,ne=Q*(1-Fe),X=Q*(1-Je*Fe),G=Q*(1-(1-Je)*Fe),te=fe%6,we=[Q,X,ne,ne,G,Q][te],he=[G,Q,Q,X,ne,ne][te],Pe=[ne,ne,G,Q,Q,X][te];return{r:we*255,g:he*255,b:Pe*255}}function l(ge,Fe,Q,fe){var Je=[Y(m(ge).toString(16)),Y(m(Fe).toString(16)),Y(m(Q).toString(16))];return fe&&Je[0].charAt(0)==Je[0].charAt(1)&&Je[1].charAt(0)==Je[1].charAt(1)&&Je[2].charAt(0)==Je[2].charAt(1)?Je[0].charAt(0)+Je[1].charAt(0)+Je[2].charAt(0):Je.join("")}function u(ge,Fe,Q,fe,Je){var ne=[Y(m(ge).toString(16)),Y(m(Fe).toString(16)),Y(m(Q).toString(16)),Y(ce(fe))];return Je&&ne[0].charAt(0)==ne[0].charAt(1)&&ne[1].charAt(0)==ne[1].charAt(1)&&ne[2].charAt(0)==ne[2].charAt(1)&&ne[3].charAt(0)==ne[3].charAt(1)?ne[0].charAt(0)+ne[1].charAt(0)+ne[2].charAt(0)+ne[3].charAt(0):ne.join("")}function f(ge,Fe,Q,fe){var Je=[Y(ce(fe)),Y(m(ge).toString(16)),Y(m(Fe).toString(16)),Y(m(Q).toString(16))];return Je.join("")}r.equals=function(ge,Fe){return!ge||!Fe?!1:r(ge).toRgbString()==r(Fe).toRgbString()},r.random=function(){return r.fromRatio({r:i(),g:i(),b:i()})};function p(ge,Fe){Fe=Fe===0?0:Fe||10;var Q=r(ge).toHsl();return Q.s-=Fe/100,Q.s=K(Q.s),r(Q)}function g(ge,Fe){Fe=Fe===0?0:Fe||10;var Q=r(ge).toHsl();return Q.s+=Fe/100,Q.s=K(Q.s),r(Q)}function A(ge){return r(ge).desaturate(100)}function y(ge,Fe){Fe=Fe===0?0:Fe||10;var Q=r(ge).toHsl();return Q.l+=Fe/100,Q.l=K(Q.l),r(Q)}function x(ge,Fe){Fe=Fe===0?0:Fe||10;var Q=r(ge).toRgb();return Q.r=c(0,h(255,Q.r-m(255*-(Fe/100)))),Q.g=c(0,h(255,Q.g-m(255*-(Fe/100)))),Q.b=c(0,h(255,Q.b-m(255*-(Fe/100)))),r(Q)}function T(ge,Fe){Fe=Fe===0?0:Fe||10;var Q=r(ge).toHsl();return Q.l-=Fe/100,Q.l=K(Q.l),r(Q)}function S(ge,Fe){var Q=r(ge).toHsl(),fe=(Q.h+Fe)%360;return Q.h=fe<0?360+fe:fe,r(Q)}function b(ge){var Fe=r(ge).toHsl();return Fe.h=(Fe.h+180)%360,r(Fe)}function _(ge){var Fe=r(ge).toHsl(),Q=Fe.h;return[r(ge),r({h:(Q+120)%360,s:Fe.s,l:Fe.l}),r({h:(Q+240)%360,s:Fe.s,l:Fe.l})]}function I(ge){var Fe=r(ge).toHsl(),Q=Fe.h;return[r(ge),r({h:(Q+90)%360,s:Fe.s,l:Fe.l}),r({h:(Q+180)%360,s:Fe.s,l:Fe.l}),r({h:(Q+270)%360,s:Fe.s,l:Fe.l})]}function L(ge){var Fe=r(ge).toHsl(),Q=Fe.h;return[r(ge),r({h:(Q+72)%360,s:Fe.s,l:Fe.l}),r({h:(Q+216)%360,s:Fe.s,l:Fe.l})]}function D(ge,Fe,Q){Fe=Fe||6,Q=Q||30;var fe=r(ge).toHsl(),Je=360/Q,ne=[r(ge)];for(fe.h=(fe.h-(Je*Fe>>1)+720)%360;--Fe;)fe.h=(fe.h+Je)%360,ne.push(r(fe));return ne}function N(ge,Fe){Fe=Fe||6;for(var Q=r(ge).toHsv(),fe=Q.h,Je=Q.s,ne=Q.v,X=[],G=1/Fe;Fe--;)X.push(r({h:fe,s:Je,v:ne})),ne=(ne+G)%1;return X}r.mix=function(ge,Fe,Q){Q=Q===0?0:Q||50;var fe=r(ge).toRgb(),Je=r(Fe).toRgb(),ne=Q/100,X={r:(Je.r-fe.r)*ne+fe.r,g:(Je.g-fe.g)*ne+fe.g,b:(Je.b-fe.b)*ne+fe.b,a:(Je.a-fe.a)*ne+fe.a};return r(X)},r.readability=function(ge,Fe){var Q=r(ge),fe=r(Fe);return(E.max(Q.getLuminance(),fe.getLuminance())+.05)/(E.min(Q.getLuminance(),fe.getLuminance())+.05)},r.isReadable=function(ge,Fe,Q){var fe=r.readability(ge,Fe),Je,ne;ne=!1,Je=He(Q);switch(Je.level+Je.size){case"AAsmall":case"AAAlarge":ne=fe>=4.5;break;case"AAlarge":ne=fe>=3;break;case"AAAsmall":ne=fe>=7;break}return ne},r.mostReadable=function(ge,Fe,Q){var fe=null,Je=0,ne,X,G,te;Q=Q||{},X=Q.includeFallbackColors,G=Q.level,te=Q.size;for(var we=0;we<Fe.length;we++)ne=r.readability(ge,Fe[we]),ne>Je&&(Je=ne,fe=r(Fe[we]));return r.isReadable(ge,fe,{level:G,size:te})||!X?fe:(Q.includeFallbackColors=!1,r.mostReadable(ge,["#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"},B=r.hexNames=R(M);function R(ge){var Fe={};for(var Q in ge)ge.hasOwnProperty(Q)&&(Fe[ge[Q]]=Q);return Fe}function H(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function F(ge,Fe){V(ge)&&(ge="100%");var Q=z(ge);return ge=h(Fe,c(0,parseFloat(ge))),Q&&(ge=parseInt(ge*Fe,10)/100),E.abs(ge-Fe)<1e-6?1:ge%Fe/parseFloat(Fe)}function K(ge){return h(1,c(0,ge))}function U(ge){return parseInt(ge,16)}function V(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function z(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function Y(ge){return ge.length==1?"0"+ge:""+ge}function q(ge){return ge<=1&&(ge=ge*100+"%"),ge}function ce(ge){return E.round(parseFloat(ge)*255).toString(16)}function ie(ge){return U(ge)/255}var ve=function(){var ge="[-\\+]?\\d+%?",Fe="[-\\+]?\\d*\\.\\d+%?",Q="(?:"+Fe+")|(?:"+ge+")",fe="[\\s|\\(]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?",Je="[\\s|\\(]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?";return{CSS_UNIT:new RegExp(Q),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+Je),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+Je),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+Je),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 Ee(ge){return!!ve.CSS_UNIT.exec(ge)}function Le(ge){ge=ge.replace(C,"").replace(v,"").toLowerCase();var Fe=!1;if(M[ge])ge=M[ge],Fe=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Q;return(Q=ve.rgb.exec(ge))?{r:Q[1],g:Q[2],b:Q[3]}:(Q=ve.rgba.exec(ge))?{r:Q[1],g:Q[2],b:Q[3],a:Q[4]}:(Q=ve.hsl.exec(ge))?{h:Q[1],s:Q[2],l:Q[3]}:(Q=ve.hsla.exec(ge))?{h:Q[1],s:Q[2],l:Q[3],a:Q[4]}:(Q=ve.hsv.exec(ge))?{h:Q[1],s:Q[2],v:Q[3]}:(Q=ve.hsva.exec(ge))?{h:Q[1],s:Q[2],v:Q[3],a:Q[4]}:(Q=ve.hex8.exec(ge))?{r:U(Q[1]),g:U(Q[2]),b:U(Q[3]),a:ie(Q[4]),format:Fe?"name":"hex8"}:(Q=ve.hex6.exec(ge))?{r:U(Q[1]),g:U(Q[2]),b:U(Q[3]),format:Fe?"name":"hex"}:(Q=ve.hex4.exec(ge))?{r:U(Q[1]+""+Q[1]),g:U(Q[2]+""+Q[2]),b:U(Q[3]+""+Q[3]),a:ie(Q[4]+""+Q[4]),format:Fe?"name":"hex8"}:(Q=ve.hex3.exec(ge))?{r:U(Q[1]+""+Q[1]),g:U(Q[2]+""+Q[2]),b:U(Q[3]+""+Q[3]),format:Fe?"name":"hex"}:!1}function He(ge){var Fe,Q;return ge=ge||{level:"AA",size:"small"},Fe=(ge.level||"AA").toUpperCase(),Q=(ge.size||"small").toLowerCase(),Fe!=="AA"&&Fe!=="AAA"&&(Fe="AA"),Q!=="small"&&Q!=="large"&&(Q="small"),{level:Fe,size:Q}}j.exports?j.exports=r:!(O=function(){return r}.call(P,d,P,j),O!==void 0&&(j.exports=O))})(Math)},Zvw2:function(j,P,d){var O=d("bYtY"),E=d("hM6l"),C=function(w,m,h,c,i){E.call(this,w,m,h),this.type=c||"value",this.position=i||"bottom",this.orient=null};C.prototype={constructor:C,model:null,isHorizontal:function(){var w=this.position;return w==="top"||w==="bottom"},pointToData:function(w,m){return this.coordinateSystem.pointToData(w,m)[0]},toGlobalCoord:null,toLocalCoord:null},O.inherits(C,E);var v=C;j.exports=v},a7Wl:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},a9QJ:function(j,P){var d={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function O(E,C){if(E==="world"){var v=d[C.name];if(v){var w=C.center;w[0]=v[0],w[1]=v[1]}}}j.exports=O},aHsQ:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("6D9b"),v=d.n(C)},aKvl:function(j,P,d){var O=d("Sj9i"),E=O.quadraticProjectPoint;function C(v,w,m,h,c,i,r,o,n){if(r===0)return!1;var e=r;if(n>w+e&&n>h+e&&n>i+e||n<w-e&&n<h-e&&n<i-e||o>v+e&&o>m+e&&o>c+e||o<v-e&&o<m-e&&o<c-e)return!1;var s=E(v,w,m,h,c,i,o,n,null);return s<=e/2}P.containStroke=C},aTJb:function(j,P,d){var O=d("bLfw");O.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(j,P,d){var O=d("3gBT"),E=d("ItGF"),C=d("bYtY"),v=d("0s+r"),w=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 i=!E.canvasSupported,r={canvas:m},o={},n="4.3.1";function e(f,p){var g=new u(O(),f,p);return o[g.id]=g,g}function s(f){if(f)f.dispose();else{for(var p in o)o.hasOwnProperty(p)&&o[p].dispose();o={}}return this}function t(f){return o[f]}function a(f,p){r[f]=p}function l(f){delete o[f]}var u=function(p,g,A){A=A||{},this.dom=g,this.id=p;var y=this,x=new w,T=A.renderer;if(i){if(!r.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");T="vml"}else(!T||!r[T])&&(T="canvas");var S=new r[T](g,x,A,p);this.storage=x,this.painter=S;var b=!E.node&&!E.worker?new c(S.getViewportRoot(),S.root):null;this.handler=new v(x,S,b,S.root),this.animation=new h({stage:{update:C.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var _=x.delFromStorage,I=x.addToStorage;x.delFromStorage=function(L){_.call(x,L),L&&L.removeSelfFromZr(y)},x.addToStorage=function(L){I.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,g){this.painter.configLayer&&this.painter.configLayer(p,g),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,g){if(this.painter.addHover){var A=this.painter.addHover(p,g);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,g){return this.painter.pathToImage(p,g)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,g){return this.handler.findHover(p,g)},on:function(p,g,A){this.handler.on(p,g,A)},off:function(p,g){this.handler.off(p,g)},trigger:function(p,g){this.handler.trigger(p,g)},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)}},P.version=n,P.init=e,P.dispose=s,P.getInstance=t,P.registerPainter=a},aX7z:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("GMDS"),w=d("ieMj"),m=d("4NgU"),h=d("OELB"),c=d("nVfU"),i=c.prepareLayoutBarSeries,r=c.makeColumnLayout,o=c.retrieveColumnLayout,n=d("mFDi");d("IWp7"),d("jCoz");function e(x,T){var S=x.type,b=T.getMin(),_=T.getMax(),I=x.getExtent(),L,D,N;S==="ordinal"?L=T.getCategories().length:(D=T.get("boundaryGap"),C.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=I[1]-I[0]||Math.abs(I[0])),b==="dataMin"?b=I[0]:typeof b=="function"&&(b=b({min:I[0],max:I[1]})),_==="dataMax"?_=I[1]:typeof _=="function"&&(_=_({min:I[0],max:I[1]}));var M=b!=null,B=_!=null;b==null&&(b=S==="ordinal"?L?0:NaN:I[0]-D[0]*N),_==null&&(_=S==="ordinal"?L?L-1:NaN:I[1]+D[1]*N),(b==null||!isFinite(b))&&(b=NaN),(_==null||!isFinite(_))&&(_=NaN),x.setBlank(C.eqNaN(b)||C.eqNaN(_)||S==="ordinal"&&!x.getOrdinalMeta().categories.length),T.getNeedCrossZero()&&(b>0&&_>0&&!M&&(b=0),b<0&&_<0&&!B&&(_=0));var R=T.ecModel;if(R&&S==="time"){var H=i("bar",R),F;if(C.each(H,function(V){F|=V.getBaseAxis()===T.axis}),F){var K=r(H),U=s(b,_,T,K);b=U.min,_=U.max}}return{extent:[b,_],fixMin:M,fixMax:B}}function s(x,T,S,b){var _=S.axis.getExtent(),I=_[1]-_[0],L=o(b,S.axis);if(L===void 0)return{min:x,max:T};var D=Infinity;C.each(L,function(F){D=Math.min(F.offset,D)});var N=-Infinity;C.each(L,function(F){N=Math.max(F.offset+F.width,N)}),D=Math.abs(D),N=Math.abs(N);var M=D+N,B=T-x,R=1-(D+N)/I,H=B/R-B;return T+=H*(N/M),x-=H*(D/M),{min:x,max:T}}function t(x,T){var S=e(x,T),b=S.extent,_=T.get("splitNumber");x.type==="log"&&(x.base=T.get("logBase"));var I=x.type;x.setExtent(b[0],b[1]),x.niceExtent({splitNumber:_,fixMin:S.fixMin,fixMax:S.fixMax,minInterval:I==="interval"||I==="time"?T.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?T.get("maxInterval"):null});var L=T.get("interval");L!=null&&(x.setInterval&&x.setInterval(L))}function a(x,T){if(T=T||x.get("type"),T)switch(T){case"category":return new v(x.getOrdinalMeta?x.getOrdinalMeta():x.getCategories(),[Infinity,-Infinity]);case"value":return new w;default:return(m.getClass(T)||w).create(x)}}function l(x){var T=x.scale.getExtent(),S=T[0],b=T[1];return!(S>0&&b>0||S<0&&b<0)}function u(x){var T=x.getLabelModel().get("formatter"),S=x.type==="category"?x.scale.getExtent()[0]:null;return typeof T=="string"?(T=function(b){return function(_){return _=x.scale.getLabel(_),b.replace("{value}",_!=null?_:"")}}(T),T):typeof T=="function"?function(b,_){return S!=null&&(_=b-S),T(f(x,b),_)}:function(b){return x.scale.getLabel(b)}}function f(x,T){return x.type==="category"?x.scale.getLabel(T):T}function p(x){var T=x.model,S=x.scale;if(!T.get("axisLabel.show")||S.isBlank())return;var b=x.type==="category",_,I,L=S.getExtent();b?I=S.count():(_=S.getTicks(),I=_.length);var D=x.getLabelModel(),N=u(x),M,B=1;I>40&&(B=Math.ceil(I/40));for(var R=0;R<I;R+=B){var H=_?_[R]:L[0]+R,F=N(H),K=D.getTextRect(F),U=g(K,D.get("rotate")||0);M?M.union(U):M=U}return M}function g(x,T){var S=T*Math.PI/180,b=x.plain(),_=b.width,I=b.height,L=_*Math.cos(S)+I*Math.sin(S),D=_*Math.sin(S)+I*Math.cos(S),N=new n(b.x,b.y,L,D);return N}function A(x){var T=x.get("interval");return T==null?"auto":T}function y(x){return x.type==="category"&&A(x.getLabelModel())===0}P.getScaleExtent=e,P.niceScaleExtent=t,P.createScaleByModel=a,P.ifAxisCrossZero=l,P.makeLabelFormatter=u,P.getAxisRawValue=f,P.estimateLabelUnionRect=p,P.getOptionCategoryInterval=A,P.shouldShowAllLabels=y},"af/B":function(j,P,d){var O=d("bYtY"),E=O.each,C=O.map,v=O.isFunction,w=O.createHashMap,m=O.noop,h=d("9H2F"),c=h.createTask,i=d("iRjW"),r=i.getUID,o=d("fmMI"),n=d("hD7B"),e=d("4NO4"),s=e.normalizeToArray;function t(F,K,U,V){this.ecInstance=F,this.api=K,this.unfinished;var U=this._dataProcessorHandlers=U.slice(),V=this._visualHandlers=V.slice();this._allHandlers=U.concat(V),this._stageTaskMap=w()}var a=t.prototype;a.restoreData=function(F,K){F.restoreData(K),this._stageTaskMap.each(function(U){var V=U.overallTask;V&&V.dirty()})},a.getPerformArgs=function(F,K){if(!F.__pipeline)return;var U=this._pipelineMap.get(F.__pipeline.id),V=U.context,z=!K&&U.progressiveEnabled&&(!V||V.progressiveRender)&&F.__idxInPipeline>U.blockIndex,Y=z?U.step:null,q=V&&V.modDataCount,ce=q!=null?Math.ceil(q/Y):null;return{step:Y,modBy:ce,modDataCount:q}},a.getPipeline=function(F){return this._pipelineMap.get(F)},a.updateStreamModes=function(F,K){var U=this._pipelineMap.get(F.uid),V=F.getData(),z=V.count(),Y=U.progressiveEnabled&&K.incrementalPrepareRender&&z>=U.threshold,q=F.get("large")&&z>=F.get("largeThreshold"),ce=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=U.context={progressiveRender:Y,modDataCount:ce,large:q}},a.restorePipelines=function(F){var K=this,U=K._pipelineMap=w();F.eachSeries(function(V){var z=V.getProgressive(),Y=V.uid;U.set(Y,{id:Y,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),L(K,V,V.dataTask)})},a.prepareStageTasks=function(){var F=this._stageTaskMap,K=this.ecInstance.getModel(),U=this.api;E(this._allHandlers,function(V){var z=F.get(V.uid)||F.set(V.uid,[]);V.reset&&f(this,V,z,K,U),V.overallReset&&p(this,V,z,K,U)},this)},a.prepareView=function(F,K,U,V){var z=F.renderTask,Y=z.context;Y.model=K,Y.ecModel=U,Y.api=V,z.__block=!F.incrementalPrepareRender,L(this,K,z)},a.performDataProcessorTasks=function(F,K){l(this,this._dataProcessorHandlers,F,K,{block:!0})},a.performVisualTasks=function(F,K,U){l(this,this._visualHandlers,F,K,U)};function l(F,K,U,V,z){z=z||{};var Y;E(K,function(ce,ie){if(z.visualType&&z.visualType!==ce.visualType)return;var ve=F._stageTaskMap.get(ce.uid),Ee=ve.seriesTaskMap,Le=ve.overallTask;if(Le){var He,ge=Le.agentStubMap;ge.each(function(Q){q(z,Q)&&(Q.dirty(),He=!0)}),He&&Le.dirty(),u(Le,V);var Fe=F.getPerformArgs(Le,z.block);ge.each(function(Q){Q.perform(Fe)}),Y|=Le.perform(Fe)}else Ee&&Ee.each(function(Q,fe){q(z,Q)&&Q.dirty();var Je=F.getPerformArgs(Q,z.block);Je.skip=!ce.performRawSeries&&U.isSeriesFiltered(Q.context.model),u(Q,V),Y|=Q.perform(Je)})});function q(ce,ie){return ce.setDirty&&(!ce.dirtyMap||ce.dirtyMap.get(ie.__pipeline.id))}F.unfinished|=Y}a.performSeriesTasks=function(F){var K;F.eachSeries(function(U){K|=U.dataTask.perform()}),this.unfinished|=K},a.plan=function(){this._pipelineMap.each(function(F){var K=F.tail;do{if(K.__block){F.blockIndex=K.__idxInPipeline;break}K=K.getUpstream()}while(K)})};var u=a.updatePayload=function(F,K){K!=="remain"&&(F.context.payload=K)};function f(F,K,U,V,z){var Y=U.seriesTaskMap||(U.seriesTaskMap=w()),q=K.seriesType,ce=K.getTargetSeries;K.createOnAllSeries?V.eachRawSeries(ie):q?V.eachRawSeriesByType(q,ie):ce&&ce(V,z).each(ie);function ie(Ee){var Le=Ee.uid,He=Y.get(Le)||Y.set(Le,c({plan:T,reset:S,count:I}));He.context={model:Ee,ecModel:V,api:z,useClearVisual:K.isVisual&&!K.isLayout,plan:K.plan,reset:K.reset,scheduler:F},L(F,Ee,He)}var ve=F._pipelineMap;Y.each(function(Ee,Le){ve.get(Le)||(Ee.dispose(),Y.removeKey(Le))})}function p(F,K,U,V,z){var Y=U.overallTask=U.overallTask||c({reset:g});Y.context={ecModel:V,api:z,overallReset:K.overallReset,scheduler:F};var q=Y.agentStubMap=Y.agentStubMap||w(),ce=K.seriesType,ie=K.getTargetSeries,ve=!0,Ee=K.modifyOutputEnd;ce?V.eachRawSeriesByType(ce,Le):ie?ie(V,z).each(Le):(ve=!1,E(V.getSeries(),Le));function Le(ge){var Fe=ge.uid,Q=q.get(Fe);Q||(Q=q.set(Fe,c({reset:A,onDirty:x})),Y.dirty()),Q.context={model:ge,overallProgress:ve,modifyOutputEnd:Ee},Q.agent=Y,Q.__block=ve,L(F,ge,Q)}var He=F._pipelineMap;q.each(function(ge,Fe){He.get(Fe)||(ge.dispose(),Y.dirty(),q.removeKey(Fe))})}function g(F){F.overallReset(F.ecModel,F.api,F.payload)}function A(F,K){return F.overallProgress&&y}function y(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function T(F){return F.plan&&F.plan(F.model,F.ecModel,F.api,F.payload)}function S(F){F.useClearVisual&&F.data.clearAllVisual();var K=F.resetDefines=s(F.reset(F.model,F.ecModel,F.api,F.payload));return K.length>1?C(K,function(U,V){return _(V)}):b}var b=_(0);function _(F){return function(K,U){var V=U.data,z=U.resetDefines[F];if(z&&z.dataEach)for(var Y=K.start;Y<K.end;Y++)z.dataEach(V,Y);else z&&z.progress&&z.progress(K,V)}}function I(F){return F.data.count()}function L(F,K,U){var V=K.uid,z=F._pipelineMap.get(V);!z.head&&(z.head=U),z.tail&&z.tail.pipe(U),z.tail=U,U.__idxInPipeline=z.count++,U.__pipeline=z}t.wrapStageHandler=function(F,K){return v(F)&&(F={overallReset:F,seriesType:D(F)}),F.uid=r("stageHandler"),K&&(F.visualType=K),F};function D(F){B=null;try{F(N,M)}catch(K){}return B}var N={},M={},B;R(N,o),R(M,n),N.eachSeriesByType=N.eachRawSeriesByType=function(F){B=F},N.eachComponent=function(F){F.mainType==="series"&&F.subType&&(B=F.subType)};function R(F,K){for(var U in K.prototype)F[U]=m}var H=t;j.exports=H},akwb:function(j,P,d){var O=d("RSch"),E=d("bYtY"),C=d("D9ME"),v=d("QBsz");function w(c,i,r){C.call(this,c,i,r),this._lastFrame=0,this._lastFramePercent=0}var m=w.prototype;m.createLine=function(c,i,r){return new O(c,i,r)},m.updateAnimationPoints=function(c,i){this._points=i;for(var r=[0],o=0,n=1;n<i.length;n++){var e=i[n-1],s=i[n];o+=v.dist(e,s),r.push(o)}if(o===0)return;for(var n=0;n<r.length;n++)r[n]/=o;this._offsets=r,this._length=o},m.getLineLength=function(c){return this._length},m.updateSymbolPosition=function(c){var i=c.__t,r=this._points,o=this._offsets,n=r.length;if(!o)return;var e=this._lastFrame,s;if(i<this._lastFramePercent){var t=Math.min(e+1,n-1);for(s=t;s>=0&&!(o[s]<=i);s--);s=Math.min(s,n-2)}else{for(var s=e;s<n&&!(o[s]>i);s++);s=Math.min(s-1,n-2)}v.lerp(c.position,r[s],r[s+1],(i-o[s])/(o[s+1]-o[s]));var a=r[s+1][0]-r[s][0],l=r[s+1][1]-r[s][1];c.rotation=-Math.atan2(l,a)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=i,c.ignore=!1},E.inherits(w,C);var h=w;j.exports=h},apAg:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("bsht")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="SearchOutlined";var c=v.forwardRef(h);P.default=c},as94:function(j,P,d){var O=d("7aKB"),E=d("3LNs"),C=d("IwbS"),v=d("/y7N"),w=d("Fofx"),m=d("+rIm"),h=d("Znkb"),c=E.extend({makeElOption:function(n,e,s,t,a){var l=s.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=l.polar,f=u.getOtherAxis(l),p=f.getExtent(),g;g=l["dataTo"+O.capitalFirst(l.dim)](e);var A=t.get("type");if(A&&A!=="none"){var y=v.buildElStyle(t),x=r[A](l,u,g,p,y);x.style=y,n.graphicKey=x.type,n.pointer=x}var T=t.get("label.margin"),S=i(e,s,t,u,T);v.buildLabelElOption(n,s,t,a,S)}});function i(n,e,s,t,a){var l=e.axis,u=l.dataToCoord(n),f=t.getAngleAxis().getExtent()[0];f=f/180*Math.PI;var p=t.getRadiusAxis().getExtent(),g,A,y;if(l.dim==="radius"){var x=w.create();w.rotate(x,x,f),w.translate(x,x,[t.cx,t.cy]),g=C.applyTransform([u,-a],x);var T=e.getModel("axisLabel").get("rotate")||0,S=m.innerTextLayout(f,T*Math.PI/180,-1);A=S.textAlign,y=S.textVerticalAlign}else{var b=p[1];g=t.coordToPoint([b+a,u]);var _=t.cx,I=t.cy;A=Math.abs(g[0]-_)/b<.3?"center":g[0]>_?"left":"right",y=Math.abs(g[1]-I)/b<.3?"middle":g[1]>I?"top":"bottom"}return{position:g,align:A,verticalAlign:y}}var r={line:function(n,e,s,t,a){return n.dim==="angle"?{type:"Line",shape:v.makeLineShape(e.coordToPoint([t[0],s]),e.coordToPoint([t[1],s]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:s}}},shadow:function(n,e,s,t,a){var l=Math.max(1,n.getBandWidth()),u=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,t[0],t[1],(-s-l/2)*u,(-s+l/2)*u)}:{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,s-l/2,s+l/2,0,Math.PI*2)}}};h.registerAxisPointerClass("PolarAxisPointer",c);var o=c;j.exports=o},b56q:function(j,P,d){},b80e:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("gKaM")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="DoubleLeftOutlined";var c=v.forwardRef(h);P.default=c},b9oc:function(j,P,d){var O=d("bYtY"),E=O.each,C="\0_ec_hist_store";function v(i,r){var o=c(i);E(r,function(n,e){for(var s=o.length-1;s>=0;s--){var t=o[s];if(t[e])break}if(s<0){var a=i.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(a){var l=a.getPercentRange();o[0][e]={dataZoomId:e,start:l[0],end:l[1]}}}}),o.push(r)}function w(i){var r=c(i),o=r[r.length-1];r.length>1&&r.pop();var n={};return E(o,function(e,s){for(var t=r.length-1;t>=0;t--){var e=r[t][s];if(e){n[s]=e;break}}}),n}function m(i){i[C]=null}function h(i){return c(i).length}function c(i){var r=i[C];return r||(r=i[C]=[{}]),r}P.push=v,P.pop=w,P.clear=m,P.count=h},bBKM:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("+rIm"),m=d("IwbS"),h=["axisLine","axisTickLabel","axisName"],c=C.extendComponentView({type:"radar",render:function(i,r,o){var n=this.group;n.removeAll(),this._buildAxes(i),this._buildSplitLineAndArea(i)},_buildAxes:function(i){var r=i.coordinateSystem,o=r.getIndicatorAxes(),n=v.map(o,function(e){var s=new w(e.model,{position:[r.cx,r.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});v.each(n,function(e){v.each(h,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(i){var r=i.coordinateSystem,o=r.getIndicatorAxes();if(!o.length)return;var n=i.get("shape"),e=i.getModel("splitLine"),s=i.getModel("splitArea"),t=e.getModel("lineStyle"),a=s.getModel("areaStyle"),l=e.get("show"),u=s.get("show"),f=t.get("color"),p=a.get("color");f=v.isArray(f)?f:[f],p=v.isArray(p)?p:[p];var g=[],A=[];function y(H,F,K){var U=K%F.length;return H[U]=H[U]||[],U}if(n==="circle")for(var x=o[0].getTicksCoords(),T=r.cx,S=r.cy,b=0;b<x.length;b++){if(l){var _=y(g,f,b);g[_].push(new m.Circle({shape:{cx:T,cy:S,r:x[b].coord}}))}if(u&&b<x.length-1){var _=y(A,p,b);A[_].push(new m.Ring({shape:{cx:T,cy:S,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var I,L=v.map(o,function(H,F){var K=H.getTicksCoords();return I=I==null?K.length-1:Math.min(K.length-1,I),v.map(K,function(U){return r.coordToPoint(U.coord,F)})}),D=[],b=0;b<=I;b++){for(var N=[],M=0;M<o.length;M++)N.push(L[M][b]);if(N[0]&&N.push(N[0].slice()),l){var _=y(g,f,b);g[_].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 B=t.getLineStyle(),R=a.getAreaStyle();v.each(A,function(H,F){this.group.add(m.mergePath(H,{style:v.defaults({stroke:"none",fill:p[F%p.length]},R),silent:!0}))},this),v.each(g,function(H,F){this.group.add(m.mergePath(H,{style:v.defaults({fill:"none",stroke:f[F%f.length]},B),silent:!0}))},this)}});j.exports=c},bBL8:function(j,P,d){var O=d("ProS");d("LPzL"),d("rfSb"),d("JVwQ");var E=d("UnoB"),C=d("cbJ4"),v=d("0/Rx");O.registerLayout(E),O.registerVisual(C),O.registerProcessor(v("themeRiver"))},bE4E:function(j,P,d){},bE4q:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("RIqP"),m=d.n(w),h=d("q1tI"),c=d("TSYQ"),i=d.n(c),r=d("Zm9Q"),o=d("HQEm"),n=d.n(o),e=d("XBQK"),s=d("H84U"),t=function(D,N){var M={};for(var B in D)Object.prototype.hasOwnProperty.call(D,B)&&N.indexOf(B)<0&&(M[B]=D[B]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,B=Object.getOwnPropertySymbols(D);R<B.length;R++)N.indexOf(B[R])<0&&Object.prototype.propertyIsEnumerable.call(D,B[R])&&(M[B[R]]=D[B[R]]);return M},a=function(N){var M=N.prefixCls,B=N.separator,R=B===void 0?"/":B,H=N.children,F=N.overlay,K=N.dropdownProps,U=t(N,["prefixCls","separator","children","overlay","dropdownProps"]),V=h.useContext(s.b),z=V.getPrefixCls,Y=z("breadcrumb",M),q=function(ve){return F?h.createElement(e.a,E()({overlay:F,placement:"bottomCenter"},K),h.createElement("span",{className:"".concat(Y,"-overlay-link")},ve,h.createElement(n.a,null))):ve},ce;return"href"in U?ce=h.createElement("a",E()({className:"".concat(Y,"-link")},U),H):ce=h.createElement("span",E()({className:"".concat(Y,"-link")},U),H),ce=q(ce),H?h.createElement("span",null,ce,R&&R!==""&&h.createElement("span",{className:"".concat(Y,"-separator")},R)):null};a.__ANT_BREADCRUMB_ITEM=!0;var l=a,u=function(N){var M=N.children,B=h.useContext(s.b),R=B.getPrefixCls,H=R("breadcrumb");return h.createElement("span",{className:"".concat(H,"-separator")},M||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var f=u,p=d("BvKs"),g=d("uaoM"),A=d("0n0R"),y=function(D,N){var M={};for(var B in D)Object.prototype.hasOwnProperty.call(D,B)&&N.indexOf(B)<0&&(M[B]=D[B]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,B=Object.getOwnPropertySymbols(D);R<B.length;R++)N.indexOf(B[R])<0&&Object.prototype.propertyIsEnumerable.call(D,B[R])&&(M[B[R]]=D[B[R]]);return M};function x(D,N){if(!D.breadcrumbName)return null;var M=Object.keys(N).join("|"),B=D.breadcrumbName.replace(new RegExp(":(".concat(M,")"),"g"),function(R,H){return N[H]||R});return B}function T(D,N,M,B){var R=M.indexOf(D)===M.length-1,H=x(D,N);return R?h.createElement("span",null,H):h.createElement("a",{href:"#/".concat(B.join("/"))},H)}var S=function(N,M){return N=(N||"").replace(/^\//,""),Object.keys(M).forEach(function(B){N=N.replace(":".concat(B),M[B])}),N},b=function(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",B=arguments.length>2?arguments[2]:void 0,R=m()(N),H=S(M,B);return H&&R.push(H),R},_=function(N){var M=N.prefixCls,B=N.separator,R=B===void 0?"/":B,H=N.style,F=N.className,K=N.routes,U=N.children,V=N.itemRender,z=V===void 0?T:V,Y=N.params,q=Y===void 0?{}:Y,ce=y(N,["prefixCls","separator","style","className","routes","children","itemRender","params"]),ie=h.useContext(s.b),ve=ie.getPrefixCls,Ee=ie.direction,Le,He=ve("breadcrumb",M);if(K&&K.length>0){var ge=[];Le=K.map(function(Q){var fe=S(Q.path,q);fe&&ge.push(fe);var Je;return Q.children&&Q.children.length&&(Je=h.createElement(p.a,null,Q.children.map(function(ne){return h.createElement(p.a.Item,{key:ne.path||ne.breadcrumbName},z(ne,q,K,b(ge,ne.path,q)))}))),h.createElement(l,{overlay:Je,separator:R,key:fe||Q.breadcrumbName},z(Q,q,K,ge))})}else U&&(Le=Object(r.a)(U).map(function(Q,fe){return Q&&(Object(g.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:fe}))}));var Fe=i()(F,He,v()({},"".concat(He,"-rtl"),Ee==="rtl"));return h.createElement("div",E()({className:Fe,style:H},ce),Le)};_.Item=l,_.Separator=f;var I=_,L=P.a=I},bKJz:function(j,P,d){},bLfw:function(j,P,d){var O=d("bYtY"),E=d("Qxkt"),C=d("iRjW"),v=d("Yl7c"),w=v.enableClassManagement,m=v.parseClassType,h=d("4NO4"),c=h.makeInner,i=d("+TT/"),r=d("3hzK"),o=c(),n=E.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,a,l,u){E.call(this,t,a,l,u),this.uid=C.getUID("ec_cpt_model")},init:function(t,a,l,u){this.mergeDefaultAndTheme(t,l)},mergeDefaultAndTheme:function(t,a){var l=this.layoutMode,u=l?i.getLayoutParams(t):{},f=a.getTheme();O.merge(t,f.get(this.mainType)),O.merge(t,this.getDefaultOption()),l&&i.mergeLayoutParam(t,u,l)},mergeOption:function(t,a){O.merge(this.option,t,!0);var l=this.layoutMode;l&&i.mergeLayoutParam(this.option,t,l)},optionUpdated:function(t,a){},getDefaultOption:function(){var t=o(this);if(!t.defaultOption){for(var a=[],l=this.constructor;l;){var u=l.prototype.defaultOption;u&&a.push(u),l=l.superClass}for(var f={},p=a.length-1;p>=0;p--)f=O.merge(f,a[p],!0);t.defaultOption=f}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});w(n,{registerWhenExtend:!0}),C.enableSubTypeDefaulter(n),C.enableTopologicalTravel(n,e);function e(t){var a=[];return O.each(n.getClassesByMainType(t),function(l){a=a.concat(l.prototype.dependencies||[])}),a=O.map(a,function(l){return m(l).main}),t!=="dataset"&&O.indexOf(a,"dataset")<=0&&a.unshift("dataset"),a}O.mixin(n,r);var s=n;j.exports=s},bMXI:function(j,P,d){var O=d("bYtY"),E=d("QBsz"),C=d("Fofx"),v=d("mFDi"),w=d("DN4a"),m=E.applyTransform;function h(){w.call(this)}O.mixin(h,w);function c(o){this.name=o,this.zoomLimit,w.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(o,n,e,s){return this._rect=new v(o,n,e,s),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(o,n,e,s){this.transformTo(o,n,e,s),this._viewRect=new v(o,n,e,s)},transformTo:function(o,n,e,s){var t=this.getBoundingRect(),a=this._rawTransformable;a.transform=t.calculateTransform(new v(o,n,e,s)),a.decomposeTransform(),this._updateTransform()},setCenter:function(o){if(!o)return;this._center=o,this._updateCenterAndZoom()},setZoom:function(o){o=o||1;var n=this.zoomLimit;n&&(n.max!=null&&(o=Math.min(n.max,o)),n.min!=null&&(o=Math.max(n.min,o))),this._zoom=o,this._updateCenterAndZoom()},getDefaultCenter:function(){var o=this.getBoundingRect(),n=o.x+o.width/2,e=o.y+o.height/2;return[n,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var o=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,e=this.getDefaultCenter(),s=this.getCenter(),t=this.getZoom();s=E.applyTransform([],s,o),e=E.applyTransform([],e,o),n.origin=s,n.position=[e[0]-s[0],e[1]-s[1]],n.scale=[t,t],this._updateTransform()},_updateTransform:function(){var o=this._roamTransformable,n=this._rawTransformable;n.parent=o,o.updateTransform(),n.updateTransform(),C.copy(this.transform||(this.transform=[]),n.transform||C.create()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],C.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var o=this._roamTransformable.transform,n=this._rawTransformable;return{roamTransform:o?O.slice(o):C.create(),rawScale:O.slice(n.scale),rawPosition:O.slice(n.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var o=this.getBoundingRect().clone();return o.applyTransform(this.transform),o},dataToPoint:function(o,n,e){var s=n?this._rawTransform:this.transform;return e=e||[],s?m(e,o,s):E.copy(e,o)},pointToData:function(o){var n=this.invTransform;return n?m([],o,n):[o[0],o[1]]},convertToPixel:O.curry(i,"dataToPoint"),convertFromPixel:O.curry(i,"pointToData"),containPoint:function(o){return this.getViewRectAfterRoam().contain(o[0],o[1])}},O.mixin(c,w);function i(o,n,e,s){var t=e.seriesModel,a=t?t.coordinateSystem:null;return a===this?a[o](s):null}var r=c;j.exports=r},bNin:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("FBjb"),v=d("Itpr"),w=v.radialCoordinate,m=d("ProS"),h=d("4mN7"),c=d("bMXI"),i=d("Ae+d"),r=d("SgGq"),o=d("xSat"),n=o.onIrrelevantElement,e=d("Tghj"),s=e.__DEV__,t=d("OELB"),a=t.parsePercent,l=E.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(T,S){var b=S.childPoints,_=b.length,I=S.parentPoint,L=b[0],D=b[_-1];if(_===1){T.moveTo(I[0],I[1]),T.lineTo(L[0],L[1]);return}var N=S.orient,M=N==="TB"||N==="BT"?0:1,B=1-M,R=a(S.forkPosition,1),H=[];H[M]=I[M],H[B]=I[B]+(D[B]-I[B])*R,T.moveTo(I[0],I[1]),T.lineTo(H[0],H[1]),T.moveTo(L[0],L[1]),H[M]=L[M],T.lineTo(H[0],H[1]),H[M]=D[M],T.lineTo(H[0],H[1]),T.lineTo(D[0],D[1]);for(var F=1;F<_-1;F++){var K=b[F];T.moveTo(K[0],K[1]),H[M]=K[M],T.lineTo(H[0],H[1])}}}),u=m.extendChartView({type:"tree",init:function(T,S){this._oldTree,this._mainGroup=new E.Group,this._controller=new r(S.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(T,S,b,_){var I=T.getData(),L=T.layoutInfo,D=this._mainGroup,N=T.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(T,L,N),this._updateController(T,S,b);var M=this._data,B={expandAndCollapse:T.get("expandAndCollapse"),layout:N,edgeShape:T.get("edgeShape"),edgeForkPosition:T.get("edgeForkPosition"),orient:T.getOrient(),curvature:T.get("lineStyle.curveness"),symbolRotate:T.get("symbolRotate"),symbolOffset:T.get("symbolOffset"),hoverAnimation:T.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(M).add(function(R){f(I,R)&&g(I,R,null,D,T,B)}).update(function(R,H){var F=M.getItemGraphicEl(H);if(!f(I,R)){F&&y(M,H,F,D,T,B);return}g(I,R,F,D,T,B)}).remove(function(R){var H=M.getItemGraphicEl(R);H&&y(M,R,H,D,T,B)}).execute(),this._nodeScaleRatio=T.get("nodeScaleRatio"),this._updateNodeAndLinkScale(T),B.expandAndCollapse===!0&&I.eachItemGraphicEl(function(R,H){R.off("click").on("click",function(){b.dispatchAction({type:"treeExpandAndCollapse",seriesId:T.id,dataIndex:H})})}),this._data=I},_updateViewCoordSys:function(T){var S=T.getData(),b=[];S.each(function(M){var B=S.getItemLayout(M);B&&!isNaN(B.x)&&!isNaN(B.y)&&b.push([+B.x,+B.y])});var _=[],I=[];h.fromPoints(b,_,I);var L=this._min,D=this._max;I[0]-_[0]===0&&(_[0]=L?L[0]:_[0]-1,I[0]=D?D[0]:I[0]+1),I[1]-_[1]===0&&(_[1]=L?L[1]:_[1]-1,I[1]=D?D[1]:I[1]+1);var N=T.coordinateSystem=new c;N.zoomLimit=T.get("scaleLimit"),N.setBoundingRect(_[0],_[1],I[0]-_[0],I[1]-_[1]),N.setCenter(T.get("center")),N.setZoom(T.get("zoom")),this.group.attr({position:N.position,scale:N.scale}),this._viewCoordSys=N,this._min=_,this._max=I},_updateController:function(T,S,b){var _=this._controller,I=this._controllerHost,L=this.group;_.setPointerChecker(function(D,N,M){var B=L.getBoundingRect();return B.applyTransform(L.transform),B.contain(N,M)&&!n(D,b,T)}),_.enable(T.get("roam")),I.zoomLimit=T.get("scaleLimit"),I.zoom=T.coordinateSystem.getZoom(),_.off("pan").off("zoom").on("pan",function(D){i.updateViewOnPan(I,D.dx,D.dy),b.dispatchAction({seriesId:T.id,type:"treeRoam",dx:D.dx,dy:D.dy})},this).on("zoom",function(D){i.updateViewOnZoom(I,D.scale,D.originX,D.originY),b.dispatchAction({seriesId:T.id,type:"treeRoam",zoom:D.scale,originX:D.originX,originY:D.originY}),this._updateNodeAndLinkScale(T)},this)},_updateNodeAndLinkScale:function(T){var S=T.getData(),b=this._getNodeGlobalScale(T),_=[b,b];S.eachItemGraphicEl(function(I,L){I.attr("scale",_)})},_getNodeGlobalScale:function(T){var S=T.coordinateSystem;if(S.type!=="view")return 1;var b=this._nodeScaleRatio,_=S.scale,I=_&&_[0]||1,L=S.getZoom(),D=(L-1)*b+1;return D/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function f(T,S){var b=T.getItemLayout(S);return b&&!isNaN(b.x)&&!isNaN(b.y)&&T.getItemVisual(S,"symbol")!=="none"}function p(T,S,b){return b.itemModel=S,b.itemStyle=S.getModel("itemStyle").getItemStyle(),b.hoverItemStyle=S.getModel("emphasis.itemStyle").getItemStyle(),b.lineStyle=S.getModel("lineStyle").getLineStyle(),b.labelModel=S.getModel("label"),b.hoverLabelModel=S.getModel("emphasis.label"),T.isExpand===!1&&T.children.length!==0?b.symbolInnerColor=b.itemStyle.fill:b.symbolInnerColor="#fff",b}function g(T,S,b,_,I,L){var D=!b,N=T.tree.getNodeByDataIndex(S),M=N.getModel(),L=p(N,M,L),B=T.tree.root,R=N.parentNode===B?N:N.parentNode||N,H=T.getItemGraphicEl(R.dataIndex),F=R.getLayout(),K=H?{x:H.position[0],y:H.position[1],rawX:H.__radialOldRawX,rawY:H.__radialOldRawY}:F,U=N.getLayout();D?(b=new C(T,S,L),b.attr("position",[K.x,K.y])):b.updateData(T,S,L),b.__radialOldRawX=b.__radialRawX,b.__radialOldRawY=b.__radialRawY,b.__radialRawX=U.rawX,b.__radialRawY=U.rawY,_.add(b),T.setItemGraphicEl(S,b),E.updateProps(b,{position:[U.x,U.y]},I);var V=b.getSymbolPath();if(L.layout==="radial"){var z=B.children[0],Y=z.getLayout(),q=z.children.length,ce,ie;if(U.x===Y.x&&N.isExpand===!0){var ve={};ve.x=(z.children[0].getLayout().x+z.children[q-1].getLayout().x)/2,ve.y=(z.children[0].getLayout().y+z.children[q-1].getLayout().y)/2,ce=Math.atan2(ve.y-Y.y,ve.x-Y.x),ce<0&&(ce=Math.PI*2+ce),ie=ve.x<Y.x,ie&&(ce=ce-Math.PI)}else ce=Math.atan2(U.y-Y.y,U.x-Y.x),ce<0&&(ce=Math.PI*2+ce),N.children.length===0||N.children.length!==0&&N.isExpand===!1?(ie=U.x<Y.x,ie&&(ce=ce-Math.PI)):(ie=U.x>Y.x,ie||(ce=ce-Math.PI));var Ee=ie?"left":"right",Le=L.labelModel.get("rotate"),He=Le*(Math.PI/180);V.setStyle({textPosition:L.labelModel.get("position")||Ee,textRotation:Le==null?-ce:He,textOrigin:"center",verticalAlign:"middle"})}A(I,N,B,b,K,F,U,_,L)}function A(T,S,b,_,I,L,D,N,M){var B=M.edgeShape,R=_.__edge;if(B==="curve")S.parentNode&&S.parentNode!==b&&(R||(R=_.__edge=new E.BezierCurve({shape:x(M,I,I),style:O.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),E.updateProps(R,{shape:x(M,L,D),style:{opacity:1}},T));else if(B==="polyline"&&(M.layout==="orthogonal"&&(S!==b&&S.children&&S.children.length!==0&&S.isExpand===!0))){for(var H=S.children,F=[],K=0;K<H.length;K++){var U=H[K].getLayout();F.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:O.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),E.updateProps(R,{shape:{parentPoint:[D.x,D.y],childPoints:F},style:{opacity:1}},T)}N.add(R)}function y(T,S,b,_,I,L){for(var D=T.tree.getNodeByDataIndex(S),N=T.tree.root,M=D.getModel(),L=p(D,M,L),B=D.parentNode===N?D:D.parentNode||D,R=L.edgeShape,H;H=B.getLayout(),H==null;)B=B.parentNode===N?B:B.parentNode||B;E.updateProps(b,{position:[H.x+1,H.y+1]},I,function(){_.remove(b),T.setItemGraphicEl(S,null)}),b.fadeOut(null,{keepLabel:!0});var F=T.getItemGraphicEl(B.dataIndex),K=F.__edge,U=b.__edge||(B.isExpand===!1||B.children.length===1?K:void 0),R=L.edgeShape;U&&(R==="curve"?E.updateProps(U,{shape:x(L,H,H),style:{opacity:0}},I,function(){_.remove(U)}):R==="polyline"&&L.layout==="orthogonal"&&E.updateProps(U,{shape:{parentPoint:[H.x,H.y],childPoints:[[H.x,H.y]]},style:{opacity:0}},I,function(){_.remove(U)}))}function x(T,S,b){var _,I,L,D,N=T.orient,M,B,R,H;if(T.layout==="radial"){M=S.rawX,R=S.rawY,B=b.rawX,H=b.rawY;var F=w(M,R),K=w(M,R+(H-R)*T.curvature),U=w(B,H+(R-H)*T.curvature),V=w(B,H);return{x1:F.x,y1:F.y,x2:V.x,y2:V.y,cpx1:K.x,cpy1:K.y,cpx2:U.x,cpy2:U.y}}else M=S.x,R=S.y,B=b.x,H=b.y,(N==="LR"||N==="RL")&&(_=M+(B-M)*T.curvature,I=R,L=B+(M-B)*T.curvature,D=H),(N==="TB"||N==="BT")&&(_=M,I=R+(H-R)*T.curvature,L=B,D=H+(R-H)*T.curvature);return{x1:M,y1:R,x2:B,y2:H,cpx1:_,cpy1:I,cpx2:L,cpy2:D}}j.exports=u},bQjk:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return function(E){var C=O,v=C.lib,w=v.CipherParams,m=C.enc,h=m.Hex,c=C.format,i=c.Hex={stringify:function(o){return o.ciphertext.toString(h)},parse:function(o){var n=h.parse(o);return w.create({ciphertext:n})}}}(),O.format.Hex})},bT9E:function(j,P,d){"use strict";d.d(P,"a",function(){return E});var O=d("VTBJ");function E(C,v){var w=Object(O.a)({},C);return Array.isArray(v)&&v.forEach(function(m){delete w[m]}),w}},bX4T:function(j,P,d){"use strict";d.d(P,"a",function(){return c});var O=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`,C=`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`,v="".concat(E," ").concat(C).split(/[\s\n]+/),w="aria-",m="data-";function h(i,r){return i.indexOf(r)===0}function c(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o;r===!1?o={aria:!0,data:!0,attr:!0}:r===!0?o={aria:!0}:o=Object(O.a)({},r);var n={};return Object.keys(i).forEach(function(e){(o.aria&&(e==="role"||h(e,w))||o.data&&h(e,m)||o.attr&&v.includes(e))&&(n[e]=i[e])}),n}},bYtY:function(j,P){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},O={"[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,C=Array.prototype,v=C.forEach,w=C.filter,m=C.slice,h=C.map,c=C.reduce,i={};function r(Q,fe){Q==="createCanvas"&&(l=null),i[Q]=fe}function o(Q){if(Q==null||typeof Q!="object")return Q;var fe=Q,Je=E.call(Q);if(Je==="[object Array]"){if(!Ee(Q)){fe=[];for(var ne=0,X=Q.length;ne<X;ne++)fe[ne]=o(Q[ne])}}else if(O[Je]){if(!Ee(Q)){var G=Q.constructor;if(Q.constructor.from)fe=G.from(Q);else{fe=new G(Q.length);for(var ne=0,X=Q.length;ne<X;ne++)fe[ne]=o(Q[ne])}}}else if(!d[Je]&&!Ee(Q)&&!H(Q)){fe={};for(var te in Q)Q.hasOwnProperty(te)&&(fe[te]=o(Q[te]))}return fe}function n(Q,fe,Je){if(!M(fe)||!M(Q))return Je?o(fe):Q;for(var ne in fe)if(fe.hasOwnProperty(ne)){var X=Q[ne],G=fe[ne];M(G)&&M(X)&&!L(G)&&!L(X)&&!H(G)&&!H(X)&&!B(G)&&!B(X)&&!Ee(G)&&!Ee(X)?n(X,G,Je):(Je||!(ne in Q))&&(Q[ne]=o(fe[ne],!0))}return Q}function e(Q,fe){for(var Je=Q[0],ne=1,X=Q.length;ne<X;ne++)Je=n(Je,Q[ne],fe);return Je}function s(Q,fe){for(var Je in fe)fe.hasOwnProperty(Je)&&(Q[Je]=fe[Je]);return Q}function t(Q,fe,Je){for(var ne in fe)fe.hasOwnProperty(ne)&&(Je?fe[ne]!=null:Q[ne]==null)&&(Q[ne]=fe[ne]);return Q}var a=function(){return i.createCanvas()};i.createCanvas=function(){return document.createElement("canvas")};var l;function u(){return l||(l=a().getContext("2d")),l}function f(Q,fe){if(Q){if(Q.indexOf)return Q.indexOf(fe);for(var Je=0,ne=Q.length;Je<ne;Je++)if(Q[Je]===fe)return Je}return-1}function p(Q,fe){var Je=Q.prototype;function ne(){}ne.prototype=fe.prototype,Q.prototype=new ne;for(var X in Je)Je.hasOwnProperty(X)&&(Q.prototype[X]=Je[X]);Q.prototype.constructor=Q,Q.superClass=fe}function g(Q,fe,Je){Q="prototype"in Q?Q.prototype:Q,fe="prototype"in fe?fe.prototype:fe,t(Q,fe,Je)}function A(Q){return Q?typeof Q=="string"?!1:typeof Q.length=="number":void 0}function y(Q,fe,Je){if(!(Q&&fe))return;if(Q.forEach&&Q.forEach===v)Q.forEach(fe,Je);else if(Q.length===+Q.length)for(var ne=0,X=Q.length;ne<X;ne++)fe.call(Je,Q[ne],ne,Q);else for(var G in Q)Q.hasOwnProperty(G)&&fe.call(Je,Q[G],G,Q)}function x(Q,fe,Je){if(!(Q&&fe))return;if(Q.map&&Q.map===h)return Q.map(fe,Je);for(var ne=[],X=0,G=Q.length;X<G;X++)ne.push(fe.call(Je,Q[X],X,Q));return ne}function T(Q,fe,Je,ne){if(!(Q&&fe))return;if(Q.reduce&&Q.reduce===c)return Q.reduce(fe,Je,ne);for(var X=0,G=Q.length;X<G;X++)Je=fe.call(ne,Je,Q[X],X,Q);return Je}function S(Q,fe,Je){if(!(Q&&fe))return;if(Q.filter&&Q.filter===w)return Q.filter(fe,Je);for(var ne=[],X=0,G=Q.length;X<G;X++)fe.call(Je,Q[X],X,Q)&&ne.push(Q[X]);return ne}function b(Q,fe,Je){if(!(Q&&fe))return;for(var ne=0,X=Q.length;ne<X;ne++)if(fe.call(Je,Q[ne],ne,Q))return Q[ne]}function _(Q,fe){var Je=m.call(arguments,2);return function(){return Q.apply(fe,Je.concat(m.call(arguments)))}}function I(Q){var fe=m.call(arguments,1);return function(){return Q.apply(this,fe.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 fe=typeof Q;return fe==="function"||!!Q&&fe==="object"}function B(Q){return!!d[E.call(Q)]}function R(Q){return!!O[E.call(Q)]}function H(Q){return typeof Q=="object"&&typeof Q.nodeType=="number"&&typeof Q.ownerDocument=="object"}function F(Q){return Q!==Q}function K(Q){for(var fe=0,Je=arguments.length;fe<Je;fe++)if(arguments[fe]!=null)return arguments[fe]}function U(Q,fe){return Q!=null?Q:fe}function V(Q,fe,Je){return Q!=null?Q:fe!=null?fe:Je}function z(){return Function.call.apply(m,arguments)}function Y(Q){if(typeof Q=="number")return[Q,Q,Q,Q];var fe=Q.length;return fe===2?[Q[0],Q[1],Q[0],Q[1]]:fe===3?[Q[0],Q[1],Q[2],Q[1]]:Q}function q(Q,fe){if(!Q)throw new Error(fe)}function ce(Q){return Q==null?null:typeof Q.trim=="function"?Q.trim():Q.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ie="__ec_primitive__";function ve(Q){Q[ie]=!0}function Ee(Q){return Q[ie]}function Le(Q){var fe=L(Q);this.data={};var Je=this;Q instanceof Le?Q.each(ne):Q&&y(Q,ne);function ne(X,G){fe?Je.set(X,G):Je.set(G,X)}}Le.prototype={constructor:Le,get:function(fe){return this.data.hasOwnProperty(fe)?this.data[fe]:null},set:function(fe,Je){return this.data[fe]=Je},each:function(fe,Je){Je!==void 0&&(fe=_(fe,Je));for(var ne in this.data)this.data.hasOwnProperty(ne)&&fe(this.data[ne],ne)},removeKey:function(fe){delete this.data[fe]}};function He(Q){return new Le(Q)}function ge(Q,fe){for(var Je=new Q.constructor(Q.length+fe.length),ne=0;ne<Q.length;ne++)Je[ne]=Q[ne];var X=Q.length;for(ne=0;ne<fe.length;ne++)Je[ne+X]=fe[ne];return Je}function Fe(){}P.$override=r,P.clone=o,P.merge=n,P.mergeAll=e,P.extend=s,P.defaults=t,P.createCanvas=a,P.getContext=u,P.indexOf=f,P.inherits=p,P.mixin=g,P.isArrayLike=A,P.each=y,P.map=x,P.reduce=T,P.filter=S,P.find=b,P.bind=_,P.curry=I,P.isArray=L,P.isFunction=D,P.isString=N,P.isObject=M,P.isBuiltInObject=B,P.isTypedArray=R,P.isDom=H,P.eqNaN=F,P.retrieve=K,P.retrieve2=U,P.retrieve3=V,P.slice=z,P.normalizeCssArray=Y,P.assert=q,P.trim=ce,P.setAsPrimitive=ve,P.isPrimitive=Ee,P.createHashMap=He,P.concatArray=ge,P.noop=Fe},bZqE:function(j,P){function d(E,C,v){for(var w=[E],m=[],h;h=w.pop();)if(m.push(h),h.isExpand){var c=h.children;if(c.length)for(var i=0;i<c.length;i++)w.push(c[i])}for(;h=m.pop();)C(h,v)}function O(E,C){for(var v=[E],w;w=v.pop();)if(C(w),w.isExpand){var m=w.children;if(m.length)for(var h=m.length-1;h>=0;h--)v.push(m[h])}}P.eachAfter=d,P.eachBefore=O},bahg:function(j,P){function d(O){return O.split("")}j.exports=d},bbsP:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("CWI+"),v=d.n(C)},bogI:function(j,P,d){"use strict";d.d(P,"a",function(){return O});var O=function(C){if(!C)return null;var v=typeof C=="function";return v?C():C}},bsht:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},bx4M:function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("q1tI"),m=d("TSYQ"),h=d.n(m),c=d("BGR+"),i=d("H84U"),r=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S},o=function(T){return w.createElement(i.a,null,function(S){var b=S.getPrefixCls,_=T.prefixCls,I=T.className,L=T.hoverable,D=L===void 0?!0:L,N=r(T,["prefixCls","className","hoverable"]),M=b("card",_),B=h()("".concat(M,"-grid"),I,E()({},"".concat(M,"-grid-hoverable"),D));return w.createElement("div",v()({},N,{className:B}))})},n=o,e=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S},s=function(T){return w.createElement(i.a,null,function(S){var b=S.getPrefixCls,_=T.prefixCls,I=T.className,L=T.avatar,D=T.title,N=T.description,M=e(T,["prefixCls","className","avatar","title","description"]),B=b("card",_),R=h()("".concat(B,"-meta"),I),H=L?w.createElement("div",{className:"".concat(B,"-meta-avatar")},L):null,F=D?w.createElement("div",{className:"".concat(B,"-meta-title")},D):null,K=N?w.createElement("div",{className:"".concat(B,"-meta-description")},N):null,U=F||K?w.createElement("div",{className:"".concat(B,"-meta-detail")},F,K):null;return w.createElement("div",v()({},M,{className:R}),H,U)})},t=s,a=d("ZTPi"),l=d("BMrR"),u=d("kPKH"),f=d("3Nzz"),p=function(x,T){var S={};for(var b in x)Object.prototype.hasOwnProperty.call(x,b)&&T.indexOf(b)<0&&(S[b]=x[b]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,b=Object.getOwnPropertySymbols(x);_<b.length;_++)T.indexOf(b[_])<0&&Object.prototype.propertyIsEnumerable.call(x,b[_])&&(S[b[_]]=x[b[_]]);return S};function g(x){var T=x.map(function(S,b){return w.createElement("li",{style:{width:"".concat(100/x.length,"%")},key:"action-".concat(b)},w.createElement("span",null,S))});return T}var A=function(T){var S,b,_=w.useContext(i.b),I=_.getPrefixCls,L=_.direction,D=w.useContext(f.b),N=function(Ot){T.onTabChange&&T.onTabChange(Ot)},M=function(){var Ot;return w.Children.forEach(T.children,function(Et){Et&&Et.type&&Et.type===n&&(Ot=!0)}),Ot},B=T.prefixCls,R=T.className,H=T.extra,F=T.headStyle,K=F===void 0?{}:F,U=T.bodyStyle,V=U===void 0?{}:U,z=T.title,Y=T.loading,q=T.bordered,ce=q===void 0?!0:q,ie=T.size,ve=T.type,Ee=T.cover,Le=T.actions,He=T.tabList,ge=T.children,Fe=T.activeTabKey,Q=T.defaultActiveTabKey,fe=T.tabBarExtraContent,Je=T.hoverable,ne=T.tabProps,X=ne===void 0?{}:ne,G=p(T,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),te=I("card",B),we=V.padding===0||V.padding==="0px"?{padding:24}:void 0,he=w.createElement("div",{className:"".concat(te,"-loading-block")}),Pe=w.createElement("div",{className:"".concat(te,"-loading-content"),style:we},w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:22},he)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:8},he),w.createElement(u.a,{span:15},he)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:6},he),w.createElement(u.a,{span:18},he)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:13},he),w.createElement(u.a,{span:9},he)),w.createElement(l.a,{gutter:8},w.createElement(u.a,{span:4},he),w.createElement(u.a,{span:3},he),w.createElement(u.a,{span:16},he))),Oe=Fe!==void 0,le=v()(v()({},X),(S={},E()(S,Oe?"activeKey":"defaultActiveKey",Oe?Fe:Q),E()(S,"tabBarExtraContent",fe),S)),me,_e=He&&He.length?w.createElement(a.a,v()({size:"large"},le,{className:"".concat(te,"-head-tabs"),onChange:N}),He.map(function(vt){return w.createElement(a.a.TabPane,{tab:vt.tab,disabled:vt.disabled,key:vt.key})})):null;(z||H||_e)&&(me=w.createElement("div",{className:"".concat(te,"-head"),style:K},w.createElement("div",{className:"".concat(te,"-head-wrapper")},z&&w.createElement("div",{className:"".concat(te,"-head-title")},z),H&&w.createElement("div",{className:"".concat(te,"-extra")},H)),_e));var $e=Ee?w.createElement("div",{className:"".concat(te,"-cover")},Ee):null,gt=w.createElement("div",{className:"".concat(te,"-body"),style:V},Y?Pe:ge),et=Le&&Le.length?w.createElement("ul",{className:"".concat(te,"-actions")},g(Le)):null,Ie=Object(c.default)(G,["onTabChange"]),rt=ie||D,Ge=h()(te,R,(b={},E()(b,"".concat(te,"-loading"),Y),E()(b,"".concat(te,"-bordered"),ce),E()(b,"".concat(te,"-hoverable"),Je),E()(b,"".concat(te,"-contain-grid"),M()),E()(b,"".concat(te,"-contain-tabs"),He&&He.length),E()(b,"".concat(te,"-").concat(rt),rt),E()(b,"".concat(te,"-type-").concat(ve),!!ve),E()(b,"".concat(te,"-rtl"),L==="rtl"),b));return w.createElement("div",v()({},Ie,{className:Ge}),me,$e,gt,et)};A.Grid=n,A.Meta=t;var y=P.a=A},c2i1:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("Yl7c"),w=v.enableClassCheck;function m(e){return"_EC_"+e}var h=function(e){this._directed=e||!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(e,s){e=e==null?""+s:""+e;var t=this._nodesMap;if(t[m(e)])return;var a=new i(e,s);return a.hostGraph=this,this.nodes.push(a),t[m(e)]=a,a},c.getNodeByIndex=function(e){var s=this.data.getRawIndex(e);return this.nodes[s]},c.getNodeById=function(e){return this._nodesMap[m(e)]},c.addEdge=function(e,s,t){var a=this._nodesMap,l=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof s=="number"&&(s=this.nodes[s]),i.isInstance(e)||(e=a[m(e)]),i.isInstance(s)||(s=a[m(s)]),!e||!s)return;var u=e.id+"-"+s.id;if(l[u])return;var f=new r(e,s,t);return f.hostGraph=this,this._directed&&(e.outEdges.push(f),s.inEdges.push(f)),e.edges.push(f),e!==s&&s.edges.push(f),this.edges.push(f),l[u]=f,f},c.getEdgeByIndex=function(e){var s=this.edgeData.getRawIndex(e);return this.edges[s]},c.getEdge=function(e,s){i.isInstance(e)&&(e=e.id),i.isInstance(s)&&(s=s.id);var t=this._edgesMap;return this._directed?t[e+"-"+s]:t[e+"-"+s]||t[s+"-"+e]},c.eachNode=function(e,s){for(var t=this.nodes,a=t.length,l=0;l<a;l++)t[l].dataIndex>=0&&e.call(s,t[l],l)},c.eachEdge=function(e,s){for(var t=this.edges,a=t.length,l=0;l<a;l++)t[l].dataIndex>=0&&t[l].node1.dataIndex>=0&&t[l].node2.dataIndex>=0&&e.call(s,t[l],l)},c.breadthFirstTraverse=function(e,s,t,a){if(i.isInstance(s)||(s=this._nodesMap[m(s)]),!s)return;for(var l=t==="out"?"outEdges":t==="in"?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(e.call(a,s,null))return;for(var f=[s];f.length;)for(var p=f.shift(),g=p[l],u=0;u<g.length;u++){var A=g[u],y=A.node1===p?A.node2:A.node1;if(!y.__visited){if(e.call(a,y,p))return;f.push(y),y.__visited=!0}}},c.update=function(){for(var e=this.data,s=this.edgeData,t=this.nodes,a=this.edges,l=0,u=t.length;l<u;l++)t[l].dataIndex=-1;for(var l=0,u=e.count();l<u;l++)t[e.getRawIndex(l)].dataIndex=l;s.filterSelf(function(f){var p=a[s.getRawIndex(f)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var l=0,u=a.length;l<u;l++)a[l].dataIndex=-1;for(var l=0,u=s.count();l<u;l++)a[s.getRawIndex(l)].dataIndex=l},c.clone=function(){for(var e=new h(this._directed),s=this.nodes,t=this.edges,a=0;a<s.length;a++)e.addNode(s[a].id,s[a].dataIndex);for(var a=0;a<t.length;a++){var l=t[a];e.addEdge(l.node1.id,l.node2.id,l.dataIndex)}return e};function i(e,s){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=s==null?-1:s}i.prototype={constructor:i,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var s=this.hostGraph,t=s.data.getItemModel(this.dataIndex);return t.getModel(e)}};function r(e,s,t){this.node1=e,this.node2=s,this.dataIndex=t==null?-1:t}r.prototype.getModel=function(e){if(this.dataIndex<0)return;var s=this.hostGraph,t=s.edgeData.getItemModel(this.dataIndex);return t.getModel(e)};var o=function(e,s){return{getValue:function(t){var a=this[e][s];return a.get(a.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[e][s].setItemVisual(this.dataIndex,t,a)},getVisual:function(t,a){return this[e][s].getItemVisual(this.dataIndex,t,a)},setLayout:function(t,a){this.dataIndex>=0&&this[e][s].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[e][s].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][s].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][s].getRawIndex(this.dataIndex)}}};C.mixin(i,o("hostGraph","data")),C.mixin(r,o("hostGraph","edgeData")),h.Node=i,h.Edge=r,w(i),w(r);var n=h;j.exports=n},c3jg:function(j,P,d){"use strict";d.d(P,"e",function(){return h}),d.d(P,"c",function(){return i}),d.d(P,"d",function(){return r}),d.d(P,"a",function(){return n}),d.d(P,"f",function(){return e}),d.d(P,"b",function(){return s});var O=d("KQm4"),E=d("VTBJ"),C=d("Ff2n"),v=d("Zm9Q"),w=d("Kwbf"),m=d("wPhX");function h(t,a){return t!=null?t:a}function c(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=new Map;function l(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(p){var g=p.key,A=p.children;Object(w.a)(g!=null,"Tree node must have a certain key: [".concat(f).concat(g,"]"));var y=String(g);Object(w.a)(!a.has(y)||g===null||g===void 0,"Same 'key' exist in the Tree: ".concat(y)),a.set(y,!0),l(A,"".concat(f).concat(y," > "))})}l(t)}function i(t){function a(l){var u=Object(v.a)(l);return u.map(function(f){if(!Object(m.i)(f))return Object(w.a)(!f,"Tree/TreeNode can only accept TreeNode as children."),null;var p=f.key,g=f.props,A=g.children,y=Object(C.a)(g,["children"]),x=Object(E.a)({key:p},y),T=a(A);return T.length&&(x.children=T),x}).filter(function(f){return f})}return a(t)}function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=new Set(a===!0?[]:a),u=[];function f(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(A,y){var x=Object(m.h)(g?g.pos:"0",y),T=h(A.key,x),S=Object(E.a)(Object(E.a)({},A),{},{parent:g,pos:x,children:null,data:A,isStart:[].concat(Object(O.a)(g?g.isStart:[]),[y===0]),isEnd:[].concat(Object(O.a)(g?g.isEnd:[]),[y===p.length-1])});return u.push(S),a===!0||l.has(T)?S.children=f(A.children||[],S):S.children=[],S})}return f(t),u}function o(t,a,l){var u;l?typeof l=="string"?u=function(g){return g[l]}:typeof l=="function"&&(u=function(g){return l(g)}):u=function(g,A){return h(g.key,A)};function f(p,g,A){var y=p?p.children:t,x=p?Object(m.h)(A.pos,g):"0";if(p){var T=u(p,x),S={node:p,index:g,pos:x,key:T,parentPos:A.node?A.pos:null,level:A.level+1};a(S)}y&&y.forEach(function(b,_){f(b,_,{node:p,pos:x,level:A?A.level+1:-1})})}f(null)}function n(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=a.initWrapper,u=a.processEntity,f=a.onProcessFinished,p=arguments.length>2?arguments[2]:void 0,g={},A={},y={posEntities:g,keyEntities:A};return l&&(y=l(y)||y),o(t,function(x){var T=x.node,S=x.index,b=x.pos,_=x.key,I=x.parentPos,L=x.level,D={node:T,index:S,key:_,pos:b,level:L},N=h(_,b);g[b]=D,A[N]=D,D.parent=g[I],D.parent&&(D.parent.children=D.parent.children||[],D.parent.children.push(D)),u&&u(D,y)},p),f&&f(y),y}function e(t,a){var l=a.expandedKeys,u=a.selectedKeys,f=a.loadedKeys,p=a.loadingKeys,g=a.checkedKeys,A=a.halfCheckedKeys,y=a.dragOverNodeKey,x=a.dropPosition,T=a.keyEntities,S=T[t],b={eventKey:t,expanded:l.indexOf(t)!==-1,selected:u.indexOf(t)!==-1,loaded:f.indexOf(t)!==-1,loading:p.indexOf(t)!==-1,checked:g.indexOf(t)!==-1,halfChecked:A.indexOf(t)!==-1,pos:String(S?S.pos:""),dragOver:y===t&&x===0,dragOverGapTop:y===t&&x===-1,dragOverGapBottom:y===t&&x===1};return b}function s(t){var a=t.data,l=t.expanded,u=t.selected,f=t.checked,p=t.loaded,g=t.loading,A=t.halfChecked,y=t.dragOver,x=t.dragOverGapTop,T=t.dragOverGapBottom,S=t.pos,b=t.active,_=Object(E.a)(Object(E.a)({},a),{},{expanded:l,selected:u,checked:f,loaded:p,loading:g,halfChecked:A,dragOver:y,dragOverGapTop:x,dragOverGapBottom:T,pos:S,active:b});return"props"in _||Object.defineProperty(_,"props",{get:function(){return Object(w.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),_}},c5Ni:function(j,P,d){},c5fP:function(j,P,d){"use strict";function O(Ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ot){return typeof Ot}:O=function(Ot){return Ot&&typeof Symbol=="function"&&Ot.constructor===Symbol&&Ot!==Symbol.prototype?"symbol":typeof Ot},O(Ge)}Object.defineProperty(P,"__esModule",{value:!0}),P._tr_init=$e,P._tr_stored_block=gt,P._tr_flush_block=Ie,P._tr_tally=rt,P._tr_align=et;var E=v(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var Ge=new WeakMap;return C=function(){return Ge},Ge}function v(Ge){if(Ge&&Ge.__esModule)return Ge;if(Ge===null||O(Ge)!=="object"&&typeof Ge!="function")return{default:Ge};var vt=C();if(vt&&vt.has(Ge))return vt.get(Ge);var Ot={},Et=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in Ge)if(Object.prototype.hasOwnProperty.call(Ge,Tt)){var Rt=Et?Object.getOwnPropertyDescriptor(Ge,Tt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(Ot,Tt,Rt):Ot[Tt]=Ge[Tt]}return Ot.default=Ge,vt&&vt.set(Ge,Ot),Ot}var w=4,m=0,h=1,c=2;function i(Ge){for(var vt=Ge.length;--vt>=0;)Ge[vt]=0}var r=0,o=1,n=2,e=3,s=258,t=29,a=256,l=a+1+t,u=30,f=19,p=2*l+1,g=15,A=16,y=7,x=256,T=16,S=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],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],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);i(M);var B=new Array(u*2);i(B);var R=new Array(N);i(R);var H=new Array(s-e+1);i(H);var F=new Array(t);i(F);var K=new Array(u);i(K);function U(Ge,vt,Ot,Et,Tt){this.static_tree=Ge,this.extra_bits=vt,this.extra_base=Ot,this.elems=Et,this.max_length=Tt,this.has_stree=Ge&&Ge.length}var V,z,Y;function q(Ge,vt){this.dyn_tree=Ge,this.max_code=0,this.stat_desc=vt}function ce(Ge){return Ge<256?R[Ge]:R[256+(Ge>>>7)]}function ie(Ge,vt){Ge.pending_buf[Ge.pending++]=vt&255,Ge.pending_buf[Ge.pending++]=vt>>>8&255}function ve(Ge,vt,Ot){Ge.bi_valid>A-Ot?(Ge.bi_buf|=vt<<Ge.bi_valid&65535,ie(Ge,Ge.bi_buf),Ge.bi_buf=vt>>A-Ge.bi_valid,Ge.bi_valid+=Ot-A):(Ge.bi_buf|=vt<<Ge.bi_valid&65535,Ge.bi_valid+=Ot)}function Ee(Ge,vt,Ot){ve(Ge,Ot[vt*2],Ot[vt*2+1])}function Le(Ge,vt){var Ot=0;do Ot|=Ge&1,Ge>>>=1,Ot<<=1;while(--vt>0);return Ot>>>1}function He(Ge){Ge.bi_valid===16?(ie(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 ge(Ge,vt){var Ot=vt.dyn_tree,Et=vt.max_code,Tt=vt.stat_desc.static_tree,Rt=vt.stat_desc.has_stree,Be=vt.stat_desc.extra_bits,Z=vt.stat_desc.extra_base,J=vt.stat_desc.max_length,je,Re,oe,yt,zt,lt,$t=0;for(yt=0;yt<=g;yt++)Ge.bl_count[yt]=0;for(Ot[Ge.heap[Ge.heap_max]*2+1]=0,je=Ge.heap_max+1;je<p;je++){if(Re=Ge.heap[je],yt=Ot[Ot[Re*2+1]*2+1]+1,yt>J&&(yt=J,$t++),Ot[Re*2+1]=yt,Re>Et)continue;Ge.bl_count[yt]++,zt=0,Re>=Z&&(zt=Be[Re-Z]),lt=Ot[Re*2],Ge.opt_len+=lt*(yt+zt),Rt&&(Ge.static_len+=lt*(Tt[Re*2+1]+zt))}if($t===0)return;do{for(yt=J-1;Ge.bl_count[yt]===0;)yt--;Ge.bl_count[yt]--,Ge.bl_count[yt+1]+=2,Ge.bl_count[J]--,$t-=2}while($t>0);for(yt=J;yt!==0;yt--)for(Re=Ge.bl_count[yt];Re!==0;){if(oe=Ge.heap[--je],oe>Et)continue;Ot[oe*2+1]!==yt&&(Ge.opt_len+=(yt-Ot[oe*2+1])*Ot[oe*2],Ot[oe*2+1]=yt),Re--}}function Fe(Ge,vt,Ot){var Et=new Array(g+1),Tt=0,Rt,Be;for(Rt=1;Rt<=g;Rt++)Et[Rt]=Tt=Tt+Ot[Rt-1]<<1;for(Be=0;Be<=vt;Be++){var Z=Ge[Be*2+1];if(Z===0)continue;Ge[Be*2]=Le(Et[Z]++,Z)}}function Q(){var Ge,vt,Ot,Et,Tt,Rt=new Array(g+1);for(Ot=0,Et=0;Et<t-1;Et++)for(F[Et]=Ot,Ge=0;Ge<1<<_[Et];Ge++)H[Ot++]=Et;for(H[Ot-1]=Et,Tt=0,Et=0;Et<16;Et++)for(K[Et]=Tt,Ge=0;Ge<1<<I[Et];Ge++)R[Tt++]=Et;for(Tt>>=7;Et<u;Et++)for(K[Et]=Tt<<7,Ge=0;Ge<1<<I[Et]-7;Ge++)R[256+Tt++]=Et;for(vt=0;vt<=g;vt++)Rt[vt]=0;for(Ge=0;Ge<=143;)M[Ge*2+1]=8,Ge++,Rt[8]++;for(;Ge<=255;)M[Ge*2+1]=9,Ge++,Rt[9]++;for(;Ge<=279;)M[Ge*2+1]=7,Ge++,Rt[7]++;for(;Ge<=287;)M[Ge*2+1]=8,Ge++,Rt[8]++;for(Fe(M,l+1,Rt),Ge=0;Ge<u;Ge++)B[Ge*2+1]=5,B[Ge*2]=Le(Ge,5);V=new U(M,_,a+1,l,g),z=new U(B,I,0,u,g),Y=new U(new Array(0),L,0,f,y)}function fe(Ge){var vt;for(vt=0;vt<l;vt++)Ge.dyn_ltree[vt*2]=0;for(vt=0;vt<u;vt++)Ge.dyn_dtree[vt*2]=0;for(vt=0;vt<f;vt++)Ge.bl_tree[vt*2]=0;Ge.dyn_ltree[x*2]=1,Ge.opt_len=Ge.static_len=0,Ge.last_lit=Ge.matches=0}function Je(Ge){Ge.bi_valid>8?ie(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 ne(Ge,vt,Ot,Et){Je(Ge),Et&&(ie(Ge,Ot),ie(Ge,~Ot)),E.arraySet(Ge.pending_buf,Ge.window,vt,Ot,Ge.pending),Ge.pending+=Ot}function X(Ge,vt,Ot,Et){var Tt=vt*2,Rt=Ot*2;return Ge[Tt]<Ge[Rt]||Ge[Tt]===Ge[Rt]&&Et[vt]<=Et[Ot]}function G(Ge,vt,Ot){for(var Et=Ge.heap[Ot],Tt=Ot<<1;Tt<=Ge.heap_len&&!(Tt<Ge.heap_len&&X(vt,Ge.heap[Tt+1],Ge.heap[Tt],Ge.depth)&&Tt++,X(vt,Et,Ge.heap[Tt],Ge.depth));)Ge.heap[Ot]=Ge.heap[Tt],Ot=Tt,Tt<<=1;Ge.heap[Ot]=Et}function te(Ge,vt,Ot){var Et,Tt,Rt=0,Be,Z;if(Ge.last_lit!==0)do Et=Ge.pending_buf[Ge.d_buf+Rt*2]<<8|Ge.pending_buf[Ge.d_buf+Rt*2+1],Tt=Ge.pending_buf[Ge.l_buf+Rt],Rt++,Et===0?Ee(Ge,Tt,vt):(Be=H[Tt],Ee(Ge,Be+a+1,vt),Z=_[Be],Z!==0&&(Tt-=F[Be],ve(Ge,Tt,Z)),Et--,Be=ce(Et),Ee(Ge,Be,Ot),Z=I[Be],Z!==0&&(Et-=K[Be],ve(Ge,Et,Z)));while(Rt<Ge.last_lit);Ee(Ge,x,vt)}function we(Ge,vt){var Ot=vt.dyn_tree,Et=vt.stat_desc.static_tree,Tt=vt.stat_desc.has_stree,Rt=vt.stat_desc.elems,Be,Z,J=-1,je;for(Ge.heap_len=0,Ge.heap_max=p,Be=0;Be<Rt;Be++)Ot[Be*2]!==0?(Ge.heap[++Ge.heap_len]=J=Be,Ge.depth[Be]=0):Ot[Be*2+1]=0;for(;Ge.heap_len<2;)je=Ge.heap[++Ge.heap_len]=J<2?++J:0,Ot[je*2]=1,Ge.depth[je]=0,Ge.opt_len--,Tt&&(Ge.static_len-=Et[je*2+1]);for(vt.max_code=J,Be=Ge.heap_len>>1;Be>=1;Be--)G(Ge,Ot,Be);je=Rt;do Be=Ge.heap[1],Ge.heap[1]=Ge.heap[Ge.heap_len--],G(Ge,Ot,1),Z=Ge.heap[1],Ge.heap[--Ge.heap_max]=Be,Ge.heap[--Ge.heap_max]=Z,Ot[je*2]=Ot[Be*2]+Ot[Z*2],Ge.depth[je]=(Ge.depth[Be]>=Ge.depth[Z]?Ge.depth[Be]:Ge.depth[Z])+1,Ot[Be*2+1]=Ot[Z*2+1]=je,Ge.heap[1]=je++,G(Ge,Ot,1);while(Ge.heap_len>=2);Ge.heap[--Ge.heap_max]=Ge.heap[1],ge(Ge,vt),Fe(Ot,J,Ge.bl_count)}function he(Ge,vt,Ot){var Et,Tt=-1,Rt,Be=vt[0*2+1],Z=0,J=7,je=4;for(Be===0&&(J=138,je=3),vt[(Ot+1)*2+1]=65535,Et=0;Et<=Ot;Et++){if(Rt=Be,Be=vt[(Et+1)*2+1],++Z<J&&Rt===Be)continue;Z<je?Ge.bl_tree[Rt*2]+=Z:Rt!==0?(Rt!==Tt&&Ge.bl_tree[Rt*2]++,Ge.bl_tree[T*2]++):Z<=10?Ge.bl_tree[S*2]++:Ge.bl_tree[b*2]++,Z=0,Tt=Rt,Be===0?(J=138,je=3):Rt===Be?(J=6,je=3):(J=7,je=4)}}function Pe(Ge,vt,Ot){var Et,Tt=-1,Rt,Be=vt[0*2+1],Z=0,J=7,je=4;for(Be===0&&(J=138,je=3),Et=0;Et<=Ot;Et++){if(Rt=Be,Be=vt[(Et+1)*2+1],++Z<J&&Rt===Be)continue;if(Z<je)do Ee(Ge,Rt,Ge.bl_tree);while(--Z!==0);else Rt!==0?(Rt!==Tt&&(Ee(Ge,Rt,Ge.bl_tree),Z--),Ee(Ge,T,Ge.bl_tree),ve(Ge,Z-3,2)):Z<=10?(Ee(Ge,S,Ge.bl_tree),ve(Ge,Z-3,3)):(Ee(Ge,b,Ge.bl_tree),ve(Ge,Z-11,7));Z=0,Tt=Rt,Be===0?(J=138,je=3):Rt===Be?(J=6,je=3):(J=7,je=4)}}function Oe(Ge){var vt;for(he(Ge,Ge.dyn_ltree,Ge.l_desc.max_code),he(Ge,Ge.dyn_dtree,Ge.d_desc.max_code),we(Ge,Ge.bl_desc),vt=f-1;vt>=3&&!(Ge.bl_tree[D[vt]*2+1]!==0);vt--);return Ge.opt_len+=3*(vt+1)+5+5+4,vt}function le(Ge,vt,Ot,Et){var Tt;for(ve(Ge,vt-257,5),ve(Ge,Ot-1,5),ve(Ge,Et-4,4),Tt=0;Tt<Et;Tt++)ve(Ge,Ge.bl_tree[D[Tt]*2+1],3);Pe(Ge,Ge.dyn_ltree,vt-1),Pe(Ge,Ge.dyn_dtree,Ot-1)}function me(Ge){var vt=4093624447,Ot;for(Ot=0;Ot<=31;Ot++,vt>>>=1)if(vt&1&&Ge.dyn_ltree[Ot*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(Ot=32;Ot<a;Ot++)if(Ge.dyn_ltree[Ot*2]!==0)return h;return m}var _e=!1;function $e(Ge){_e||(Q(),_e=!0),Ge.l_desc=new q(Ge.dyn_ltree,V),Ge.d_desc=new q(Ge.dyn_dtree,z),Ge.bl_desc=new q(Ge.bl_tree,Y),Ge.bi_buf=0,Ge.bi_valid=0,fe(Ge)}function gt(Ge,vt,Ot,Et){ve(Ge,(r<<1)+(Et?1:0),3),ne(Ge,vt,Ot,!0)}function et(Ge){ve(Ge,o<<1,3),Ee(Ge,x,M),He(Ge)}function Ie(Ge,vt,Ot,Et){var Tt,Rt,Be=0;Ge.level>0?(Ge.strm.data_type===c&&(Ge.strm.data_type=me(Ge)),we(Ge,Ge.l_desc),we(Ge,Ge.d_desc),Be=Oe(Ge),Tt=Ge.opt_len+3+7>>>3,Rt=Ge.static_len+3+7>>>3,Rt<=Tt&&(Tt=Rt)):Tt=Rt=Ot+5,Ot+4<=Tt&&vt!==-1?gt(Ge,vt,Ot,Et):Ge.strategy===w||Rt===Tt?(ve(Ge,(o<<1)+(Et?1:0),3),te(Ge,M,B)):(ve(Ge,(n<<1)+(Et?1:0),3),le(Ge,Ge.l_desc.max_code+1,Ge.d_desc.max_code+1,Be+1),te(Ge,Ge.dyn_ltree,Ge.dyn_dtree)),fe(Ge),Et&&Je(Ge)}function rt(Ge,vt,Ot){return Ge.pending_buf[Ge.d_buf+Ge.last_lit*2]=vt>>>8&255,Ge.pending_buf[Ge.d_buf+Ge.last_lit*2+1]=vt&255,Ge.pending_buf[Ge.l_buf+Ge.last_lit]=Ot&255,Ge.last_lit++,vt===0?Ge.dyn_ltree[Ot*2]++:(Ge.matches++,vt--,Ge.dyn_ltree[(H[Ot]+a+1)*2]++,Ge.dyn_dtree[ce(vt)*2]++),Ge.last_lit===Ge.lit_bufsize-1}},c8qY:function(j,P,d){var O=d("IwbS"),E=d("fls0");function C(n){this._ctor=n||E,this.group=new O.Group}var v=C.prototype;v.isPersistent=function(){return!0},v.updateData=function(n){var e=this,s=e.group,t=e._lineData;e._lineData=n,t||s.removeAll();var a=c(n);n.diff(t).add(function(l){w(e,n,l,a)}).update(function(l,u){m(e,t,n,u,l,a)}).remove(function(l){s.remove(t.getItemGraphicEl(l))}).execute()};function w(n,e,s,t){var a=e.getItemLayout(s);if(!r(a))return;var l=new n._ctor(e,s,t);e.setItemGraphicEl(s,l),n.group.add(l)}function m(n,e,s,t,a,l){var u=e.getItemGraphicEl(t);if(!r(s.getItemLayout(a))){n.group.remove(u);return}u?u.updateData(s,a,l):u=new n._ctor(s,a,l),s.setItemGraphicEl(a,u),n.group.add(u)}v.updateLayout=function(){var n=this._lineData;if(!n)return;n.eachItemGraphicEl(function(e,s){e.updateLayout(n,s)},this)},v.incrementalPrepareUpdate=function(n){this._seriesScope=c(n),this._lineData=null,this.group.removeAll()};function h(n){return n.animators&&n.animators.length>0}v.incrementalUpdate=function(n,e){function s(u){!u.isGroup&&!h(u)&&(u.incremental=u.useHoverLayer=!0)}for(var t=n.start;t<n.end;t++){var a=e.getItemLayout(t);if(r(a)){var l=new this._ctor(e,t,this._seriesScope);l.traverse(s),this.group.add(l),e.setItemGraphicEl(t,l)}}};function c(n){var e=n.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}v.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},v._clearIncremental=function(){var n=this._incremental;n&&n.clearDisplaybles()};function i(n){return isNaN(n[0])||isNaN(n[1])}function r(n){return!i(n[0])&&!i(n[1])}var o=C;j.exports=o},cCMj:function(j,P,d){var O=d("bYtY"),E={updateSelectedMap:function(C){this._targetList=O.isArray(C)?C.slice():[],this._selectTargetMap=O.reduce(C||[],function(v,w){return v.set(w.name,w),v},O.createHashMap())},select:function(C,v){var w=v!=null?this._targetList[v]:this._selectTargetMap.get(C),m=this.get("selectedMode");m==="single"&&this._selectTargetMap.each(function(h){h.selected=!1}),w&&(w.selected=!0)},unSelect:function(C,v){var w=v!=null?this._targetList[v]:this._selectTargetMap.get(C);w&&(w.selected=!1)},toggleSelected:function(C,v){var w=v!=null?this._targetList[v]:this._selectTargetMap.get(C);if(w!=null)return this[w.selected?"unSelect":"select"](C,v),w.selected},isSelected:function(C,v){var w=v!=null?this._targetList[v]:this._selectTargetMap.get(C);return w&&w.selected}};j.exports=E},cVA7:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("MT78"),E=w(O),C=d("t3Fx"),v=w(C);function w(r){return r&&r.__esModule?r:{default:r}}function m(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function h(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:r}function c(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)}var i=function(r){c(o,r);function o(n){m(this,o);var e=h(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,n));return e.echartsLib=E.default,e}return o}(v.default);P.default=i},cWXX:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("oIFs"),v=d.n(C)},ca2m:function(j,P,d){var O=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)"]}}},C={};C.categoryAxis=O.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E),C.valueAxis=O.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},E),C.timeAxis=O.defaults({scale:!0,min:"dataMin",max:"dataMax"},C.valueAxis),C.logAxis=O.defaults({scale:!0,logBase:10},C.valueAxis);var v=C;j.exports=v},cbJ4:function(j,P,d){var O=d("bYtY"),E=O.createHashMap;function C(v){v.eachSeriesByType("themeRiver",function(w){var m=w.getData(),h=w.getRawData(),c=w.get("color"),i=E();m.each(function(r){i.set(m.getRawIndex(r),r)}),h.each(function(r){var o=h.getName(r),n=c[(w.nameMap.get(o)-1)%c.length];h.setItemVisual(r,"color",n);var e=i.get(r);e!=null&&m.setItemVisual(e,"color",n)})})}j.exports=C},chpo:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=1,E=function(){return"".concat(O++)};P.default=E},cpOr:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("T4UG"),v=d("YXkt"),w=d("bYtY"),m=w.concatArray,h=w.mergeAll,c=w.map,i=d("7aKB"),r=i.encodeHTML,o=d("IDmD"),n=typeof Uint32Array=="undefined"?Array:Uint32Array,e=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],g={coords:p};return f[0].name&&(g.fromName=f[0].name),f[1].name&&(g.toName=f[1].name),h([g,f[0],f[1]])}))}var t=C.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)),t.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))}t.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],g=0;g<p;g++)u[g]=u[g]||[],u[g][0]=this._flatCoords[f+g*2],u[g][1]=this._flatCoords[f+g*2+1];return p}else{for(var A=this._getCoordsFromItemModel(l),g=0;g<A.length;g++)u[g]=u[g]||[],u[g][0]=A[g][0],u[g][1]=A[g][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),g=new e(f),A=0,y=0,x=0,T=0;T<f;){x++;var S=l[T++];p[y++]=A+u,p[y++]=S;for(var b=0;b<S;b++){var _=l[T++],I=l[T++];g[A++]=_,g[A++]=I,T>f}}return{flatCoordsOffset:new Uint32Array(p.buffer,0,y),flatCoords:g,count:x}}return{flatCoordsOffset:null,flatCoords:null,count:l.length}},getInitialData:function(l,u){var f=new v(["value"],this);return f.hasItemOption=!1,f.initData(l.data,[],function(p,g,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 g=f.get("fromName"),A=f.get("toName"),y=[];return g!=null&&y.push(g),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}}}),a=t;j.exports=a},crZl:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),v=d("7aKB"),w=d("+TT/"),m=d("XxSj"),h=O.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(c,i){this.ecModel=c,this.api=i,this.visualMapModel},render:function(c,i,r,o){if(this.visualMapModel=c,c.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(c){var i=this.visualMapModel,r=v.normalizeCssArray(i.get("padding")||0),o=c.getBoundingRect();c.add(new C.Rect({z2:-1,silent:!0,shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[3]+r[1],height:o.height+r[0]+r[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},getControllerVisual:function(c,i,r){r=r||{};var o=r.forceState,n=this.visualMapModel,e={};if(i==="symbol"&&(e.symbol=n.get("itemSymbol")),i==="color"){var s=n.get("contentColor");e.color=s}function t(f){return e[f]}function a(f,p){e[f]=p}var l=n.controllerVisuals[o||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,i)&&(p&&p.applyVisual(c,t,a))}),e[i]},positionGroup:function(c){var i=this.visualMapModel,r=this.api;w.positionElement(c,i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},doRender:E.noop});j.exports=h},crp1:function(j,P,d){"use strict";d.d(P,"b",function(){return Vt}),d.d(P,"a",function(){return Hn});var O={},E=function(nt,st,Xt,Dt,St){var jt=O[st]||(O[st]=URL.createObjectURL(new Blob([nt],{type:"text/javascript"}))),At=new Worker(jt);return At.onerror=function(Ft){return St(Ft.error,null)},At.onmessage=function(Ft){return St(null,Ft.data)},At.postMessage(Xt,Dt),At},C=Uint8Array,v=Uint16Array,w=Uint32Array,m=new 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,0,0,0]),h=new C([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 C([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i=function(nt,st){for(var Xt=new v(31),Dt=0;Dt<31;++Dt)Xt[Dt]=st+=1<<nt[Dt-1];for(var St=new w(Xt[30]),Dt=1;Dt<30;++Dt)for(var jt=Xt[Dt];jt<Xt[Dt+1];++jt)St[jt]=jt-Xt[Dt]<<5|Dt;return[Xt,St]},r=i(m,2),o=r[0],n=r[1];o[28]=258,n[258]=28;for(var e=i(h,0),s=e[0],t=e[1],a=new v(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,a[l]=((u&65280)>>>8|(u&255)<<8)>>>1}for(var f=function(nt,st,Xt){for(var Dt=nt.length,St=0,jt=new v(st);St<Dt;++St)++jt[nt[St]-1];var At=new v(st);for(St=0;St<st;++St)At[St]=At[St-1]+jt[St-1]<<1;var Ft;if(Xt){Ft=new v(1<<st);var wr=15-st;for(St=0;St<Dt;++St)if(nt[St])for(var sr=St<<4|nt[St],mr=st-nt[St],$r=At[nt[St]-1]++<<mr,rn=$r|(1<<mr)-1;$r<=rn;++$r)Ft[a[$r]>>>wr]=sr}else for(Ft=new v(Dt),St=0;St<Dt;++St)Ft[St]=a[At[nt[St]-1]++]>>>15-nt[St];return Ft},p=new C(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 g=new C(32),l=0;l<32;++l)g[l]=5;var A=f(p,9,0),y=f(p,9,1),x=f(g,5,0),T=f(g,5,1),S=function(nt){for(var st=nt[0],Xt=1;Xt<nt.length;++Xt)nt[Xt]>st&&(st=nt[Xt]);return st},b=function(nt,st,Xt){var Dt=st/8>>0;return(nt[Dt]|nt[Dt+1]<<8)>>>(st&7)&Xt},_=function(nt,st){var Xt=st/8>>0;return(nt[Xt]|nt[Xt+1]<<8|nt[Xt+2]<<16)>>>(st&7)},I=function(nt){return(nt/8>>0)+(nt&7&&1)},L=function(nt,st,Xt){(st==null||st<0)&&(st=0),(Xt==null||Xt>nt.length)&&(Xt=nt.length);var Dt=new(nt instanceof v?v:nt instanceof w?w:C)(Xt-st);return Dt.set(nt.subarray(st,Xt)),Dt},D=function(nt,st,Xt){var Dt=nt.length,St=!st||Xt,jt=!Xt||Xt.i;Xt||(Xt={}),st||(st=new C(Dt*3));var At=function(Yi){var Qr=st.length;if(Yi>Qr){var On=new C(Math.max(Qr*2,Yi));On.set(st),st=On}},Ft=Xt.f||0,wr=Xt.p||0,sr=Xt.b||0,mr=Xt.l,$r=Xt.d,rn=Xt.m,jn=Xt.n,Un=Dt*8;do{if(!mr){Xt.f=Ft=b(nt,wr,1);var ui=b(nt,wr+1,3);if(wr+=3,ui)if(ui==1)mr=y,$r=T,rn=9,jn=5;else if(ui==2){var Qe=b(nt,wr,31)+257,be=b(nt,wr+10,15)+4,Ne=Qe+b(nt,wr+5,31)+1;wr+=14;for(var Ue=new C(Ne),Xe=new C(19),ze=0;ze<be;++ze)Xe[c[ze]]=b(nt,wr+ze*3,7);wr+=be*3;var Ze=S(Xe),bt=(1<<Ze)-1;if(!jt&&wr+Ne*(Ze+7)>Un)break;for(var ut=f(Xe,Ze,1),ze=0;ze<Ne;){var Gt=ut[b(nt,wr,bt)];wr+=Gt&15;var yi=Gt>>>4;if(yi<16)Ue[ze++]=yi;else{var Mr=0,Lr=0;for(yi==16?(Lr=3+b(nt,wr,3),wr+=2,Mr=Ue[ze-1]):yi==17?(Lr=3+b(nt,wr,7),wr+=3):yi==18&&(Lr=11+b(nt,wr,127),wr+=7);Lr--;)Ue[ze++]=Mr}}var Gr=Ue.subarray(0,Qe),Ht=Ue.subarray(Qe);rn=S(Gr),jn=S(Ht),mr=f(Gr,rn,1),$r=f(Ht,jn,1)}else throw"invalid block type";else{var yi=I(wr)+4,Ii=nt[yi-4]|nt[yi-3]<<8,Gi=yi+Ii;if(Gi>Dt){if(jt)throw"unexpected EOF";break}St&&At(sr+Ii),st.set(nt.subarray(yi,Gi),sr),Xt.b=sr+=Ii,Xt.p=wr=Gi*8;continue}if(wr>Un)throw"unexpected EOF"}St&&At(sr+131072);for(var hn=(1<<rn)-1,or=(1<<jn)-1,vn=rn+jn+18;jt||wr+vn<Un;){var Mr=mr[_(nt,wr)&hn],nn=Mr>>>4;if(wr+=Mr&15,wr>Un)throw"unexpected EOF";if(!Mr)throw"invalid length/literal";if(nn<256)st[sr++]=nn;else if(nn==256){mr=null;break}else{var Ur=nn-254;if(nn>264){var ze=nn-257,ni=m[ze];Ur=b(nt,wr,(1<<ni)-1)+o[ze],wr+=ni}var Oi=$r[_(nt,wr)&or],Hi=Oi>>>4;if(!Oi)throw"invalid distance";wr+=Oi&15;var Ht=s[Hi];if(Hi>3){var ni=h[Hi];Ht+=_(nt,wr)&(1<<ni)-1,wr+=ni}if(wr>Un)throw"unexpected EOF";St&&At(sr+131072);for(var Ri=sr+Ur;sr<Ri;sr+=4)st[sr]=st[sr-Ht],st[sr+1]=st[sr+1-Ht],st[sr+2]=st[sr+2-Ht],st[sr+3]=st[sr+3-Ht];sr=Ri}}Xt.l=mr,Xt.p=wr,Xt.b=sr,mr&&(Ft=1,Xt.m=rn,Xt.d=$r,Xt.n=jn)}while(!Ft);return sr==st.length?st:L(st,0,sr)},N=function(nt,st,Xt){Xt<<=st&7;var Dt=st/8>>0;nt[Dt]|=Xt,nt[Dt+1]|=Xt>>>8},M=function(nt,st,Xt){Xt<<=st&7;var Dt=st/8>>0;nt[Dt]|=Xt,nt[Dt+1]|=Xt>>>8,nt[Dt+2]|=Xt>>>16},B=function(nt,st){for(var Xt=[],Dt=0;Dt<nt.length;++Dt)nt[Dt]&&Xt.push({s:Dt,f:nt[Dt]});var St=Xt.length,jt=Xt.slice();if(!St)return[new C(0),0];if(St==1){var At=new C(Xt[0].s+1);return At[Xt[0].s]=1,[At,1]}Xt.sort(function(Ne,Ue){return Ne.f-Ue.f}),Xt.push({s:-1,f:25001});var Ft=Xt[0],wr=Xt[1],sr=0,mr=1,$r=2;for(Xt[0]={s:-1,f:Ft.f+wr.f,l:Ft,r:wr};mr!=St-1;)Ft=Xt[Xt[sr].f<Xt[$r].f?sr++:$r++],wr=Xt[sr!=mr&&Xt[sr].f<Xt[$r].f?sr++:$r++],Xt[mr++]={s:-1,f:Ft.f+wr.f,l:Ft,r:wr};for(var rn=jt[0].s,Dt=1;Dt<St;++Dt)jt[Dt].s>rn&&(rn=jt[Dt].s);var jn=new v(rn+1),Un=R(Xt[mr-1],jn,0);if(Un>st){var Dt=0,ui=0,yi=Un-st,Ii=1<<yi;for(jt.sort(function(Ue,Xe){return jn[Xe.s]-jn[Ue.s]||Ue.f-Xe.f});Dt<St;++Dt){var Gi=jt[Dt].s;if(jn[Gi]>st)ui+=Ii-(1<<Un-jn[Gi]),jn[Gi]=st;else break}for(ui>>>=yi;ui>0;){var Qe=jt[Dt].s;jn[Qe]<st?ui-=1<<st-jn[Qe]++-1:++Dt}for(;Dt>=0&&ui;--Dt){var be=jt[Dt].s;jn[be]==st&&(--jn[be],++ui)}Un=st}return[new C(jn),Un]},R=function Mt(nt,st,Xt){return nt.s==-1?Math.max(Mt(nt.l,st,Xt+1),Mt(nt.r,st,Xt+1)):st[nt.s]=Xt},H=function(nt){for(var st=nt.length;st&&!nt[--st];);for(var Xt=new v(++st),Dt=0,St=nt[0],jt=1,At=function(sr){Xt[Dt++]=sr},Ft=1;Ft<=st;++Ft)if(nt[Ft]==St&&Ft!=st)++jt;else{if(!St&&jt>2){for(;jt>138;jt-=138)At(32754);jt>2&&(At(jt>10?jt-11<<5|28690:jt-3<<5|12305),jt=0)}else if(jt>3){for(At(St),--jt;jt>6;jt-=6)At(8304);jt>2&&(At(jt-3<<5|8208),jt=0)}for(;jt--;)At(St);jt=1,St=nt[Ft]}return[Xt.subarray(0,Dt),st]},F=function(nt,st){for(var Xt=0,Dt=0;Dt<st.length;++Dt)Xt+=nt[Dt]*st[Dt];return Xt},K=function(nt,st,Xt){var Dt=Xt.length,St=I(st+2);nt[St]=Dt&255,nt[St+1]=Dt>>>8,nt[St+2]=nt[St]^255,nt[St+3]=nt[St+1]^255;for(var jt=0;jt<Dt;++jt)nt[St+jt+4]=Xt[jt];return(St+4+Dt)*8},U=function(nt,st,Xt,Dt,St,jt,At,Ft,wr,sr,mr){N(st,mr++,Xt),++St[256];for(var $r=B(St,15),rn=$r[0],jn=$r[1],Un=B(jt,15),ui=Un[0],yi=Un[1],Ii=H(rn),Gi=Ii[0],Qe=Ii[1],be=H(ui),Ne=be[0],Ue=be[1],Xe=new v(19),ze=0;ze<Gi.length;++ze)Xe[Gi[ze]&31]++;for(var ze=0;ze<Ne.length;++ze)Xe[Ne[ze]&31]++;for(var Ze=B(Xe,7),bt=Ze[0],ut=Ze[1],Gt=19;Gt>4&&!bt[c[Gt-1]];--Gt);var Mr=sr+5<<3,Lr=F(St,p)+F(jt,g)+At,Gr=F(St,rn)+F(jt,ui)+At+14+3*Gt+F(Xe,bt)+(2*Xe[16]+3*Xe[17]+7*Xe[18]);if(Mr<=Lr&&Mr<=Gr)return K(st,mr,nt.subarray(wr,wr+sr));var Ht,hn,or,vn;if(N(st,mr,1+(Gr<Lr)),mr+=2,Gr<Lr){Ht=f(rn,jn,0),hn=rn,or=f(ui,yi,0),vn=ui;var nn=f(bt,ut,0);N(st,mr,Qe-257),N(st,mr+5,Ue-1),N(st,mr+10,Gt-4),mr+=14;for(var ze=0;ze<Gt;++ze)N(st,mr+3*ze,bt[c[ze]]);mr+=3*Gt;for(var Ur=[Gi,Ne],ni=0;ni<2;++ni)for(var Oi=Ur[ni],ze=0;ze<Oi.length;++ze){var Hi=Oi[ze]&31;N(st,mr,nn[Hi]),mr+=bt[Hi],Hi>15&&(N(st,mr,Oi[ze]>>>5&127),mr+=Oi[ze]>>>12)}}else Ht=A,hn=p,or=x,vn=g;for(var ze=0;ze<Ft;++ze)if(Dt[ze]>255){var Hi=Dt[ze]>>>18&31;M(st,mr,Ht[Hi+257]),mr+=hn[Hi+257],Hi>7&&(N(st,mr,Dt[ze]>>>23&31),mr+=m[Hi]);var Ri=Dt[ze]&31;M(st,mr,or[Ri]),mr+=vn[Ri],Ri>3&&(M(st,mr,Dt[ze]>>>5&8191),mr+=h[Ri])}else M(st,mr,Ht[Dt[ze]]),mr+=hn[Dt[ze]];return M(st,mr,Ht[256]),mr+hn[256]},V=new w([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new C(0),Y=function(nt,st,Xt,Dt,St,jt){var At=nt.length,Ft=new C(Dt+At+5*(1+Math.floor(At/7e3))+St),wr=Ft.subarray(Dt,Ft.length-St),sr=0;if(!st||At<8)for(var mr=0;mr<=At;mr+=65535){var $r=mr+65535;$r<At?sr=K(wr,sr,nt.subarray(mr,$r)):(wr[mr]=jt,sr=K(wr,sr,nt.subarray(mr,At)))}else{for(var rn=V[st-1],jn=rn>>>13,Un=rn&8191,ui=(1<<Xt)-1,yi=new v(32768),Ii=new v(ui+1),Gi=Math.ceil(Xt/3),Qe=2*Gi,be=function(Jr){return(nt[Jr]^nt[Jr+1]<<Gi^nt[Jr+2]<<Qe)&ui},Ne=new w(25e3),Ue=new v(288),Xe=new v(32),ze=0,Ze=0,mr=0,bt=0,ut=0,Gt=0;mr<At;++mr){var Mr=be(mr),Lr=mr&32767,Gr=Ii[Mr];if(yi[Lr]=Gr,Ii[Mr]=Lr,ut<=mr){var Ht=At-mr;if((ze>7e3||bt>24576)&&Ht>423){sr=U(nt,wr,0,Ne,Ue,Xe,Ze,bt,Gt,mr-Gt,sr),bt=ze=Ze=0,Gt=mr;for(var hn=0;hn<286;++hn)Ue[hn]=0;for(var hn=0;hn<30;++hn)Xe[hn]=0}var or=2,vn=0,nn=Un,Ur=Lr-Gr&32767;if(Ht>2&&Mr==be(mr-Ur))for(var ni=Math.min(jn,Ht)-1,Oi=Math.min(32767,mr),Hi=Math.min(258,Ht);Ur<=Oi&&--nn&&Lr!=Gr;){if(nt[mr+or]==nt[mr+or-Ur]){for(var Ri=0;Ri<Hi&&nt[mr+Ri]==nt[mr+Ri-Ur];++Ri);if(Ri>or){if(or=Ri,vn=Ur,Ri>ni)break;for(var Ni=Math.min(Ur,Ri-2),Yi=0,hn=0;hn<Ni;++hn){var Qr=mr-Ur+hn+32768&32767,On=yi[Qr],zr=Qr-On+32768&32767;zr>Yi&&(Yi=zr,Gr=Qr)}}}Lr=Gr,Gr=yi[Lr],Ur+=Lr-Gr+32768&32767}if(vn){Ne[bt++]=268435456|n[or]<<18|t[vn];var fr=n[or]&31,Nr=t[vn]&31;Ze+=m[fr]+h[Nr],++Ue[257+fr],++Xe[Nr],ut=mr+or,++ze}else Ne[bt++]=nt[mr],++Ue[nt[mr]]}}sr=U(nt,wr,jt,Ne,Ue,Xe,Ze,bt,Gt,mr-Gt,sr),jt||(sr=K(wr,sr,z))}return L(Ft,0,Dt+I(sr)+St)},q=function(){for(var Mt=new w(256),nt=0;nt<256;++nt){for(var st=nt,Xt=9;--Xt;)st=(st&1&&3988292384)^st>>>1;Mt[nt]=st}return Mt}(),ce=function(){var nt=4294967295;return{p:function(Xt){for(var Dt=nt,St=0;St<Xt.length;++St)Dt=q[Dt&255^Xt[St]]^Dt>>>8;nt=Dt},d:function(){return nt^4294967295}}},ie=function(){var nt=1,st=0;return{p:function(Dt){for(var St=nt,jt=st,At=Dt.length,Ft=0;Ft!=At;){for(var wr=Math.min(Ft+5552,At);Ft<wr;++Ft)St+=Dt[Ft],jt+=St;St%=65521,jt%=65521}nt=St,st=jt},d:function(){return(nt>>>8<<16|(st&255)<<8|st>>>8)+((nt&255)<<23)*2}}},ve=function(nt,st,Xt,Dt,St){return Y(nt,st.level==null?6:st.level,st.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(nt.length)))*1.5):12+st.mem,Xt,Dt,!St)},Ee=function(nt,st){var Xt={};for(var Dt in nt)Xt[Dt]=nt[Dt];for(var Dt in st)Xt[Dt]=st[Dt];return Xt},Le=function(nt,st,Xt){for(var Dt=nt(),St=nt.toString(),jt=St.slice(St.indexOf("[")+1,St.lastIndexOf("]")).replace(/ /g,"").split(","),At=0;At<Dt.length;++At){var Ft=Dt[At],wr=jt[At];if(typeof Ft=="function"){st+=";"+wr+"=";var sr=Ft.toString();if(Ft.prototype)if(sr.indexOf("[native code]")!=-1){var mr=sr.indexOf(" ",8)+1;st+=sr.slice(mr,sr.indexOf("(",mr))}else{st+=sr;for(var $r in Ft.prototype)st+=";"+wr+".prototype."+$r+"="+Ft.prototype[$r].toString()}else st+=sr}else Xt[wr]=Ft}return[st,Xt]},He=[],ge=function(nt){var st=[];for(var Xt in nt)(nt[Xt]instanceof C||nt[Xt]instanceof v||nt[Xt]instanceof w)&&st.push((nt[Xt]=new nt[Xt].constructor(nt[Xt])).buffer);return st},Fe=function(nt,st,Xt,Dt){var St;if(!He[Xt]){for(var jt="",At={},Ft=nt.length-1,wr=0;wr<Ft;++wr)St=Le(nt[wr],jt,At),jt=St[0],At=St[1];He[Xt]=Le(nt[Ft],jt,At)}var sr=Ee({},He[Xt][1]);return E(He[Xt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+st.toString()+"}",Xt,sr,ge(sr),Dt)},Q=function(){return[C,v,w,m,h,c,o,s,y,T,a,f,S,b,_,I,L,D,je,te,we]},fe=function(){return[C,v,w,m,h,c,n,t,A,p,x,g,a,V,z,f,N,M,B,R,H,F,K,U,I,L,Y,ve,Rt,te]},Je=function(){return[$e,Ie,_e,ce,q]},ne=function(){return[gt,et]},X=function(){return[rt,_e,ie]},G=function(){return[Ge]},te=function(nt){return postMessage(nt,[nt.buffer])},we=function(nt){return nt&&nt.size&&new C(nt.size)},he=function(nt,st,Xt,Dt,St,jt){var At=Fe(Xt,Dt,St,function(Ft,wr){At.terminate(),jt(Ft,wr)});return st.consume||(nt=new C(nt)),At.postMessage([nt,st],[nt.buffer]),function(){At.terminate()}},Pe=function(nt){return nt.ondata=function(st,Xt){return postMessage([st,Xt],[st.buffer])},function(st){return nt.push(st.data[0],st.data[1])}},Oe=function(nt,st,Xt,Dt,St){var jt,At=Fe(nt,Dt,St,function(Ft,wr){Ft?(At.terminate(),st.ondata.call(st,Ft)):(wr[1]&&At.terminate(),st.ondata.call(st,Ft,wr[0],wr[1]))});At.postMessage(Xt),st.push=function(Ft,wr){if(jt)throw"stream finished";if(!st.ondata)throw"no stream handler";At.postMessage([Ft,jt=wr],[Ft.buffer])},st.terminate=function(){At.terminate()}},le=function(nt,st){return nt[st]|nt[st+1]<<8},me=function(nt,st){return(nt[st]|nt[st+1]<<8|nt[st+2]<<16)+(nt[st+3]<<23)*2},_e=function(nt,st,Xt){for(;Xt;++st)nt[st]=Xt,Xt>>>=8},$e=function(nt,st){var Xt=st.filename;if(nt[0]=31,nt[1]=139,nt[2]=8,nt[8]=st.level<2?4:st.level==9?2:0,nt[9]=3,st.mtime!=0&&_e(nt,4,Math.floor(new Date(st.mtime||Date.now())/1e3)),Xt){nt[3]=8;for(var Dt=0;Dt<=Xt.length;++Dt)nt[Dt+10]=Xt.charCodeAt(Dt)}},gt=function(nt){if(nt[0]!=31||nt[1]!=139||nt[2]!=8)throw"invalid gzip data";var st=nt[3],Xt=10;st&4&&(Xt+=nt[10]|(nt[11]<<8)+2);for(var Dt=(st>>3&1)+(st>>4&1);Dt>0;Dt-=!nt[Xt++]);return Xt+(st&2)},et=function(nt){var st=nt.length;return(nt[st-4]|nt[st-3]<<8|nt[st-2]<<16)+2*(nt[st-1]<<23)},Ie=function(nt){return 10+(nt.filename&&nt.filename.length+1||0)},rt=function(nt,st){var Xt=st.level,Dt=Xt==0?0:Xt<6?1:Xt==9?3:2;nt[0]=120,nt[1]=Dt<<6|(Dt?32-2*Dt:1)},Ge=function(nt){if((nt[0]&15)!=8||nt[0]>>>4>7||(nt[0]<<8|nt[1])%31)throw"invalid zlib data";if(nt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function vt(Mt,nt){return!nt&&typeof Mt=="function"&&(nt=Mt,Mt={}),this.ondata=nt,Mt}var Ot=function(){function Mt(nt,st){!st&&typeof nt=="function"&&(st=nt,nt={}),this.ondata=st,this.o=nt||{}}return Mt.prototype.p=function(nt,st){this.ondata(ve(nt,this.o,0,0,!st),st)},Mt.prototype.push=function(nt,st){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=st,this.p(nt,st||!1)},Mt}(),Et=function(){function Mt(nt,st){Oe([fe,function(){return[Pe,Ot]}],this,vt.call(this,nt,st),function(Xt){var Dt=new Ot(Xt.data);onmessage=Pe(Dt)},6)}return Mt}();function Tt(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";return he(Mt,nt,[fe],function(Xt){return te(Rt(Xt.data[0],Xt.data[1]))},0,st)}function Rt(Mt,nt){return nt===void 0&&(nt={}),ve(Mt,nt,0,0)}var Be=function(){function Mt(nt){this.s={},this.p=new C(0),this.ondata=nt}return Mt.prototype.e=function(nt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var st=this.p.length,Xt=new C(st+nt.length);Xt.set(this.p),Xt.set(nt,st),this.p=Xt},Mt.prototype.c=function(nt){this.d=this.s.i=nt||!1;var st=this.s.b,Xt=D(this.p,this.o,this.s);this.ondata(L(Xt,st,this.s.b),this.d),this.o=L(Xt,this.s.b-32768),this.s.b=this.o.length,this.p=L(this.p,this.s.p/8>>0),this.s.p&=7},Mt.prototype.push=function(nt,st){this.e(nt),this.c(st)},Mt}(),Z=function(){function Mt(nt){this.ondata=nt,Oe([Q,function(){return[Pe,Be]}],this,0,function(){var st=new Be;onmessage=Pe(st)},7)}return Mt}();function J(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";return he(Mt,nt,[Q],function(Xt){return te(je(Xt.data[0],we(Xt.data[1])))},1,st)}function je(Mt,nt){return D(Mt,nt)}var Re=function(){function Mt(nt,st){this.c=ce(),this.l=0,this.v=1,Ot.call(this,nt,st)}return Mt.prototype.push=function(nt,st){Ot.prototype.push.call(this,nt,st)},Mt.prototype.p=function(nt,st){this.c.p(nt),this.l+=nt.length;var Xt=ve(nt,this.o,this.v&&Ie(this.o),st&&8,!st);this.v&&($e(Xt,this.o),this.v=0),st&&(_e(Xt,Xt.length-8,this.c.d()),_e(Xt,Xt.length-4,this.l)),this.ondata(Xt,st)},Mt}(),oe=function(){function Mt(nt,st){Oe([fe,Je,function(){return[Pe,Ot,Re]}],this,vt.call(this,nt,st),function(Xt){var Dt=new Re(Xt.data);onmessage=Pe(Dt)},8)}return Mt}();function yt(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";return he(Mt,nt,[fe,Je,function(){return[zt]}],function(Xt){return te(zt(Xt.data[0],Xt.data[1]))},2,st)}function zt(Mt,nt){nt===void 0&&(nt={});var st=ce(),Xt=Mt.length;st.p(Mt);var Dt=ve(Mt,nt,Ie(nt),8),St=Dt.length;return $e(Dt,nt),_e(Dt,St-8,st.d()),_e(Dt,St-4,Xt),Dt}var lt=function(){function Mt(nt){this.v=1,Be.call(this,nt)}return Mt.prototype.push=function(nt,st){if(Be.prototype.e.call(this,nt),this.v){var Xt=gt(this.p);if(Xt>=this.p.length&&!st)return;this.p=this.p.subarray(Xt),this.v=0}if(st){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Be.prototype.c.call(this,st)},Mt}(),$t=function(){function Mt(nt){this.ondata=nt,Oe([Q,ne,function(){return[Pe,Be,lt]}],this,0,function(){var st=new lt;onmessage=Pe(st)},9)}return Mt}();function cr(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";return he(Mt,nt,[Q,ne,function(){return[cn]}],function(Xt){return te(cn(Xt.data[0]))},3,st)}function cn(Mt,nt){return D(Mt.subarray(gt(Mt),-8),nt||new C(et(Mt)))}var pr=function(){function Mt(nt,st){this.c=ie(),this.v=1,Ot.call(this,nt,st)}return Mt.prototype.push=function(nt,st){Ot.prototype.push.call(this,nt,st)},Mt.prototype.p=function(nt,st){this.c.p(nt);var Xt=ve(nt,this.o,this.v&&2,st&&4,!st);this.v&&(rt(Xt,this.o),this.v=0),st&&_e(Xt,Xt.length-4,this.c.d()),this.ondata(Xt,st)},Mt}(),gr=function(){function Mt(nt,st){Oe([fe,X,function(){return[Pe,Ot,pr]}],this,vt.call(this,nt,st),function(Xt){var Dt=new pr(Xt.data);onmessage=Pe(Dt)},10)}return Mt}();function Zt(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";return he(Mt,nt,[fe,X,function(){return[Vt]}],function(Xt){return te(Vt(Xt.data[0],Xt.data[1]))},4,st)}function Vt(Mt,nt){nt===void 0&&(nt={});var st=ie();st.p(Mt);var Xt=ve(Mt,nt,2,4);return rt(Xt,nt),_e(Xt,Xt.length-4,st.d()),Xt}var mt=function(){function Mt(nt){this.v=1,Be.call(this,nt)}return Mt.prototype.push=function(nt,st){if(Be.prototype.e.call(this,nt),this.v){if(this.p.length<2&&!st)return;this.p=this.p.subarray(2),this.v=0}if(st){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Be.prototype.c.call(this,st)},Mt}(),Yr=function(){function Mt(nt){this.ondata=nt,Oe([Q,G,function(){return[Pe,Be,mt]}],this,0,function(){var st=new mt;onmessage=Pe(st)},11)}return Mt}();function Tn(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";return he(Mt,nt,[Q,G,function(){return[Hn]}],function(Xt){return te(Hn(Xt.data[0],we(Xt.data[1])))},5,st)}function Hn(Mt,nt){return D((Ge(Mt),Mt.subarray(2,-4)),nt)}var ei=function(){function Mt(nt){this.G=lt,this.I=Be,this.Z=mt,this.ondata=nt}return Mt.prototype.push=function(nt,st){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(nt,st);else{if(this.p&&this.p.length){var Xt=new C(this.p.length+nt.length);Xt.set(this.p),Xt.set(nt,this.p.length)}else this.p=nt;if(this.p.length>2){var Dt=this,St=function(){Dt.ondata.apply(Dt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(St):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(St):new this.Z(St),this.s.push(this.p,st),this.p=null}}},Mt}(),ji=function(){function Mt(nt){this.G=$t,this.I=Z,this.Z=Yr,this.ondata=nt}return Mt.prototype.push=function(nt,st){ei.prototype.push.call(this,nt,st)},Mt}();function Ln(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";return Mt[0]==31&&Mt[1]==139&&Mt[2]==8?cr(Mt,nt,st):(Mt[0]&15)!=8||Mt[0]>>4>7||(Mt[0]<<8|Mt[1])%31?J(Mt,nt,st):Tn(Mt,nt,st)}function Vn(Mt,nt){return Mt[0]==31&&Mt[1]==139&&Mt[2]==8?cn(Mt,nt):(Mt[0]&15)!=8||Mt[0]>>4>7||(Mt[0]<<8|Mt[1])%31?je(Mt,nt):Hn(Mt,nt)}var kt=function Mt(nt,st,Xt,Dt){for(var St in nt){var jt=nt[St],At=st+St;jt instanceof C?Xt[At]=[jt,Dt]:Array.isArray(jt)?Xt[At]=[jt[0],Ee(Dt,jt[1])]:Mt(jt,At+"/",Xt,Dt)}};function wt(Mt,nt){var st=Mt.length;if(!nt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Mt);for(var Xt=new C(Mt.length+(Mt.length>>>1)),Dt=0,St=function(sr){Xt[Dt++]=sr},jt=0;jt<st;++jt){if(Dt+5>Xt.length){var At=new C(Dt+8+(st-jt<<1));At.set(Xt),Xt=At}var Ft=Mt.charCodeAt(jt);Ft<128||nt?St(Ft):Ft<2048?(St(192|Ft>>>6),St(128|Ft&63)):Ft>55295&&Ft<57344?(Ft=65536+(Ft&1023<<10)|Mt.charCodeAt(++jt)&1023,St(240|Ft>>>18),St(128|Ft>>>12&63),St(128|Ft>>>6&63),St(128|Ft&63)):(St(224|Ft>>>12),St(128|Ft>>>6&63),St(128|Ft&63))}return L(Xt,0,Dt)}function Te(Mt,nt){var st="";if(!nt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Mt);for(var Xt=0;Xt<Mt.length;){var Dt=Mt[Xt++];Dt<128||nt?st+=String.fromCharCode(Dt):Dt<224?st+=String.fromCharCode((Dt&31)<<6|Mt[Xt++]&63):Dt<240?st+=String.fromCharCode((Dt&15)<<12|(Mt[Xt++]&63)<<6|Mt[Xt++]&63):(Dt=((Dt&15)<<18|(Mt[Xt++]&63)<<12|(Mt[Xt++]&63)<<6|Mt[Xt++]&63)-65536,st+=String.fromCharCode(55296|Dt>>10,56320|Dt&1023))}return st}var xe=function(nt,st){return st+30+le(nt,st+26)+le(nt,st+28)},Ce=function(nt,st,Xt){var Dt=le(nt,st+28),St=Te(nt.subarray(st+46,st+46+Dt),!(le(nt,st+8)&2048)),jt=st+46+Dt,At=Xt?Ye(nt,jt):[me(nt,st+20),me(nt,st+24),me(nt,st+42)],Ft=At[0],wr=At[1],sr=At[2];return[le(nt,st+10),Ft,wr,St,jt+le(nt,st+30)+le(nt,st+32),sr]},Ye=function(nt,st){for(;le(nt,st)!=1;st+=4+le(nt,st+2));return[me(nt,st+12),me(nt,st+4),me(nt,st+20)]},it=function(nt,st,Xt,Dt,St,jt,At,Ft,wr,sr){var mr=jt.length,$r=Dt.length;_e(nt,st,wr!=null?33639248:67324752),st+=4,wr!=null&&(nt[st]=20,st+=2),nt[st]=20,st+=2,nt[st++]=sr==8&&(Ft.level==1?6:Ft.level<6?4:Ft.level==9?2:0),nt[st++]=At&&8,nt[st]=sr,st+=2;var rn=new Date(Ft.mtime||Date.now()),jn=rn.getFullYear()-1980;if(jn<0||jn>119)throw"date not in range 1980-2099";_e(nt,st,(jn<<24)*2|rn.getMonth()+1<<21|rn.getDate()<<16|rn.getHours()<<11|rn.getMinutes()<<5|rn.getSeconds()>>>1),st+=4,_e(nt,st,Xt),_e(nt,st+4,$r),_e(nt,st+8,St),_e(nt,st+12,mr),st+=16,wr!=null&&(_e(nt,st+=10,wr),st+=4),nt.set(jt,st),st+=mr,wr==null&&nt.set(Dt,st)},dt=function(nt,st,Xt,Dt,St){_e(nt,st,101010256),_e(nt,st+8,Xt),_e(nt,st+10,Xt),_e(nt,st+12,Dt),_e(nt,st+16,St)};function _t(Mt,nt,st){if(st||(st=nt,nt={}),typeof st!="function")throw"no callback";var Xt={};kt(Mt,"",Xt,nt);var Dt=Object.keys(Xt),St=Dt.length,jt=0,At=0,Ft=St,wr=new Array(St),sr=[],mr=function(){for(var ui=0;ui<sr.length;++ui)sr[ui]()},$r=function(){var ui=new C(At+22),yi=jt,Ii=At-jt;At=0;for(var Gi=0;Gi<Ft;++Gi){var Qe=wr[Gi];try{it(ui,At,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),it(ui,jt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,At,Qe.t),jt+=46+Qe.n.length,At+=30+Qe.n.length+Qe.d.length}catch(be){return st(be,null)}}dt(ui,jt,wr.length,Ii,yi),st(null,ui)};St||$r();for(var rn=function(ui){var yi=Dt[ui],Ii=Xt[yi],Gi=Ii[0],Qe=Ii[1],be=ce(),Ne=Gi.length;be.p(Gi);var Ue=wt(yi),Xe=Ue.length,ze=Qe.level==0?0:8,Ze=function(ut,Gt){if(ut)mr(),st(ut,null);else{var Mr=Gt.length;wr[ui]={t:ze,d:Gt,m:Ne,c:be.d(),u:yi.length!=Mr,n:Ue,p:Qe},jt+=30+Xe+Mr,At+=76+2*Xe+Mr,--St||$r()}};if(Ue.length>65535&&Ze("filename too long",null),!ze)Ze(null,Gi);else if(Ne<16e4)try{Ze(null,Rt(Gi,Qe))}catch(bt){Ze(bt,null)}else sr.push(Tt(Gi,Qe,Ze))},jn=0;jn<Ft;++jn)rn(jn);return mr}function vr(Mt,nt){nt===void 0&&(nt={});var st={},Xt=[];kt(Mt,"",st,nt);var Dt=0,St=0;for(var jt in st){var At=st[jt],Ft=At[0],wr=At[1],sr=wr.level==0?0:8,mr=wt(jt),$r=mr.length;if(mr.length>65535)throw"filename too long";var rn=sr?Rt(Ft,wr):Ft,jn=rn.length,Un=ce();Un.p(Ft),Xt.push({t:sr,d:rn,m:Ft.length,c:Un.d(),u:jt.length!=$r,n:mr,o:Dt,p:wr}),Dt+=30+$r+jn,St+=76+2*$r+jn}for(var ui=new C(St+22),yi=Dt,Ii=St-Dt,Gi=0;Gi<Xt.length;++Gi){var Qe=Xt[Gi];it(ui,Qe.o,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),it(ui,Dt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,Qe.o,Qe.t),Dt+=46+Qe.n.length}return dt(ui,Dt,Xt.length,Ii,yi),ui}function kr(Mt,nt){if(typeof nt!="function")throw"no callback";for(var st=[],Xt=function(){for(var rn=0;rn<st.length;++rn)st[rn]()},Dt={},St=Mt.length-22;me(Mt,St)!=101010256;--St)if(!St||Mt.length-St>65558){nt("invalid zip file",null);return}var jt=le(Mt,St+8);jt||nt(null,{});var At=jt,Ft=me(Mt,St+16),wr=Ft==4294967295;if(wr){if(St=me(Mt,St-12),me(Mt,St)!=101075792)throw"invalid zip file";At=jt=me(Mt,St+32),Ft=me(Mt,St+48)}for(var sr=function(rn){var jn=Ce(Mt,Ft,wr),Un=jn[0],ui=jn[1],yi=jn[2],Ii=jn[3],Gi=jn[4],Qe=jn[5],be=xe(Mt,Qe);Ft=Gi;var Ne=function(ze,Ze){ze?(Xt(),nt(ze,null)):(Dt[Ii]=Ze,--jt||nt(null,Dt))};if(!Un)Ne(null,L(Mt,be,be+ui));else if(Un==8){var Ue=Mt.subarray(be,be+ui);if(ui<32e4)try{Ne(null,je(Ue,new C(yi)))}catch(Xe){Ne(Xe,null)}else st.push(J(Ue,{size:yi},Ne))}else Ne("unknown compression type "+Un,null)},mr=0;mr<At;++mr)sr(mr);return Xt}function mn(Mt){for(var nt={},st=Mt.length-22;me(Mt,st)!=101010256;--st)if(!st||Mt.length-st>65558)throw"invalid zip file";var Xt=le(Mt,st+8);if(!Xt)return{};var Dt=me(Mt,st+16),St=Dt==4294967295;if(St){if(st=me(Mt,st-12),me(Mt,st)!=101075792)throw"invalid zip file";Xt=me(Mt,st+32),Dt=me(Mt,st+48)}for(var jt=0;jt<Xt;++jt){var At=Ce(Mt,Dt,St),Ft=At[0],wr=At[1],sr=At[2],mr=At[3],$r=At[4],rn=At[5],jn=xe(Mt,rn);if(Dt=$r,!Ft)nt[mr]=L(Mt,jn,jn+wr);else if(Ft==8)nt[mr]=je(Mt.subarray(jn,jn+wr),new C(sr));else throw"unknown compression type "+Ft}return nt}},cv67:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(E){var C=O,v=C.lib,w=v.WordArray,m=v.Hasher,h=C.algo,c=[];(function(){for(var s=0;s<64;s++)c[s]=E.abs(E.sin(s+1))*4294967296|0})();var i=h.MD5=m.extend({_doReset:function(){this._hash=new w.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,a){for(var l=0;l<16;l++){var u=a+l,f=t[u];t[u]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}var p=this._hash.words,g=t[a+0],A=t[a+1],y=t[a+2],x=t[a+3],T=t[a+4],S=t[a+5],b=t[a+6],_=t[a+7],I=t[a+8],L=t[a+9],D=t[a+10],N=t[a+11],M=t[a+12],B=t[a+13],R=t[a+14],H=t[a+15],F=p[0],K=p[1],U=p[2],V=p[3];F=r(F,K,U,V,g,7,c[0]),V=r(V,F,K,U,A,12,c[1]),U=r(U,V,F,K,y,17,c[2]),K=r(K,U,V,F,x,22,c[3]),F=r(F,K,U,V,T,7,c[4]),V=r(V,F,K,U,S,12,c[5]),U=r(U,V,F,K,b,17,c[6]),K=r(K,U,V,F,_,22,c[7]),F=r(F,K,U,V,I,7,c[8]),V=r(V,F,K,U,L,12,c[9]),U=r(U,V,F,K,D,17,c[10]),K=r(K,U,V,F,N,22,c[11]),F=r(F,K,U,V,M,7,c[12]),V=r(V,F,K,U,B,12,c[13]),U=r(U,V,F,K,R,17,c[14]),K=r(K,U,V,F,H,22,c[15]),F=o(F,K,U,V,A,5,c[16]),V=o(V,F,K,U,b,9,c[17]),U=o(U,V,F,K,N,14,c[18]),K=o(K,U,V,F,g,20,c[19]),F=o(F,K,U,V,S,5,c[20]),V=o(V,F,K,U,D,9,c[21]),U=o(U,V,F,K,H,14,c[22]),K=o(K,U,V,F,T,20,c[23]),F=o(F,K,U,V,L,5,c[24]),V=o(V,F,K,U,R,9,c[25]),U=o(U,V,F,K,x,14,c[26]),K=o(K,U,V,F,I,20,c[27]),F=o(F,K,U,V,B,5,c[28]),V=o(V,F,K,U,y,9,c[29]),U=o(U,V,F,K,_,14,c[30]),K=o(K,U,V,F,M,20,c[31]),F=n(F,K,U,V,S,4,c[32]),V=n(V,F,K,U,I,11,c[33]),U=n(U,V,F,K,N,16,c[34]),K=n(K,U,V,F,R,23,c[35]),F=n(F,K,U,V,A,4,c[36]),V=n(V,F,K,U,T,11,c[37]),U=n(U,V,F,K,_,16,c[38]),K=n(K,U,V,F,D,23,c[39]),F=n(F,K,U,V,B,4,c[40]),V=n(V,F,K,U,g,11,c[41]),U=n(U,V,F,K,x,16,c[42]),K=n(K,U,V,F,b,23,c[43]),F=n(F,K,U,V,L,4,c[44]),V=n(V,F,K,U,M,11,c[45]),U=n(U,V,F,K,H,16,c[46]),K=n(K,U,V,F,y,23,c[47]),F=e(F,K,U,V,g,6,c[48]),V=e(V,F,K,U,_,10,c[49]),U=e(U,V,F,K,R,15,c[50]),K=e(K,U,V,F,S,21,c[51]),F=e(F,K,U,V,M,6,c[52]),V=e(V,F,K,U,x,10,c[53]),U=e(U,V,F,K,D,15,c[54]),K=e(K,U,V,F,A,21,c[55]),F=e(F,K,U,V,I,6,c[56]),V=e(V,F,K,U,H,10,c[57]),U=e(U,V,F,K,b,15,c[58]),K=e(K,U,V,F,B,21,c[59]),F=e(F,K,U,V,T,6,c[60]),V=e(V,F,K,U,N,10,c[61]),U=e(U,V,F,K,y,15,c[62]),K=e(K,U,V,F,L,21,c[63]),p[0]=p[0]+F|0,p[1]=p[1]+K|0,p[2]=p[2]+U|0,p[3]=p[3]+V|0},_doFinalize:function(){var t=this._data,a=t.words,l=this._nDataBytes*8,u=t.sigBytes*8;a[u>>>5]|=128<<24-u%32;var f=E.floor(l/4294967296),p=l;a[(u+64>>>9<<4)+15]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,a[(u+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,t.sigBytes=(a.length+1)*4,this._process();for(var g=this._hash,A=g.words,y=0;y<4;y++){var x=A[y];A[y]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return g},clone:function(){var t=m.clone.call(this);return t._hash=this._hash.clone(),t}});function r(s,t,a,l,u,f,p){var g=s+(t&a|~t&l)+u+p;return(g<<f|g>>>32-f)+t}function o(s,t,a,l,u,f,p){var g=s+(t&l|a&~l)+u+p;return(g<<f|g>>>32-f)+t}function n(s,t,a,l,u,f,p){var g=s+(t^a^l)+u+p;return(g<<f|g>>>32-f)+t}function e(s,t,a,l,u,f,p){var g=s+(a^(t|~l))+u+p;return(g<<f|g>>>32-f)+t}C.MD5=m._createHelper(i),C.HmacMD5=m._createHmacHelper(i)}(Math),O.MD5})},czTT:function(j,P,d){},d4KN:function(j,P,d){var O=d("ProS"),E=d("bYtY");function C(v,w){E.each(w,function(m){m.update="updateView",O.registerAction(m,function(h,c){var i={};return c.eachComponent({mainType:"series",subType:v,query:h},function(r){r[m.method]&&r[m.method](h.name,h.dataIndex);var o=r.getData();o.each(function(n){var e=o.getName(n);i[e]=r.isSelected(e)||!1})}),{name:h.name,selected:i,seriesId:h.seriesId}})})}j.exports=C},dBmv:function(j,P,d){var O=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("MHoB"),d("PNag"),d("1u/T"),O.registerPreprocessor(E)},"dF/Y":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="DownloadOutlined";var h=P.a=E.forwardRef(m)},dMvE:function(j,P){var d={linear:function(C){return C},quadraticIn:function(C){return C*C},quadraticOut:function(C){return C*(2-C)},quadraticInOut:function(C){return(C*=2)<1?.5*C*C:-.5*(--C*(C-2)-1)},cubicIn:function(C){return C*C*C},cubicOut:function(C){return--C*C*C+1},cubicInOut:function(C){return(C*=2)<1?.5*C*C*C:.5*((C-=2)*C*C+2)},quarticIn:function(C){return C*C*C*C},quarticOut:function(C){return 1- --C*C*C*C},quarticInOut:function(C){return(C*=2)<1?.5*C*C*C*C:-.5*((C-=2)*C*C*C-2)},quinticIn:function(C){return C*C*C*C*C},quinticOut:function(C){return--C*C*C*C*C+1},quinticInOut:function(C){return(C*=2)<1?.5*C*C*C*C*C:.5*((C-=2)*C*C*C*C+2)},sinusoidalIn:function(C){return 1-Math.cos(C*Math.PI/2)},sinusoidalOut:function(C){return Math.sin(C*Math.PI/2)},sinusoidalInOut:function(C){return .5*(1-Math.cos(Math.PI*C))},exponentialIn:function(C){return C===0?0:Math.pow(1024,C-1)},exponentialOut:function(C){return C===1?1:1-Math.pow(2,-10*C)},exponentialInOut:function(C){return C===0?0:C===1?1:(C*=2)<1?.5*Math.pow(1024,C-1):.5*(-Math.pow(2,-10*(C-1))+2)},circularIn:function(C){return 1-Math.sqrt(1-C*C)},circularOut:function(C){return Math.sqrt(1- --C*C)},circularInOut:function(C){return(C*=2)<1?-.5*(Math.sqrt(1-C*C)-1):.5*(Math.sqrt(1-(C-=2)*C)+1)},elasticIn:function(C){var v,w=.1,m=.4;return C===0?0:C===1?1:(!w||w<1?(w=1,v=m/4):v=m*Math.asin(1/w)/(2*Math.PI),-(w*Math.pow(2,10*(C-=1))*Math.sin((C-v)*(2*Math.PI)/m)))},elasticOut:function(C){var v,w=.1,m=.4;return C===0?0:C===1?1:(!w||w<1?(w=1,v=m/4):v=m*Math.asin(1/w)/(2*Math.PI),w*Math.pow(2,-10*C)*Math.sin((C-v)*(2*Math.PI)/m)+1)},elasticInOut:function(C){var v,w=.1,m=.4;return C===0?0:C===1?1:(!w||w<1?(w=1,v=m/4):v=m*Math.asin(1/w)/(2*Math.PI),(C*=2)<1?-.5*(w*Math.pow(2,10*(C-=1))*Math.sin((C-v)*(2*Math.PI)/m)):w*Math.pow(2,-10*(C-=1))*Math.sin((C-v)*(2*Math.PI)/m)*.5+1)},backIn:function(C){var v=1.70158;return C*C*((v+1)*C-v)},backOut:function(C){var v=1.70158;return--C*C*((v+1)*C+v)+1},backInOut:function(C){var v=1.70158*1.525;return(C*=2)<1?.5*(C*C*((v+1)*C-v)):.5*((C-=2)*C*((v+1)*C+v)+2)},bounceIn:function(C){return 1-d.bounceOut(1-C)},bounceOut:function(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375},bounceInOut:function(C){return C<.5?d.bounceIn(C*2)*.5:d.bounceOut(C*2-1)*.5+.5}},O=d;j.exports=O},diRs:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("q1tI"),v=d.n(C),w=d("3S7+"),m=d("H84U"),h=d("bogI"),c=function(r,o){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&o.indexOf(e)<0&&(n[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,e=Object.getOwnPropertySymbols(r);s<e.length;s++)o.indexOf(e[s])<0&&Object.prototype.propertyIsEnumerable.call(r,e[s])&&(n[e[s]]=r[e[s]]);return n},i=C.forwardRef(function(r,o){var n=r.prefixCls,e=r.title,s=r.content,t=c(r,["prefixCls","title","content"]),a=C.useContext(m.b),l=a.getPrefixCls,u=function(g){return C.createElement(C.Fragment,null,e&&C.createElement("div",{className:"".concat(g,"-title")},Object(h.a)(e)),C.createElement("div",{className:"".concat(g,"-inner-content")},Object(h.a)(s)))},f=l("popover",n);return C.createElement(w.a,E()({},t,{prefixCls:f,ref:o,overlay:u(f)}))});i.displayName="Popover",i.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},P.a=i},digP:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:function(C,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:v}},{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:C}}]}},name:"file",theme:"twotone"};P.default=O},dmGj:function(j,P,d){var O=d("DEFe"),E=d("ProS"),C=E.extendComponentView({type:"geo",init:function(v,w){var m=new O(w,!0);this._mapDraw=m,this.group.add(m.group)},render:function(v,w,m,h){if(h&&h.type==="geoToggleSelect"&&h.from===this.uid)return;var c=this._mapDraw;v.get("show")?c.draw(v,w,m,this,h):this._mapDraw.group.removeAll(),this.group.silent=v.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});j.exports=C},dnwI:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("YH21"),v=d("Kagy"),w=d("IUWy"),m=v.toolbox.dataView,h=new Array(60).join("-"),c=" ";function i(A){var y={},x=[],T=[];return A.eachRawSeries(function(S){var b=S.coordinateSystem;if(b&&(b.type==="cartesian2d"||b.type==="polar")){var _=b.getBaseAxis();if(_.type==="category"){var I=_.dim+"_"+_.index;y[I]||(y[I]={categoryAxis:_,valueAxis:b.getOtherAxis(_),series:[]},T.push({axisDim:_.dim,axisIndex:_.index})),y[I].series.push(S)}else x.push(S)}else x.push(S)}),{seriesGroupByCategoryAxis:y,other:x,meta:T}}function r(A){var y=[];return E.each(A,function(x,T){var S=x.categoryAxis,b=x.valueAxis,_=b.dim,I=[" "].concat(E.map(x.series,function(R){return R.name})),L=[S.model.getCategories()];E.each(x.series,function(R){L.push(R.getRawData().mapArray(_,function(H){return H}))});for(var D=[I.join(c)],N=0;N<L[0].length;N++){for(var M=[],B=0;B<L.length;B++)M.push(L[B][N]);D.push(M.join(c))}y.push(D.join(`
`))}),y.join(`
`+h+`
`)}function o(A){return E.map(A,function(y){var x=y.getRawData(),T=[y.name],S=[];return x.each(x.dimensions,function(){for(var b=arguments.length,_=arguments[b-1],I=x.getName(_),L=0;L<b-1;L++)S[L]=arguments[L];T.push((I?I+c:"")+S.join(c))}),T.join(`
`)}).join(`
`+h+`
`)}function n(A){var y=i(A);return{value:E.filter([r(y.seriesGroupByCategoryAxis),o(y.other)],function(x){return x.replace(/[\n\t\s]/g,"")}).join(`
`+h+`
`),meta:y.meta}}function e(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 t=new RegExp("["+c+"]+","g");function a(A){for(var y=A.split(/\n+/g),x=e(y.shift()).split(t),T=[],S=E.map(x,function(L){return{name:L,data:[]}}),b=0;b<y.length;b++){var _=e(y[b]).split(t);T.push(_.shift());for(var I=0;I<_.length;I++)S[I]&&(S[I].data[b]=_[I])}return{series:S,categories:T}}function l(A){for(var y=A.split(/\n+/g),x=e(y.shift()),T=[],S=0;S<y.length;S++){var b=e(y[S]).split(t),_="",I,L=!1;isNaN(b[0])?(L=!0,_=b[0],b=b.slice(1),T[S]={name:_,value:[]},I=T[S].value):I=T[S]=[];for(var D=0;D<b.length;D++)I.push(+b[D]);I.length===1&&(L?T[S].value=I[0]:T[S]=I[0])}return{name:x,data:T}}function u(A,y){var x=A.split(new RegExp(`
*`+h+`
*`,"g")),T={series:[]};return E.each(x,function(S,b){if(s(S)){var _=a(S),I=y[b],L=I.axisDim+"Axis";I&&(T[L]=T[L]||[],T[L][I.axisIndex]={data:_.categories},T.series=T.series.concat(_.series))}else{var _=l(S);T.series.push(_)}}),T}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(),T=this.model;this._dom&&x.removeChild(this._dom);var S=document.createElement("div");S.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",S.style.backgroundColor=T.get("backgroundColor")||"#fff";var b=document.createElement("h4"),_=T.get("lang")||[];b.innerHTML=_[0]||T.get("title"),b.style.cssText="margin: 10px 20px;",b.style.color=T.get("textColor");var I=document.createElement("div"),L=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var D=T.get("optionToContent"),N=T.get("contentToOption"),M=n(A);if(typeof D=="function"){var B=D(y.getOption());typeof B=="string"?I.innerHTML=B:E.isDom(B)&&I.appendChild(B)}else I.appendChild(L),L.readOnly=T.get("readOnly"),L.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",L.style.color=T.get("textColor"),L.style.borderColor=T.get("textareaBorderColor"),L.style.backgroundColor=T.get("textareaColor"),L.value=M.value;var R=M.meta,H=document.createElement("div");H.style.cssText="position:absolute;bottom:0;left:0;right:0;";var F="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");F+=";background-color:"+T.get("buttonColor"),F+=";color:"+T.get("buttonTextColor");var V=this;function z(){x.removeChild(S),V._dom=null}C.addEventListener(K,"click",z),C.addEventListener(U,"click",function(){var Y;try{typeof N=="function"?Y=N(I,y.getOption()):Y=u(L.value,R)}catch(q){throw z(),new Error("Data view format error "+q)}Y&&y.dispatchAction({type:"changeDataView",newOption:Y}),z()}),K.innerHTML=_[1],U.innerHTML=_[2],U.style.cssText=F,K.style.cssText=F,!T.get("readOnly")&&H.appendChild(U),H.appendChild(K),S.appendChild(b),S.appendChild(I),S.appendChild(H),I.style.height=x.clientHeight-80+"px",x.appendChild(S),this._dom=S},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,T){var S=y&&y[T];return E.isObject(S)&&!E.isArray(S)?(E.isObject(x)&&!E.isArray(x)&&(x=x.value),E.defaults({value:x},S)):x})}w.register("dataView",f),O.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(A,y){var x=[];E.each(A.newOption.series,function(T){var S=y.getSeriesByName(T.name)[0];if(!S)x.push(E.extend({type:"scatter"},T));else{var b=S.get("data");x.push({name:T.name,data:p(T.data,b)})}}),y.mergeOption(E.defaults({series:x},A.newOption))});var g=f;j.exports=g},dqUG:function(j,P,d){var O=d("Gev7"),E=d("bYtY"),C=d("6GrX"),v=d("pzxd"),w=d("gut8"),m=w.ContextCachedBy,h=function(r){O.call(this,r)};h.prototype={constructor:h,type:"text",brush:function(r,o){var n=this.style;this.__dirty&&v.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!v.needDrawText(e,n)){r.__attrCachedBy=m.NONE;return}this.setTransform(r),v.renderText(this,r,e,n,null,o),this.restoreTransform(r)},getBoundingRect:function(){var r=this.style;if(this.__dirty&&v.normalizeTextStyle(r,!0),!this._rect){var o=r.text;o!=null?o+="":o="";var n=C.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,v.getStroke(r.textStroke,r.textStrokeWidth)){var e=r.textStrokeWidth;n.x-=e/2,n.y-=e/2,n.width+=e,n.height+=e}this._rect=n}return this._rect}},E.inherits(h,O);var c=h;j.exports=c},dt0z:function(j,P,d){var O=d("zoYe");function E(C){return C==null?"":O(C)}j.exports=E},dtIV:function(j,P,d){"use strict";d.r(P),function(O){d.d(P,"AcroForm",function(){return Re}),d.d(P,"AcroFormAppearance",function(){return J}),d.d(P,"AcroFormButton",function(){return vt}),d.d(P,"AcroFormCheckBox",function(){return Rt}),d.d(P,"AcroFormChoiceField",function(){return et}),d.d(P,"AcroFormComboBox",function(){return rt}),d.d(P,"AcroFormEditBox",function(){return Ge}),d.d(P,"AcroFormListBox",function(){return Ie}),d.d(P,"AcroFormPasswordField",function(){return Z}),d.d(P,"AcroFormPushButton",function(){return Ot}),d.d(P,"AcroFormRadioButton",function(){return Et}),d.d(P,"AcroFormTextField",function(){return Be}),d.d(P,"GState",function(){return B}),d.d(P,"ShadingPattern",function(){return H}),d.d(P,"TilingPattern",function(){return F}),d.d(P,"jsPDF",function(){return K});var E=d("cDf5"),C=d.n(E),v=d("crp1");/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.4.0 Built on 2021-09-14T10:30:30.230Z
* 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 w=function(){return typeof window!="undefined"?window:typeof O!="undefined"?O:typeof self!="undefined"?self:this}();function m(){w.console&&typeof w.console.log=="function"&&w.console.log.apply(w.console,arguments)}var h={log:m,warn:function(be){w.console&&(typeof w.console.warn=="function"?w.console.warn.apply(w.console,arguments):m.call(null,arguments))},error:function(be){w.console&&(typeof w.console.error=="function"?w.console.error.apply(w.console,arguments):m(be))}};function c(Qe,be,Ne){var Ue=new XMLHttpRequest;Ue.open("GET",Qe),Ue.responseType="blob",Ue.onload=function(){e(Ue.response,be,Ne)},Ue.onerror=function(){h.error("could not download file")},Ue.send()}function i(Qe){var be=new XMLHttpRequest;be.open("HEAD",Qe,!1);try{be.send()}catch(Ne){}return be.status>=200&&be.status<=299}function r(Qe){try{Qe.dispatchEvent(new MouseEvent("click"))}catch(Ne){var be=document.createEvent("MouseEvents");be.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Qe.dispatchEvent(be)}}var o,n,e=w.saveAs||((typeof window=="undefined"?"undefined":C()(window))!=="object"||window!==w?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Qe,be,Ne){var Ue=w.URL||w.webkitURL,Xe=document.createElement("a");be=be||Qe.name||"download",Xe.download=be,Xe.rel="noopener",typeof Qe=="string"?(Xe.href=Qe,Xe.origin!==location.origin?i(Xe.href)?c(Qe,be,Ne):r(Xe,Xe.target="_blank"):r(Xe)):(Xe.href=Ue.createObjectURL(Qe),setTimeout(function(){Ue.revokeObjectURL(Xe.href)},4e4),setTimeout(function(){r(Xe)},0))}:"msSaveOrOpenBlob"in navigator?function(Qe,be,Ne){if(be=be||Qe.name||"download",typeof Qe=="string")if(i(Qe))c(Qe,be,Ne);else{var Ue=document.createElement("a");Ue.href=Qe,Ue.target="_blank",setTimeout(function(){r(Ue)})}else navigator.msSaveOrOpenBlob(function(Xe,ze){return ze===void 0?ze={autoBom:!1}:C()(ze)!=="object"&&(h.warn("Deprecated: Expected third argument to be a object"),ze={autoBom:!ze}),ze.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Xe.type)?new Blob([String.fromCharCode(65279),Xe],{type:Xe.type}):Xe}(Qe,Ne),be)}:function(Qe,be,Ne,Ue){if((Ue=Ue||open("","_blank"))&&(Ue.document.title=Ue.document.body.innerText="downloading..."),typeof Qe=="string")return c(Qe,be,Ne);var Xe=Qe.type==="application/octet-stream",ze=/constructor/i.test(w.HTMLElement)||w.safari,Ze=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ze||Xe&&ze)&&(typeof FileReader=="undefined"?"undefined":C()(FileReader))==="object"){var bt=new FileReader;bt.onloadend=function(){var Mr=bt.result;Mr=Ze?Mr:Mr.replace(/^data:[^;]*;/,"data:attachment/file;"),Ue?Ue.location.href=Mr:location=Mr,Ue=null},bt.readAsDataURL(Qe)}else{var ut=w.URL||w.webkitURL,Gt=ut.createObjectURL(Qe);Ue?Ue.location=Gt:location.href=Gt,Ue=null,setTimeout(function(){ut.revokeObjectURL(Gt)},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(Qe){var be;Qe=Qe||"",this.ok=!1,Qe.charAt(0)=="#"&&(Qe=Qe.substr(1,6)),Qe={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"}[Qe=(Qe=Qe.replace(/ /g,"")).toLowerCase()]||Qe;for(var Ne=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ut){return[parseInt(ut[1]),parseInt(ut[2]),parseInt(ut[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ut){return[parseInt(ut[1],16),parseInt(ut[2],16),parseInt(ut[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ut){return[parseInt(ut[1]+ut[1],16),parseInt(ut[2]+ut[2],16),parseInt(ut[3]+ut[3],16)]}}],Ue=0;Ue<Ne.length;Ue++){var Xe=Ne[Ue].re,ze=Ne[Ue].process,Ze=Xe.exec(Qe);Ze&&(be=ze(Ze),this.r=be[0],this.g=be[1],this.b=be[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 bt=this.r.toString(16),ut=this.g.toString(16),Gt=this.b.toString(16);return bt.length==1&&(bt="0"+bt),ut.length==1&&(ut="0"+ut),Gt.length==1&&(Gt="0"+Gt),"#"+bt+ut+Gt}}/**
* @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 t(Qe,be){var Ne=Qe[0],Ue=Qe[1],Xe=Qe[2],ze=Qe[3];Ne=l(Ne,Ue,Xe,ze,be[0],7,-680876936),ze=l(ze,Ne,Ue,Xe,be[1],12,-389564586),Xe=l(Xe,ze,Ne,Ue,be[2],17,606105819),Ue=l(Ue,Xe,ze,Ne,be[3],22,-1044525330),Ne=l(Ne,Ue,Xe,ze,be[4],7,-176418897),ze=l(ze,Ne,Ue,Xe,be[5],12,1200080426),Xe=l(Xe,ze,Ne,Ue,be[6],17,-1473231341),Ue=l(Ue,Xe,ze,Ne,be[7],22,-45705983),Ne=l(Ne,Ue,Xe,ze,be[8],7,1770035416),ze=l(ze,Ne,Ue,Xe,be[9],12,-1958414417),Xe=l(Xe,ze,Ne,Ue,be[10],17,-42063),Ue=l(Ue,Xe,ze,Ne,be[11],22,-1990404162),Ne=l(Ne,Ue,Xe,ze,be[12],7,1804603682),ze=l(ze,Ne,Ue,Xe,be[13],12,-40341101),Xe=l(Xe,ze,Ne,Ue,be[14],17,-1502002290),Ne=u(Ne,Ue=l(Ue,Xe,ze,Ne,be[15],22,1236535329),Xe,ze,be[1],5,-165796510),ze=u(ze,Ne,Ue,Xe,be[6],9,-1069501632),Xe=u(Xe,ze,Ne,Ue,be[11],14,643717713),Ue=u(Ue,Xe,ze,Ne,be[0],20,-373897302),Ne=u(Ne,Ue,Xe,ze,be[5],5,-701558691),ze=u(ze,Ne,Ue,Xe,be[10],9,38016083),Xe=u(Xe,ze,Ne,Ue,be[15],14,-660478335),Ue=u(Ue,Xe,ze,Ne,be[4],20,-405537848),Ne=u(Ne,Ue,Xe,ze,be[9],5,568446438),ze=u(ze,Ne,Ue,Xe,be[14],9,-1019803690),Xe=u(Xe,ze,Ne,Ue,be[3],14,-187363961),Ue=u(Ue,Xe,ze,Ne,be[8],20,1163531501),Ne=u(Ne,Ue,Xe,ze,be[13],5,-1444681467),ze=u(ze,Ne,Ue,Xe,be[2],9,-51403784),Xe=u(Xe,ze,Ne,Ue,be[7],14,1735328473),Ne=f(Ne,Ue=u(Ue,Xe,ze,Ne,be[12],20,-1926607734),Xe,ze,be[5],4,-378558),ze=f(ze,Ne,Ue,Xe,be[8],11,-2022574463),Xe=f(Xe,ze,Ne,Ue,be[11],16,1839030562),Ue=f(Ue,Xe,ze,Ne,be[14],23,-35309556),Ne=f(Ne,Ue,Xe,ze,be[1],4,-1530992060),ze=f(ze,Ne,Ue,Xe,be[4],11,1272893353),Xe=f(Xe,ze,Ne,Ue,be[7],16,-155497632),Ue=f(Ue,Xe,ze,Ne,be[10],23,-1094730640),Ne=f(Ne,Ue,Xe,ze,be[13],4,681279174),ze=f(ze,Ne,Ue,Xe,be[0],11,-358537222),Xe=f(Xe,ze,Ne,Ue,be[3],16,-722521979),Ue=f(Ue,Xe,ze,Ne,be[6],23,76029189),Ne=f(Ne,Ue,Xe,ze,be[9],4,-640364487),ze=f(ze,Ne,Ue,Xe,be[12],11,-421815835),Xe=f(Xe,ze,Ne,Ue,be[15],16,530742520),Ne=p(Ne,Ue=f(Ue,Xe,ze,Ne,be[2],23,-995338651),Xe,ze,be[0],6,-198630844),ze=p(ze,Ne,Ue,Xe,be[7],10,1126891415),Xe=p(Xe,ze,Ne,Ue,be[14],15,-1416354905),Ue=p(Ue,Xe,ze,Ne,be[5],21,-57434055),Ne=p(Ne,Ue,Xe,ze,be[12],6,1700485571),ze=p(ze,Ne,Ue,Xe,be[3],10,-1894986606),Xe=p(Xe,ze,Ne,Ue,be[10],15,-1051523),Ue=p(Ue,Xe,ze,Ne,be[1],21,-2054922799),Ne=p(Ne,Ue,Xe,ze,be[8],6,1873313359),ze=p(ze,Ne,Ue,Xe,be[15],10,-30611744),Xe=p(Xe,ze,Ne,Ue,be[6],15,-1560198380),Ue=p(Ue,Xe,ze,Ne,be[13],21,1309151649),Ne=p(Ne,Ue,Xe,ze,be[4],6,-145523070),ze=p(ze,Ne,Ue,Xe,be[11],10,-1120210379),Xe=p(Xe,ze,Ne,Ue,be[2],15,718787259),Ue=p(Ue,Xe,ze,Ne,be[9],21,-343485551),Qe[0]=_(Ne,Qe[0]),Qe[1]=_(Ue,Qe[1]),Qe[2]=_(Xe,Qe[2]),Qe[3]=_(ze,Qe[3])}function a(Qe,be,Ne,Ue,Xe,ze){return be=_(_(be,Qe),_(Ue,ze)),_(be<<Xe|be>>>32-Xe,Ne)}function l(Qe,be,Ne,Ue,Xe,ze,Ze){return a(be&Ne|~be&Ue,Qe,be,Xe,ze,Ze)}function u(Qe,be,Ne,Ue,Xe,ze,Ze){return a(be&Ue|Ne&~Ue,Qe,be,Xe,ze,Ze)}function f(Qe,be,Ne,Ue,Xe,ze,Ze){return a(be^Ne^Ue,Qe,be,Xe,ze,Ze)}function p(Qe,be,Ne,Ue,Xe,ze,Ze){return a(Ne^(be|~Ue),Qe,be,Xe,ze,Ze)}function g(Qe){var be,Ne=Qe.length,Ue=[1732584193,-271733879,-1732584194,271733878];for(be=64;be<=Qe.length;be+=64)t(Ue,A(Qe.substring(be-64,be)));Qe=Qe.substring(be-64);var Xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(be=0;be<Qe.length;be++)Xe[be>>2]|=Qe.charCodeAt(be)<<(be%4<<3);if(Xe[be>>2]|=128<<(be%4<<3),be>55)for(t(Ue,Xe),be=0;be<16;be++)Xe[be]=0;return Xe[14]=8*Ne,t(Ue,Xe),Ue}function A(Qe){var be,Ne=[];for(be=0;be<64;be+=4)Ne[be>>2]=Qe.charCodeAt(be)+(Qe.charCodeAt(be+1)<<8)+(Qe.charCodeAt(be+2)<<16)+(Qe.charCodeAt(be+3)<<24);return Ne}o=w.atob.bind(w),n=w.btoa.bind(w);var y="0123456789abcdef".split("");function x(Qe){for(var be="",Ne=0;Ne<4;Ne++)be+=y[Qe>>8*Ne+4&15]+y[Qe>>8*Ne&15];return be}function T(Qe){return String.fromCharCode((255&Qe)>>0,(65280&Qe)>>8,(16711680&Qe)>>16,(4278190080&Qe)>>24)}function S(Qe){return g(Qe).map(T).join("")}var b=function(Qe){for(var be=0;be<Qe.length;be++)Qe[be]=x(Qe[be]);return Qe.join("")}(g("hello"))!="5d41402abc4b2a76b9719d911017c592";function _(Qe,be){if(b){var Ne=(65535&Qe)+(65535&be);return(Qe>>16)+(be>>16)+(Ne>>16)<<16|65535&Ne}return Qe+be&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function I(Qe,be){var Ne,Ue,Xe,ze;if(Qe!==Ne){for(var Ze=(Xe=Qe,ze=1+(256/Qe.length>>0),new Array(ze+1).join(Xe)),bt=[],ut=0;ut<256;ut++)bt[ut]=ut;var Gt=0;for(ut=0;ut<256;ut++){var Mr=bt[ut];Gt=(Gt+Mr+Ze.charCodeAt(ut))%256,bt[ut]=bt[Gt],bt[Gt]=Mr}Ne=Qe,Ue=bt}else bt=Ue;var Lr=be.length,Gr=0,Ht=0,hn="";for(ut=0;ut<Lr;ut++)Ht=(Ht+(Mr=bt[Gr=(Gr+1)%256]))%256,bt[Gr]=bt[Ht],bt[Ht]=Mr,Ze=bt[(bt[Gr]+bt[Ht])%256],hn+=String.fromCharCode(be.charCodeAt(ut)^Ze);return hn}/**
* @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(Qe,be,Ne,Ue){this.v=1,this.r=2;var Xe=192;Qe.forEach(function(bt){if(L.perm!==void 0)throw new Error("Invalid permission: "+bt);Xe+=L[bt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var ze=(be+this.padding).substr(0,32),Ze=(Ne+this.padding).substr(0,32);this.O=this.processOwnerPassword(ze,Ze),this.P=-(1+(255^Xe)),this.encryptionKey=S(ze+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ue)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function N(Qe){if(/[^\u0000-\u00ff]/.test(Qe))throw new Error("Invalid PDF Name Object: "+Qe+", Only accept ASCII characters.");for(var be="",Ne=Qe.length,Ue=0;Ue<Ne;Ue++){var Xe=Qe.charCodeAt(Ue);Xe<33||Xe===35||Xe===37||Xe===40||Xe===41||Xe===47||Xe===60||Xe===62||Xe===91||Xe===93||Xe===123||Xe===125||Xe>126?be+="#"+("0"+Xe.toString(16)).slice(-2):be+=Qe[Ue]}return be}function M(Qe){if(C()(Qe)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var be={};this.subscribe=function(Ne,Ue,Xe){if(Xe=Xe||!1,typeof Ne!="string"||typeof Ue!="function"||typeof Xe!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");be.hasOwnProperty(Ne)||(be[Ne]={});var ze=Math.random().toString(35);return be[Ne][ze]=[Ue,!!Xe],ze},this.unsubscribe=function(Ne){for(var Ue in be)if(be[Ue][Ne])return delete be[Ue][Ne],Object.keys(be[Ue]).length===0&&delete be[Ue],!0;return!1},this.publish=function(Ne){if(be.hasOwnProperty(Ne)){var Ue=Array.prototype.slice.call(arguments,1),Xe=[];for(var ze in be[Ne]){var Ze=be[Ne][ze];try{Ze[0].apply(Qe,Ue)}catch(bt){w.console&&h.error("jsPDF PubSub Error",bt.message,bt)}Ze[1]&&Xe.push(ze)}Xe.length&&Xe.forEach(this.unsubscribe)}},this.getTopics=function(){return be}}function B(Qe){if(!(this instanceof B))return new B(Qe);var be="opacity,stroke-opacity".split(",");for(var Ne in Qe)Qe.hasOwnProperty(Ne)&&be.indexOf(Ne)>=0&&(this[Ne]=Qe[Ne]);this.id="",this.objectNumber=-1}function R(Qe,be){this.gState=Qe,this.matrix=be,this.id="",this.objectNumber=-1}function H(Qe,be,Ne,Ue,Xe){if(!(this instanceof H))return new H(Qe,be,Ne,Ue,Xe);this.type=Qe==="axial"?2:3,this.coords=be,this.colors=Ne,R.call(this,Ue,Xe)}function F(Qe,be,Ne,Ue,Xe){if(!(this instanceof F))return new F(Qe,be,Ne,Ue,Xe);this.boundingBox=Qe,this.xStep=be,this.yStep=Ne,this.stream="",this.cloneIndex=0,R.call(this,Ue,Xe)}function K(Qe){var be,Ne=typeof arguments[0]=="string"?arguments[0]:"p",Ue=arguments[1],Xe=arguments[2],ze=arguments[3],Ze=[],bt=1,ut=16,Gt="S",Mr=null;C()(Qe=Qe||{})==="object"&&(Ne=Qe.orientation,Ue=Qe.unit||Ue,Xe=Qe.format||Xe,ze=Qe.compress||Qe.compressPdf||ze,(Mr=Qe.encryption||null)!==null&&(Mr.userPassword=Mr.userPassword||"",Mr.ownerPassword=Mr.ownerPassword||"",Mr.userPermissions=Mr.userPermissions||[]),bt=typeof Qe.userUnit=="number"?Math.abs(Qe.userUnit):1,Qe.precision!==void 0&&(be=Qe.precision),Qe.floatPrecision!==void 0&&(ut=Qe.floatPrecision),Gt=Qe.defaultPathOperation||"S"),Ze=Qe.filters||(ze===!0?["FlateEncode"]:Ze),Ue=Ue||"mm",Ne=(""+(Ne||"P")).toLowerCase();var Lr=Qe.putOnlyUsedFonts||!1,Gr={},Ht={internal:{},__private__:{}};Ht.__private__.PubSub=M;var hn="1.3",or=Ht.__private__.getPdfVersion=function(){return hn};Ht.__private__.setPdfVersion=function(pt){hn=pt};var vn={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]};Ht.__private__.getPageFormats=function(){return vn};var nn=Ht.__private__.getPageFormat=function(pt){return vn[pt]};Xe=Xe||"a4";var Ur={COMPAT:"compat",ADVANCED:"advanced"},ni=Ur.COMPAT;function Oi(){this.saveGraphicsState(),xn(new ca(dn,0,0,-dn,0,bo()*dn).toString()+" cm"),this.setFontSize(this.getFontSize()/dn),Gt="n",ni=Ur.ADVANCED}function Hi(){this.restoreGraphicsState(),Gt="S",ni=Ur.COMPAT}var Ri=Ht.__private__.combineFontStyleAndFontWeight=function(pt,Nt){if(pt=="bold"&&Nt=="normal"||pt=="bold"&&Nt==400||pt=="normal"&&Nt=="italic"||pt=="bold"&&Nt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Nt&&(pt=Nt==400||Nt==="normal"?pt==="italic"?"italic":"normal":Nt!=700&&Nt!=="bold"||pt!=="normal"?(Nt==700?"bold":Nt)+""+pt:"bold"),pt};Ht.advancedAPI=function(pt){var Nt=ni===Ur.COMPAT;return Nt&&Oi.call(this),typeof pt!="function"||(pt(this),Nt&&Hi.call(this)),this},Ht.compatAPI=function(pt){var Nt=ni===Ur.ADVANCED;return Nt&&Hi.call(this),typeof pt!="function"||(pt(this),Nt&&Oi.call(this)),this},Ht.isAdvancedAPI=function(){return ni===Ur.ADVANCED};var Ni,Yi=function(Nt){if(ni!==Ur.ADVANCED)throw new Error(Nt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Qr=Ht.roundToPrecision=Ht.__private__.roundToPrecision=function(pt,Nt){var sn=be||Nt;if(isNaN(pt)||isNaN(sn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return pt.toFixed(sn).replace(/0+$/,"")};Ni=Ht.hpf=Ht.__private__.hpf=typeof ut=="number"?function(pt){if(isNaN(pt))throw new Error("Invalid argument passed to jsPDF.hpf");return Qr(pt,ut)}:ut==="smart"?function(pt){if(isNaN(pt))throw new Error("Invalid argument passed to jsPDF.hpf");return Qr(pt,pt>-1&&pt<1?16:5)}:function(pt){if(isNaN(pt))throw new Error("Invalid argument passed to jsPDF.hpf");return Qr(pt,16)};var On=Ht.f2=Ht.__private__.f2=function(pt){if(isNaN(pt))throw new Error("Invalid argument passed to jsPDF.f2");return Qr(pt,2)},zr=Ht.__private__.f3=function(pt){if(isNaN(pt))throw new Error("Invalid argument passed to jsPDF.f3");return Qr(pt,3)},fr=Ht.scale=Ht.__private__.scale=function(pt){if(isNaN(pt))throw new Error("Invalid argument passed to jsPDF.scale");return ni===Ur.COMPAT?pt*dn:ni===Ur.ADVANCED?pt:void 0},Nr=function(Nt){return ni===Ur.COMPAT?bo()-Nt:ni===Ur.ADVANCED?Nt:void 0},Qt=function(Nt){return fr(Nr(Nt))};Ht.__private__.setPrecision=Ht.setPrecision=function(pt){typeof parseInt(pt,10)=="number"&&(be=parseInt(pt,10))};var xr,Jr="00000000000000000000000000000000",Kr=Ht.__private__.getFileId=function(){return Jr},en=Ht.__private__.setFileId=function(pt){return Jr=pt!==void 0&&/^[a-fA-F0-9]{32}$/.test(pt)?pt.toUpperCase():Jr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Mr!==null&&(yr=new D(Mr.userPermissions,Mr.userPassword,Mr.ownerPassword,Jr)),Jr};Ht.setFileId=function(pt){return en(pt),this},Ht.getFileId=function(){return Kr()};var ai=Ht.__private__.convertDateToPDFDate=function(pt){var Nt=pt.getTimezoneOffset(),sn=Nt<0?"+":"-",Mn=Math.floor(Math.abs(Nt/60)),hi=Math.abs(Nt%60),ot=[sn,wn(Mn),"'",wn(hi),"'"].join("");return["D:",pt.getFullYear(),wn(pt.getMonth()+1),wn(pt.getDate()),wn(pt.getHours()),wn(pt.getMinutes()),wn(pt.getSeconds()),ot].join("")},Yn=Ht.__private__.convertPDFDateToDate=function(pt){var Nt=parseInt(pt.substr(2,4),10),sn=parseInt(pt.substr(6,2),10)-1,Mn=parseInt(pt.substr(8,2),10),hi=parseInt(pt.substr(10,2),10),ot=parseInt(pt.substr(12,2),10),ae=parseInt(pt.substr(14,2),10);return new Date(Nt,sn,Mn,hi,ot,ae,0)},Si=Ht.__private__.setCreationDate=function(pt){var Nt;if(pt===void 0&&(pt=new Date),pt instanceof Date)Nt=ai(pt);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(pt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Nt=pt}return xr=Nt},ln=Ht.__private__.getCreationDate=function(pt){var Nt=xr;return pt==="jsDate"&&(Nt=Yn(xr)),Nt};Ht.setCreationDate=function(pt){return Si(pt),this},Ht.getCreationDate=function(pt){return ln(pt)};var Or,wn=Ht.__private__.padd2=function(pt){return("0"+parseInt(pt)).slice(-2)},Xn=Ht.__private__.padd2Hex=function(pt){return("00"+(pt=pt.toString())).substr(pt.length)},Zn=0,ii=[],Ei=[],ki=0,Fi=[],ra=[],_a=!1,wa=Ei,_o=function(){Zn=0,ki=0,Ei=[],ii=[],Fi=[],Va=Io(),Bo=Io()};Ht.__private__.setCustomOutputDestination=function(pt){_a=!0,wa=pt};var bi=function(Nt){_a||(wa=Nt)};Ht.__private__.resetCustomOutputDestination=function(){_a=!1,wa=Ei};var xn=Ht.__private__.out=function(pt){return pt=pt.toString(),ki+=pt.length+1,wa.push(pt),wa},Zi=Ht.__private__.write=function(pt){return xn(arguments.length===1?pt.toString():Array.prototype.join.call(arguments," "))},va=Ht.__private__.getArrayBuffer=function(pt){for(var Nt=pt.length,sn=new ArrayBuffer(Nt),Mn=new Uint8Array(sn);Nt--;)Mn[Nt]=pt.charCodeAt(Nt);return sn},ta=[["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]];Ht.__private__.getStandardFonts=function(){return ta};var ma=Qe.fontSize||16;Ht.__private__.setFontSize=Ht.setFontSize=function(pt){return ma=ni===Ur.ADVANCED?pt/dn:pt,this};var Qi,Ya=Ht.__private__.getFontSize=Ht.getFontSize=function(){return ni===Ur.COMPAT?ma:ma*dn},Wa=Qe.R2L||!1;Ht.__private__.setR2L=Ht.setR2L=function(pt){return Wa=pt,this},Ht.__private__.getR2L=Ht.getR2L=function(){return Wa};var Ao,es=Ht.__private__.setZoomMode=function(pt){var Nt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(pt))Qi=pt;else if(isNaN(pt)){if(Nt.indexOf(pt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+pt+'" is not recognized.');Qi=pt}else Qi=parseInt(pt,10)};Ht.__private__.getZoomMode=function(){return Qi};var so,So=Ht.__private__.setPageMode=function(pt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(pt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+pt+'" is not recognized.');Ao=pt};Ht.__private__.getPageMode=function(){return Ao};var xo=Ht.__private__.setLayoutMode=function(pt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(pt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+pt+'" is not recognized.');so=pt};Ht.__private__.getLayoutMode=function(){return so},Ht.__private__.setDisplayMode=Ht.setDisplayMode=function(pt,Nt,sn){return es(pt),xo(Nt),So(sn),this};var hr={title:"",subject:"",author:"",keywords:"",creator:""};Ht.__private__.getDocumentProperty=function(pt){if(Object.keys(hr).indexOf(pt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return hr[pt]},Ht.__private__.getDocumentProperties=function(){return hr},Ht.__private__.setDocumentProperties=Ht.setProperties=Ht.setDocumentProperties=function(pt){for(var Nt in hr)hr.hasOwnProperty(Nt)&&pt[Nt]&&(hr[Nt]=pt[Nt]);return this},Ht.__private__.setDocumentProperty=function(pt,Nt){if(Object.keys(hr).indexOf(pt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return hr[pt]=Nt};var Sn,dn,Kn,si,vi,pi={},di={},Ki=[],Mi={},pa={},_i={},da={},na=null,Sa=0,Aa=[],ua=new M(Ht),La=Qe.hotfixes||[],sa={},co={},no=[],ca=function pt(Nt,sn,Mn,hi,ot,ae){if(!(this instanceof pt))return new pt(Nt,sn,Mn,hi,ot,ae);isNaN(Nt)&&(Nt=1),isNaN(sn)&&(sn=0),isNaN(Mn)&&(Mn=0),isNaN(hi)&&(hi=1),isNaN(ot)&&(ot=0),isNaN(ae)&&(ae=0),this._matrix=[Nt,sn,Mn,hi,ot,ae]};Object.defineProperty(ca.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Nt){this._matrix[0]=Nt}}),Object.defineProperty(ca.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Nt){this._matrix[1]=Nt}}),Object.defineProperty(ca.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Nt){this._matrix[2]=Nt}}),Object.defineProperty(ca.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Nt){this._matrix[3]=Nt}}),Object.defineProperty(ca.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Nt){this._matrix[4]=Nt}}),Object.defineProperty(ca.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Nt){this._matrix[5]=Nt}}),Object.defineProperty(ca.prototype,"a",{get:function(){return this._matrix[0]},set:function(Nt){this._matrix[0]=Nt}}),Object.defineProperty(ca.prototype,"b",{get:function(){return this._matrix[1]},set:function(Nt){this._matrix[1]=Nt}}),Object.defineProperty(ca.prototype,"c",{get:function(){return this._matrix[2]},set:function(Nt){this._matrix[2]=Nt}}),Object.defineProperty(ca.prototype,"d",{get:function(){return this._matrix[3]},set:function(Nt){this._matrix[3]=Nt}}),Object.defineProperty(ca.prototype,"e",{get:function(){return this._matrix[4]},set:function(Nt){this._matrix[4]=Nt}}),Object.defineProperty(ca.prototype,"f",{get:function(){return this._matrix[5]},set:function(Nt){this._matrix[5]=Nt}}),Object.defineProperty(ca.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ca.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ca.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ca.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ca.prototype.join=function(pt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Ni).join(pt)},ca.prototype.multiply=function(pt){var Nt=pt.sx*this.sx+pt.shy*this.shx,sn=pt.sx*this.shy+pt.shy*this.sy,Mn=pt.shx*this.sx+pt.sy*this.shx,hi=pt.shx*this.shy+pt.sy*this.sy,ot=pt.tx*this.sx+pt.ty*this.shx+this.tx,ae=pt.tx*this.shy+pt.ty*this.sy+this.ty;return new ca(Nt,sn,Mn,hi,ot,ae)},ca.prototype.decompose=function(){var pt=this.sx,Nt=this.shy,sn=this.shx,Mn=this.sy,hi=this.tx,ot=this.ty,ae=Math.sqrt(pt*pt+Nt*Nt),de=(pt/=ae)*sn+(Nt/=ae)*Mn;sn-=pt*de,Mn-=Nt*de;var ye=Math.sqrt(sn*sn+Mn*Mn);return de/=ye,pt*(Mn/=ye)<Nt*(sn/=ye)&&(pt=-pt,Nt=-Nt,de=-de,ae=-ae),{scale:new ca(ae,0,0,ye,0,0),translate:new ca(1,0,0,1,hi,ot),rotate:new ca(pt,Nt,-Nt,pt,0,0),skew:new ca(1,0,de,1,0,0)}},ca.prototype.toString=function(pt){return this.join(" ")},ca.prototype.inversed=function(){var pt=this.sx,Nt=this.shy,sn=this.shx,Mn=this.sy,hi=this.tx,ot=this.ty,ae=1/(pt*Mn-Nt*sn),de=Mn*ae,ye=-Nt*ae,Ke=-sn*ae,ct=pt*ae;return new ca(de,ye,Ke,ct,-de*hi-Ke*ot,-ye*hi-ct*ot)},ca.prototype.applyToPoint=function(pt){var Nt=pt.x*this.sx+pt.y*this.shx+this.tx,sn=pt.x*this.shy+pt.y*this.sy+this.ty;return new Ko(Nt,sn)},ca.prototype.applyToRectangle=function(pt){var Nt=this.applyToPoint(pt),sn=this.applyToPoint(new Ko(pt.x+pt.w,pt.y+pt.h));return new $o(Nt.x,Nt.y,sn.x-Nt.x,sn.y-Nt.y)},ca.prototype.clone=function(){var pt=this.sx,Nt=this.shy,sn=this.shx,Mn=this.sy,hi=this.tx,ot=this.ty;return new ca(pt,Nt,sn,Mn,hi,ot)},Ht.Matrix=ca;var yo=Ht.matrixMult=function(pt,Nt){return Nt.multiply(pt)},lo=new ca(1,0,0,1,0,0);Ht.unitMatrix=Ht.identityMatrix=lo;var Na=function(Nt,sn){if(!pa[Nt]){var Mn=(sn instanceof H?"Sh":"P")+(Object.keys(Mi).length+1).toString(10);sn.id=Mn,pa[Nt]=Mn,Mi[Mn]=sn,ua.publish("addPattern",sn)}};Ht.ShadingPattern=H,Ht.TilingPattern=F,Ht.addShadingPattern=function(pt,Nt){return Yi("addShadingPattern()"),Na(pt,Nt),this},Ht.beginTilingPattern=function(pt){Yi("beginTilingPattern()"),Wo(pt.boundingBox[0],pt.boundingBox[1],pt.boundingBox[2]-pt.boundingBox[0],pt.boundingBox[3]-pt.boundingBox[1],pt.matrix)},Ht.endTilingPattern=function(pt,Nt){Yi("endTilingPattern()"),Nt.stream=ra[Or].join(`
`),Na(pt,Nt),ua.publish("endTilingPattern",Nt),no.pop().restore()};var ho=Ht.__private__.newObject=function(){var pt=Io();return eo(pt,!0),pt},Io=Ht.__private__.newObjectDeferred=function(){return Zn++,ii[Zn]=function(){return ki},Zn},eo=function(Nt,sn){return sn=typeof sn=="boolean"&&sn,ii[Nt]=ki,sn&&xn(Nt+" 0 obj"),Nt},Lo=Ht.__private__.newAdditionalObject=function(){var pt={objId:Io(),content:""};return Fi.push(pt),pt},Va=Io(),Bo=Io(),Ho=Ht.__private__.decodeColorString=function(pt){var Nt=pt.split(" ");if(Nt.length!==2||Nt[1]!=="g"&&Nt[1]!=="G")Nt.length===5&&(Nt[4]==="k"||Nt[4]==="K")&&(Nt=[(1-Nt[0])*(1-Nt[3]),(1-Nt[1])*(1-Nt[3]),(1-Nt[2])*(1-Nt[3]),"r"]);else{var sn=parseFloat(Nt[0]);Nt=[sn,sn,sn,"r"]}for(var Mn="#",hi=0;hi<3;hi++)Mn+=("0"+Math.floor(255*parseFloat(Nt[hi])).toString(16)).slice(-2);return Mn},Pr=Ht.__private__.encodeColorString=function(pt){var Nt;typeof pt=="string"&&(pt={ch1:pt});var sn=pt.ch1,Mn=pt.ch2,hi=pt.ch3,ot=pt.ch4,ae=pt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof sn=="string"&&sn.charAt(0)!=="#"){var de=new s(sn);if(de.ok)sn=de.toHex();else if(!/^\d*\.?\d*$/.test(sn))throw new Error('Invalid color "'+sn+'" passed to jsPDF.encodeColorString.')}if(typeof sn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(sn)&&(sn="#"+sn[1]+sn[1]+sn[2]+sn[2]+sn[3]+sn[3]),typeof sn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(sn)){var ye=parseInt(sn.substr(1),16);sn=ye>>16&255,Mn=ye>>8&255,hi=255&ye}if(Mn===void 0||ot===void 0&&sn===Mn&&Mn===hi)if(typeof sn=="string")Nt=sn+" "+ae[0];else switch(pt.precision){case 2:Nt=On(sn/255)+" "+ae[0];break;case 3:default:Nt=zr(sn/255)+" "+ae[0]}else if(ot===void 0||C()(ot)==="object"){if(ot&&!isNaN(ot.a)&&ot.a===0)return Nt=["1.","1.","1.",ae[1]].join(" ");if(typeof sn=="string")Nt=[sn,Mn,hi,ae[1]].join(" ");else switch(pt.precision){case 2:Nt=[On(sn/255),On(Mn/255),On(hi/255),ae[1]].join(" ");break;default:case 3:Nt=[zr(sn/255),zr(Mn/255),zr(hi/255),ae[1]].join(" ")}}else if(typeof sn=="string")Nt=[sn,Mn,hi,ot,ae[2]].join(" ");else switch(pt.precision){case 2:Nt=[On(sn),On(Mn),On(hi),On(ot),ae[2]].join(" ");break;case 3:default:Nt=[zr(sn),zr(Mn),zr(hi),zr(ot),ae[2]].join(" ")}return Nt},An=Ht.__private__.getFilters=function(){return Ze},Pn=Ht.__private__.putStream=function(pt){var Nt=(pt=pt||{}).data||"",sn=pt.filters||An(),Mn=pt.alreadyAppliedFilters||[],hi=pt.addLength1||!1,ot=Nt.length,ae=pt.objectId,de=function(Rn){return Rn};if(Mr!==null&&ae===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Mr!==null&&(de=yr.encryptor(ae,0));var ye={};sn===!0&&(sn=["FlateEncode"]);var Ke=pt.additionalKeyValues||[],ct=(ye=K.API.processDataByFilters!==void 0?K.API.processDataByFilters(Nt,sn):{data:Nt,reverseChain:[]}).reverseChain+(Array.isArray(Mn)?Mn.join(" "):Mn.toString());if(ye.data.length!==0&&(Ke.push({key:"Length",value:ye.data.length}),hi===!0&&Ke.push({key:"Length1",value:ot})),ct.length!=0)if(ct.split("/").length-1==1)Ke.push({key:"Filter",value:ct});else{Ke.push({key:"Filter",value:"["+ct+"]"});for(var Bt=0;Bt<Ke.length;Bt+=1)if(Ke[Bt].key==="DecodeParms"){for(var Ir=[],Br=0;Br<ye.reverseChain.split("/").length-1;Br+=1)Ir.push("null");Ir.push(Ke[Bt].value),Ke[Bt].value="["+Ir.join(" ")+"]"}}xn("<<");for(var un=0;un<Ke.length;un++)xn("/"+Ke[un].key+" "+Ke[un].value);xn(">>"),ye.data.length!==0&&(xn("stream"),xn(de(ye.data)),xn("endstream"))},qr=Ht.__private__.putPage=function(pt){var Nt=pt.number,sn=pt.data,Mn=pt.objId,hi=pt.contentsObjId;eo(Mn,!0),xn("<</Type /Page"),xn("/Parent "+pt.rootDictionaryObjId+" 0 R"),xn("/Resources "+pt.resourceDictionaryObjId+" 0 R"),xn("/MediaBox ["+parseFloat(Ni(pt.mediaBox.bottomLeftX))+" "+parseFloat(Ni(pt.mediaBox.bottomLeftY))+" "+Ni(pt.mediaBox.topRightX)+" "+Ni(pt.mediaBox.topRightY)+"]"),pt.cropBox!==null&&xn("/CropBox ["+Ni(pt.cropBox.bottomLeftX)+" "+Ni(pt.cropBox.bottomLeftY)+" "+Ni(pt.cropBox.topRightX)+" "+Ni(pt.cropBox.topRightY)+"]"),pt.bleedBox!==null&&xn("/BleedBox ["+Ni(pt.bleedBox.bottomLeftX)+" "+Ni(pt.bleedBox.bottomLeftY)+" "+Ni(pt.bleedBox.topRightX)+" "+Ni(pt.bleedBox.topRightY)+"]"),pt.trimBox!==null&&xn("/TrimBox ["+Ni(pt.trimBox.bottomLeftX)+" "+Ni(pt.trimBox.bottomLeftY)+" "+Ni(pt.trimBox.topRightX)+" "+Ni(pt.trimBox.topRightY)+"]"),pt.artBox!==null&&xn("/ArtBox ["+Ni(pt.artBox.bottomLeftX)+" "+Ni(pt.artBox.bottomLeftY)+" "+Ni(pt.artBox.topRightX)+" "+Ni(pt.artBox.topRightY)+"]"),typeof pt.userUnit=="number"&&pt.userUnit!==1&&xn("/UserUnit "+pt.userUnit),ua.publish("putPage",{objId:Mn,pageContext:Aa[Nt],pageNumber:Nt,page:sn}),xn("/Contents "+hi+" 0 R"),xn(">>"),xn("endobj");var ot=sn.join(`
`);return ni===Ur.ADVANCED&&(ot+=`
Q`),eo(hi,!0),Pn({data:ot,filters:An(),objectId:hi}),xn("endobj"),Mn},er=Ht.__private__.putPages=function(){var pt,Nt,sn=[];for(pt=1;pt<=Sa;pt++)Aa[pt].objId=Io(),Aa[pt].contentsObjId=Io();for(pt=1;pt<=Sa;pt++)sn.push(qr({number:pt,data:ra[pt],objId:Aa[pt].objId,contentsObjId:Aa[pt].contentsObjId,mediaBox:Aa[pt].mediaBox,cropBox:Aa[pt].cropBox,bleedBox:Aa[pt].bleedBox,trimBox:Aa[pt].trimBox,artBox:Aa[pt].artBox,userUnit:Aa[pt].userUnit,rootDictionaryObjId:Va,resourceDictionaryObjId:Bo}));eo(Va,!0),xn("<</Type /Pages");var Mn="/Kids [";for(Nt=0;Nt<Sa;Nt++)Mn+=sn[Nt]+" 0 R ";xn(Mn+"]"),xn("/Count "+Sa),xn(">>"),xn("endobj"),ua.publish("postPutPages")},Dr=function(Nt){ua.publish("putFont",{font:Nt,out:xn,newObject:ho,putStream:Pn}),Nt.isAlreadyPutted!==!0&&(Nt.objectNumber=ho(),xn("<<"),xn("/Type /Font"),xn("/BaseFont /"+N(Nt.postScriptName)),xn("/Subtype /Type1"),typeof Nt.encoding=="string"&&xn("/Encoding /"+Nt.encoding),xn("/FirstChar 32"),xn("/LastChar 255"),xn(">>"),xn("endobj"))},lr=function(){for(var Nt in pi)pi.hasOwnProperty(Nt)&&(Lr===!1||Lr===!0&&Gr.hasOwnProperty(Nt))&&Dr(pi[Nt])},on=function(Nt){Nt.objectNumber=ho();var sn=[];sn.push({key:"Type",value:"/XObject"}),sn.push({key:"Subtype",value:"/Form"}),sn.push({key:"BBox",value:"["+[Ni(Nt.x),Ni(Nt.y),Ni(Nt.x+Nt.width),Ni(Nt.y+Nt.height)].join(" ")+"]"}),sn.push({key:"Matrix",value:"["+Nt.matrix.toString()+"]"});var Mn=Nt.pages[1].join(`
`);Pn({data:Mn,additionalKeyValues:sn,objectId:Nt.objectNumber}),xn("endobj")},fn=function(){for(var Nt in sa)sa.hasOwnProperty(Nt)&&on(sa[Nt])},Wn=function(Nt,sn){var Mn,hi=[],ot=1/(sn-1);for(Mn=0;Mn<1;Mn+=ot)hi.push(Mn);if(hi.push(1),Nt[0].offset!=0){var ae={offset:0,color:Nt[0].color};Nt.unshift(ae)}if(Nt[Nt.length-1].offset!=1){var de={offset:1,color:Nt[Nt.length-1].color};Nt.push(de)}for(var ye="",Ke=0,ct=0;ct<hi.length;ct++){for(Mn=hi[ct];Mn>Nt[Ke+1].offset;)Ke++;var Bt=Nt[Ke].offset,Ir=(Mn-Bt)/(Nt[Ke+1].offset-Bt),Br=Nt[Ke].color,un=Nt[Ke+1].color;ye+=Xn(Math.round((1-Ir)*Br[0]+Ir*un[0]).toString(16))+Xn(Math.round((1-Ir)*Br[1]+Ir*un[1]).toString(16))+Xn(Math.round((1-Ir)*Br[2]+Ir*un[2]).toString(16))}return ye.trim()},Dn=function(Nt,sn){sn||(sn=21);var Mn=ho(),hi=Wn(Nt.colors,sn),ot=[];ot.push({key:"FunctionType",value:"0"}),ot.push({key:"Domain",value:"[0.0 1.0]"}),ot.push({key:"Size",value:"["+sn+"]"}),ot.push({key:"BitsPerSample",value:"8"}),ot.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ot.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Pn({data:hi,additionalKeyValues:ot,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Mn}),xn("endobj"),Nt.objectNumber=ho(),xn("<< /ShadingType "+Nt.type),xn("/ColorSpace /DeviceRGB");var ae="/Coords ["+Ni(parseFloat(Nt.coords[0]))+" "+Ni(parseFloat(Nt.coords[1]))+" ";Nt.type===2?ae+=Ni(parseFloat(Nt.coords[2]))+" "+Ni(parseFloat(Nt.coords[3])):ae+=Ni(parseFloat(Nt.coords[2]))+" "+Ni(parseFloat(Nt.coords[3]))+" "+Ni(parseFloat(Nt.coords[4]))+" "+Ni(parseFloat(Nt.coords[5])),xn(ae+="]"),Nt.matrix&&xn("/Matrix ["+Nt.matrix.toString()+"]"),xn("/Function "+Mn+" 0 R"),xn("/Extend [true true]"),xn(">>"),xn("endobj")},Jn=function(Nt,sn){var Mn=Io(),hi=ho();sn.push({resourcesOid:Mn,objectOid:hi}),Nt.objectNumber=hi;var ot=[];ot.push({key:"Type",value:"/Pattern"}),ot.push({key:"PatternType",value:"1"}),ot.push({key:"PaintType",value:"1"}),ot.push({key:"TilingType",value:"1"}),ot.push({key:"BBox",value:"["+Nt.boundingBox.map(Ni).join(" ")+"]"}),ot.push({key:"XStep",value:Ni(Nt.xStep)}),ot.push({key:"YStep",value:Ni(Nt.yStep)}),ot.push({key:"Resources",value:Mn+" 0 R"}),Nt.matrix&&ot.push({key:"Matrix",value:"["+Nt.matrix.toString()+"]"}),Pn({data:Nt.stream,additionalKeyValues:ot,objectId:Nt.objectNumber}),xn("endobj")},Ti=function(Nt){var sn;for(sn in Mi)Mi.hasOwnProperty(sn)&&(Mi[sn]instanceof H?Dn(Mi[sn]):Mi[sn]instanceof F&&Jn(Mi[sn],Nt))},xi=function(Nt){for(var sn in Nt.objectNumber=ho(),xn("<<"),Nt)switch(sn){case"opacity":xn("/ca "+On(Nt[sn]));break;case"stroke-opacity":xn("/CA "+On(Nt[sn]))}xn(">>"),xn("endobj")},Bi=function(){var Nt;for(Nt in _i)_i.hasOwnProperty(Nt)&&xi(_i[Nt])},ea=function(){for(var Nt in xn("/XObject <<"),sa)sa.hasOwnProperty(Nt)&&sa[Nt].objectNumber>=0&&xn("/"+Nt+" "+sa[Nt].objectNumber+" 0 R");ua.publish("putXobjectDict"),xn(">>")},Ha=function(){yr.oid=ho(),xn("<<"),xn("/Filter /Standard"),xn("/V "+yr.v),xn("/R "+yr.r),xn("/U <"+yr.toHexString(yr.U)+">"),xn("/O <"+yr.toHexString(yr.O)+">"),xn("/P "+yr.P),xn(">>"),xn("endobj")},Qa=function(){for(var Nt in xn("/Font <<"),pi)pi.hasOwnProperty(Nt)&&(Lr===!1||Lr===!0&&Gr.hasOwnProperty(Nt))&&xn("/"+Nt+" "+pi[Nt].objectNumber+" 0 R");xn(">>")},io=function(){if(Object.keys(Mi).length>0){for(var Nt in xn("/Shading <<"),Mi)Mi.hasOwnProperty(Nt)&&Mi[Nt]instanceof H&&Mi[Nt].objectNumber>=0&&xn("/"+Nt+" "+Mi[Nt].objectNumber+" 0 R");ua.publish("putShadingPatternDict"),xn(">>")}},Ja=function(Nt){if(Object.keys(Mi).length>0){for(var sn in xn("/Pattern <<"),Mi)Mi.hasOwnProperty(sn)&&Mi[sn]instanceof Ht.TilingPattern&&Mi[sn].objectNumber>=0&&Mi[sn].objectNumber<Nt&&xn("/"+sn+" "+Mi[sn].objectNumber+" 0 R");ua.publish("putTilingPatternDict"),xn(">>")}},Ga=function(){if(Object.keys(_i).length>0){var Nt;for(Nt in xn("/ExtGState <<"),_i)_i.hasOwnProperty(Nt)&&_i[Nt].objectNumber>=0&&xn("/"+Nt+" "+_i[Nt].objectNumber+" 0 R");ua.publish("putGStateDict"),xn(">>")}},Ra=function(Nt){eo(Nt.resourcesOid,!0),xn("<<"),xn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Qa(),io(),Ja(Nt.objectOid),Ga(),ea(),xn(">>"),xn("endobj")},ia=function(){var Nt=[];lr(),Bi(),fn(),Ti(Nt),ua.publish("putResources"),Nt.forEach(Ra),Ra({resourcesOid:Bo,objectOid:Number.MAX_SAFE_INTEGER}),ua.publish("postPutResources")},qe=function(){ua.publish("putAdditionalObjects");for(var Nt=0;Nt<Fi.length;Nt++){var sn=Fi[Nt];eo(sn.objId,!0),xn(sn.content),xn("endobj")}ua.publish("postPutAdditionalObjects")},rr=function(Nt){di[Nt.fontName]=di[Nt.fontName]||{},di[Nt.fontName][Nt.fontStyle]=Nt.id},Rr=function(Nt,sn,Mn,hi,ot){var ae={id:"F"+(Object.keys(pi).length+1).toString(10),postScriptName:Nt,fontName:sn,fontStyle:Mn,encoding:hi,isStandardFont:ot||!1,metadata:{}};return ua.publish("addFont",{font:ae,instance:this}),pi[ae.id]=ae,rr(ae),ae.id},Cr=function(Nt){for(var sn=0,Mn=ta.length;sn<Mn;sn++){var hi=Rr.call(this,Nt[sn][0],Nt[sn][1],Nt[sn][2],ta[sn][3],!0);Lr===!1&&(Gr[hi]=!0);var ot=Nt[sn][0].split("-");rr({id:hi,fontName:ot[0],fontStyle:ot[1]||""})}ua.publish("addFonts",{fonts:pi,dictionary:di})},pn=function(Nt){return Nt.foo=function(){try{return Nt.apply(this,arguments)}catch(hi){var sn=hi.stack||"";~sn.indexOf(" at ")&&(sn=sn.split(" at ")[1]);var Mn="Error in function "+sn.split(`
`)[0].split("<")[0]+": "+hi.message;if(!w.console)throw new Error(Mn);w.console.error(Mn,hi),w.alert&&alert(Mn)}},Nt.foo.bar=Nt,Nt.foo},Vr=function(Nt,sn){var Mn,hi,ot,ae,de,ye,Ke,ct,Bt;if(ot=(sn=sn||{}).sourceEncoding||"Unicode",de=sn.outputEncoding,(sn.autoencode||de)&&pi[Sn].metadata&&pi[Sn].metadata[ot]&&pi[Sn].metadata[ot].encoding&&(ae=pi[Sn].metadata[ot].encoding,!de&&pi[Sn].encoding&&(de=pi[Sn].encoding),!de&&ae.codePages&&(de=ae.codePages[0]),typeof de=="string"&&(de=ae[de]),de)){for(Ke=!1,ye=[],Mn=0,hi=Nt.length;Mn<hi;Mn++)(ct=de[Nt.charCodeAt(Mn)])?ye.push(String.fromCharCode(ct)):ye.push(Nt[Mn]),ye[Mn].charCodeAt(0)>>8&&(Ke=!0);Nt=ye.join("")}for(Mn=Nt.length;Ke===void 0&&Mn!==0;)Nt.charCodeAt(Mn-1)>>8&&(Ke=!0),Mn--;if(!Ke)return Nt;for(ye=sn.noBOM?[]:[254,255],Mn=0,hi=Nt.length;Mn<hi;Mn++){if((Bt=(ct=Nt.charCodeAt(Mn))>>8)>>8)throw new Error("Character at position "+Mn+" of string '"+Nt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ye.push(Bt),ye.push(ct-(Bt<<8))}return String.fromCharCode.apply(void 0,ye)},br=Ht.__private__.pdfEscape=Ht.pdfEscape=function(pt,Nt){return Vr(pt,Nt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},In=Ht.__private__.beginPage=function(pt){ra[++Sa]=[],Aa[Sa]={objId:0,contentsObjId:0,userUnit:Number(bt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(pt[0]),topRightY:Number(pt[1])}},$n(Sa),bi(ra[Or])},Sr=function(Nt,sn){var Mn,hi,ot;switch(Ne=sn||Ne,typeof Nt=="string"&&(Mn=nn(Nt.toLowerCase()),Array.isArray(Mn)&&(hi=Mn[0],ot=Mn[1])),Array.isArray(Nt)&&(hi=Nt[0]*dn,ot=Nt[1]*dn),isNaN(hi)&&(hi=Xe[0],ot=Xe[1]),(hi>14400||ot>14400)&&(h.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),hi=Math.min(14400,hi),ot=Math.min(14400,ot)),Xe=[hi,ot],Ne.substr(0,1)){case"l":ot>hi&&(Xe=[ot,hi]);break;case"p":hi>ot&&(Xe=[ot,hi])}In(Xe),qi(ha),xn(ja),Qo!==0&&xn(Qo+" J"),ss!==0&&xn(ss+" j"),ua.publish("addPage",{pageNumber:Sa})},gn=function(Nt){Nt>0&&Nt<=Sa&&(ra.splice(Nt,1),Aa.splice(Nt,1),Sa--,Or>Sa&&(Or=Sa),this.setPage(Or))},$n=function(Nt){Nt>0&&Nt<=Sa&&(Or=Nt)},qn=Ht.__private__.getNumberOfPages=Ht.getNumberOfPages=function(){return ra.length-1},Gn=function(Nt,sn,Mn){var hi,ot=void 0;return Mn=Mn||{},Nt=Nt!==void 0?Nt:pi[Sn].fontName,sn=sn!==void 0?sn:pi[Sn].fontStyle,hi=Nt.toLowerCase(),di[hi]!==void 0&&di[hi][sn]!==void 0?ot=di[hi][sn]:di[Nt]!==void 0&&di[Nt][sn]!==void 0?ot=di[Nt][sn]:Mn.disableWarning===!1&&h.warn("Unable to look up font label for font '"+Nt+"', '"+sn+"'. Refer to getFontList() for available fonts."),ot||Mn.noFallback||(ot=di.times[sn])==null&&(ot=di.times.normal),ot},mi=Ht.__private__.putInfo=function(){var pt=ho(),Nt=function(hi){return hi};for(var sn in Mr!==null&&(Nt=yr.encryptor(pt,0)),xn("<<"),xn("/Producer ("+br(Nt("jsPDF "+K.version))+")"),hr)hr.hasOwnProperty(sn)&&hr[sn]&&xn("/"+sn.substr(0,1).toUpperCase()+sn.substr(1)+" ("+br(Nt(hr[sn]))+")");xn("/CreationDate ("+br(Nt(xr))+")"),xn(">>"),xn("endobj")},ti=Ht.__private__.putCatalog=function(pt){var Nt=(pt=pt||{}).rootDictionaryObjId||Va;switch(ho(),xn("<<"),xn("/Type /Catalog"),xn("/Pages "+Nt+" 0 R"),Qi||(Qi="fullwidth"),Qi){case"fullwidth":xn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":xn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":xn("/OpenAction [3 0 R /Fit]");break;case"original":xn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var sn=""+Qi;sn.substr(sn.length-1)==="%"&&(Qi=parseInt(Qi)/100),typeof Qi=="number"&&xn("/OpenAction [3 0 R /XYZ null null "+On(Qi)+"]")}switch(so||(so="continuous"),so){case"continuous":xn("/PageLayout /OneColumn");break;case"single":xn("/PageLayout /SinglePage");break;case"two":case"twoleft":xn("/PageLayout /TwoColumnLeft");break;case"tworight":xn("/PageLayout /TwoColumnRight")}Ao&&xn("/PageMode /"+Ao),ua.publish("putCatalog"),xn(">>"),xn("endobj")},ri=Ht.__private__.putTrailer=function(){xn("trailer"),xn("<<"),xn("/Size "+(Zn+1)),xn("/Root "+Zn+" 0 R"),xn("/Info "+(Zn-1)+" 0 R"),Mr!==null&&xn("/Encrypt "+yr.oid+" 0 R"),xn("/ID [ <"+Jr+"> <"+Jr+"> ]"),xn(">>")},li=Ht.__private__.putHeader=function(){xn("%PDF-"+hn),xn("%\xBA\xDF\xAC\xE0")},Xi=Ht.__private__.putXRef=function(){var pt="0000000000";xn("xref"),xn("0 "+(Zn+1)),xn("0000000000 65535 f ");for(var Nt=1;Nt<=Zn;Nt++)typeof ii[Nt]=="function"?xn((pt+ii[Nt]()).slice(-10)+" 00000 n "):ii[Nt]!==void 0?xn((pt+ii[Nt]).slice(-10)+" 00000 n "):xn("0000000000 00000 n ")},Pi=Ht.__private__.buildDocument=function(){_o(),bi(Ei),ua.publish("buildDocument"),li(),er(),qe(),ia(),Mr!==null&&Ha(),mi(),ti();var pt=ki;return Xi(),ri(),xn("startxref"),xn(""+pt),xn("%%EOF"),bi(ra[Or]),Ei.join(`
`)},ga=Ht.__private__.getBlob=function(pt){return new Blob([va(pt)],{type:"application/pdf"})},tr=Ht.output=Ht.__private__.output=pn(function(pt,Nt){switch(typeof(Nt=Nt||{})=="string"?Nt={filename:Nt}:Nt.filename=Nt.filename||"generated.pdf",pt){case void 0:return Pi();case"save":Ht.save(Nt.filename);break;case"arraybuffer":return va(Pi());case"blob":return ga(Pi());case"bloburi":case"bloburl":if(w.URL!==void 0&&typeof w.URL.createObjectURL=="function")return w.URL&&w.URL.createObjectURL(ga(Pi()))||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 sn="",Mn=Pi();try{sn=n(Mn)}catch(Bt){sn=n(unescape(encodeURIComponent(Mn)))}return"data:application/pdf;filename="+Nt.filename+";base64,"+sn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(w)==="[object Window]"){var hi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(Nt.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Nt)+");</script></body></html>",ot=w.open();return ot!==null&&ot.document.write(hi),ot}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(w)==="[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="'+(Nt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Nt.filename+'" width="500px" height="400px" /></body></html>',de=w.open();if(de!==null){de.document.write(ae);var ye=this;de.document.documentElement.querySelector("#pdfViewer").onload=function(){de.document.title=Nt.filename,de.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ye.output("bloburl"))}}return de}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(w)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ke='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Nt)+'"></iframe></body></html>',ct=w.open();if(ct!==null&&(ct.document.write(Ke),ct.document.title=Nt.filename),ct||typeof safari=="undefined")return ct;break;case"datauri":case"dataurl":return w.document.location.href=this.output("datauristring",Nt);default:return null}}),Lt=function(Nt){return Array.isArray(La)===!0&&La.indexOf(Nt)>-1};switch(Ue){case"pt":dn=1;break;case"mm":dn=72/25.4;break;case"cm":dn=72/2.54;break;case"in":dn=72;break;case"px":dn=Lt("px_scaling")==1?.75:96/72;break;case"pc":case"em":dn=12;break;case"ex":dn=6;break;default:throw new Error("Invalid unit: "+Ue)}var yr=null;Si(),en();var xt=function(Nt){return Mr!==null?yr.encryptor(Nt,0):function(sn){return sn}},Ut=Ht.__private__.getPageInfo=Ht.getPageInfo=function(pt){if(isNaN(pt)||pt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Aa[pt].objId,pageNumber:pt,pageContext:Aa[pt]}},ur=Ht.__private__.getPageInfoByObjId=function(pt){if(isNaN(pt)||pt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Nt in Aa)if(Aa[Nt].objId===pt)break;return Ut(Nt)},Ct=Ht.__private__.getCurrentPageInfo=Ht.getCurrentPageInfo=function(){return{objId:Aa[Or].objId,pageNumber:Or,pageContext:Aa[Or]}};Ht.addPage=function(){return Sr.apply(this,arguments),this},Ht.setPage=function(){return $n.apply(this,arguments),bi.call(this,ra[Or]),this},Ht.insertPage=function(pt){return this.addPage(),this.movePage(Or,pt),this},Ht.movePage=function(pt,Nt){var sn,Mn;if(pt>Nt){sn=ra[pt],Mn=Aa[pt];for(var hi=pt;hi>Nt;hi--)ra[hi]=ra[hi-1],Aa[hi]=Aa[hi-1];ra[Nt]=sn,Aa[Nt]=Mn,this.setPage(Nt)}else if(pt<Nt){sn=ra[pt],Mn=Aa[pt];for(var ot=pt;ot<Nt;ot++)ra[ot]=ra[ot+1],Aa[ot]=Aa[ot+1];ra[Nt]=sn,Aa[Nt]=Mn,this.setPage(Nt)}return this},Ht.deletePage=function(){return gn.apply(this,arguments),this},Ht.__private__.text=Ht.text=function(pt,Nt,sn,Mn,hi){var ot,ae,de,ye,Ke,ct,Bt,Ir,Br=(Mn=Mn||{}).scope||this;if(typeof pt=="number"&&typeof Nt=="number"&&(typeof sn=="string"||Array.isArray(sn))){var un=sn;sn=Nt,Nt=pt,pt=un}if(arguments[3]instanceof ca==!1?(de=arguments[4],ye=arguments[5],C()(Bt=arguments[3])==="object"&&Bt!==null||(typeof de=="string"&&(ye=de,de=null),typeof Bt=="string"&&(ye=Bt,Bt=null),typeof Bt=="number"&&(de=Bt,Bt=null),Mn={flags:Bt,angle:de,align:ye})):(Yi("The transform parameter of text() with a Matrix value"),Ir=hi),isNaN(Nt)||isNaN(sn)||pt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(pt.length===0)return Br;var zn="",Rn=!1,Fn=typeof Mn.lineHeightFactor=="number"?Mn.lineHeightFactor:fa,Ai=Br.internal.scaleFactor;function Di(ms){return ms=ms.split(" ").join(Array(Mn.TabLen||9).join(" ")),br(ms,Bt)}function ya(ms){for(var Ss,As=ms.concat(),Ts=[],Us=As.length;Us--;)typeof(Ss=As.shift())=="string"?Ts.push(Ss):Array.isArray(ms)&&(Ss.length===1||Ss[1]===void 0&&Ss[2]===void 0)?Ts.push(Ss[0]):Ts.push([Ss[0],Ss[1],Ss[2]]);return Ts}function Ua(ms,Ss){var As;if(typeof ms=="string")As=Ss(ms)[0];else if(Array.isArray(ms)){for(var Ts,Us,_l=ms.concat(),Il=[],Sl=_l.length;Sl--;)typeof(Ts=_l.shift())=="string"?Il.push(Ss(Ts)[0]):Array.isArray(Ts)&&typeof Ts[0]=="string"&&(Us=Ss(Ts[0],Ts[1],Ts[2]),Il.push([Us[0],Us[1],Us[2]]));As=Il}return As}var to=!1,go=!0;if(typeof pt=="string")to=!0;else if(Array.isArray(pt)){var wo=pt.concat();ae=[];for(var qo,Mo=wo.length;Mo--;)(typeof(qo=wo.shift())!="string"||Array.isArray(qo)&&typeof qo[0]!="string")&&(go=!1);to=go}if(to===!1)throw new Error('Type of text must be string or Array. "'+pt+'" is not recognized.');typeof pt=="string"&&(pt=pt.match(/[\r?\n]/)?pt.split(/\r\n|\r|\n/g):[pt]);var $i=ma/Br.internal.scaleFactor,To=$i*(fa-1);switch(Mn.baseline){case"bottom":sn-=To;break;case"top":sn+=$i-To;break;case"hanging":sn+=$i-2*To;break;case"middle":sn+=$i/2-To}if((ct=Mn.maxWidth||0)>0&&(typeof pt=="string"?pt=Br.splitTextToSize(pt,ct):Object.prototype.toString.call(pt)==="[object Array]"&&(pt=pt.reduce(function(ms,Ss){return ms.concat(Br.splitTextToSize(Ss,ct))},[]))),ot={text:pt,x:Nt,y:sn,options:Mn,mutex:{pdfEscape:br,activeFontKey:Sn,fonts:pi,activeFontSize:ma}},ua.publish("preProcessText",ot),pt=ot.text,de=(Mn=ot.options).angle,Ir instanceof ca==!1&&de&&typeof de=="number"){de*=Math.PI/180,Mn.rotationDirection===0&&(de=-de),ni===Ur.ADVANCED&&(de=-de);var fo=Math.cos(de),ts=Math.sin(de);Ir=new ca(fo,ts,-ts,fo,0,0)}else de&&de instanceof ca&&(Ir=de);ni!==Ur.ADVANCED||Ir||(Ir=lo),(Ke=Mn.charSpace||No)!==void 0&&(zn+=Ni(fr(Ke))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),Mn.lang;var Jo=-1,zo=Mn.renderingMode!==void 0?Mn.renderingMode:Mn.stroke,is=Br.internal.getCurrentPageInfo().pageContext;switch(zo){case 0:case!1:case"fill":Jo=0;break;case 1:case!0:case"stroke":Jo=1;break;case 2:case"fillThenStroke":Jo=2;break;case 3:case"invisible":Jo=3;break;case 4:case"fillAndAddForClipping":Jo=4;break;case 5:case"strokeAndAddPathForClipping":Jo=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Jo=6;break;case 7:case"addToPathForClipping":Jo=7}var Rs=is.usedRenderingMode!==void 0?is.usedRenderingMode:-1;Jo!==-1?zn+=Jo+` Tr
`:Rs!==-1&&(zn+=`0 Tr
`),Jo!==-1&&(is.usedRenderingMode=Jo),ye=Mn.align||"left";var gs,ps=ma*Fn,Ps=Br.internal.pageSize.getWidth(),Es=pi[Sn];Ke=Mn.charSpace||No,ct=Mn.maxWidth||0,Bt=Object.assign({autoencode:!0,noBOM:!0},Mn.flags);var Vs=[];if(Object.prototype.toString.call(pt)==="[object Array]"){var Ks;ae=ya(pt),ye!=="left"&&(gs=ae.map(function(ms){return Br.getStringUnitWidth(ms,{font:Es,charSpace:Ke,fontSize:ma,doKerning:!1})*ma/Ai}));var Gs,ws=0;if(ye==="right"){Nt-=gs[0],pt=[],Mo=ae.length;for(var Os=0;Os<Mo;Os++)Os===0?(Gs=ao(Nt),Ks=ka(sn)):(Gs=fr(ws-gs[Os]),Ks=-ps),pt.push([ae[Os],Gs,Ks]),ws=gs[Os]}else if(ye==="center"){Nt-=gs[0]/2,pt=[],Mo=ae.length;for(var $s=0;$s<Mo;$s++)$s===0?(Gs=ao(Nt),Ks=ka(sn)):(Gs=fr((ws-gs[$s])/2),Ks=-ps),pt.push([ae[$s],Gs,Ks]),ws=gs[$s]}else if(ye==="left"){pt=[],Mo=ae.length;for(var nl=0;nl<Mo;nl++)pt.push(ae[nl])}else{if(ye!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');pt=[],Mo=ae.length,ct=ct!==0?ct:Ps;for(var il=0;il<Mo;il++)Ks=il===0?ka(sn):-ps,Gs=il===0?ao(Nt):0,il<Mo-1?Vs.push(Ni(fr((ct-gs[il])/(ae[il].split(" ").length-1)))):Vs.push(0),pt.push([ae[il],Gs,Ks])}}var hl=typeof Mn.R2L=="boolean"?Mn.R2L:Wa;hl===!0&&(pt=Ua(pt,function(ms,Ss,As){return[ms.split("").reverse().join(""),Ss,As]})),ot={text:pt,x:Nt,y:sn,options:Mn,mutex:{pdfEscape:br,activeFontKey:Sn,fonts:pi,activeFontSize:ma}},ua.publish("postProcessText",ot),pt=ot.text,Rn=ot.mutex.isHex||!1;var Nl=pi[Sn].encoding;Nl!=="WinAnsiEncoding"&&Nl!=="StandardEncoding"||(pt=Ua(pt,function(ms,Ss,As){return[Di(ms),Ss,As]})),ae=ya(pt),pt=[];for(var Al,yl,al,Ms=0,Ws=1,Is=Array.isArray(ae[0])?Ws:Ms,bl="",wl=function(Ss,As,Ts){var Us="";return Ts instanceof ca?(Ts=typeof Mn.angle=="number"?yo(Ts,new ca(1,0,0,1,Ss,As)):yo(new ca(1,0,0,1,Ss,As),Ts),ni===Ur.ADVANCED&&(Ts=yo(new ca(1,0,0,-1,0,0),Ts)),Us=Ts.join(" ")+` Tm
`):Us=Ni(Ss)+" "+Ni(As)+` Td
`,Us},ol=0;ol<ae.length;ol++){switch(bl="",Is){case Ws:al=(Rn?"<":"(")+ae[ol][0]+(Rn?">":")"),Al=parseFloat(ae[ol][1]),yl=parseFloat(ae[ol][2]);break;case Ms:al=(Rn?"<":"(")+ae[ol]+(Rn?">":")"),Al=ao(Nt),yl=ka(sn)}Vs!==void 0&&Vs[ol]!==void 0&&(bl=Vs[ol]+` Tw
`),ol===0?pt.push(bl+wl(Al,yl,Ir)+al):Is===Ms?pt.push(bl+al):Is===Ws&&pt.push(bl+wl(Al,yl,Ir)+al)}pt=Is===Ms?pt.join(` Tj
T* `):pt.join(` Tj
`),pt+=` Tj
`;var el=`BT
/`;return el+=Sn+" "+ma+` Tf
`,el+=Ni(ma*Fn)+` TL
`,el+=Fr+`
`,el+=zn,el+=pt,xn(el+="ET"),Gr[Sn]=!0,Br};var dr=Ht.__private__.clip=Ht.clip=function(pt){return xn(pt==="evenodd"?"W*":"W"),this};Ht.clipEvenOdd=function(){return dr("evenodd")},Ht.__private__.discardPath=Ht.discardPath=function(){return xn("n"),this};var nr=Ht.__private__.isValidStyle=function(pt){var Nt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(pt)!==-1&&(Nt=!0),Nt};Ht.__private__.setDefaultPathOperation=Ht.setDefaultPathOperation=function(pt){return nr(pt)&&(Gt=pt),this};var Wr=Ht.__private__.getStyle=Ht.getStyle=function(pt){var Nt=Gt;switch(pt){case"D":case"S":Nt="S";break;case"F":Nt="f";break;case"FD":case"DF":Nt="B";break;case"f":case"f*":case"B":case"B*":Nt=pt}return Nt},En=Ht.close=function(){return xn("h"),this};Ht.stroke=function(){return xn("S"),this},Ht.fill=function(pt){return Cn("f",pt),this},Ht.fillEvenOdd=function(pt){return Cn("f*",pt),this},Ht.fillStroke=function(pt){return Cn("B",pt),this},Ht.fillStrokeEvenOdd=function(pt){return Cn("B*",pt),this};var Cn=function(Nt,sn){C()(sn)==="object"?Qn(sn,Nt):xn(Nt)},Nn=function(Nt){Nt===null||ni===Ur.ADVANCED&&Nt===void 0||(Nt=Wr(Nt),xn(Nt))};function oi(pt,Nt,sn,Mn,hi){var ot=new F(Nt||this.boundingBox,sn||this.xStep,Mn||this.yStep,this.gState,hi||this.matrix);ot.stream=this.stream;var ae=pt+"$$"+this.cloneIndex+++"$$";return Na(ae,ot),ot}var Qn=function(Nt,sn){var Mn=pa[Nt.key],hi=Mi[Mn];if(hi instanceof H)xn("q"),xn(Vi(sn)),hi.gState&&Ht.setGState(hi.gState),xn(Nt.matrix.toString()+" cm"),xn("/"+Mn+" sh"),xn("Q");else if(hi instanceof F){var ot=new ca(1,0,0,-1,0,bo());Nt.matrix&&(ot=ot.multiply(Nt.matrix||lo),Mn=oi.call(hi,Nt.key,Nt.boundingBox,Nt.xStep,Nt.yStep,ot).id),xn("q"),xn("/Pattern cs"),xn("/"+Mn+" scn"),hi.gState&&Ht.setGState(hi.gState),xn(sn),xn("Q")}},Vi=function(Nt){switch(Nt){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"}},wi=Ht.moveTo=function(pt,Nt){return xn(Ni(fr(pt))+" "+Ni(Qt(Nt))+" m"),this},Ea=Ht.lineTo=function(pt,Nt){return xn(Ni(fr(pt))+" "+Ni(Qt(Nt))+" l"),this},aa=Ht.curveTo=function(pt,Nt,sn,Mn,hi,ot){return xn([Ni(fr(pt)),Ni(Qt(Nt)),Ni(fr(sn)),Ni(Qt(Mn)),Ni(fr(hi)),Ni(Qt(ot)),"c"].join(" ")),this};Ht.__private__.line=Ht.line=function(pt,Nt,sn,Mn,hi){if(isNaN(pt)||isNaN(Nt)||isNaN(sn)||isNaN(Mn)||!nr(hi))throw new Error("Invalid arguments passed to jsPDF.line");return ni===Ur.COMPAT?this.lines([[sn-pt,Mn-Nt]],pt,Nt,[1,1],hi||"S"):this.lines([[sn-pt,Mn-Nt]],pt,Nt,[1,1]).stroke()},Ht.__private__.lines=Ht.lines=function(pt,Nt,sn,Mn,hi,ot){var ae,de,ye,Ke,ct,Bt,Ir,Br,un,zn,Rn,Fn;if(typeof pt=="number"&&(Fn=sn,sn=Nt,Nt=pt,pt=Fn),Mn=Mn||[1,1],ot=ot||!1,isNaN(Nt)||isNaN(sn)||!Array.isArray(pt)||!Array.isArray(Mn)||!nr(hi)||typeof ot!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(wi(Nt,sn),ae=Mn[0],de=Mn[1],Ke=pt.length,zn=Nt,Rn=sn,ye=0;ye<Ke;ye++)(ct=pt[ye]).length===2?(zn=ct[0]*ae+zn,Rn=ct[1]*de+Rn,Ea(zn,Rn)):(Bt=ct[0]*ae+zn,Ir=ct[1]*de+Rn,Br=ct[2]*ae+zn,un=ct[3]*de+Rn,zn=ct[4]*ae+zn,Rn=ct[5]*de+Rn,aa(Bt,Ir,Br,un,zn,Rn));return ot&&En(),Nn(hi),this},Ht.path=function(pt){for(var Nt=0;Nt<pt.length;Nt++){var sn=pt[Nt],Mn=sn.c;switch(sn.op){case"m":wi(Mn[0],Mn[1]);break;case"l":Ea(Mn[0],Mn[1]);break;case"c":aa.apply(this,Mn);break;case"h":En()}}return this},Ht.__private__.rect=Ht.rect=function(pt,Nt,sn,Mn,hi){if(isNaN(pt)||isNaN(Nt)||isNaN(sn)||isNaN(Mn)||!nr(hi))throw new Error("Invalid arguments passed to jsPDF.rect");return ni===Ur.COMPAT&&(Mn=-Mn),xn([Ni(fr(pt)),Ni(Qt(Nt)),Ni(fr(sn)),Ni(fr(Mn)),"re"].join(" ")),Nn(hi),this},Ht.__private__.triangle=Ht.triangle=function(pt,Nt,sn,Mn,hi,ot,ae){if(isNaN(pt)||isNaN(Nt)||isNaN(sn)||isNaN(Mn)||isNaN(hi)||isNaN(ot)||!nr(ae))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[sn-pt,Mn-Nt],[hi-sn,ot-Mn],[pt-hi,Nt-ot]],pt,Nt,[1,1],ae,!0),this},Ht.__private__.roundedRect=Ht.roundedRect=function(pt,Nt,sn,Mn,hi,ot,ae){if(isNaN(pt)||isNaN(Nt)||isNaN(sn)||isNaN(Mn)||isNaN(hi)||isNaN(ot)||!nr(ae))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var de=4/3*(Math.SQRT2-1);return hi=Math.min(hi,.5*sn),ot=Math.min(ot,.5*Mn),this.lines([[sn-2*hi,0],[hi*de,0,hi,ot-ot*de,hi,ot],[0,Mn-2*ot],[0,ot*de,-hi*de,ot,-hi,ot],[2*hi-sn,0],[-hi*de,0,-hi,-ot*de,-hi,-ot],[0,2*ot-Mn],[0,-ot*de,hi*de,-ot,hi,-ot]],pt+hi,Nt,[1,1],ae,!0),this},Ht.__private__.ellipse=Ht.ellipse=function(pt,Nt,sn,Mn,hi){if(isNaN(pt)||isNaN(Nt)||isNaN(sn)||isNaN(Mn)||!nr(hi))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ot=4/3*(Math.SQRT2-1)*sn,ae=4/3*(Math.SQRT2-1)*Mn;return wi(pt+sn,Nt),aa(pt+sn,Nt-ae,pt+ot,Nt-Mn,pt,Nt-Mn),aa(pt-ot,Nt-Mn,pt-sn,Nt-ae,pt-sn,Nt),aa(pt-sn,Nt+ae,pt-ot,Nt+Mn,pt,Nt+Mn),aa(pt+ot,Nt+Mn,pt+sn,Nt+ae,pt+sn,Nt),Nn(hi),this},Ht.__private__.circle=Ht.circle=function(pt,Nt,sn,Mn){if(isNaN(pt)||isNaN(Nt)||isNaN(sn)||!nr(Mn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(pt,Nt,sn,sn,Mn)},Ht.setFont=function(pt,Nt,sn){return sn&&(Nt=Ri(Nt,sn)),Sn=Gn(pt,Nt,{disableWarning:!1}),this};var Ca=Ht.__private__.getFont=Ht.getFont=function(){return pi[Gn.apply(Ht,arguments)]};Ht.__private__.getFontList=Ht.getFontList=function(){var pt,Nt,sn={};for(pt in di)if(di.hasOwnProperty(pt))for(Nt in sn[pt]=[],di[pt])di[pt].hasOwnProperty(Nt)&&sn[pt].push(Nt);return sn},Ht.addFont=function(pt,Nt,sn,Mn,hi){var ot=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ot.indexOf(arguments[3])!==-1?hi=arguments[3]:arguments[3]&&ot.indexOf(arguments[3])==-1&&(sn=Ri(sn,Mn)),hi=hi||"Identity-H",Rr.call(this,pt,Nt,sn,hi)};var fa,ha=Qe.lineWidth||.200025,qi=Ht.__private__.setLineWidth=Ht.setLineWidth=function(pt){return xn(Ni(fr(pt))+" w"),this};Ht.__private__.setLineDash=K.API.setLineDash=K.API.setLineDashPattern=function(pt,Nt){if(pt=pt||[],Nt=Nt||0,isNaN(Nt)||!Array.isArray(pt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return pt=pt.map(function(sn){return Ni(fr(sn))}).join(" "),Nt=Ni(fr(Nt)),xn("["+pt+"] "+Nt+" d"),this};var Ma=Ht.__private__.getLineHeight=Ht.getLineHeight=function(){return ma*fa};Ht.__private__.getLineHeight=Ht.getLineHeight=function(){return ma*fa};var za=Ht.__private__.setLineHeightFactor=Ht.setLineHeightFactor=function(pt){return typeof(pt=pt||1.15)=="number"&&(fa=pt),this},la=Ht.__private__.getLineHeightFactor=Ht.getLineHeightFactor=function(){return fa};za(Qe.lineHeight);var ao=Ht.__private__.getHorizontalCoordinate=function(pt){return fr(pt)},ka=Ht.__private__.getVerticalCoordinate=function(pt){return ni===Ur.ADVANCED?pt:Aa[Or].mediaBox.topRightY-Aa[Or].mediaBox.bottomLeftY-fr(pt)},Ba=Ht.__private__.getHorizontalCoordinateString=Ht.getHorizontalCoordinateString=function(pt){return Ni(ao(pt))},oo=Ht.__private__.getVerticalCoordinateString=Ht.getVerticalCoordinateString=function(pt){return Ni(ka(pt))},ja=Qe.strokeColor||"0 G";Ht.__private__.getStrokeColor=Ht.getDrawColor=function(){return Ho(ja)},Ht.__private__.setStrokeColor=Ht.setDrawColor=function(pt,Nt,sn,Mn){return ja=Pr({ch1:pt,ch2:Nt,ch3:sn,ch4:Mn,pdfColorType:"draw",precision:2}),xn(ja),this};var Pa=Qe.fillColor||"0 g";Ht.__private__.getFillColor=Ht.getFillColor=function(){return Ho(Pa)},Ht.__private__.setFillColor=Ht.setFillColor=function(pt,Nt,sn,Mn){return Pa=Pr({ch1:pt,ch2:Nt,ch3:sn,ch4:Mn,pdfColorType:"fill",precision:2}),xn(Pa),this};var Fr=Qe.textColor||"0 g",Oa=Ht.__private__.getTextColor=Ht.getTextColor=function(){return Ho(Fr)};Ht.__private__.setTextColor=Ht.setTextColor=function(pt,Nt,sn,Mn){return Fr=Pr({ch1:pt,ch2:Nt,ch3:sn,ch4:Mn,pdfColorType:"text",precision:3}),this};var No=Qe.charSpace,Po=Ht.__private__.getCharSpace=Ht.getCharSpace=function(){return parseFloat(No||0)};Ht.__private__.setCharSpace=Ht.setCharSpace=function(pt){if(isNaN(pt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return No=pt,this};var Qo=0;Ht.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},Ht.__private__.setLineCap=Ht.setLineCap=function(pt){var Nt=Ht.CapJoinStyles[pt];if(Nt===void 0)throw new Error("Line cap style of '"+pt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Qo=Nt,xn(Nt+" J"),this};var ss=0;Ht.__private__.setLineJoin=Ht.setLineJoin=function(pt){var Nt=Ht.CapJoinStyles[pt];if(Nt===void 0)throw new Error("Line join style of '"+pt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ss=Nt,xn(Nt+" j"),this},Ht.__private__.setLineMiterLimit=Ht.__private__.setMiterLimit=Ht.setLineMiterLimit=Ht.setMiterLimit=function(pt){if(pt=pt||0,isNaN(pt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return xn(Ni(fr(pt))+" M"),this},Ht.GState=B,Ht.setGState=function(pt){(pt=typeof pt=="string"?_i[da[pt]]:rs(null,pt)).equals(na)||(xn("/"+pt.id+" gs"),na=pt)};var rs=function(Nt,sn){if(!Nt||!da[Nt]){var Mn=!1;for(var hi in _i)if(_i.hasOwnProperty(hi)&&_i[hi].equals(sn)){Mn=!0;break}if(Mn)sn=_i[hi];else{var ot="GS"+(Object.keys(_i).length+1).toString(10);_i[ot]=sn,sn.id=ot}return Nt&&(da[Nt]=sn.id),ua.publish("addGState",sn),sn}};Ht.addGState=function(pt,Nt){return rs(pt,Nt),this},Ht.saveGraphicsState=function(){return xn("q"),Ki.push({key:Sn,size:ma,color:Fr}),this},Ht.restoreGraphicsState=function(){xn("Q");var pt=Ki.pop();return Sn=pt.key,ma=pt.size,Fr=pt.color,na=null,this},Ht.setCurrentTransformationMatrix=function(pt){return xn(pt.toString()+" cm"),this},Ht.comment=function(pt){return xn("#"+pt),this};var Ko=function(Nt,sn){var Mn=Nt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Mn},set:function(de){isNaN(de)||(Mn=parseFloat(de))}});var hi=sn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return hi},set:function(de){isNaN(de)||(hi=parseFloat(de))}});var ot="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ot},set:function(de){ot=de.toString()}}),this},$o=function(Nt,sn,Mn,hi){Ko.call(this,Nt,sn),this.type="rect";var ot=Mn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ot},set:function(ye){isNaN(ye)||(ot=parseFloat(ye))}});var ae=hi||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ae},set:function(ye){isNaN(ye)||(ae=parseFloat(ye))}}),this},Uo=function(){this.page=Sa,this.currentPage=Or,this.pages=ra.slice(0),this.pagesContext=Aa.slice(0),this.x=Kn,this.y=si,this.matrix=vi,this.width=Ka(Or),this.height=bo(Or),this.outputDestination=wa,this.id="",this.objectNumber=-1};Uo.prototype.restore=function(){Sa=this.page,Or=this.currentPage,Aa=this.pagesContext,ra=this.pages,Kn=this.x,si=this.y,vi=this.matrix,Xa(Or,this.width),Eo(Or,this.height),wa=this.outputDestination};var Wo=function(Nt,sn,Mn,hi,ot){no.push(new Uo),Sa=Or=0,ra=[],Kn=Nt,si=sn,vi=ot,In([Mn,hi])},Go=function(Nt){if(co[Nt])no.pop().restore();else{var sn=new Uo,Mn="Xo"+(Object.keys(sa).length+1).toString(10);sn.id=Mn,co[Nt]=Mn,sa[Mn]=sn,ua.publish("addFormObject",sn),no.pop().restore()}};for(var Oo in Ht.beginFormObject=function(pt,Nt,sn,Mn,hi){return Wo(pt,Nt,sn,Mn,hi),this},Ht.endFormObject=function(pt){return Go(pt),this},Ht.doFormObject=function(pt,Nt){var sn=sa[co[pt]];return xn("q"),xn(Nt.toString()+" cm"),xn("/"+sn.id+" Do"),xn("Q"),this},Ht.getFormObject=function(pt){var Nt=sa[co[pt]];return{x:Nt.x,y:Nt.y,width:Nt.width,height:Nt.height,matrix:Nt.matrix}},Ht.save=function(pt,Nt){return pt=pt||"generated.pdf",(Nt=Nt||{}).returnPromise=Nt.returnPromise||!1,Nt.returnPromise===!1?(e(ga(Pi()),pt),typeof e.unload=="function"&&w.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(sn,Mn){try{var hi=e(ga(Pi()),pt);typeof e.unload=="function"&&w.setTimeout&&setTimeout(e.unload,911),sn(hi)}catch(ot){Mn(ot.message)}})},K.API)K.API.hasOwnProperty(Oo)&&(Oo==="events"&&K.API.events.length?function(pt,Nt){var sn,Mn,hi;for(hi=Nt.length-1;hi!==-1;hi--)sn=Nt[hi][0],Mn=Nt[hi][1],pt.subscribe.apply(pt,[sn].concat(typeof Mn=="function"?[Mn]:Mn))}(ua,K.API.events):Ht[Oo]=K.API[Oo]);var Ka=Ht.getPageWidth=function(pt){return(Aa[pt=pt||Or].mediaBox.topRightX-Aa[pt].mediaBox.bottomLeftX)/dn},Xa=Ht.setPageWidth=function(pt,Nt){Aa[pt].mediaBox.topRightX=Nt*dn+Aa[pt].mediaBox.bottomLeftX},bo=Ht.getPageHeight=function(pt){return(Aa[pt=pt||Or].mediaBox.topRightY-Aa[pt].mediaBox.bottomLeftY)/dn},Eo=Ht.setPageHeight=function(pt,Nt){Aa[pt].mediaBox.topRightY=Nt*dn+Aa[pt].mediaBox.bottomLeftY};return Ht.internal={pdfEscape:br,getStyle:Wr,getFont:Ca,getFontSize:Ya,getCharSpace:Po,getTextColor:Oa,getLineHeight:Ma,getLineHeightFactor:la,write:Zi,getHorizontalCoordinate:ao,getVerticalCoordinate:ka,getCoordinateString:Ba,getVerticalCoordinateString:oo,collections:{},newObject:ho,newAdditionalObject:Lo,newObjectDeferred:Io,newObjectDeferredBegin:eo,getFilters:An,putStream:Pn,events:ua,scaleFactor:dn,pageSize:{getWidth:function(){return Ka(Or)},setWidth:function(Nt){Xa(Or,Nt)},getHeight:function(){return bo(Or)},setHeight:function(Nt){Eo(Or,Nt)}},encryptionOptions:Mr,encryption:yr,getEncryptor:xt,output:tr,getNumberOfPages:qn,pages:ra,out:xn,f2:On,f3:zr,getPageInfo:Ut,getPageInfoByObjId:ur,getCurrentPageInfo:Ct,getPDFVersion:or,Point:Ko,Rectangle:$o,Matrix:ca,hasHotfix:Lt},Object.defineProperty(Ht.internal.pageSize,"width",{get:function(){return Ka(Or)},set:function(Nt){Xa(Or,Nt)},enumerable:!0,configurable:!0}),Object.defineProperty(Ht.internal.pageSize,"height",{get:function(){return bo(Or)},set:function(Nt){Eo(Or,Nt)},enumerable:!0,configurable:!0}),Cr.call(Ht,ta),Sn="F1",Sr(Xe,Ne),ua.publish("initialized"),Ht}D.prototype.lsbFirstWord=function(Qe){return String.fromCharCode(Qe>>0&255,Qe>>8&255,Qe>>16&255,Qe>>24&255)},D.prototype.toHexString=function(Qe){return Qe.split("").map(function(be){return("0"+(255&be.charCodeAt(0)).toString(16)).slice(-2)}).join("")},D.prototype.hexToBytes=function(Qe){for(var be=[],Ne=0;Ne<Qe.length;Ne+=2)be.push(String.fromCharCode(parseInt(Qe.substr(Ne,2),16)));return be.join("")},D.prototype.processOwnerPassword=function(Qe,be){return I(S(be).substr(0,5),Qe)},D.prototype.encryptor=function(Qe,be){var Ne=S(this.encryptionKey+String.fromCharCode(255&Qe,Qe>>8&255,Qe>>16&255,255&be,be>>8&255)).substr(0,10);return function(Ue){return I(Ne,Ue)}},B.prototype.equals=function(Qe){var be,Ne="id,objectNumber,equals";if(!Qe||C()(Qe)!==C()(this))return!1;var Ue=0;for(be in this)if(!(Ne.indexOf(be)>=0)){if(this.hasOwnProperty(be)&&!Qe.hasOwnProperty(be))return!1;if(this[be]!==Qe[be])return!1;Ue++}for(be in Qe)Qe.hasOwnProperty(be)&&Ne.indexOf(be)<0&&Ue--;return Ue===0},K.API={events:[]},K.version="2.4.0";var U=K.API,V=1,z=function(be){return be.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(be){return be.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(be){return be.toFixed(2)},ce=function(be){return be.toFixed(5)};U.__acroform__={};var ie=function(be,Ne){be.prototype=Object.create(Ne.prototype),be.prototype.constructor=be},ve=function(be){return be*V},Ee=function(be){var Ne=new _e,Ue=J.internal.getHeight(be)||0,Xe=J.internal.getWidth(be)||0;return Ne.BBox=[0,0,Number(q(Xe)),Number(q(Ue))],Ne},Le=U.__acroform__.setBit=function(Qe,be){if(Qe=Qe||0,be=be||0,isNaN(Qe)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Qe|=1<<be},He=U.__acroform__.clearBit=function(Qe,be){if(Qe=Qe||0,be=be||0,isNaN(Qe)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Qe&=~(1<<be)},ge=U.__acroform__.getBit=function(Qe,be){if(isNaN(Qe)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(Qe&1<<be)==0?0:1},Fe=U.__acroform__.getBitForPdf=function(Qe,be){if(isNaN(Qe)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ge(Qe,be-1)},Q=U.__acroform__.setBitForPdf=function(Qe,be){if(isNaN(Qe)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Le(Qe,be-1)},fe=U.__acroform__.clearBitForPdf=function(Qe,be){if(isNaN(Qe)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return He(Qe,be-1)},Je=U.__acroform__.calculateCoordinates=function(Qe,be){var Ne=be.internal.getHorizontalCoordinate,Ue=be.internal.getVerticalCoordinate,Xe=Qe[0],ze=Qe[1],Ze=Qe[2],bt=Qe[3],ut={};return ut.lowerLeft_X=Ne(Xe)||0,ut.lowerLeft_Y=Ue(ze+bt)||0,ut.upperRight_X=Ne(Xe+Ze)||0,ut.upperRight_Y=Ue(ze)||0,[Number(q(ut.lowerLeft_X)),Number(q(ut.lowerLeft_Y)),Number(q(ut.upperRight_X)),Number(q(ut.upperRight_Y))]},ne=function(be){if(be.appearanceStreamContent)return be.appearanceStreamContent;if(be.V||be.DV){var Ne=[],Ue=be._V||be.DV,Xe=X(be,Ue),ze=be.scope.internal.getFont(be.fontName,be.fontStyle).id;Ne.push("/Tx BMC"),Ne.push("q"),Ne.push("BT"),Ne.push(be.scope.__private__.encodeColorString(be.color)),Ne.push("/"+ze+" "+q(Xe.fontSize)+" Tf"),Ne.push("1 0 0 1 0 0 Tm"),Ne.push(Xe.text),Ne.push("ET"),Ne.push("Q"),Ne.push("EMC");var Ze=Ee(be);return Ze.scope=be.scope,Ze.stream=Ne.join(`
`),Ze}},X=function(be,Ne){var Ue=be.fontSize===0?be.maxFontSize:be.fontSize,Xe={text:"",fontSize:""},ze=(Ne=(Ne=Ne.substr(0,1)=="("?Ne.substr(1):Ne).substr(Ne.length-1)==")"?Ne.substr(0,Ne.length-1):Ne).split(" "),Ze=Ue,bt=J.internal.getHeight(be)||0;bt=bt<0?-bt:bt;var ut=J.internal.getWidth(be)||0;ut=ut<0?-ut:ut;var Gt=function(On,zr,fr){if(On+1<ze.length){var Nr=zr+" "+ze[On+1];return G(Nr,be,fr).width<=ut-4}return!1};Ze++;e:for(;Ze>0;){Ne="",Ze--;var Mr,Lr,Gr=G("3",be,Ze).height,Ht=be.multiline?bt-Ze:(bt-Gr)/2,hn=Ht+=2,or=0,vn=0;if(Ze<=0){Ne=`(...) Tj
`,Ne+="% Width of Text: "+G(Ne,be,Ze=12).width+", FieldWidth:"+ut+`
`;break}var nn="",Ur=0;for(var ni in ze)if(ze.hasOwnProperty(ni)){nn=(nn+=ze[ni]+" ").substr(nn.length-1)==" "?nn.substr(0,nn.length-1):nn;var Oi=parseInt(ni),Hi=Gt(Oi,nn,Ze),Ri=ni>=ze.length-1;if(Hi&&!Ri){nn+=" ";continue}if(Hi||Ri){if(Ri)vn=Oi;else if(be.multiline&&(Gr+2)*(Ur+2)+2>bt)continue e}else{if(!be.multiline)continue e;if((Gr+2)*(Ur+2)+2>bt)continue e;vn=Oi}for(var Ni="",Yi=or;Yi<=vn;Yi++)Ni+=ze[Yi]+" ";switch(Ni=Ni.substr(Ni.length-1)==" "?Ni.substr(0,Ni.length-1):Ni,Lr=G(Ni,be,Ze).width,be.textAlign){case"right":Mr=ut-Lr-2;break;case"center":Mr=(ut-Lr)/2;break;case"left":default:Mr=2}Ne+=q(Mr)+" "+q(hn)+` Td
`,Ne+="("+z(Ni)+`) Tj
`,Ne+=-q(Mr)+` 0 Td
`,hn=-(Ze+2),Lr=0,or=vn+1,Ur++,nn=""}break}return Xe.text=Ne,Xe.fontSize=Ze,Xe},G=function(be,Ne,Ue){var Xe=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle),ze=Ne.scope.getStringUnitWidth(be,{font:Xe,fontSize:parseFloat(Ue),charSpace:0})*parseFloat(Ue);return{height:Ne.scope.getStringUnitWidth("3",{font:Xe,fontSize:parseFloat(Ue),charSpace:0})*parseFloat(Ue)*1.5,width:ze}},te={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},we=function(be,Ne){var Ue={type:"reference",object:be};Ne.internal.getPageInfo(be.page).pageContext.annotations.find(function(Xe){return Xe.type===Ue.type&&Xe.object===Ue.object})===void 0&&Ne.internal.getPageInfo(be.page).pageContext.annotations.push(Ue)},he=function(be,Ne){for(var Ue in be)if(be.hasOwnProperty(Ue)){var Xe=Ue,ze=be[Ue];Ne.internal.newObjectDeferredBegin(ze.objId,!0),C()(ze)==="object"&&typeof ze.putStream=="function"&&ze.putStream(),delete be[Xe]}},Pe=function(be,Ne){if(Ne.scope=be,be.internal!==void 0&&(be.internal.acroformPlugin===void 0||be.internal.acroformPlugin.isInitialized===!1)){if(gt.FieldNum=0,be.internal.acroformPlugin=JSON.parse(JSON.stringify(te)),be.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");V=be.internal.scaleFactor,be.internal.acroformPlugin.acroFormDictionaryRoot=new $e,be.internal.acroformPlugin.acroFormDictionaryRoot.scope=be,be.internal.acroformPlugin.acroFormDictionaryRoot._eventID=be.internal.events.subscribe("postPutResources",function(){!function(Ue){Ue.internal.events.unsubscribe(Ue.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ue.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ue.internal.acroformPlugin.printedOut=!0}(be)}),be.internal.events.subscribe("buildDocument",function(){!function(Ue){Ue.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Xe=Ue.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ze in Xe)if(Xe.hasOwnProperty(ze)){var Ze=Xe[ze];Ze.objId=void 0,Ze.hasAnnotation&&we(Ze,Ue)}}(be)}),be.internal.events.subscribe("putCatalog",function(){!function(Ue){if(Ue.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ue.internal.write("/AcroForm "+Ue.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(be)}),be.internal.events.subscribe("postPutPages",function(Ue){!function(Xe,ze){var Ze=!Xe;for(var bt in Xe||(ze.internal.newObjectDeferredBegin(ze.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ze.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Xe=Xe||ze.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Xe.hasOwnProperty(bt)){var ut=Xe[bt],Gt=[],Mr=ut.Rect;if(ut.Rect&&(ut.Rect=Je(ut.Rect,ze)),ze.internal.newObjectDeferredBegin(ut.objId,!0),ut.DA=J.createDefaultAppearanceStream(ut),C()(ut)==="object"&&typeof ut.getKeyValueListForStream=="function"&&(Gt=ut.getKeyValueListForStream()),ut.Rect=Mr,ut.hasAppearanceStream&&!ut.appearanceStreamContent){var Lr=ne(ut);Gt.push({key:"AP",value:"<</N "+Lr+">>"}),ze.internal.acroformPlugin.xForms.push(Lr)}if(ut.appearanceStreamContent){var Gr="";for(var Ht in ut.appearanceStreamContent)if(ut.appearanceStreamContent.hasOwnProperty(Ht)){var hn=ut.appearanceStreamContent[Ht];if(Gr+="/"+Ht+" ",Gr+="<<",Object.keys(hn).length>=1||Array.isArray(hn)){for(var bt in hn)if(hn.hasOwnProperty(bt)){var or=hn[bt];typeof or=="function"&&(or=or.call(ze,ut)),Gr+="/"+bt+" "+or+" ",ze.internal.acroformPlugin.xForms.indexOf(or)>=0||ze.internal.acroformPlugin.xForms.push(or)}}else typeof(or=hn)=="function"&&(or=or.call(ze,ut)),Gr+="/"+bt+" "+or,ze.internal.acroformPlugin.xForms.indexOf(or)>=0||ze.internal.acroformPlugin.xForms.push(or);Gr+=">>"}Gt.push({key:"AP",value:`<<
`+Gr+">>"})}ze.internal.putStream({additionalKeyValues:Gt,objectId:ut.objId}),ze.internal.out("endobj")}Ze&&he(ze.internal.acroformPlugin.xForms,ze)}(Ue,be)}),be.internal.acroformPlugin.isInitialized=!0}},Oe=U.__acroform__.arrayToPdfArray=function(Qe,be,Ne){var Ue=function(bt){return bt};if(Array.isArray(Qe)){for(var Xe="[",ze=0;ze<Qe.length;ze++)switch(ze!==0&&(Xe+=" "),C()(Qe[ze])){case"boolean":case"number":case"object":Xe+=Qe[ze].toString();break;case"string":Qe[ze].substr(0,1)!=="/"?(be!==void 0&&Ne&&(Ue=Ne.internal.getEncryptor(be)),Xe+="("+z(Ue(Qe[ze].toString()))+")"):Xe+=Qe[ze].toString()}return Xe+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},le=function(be,Ne,Ue){var Xe=function(Ze){return Ze};return Ne!==void 0&&Ue&&(Xe=Ue.internal.getEncryptor(Ne)),(be=be||"").toString(),be="("+z(Xe(be))+")"},me=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Ne){this._objId=Ne}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};me.prototype.toString=function(){return this.objId+" 0 R"},me.prototype.putStream=function(){var Qe=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Qe,objectId:this.objId}),this.scope.internal.out("endobj")},me.prototype.getKeyValueListForStream=function(){var Qe=[],be=Object.getOwnPropertyNames(this).filter(function(ze){return ze!="content"&&ze!="appearanceStreamContent"&&ze!="scope"&&ze!="objId"&&ze.substring(0,1)!="_"});for(var Ne in be)if(Object.getOwnPropertyDescriptor(this,be[Ne]).configurable===!1){var Ue=be[Ne],Xe=this[Ue];Xe&&(Array.isArray(Xe)?Qe.push({key:Ue,value:Oe(Xe,this.objId,this.scope)}):Xe instanceof me?(Xe.scope=this.scope,Qe.push({key:Ue,value:Xe.objId+" 0 R"})):typeof Xe!="function"&&Qe.push({key:Ue,value:Xe}))}return Qe};var _e=function(){me.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var be,Ne=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Ne},set:function(Xe){Ne=Xe}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Xe){be=Xe.trim()},get:function(){return be||null}})};ie(_e,me);var $e=function(){me.call(this);var be,Ne=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Ne.length>0?Ne:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Ne}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(be){var Xe=function(Ze){return Ze};return this.scope&&(Xe=this.scope.internal.getEncryptor(this.objId)),"("+z(Xe(be))+")"}},set:function(Xe){be=Xe}})};ie($e,me);var gt=function Qe(){me.call(this);var be=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return be},set:function(Ur){if(isNaN(Ur))throw new Error('Invalid value "'+Ur+'" for attribute F supplied.');be=Ur}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(be,3))},set:function(Ur){Boolean(Ur)===!0?this.F=Q(be,3):this.F=fe(be,3)}});var Ne=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(Ur){if(isNaN(Ur))throw new Error('Invalid value "'+Ur+'" for attribute Ff supplied.');Ne=Ur}});var Ue=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ue.length!==0)return Ue},set:function(Ur){Ue=Ur!==void 0?Ur:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[0])?0:Ue[0]},set:function(Ur){Ue[0]=Ur}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[1])?0:Ue[1]},set:function(Ur){Ue[1]=Ur}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[2])?0:Ue[2]},set:function(Ur){Ue[2]=Ur}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[3])?0:Ue[3]},set:function(Ur){Ue[3]=Ur}});var Xe="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Xe},set:function(Ur){switch(Ur){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Xe=Ur;break;default:throw new Error('Invalid value "'+Ur+'" for attribute FT supplied.')}}});var ze=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!ze||ze.length<1){if(this instanceof Tt)return;ze="FieldObject"+Qe.FieldNum++}var Ur=function(Oi){return Oi};return this.scope&&(Ur=this.scope.internal.getEncryptor(this.objId)),"("+z(Ur(ze))+")"},set:function(Ur){ze=Ur.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return ze},set:function(Ur){ze=Ur}});var Ze="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Ze},set:function(Ur){Ze=Ur}});var bt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return bt},set:function(Ur){bt=Ur}});var ut=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ut},set:function(Ur){ut=Ur}});var Gt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Gt===void 0?50/V:Gt},set:function(Ur){Gt=Ur}});var Mr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Mr},set:function(Ur){Mr=Ur}});var Lr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Lr||this instanceof Tt||this instanceof Be))return le(Lr,this.objId,this.scope)},set:function(Ur){Ur=Ur.toString(),Lr=Ur}});var Gr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Gr)return this instanceof vt==!1?le(Gr,this.objId,this.scope):Gr},set:function(Ur){Ur=Ur.toString(),Gr=this instanceof vt==!1?Ur.substr(0,1)==="("?Y(Ur.substr(1,Ur.length-2)):Y(Ur):Ur}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==!0?Y(Gr.substr(1,Gr.length-1)):Gr},set:function(Ur){Ur=Ur.toString(),Gr=this instanceof vt==!0?"/"+Ur:Ur}});var Ht=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ht)return Ht},set:function(Ur){this.V=Ur}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ht)return this instanceof vt==!1?le(Ht,this.objId,this.scope):Ht},set:function(Ur){Ur=Ur.toString(),Ht=this instanceof vt==!1?Ur.substr(0,1)==="("?Y(Ur.substr(1,Ur.length-2)):Y(Ur):Ur}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof vt==!0?Y(Ht.substr(1,Ht.length-1)):Ht},set:function(Ur){Ur=Ur.toString(),Ht=this instanceof vt==!0?"/"+Ur:Ur}}),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 hn,or=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return or},set:function(Ur){Ur=Boolean(Ur),or=Ur}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(hn)return hn},set:function(Ur){hn=Ur}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,1))},set:function(Ur){Boolean(Ur)===!0?this.Ff=Q(this.Ff,1):this.Ff=fe(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,2))},set:function(Ur){Boolean(Ur)===!0?this.Ff=Q(this.Ff,2):this.Ff=fe(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,3))},set:function(Ur){Boolean(Ur)===!0?this.Ff=Q(this.Ff,3):this.Ff=fe(this.Ff,3)}});var vn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(vn!==null)return vn},set:function(Ur){if([0,1,2].indexOf(Ur)===-1)throw new Error('Invalid value "'+Ur+'" for attribute Q supplied.');vn=Ur}}),Object.defineProperty(this,"textAlign",{get:function(){var Ur;switch(vn){case 0:default:Ur="left";break;case 1:Ur="center";break;case 2:Ur="right"}return Ur},configurable:!0,enumerable:!0,set:function(Ur){switch(Ur){case"right":case 2:vn=2;break;case"center":case 1:vn=1;break;case"left":case 0:default:vn=0}}})};ie(gt,me);var et=function(){gt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var be=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return be},set:function(Xe){be=Xe}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return be},set:function(Xe){be=Xe}});var Ne=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Oe(Ne,this.objId,this.scope)},set:function(Xe){var ze,Ze;Ze=[],typeof(ze=Xe)=="string"&&(Ze=function(bt,ut,Gt){Gt||(Gt=1);for(var Mr,Lr=[];Mr=ut.exec(bt);)Lr.push(Mr[Gt]);return Lr}(ze,/\((.*?)\)/g)),Ne=Ze}}),this.getOptions=function(){return Ne},this.setOptions=function(Ue){Ne=Ue,this.sort&&Ne.sort()},this.addOption=function(Ue){Ue=(Ue=Ue||"").toString(),Ne.push(Ue),this.sort&&Ne.sort()},this.removeOption=function(Ue,Xe){for(Xe=Xe||!1,Ue=(Ue=Ue||"").toString();Ne.indexOf(Ue)!==-1&&(Ne.splice(Ne.indexOf(Ue),1),Xe!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,18))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,18):this.Ff=fe(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,19))},set:function(Xe){this.combo===!0&&(Boolean(Xe)===!0?this.Ff=Q(this.Ff,19):this.Ff=fe(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,20))},set:function(Xe){Boolean(Xe)===!0?(this.Ff=Q(this.Ff,20),Ne.sort()):this.Ff=fe(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,22))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,22):this.Ff=fe(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,23):this.Ff=fe(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,27))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,27):this.Ff=fe(this.Ff,27)}}),this.hasAppearanceStream=!1};ie(et,gt);var Ie=function(){et.call(this),this.fontName="helvetica",this.combo=!1};ie(Ie,et);var rt=function(){Ie.call(this),this.combo=!0};ie(rt,Ie);var Ge=function(){rt.call(this),this.edit=!0};ie(Ge,rt);var vt=function(){gt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,15))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,15):this.Ff=fe(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,16))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,16):this.Ff=fe(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,17))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,17):this.Ff=fe(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(Xe){Boolean(Xe)===!0?this.Ff=Q(this.Ff,26):this.Ff=fe(this.Ff,26)}});var be,Ne={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Xe=function(ut){return ut};if(this.scope&&(Xe=this.scope.internal.getEncryptor(this.objId)),Object.keys(Ne).length!==0){var ze,Ze=[];for(ze in Ze.push("<<"),Ne)Ze.push("/"+ze+" ("+z(Xe(Ne[ze]))+")");return Ze.push(">>"),Ze.join(`
`)}},set:function(Xe){C()(Xe)==="object"&&(Ne=Xe)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ne.CA||""},set:function(Xe){typeof Xe=="string"&&(Ne.CA=Xe)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return be},set:function(Xe){be=Xe}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return be.substr(1,be.length-1)},set:function(Xe){be="/"+Xe}})};ie(vt,gt);var Ot=function(){vt.call(this),this.pushButton=!0};ie(Ot,vt);var Et=function(){vt.call(this),this.radio=!0,this.pushButton=!1;var be=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return be},set:function(Ue){be=Ue!==void 0?Ue:[]}})};ie(Et,vt);var Tt=function(){var be,Ne;gt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return be},set:function(Ze){be=Ze}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Ne},set:function(Ze){Ne=Ze}});var Ue,Xe={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ze=function(Mr){return Mr};this.scope&&(Ze=this.scope.internal.getEncryptor(this.objId));var bt,ut=[];for(bt in ut.push("<<"),Xe)ut.push("/"+bt+" ("+z(Ze(Xe[bt]))+")");return ut.push(">>"),ut.join(`
`)},set:function(Ze){C()(Ze)==="object"&&(Xe=Ze)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Xe.CA||""},set:function(Ze){typeof Ze=="string"&&(Xe.CA=Ze)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ue},set:function(Ze){Ue=Ze}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ue.substr(1,Ue.length-1)},set:function(Ze){Ue="/"+Ze}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=J.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ie(Tt,gt),Et.prototype.setAppearance=function(Qe){if(!("createAppearanceStream"in Qe)||!("getCA"in Qe))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var be in this.Kids)if(this.Kids.hasOwnProperty(be)){var Ne=this.Kids[be];Ne.appearanceStreamContent=Qe.createAppearanceStream(Ne.optionName),Ne.caption=Qe.getCA()}},Et.prototype.createOption=function(Qe){var be=new Tt;return be.Parent=this,be.optionName=Qe,this.Kids.push(be),je.call(this.scope,be),be};var Rt=function(){vt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=J.CheckBox.createAppearanceStream()};ie(Rt,vt);var Be=function(){gt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,13))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,13):this.Ff=fe(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,21))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,21):this.Ff=fe(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,23):this.Ff=fe(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,24))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,24):this.Ff=fe(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,25))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,25):this.Ff=fe(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,26):this.Ff=fe(this.Ff,26)}});var be=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return be},set:function(Ue){be=Ue}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return be},set:function(Ue){Number.isInteger(Ue)&&(be=Ue)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ie(Be,gt);var Z=function(){Be.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,14))},set:function(Ne){Boolean(Ne)===!0?this.Ff=Q(this.Ff,14):this.Ff=fe(this.Ff,14)}}),this.password=!0};ie(Z,Be);var J={CheckBox:{createAppearanceStream:function(){return{N:{On:J.CheckBox.YesNormal},D:{On:J.CheckBox.YesPushDown,Off:J.CheckBox.OffPushDown}}},YesPushDown:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=[],Xe=be.scope.internal.getFont(be.fontName,be.fontStyle).id,ze=be.scope.__private__.encodeColorString(be.color),Ze=X(be,be.caption);return Ue.push("0.749023 g"),Ue.push("0 0 "+q(J.internal.getWidth(be))+" "+q(J.internal.getHeight(be))+" re"),Ue.push("f"),Ue.push("BMC"),Ue.push("q"),Ue.push("0 0 1 rg"),Ue.push("/"+Xe+" "+q(Ze.fontSize)+" Tf "+ze),Ue.push("BT"),Ue.push(Ze.text),Ue.push("ET"),Ue.push("Q"),Ue.push("EMC"),Ne.stream=Ue.join(`
`),Ne},YesNormal:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=be.scope.internal.getFont(be.fontName,be.fontStyle).id,Xe=be.scope.__private__.encodeColorString(be.color),ze=[],Ze=J.internal.getHeight(be),bt=J.internal.getWidth(be),ut=X(be,be.caption);return ze.push("1 g"),ze.push("0 0 "+q(bt)+" "+q(Ze)+" re"),ze.push("f"),ze.push("q"),ze.push("0 0 1 rg"),ze.push("0 0 "+q(bt-1)+" "+q(Ze-1)+" re"),ze.push("W"),ze.push("n"),ze.push("0 g"),ze.push("BT"),ze.push("/"+Ue+" "+q(ut.fontSize)+" Tf "+Xe),ze.push(ut.text),ze.push("ET"),ze.push("Q"),Ne.stream=ze.join(`
`),Ne},OffPushDown:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=[];return Ue.push("0.749023 g"),Ue.push("0 0 "+q(J.internal.getWidth(be))+" "+q(J.internal.getHeight(be))+" re"),Ue.push("f"),Ne.stream=Ue.join(`
`),Ne}},RadioButton:{Circle:{createAppearanceStream:function(be){var Ne={D:{Off:J.RadioButton.Circle.OffPushDown},N:{}};return Ne.N[be]=J.RadioButton.Circle.YesNormal,Ne.D[be]=J.RadioButton.Circle.YesPushDown,Ne},getCA:function(){return"l"},YesNormal:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=[],Xe=J.internal.getWidth(be)<=J.internal.getHeight(be)?J.internal.getWidth(be)/4:J.internal.getHeight(be)/4;Xe=Number((.9*Xe).toFixed(5));var ze=J.internal.Bezier_C,Ze=Number((Xe*ze).toFixed(5));return Ue.push("q"),Ue.push("1 0 0 1 "+ce(J.internal.getWidth(be)/2)+" "+ce(J.internal.getHeight(be)/2)+" cm"),Ue.push(Xe+" 0 m"),Ue.push(Xe+" "+Ze+" "+Ze+" "+Xe+" 0 "+Xe+" c"),Ue.push("-"+Ze+" "+Xe+" -"+Xe+" "+Ze+" -"+Xe+" 0 c"),Ue.push("-"+Xe+" -"+Ze+" -"+Ze+" -"+Xe+" 0 -"+Xe+" c"),Ue.push(Ze+" -"+Xe+" "+Xe+" -"+Ze+" "+Xe+" 0 c"),Ue.push("f"),Ue.push("Q"),Ne.stream=Ue.join(`
`),Ne},YesPushDown:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=[],Xe=J.internal.getWidth(be)<=J.internal.getHeight(be)?J.internal.getWidth(be)/4:J.internal.getHeight(be)/4;Xe=Number((.9*Xe).toFixed(5));var ze=Number((2*Xe).toFixed(5)),Ze=Number((ze*J.internal.Bezier_C).toFixed(5)),bt=Number((Xe*J.internal.Bezier_C).toFixed(5));return Ue.push("0.749023 g"),Ue.push("q"),Ue.push("1 0 0 1 "+ce(J.internal.getWidth(be)/2)+" "+ce(J.internal.getHeight(be)/2)+" cm"),Ue.push(ze+" 0 m"),Ue.push(ze+" "+Ze+" "+Ze+" "+ze+" 0 "+ze+" c"),Ue.push("-"+Ze+" "+ze+" -"+ze+" "+Ze+" -"+ze+" 0 c"),Ue.push("-"+ze+" -"+Ze+" -"+Ze+" -"+ze+" 0 -"+ze+" c"),Ue.push(Ze+" -"+ze+" "+ze+" -"+Ze+" "+ze+" 0 c"),Ue.push("f"),Ue.push("Q"),Ue.push("0 g"),Ue.push("q"),Ue.push("1 0 0 1 "+ce(J.internal.getWidth(be)/2)+" "+ce(J.internal.getHeight(be)/2)+" cm"),Ue.push(Xe+" 0 m"),Ue.push(Xe+" "+bt+" "+bt+" "+Xe+" 0 "+Xe+" c"),Ue.push("-"+bt+" "+Xe+" -"+Xe+" "+bt+" -"+Xe+" 0 c"),Ue.push("-"+Xe+" -"+bt+" -"+bt+" -"+Xe+" 0 -"+Xe+" c"),Ue.push(bt+" -"+Xe+" "+Xe+" -"+bt+" "+Xe+" 0 c"),Ue.push("f"),Ue.push("Q"),Ne.stream=Ue.join(`
`),Ne},OffPushDown:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=[],Xe=J.internal.getWidth(be)<=J.internal.getHeight(be)?J.internal.getWidth(be)/4:J.internal.getHeight(be)/4;Xe=Number((.9*Xe).toFixed(5));var ze=Number((2*Xe).toFixed(5)),Ze=Number((ze*J.internal.Bezier_C).toFixed(5));return Ue.push("0.749023 g"),Ue.push("q"),Ue.push("1 0 0 1 "+ce(J.internal.getWidth(be)/2)+" "+ce(J.internal.getHeight(be)/2)+" cm"),Ue.push(ze+" 0 m"),Ue.push(ze+" "+Ze+" "+Ze+" "+ze+" 0 "+ze+" c"),Ue.push("-"+Ze+" "+ze+" -"+ze+" "+Ze+" -"+ze+" 0 c"),Ue.push("-"+ze+" -"+Ze+" -"+Ze+" -"+ze+" 0 -"+ze+" c"),Ue.push(Ze+" -"+ze+" "+ze+" -"+Ze+" "+ze+" 0 c"),Ue.push("f"),Ue.push("Q"),Ne.stream=Ue.join(`
`),Ne}},Cross:{createAppearanceStream:function(be){var Ne={D:{Off:J.RadioButton.Cross.OffPushDown},N:{}};return Ne.N[be]=J.RadioButton.Cross.YesNormal,Ne.D[be]=J.RadioButton.Cross.YesPushDown,Ne},getCA:function(){return"8"},YesNormal:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=[],Xe=J.internal.calculateCross(be);return Ue.push("q"),Ue.push("1 1 "+q(J.internal.getWidth(be)-2)+" "+q(J.internal.getHeight(be)-2)+" re"),Ue.push("W"),Ue.push("n"),Ue.push(q(Xe.x1.x)+" "+q(Xe.x1.y)+" m"),Ue.push(q(Xe.x2.x)+" "+q(Xe.x2.y)+" l"),Ue.push(q(Xe.x4.x)+" "+q(Xe.x4.y)+" m"),Ue.push(q(Xe.x3.x)+" "+q(Xe.x3.y)+" l"),Ue.push("s"),Ue.push("Q"),Ne.stream=Ue.join(`
`),Ne},YesPushDown:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=J.internal.calculateCross(be),Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+q(J.internal.getWidth(be))+" "+q(J.internal.getHeight(be))+" re"),Xe.push("f"),Xe.push("q"),Xe.push("1 1 "+q(J.internal.getWidth(be)-2)+" "+q(J.internal.getHeight(be)-2)+" re"),Xe.push("W"),Xe.push("n"),Xe.push(q(Ue.x1.x)+" "+q(Ue.x1.y)+" m"),Xe.push(q(Ue.x2.x)+" "+q(Ue.x2.y)+" l"),Xe.push(q(Ue.x4.x)+" "+q(Ue.x4.y)+" m"),Xe.push(q(Ue.x3.x)+" "+q(Ue.x3.y)+" l"),Xe.push("s"),Xe.push("Q"),Ne.stream=Xe.join(`
`),Ne},OffPushDown:function(be){var Ne=Ee(be);Ne.scope=be.scope;var Ue=[];return Ue.push("0.749023 g"),Ue.push("0 0 "+q(J.internal.getWidth(be))+" "+q(J.internal.getHeight(be))+" re"),Ue.push("f"),Ne.stream=Ue.join(`
`),Ne}}},createDefaultAppearanceStream:function(be){var Ne=be.scope.internal.getFont(be.fontName,be.fontStyle).id,Ue=be.scope.__private__.encodeColorString(be.color);return"/"+Ne+" "+be.fontSize+" Tf "+Ue}};J.internal={Bezier_C:.551915024494,calculateCross:function(be){var Ne=J.internal.getWidth(be),Ue=J.internal.getHeight(be),Xe=Math.min(Ne,Ue);return{x1:{x:(Ne-Xe)/2,y:(Ue-Xe)/2+Xe},x2:{x:(Ne-Xe)/2+Xe,y:(Ue-Xe)/2},x3:{x:(Ne-Xe)/2,y:(Ue-Xe)/2},x4:{x:(Ne-Xe)/2+Xe,y:(Ue-Xe)/2+Xe}}}},J.internal.getWidth=function(Qe){var be=0;return C()(Qe)==="object"&&(be=ve(Qe.Rect[2])),be},J.internal.getHeight=function(Qe){var be=0;return C()(Qe)==="object"&&(be=ve(Qe.Rect[3])),be};var je=U.addField=function(Qe){if(Pe(this,Qe),!(Qe instanceof gt))throw new Error("Invalid argument passed to jsPDF.addField.");var be;return(be=Qe).scope.internal.acroformPlugin.printedOut&&(be.scope.internal.acroformPlugin.printedOut=!1,be.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),be.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(be),Qe.page=Qe.scope.internal.getCurrentPageInfo().pageNumber,this};U.AcroFormChoiceField=et,U.AcroFormListBox=Ie,U.AcroFormComboBox=rt,U.AcroFormEditBox=Ge,U.AcroFormButton=vt,U.AcroFormPushButton=Ot,U.AcroFormRadioButton=Et,U.AcroFormCheckBox=Rt,U.AcroFormTextField=Be,U.AcroFormPasswordField=Z,U.AcroFormAppearance=J,U.AcroForm={ChoiceField:et,ListBox:Ie,ComboBox:rt,EditBox:Ge,Button:vt,PushButton:Ot,RadioButton:Et,CheckBox:Rt,TextField:Be,PasswordField:Z,Appearance:J},K.AcroForm={ChoiceField:et,ListBox:Ie,ComboBox:rt,EditBox:Ge,Button:vt,PushButton:Ot,RadioButton:Et,CheckBox:Rt,TextField:Be,PasswordField:Z,Appearance:J};var Re=K.AcroForm;function oe(Qe){return Qe.reduce(function(be,Ne,Ue){return be[Ne]=Ue,be},{})}!function(Qe){Qe.__addimage__={};var be="UNKNOWN",Ne={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]]},Ue=Qe.__addimage__.getImageFileTypeByImageData=function(zr,fr){var Nr,Qt,xr,Jr,Kr,en=be;if((fr=fr||be)==="RGBA"||zr.data!==void 0&&zr.data instanceof Uint8ClampedArray&&"height"in zr&&"width"in zr)return"RGBA";if(Ri(zr))for(Kr in Ne)for(xr=Ne[Kr],Nr=0;Nr<xr.length;Nr+=1){for(Jr=!0,Qt=0;Qt<xr[Nr].length;Qt+=1)if(xr[Nr][Qt]!==void 0&&xr[Nr][Qt]!==zr[Qt]){Jr=!1;break}if(Jr===!0){en=Kr;break}}else for(Kr in Ne)for(xr=Ne[Kr],Nr=0;Nr<xr.length;Nr+=1){for(Jr=!0,Qt=0;Qt<xr[Nr].length;Qt+=1)if(xr[Nr][Qt]!==void 0&&xr[Nr][Qt]!==zr.charCodeAt(Qt)){Jr=!1;break}if(Jr===!0){en=Kr;break}}return en===be&&fr!==be&&(en=fr),en},Xe=function zr(fr){for(var Nr=this.internal.write,Qt=this.internal.putStream,xr=(0,this.internal.getFilters)();xr.indexOf("FlateEncode")!==-1;)xr.splice(xr.indexOf("FlateEncode"),1);fr.objectId=this.internal.newObject();var Jr=[];if(Jr.push({key:"Type",value:"/XObject"}),Jr.push({key:"Subtype",value:"/Image"}),Jr.push({key:"Width",value:fr.width}),Jr.push({key:"Height",value:fr.height}),fr.colorSpace===vn.INDEXED?Jr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(fr.palette.length/3-1)+" "+("sMask"in fr&&fr.sMask!==void 0?fr.objectId+2:fr.objectId+1)+" 0 R]"}):(Jr.push({key:"ColorSpace",value:"/"+fr.colorSpace}),fr.colorSpace===vn.DEVICE_CMYK&&Jr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Jr.push({key:"BitsPerComponent",value:fr.bitsPerComponent}),"decodeParameters"in fr&&fr.decodeParameters!==void 0&&Jr.push({key:"DecodeParms",value:"<<"+fr.decodeParameters+">>"}),"transparency"in fr&&Array.isArray(fr.transparency)){for(var Kr="",en=0,ai=fr.transparency.length;en<ai;en++)Kr+=fr.transparency[en]+" "+fr.transparency[en]+" ";Jr.push({key:"Mask",value:"["+Kr+"]"})}fr.sMask!==void 0&&Jr.push({key:"SMask",value:fr.objectId+1+" 0 R"});var Yn=fr.filter!==void 0?["/"+fr.filter]:void 0;if(Qt({data:fr.data,additionalKeyValues:Jr,alreadyAppliedFilters:Yn,objectId:fr.objectId}),Nr("endobj"),"sMask"in fr&&fr.sMask!==void 0){var Si="/Predictor "+fr.predictor+" /Colors 1 /BitsPerComponent "+fr.bitsPerComponent+" /Columns "+fr.width,ln={width:fr.width,height:fr.height,colorSpace:"DeviceGray",bitsPerComponent:fr.bitsPerComponent,decodeParameters:Si,data:fr.sMask};"filter"in fr&&(ln.filter=fr.filter),zr.call(this,ln)}if(fr.colorSpace===vn.INDEXED){var Or=this.internal.newObject();Qt({data:Yi(new Uint8Array(fr.palette)),objectId:Or}),Nr("endobj")}},ze=function(){var fr=this.internal.collections.addImage_images;for(var Nr in fr)Xe.call(this,fr[Nr])},Ze=function(){var fr,Nr=this.internal.collections.addImage_images,Qt=this.internal.write;for(var xr in Nr)Qt("/I"+(fr=Nr[xr]).index,fr.objectId,"0","R")},bt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",ze),this.internal.events.subscribe("putXobjectDict",Ze))},ut=function(){var fr=this.internal.collections.addImage_images;return bt.call(this),fr},Gt=function(){return Object.keys(this.internal.collections.addImage_images).length},Mr=function(fr){return typeof Qe["process"+fr.toUpperCase()]=="function"},Lr=function(fr){return C()(fr)==="object"&&fr.nodeType===1},Gr=function(fr,Nr){if(fr.nodeName==="IMG"&&fr.hasAttribute("src")){var Qt=""+fr.getAttribute("src");if(Qt.indexOf("data:image/")===0)return o(unescape(Qt).split("base64,").pop());var xr=Qe.loadFile(Qt,!0);if(xr!==void 0)return xr}if(fr.nodeName==="CANVAS"){if(fr.width===0||fr.height===0)throw new Error("Given canvas must have data. Canvas width: "+fr.width+", height: "+fr.height);var Jr;switch(Nr){case"PNG":Jr="image/png";break;case"WEBP":Jr="image/webp";break;case"JPEG":case"JPG":default:Jr="image/jpeg"}return o(fr.toDataURL(Jr,1).split("base64,").pop())}},Ht=function(fr){var Nr=this.internal.collections.addImage_images;if(Nr){for(var Qt in Nr)if(fr===Nr[Qt].alias)return Nr[Qt]}},hn=function(fr,Nr,Qt){return fr||Nr||(fr=-96,Nr=-96),fr<0&&(fr=-1*Qt.width*72/fr/this.internal.scaleFactor),Nr<0&&(Nr=-1*Qt.height*72/Nr/this.internal.scaleFactor),fr===0&&(fr=Nr*Qt.width/Qt.height),Nr===0&&(Nr=fr*Qt.height/Qt.width),[fr,Nr]},or=function(fr,Nr,Qt,xr,Jr,Kr){var en=hn.call(this,Qt,xr,Jr),ai=this.internal.getCoordinateString,Yn=this.internal.getVerticalCoordinateString,Si=ut.call(this);if(Qt=en[0],xr=en[1],Si[Jr.index]=Jr,Kr){Kr*=Math.PI/180;var ln=Math.cos(Kr),Or=Math.sin(Kr),wn=function(ii){return ii.toFixed(4)},Xn=[wn(ln),wn(Or),wn(-1*Or),wn(ln),0,0,"cm"]}this.internal.write("q"),Kr?(this.internal.write([1,"0","0",1,ai(fr),Yn(Nr+xr),"cm"].join(" ")),this.internal.write(Xn.join(" ")),this.internal.write([ai(Qt),"0","0",ai(xr),"0","0","cm"].join(" "))):this.internal.write([ai(Qt),"0","0",ai(xr),ai(fr),Yn(Nr+xr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Jr.index+" Do"),this.internal.write("Q")},vn=Qe.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"};Qe.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 nn=Qe.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Ur=Qe.__addimage__.sHashCode=function(zr){var fr,Nr,Qt=0;if(typeof zr=="string")for(Nr=zr.length,fr=0;fr<Nr;fr++)Qt=(Qt<<5)-Qt+zr.charCodeAt(fr),Qt|=0;else if(Ri(zr))for(Nr=zr.byteLength/2,fr=0;fr<Nr;fr++)Qt=(Qt<<5)-Qt+zr[fr],Qt|=0;return Qt},ni=Qe.__addimage__.validateStringAsBase64=function(zr){(zr=zr||"").toString().trim();var fr=!0;return zr.length===0&&(fr=!1),zr.length%4!=0&&(fr=!1),/^[A-Za-z0-9+/]+$/.test(zr.substr(0,zr.length-2))===!1&&(fr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(zr.substr(-2))===!1&&(fr=!1),fr},Oi=Qe.__addimage__.extractImageFromDataUrl=function(zr){var fr=(zr=zr||"").split("base64,"),Nr=null;if(fr.length===2){var Qt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(fr[0]);Array.isArray(Qt)&&(Nr={mimeType:Qt[1],charset:Qt[2],data:fr[1]})}return Nr},Hi=Qe.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Qe.__addimage__.isArrayBuffer=function(zr){return Hi()&&zr instanceof ArrayBuffer};var Ri=Qe.__addimage__.isArrayBufferView=function(zr){return Hi()&&typeof Uint32Array!="undefined"&&(zr instanceof Int8Array||zr instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&zr instanceof Uint8ClampedArray||zr instanceof Int16Array||zr instanceof Uint16Array||zr instanceof Int32Array||zr instanceof Uint32Array||zr instanceof Float32Array||zr instanceof Float64Array)},Ni=Qe.__addimage__.binaryStringToUint8Array=function(zr){for(var fr=zr.length,Nr=new Uint8Array(fr),Qt=0;Qt<fr;Qt++)Nr[Qt]=zr.charCodeAt(Qt);return Nr},Yi=Qe.__addimage__.arrayBufferToBinaryString=function(zr){for(var fr="",Nr=Ri(zr)?zr:new Uint8Array(zr),Qt=0;Qt<Nr.length;Qt+=8192)fr+=String.fromCharCode.apply(null,Nr.subarray(Qt,Qt+8192));return fr};Qe.addImage=function(){var zr,fr,Nr,Qt,xr,Jr,Kr,en,ai;if(typeof arguments[1]=="number"?(fr=be,Nr=arguments[1],Qt=arguments[2],xr=arguments[3],Jr=arguments[4],Kr=arguments[5],en=arguments[6],ai=arguments[7]):(fr=arguments[1],Nr=arguments[2],Qt=arguments[3],xr=arguments[4],Jr=arguments[5],Kr=arguments[6],en=arguments[7],ai=arguments[8]),C()(zr=arguments[0])==="object"&&!Lr(zr)&&"imageData"in zr){var Yn=zr;zr=Yn.imageData,fr=Yn.format||fr||be,Nr=Yn.x||Nr||0,Qt=Yn.y||Qt||0,xr=Yn.w||Yn.width||xr,Jr=Yn.h||Yn.height||Jr,Kr=Yn.alias||Kr,en=Yn.compression||en,ai=Yn.rotation||Yn.angle||ai}var Si=this.internal.getFilters();if(en===void 0&&Si.indexOf("FlateEncode")!==-1&&(en="SLOW"),isNaN(Nr)||isNaN(Qt))throw new Error("Invalid coordinates passed to jsPDF.addImage");bt.call(this);var ln=Qr.call(this,zr,fr,Kr,en);return or.call(this,Nr,Qt,xr,Jr,ln,ai),this};var Qr=function(fr,Nr,Qt,xr){var Jr,Kr,en;if(typeof fr=="string"&&Ue(fr)===be){fr=unescape(fr);var ai=On(fr,!1);(ai!==""||(ai=Qe.loadFile(fr,!0))!==void 0)&&(fr=ai)}if(Lr(fr)&&(fr=Gr(fr,Nr)),Nr=Ue(fr,Nr),!Mr(Nr))throw new Error("addImage does not support files of type '"+Nr+"', please ensure that a plugin for '"+Nr+"' support is added.");if(((en=Qt)==null||en.length===0)&&(Qt=function(Yn){return typeof Yn=="string"||Ri(Yn)?Ur(Yn):Ri(Yn.data)?Ur(Yn.data):null}(fr)),(Jr=Ht.call(this,Qt))||(Hi()&&(fr instanceof Uint8Array||Nr==="RGBA"||(Kr=fr,fr=Ni(fr))),Jr=this["process"+Nr.toUpperCase()](fr,Gt.call(this),Qt,function(Yn){return Yn&&typeof Yn=="string"&&(Yn=Yn.toUpperCase()),Yn in Qe.image_compression?Yn:nn.NONE}(xr),Kr)),!Jr)throw new Error("An unknown error occurred whilst processing the image.");return Jr},On=Qe.__addimage__.convertBase64ToBinaryString=function(zr,fr){var Nr;fr=typeof fr!="boolean"||fr;var Qt,xr="";if(typeof zr=="string"){Qt=(Nr=Oi(zr))!==null?Nr.data:zr;try{xr=o(Qt)}catch(Jr){if(fr)throw ni(Qt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Jr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return xr};Qe.getImageProperties=function(zr){var fr,Nr,Qt="";if(Lr(zr)&&(zr=Gr(zr)),typeof zr=="string"&&Ue(zr)===be&&((Qt=On(zr,!1))===""&&(Qt=Qe.loadFile(zr)||""),zr=Qt),Nr=Ue(zr),!Mr(Nr))throw new Error("addImage does not support files of type '"+Nr+"', please ensure that a plugin for '"+Nr+"' support is added.");if(!Hi()||zr instanceof Uint8Array||(zr=Ni(zr)),!(fr=this["process"+Nr.toUpperCase()](zr)))throw new Error("An unknown error occurred whilst processing the image");return fr.fileType=Nr,fr}}(K.API),function(Qe){var be=function(Ue){if(Ue!==void 0&&Ue!="")return!0};K.API.events.push(["addPage",function(Ne){this.internal.getPageInfo(Ne.pageNumber).pageContext.annotations=[]}]),Qe.events.push(["putPage",function(Ne){for(var Ue,Xe,ze,Ze=this.internal.getCoordinateString,bt=this.internal.getVerticalCoordinateString,ut=this.internal.getPageInfoByObjId(Ne.objId),Gt=Ne.pageContext.annotations,Mr=!1,Lr=0;Lr<Gt.length&&!Mr;Lr++)switch((Ue=Gt[Lr]).type){case"link":(be(Ue.options.url)||be(Ue.options.pageNumber))&&(Mr=!0);break;case"reference":case"text":case"freetext":Mr=!0}if(Mr!=0){this.internal.write("/Annots [");for(var Gr=0;Gr<Gt.length;Gr++){Ue=Gt[Gr];var Ht=this.internal.pdfEscape,hn=this.internal.getEncryptor(Ne.objId);switch(Ue.type){case"reference":this.internal.write(" "+Ue.object.objId+" 0 R ");break;case"text":var or=this.internal.newAdditionalObject(),vn=this.internal.newAdditionalObject(),nn=this.internal.getEncryptor(or.objId),Ur=Ue.title||"Note";ze="<</Type /Annot /Subtype /Text "+(Xe="/Rect ["+Ze(Ue.bounds.x)+" "+bt(Ue.bounds.y+Ue.bounds.h)+" "+Ze(Ue.bounds.x+Ue.bounds.w)+" "+bt(Ue.bounds.y)+"] ")+"/Contents ("+Ht(nn(Ue.contents))+")",ze+=" /Popup "+vn.objId+" 0 R",ze+=" /P "+ut.objId+" 0 R",ze+=" /T ("+Ht(nn(Ur))+") >>",or.content=ze;var ni=or.objId+" 0 R";ze="<</Type /Annot /Subtype /Popup "+(Xe="/Rect ["+Ze(Ue.bounds.x+30)+" "+bt(Ue.bounds.y+Ue.bounds.h)+" "+Ze(Ue.bounds.x+Ue.bounds.w+30)+" "+bt(Ue.bounds.y)+"] ")+" /Parent "+ni,Ue.open&&(ze+=" /Open true"),ze+=" >>",vn.content=ze,this.internal.write(or.objId,"0 R",vn.objId,"0 R");break;case"freetext":Xe="/Rect ["+Ze(Ue.bounds.x)+" "+bt(Ue.bounds.y)+" "+Ze(Ue.bounds.x+Ue.bounds.w)+" "+bt(Ue.bounds.y+Ue.bounds.h)+"] ";var Oi=Ue.color||"#000000";ze="<</Type /Annot /Subtype /FreeText "+Xe+"/Contents ("+Ht(hn(Ue.contents))+")",ze+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Oi+")",ze+=" /Border [0 0 0]",ze+=" >>",this.internal.write(ze);break;case"link":if(Ue.options.name){var Hi=this.annotations._nameMap[Ue.options.name];Ue.options.pageNumber=Hi.page,Ue.options.top=Hi.y}else Ue.options.top||(Ue.options.top=0);if(Xe="/Rect ["+Ue.finalBounds.x+" "+Ue.finalBounds.y+" "+Ue.finalBounds.w+" "+Ue.finalBounds.h+"] ",ze="",Ue.options.url)ze="<</Type /Annot /Subtype /Link "+Xe+"/Border [0 0 0] /A <</S /URI /URI ("+Ht(hn(Ue.options.url))+") >>";else if(Ue.options.pageNumber)switch(ze="<</Type /Annot /Subtype /Link "+Xe+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ue.options.pageNumber).objId+" 0 R",Ue.options.magFactor=Ue.options.magFactor||"XYZ",Ue.options.magFactor){case"Fit":ze+=" /Fit]";break;case"FitH":ze+=" /FitH "+Ue.options.top+"]";break;case"FitV":Ue.options.left=Ue.options.left||0,ze+=" /FitV "+Ue.options.left+"]";break;case"XYZ":default:var Ri=bt(Ue.options.top);Ue.options.left=Ue.options.left||0,Ue.options.zoom===void 0&&(Ue.options.zoom=0),ze+=" /XYZ "+Ue.options.left+" "+Ri+" "+Ue.options.zoom+"]"}ze!=""&&(ze+=" >>",this.internal.write(ze))}}this.internal.write("]")}}]),Qe.createAnnotation=function(Ne){var Ue=this.internal.getCurrentPageInfo();switch(Ne.type){case"link":this.link(Ne.bounds.x,Ne.bounds.y,Ne.bounds.w,Ne.bounds.h,Ne);break;case"text":case"freetext":Ue.pageContext.annotations.push(Ne)}},Qe.link=function(Ne,Ue,Xe,ze,Ze){var bt=this.internal.getCurrentPageInfo(),ut=this.internal.getCoordinateString,Gt=this.internal.getVerticalCoordinateString;bt.pageContext.annotations.push({finalBounds:{x:ut(Ne),y:Gt(Ue),w:ut(Ne+Xe),h:Gt(Ue+ze)},options:Ze,type:"link"})},Qe.textWithLink=function(Ne,Ue,Xe,ze){var Ze=this.getTextWidth(Ne),bt=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(Ne,Ue,Xe,ze),Xe+=.2*bt,ze.align==="center"&&(Ue-=Ze/2),ze.align==="right"&&(Ue-=Ze),this.link(Ue,Xe-bt,Ze,bt,ze),Ze},Qe.getTextWidth=function(Ne){var Ue=this.internal.getFontSize();return this.getStringUnitWidth(Ne)*Ue/this.internal.scaleFactor}}(K.API),function(Qe){var be={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]},Ne={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}},Ue={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Xe=[1570,1571,1573,1575];Qe.__arabicParser__={};var ze=Qe.__arabicParser__.isInArabicSubstitutionA=function(or){return be[or.charCodeAt(0)]!==void 0},Ze=Qe.__arabicParser__.isArabicLetter=function(or){return typeof or=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(or)},bt=Qe.__arabicParser__.isArabicEndLetter=function(or){return Ze(or)&&ze(or)&&be[or.charCodeAt(0)].length<=2},ut=Qe.__arabicParser__.isArabicAlfLetter=function(or){return Ze(or)&&Xe.indexOf(or.charCodeAt(0))>=0};Qe.__arabicParser__.arabicLetterHasIsolatedForm=function(or){return Ze(or)&&ze(or)&&be[or.charCodeAt(0)].length>=1};var Gt=Qe.__arabicParser__.arabicLetterHasFinalForm=function(or){return Ze(or)&&ze(or)&&be[or.charCodeAt(0)].length>=2};Qe.__arabicParser__.arabicLetterHasInitialForm=function(or){return Ze(or)&&ze(or)&&be[or.charCodeAt(0)].length>=3};var Mr=Qe.__arabicParser__.arabicLetterHasMedialForm=function(or){return Ze(or)&&ze(or)&&be[or.charCodeAt(0)].length==4},Lr=Qe.__arabicParser__.resolveLigatures=function(or){var vn=0,nn=Ne,Ur="",ni=0;for(vn=0;vn<or.length;vn+=1)nn[or.charCodeAt(vn)]!==void 0?(ni++,typeof(nn=nn[or.charCodeAt(vn)])=="number"&&(Ur+=String.fromCharCode(nn),nn=Ne,ni=0),vn===or.length-1&&(nn=Ne,Ur+=or.charAt(vn-(ni-1)),vn-=ni-1,ni=0)):(nn=Ne,Ur+=or.charAt(vn-ni),vn-=ni,ni=0);return Ur};Qe.__arabicParser__.isArabicDiacritic=function(or){return or!==void 0&&Ue[or.charCodeAt(0)]!==void 0};var Gr=Qe.__arabicParser__.getCorrectForm=function(or,vn,nn){return Ze(or)?ze(or)===!1?-1:!Gt(or)||!Ze(vn)&&!Ze(nn)||!Ze(nn)&&bt(vn)||bt(or)&&!Ze(vn)||bt(or)&&ut(vn)||bt(or)&&bt(vn)?0:Mr(or)&&Ze(vn)&&!bt(vn)&&Ze(nn)&&Gt(nn)?3:bt(or)||!Ze(nn)?1:2:-1},Ht=function(vn){var nn=0,Ur=0,ni=0,Oi="",Hi="",Ri="",Ni=(vn=vn||"").split("\\s+"),Yi=[];for(nn=0;nn<Ni.length;nn+=1){for(Yi.push(""),Ur=0;Ur<Ni[nn].length;Ur+=1)Oi=Ni[nn][Ur],Hi=Ni[nn][Ur-1],Ri=Ni[nn][Ur+1],Ze(Oi)?(ni=Gr(Oi,Hi,Ri),Yi[nn]+=ni!==-1?String.fromCharCode(be[Oi.charCodeAt(0)][ni]):Oi):Yi[nn]+=Oi;Yi[nn]=Lr(Yi[nn])}return Yi.join(" ")},hn=Qe.__arabicParser__.processArabic=Qe.processArabic=function(){var or,vn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,nn=[];if(Array.isArray(vn)){var Ur=0;for(nn=[],Ur=0;Ur<vn.length;Ur+=1)Array.isArray(vn[Ur])?nn.push([Ht(vn[Ur][0]),vn[Ur][1],vn[Ur][2]]):nn.push([Ht(vn[Ur])]);or=nn}else or=Ht(vn);return typeof arguments[0]=="string"?or:(arguments[0].text=or,arguments[0])};Qe.events.push(["preProcessText",hn])}(K.API),K.API.autoPrint=function(Qe){var be;switch((Qe=Qe||{}).variant=Qe.variant||"non-conform",Qe.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){be=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 "+be+" 0 R")})}return this},function(Qe){var be=function(){var Ue=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ue},set:function(Gt){Ue=Gt}});var Xe=150;Object.defineProperty(this,"width",{get:function(){return Xe},set:function(Gt){Xe=isNaN(Gt)||Number.isInteger(Gt)===!1||Gt<0?150:Gt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Xe+1)}});var ze=300;Object.defineProperty(this,"height",{get:function(){return ze},set:function(Gt){ze=isNaN(Gt)||Number.isInteger(Gt)===!1||Gt<0?300:Gt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ze+1)}});var Ze=[];Object.defineProperty(this,"childNodes",{get:function(){return Ze},set:function(Gt){Ze=Gt}});var bt={};Object.defineProperty(this,"style",{get:function(){return bt},set:function(Gt){bt=Gt}}),Object.defineProperty(this,"parentNode",{})};be.prototype.getContext=function(Ne,Ue){var Xe;if((Ne=Ne||"2d")!=="2d")return null;for(Xe in Ue)this.pdf.context2d.hasOwnProperty(Xe)&&(this.pdf.context2d[Xe]=Ue[Xe]);return this.pdf.context2d._canvas=this,this.pdf.context2d},be.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Qe.events.push(["initialized",function(){this.canvas=new be,this.canvas.pdf=this}])}(K.API),function(Qe){var be={left:0,top:0,bottom:0,right:0},Ne=!1,Ue=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({},be),this.internal.__cell__.margins.width=this.getPageWidth(),Xe.call(this))},Xe=function(){this.internal.__cell__.lastCell=new ze,this.internal.__cell__.pages=1},ze=function(){var Gt=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Gt},set:function(nn){Gt=nn}});var Mr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Mr},set:function(nn){Mr=nn}});var Lr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Lr},set:function(nn){Lr=nn}});var Gr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Gr},set:function(nn){Gr=nn}});var Ht=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ht},set:function(nn){Ht=nn}});var hn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return hn},set:function(nn){hn=nn}});var or=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return or},set:function(nn){or=nn}}),this};ze.prototype.clone=function(){return new ze(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ze.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Qe.setHeaderFunction=function(ut){return Ue.call(this),this.internal.__cell__.headerFunction=typeof ut=="function"?ut:void 0,this},Qe.getTextDimensions=function(ut,Gt){Ue.call(this);var Mr=(Gt=Gt||{}).fontSize||this.getFontSize(),Lr=Gt.font||this.getFont(),Gr=Gt.scaleFactor||this.internal.scaleFactor,Ht=0,hn=0,or=0,vn=this;if(!Array.isArray(ut)&&typeof ut!="string"){if(typeof ut!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ut=String(ut)}var nn=Gt.maxWidth;nn>0?typeof ut=="string"?ut=this.splitTextToSize(ut,nn):Object.prototype.toString.call(ut)==="[object Array]"&&(ut=ut.reduce(function(ni,Oi){return ni.concat(vn.splitTextToSize(Oi,nn))},[])):ut=Array.isArray(ut)?ut:[ut];for(var Ur=0;Ur<ut.length;Ur++)Ht<(or=this.getStringUnitWidth(ut[Ur],{font:Lr})*Mr)&&(Ht=or);return Ht!==0&&(hn=ut.length),{w:Ht/=Gr,h:Math.max((hn*Mr*this.getLineHeightFactor()-Mr*(this.getLineHeightFactor()-1))/Gr,0)}},Qe.cellAddPage=function(){Ue.call(this),this.addPage();var ut=this.internal.__cell__.margins||be;return this.internal.__cell__.lastCell=new ze(ut.left,ut.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Ze=Qe.cell=function(){var ut;ut=arguments[0]instanceof ze?arguments[0]:new ze(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ue.call(this);var Gt=this.internal.__cell__.lastCell,Mr=this.internal.__cell__.padding,Lr=this.internal.__cell__.margins||be,Gr=this.internal.__cell__.tableHeaderRow,Ht=this.internal.__cell__.printHeaders;return Gt.lineNumber!==void 0&&(Gt.lineNumber===ut.lineNumber?(ut.x=(Gt.x||0)+(Gt.width||0),ut.y=Gt.y||0):Gt.y+Gt.height+ut.height+Lr.bottom>this.getPageHeight()?(this.cellAddPage(),ut.y=Lr.top,Ht&&Gr&&(this.printHeaderRow(ut.lineNumber,!0),ut.y+=Gr[0].height)):ut.y=Gt.y+Gt.height||ut.y),ut.text[0]!==void 0&&(this.rect(ut.x,ut.y,ut.width,ut.height,Ne===!0?"FD":void 0),ut.align==="right"?this.text(ut.text,ut.x+ut.width-Mr,ut.y+Mr,{align:"right",baseline:"top"}):ut.align==="center"?this.text(ut.text,ut.x+ut.width/2,ut.y+Mr,{align:"center",baseline:"top",maxWidth:ut.width-Mr-Mr}):this.text(ut.text,ut.x+Mr,ut.y+Mr,{align:"left",baseline:"top",maxWidth:ut.width-Mr-Mr})),this.internal.__cell__.lastCell=ut,this};Qe.table=function(ut,Gt,Mr,Lr,Gr){if(Ue.call(this),!Mr)throw new Error("No data for PDF table.");var Ht,hn,or,vn,nn=[],Ur=[],ni=[],Oi={},Hi={},Ri=[],Ni=[],Yi=(Gr=Gr||{}).autoSize||!1,Qr=Gr.printHeaders!==!1,On=Gr.css&&Gr.css["font-size"]!==void 0?16*Gr.css["font-size"]:Gr.fontSize||12,zr=Gr.margins||Object.assign({width:this.getPageWidth()},be),fr=typeof Gr.padding=="number"?Gr.padding:3,Nr=Gr.headerBackgroundColor||"#c8c8c8",Qt=Gr.headerTextColor||"#000";if(Xe.call(this),this.internal.__cell__.printHeaders=Qr,this.internal.__cell__.margins=zr,this.internal.__cell__.table_font_size=On,this.internal.__cell__.padding=fr,this.internal.__cell__.headerBackgroundColor=Nr,this.internal.__cell__.headerTextColor=Qt,this.setFontSize(On),Lr==null)Ur=nn=Object.keys(Mr[0]),ni=nn.map(function(){return"left"});else if(Array.isArray(Lr)&&C()(Lr[0])==="object")for(nn=Lr.map(function(Yn){return Yn.name}),Ur=Lr.map(function(Yn){return Yn.prompt||Yn.name||""}),ni=Lr.map(function(Yn){return Yn.align||"left"}),Ht=0;Ht<Lr.length;Ht+=1)Hi[Lr[Ht].name]=Lr[Ht].width*(19.049976/25.4);else Array.isArray(Lr)&&typeof Lr[0]=="string"&&(Ur=nn=Lr,ni=nn.map(function(){return"left"}));if(Yi||Array.isArray(Lr)&&typeof Lr[0]=="string")for(Ht=0;Ht<nn.length;Ht+=1){for(Oi[vn=nn[Ht]]=Mr.map(function(Yn){return Yn[vn]}),this.setFont(void 0,"bold"),Ri.push(this.getTextDimensions(Ur[Ht],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),hn=Oi[vn],this.setFont(void 0,"normal"),or=0;or<hn.length;or+=1)Ri.push(this.getTextDimensions(hn[or],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Hi[vn]=Math.max.apply(null,Ri)+fr+fr,Ri=[]}if(Qr){var xr={};for(Ht=0;Ht<nn.length;Ht+=1)xr[nn[Ht]]={},xr[nn[Ht]].text=Ur[Ht],xr[nn[Ht]].align=ni[Ht];var Jr=bt.call(this,xr,Hi);Ni=nn.map(function(Yn){return new ze(ut,Gt,Hi[Yn],Jr,xr[Yn].text,void 0,xr[Yn].align)}),this.setTableHeaderRow(Ni),this.printHeaderRow(1,!1)}var Kr=Lr.reduce(function(Yn,Si){return Yn[Si.name]=Si.align,Yn},{});for(Ht=0;Ht<Mr.length;Ht+=1){"rowStart"in Gr&&Gr.rowStart instanceof Function&&Gr.rowStart({row:Ht,data:Mr[Ht]},this);var en=bt.call(this,Mr[Ht],Hi);for(or=0;or<nn.length;or+=1){var ai=Mr[Ht][nn[or]];"cellStart"in Gr&&Gr.cellStart instanceof Function&&Gr.cellStart({row:Ht,col:or,data:ai},this),Ze.call(this,new ze(ut,Gt,Hi[nn[or]],en,ai,Ht+2,Kr[nn[or]]))}}return this.internal.__cell__.table_x=ut,this.internal.__cell__.table_y=Gt,this};var bt=function(Gt,Mr){var Lr=this.internal.__cell__.padding,Gr=this.internal.__cell__.table_font_size,Ht=this.internal.scaleFactor;return Object.keys(Gt).map(function(hn){var or=Gt[hn];return this.splitTextToSize(or.hasOwnProperty("text")?or.text:or,Mr[hn]-Lr-Lr)},this).map(function(hn){return this.getLineHeightFactor()*hn.length*Gr/Ht+Lr+Lr},this).reduce(function(hn,or){return Math.max(hn,or)},0)};Qe.setTableHeaderRow=function(ut){Ue.call(this),this.internal.__cell__.tableHeaderRow=ut},Qe.printHeaderRow=function(ut,Gt){if(Ue.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Mr;if(Ne=!0,typeof this.internal.__cell__.headerFunction=="function"){var Lr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new ze(Lr[0],Lr[1],Lr[2],Lr[3],void 0,-1)}this.setFont(void 0,"bold");for(var Gr=[],Ht=0;Ht<this.internal.__cell__.tableHeaderRow.length;Ht+=1){Mr=this.internal.__cell__.tableHeaderRow[Ht].clone(),Gt&&(Mr.y=this.internal.__cell__.margins.top||0,Gr.push(Mr)),Mr.lineNumber=ut;var hn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Ze.call(this,Mr),this.setTextColor(hn)}Gr.length>0&&this.setTableHeaderRow(Gr),this.setFont(void 0,"normal"),Ne=!1}}(K.API);var yt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},zt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],lt=oe(zt),$t=[100,200,300,400,500,600,700,800,900],cr=oe($t);function cn(Qe){var be=Qe.family.replace(/"|'/g,"").toLowerCase(),Ne=function(ze){return yt[ze=ze||"normal"]?ze:"normal"}(Qe.style),Ue=function(ze){if(!ze)return 400;if(typeof ze=="number")return ze>=100&&ze<=900&&ze%100==0?ze:400;if(/^\d00$/.test(ze))return parseInt(ze);switch(ze){case"bold":return 700;case"normal":default:return 400}}(Qe.weight),Xe=function(ze){return typeof lt[ze=ze||"normal"]=="number"?ze:"normal"}(Qe.stretch);return{family:be,style:Ne,weight:Ue,stretch:Xe,src:Qe.src||[],ref:Qe.ref||{name:be,style:[Xe,Ne,Ue].join(" ")}}}function pr(Qe,be,Ne,Ue){var Xe;for(Xe=Ne;Xe>=0&&Xe<be.length;Xe+=Ue)if(Qe[be[Xe]])return Qe[be[Xe]];for(Xe=Ne;Xe>=0&&Xe<be.length;Xe-=Ue)if(Qe[be[Xe]])return Qe[be[Xe]]}var gr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Zt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Vt(Qe){return[Qe.stretch,Qe.style,Qe.weight,Qe.family].join(" ")}function mt(Qe,be,Ne){for(var Ue=(Ne=Ne||{}).defaultFontFamily||"times",Xe=Object.assign({},gr,Ne.genericFontFamilies||{}),ze=null,Ze=null,bt=0;bt<be.length;++bt)if(Xe[(ze=cn(be[bt])).family]&&(ze.family=Xe[ze.family]),Qe.hasOwnProperty(ze.family)){Ze=Qe[ze.family];break}if(!(Ze=Ze||Qe[Ue]))throw new Error("Could not find a font-family for the rule '"+Vt(ze)+"' and default family '"+Ue+"'.");if(Ze=function(ut,Gt){if(Gt[ut])return Gt[ut];var Mr=lt[ut],Lr=Mr<=lt.normal?-1:1,Gr=pr(Gt,zt,Mr,Lr);if(!Gr)throw new Error("Could not find a matching font-stretch value for "+ut);return Gr}(ze.stretch,Ze),Ze=function(ut,Gt){if(Gt[ut])return Gt[ut];for(var Mr=yt[ut],Lr=0;Lr<Mr.length;++Lr)if(Gt[Mr[Lr]])return Gt[Mr[Lr]];throw new Error("Could not find a matching font-style for "+ut)}(ze.style,Ze),!(Ze=function(ut,Gt){if(Gt[ut])return Gt[ut];if(ut===400&&Gt[500])return Gt[500];if(ut===500&&Gt[400])return Gt[400];var Mr=cr[ut],Lr=pr(Gt,$t,Mr,ut<400?-1:1);if(!Lr)throw new Error("Could not find a matching font-weight for value "+ut);return Lr}(ze.weight,Ze)))throw new Error("Failed to resolve a font for the rule '"+Vt(ze)+"'.");return Ze}function Yr(Qe){return Qe.trimLeft()}function Tn(Qe,be){for(var Ne=0;Ne<Qe.length;){if(Qe.charAt(Ne)===be)return[Qe.substring(0,Ne),Qe.substring(Ne+1)];Ne+=1}return null}function Hn(Qe){var be=Qe.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return be===null?null:[be[0],Qe.substring(be[0].length)]}var ei,ji,Ln,Vn=["times"];!function(Qe){var be,Ne,Ue,Xe,ze,Ze,bt,ut,Gt,Mr=function(Or){return Or=Or||{},this.isStrokeTransparent=Or.isStrokeTransparent||!1,this.strokeOpacity=Or.strokeOpacity||1,this.strokeStyle=Or.strokeStyle||"#000000",this.fillStyle=Or.fillStyle||"#000000",this.isFillTransparent=Or.isFillTransparent||!1,this.fillOpacity=Or.fillOpacity||1,this.font=Or.font||"10px sans-serif",this.textBaseline=Or.textBaseline||"alphabetic",this.textAlign=Or.textAlign||"left",this.lineWidth=Or.lineWidth||1,this.lineJoin=Or.lineJoin||"miter",this.lineCap=Or.lineCap||"butt",this.path=Or.path||[],this.transform=Or.transform!==void 0?Or.transform.clone():new ut,this.globalCompositeOperation=Or.globalCompositeOperation||"normal",this.globalAlpha=Or.globalAlpha||1,this.clip_path=Or.clip_path||[],this.currentPoint=Or.currentPoint||new Ze,this.miterLimit=Or.miterLimit||10,this.lastPoint=Or.lastPoint||new Ze,this.lineDashOffset=Or.lineDashOffset||0,this.lineDash=Or.lineDash||[],this.margin=Or.margin||[0,0,0,0],this.prevPageLastElemOffset=Or.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Or.ignoreClearRect!="boolean"||Or.ignoreClearRect,this};Qe.events.push(["initialized",function(){this.context2d=new Lr(this),be=this.internal.f2,Ne=this.internal.getCoordinateString,Ue=this.internal.getVerticalCoordinateString,Xe=this.internal.getHorizontalCoordinate,ze=this.internal.getVerticalCoordinate,Ze=this.internal.Point,bt=this.internal.Rectangle,ut=this.internal.Matrix,Gt=new Mr}]);var Lr=function(Or){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var wn=Or;Object.defineProperty(this,"pdf",{get:function(){return wn}});var Xn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Xn},set:function(Zi){Xn=Boolean(Zi)}});var Zn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Zn},set:function(Zi){Zn=Boolean(Zi)}});var ii=0;Object.defineProperty(this,"posX",{get:function(){return ii},set:function(Zi){isNaN(Zi)||(ii=Zi)}});var Ei=0;Object.defineProperty(this,"posY",{get:function(){return Ei},set:function(Zi){isNaN(Zi)||(Ei=Zi)}}),Object.defineProperty(this,"margin",{get:function(){return Gt.margin},set:function(Zi){var va;typeof Zi=="number"?va=[Zi,Zi,Zi,Zi]:((va=new Array(4))[0]=Zi[0],va[1]=Zi.length>=2?Zi[1]:va[0],va[2]=Zi.length>=3?Zi[2]:va[0],va[3]=Zi.length>=4?Zi[3]:va[1]),Gt.margin=va}});var ki=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ki},set:function(Zi){ki=Zi}});var Fi=0;Object.defineProperty(this,"lastBreak",{get:function(){return Fi},set:function(Zi){Fi=Zi}});var ra=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ra},set:function(Zi){ra=Zi}}),Object.defineProperty(this,"ctx",{get:function(){return Gt},set:function(Zi){Zi instanceof Mr&&(Gt=Zi)}}),Object.defineProperty(this,"path",{get:function(){return Gt.path},set:function(Zi){Gt.path=Zi}});var _a=[];Object.defineProperty(this,"ctxStack",{get:function(){return _a},set:function(Zi){_a=Zi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Zi){var va;va=Gr(Zi),this.ctx.fillStyle=va.style,this.ctx.isFillTransparent=va.a===0,this.ctx.fillOpacity=va.a,this.pdf.setFillColor(va.r,va.g,va.b,{a:va.a}),this.pdf.setTextColor(va.r,va.g,va.b,{a:va.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Zi){var va=Gr(Zi);this.ctx.strokeStyle=va.style,this.ctx.isStrokeTransparent=va.a===0,this.ctx.strokeOpacity=va.a,va.a===0?this.pdf.setDrawColor(255,255,255):(va.a,this.pdf.setDrawColor(va.r,va.g,va.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Zi){["butt","round","square"].indexOf(Zi)!==-1&&(this.ctx.lineCap=Zi,this.pdf.setLineCap(Zi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Zi){isNaN(Zi)||(this.ctx.lineWidth=Zi,this.pdf.setLineWidth(Zi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Zi){["bevel","round","miter"].indexOf(Zi)!==-1&&(this.ctx.lineJoin=Zi,this.pdf.setLineJoin(Zi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Zi){isNaN(Zi)||(this.ctx.miterLimit=Zi,this.pdf.setMiterLimit(Zi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Zi){this.ctx.textBaseline=Zi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Zi){["right","end","center","left","start"].indexOf(Zi)!==-1&&(this.ctx.textAlign=Zi)}});var wa=null;function _o(xn,Zi){if(wa===null){var va=function(ta){var ma=[];return Object.keys(ta).forEach(function(Qi){ta[Qi].forEach(function(Ya){var Wa=null;switch(Ya){case"bold":Wa={family:Qi,weight:"bold"};break;case"italic":Wa={family:Qi,style:"italic"};break;case"bolditalic":Wa={family:Qi,weight:"bold",style:"italic"};break;case"":case"normal":Wa={family:Qi}}Wa!==null&&(Wa.ref={name:Qi,style:Ya},ma.push(Wa))})}),ma}(xn.getFontList());wa=function(ta){for(var ma={},Qi=0;Qi<ta.length;++Qi){var Ya=cn(ta[Qi]),Wa=Ya.family,Ao=Ya.stretch,es=Ya.style,so=Ya.weight;ma[Wa]=ma[Wa]||{},ma[Wa][Ao]=ma[Wa][Ao]||{},ma[Wa][Ao][es]=ma[Wa][Ao][es]||{},ma[Wa][Ao][es][so]=Ya}return ma}(va.concat(Zi))}return wa}var bi=null;Object.defineProperty(this,"fontFaces",{get:function(){return bi},set:function(Zi){wa=null,bi=Zi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Zi){var va;if(this.ctx.font=Zi,(va=/^\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(Zi))!==null){var ta=va[1],ma=(va[2],va[3]),Qi=va[4],Ya=(va[5],va[6]),Wa=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Qi)[2];Qi=Wa==="px"?Math.floor(parseFloat(Qi)*this.pdf.internal.scaleFactor):Wa==="em"?Math.floor(parseFloat(Qi)*this.pdf.getFontSize()):Math.floor(parseFloat(Qi)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Qi);var Ao=function(dn){var Kn,si,vi=[],pi=dn.trim();if(pi==="")return Vn;if(pi in Zt)return[Zt[pi]];for(;pi!=="";){switch(si=null,Kn=(pi=Yr(pi)).charAt(0)){case'"':case"'":si=Tn(pi.substring(1),Kn);break;default:si=Hn(pi)}if(si===null)return Vn;if(vi.push(si[0]),(pi=Yr(si[1]))!==""&&pi.charAt(0)!==",")return Vn;pi=pi.replace(/^,/,"")}return vi}(Ya);if(this.fontFaces){var es=mt(_o(this.pdf,this.fontFaces),Ao.map(function(dn){return{family:dn,stretch:"normal",weight:ma,style:ta}}));this.pdf.setFont(es.ref.name,es.ref.style)}else{var so="";(ma==="bold"||parseInt(ma,10)>=700||ta==="bold")&&(so="bold"),ta==="italic"&&(so+="italic"),so.length===0&&(so="normal");for(var So="",xo={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"},hr=0;hr<Ao.length;hr++){if(this.pdf.internal.getFont(Ao[hr],so,{noFallback:!0,disableWarning:!0})!==void 0){So=Ao[hr];break}if(so==="bolditalic"&&this.pdf.internal.getFont(Ao[hr],"bold",{noFallback:!0,disableWarning:!0})!==void 0)So=Ao[hr],so="bold";else if(this.pdf.internal.getFont(Ao[hr],"normal",{noFallback:!0,disableWarning:!0})!==void 0){So=Ao[hr],so="normal";break}}if(So===""){for(var Sn=0;Sn<Ao.length;Sn++)if(xo[Ao[Sn]]){So=xo[Ao[Sn]];break}}So=So===""?"Times":So,this.pdf.setFont(So,so)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Zi){this.ctx.globalCompositeOperation=Zi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Zi){this.ctx.globalAlpha=Zi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Zi){this.ctx.lineDashOffset=Zi,Si.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Zi){this.ctx.lineDash=Zi,Si.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Zi){this.ctx.ignoreClearRect=Boolean(Zi)}})};Lr.prototype.setLineDash=function(ln){this.lineDash=ln},Lr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Lr.prototype.fill=function(){Oi.call(this,"fill",!1)},Lr.prototype.stroke=function(){Oi.call(this,"stroke",!1)},Lr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Lr.prototype.moveTo=function(ln,Or){if(isNaN(ln)||isNaN(Or))throw h.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var wn=this.ctx.transform.applyToPoint(new Ze(ln,Or));this.path.push({type:"mt",x:wn.x,y:wn.y}),this.ctx.lastPoint=new Ze(ln,Or)},Lr.prototype.closePath=function(){var ln=new Ze(0,0),Or=0;for(Or=this.path.length-1;Or!==-1;Or--)if(this.path[Or].type==="begin"&&C()(this.path[Or+1])==="object"&&typeof this.path[Or+1].x=="number"){ln=new Ze(this.path[Or+1].x,this.path[Or+1].y),this.path.push({type:"lt",x:ln.x,y:ln.y});break}C()(this.path[Or+2])==="object"&&typeof this.path[Or+2].x=="number"&&this.path.push(JSON.parse(JSON.stringify(this.path[Or+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new Ze(ln.x,ln.y)},Lr.prototype.lineTo=function(ln,Or){if(isNaN(ln)||isNaN(Or))throw h.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var wn=this.ctx.transform.applyToPoint(new Ze(ln,Or));this.path.push({type:"lt",x:wn.x,y:wn.y}),this.ctx.lastPoint=new Ze(wn.x,wn.y)},Lr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Oi.call(this,null,!0)},Lr.prototype.quadraticCurveTo=function(ln,Or,wn,Xn){if(isNaN(wn)||isNaN(Xn)||isNaN(ln)||isNaN(Or))throw h.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Zn=this.ctx.transform.applyToPoint(new Ze(wn,Xn)),ii=this.ctx.transform.applyToPoint(new Ze(ln,Or));this.path.push({type:"qct",x1:ii.x,y1:ii.y,x:Zn.x,y:Zn.y}),this.ctx.lastPoint=new Ze(Zn.x,Zn.y)},Lr.prototype.bezierCurveTo=function(ln,Or,wn,Xn,Zn,ii){if(isNaN(Zn)||isNaN(ii)||isNaN(ln)||isNaN(Or)||isNaN(wn)||isNaN(Xn))throw h.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ei=this.ctx.transform.applyToPoint(new Ze(Zn,ii)),ki=this.ctx.transform.applyToPoint(new Ze(ln,Or)),Fi=this.ctx.transform.applyToPoint(new Ze(wn,Xn));this.path.push({type:"bct",x1:ki.x,y1:ki.y,x2:Fi.x,y2:Fi.y,x:Ei.x,y:Ei.y}),this.ctx.lastPoint=new Ze(Ei.x,Ei.y)},Lr.prototype.arc=function(ln,Or,wn,Xn,Zn,ii){if(isNaN(ln)||isNaN(Or)||isNaN(wn)||isNaN(Xn)||isNaN(Zn))throw h.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ii=Boolean(ii),!this.ctx.transform.isIdentity){var Ei=this.ctx.transform.applyToPoint(new Ze(ln,Or));ln=Ei.x,Or=Ei.y;var ki=this.ctx.transform.applyToPoint(new Ze(0,wn)),Fi=this.ctx.transform.applyToPoint(new Ze(0,0));wn=Math.sqrt(Math.pow(ki.x-Fi.x,2)+Math.pow(ki.y-Fi.y,2))}Math.abs(Zn-Xn)>=2*Math.PI&&(Xn=0,Zn=2*Math.PI),this.path.push({type:"arc",x:ln,y:Or,radius:wn,startAngle:Xn,endAngle:Zn,counterclockwise:ii})},Lr.prototype.arcTo=function(ln,Or,wn,Xn,Zn){throw new Error("arcTo not implemented.")},Lr.prototype.rect=function(ln,Or,wn,Xn){if(isNaN(ln)||isNaN(Or)||isNaN(wn)||isNaN(Xn))throw h.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(ln,Or),this.lineTo(ln+wn,Or),this.lineTo(ln+wn,Or+Xn),this.lineTo(ln,Or+Xn),this.lineTo(ln,Or),this.lineTo(ln+wn,Or),this.lineTo(ln,Or)},Lr.prototype.fillRect=function(ln,Or,wn,Xn){if(isNaN(ln)||isNaN(Or)||isNaN(wn)||isNaN(Xn))throw h.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ht.call(this)){var Zn={};this.lineCap!=="butt"&&(Zn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Zn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(ln,Or,wn,Xn),this.fill(),Zn.hasOwnProperty("lineCap")&&(this.lineCap=Zn.lineCap),Zn.hasOwnProperty("lineJoin")&&(this.lineJoin=Zn.lineJoin)}},Lr.prototype.strokeRect=function(ln,Or,wn,Xn){if(isNaN(ln)||isNaN(Or)||isNaN(wn)||isNaN(Xn))throw h.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");hn.call(this)||(this.beginPath(),this.rect(ln,Or,wn,Xn),this.stroke())},Lr.prototype.clearRect=function(ln,Or,wn,Xn){if(isNaN(ln)||isNaN(Or)||isNaN(wn)||isNaN(Xn))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(ln,Or,wn,Xn))},Lr.prototype.save=function(ln){ln=typeof ln!="boolean"||ln;for(var Or=this.pdf.internal.getCurrentPageInfo().pageNumber,wn=0;wn<this.pdf.internal.getNumberOfPages();wn++)this.pdf.setPage(wn+1),this.pdf.internal.out("q");if(this.pdf.setPage(Or),ln){this.ctx.fontSize=this.pdf.internal.getFontSize();var Xn=new Mr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Xn}},Lr.prototype.restore=function(ln){ln=typeof ln!="boolean"||ln;for(var Or=this.pdf.internal.getCurrentPageInfo().pageNumber,wn=0;wn<this.pdf.internal.getNumberOfPages();wn++)this.pdf.setPage(wn+1),this.pdf.internal.out("Q");this.pdf.setPage(Or),ln&&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)},Lr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Gr=function(Or){var wn,Xn,Zn,ii;if(Or.isCanvasGradient===!0&&(Or=Or.getColor()),!Or)return{r:0,g:0,b:0,a:0,style:Or};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Or))wn=0,Xn=0,Zn=0,ii=0;else{var Ei=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Or);if(Ei!==null)wn=parseInt(Ei[1]),Xn=parseInt(Ei[2]),Zn=parseInt(Ei[3]),ii=1;else if((Ei=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Or))!==null)wn=parseInt(Ei[1]),Xn=parseInt(Ei[2]),Zn=parseInt(Ei[3]),ii=parseFloat(Ei[4]);else{if(ii=1,typeof Or=="string"&&Or.charAt(0)!=="#"){var ki=new s(Or);Or=ki.ok?ki.toHex():"#000000"}Or.length===4?(wn=Or.substring(1,2),wn+=wn,Xn=Or.substring(2,3),Xn+=Xn,Zn=Or.substring(3,4),Zn+=Zn):(wn=Or.substring(1,3),Xn=Or.substring(3,5),Zn=Or.substring(5,7)),wn=parseInt(wn,16),Xn=parseInt(Xn,16),Zn=parseInt(Zn,16)}}return{r:wn,g:Xn,b:Zn,a:ii,style:Or}},Ht=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},hn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Lr.prototype.fillText=function(ln,Or,wn,Xn){if(isNaN(Or)||isNaN(wn)||typeof ln!="string")throw h.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Xn=isNaN(Xn)?void 0:Xn,!Ht.call(this)){var Zn=en(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;fr.call(this,{text:ln,x:Or,y:wn,scale:ii,angle:Zn,align:this.textAlign,maxWidth:Xn})}},Lr.prototype.strokeText=function(ln,Or,wn,Xn){if(isNaN(Or)||isNaN(wn)||typeof ln!="string")throw h.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!hn.call(this)){Xn=isNaN(Xn)?void 0:Xn;var Zn=en(this.ctx.transform.rotation),ii=this.ctx.transform.scaleX;fr.call(this,{text:ln,x:Or,y:wn,scale:ii,renderingMode:"stroke",angle:Zn,align:this.textAlign,maxWidth:Xn})}},Lr.prototype.measureText=function(ln){if(typeof ln!="string")throw h.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Or=this.pdf,wn=this.pdf.internal.scaleFactor,Xn=Or.internal.getFontSize(),Zn=Or.getStringUnitWidth(ln)*Xn/Or.internal.scaleFactor,ii=function(ki){var Fi=(ki=ki||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Fi}}),this};return new ii({width:Zn*=Math.round(96*wn/72*1e4)/1e4})},Lr.prototype.scale=function(ln,Or){if(isNaN(ln)||isNaN(Or))throw h.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var wn=new ut(ln,0,0,Or,0,0);this.ctx.transform=this.ctx.transform.multiply(wn)},Lr.prototype.rotate=function(ln){if(isNaN(ln))throw h.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Or=new ut(Math.cos(ln),Math.sin(ln),-Math.sin(ln),Math.cos(ln),0,0);this.ctx.transform=this.ctx.transform.multiply(Or)},Lr.prototype.translate=function(ln,Or){if(isNaN(ln)||isNaN(Or))throw h.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var wn=new ut(1,0,0,1,ln,Or);this.ctx.transform=this.ctx.transform.multiply(wn)},Lr.prototype.transform=function(ln,Or,wn,Xn,Zn,ii){if(isNaN(ln)||isNaN(Or)||isNaN(wn)||isNaN(Xn)||isNaN(Zn)||isNaN(ii))throw h.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ei=new ut(ln,Or,wn,Xn,Zn,ii);this.ctx.transform=this.ctx.transform.multiply(Ei)},Lr.prototype.setTransform=function(ln,Or,wn,Xn,Zn,ii){ln=isNaN(ln)?1:ln,Or=isNaN(Or)?0:Or,wn=isNaN(wn)?0:wn,Xn=isNaN(Xn)?1:Xn,Zn=isNaN(Zn)?0:Zn,ii=isNaN(ii)?0:ii,this.ctx.transform=new ut(ln,Or,wn,Xn,Zn,ii)};var or=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Lr.prototype.drawImage=function(ln,Or,wn,Xn,Zn,ii,Ei,ki,Fi){var ra=this.pdf.getImageProperties(ln),_a=1,wa=1,_o=1,bi=1;Xn!==void 0&&ki!==void 0&&(_o=ki/Xn,bi=Fi/Zn,_a=ra.width/Xn*ki/Xn,wa=ra.height/Zn*Fi/Zn),ii===void 0&&(ii=Or,Ei=wn,Or=0,wn=0),Xn!==void 0&&ki===void 0&&(ki=Xn,Fi=Zn),Xn===void 0&&ki===void 0&&(ki=ra.width,Fi=ra.height);for(var xn,Zi=this.ctx.transform.decompose(),va=en(Zi.rotate.shx),ta=new ut,ma=(ta=(ta=(ta=ta.multiply(Zi.translate)).multiply(Zi.skew)).multiply(Zi.scale)).applyToRectangle(new bt(ii-Or*_o,Ei-wn*bi,Xn*_a,Zn*wa)),Qi=vn.call(this,ma),Ya=[],Wa=0;Wa<Qi.length;Wa+=1)Ya.indexOf(Qi[Wa])===-1&&Ya.push(Qi[Wa]);if(ni(Ya),this.autoPaging)for(var Ao=Ya[0],es=Ya[Ya.length-1],so=Ao;so<es+1;so++){this.pdf.setPage(so);var So=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],xo=so===1?this.posY+this.margin[0]:this.margin[0],hr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Sn=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],dn=so===1?0:hr+(so-2)*Sn;if(this.ctx.clip_path.length!==0){var Kn=this.path;xn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ur(xn,this.posX+this.margin[3],-dn+xo+this.ctx.prevPageLastElemOffset),Hi.call(this,"fill",!0),this.path=Kn}var si=JSON.parse(JSON.stringify(ma));si=Ur([si],this.posX+this.margin[3],-dn+xo+this.ctx.prevPageLastElemOffset)[0];var vi=(so>Ao||so<es)&&or.call(this);vi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],So,Sn,null).clip().discardPath()),this.pdf.addImage(ln,"JPEG",si.x,si.y,si.w,si.h,null,null,va),vi&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(ln,"JPEG",ma.x,ma.y,ma.w,ma.h,null,null,va)};var vn=function(Or,wn,Xn){var Zn=[];wn=wn||this.pdf.internal.pageSize.width,Xn=Xn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var ii=this.posY+this.ctx.prevPageLastElemOffset;switch(Or.type){default:case"mt":case"lt":Zn.push(Math.floor((Or.y+ii)/Xn)+1);break;case"arc":Zn.push(Math.floor((Or.y+ii-Or.radius)/Xn)+1),Zn.push(Math.floor((Or.y+ii+Or.radius)/Xn)+1);break;case"qct":var Ei=ai(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Or.x1,Or.y1,Or.x,Or.y);Zn.push(Math.floor((Ei.y+ii)/Xn)+1),Zn.push(Math.floor((Ei.y+Ei.h+ii)/Xn)+1);break;case"bct":var ki=Yn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Or.x1,Or.y1,Or.x2,Or.y2,Or.x,Or.y);Zn.push(Math.floor((ki.y+ii)/Xn)+1),Zn.push(Math.floor((ki.y+ki.h+ii)/Xn)+1);break;case"rect":Zn.push(Math.floor((Or.y+ii)/Xn)+1),Zn.push(Math.floor((Or.y+Or.h+ii)/Xn)+1)}for(var Fi=0;Fi<Zn.length;Fi+=1)for(;this.pdf.internal.getNumberOfPages()<Zn[Fi];)nn.call(this);return Zn},nn=function(){var Or=this.fillStyle,wn=this.strokeStyle,Xn=this.font,Zn=this.lineCap,ii=this.lineWidth,Ei=this.lineJoin;this.pdf.addPage(),this.fillStyle=Or,this.strokeStyle=wn,this.font=Xn,this.lineCap=Zn,this.lineWidth=ii,this.lineJoin=Ei},Ur=function(Or,wn,Xn){for(var Zn=0;Zn<Or.length;Zn++)switch(Or[Zn].type){case"bct":Or[Zn].x2+=wn,Or[Zn].y2+=Xn;case"qct":Or[Zn].x1+=wn,Or[Zn].y1+=Xn;case"mt":case"lt":case"arc":default:Or[Zn].x+=wn,Or[Zn].y+=Xn}return Or},ni=function(Or){return Or.sort(function(wn,Xn){return wn-Xn})},Oi=function(Or,wn){for(var Xn,Zn,ii=this.fillStyle,Ei=this.strokeStyle,ki=this.lineCap,Fi=this.lineWidth,ra=Math.abs(Fi*this.ctx.transform.scaleX),_a=this.lineJoin,wa=JSON.parse(JSON.stringify(this.path)),_o=JSON.parse(JSON.stringify(this.path)),bi=[],xn=0;xn<_o.length;xn++)if(_o[xn].x!==void 0)for(var Zi=vn.call(this,_o[xn]),va=0;va<Zi.length;va+=1)bi.indexOf(Zi[va])===-1&&bi.push(Zi[va]);for(var ta=0;ta<bi.length;ta++)for(;this.pdf.internal.getNumberOfPages()<bi[ta];)nn.call(this);if(ni(bi),this.autoPaging)for(var ma=bi[0],Qi=bi[bi.length-1],Ya=ma;Ya<Qi+1;Ya++){this.pdf.setPage(Ya),this.fillStyle=ii,this.strokeStyle=Ei,this.lineCap=ki,this.lineWidth=ra,this.lineJoin=_a;var Wa=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ao=Ya===1?this.posY+this.margin[0]:this.margin[0],es=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],so=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],So=Ya===1?0:es+(Ya-2)*so;if(this.ctx.clip_path.length!==0){var xo=this.path;Xn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ur(Xn,this.posX+this.margin[3],-So+Ao+this.ctx.prevPageLastElemOffset),Hi.call(this,Or,!0),this.path=xo}if(Zn=JSON.parse(JSON.stringify(wa)),this.path=Ur(Zn,this.posX+this.margin[3],-So+Ao+this.ctx.prevPageLastElemOffset),wn===!1||Ya===0){var hr=(Ya>ma||Ya<Qi)&&or.call(this);hr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Wa,so,null).clip().discardPath()),Hi.call(this,Or,wn),hr&&this.pdf.restoreGraphicsState()}this.lineWidth=Fi}else this.lineWidth=ra,Hi.call(this,Or,wn),this.lineWidth=Fi;this.path=wa},Hi=function(Or,wn){if((Or!=="stroke"||wn||!hn.call(this))&&(Or==="stroke"||wn||!Ht.call(this))){for(var Xn,Zn,ii=[],Ei=this.path,ki=0;ki<Ei.length;ki++){var Fi=Ei[ki];switch(Fi.type){case"begin":ii.push({begin:!0});break;case"close":ii.push({close:!0});break;case"mt":ii.push({start:Fi,deltas:[],abs:[]});break;case"lt":var ra=ii.length;if(!isNaN(Ei[ki-1].x)&&(Xn=[Fi.x-Ei[ki-1].x,Fi.y-Ei[ki-1].y],ra>0)){for(;ra>=0;ra--)if(ii[ra-1].close!==!0&&ii[ra-1].begin!==!0){ii[ra-1].deltas.push(Xn),ii[ra-1].abs.push(Fi);break}}break;case"bct":Xn=[Fi.x1-Ei[ki-1].x,Fi.y1-Ei[ki-1].y,Fi.x2-Ei[ki-1].x,Fi.y2-Ei[ki-1].y,Fi.x-Ei[ki-1].x,Fi.y-Ei[ki-1].y],ii[ii.length-1].deltas.push(Xn);break;case"qct":var _a=Ei[ki-1].x+2/3*(Fi.x1-Ei[ki-1].x),wa=Ei[ki-1].y+2/3*(Fi.y1-Ei[ki-1].y),_o=Fi.x+2/3*(Fi.x1-Fi.x),bi=Fi.y+2/3*(Fi.y1-Fi.y),xn=Fi.x,Zi=Fi.y;Xn=[_a-Ei[ki-1].x,wa-Ei[ki-1].y,_o-Ei[ki-1].x,bi-Ei[ki-1].y,xn-Ei[ki-1].x,Zi-Ei[ki-1].y],ii[ii.length-1].deltas.push(Xn);break;case"arc":ii.push({deltas:[],abs:[],arc:!0}),Array.isArray(ii[ii.length-1].abs)&&ii[ii.length-1].abs.push(Fi)}}Zn=wn?null:Or==="stroke"?"stroke":"fill";for(var va=0;va<ii.length;va++){if(ii[va].arc){for(var ta=ii[va].abs,ma=0;ma<ta.length;ma++){var Qi=ta[ma];Qi.type==="arc"?Yi.call(this,Qi.x,Qi.y,Qi.radius,Qi.startAngle,Qi.endAngle,Qi.counterclockwise,void 0,wn):Nr.call(this,Qi.x,Qi.y)}Qr.call(this,Zn),this.pdf.internal.out("h")}if(!ii[va].arc&&ii[va].close!==!0&&ii[va].begin!==!0){var Ya=ii[va].start.x,Wa=ii[va].start.y;Qt.call(this,ii[va].deltas,Ya,Wa)}}Zn&&Qr.call(this,Zn),wn&&On.call(this)}},Ri=function(Or){var wn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Xn=wn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Or-Xn;case"top":return Or+wn-Xn;case"hanging":return Or+wn-2*Xn;case"middle":return Or+wn/2-Xn;case"ideographic":return Or;case"alphabetic":default:return Or}},Ni=function(Or){return Or+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Lr.prototype.createLinearGradient=function(){var ln=function(){};return ln.colorStops=[],ln.addColorStop=function(Or,wn){this.colorStops.push([Or,wn])},ln.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},ln.isCanvasGradient=!0,ln},Lr.prototype.createPattern=function(){return this.createLinearGradient()},Lr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Yi=function(Or,wn,Xn,Zn,ii,Ei,ki,Fi){for(var ra=Jr.call(this,Xn,Zn,ii,Ei),_a=0;_a<ra.length;_a++){var wa=ra[_a];_a===0&&zr.call(this,wa.x1+Or,wa.y1+wn),xr.call(this,Or,wn,wa.x2,wa.y2,wa.x3,wa.y3,wa.x4,wa.y4)}Fi?On.call(this):Qr.call(this,ki)},Qr=function(Or){switch(Or){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},On=function(){this.pdf.clip(),this.pdf.discardPath()},zr=function(Or,wn){this.pdf.internal.out(Ne(Or)+" "+Ue(wn)+" m")},fr=function(Or){var wn;switch(Or.align){case"right":case"end":wn="right";break;case"center":wn="center";break;case"left":case"start":default:wn="left"}var Xn=this.pdf.getTextDimensions(Or.text),Zn=Ri.call(this,Or.y),ii=Ni.call(this,Zn)-Xn.h,Ei=this.ctx.transform.applyToPoint(new Ze(Or.x,Zn)),ki=this.ctx.transform.decompose(),Fi=new ut;Fi=(Fi=(Fi=Fi.multiply(ki.translate)).multiply(ki.skew)).multiply(ki.scale);for(var ra,_a,wa,_o=this.ctx.transform.applyToRectangle(new bt(Or.x,Zn,Xn.w,Xn.h)),bi=Fi.applyToRectangle(new bt(Or.x,ii,Xn.w,Xn.h)),xn=vn.call(this,bi),Zi=[],va=0;va<xn.length;va+=1)Zi.indexOf(xn[va])===-1&&Zi.push(xn[va]);if(ni(Zi),this.autoPaging)for(var ta=Zi[0],ma=Zi[Zi.length-1],Qi=ta;Qi<ma+1;Qi++){this.pdf.setPage(Qi);var Ya=Qi===1?this.posY+this.margin[0]:this.margin[0],Wa=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ao=this.pdf.internal.pageSize.height-this.margin[2],es=Ao-this.margin[0],so=this.pdf.internal.pageSize.width-this.margin[1],So=so-this.margin[3],xo=Qi===1?0:Wa+(Qi-2)*es;if(this.ctx.clip_path.length!==0){var hr=this.path;ra=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ur(ra,this.posX+this.margin[3],-1*xo+Ya),Hi.call(this,"fill",!0),this.path=hr}var Sn=Ur([JSON.parse(JSON.stringify(bi))],this.posX+this.margin[3],-xo+Ya+this.ctx.prevPageLastElemOffset)[0];Or.scale>=.01&&(_a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_a*Or.scale),wa=this.lineWidth,this.lineWidth=wa*Or.scale);var dn=this.autoPaging!=="text";if(dn||Sn.y+Sn.h<=Ao){if(dn||Sn.y>=Ya&&Sn.x<=so){var Kn=dn?Or.text:this.pdf.splitTextToSize(Or.text,Or.maxWidth||so-Sn.x)[0],si=Ur([JSON.parse(JSON.stringify(_o))],this.posX+this.margin[3],-xo+Ya+this.ctx.prevPageLastElemOffset)[0],vi=dn&&(Qi>ta||Qi<ma)&&or.call(this);vi&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],So,es,null).clip().discardPath()),this.pdf.text(Kn,si.x,si.y,{angle:Or.angle,align:wn,renderingMode:Or.renderingMode}),vi&&this.pdf.restoreGraphicsState()}}else Sn.y<Ao&&(this.ctx.prevPageLastElemOffset+=Ao-Sn.y);Or.scale>=.01&&(this.pdf.setFontSize(_a),this.lineWidth=wa)}else Or.scale>=.01&&(_a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_a*Or.scale),wa=this.lineWidth,this.lineWidth=wa*Or.scale),this.pdf.text(Or.text,Ei.x+this.posX,Ei.y+this.posY,{angle:Or.angle,align:wn,renderingMode:Or.renderingMode,maxWidth:Or.maxWidth}),Or.scale>=.01&&(this.pdf.setFontSize(_a),this.lineWidth=wa)},Nr=function(Or,wn,Xn,Zn){Xn=Xn||0,Zn=Zn||0,this.pdf.internal.out(Ne(Or+Xn)+" "+Ue(wn+Zn)+" l")},Qt=function(Or,wn,Xn){return this.pdf.lines(Or,wn,Xn,null,null)},xr=function(Or,wn,Xn,Zn,ii,Ei,ki,Fi){this.pdf.internal.out([be(Xe(Xn+Or)),be(ze(Zn+wn)),be(Xe(ii+Or)),be(ze(Ei+wn)),be(Xe(ki+Or)),be(ze(Fi+wn)),"c"].join(" "))},Jr=function(Or,wn,Xn,Zn){for(var ii=2*Math.PI,Ei=Math.PI/2;wn>Xn;)wn-=ii;var ki=Math.abs(Xn-wn);ki<ii&&Zn&&(ki=ii-ki);for(var Fi=[],ra=Zn?-1:1,_a=wn;ki>1e-5;){var wa=_a+ra*Math.min(ki,Ei);Fi.push(Kr.call(this,Or,_a,wa)),ki-=Math.abs(wa-_a),_a=wa}return Fi},Kr=function(Or,wn,Xn){var Zn=(Xn-wn)/2,ii=Or*Math.cos(Zn),Ei=Or*Math.sin(Zn),ki=ii,Fi=-Ei,ra=ki*ki+Fi*Fi,_a=ra+ki*ii+Fi*Ei,wa=4/3*(Math.sqrt(2*ra*_a)-_a)/(ki*Ei-Fi*ii),_o=ki-wa*Fi,bi=Fi+wa*ki,xn=_o,Zi=-bi,va=Zn+wn,ta=Math.cos(va),ma=Math.sin(va);return{x1:Or*Math.cos(wn),y1:Or*Math.sin(wn),x2:_o*ta-bi*ma,y2:_o*ma+bi*ta,x3:xn*ta-Zi*ma,y3:xn*ma+Zi*ta,x4:Or*Math.cos(Xn),y4:Or*Math.sin(Xn)}},en=function(Or){return 180*Or/Math.PI},ai=function(Or,wn,Xn,Zn,ii,Ei){var ki=Or+.5*(Xn-Or),Fi=wn+.5*(Zn-wn),ra=ii+.5*(Xn-ii),_a=Ei+.5*(Zn-Ei),wa=Math.min(Or,ii,ki,ra),_o=Math.max(Or,ii,ki,ra),bi=Math.min(wn,Ei,Fi,_a),xn=Math.max(wn,Ei,Fi,_a);return new bt(wa,bi,_o-wa,xn-bi)},Yn=function(Or,wn,Xn,Zn,ii,Ei,ki,Fi){var ra,_a,wa,_o,bi,xn,Zi,va,ta,ma,Qi,Ya,Wa,Ao,es=Xn-Or,so=Zn-wn,So=ii-Xn,xo=Ei-Zn,hr=ki-ii,Sn=Fi-Ei;for(_a=0;_a<41;_a++)ta=(Zi=(wa=Or+(ra=_a/40)*es)+ra*((bi=Xn+ra*So)-wa))+ra*(bi+ra*(ii+ra*hr-bi)-Zi),ma=(va=(_o=wn+ra*so)+ra*((xn=Zn+ra*xo)-_o))+ra*(xn+ra*(Ei+ra*Sn-xn)-va),_a==0?(Qi=ta,Ya=ma,Wa=ta,Ao=ma):(Qi=Math.min(Qi,ta),Ya=Math.min(Ya,ma),Wa=Math.max(Wa,ta),Ao=Math.max(Ao,ma));return new bt(Math.round(Qi),Math.round(Ya),Math.round(Wa-Qi),Math.round(Ao-Ya))},Si=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Or,wn,Xn=(Or=this.ctx.lineDash,wn=this.ctx.lineDashOffset,JSON.stringify({lineDash:Or,lineDashOffset:wn}));this.prevLineDash!==Xn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Xn)}}}(K.API),function(Qe){var be=function(Ze){var bt,ut,Gt,Mr,Lr,Gr,Ht,hn,or,vn;for(/[^\x00-\xFF]/.test(Ze),ut=[],Gt=0,Mr=(Ze+=bt="\0\0\0\0".slice(Ze.length%4||4)).length;Mr>Gt;Gt+=4)(Lr=(Ze.charCodeAt(Gt)<<24)+(Ze.charCodeAt(Gt+1)<<16)+(Ze.charCodeAt(Gt+2)<<8)+Ze.charCodeAt(Gt+3))!==0?(Gr=(Lr=((Lr=((Lr=((Lr=(Lr-(vn=Lr%85))/85)-(or=Lr%85))/85)-(hn=Lr%85))/85)-(Ht=Lr%85))/85)%85,ut.push(Gr+33,Ht+33,hn+33,or+33,vn+33)):ut.push(122);return function(nn,Ur){for(var ni=Ur;ni>0;ni--)nn.pop()}(ut,bt.length),String.fromCharCode.apply(String,ut)+"~>"},Ne=function(Ze){var bt,ut,Gt,Mr,Lr,Gr=String,Ht="length",hn=255,or="charCodeAt",vn="slice",nn="replace";for(Ze[vn](-2),Ze=Ze[vn](0,-2)[nn](/\s/g,"")[nn]("z","!!!!!"),Gt=[],Mr=0,Lr=(Ze+=bt="uuuuu"[vn](Ze[Ht]%5||5))[Ht];Lr>Mr;Mr+=5)ut=52200625*(Ze[or](Mr)-33)+614125*(Ze[or](Mr+1)-33)+7225*(Ze[or](Mr+2)-33)+85*(Ze[or](Mr+3)-33)+(Ze[or](Mr+4)-33),Gt.push(hn&ut>>24,hn&ut>>16,hn&ut>>8,hn&ut);return function(Ur,ni){for(var Oi=ni;Oi>0;Oi--)Ur.pop()}(Gt,bt[Ht]),Gr.fromCharCode.apply(Gr,Gt)},Ue=function(Ze){var bt=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"),bt.test(Ze)===!1)return"";for(var ut="",Gt=0;Gt<Ze.length;Gt+=2)ut+=String.fromCharCode("0x"+(Ze[Gt]+Ze[Gt+1]));return ut},Xe=function(Ze){for(var bt=new Uint8Array(Ze.length),ut=Ze.length;ut--;)bt[ut]=Ze.charCodeAt(ut);return Ze=(bt=Object(v.b)(bt)).reduce(function(Gt,Mr){return Gt+String.fromCharCode(Mr)},"")};Qe.processDataByFilters=function(ze,Ze){var bt=0,ut=ze||"",Gt=[];for(typeof(Ze=Ze||[])=="string"&&(Ze=[Ze]),bt=0;bt<Ze.length;bt+=1)switch(Ze[bt]){case"ASCII85Decode":case"/ASCII85Decode":ut=Ne(ut),Gt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ut=be(ut),Gt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ut=Ue(ut),Gt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ut=ut.split("").map(function(Mr){return("0"+Mr.charCodeAt().toString(16)).slice(-2)}).join("")+">",Gt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ut=Xe(ut),Gt.push("/FlateDecode");break;default:throw new Error('The filter: "'+Ze[bt]+'" is not implemented')}return{data:ut,reverseChain:Gt.reverse().join(" ")}}}(K.API),function(Qe){Qe.loadFile=function(be,Ne,Ue){return function(Xe,ze,Ze){ze=ze!==!1,Ze=typeof Ze=="function"?Ze:function(){};var bt=void 0;try{bt=function(ut,Gt,Mr){var Lr=new XMLHttpRequest,Gr=0,Ht=function(or){var vn=or.length,nn=[],Ur=String.fromCharCode;for(Gr=0;Gr<vn;Gr+=1)nn.push(Ur(255&or.charCodeAt(Gr)));return nn.join("")};if(Lr.open("GET",ut,!Gt),Lr.overrideMimeType("text/plain; charset=x-user-defined"),Gt===!1&&(Lr.onload=function(){Lr.status===200?Mr(Ht(this.responseText)):Mr(void 0)}),Lr.send(null),Gt&&Lr.status===200)return Ht(Lr.responseText)}(Xe,ze,Ze)}catch(ut){}return bt}(be,Ne,Ue)},Qe.loadImageFile=Qe.loadFile}(K.API),function(Qe){function be(){return(w.html2canvas?Promise.resolve(w.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 Ne(){return(w.DOMPurify?Promise.resolve(w.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 Ue=function(bt){var ut=C()(bt);return ut==="undefined"?"undefined":ut==="string"||bt instanceof String?"string":ut==="number"||bt instanceof Number?"number":ut==="function"||bt instanceof Function?"function":bt&&bt.constructor===Array?"array":bt&&bt.nodeType===1?"element":ut==="object"?"object":"unknown"},Xe=function(bt,ut){var Gt=document.createElement(bt);for(var Mr in ut.className&&(Gt.className=ut.className),ut.innerHTML&&ut.dompurify&&(Gt.innerHTML=ut.dompurify.sanitize(ut.innerHTML)),ut.style)Gt.style[Mr]=ut.style[Mr];return Gt},ze=function Ze(bt){var ut=Object.assign(Ze.convert(Promise.resolve()),JSON.parse(JSON.stringify(Ze.template))),Gt=Ze.convert(Promise.resolve(),ut);return Gt=(Gt=Gt.setProgress(1,Ze,1,[Ze])).set(bt)};(ze.prototype=Object.create(Promise.prototype)).constructor=ze,ze.convert=function(Ze,bt){return Ze.__proto__=bt||ze.prototype,Ze},ze.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"}},ze.prototype.from=function(Ze,bt){return this.then(function(){switch(bt=bt||function(ut){switch(Ue(ut)){case"string":return"string";case"element":return ut.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Ze)){case"string":return this.then(Ne).then(function(ut){return this.set({src:Xe("div",{innerHTML:Ze,dompurify:ut})})});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.")}})},ze.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.")}},ze.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},bt=function ut(Gt,Mr){for(var Lr=Gt.nodeType===3?document.createTextNode(Gt.nodeValue):Gt.cloneNode(!1),Gr=Gt.firstChild;Gr;Gr=Gr.nextSibling)Mr!==!0&&Gr.nodeType===1&&Gr.nodeName==="SCRIPT"||Lr.appendChild(ut(Gr,Mr));return Gt.nodeType===1&&(Gt.nodeName==="CANVAS"?(Lr.width=Gt.width,Lr.height=Gt.height,Lr.getContext("2d").drawImage(Gt,0,0)):Gt.nodeName!=="TEXTAREA"&&Gt.nodeName!=="SELECT"||(Lr.value=Gt.value),Lr.addEventListener("load",function(){Lr.scrollTop=Gt.scrollTop,Lr.scrollLeft=Gt.scrollLeft},!0)),Lr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);bt.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=Xe("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Xe("div",{className:"html2pdf__container",style:Ze}),this.prop.container.appendChild(bt),this.prop.container.firstChild.appendChild(Xe("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"})},ze.prototype.toCanvas=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(be).then(function(bt){var ut=Object.assign({},this.opt.html2canvas);return delete ut.onrendered,bt(this.prop.container,ut)}).then(function(bt){(this.opt.html2canvas.onrendered||function(){})(bt),this.prop.canvas=bt,document.body.removeChild(this.prop.overlay)})},ze.prototype.toContext2d=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(be).then(function(bt){var ut=this.opt.jsPDF,Gt=this.opt.fontFaces,Mr=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,Lr=Object.assign({async:!0,allowTaint:!0,scale:Mr,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 Lr.onrendered,ut.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ut.context2d.posX=this.opt.x,ut.context2d.posY=this.opt.y,ut.context2d.margin=this.opt.margin,ut.context2d.fontFaces=Gt,Gt)for(var Gr=0;Gr<Gt.length;++Gr){var Ht=Gt[Gr],hn=Ht.src.find(function(or){return or.format==="truetype"});hn&&ut.addFont(hn.url,Ht.ref.name,Ht.ref.style)}return Lr.windowHeight=Lr.windowHeight||0,Lr.windowHeight=Lr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Lr.windowHeight,bt(this.prop.container,Lr)}).then(function(bt){(this.opt.html2canvas.onrendered||function(){})(bt),this.prop.canvas=bt,document.body.removeChild(this.prop.overlay)})},ze.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})},ze.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},ze.prototype.output=function(Ze,bt,ut){return(ut=ut||"pdf").toLowerCase()==="img"||ut.toLowerCase()==="image"?this.outputImg(Ze,bt):this.outputPdf(Ze,bt)},ze.prototype.outputPdf=function(Ze,bt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Ze,bt)})},ze.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.'}})},ze.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)})},ze.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},ze.prototype.set=function(Ze){if(Ue(Ze)!=="object")return this;var bt=Object.keys(Ze||{}).map(function(ut){if(ut in ze.template.prop)return function(){this.prop[ut]=Ze[ut]};switch(ut){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[ut]=Ze[ut]}}},this);return this.then(function(){return this.thenList(bt)})},ze.prototype.get=function(Ze,bt){return this.then(function(){var ut=Ze in ze.template.prop?this.prop[Ze]:this.opt[Ze];return bt?bt(ut):ut})},ze.prototype.setMargin=function(Ze){return this.then(function(){switch(Ue(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)},ze.prototype.setPageSize=function(Ze){function bt(ut,Gt){return Math.floor(ut*Gt/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:bt(Ze.inner.width,Ze.k),height:bt(Ze.inner.height,Ze.k)},Ze.inner.ratio=Ze.inner.height/Ze.inner.width),this.prop.pageSize=Ze})},ze.prototype.setProgress=function(Ze,bt,ut,Gt){return Ze!=null&&(this.progress.val=Ze),bt!=null&&(this.progress.state=bt),ut!=null&&(this.progress.n=ut),Gt!=null&&(this.progress.stack=Gt),this.progress.ratio=this.progress.val/this.progress.state,this},ze.prototype.updateProgress=function(Ze,bt,ut,Gt){return this.setProgress(Ze?this.progress.val+Ze:null,bt||null,ut?this.progress.n+ut:null,Gt?this.progress.stack.concat(Gt):null)},ze.prototype.then=function(Ze,bt){var ut=this;return this.thenCore(Ze,bt,function(Gt,Mr){return ut.updateProgress(null,null,1,[Gt]),Promise.prototype.then.call(this,function(Lr){return ut.updateProgress(null,Gt),Lr}).then(Gt,Mr).then(function(Lr){return ut.updateProgress(1),Lr})})},ze.prototype.thenCore=function(Ze,bt,ut){ut=ut||Promise.prototype.then,Ze&&(Ze=Ze.bind(this)),bt&&(bt=bt.bind(this));var Gt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:ze.convert(Object.assign({},this),Promise.prototype),Mr=ut.call(Gt,Ze,bt);return ze.convert(Mr,this.__proto__)},ze.prototype.thenExternal=function(Ze,bt){return Promise.prototype.then.call(this,Ze,bt)},ze.prototype.thenList=function(Ze){var bt=this;return Ze.forEach(function(ut){bt=bt.thenCore(ut)}),bt},ze.prototype.catch=function(Ze){Ze&&(Ze=Ze.bind(this));var bt=Promise.prototype.catch.call(this,Ze);return ze.convert(bt,this)},ze.prototype.catchExternal=function(Ze){return Promise.prototype.catch.call(this,Ze)},ze.prototype.error=function(Ze){return this.then(function(){throw new Error(Ze)})},ze.prototype.using=ze.prototype.set,ze.prototype.saveAs=ze.prototype.save,ze.prototype.export=ze.prototype.output,ze.prototype.run=ze.prototype.then,K.getPageSize=function(Ze,bt,ut){if(C()(Ze)==="object"){var Gt=Ze;Ze=Gt.orientation,bt=Gt.unit||bt,ut=Gt.format||ut}bt=bt||"mm",ut=ut||"a4",Ze=(""+(Ze||"P")).toLowerCase();var Mr,Lr=(""+ut).toLowerCase(),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]};switch(bt){case"pt":Mr=1;break;case"mm":Mr=72/25.4;break;case"cm":Mr=72/2.54;break;case"in":Mr=72;break;case"px":Mr=.75;break;case"pc":case"em":Mr=12;break;case"ex":Mr=6;break;default:throw"Invalid unit: "+bt}var Ht,hn=0,or=0;if(Gr.hasOwnProperty(Lr))hn=Gr[Lr][1]/Mr,or=Gr[Lr][0]/Mr;else try{hn=ut[1],or=ut[0]}catch(vn){throw new Error("Invalid format: "+ut)}if(Ze==="p"||Ze==="portrait")Ze="p",or>hn&&(Ht=or,or=hn,hn=Ht);else{if(Ze!=="l"&&Ze!=="landscape")throw"Invalid orientation: "+Ze;Ze="l",hn>or&&(Ht=or,or=hn,hn=Ht)}return{width:or,height:hn,unit:bt,k:Mr,orientation:Ze}},Qe.html=function(Ze,bt){(bt=bt||{}).callback=bt.callback||function(){},bt.html2canvas=bt.html2canvas||{},bt.html2canvas.canvas=bt.html2canvas.canvas||this.canvas,bt.jsPDF=bt.jsPDF||this,bt.fontFaces=bt.fontFaces?bt.fontFaces.map(cn):null;var ut=new ze(bt);return bt.worker?ut:ut.from(Ze).doCallback()}}(K.API),K.API.addJS=function(Qe){return Ln=Qe,this.internal.events.subscribe("postPutResources",function(){ei=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ei+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ji=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ln+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ei!==void 0&&ji!==void 0&&this.internal.out("/Names <</JavaScript "+ei+" 0 R>>")}),this},function(Qe){var be;Qe.events.push(["postPutResources",function(){var Ne=this,Ue=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Xe=Ne.outline.render().split(/\r\n/),ze=0;ze<Xe.length;ze++){var Ze=Xe[ze],bt=Ue.exec(Ze);if(bt!=null){var ut=bt[1];Ne.internal.newObjectDeferredBegin(ut,!1)}Ne.internal.write(Ze)}if(this.outline.createNamedDestinations){var Gt=this.internal.pages.length,Mr=[];for(ze=0;ze<Gt;ze++){var Lr=Ne.internal.newObject();Mr.push(Lr);var Gr=Ne.internal.getPageInfo(ze+1);Ne.internal.write("<< /D["+Gr.objId+" 0 R /XYZ null null null]>> endobj")}var Ht=Ne.internal.newObject();for(Ne.internal.write("<< /Names [ "),ze=0;ze<Mr.length;ze++)Ne.internal.write("(page_"+(ze+1)+")"+Mr[ze]+" 0 R");Ne.internal.write(" ] >>","endobj"),be=Ne.internal.newObject(),Ne.internal.write("<< /Dests "+Ht+" 0 R"),Ne.internal.write(">>","endobj")}}]),Qe.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 "+be+" 0 R"))}]),Qe.events.push(["initialized",function(){var Ne=this;Ne.outline={createNamedDestinations:!1,root:{children:[]}},Ne.outline.add=function(Ue,Xe,ze){var Ze={title:Xe,options:ze,children:[]};return Ue==null&&(Ue=this.root),Ue.children.push(Ze),Ze},Ne.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ne,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ne.outline.genIds_r=function(Ue){Ue.id=Ne.internal.newObjectDeferred();for(var Xe=0;Xe<Ue.children.length;Xe++)this.genIds_r(Ue.children[Xe])},Ne.outline.renderRoot=function(Ue){this.objStart(Ue),this.line("/Type /Outlines"),Ue.children.length>0&&(this.line("/First "+this.makeRef(Ue.children[0])),this.line("/Last "+this.makeRef(Ue.children[Ue.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ue)),this.objEnd()},Ne.outline.renderItems=function(Ue){for(var Xe=this.ctx.pdf.internal.getVerticalCoordinateString,ze=0;ze<Ue.children.length;ze++){var Ze=Ue.children[ze];this.objStart(Ze),this.line("/Title "+this.makeString(Ze.title)),this.line("/Parent "+this.makeRef(Ue)),ze>0&&this.line("/Prev "+this.makeRef(Ue.children[ze-1])),ze<Ue.children.length-1&&this.line("/Next "+this.makeRef(Ue.children[ze+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 bt=this.count=this.count_r({count:0},Ze);if(bt>0&&this.line("/Count "+bt),Ze.options&&Ze.options.pageNumber){var ut=Ne.internal.getPageInfo(Ze.options.pageNumber);this.line("/Dest ["+ut.objId+" 0 R /XYZ 0 "+Xe(0)+" 0]")}this.objEnd()}for(var Gt=0;Gt<Ue.children.length;Gt++)this.renderItems(Ue.children[Gt])},Ne.outline.line=function(Ue){this.ctx.val+=Ue+`\r
`},Ne.outline.makeRef=function(Ue){return Ue.id+" 0 R"},Ne.outline.makeString=function(Ue){return"("+Ne.internal.pdfEscape(Ue)+")"},Ne.outline.objStart=function(Ue){this.ctx.val+=`\r
`+Ue.id+` 0 obj\r
<<\r
`},Ne.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Ne.outline.count_r=function(Ue,Xe){for(var ze=0;ze<Xe.children.length;ze++)Ue.count++,this.count_r(Ue,Xe.children[ze]);return Ue.count}}])}(K.API),function(Qe){var be=[192,193,194,195,196,197,198,199];Qe.processJPEG=function(Ne,Ue,Xe,ze,Ze,bt){var ut,Gt=this.decode.DCT_DECODE,Mr=null;if(typeof Ne=="string"||this.__addimage__.isArrayBuffer(Ne)||this.__addimage__.isArrayBufferView(Ne)){switch(Ne=Ze||Ne,Ne=this.__addimage__.isArrayBuffer(Ne)?new Uint8Array(Ne):Ne,(ut=function(Lr){for(var Gr,Ht=256*Lr.charCodeAt(4)+Lr.charCodeAt(5),hn=Lr.length,or={width:0,height:0,numcomponents:1},vn=4;vn<hn;vn+=2){if(vn+=Ht,be.indexOf(Lr.charCodeAt(vn+1))!==-1){Gr=256*Lr.charCodeAt(vn+5)+Lr.charCodeAt(vn+6),or={width:256*Lr.charCodeAt(vn+7)+Lr.charCodeAt(vn+8),height:Gr,numcomponents:Lr.charCodeAt(vn+9)};break}Ht=256*Lr.charCodeAt(vn+2)+Lr.charCodeAt(vn+3)}return or}(Ne=this.__addimage__.isArrayBufferView(Ne)?this.__addimage__.arrayBufferToBinaryString(Ne):Ne)).numcomponents){case 1:bt=this.color_spaces.DEVICE_GRAY;break;case 4:bt=this.color_spaces.DEVICE_CMYK;break;case 3:bt=this.color_spaces.DEVICE_RGB}Mr={data:Ne,width:ut.width,height:ut.height,colorSpace:bt,bitsPerComponent:8,filter:Gt,index:Ue,alias:Xe}}return Mr}}(K.API);var kt,wt,Te,xe,Ce,Ye=function(){var Qe,be,Ne;function Ue(ze){var Ze,bt,ut,Gt,Mr,Lr,Gr,Ht,hn,or,vn,nn,Ur,ni;for(this.data=ze,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Lr=null;;){switch(Ze=this.readUInt32(),hn=function(){var Oi,Hi;for(Hi=[],Oi=0;Oi<4;++Oi)Hi.push(String.fromCharCode(this.data[this.pos++]));return Hi}.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":Lr&&this.animation.frames.push(Lr),this.pos+=4,Lr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Mr=this.readUInt16(),Gt=this.readUInt16()||100,Lr.delay=1e3*Mr/Gt,Lr.disposeOp=this.data[this.pos++],Lr.blendOp=this.data[this.pos++],Lr.data=[];break;case"IDAT":case"fdAT":for(hn==="fdAT"&&(this.pos+=4,Ze-=4),ze=(Lr!=null?Lr.data:void 0)||this.imgData,nn=0;0<=Ze?nn<Ze:nn>Ze;0<=Ze?++nn:--nn)ze.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ut=this.palette.length/3,this.transparency.indexed=this.read(Ze),this.transparency.indexed.length>ut)throw new Error("More transparent colors than palette size");if((or=ut-this.transparency.indexed.length)>0)for(Ur=0;0<=or?Ur<or:Ur>or;0<=or?++Ur:--Ur)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":Gr=(vn=this.read(Ze)).indexOf(0),Ht=String.fromCharCode.apply(String,vn.slice(0,Gr)),this.text[Ht]=String.fromCharCode.apply(String,vn.slice(Gr+1));break;case"IEND":return Lr&&this.animation.frames.push(Lr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ni=this.colorType)===4||ni===6,bt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*bt,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")}}Ue.prototype.read=function(ze){var Ze,bt;for(bt=[],Ze=0;0<=ze?Ze<ze:Ze>ze;0<=ze?++Ze:--Ze)bt.push(this.data[this.pos++]);return bt},Ue.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ue.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ue.prototype.decodePixels=function(ze){var Ze=this.pixelBitlength/8,bt=new Uint8Array(this.width*this.height*Ze),ut=0,Gt=this;if(ze==null&&(ze=this.imgData),ze.length===0)return new Uint8Array(0);function Mr(Lr,Gr,Ht,hn){var or,vn,nn,Ur,ni,Oi,Hi,Ri,Ni,Yi,Qr,On,zr,fr,Nr,Qt,xr,Jr,Kr,en,ai,Yn=Math.ceil((Gt.width-Lr)/Ht),Si=Math.ceil((Gt.height-Gr)/hn),ln=Gt.width==Yn&&Gt.height==Si;for(fr=Ze*Yn,On=ln?bt:new Uint8Array(fr*Si),Oi=ze.length,zr=0,vn=0;zr<Si&&ut<Oi;){switch(ze[ut++]){case 0:for(Ur=xr=0;xr<fr;Ur=xr+=1)On[vn++]=ze[ut++];break;case 1:for(Ur=Jr=0;Jr<fr;Ur=Jr+=1)or=ze[ut++],ni=Ur<Ze?0:On[vn-Ze],On[vn++]=(or+ni)%256;break;case 2:for(Ur=Kr=0;Kr<fr;Ur=Kr+=1)or=ze[ut++],nn=(Ur-Ur%Ze)/Ze,Nr=zr&&On[(zr-1)*fr+nn*Ze+Ur%Ze],On[vn++]=(Nr+or)%256;break;case 3:for(Ur=en=0;en<fr;Ur=en+=1)or=ze[ut++],nn=(Ur-Ur%Ze)/Ze,ni=Ur<Ze?0:On[vn-Ze],Nr=zr&&On[(zr-1)*fr+nn*Ze+Ur%Ze],On[vn++]=(or+Math.floor((ni+Nr)/2))%256;break;case 4:for(Ur=ai=0;ai<fr;Ur=ai+=1)or=ze[ut++],nn=(Ur-Ur%Ze)/Ze,ni=Ur<Ze?0:On[vn-Ze],zr===0?Nr=Qt=0:(Nr=On[(zr-1)*fr+nn*Ze+Ur%Ze],Qt=nn&&On[(zr-1)*fr+(nn-1)*Ze+Ur%Ze]),Hi=ni+Nr-Qt,Ri=Math.abs(Hi-ni),Yi=Math.abs(Hi-Nr),Qr=Math.abs(Hi-Qt),Ni=Ri<=Yi&&Ri<=Qr?ni:Yi<=Qr?Nr:Qt,On[vn++]=(or+Ni)%256;break;default:throw new Error("Invalid filter algorithm: "+ze[ut-1])}if(!ln){var Or=((Gr+zr*hn)*Gt.width+Lr)*Ze,wn=zr*fr;for(Ur=0;Ur<Yn;Ur+=1){for(var Xn=0;Xn<Ze;Xn+=1)bt[Or++]=On[wn++];Or+=(Ht-1)*Ze}}zr++}}return ze=Object(v.a)(ze),Gt.interlaceMethod==1?(Mr(0,0,8,8),Mr(4,0,8,8),Mr(0,4,4,8),Mr(2,0,4,4),Mr(0,2,2,4),Mr(1,0,2,2),Mr(0,1,1,2)):Mr(0,0,1,1),bt},Ue.prototype.decodePalette=function(){var ze,Ze,bt,ut,Gt,Mr,Lr,Gr,Ht;for(bt=this.palette,Mr=this.transparency.indexed||[],Gt=new Uint8Array((Mr.length||0)+bt.length),ut=0,ze=0,Ze=Lr=0,Gr=bt.length;Lr<Gr;Ze=Lr+=3)Gt[ut++]=bt[Ze],Gt[ut++]=bt[Ze+1],Gt[ut++]=bt[Ze+2],Gt[ut++]=(Ht=Mr[ze++])!=null?Ht:255;return Gt},Ue.prototype.copyToImageData=function(ze,Ze){var bt,ut,Gt,Mr,Lr,Gr,Ht,hn,or,vn,nn;if(ut=this.colors,or=null,bt=this.hasAlphaChannel,this.palette.length&&(or=(nn=this._decodedPalette)!=null?nn:this._decodedPalette=this.decodePalette(),ut=4,bt=!0),hn=(Gt=ze.data||ze).length,Lr=or||Ze,Mr=Gr=0,ut===1)for(;Mr<hn;)Ht=or?4*Ze[Mr/4]:Gr,vn=Lr[Ht++],Gt[Mr++]=vn,Gt[Mr++]=vn,Gt[Mr++]=vn,Gt[Mr++]=bt?Lr[Ht++]:255,Gr=Ht;else for(;Mr<hn;)Ht=or?4*Ze[Mr/4]:Gr,Gt[Mr++]=Lr[Ht++],Gt[Mr++]=Lr[Ht++],Gt[Mr++]=Lr[Ht++],Gt[Mr++]=bt?Lr[Ht++]:255,Gr=Ht},Ue.prototype.decode=function(){var ze;return ze=new Uint8Array(this.width*this.height*4),this.copyToImageData(ze,this.decodePixels()),ze};var Xe=function(){if(Object.prototype.toString.call(w)==="[object Window]"){try{be=w.document.createElement("canvas"),Ne=be.getContext("2d")}catch(Ze){return!1}return!0}return!1};return Xe(),Qe=function(Ze){var bt;if(Xe()===!0)return Ne.width=Ze.width,Ne.height=Ze.height,Ne.clearRect(0,0,Ze.width,Ze.height),Ne.putImageData(Ze,0,0),(bt=new Image).src=be.toDataURL(),bt;throw new Error("This method requires a Browser with Canvas-capability.")},Ue.prototype.decodeFrames=function(ze){var Ze,bt,ut,Gt,Mr,Lr,Gr,Ht;if(this.animation){for(Ht=[],bt=Mr=0,Lr=(Gr=this.animation.frames).length;Mr<Lr;bt=++Mr)Ze=Gr[bt],ut=ze.createImageData(Ze.width,Ze.height),Gt=this.decodePixels(new Uint8Array(Ze.data)),this.copyToImageData(ut,Gt),Ze.imageData=ut,Ht.push(Ze.image=Qe(ut));return Ht}},Ue.prototype.renderFrame=function(ze,Ze){var bt,ut,Gt;return bt=(ut=this.animation.frames)[Ze],Gt=ut[Ze-1],Ze===0&&ze.clearRect(0,0,this.width,this.height),(Gt!=null?Gt.disposeOp:void 0)===1?ze.clearRect(Gt.xOffset,Gt.yOffset,Gt.width,Gt.height):(Gt!=null?Gt.disposeOp:void 0)===2&&ze.putImageData(Gt.imageData,Gt.xOffset,Gt.yOffset),bt.blendOp===0&&ze.clearRect(bt.xOffset,bt.yOffset,bt.width,bt.height),ze.drawImage(bt.image,bt.xOffset,bt.yOffset)},Ue.prototype.animate=function(ze){var Ze,bt,ut,Gt,Mr,Lr,Gr=this;return bt=0,Lr=this.animation,Gt=Lr.numFrames,ut=Lr.frames,Mr=Lr.numPlays,(Ze=function(){var hn,or;if(hn=bt++%Gt,or=ut[hn],Gr.renderFrame(ze,hn),Gt>1&&bt/Gt<Mr)return Gr.animation._timeout=setTimeout(Ze,or.delay)})()},Ue.prototype.stopAnimation=function(){var ze;return clearTimeout((ze=this.animation)!=null?ze._timeout:void 0)},Ue.prototype.render=function(ze){var Ze,bt;return ze._png&&ze._png.stopAnimation(),ze._png=this,ze.width=this.width,ze.height=this.height,Ze=ze.getContext("2d"),this.animation?(this.decodeFrames(Ze),this.animate(Ze)):(bt=Ze.createImageData(this.width,this.height),this.copyToImageData(bt,this.decodePixels()),Ze.putImageData(bt,0,0))},Ue}();/**
* @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 it(Qe){var be=0;if(Qe[be++]!==71||Qe[be++]!==73||Qe[be++]!==70||Qe[be++]!==56||(Qe[be++]+1&253)!=56||Qe[be++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ne=Qe[be++]|Qe[be++]<<8,Ue=Qe[be++]|Qe[be++]<<8,Xe=Qe[be++],ze=Xe>>7,Ze=1<<(7&Xe)+1;Qe[be++],Qe[be++];var bt=null,ut=null;ze&&(bt=be,ut=Ze,be+=3*Ze);var Gt=!0,Mr=[],Lr=0,Gr=null,Ht=0,hn=null;for(this.width=Ne,this.height=Ue;Gt&&be<Qe.length;)switch(Qe[be++]){case 33:switch(Qe[be++]){case 255:if(Qe[be]!==11||Qe[be+1]==78&&Qe[be+2]==69&&Qe[be+3]==84&&Qe[be+4]==83&&Qe[be+5]==67&&Qe[be+6]==65&&Qe[be+7]==80&&Qe[be+8]==69&&Qe[be+9]==50&&Qe[be+10]==46&&Qe[be+11]==48&&Qe[be+12]==3&&Qe[be+13]==1&&Qe[be+16]==0)be+=14,hn=Qe[be++]|Qe[be++]<<8,be++;else for(be+=12;;){if(!((zr=Qe[be++])>=0))throw Error("Invalid block size");if(zr===0)break;be+=zr}break;case 249:if(Qe[be++]!==4||Qe[be+4]!==0)throw new Error("Invalid graphics extension block.");var or=Qe[be++];Lr=Qe[be++]|Qe[be++]<<8,Gr=Qe[be++],(1&or)==0&&(Gr=null),Ht=or>>2&7,be++;break;case 254:for(;;){if(!((zr=Qe[be++])>=0))throw Error("Invalid block size");if(zr===0)break;be+=zr}break;default:throw new Error("Unknown graphic control label: 0x"+Qe[be-1].toString(16))}break;case 44:var vn=Qe[be++]|Qe[be++]<<8,nn=Qe[be++]|Qe[be++]<<8,Ur=Qe[be++]|Qe[be++]<<8,ni=Qe[be++]|Qe[be++]<<8,Oi=Qe[be++],Hi=Oi>>6&1,Ri=1<<(7&Oi)+1,Ni=bt,Yi=ut,Qr=!1;Oi>>7&&(Qr=!0,Ni=be,Yi=Ri,be+=3*Ri);var On=be;for(be++;;){var zr;if(!((zr=Qe[be++])>=0))throw Error("Invalid block size");if(zr===0)break;be+=zr}Mr.push({x:vn,y:nn,width:Ur,height:ni,has_local_palette:Qr,palette_offset:Ni,palette_size:Yi,data_offset:On,data_length:be-On,transparent_index:Gr,interlaced:!!Hi,delay:Lr,disposal:Ht});break;case 59:Gt=!1;break;default:throw new Error("Unknown gif block: 0x"+Qe[be-1].toString(16))}this.numFrames=function(){return Mr.length},this.loopCount=function(){return hn},this.frameInfo=function(fr){if(fr<0||fr>=Mr.length)throw new Error("Frame index out of range.");return Mr[fr]},this.decodeAndBlitFrameBGRA=function(fr,Nr){var Qt=this.frameInfo(fr),xr=Qt.width*Qt.height,Jr=new Uint8Array(xr);dt(Qe,Qt.data_offset,Jr,xr);var Kr=Qt.palette_offset,en=Qt.transparent_index;en===null&&(en=256);var ai=Qt.width,Yn=Ne-ai,Si=ai,ln=4*(Qt.y*Ne+Qt.x),Or=4*((Qt.y+Qt.height)*Ne+Qt.x),wn=ln,Xn=4*Yn;Qt.interlaced===!0&&(Xn+=4*Ne*7);for(var Zn=8,ii=0,Ei=Jr.length;ii<Ei;++ii){var ki=Jr[ii];if(Si===0&&(Si=ai,(wn+=Xn)>=Or&&(Xn=4*Yn+4*Ne*(Zn-1),wn=ln+(ai+Yn)*(Zn<<1),Zn>>=1)),ki===en)wn+=4;else{var Fi=Qe[Kr+3*ki],ra=Qe[Kr+3*ki+1],_a=Qe[Kr+3*ki+2];Nr[wn++]=_a,Nr[wn++]=ra,Nr[wn++]=Fi,Nr[wn++]=255}--Si}},this.decodeAndBlitFrameRGBA=function(fr,Nr){var Qt=this.frameInfo(fr),xr=Qt.width*Qt.height,Jr=new Uint8Array(xr);dt(Qe,Qt.data_offset,Jr,xr);var Kr=Qt.palette_offset,en=Qt.transparent_index;en===null&&(en=256);var ai=Qt.width,Yn=Ne-ai,Si=ai,ln=4*(Qt.y*Ne+Qt.x),Or=4*((Qt.y+Qt.height)*Ne+Qt.x),wn=ln,Xn=4*Yn;Qt.interlaced===!0&&(Xn+=4*Ne*7);for(var Zn=8,ii=0,Ei=Jr.length;ii<Ei;++ii){var ki=Jr[ii];if(Si===0&&(Si=ai,(wn+=Xn)>=Or&&(Xn=4*Yn+4*Ne*(Zn-1),wn=ln+(ai+Yn)*(Zn<<1),Zn>>=1)),ki===en)wn+=4;else{var Fi=Qe[Kr+3*ki],ra=Qe[Kr+3*ki+1],_a=Qe[Kr+3*ki+2];Nr[wn++]=Fi,Nr[wn++]=ra,Nr[wn++]=_a,Nr[wn++]=255}--Si}}}function dt(Qe,be,Ne,Ue){for(var Xe=Qe[be++],ze=1<<Xe,Ze=ze+1,bt=Ze+1,ut=Xe+1,Gt=(1<<ut)-1,Mr=0,Lr=0,Gr=0,Ht=Qe[be++],hn=new Int32Array(4096),or=null;;){for(;Mr<16&&Ht!==0;)Lr|=Qe[be++]<<Mr,Mr+=8,Ht===1?Ht=Qe[be++]:--Ht;if(Mr<ut)break;var vn=Lr&Gt;if(Lr>>=ut,Mr-=ut,vn!==ze){if(vn===Ze)break;for(var nn=vn<bt?vn:or,Ur=0,ni=nn;ni>ze;)ni=hn[ni]>>8,++Ur;var Oi=ni;if(Gr+Ur+(nn!==vn?1:0)>Ue)return void h.log("Warning, gif stream longer than expected.");Ne[Gr++]=Oi;var Hi=Gr+=Ur;for(nn!==vn&&(Ne[Gr++]=Oi),ni=nn;Ur--;)ni=hn[ni],Ne[--Hi]=255&ni,ni>>=8;or!==null&&bt<4096&&(hn[bt++]=or<<8|Oi,bt>=Gt+1&&ut<12&&(++ut,Gt=Gt<<1|1)),or=vn}else bt=Ze+1,Gt=(1<<(ut=Xe+1))-1,or=null}return Gr!==Ue&&h.log("Warning, gif stream shorter than expected."),Ne}/**
* @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 _t(Qe){var be,Ne,Ue,Xe,ze,Ze=Math.floor,bt=new Array(64),ut=new Array(64),Gt=new Array(64),Mr=new Array(64),Lr=new Array(65535),Gr=new Array(65535),Ht=new Array(64),hn=new Array(64),or=[],vn=0,nn=7,Ur=new Array(64),ni=new Array(64),Oi=new Array(64),Hi=new Array(256),Ri=new Array(2048),Ni=[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],Yi=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Qr=[0,1,2,3,4,5,6,7,8,9,10,11],On=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],zr=[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],fr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Nr=[0,1,2,3,4,5,6,7,8,9,10,11],Qt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],xr=[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 Jr(ln,Or){for(var wn=0,Xn=0,Zn=new Array,ii=1;ii<=16;ii++){for(var Ei=1;Ei<=ln[ii];Ei++)Zn[Or[Xn]]=[],Zn[Or[Xn]][0]=wn,Zn[Or[Xn]][1]=ii,Xn++,wn++;wn*=2}return Zn}function Kr(ln){for(var Or=ln[0],wn=ln[1]-1;wn>=0;)Or&1<<wn&&(vn|=1<<nn),wn--,--nn<0&&(vn==255?(en(255),en(0)):en(vn),nn=7,vn=0)}function en(ln){or.push(ln)}function ai(ln){en(ln>>8&255),en(255&ln)}function Yn(ln,Or,wn,Xn,Zn){for(var ii,Ei=Zn[0],ki=Zn[240],Fi=function(ta,ma){var Qi,Ya,Wa,Ao,es,so,So,xo,hr,Sn,dn=0;for(hr=0;hr<8;++hr){Qi=ta[dn],Ya=ta[dn+1],Wa=ta[dn+2],Ao=ta[dn+3],es=ta[dn+4],so=ta[dn+5],So=ta[dn+6];var Kn=Qi+(xo=ta[dn+7]),si=Qi-xo,vi=Ya+So,pi=Ya-So,di=Wa+so,Ki=Wa-so,Mi=Ao+es,pa=Ao-es,_i=Kn+Mi,da=Kn-Mi,na=vi+di,Sa=vi-di;ta[dn]=_i+na,ta[dn+4]=_i-na;var Aa=.707106781*(Sa+da);ta[dn+2]=da+Aa,ta[dn+6]=da-Aa;var ua=.382683433*((_i=pa+Ki)-(Sa=pi+si)),La=.5411961*_i+ua,sa=1.306562965*Sa+ua,co=.707106781*(na=Ki+pi),no=si+co,ca=si-co;ta[dn+5]=ca+La,ta[dn+3]=ca-La,ta[dn+1]=no+sa,ta[dn+7]=no-sa,dn+=8}for(dn=0,hr=0;hr<8;++hr){Qi=ta[dn],Ya=ta[dn+8],Wa=ta[dn+16],Ao=ta[dn+24],es=ta[dn+32],so=ta[dn+40],So=ta[dn+48];var yo=Qi+(xo=ta[dn+56]),lo=Qi-xo,Na=Ya+So,ho=Ya-So,Io=Wa+so,eo=Wa-so,Lo=Ao+es,Va=Ao-es,Bo=yo+Lo,Ho=yo-Lo,Pr=Na+Io,An=Na-Io;ta[dn]=Bo+Pr,ta[dn+32]=Bo-Pr;var Pn=.707106781*(An+Ho);ta[dn+16]=Ho+Pn,ta[dn+48]=Ho-Pn;var qr=.382683433*((Bo=Va+eo)-(An=ho+lo)),er=.5411961*Bo+qr,Dr=1.306562965*An+qr,lr=.707106781*(Pr=eo+ho),on=lo+lr,fn=lo-lr;ta[dn+40]=fn+er,ta[dn+24]=fn-er,ta[dn+8]=on+Dr,ta[dn+56]=on-Dr,dn++}for(hr=0;hr<64;++hr)Sn=ta[hr]*ma[hr],Ht[hr]=Sn>0?Sn+.5|0:Sn-.5|0;return Ht}(ln,Or),ra=0;ra<64;++ra)hn[Ni[ra]]=Fi[ra];var _a=hn[0]-wn;wn=hn[0],_a==0?Kr(Xn[0]):(Kr(Xn[Gr[ii=32767+_a]]),Kr(Lr[ii]));for(var wa=63;wa>0&&hn[wa]==0;)wa--;if(wa==0)return Kr(Ei),wn;for(var _o,bi=1;bi<=wa;){for(var xn=bi;hn[bi]==0&&bi<=wa;)++bi;var Zi=bi-xn;if(Zi>=16){_o=Zi>>4;for(var va=1;va<=_o;++va)Kr(ki);Zi&=15}ii=32767+hn[bi],Kr(Zn[(Zi<<4)+Gr[ii]]),Kr(Lr[ii]),bi++}return wa!=63&&Kr(Ei),wn}function Si(ln){(ln=Math.min(Math.max(ln,1),100),ze!=ln)&&(!function(Or){for(var wn=[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],Xn=0;Xn<64;Xn++){var Zn=Ze((wn[Xn]*Or+50)/100);Zn=Math.min(Math.max(Zn,1),255),bt[Ni[Xn]]=Zn}for(var ii=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ei=0;Ei<64;Ei++){var ki=Ze((ii[Ei]*Or+50)/100);ki=Math.min(Math.max(ki,1),255),ut[Ni[Ei]]=ki}for(var Fi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ra=0,_a=0;_a<8;_a++)for(var wa=0;wa<8;wa++)Gt[ra]=1/(bt[Ni[ra]]*Fi[_a]*Fi[wa]*8),Mr[ra]=1/(ut[Ni[ra]]*Fi[_a]*Fi[wa]*8),ra++}(ln<50?Math.floor(5e3/ln):Math.floor(200-2*ln)),ze=ln)}this.encode=function(ln,Or){Or&&Si(Or),or=new Array,vn=0,nn=7,ai(65496),ai(65504),ai(16),en(74),en(70),en(73),en(70),en(0),en(1),en(1),en(0),ai(1),ai(1),en(0),en(0),function(){ai(65499),ai(132),en(0);for(var Ya=0;Ya<64;Ya++)en(bt[Ya]);en(1);for(var Wa=0;Wa<64;Wa++)en(ut[Wa])}(),function(Ya,Wa){ai(65472),ai(17),en(8),ai(Wa),ai(Ya),en(3),en(1),en(17),en(0),en(2),en(17),en(1),en(3),en(17),en(1)}(ln.width,ln.height),function(){ai(65476),ai(418),en(0);for(var Ya=0;Ya<16;Ya++)en(Yi[Ya+1]);for(var Wa=0;Wa<=11;Wa++)en(Qr[Wa]);en(16);for(var Ao=0;Ao<16;Ao++)en(On[Ao+1]);for(var es=0;es<=161;es++)en(zr[es]);en(1);for(var so=0;so<16;so++)en(fr[so+1]);for(var So=0;So<=11;So++)en(Nr[So]);en(17);for(var xo=0;xo<16;xo++)en(Qt[xo+1]);for(var hr=0;hr<=161;hr++)en(xr[hr])}(),ai(65498),ai(12),en(3),en(1),en(0),en(2),en(17),en(3),en(17),en(0),en(63),en(0);var wn=0,Xn=0,Zn=0;vn=0,nn=7,this.encode.displayName="_encode_";for(var ii,Ei,ki,Fi,ra,_a,wa,_o,bi,xn=ln.data,Zi=ln.width,va=ln.height,ta=4*Zi,ma=0;ma<va;){for(ii=0;ii<ta;){for(ra=ta*ma+ii,wa=-1,_o=0,bi=0;bi<64;bi++)_a=ra+(_o=bi>>3)*ta+(wa=4*(7&bi)),ma+_o>=va&&(_a-=ta*(ma+1+_o-va)),ii+wa>=ta&&(_a-=ii+wa-ta+4),Ei=xn[_a++],ki=xn[_a++],Fi=xn[_a++],Ur[bi]=(Ri[Ei]+Ri[ki+256>>0]+Ri[Fi+512>>0]>>16)-128,ni[bi]=(Ri[Ei+768>>0]+Ri[ki+1024>>0]+Ri[Fi+1280>>0]>>16)-128,Oi[bi]=(Ri[Ei+1280>>0]+Ri[ki+1536>>0]+Ri[Fi+1792>>0]>>16)-128;wn=Yn(Ur,Gt,wn,be,Ue),Xn=Yn(ni,Mr,Xn,Ne,Xe),Zn=Yn(Oi,Mr,Zn,Ne,Xe),ii+=32}ma+=8}if(nn>=0){var Qi=[];Qi[1]=nn+1,Qi[0]=(1<<nn+1)-1,Kr(Qi)}return ai(65497),new Uint8Array(or)},Qe=Qe||50,function(){for(var ln=String.fromCharCode,Or=0;Or<256;Or++)Hi[Or]=ln(Or)}(),be=Jr(Yi,Qr),Ne=Jr(fr,Nr),Ue=Jr(On,zr),Xe=Jr(Qt,xr),function(){for(var ln=1,Or=2,wn=1;wn<=15;wn++){for(var Xn=ln;Xn<Or;Xn++)Gr[32767+Xn]=wn,Lr[32767+Xn]=[],Lr[32767+Xn][1]=wn,Lr[32767+Xn][0]=Xn;for(var Zn=-(Or-1);Zn<=-ln;Zn++)Gr[32767+Zn]=wn,Lr[32767+Zn]=[],Lr[32767+Zn][1]=wn,Lr[32767+Zn][0]=Or-1+Zn;ln<<=1,Or<<=1}}(),function(){for(var ln=0;ln<256;ln++)Ri[ln]=19595*ln,Ri[ln+256>>0]=38470*ln,Ri[ln+512>>0]=7471*ln+32768,Ri[ln+768>>0]=-11059*ln,Ri[ln+1024>>0]=-21709*ln,Ri[ln+1280>>0]=32768*ln+8421375,Ri[ln+1536>>0]=-27439*ln,Ri[ln+1792>>0]=-5329*ln}(),Si(Qe)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function vr(Qe,be){if(this.pos=0,this.buffer=Qe,this.datav=new DataView(Qe.buffer),this.is_with_alpha=!!be,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 kr(Qe){function be(Yi){if(!Yi)throw Error("assert :P")}function Ne(Yi,Qr,On){for(var zr=0;4>zr;zr++)if(Yi[Qr+zr]!=On.charCodeAt(zr))return!0;return!1}function Ue(Yi,Qr,On,zr,fr){for(var Nr=0;Nr<fr;Nr++)Yi[Qr+Nr]=On[zr+Nr]}function Xe(Yi,Qr,On,zr){for(var fr=0;fr<zr;fr++)Yi[Qr+fr]=On}function ze(Yi){return new Int32Array(Yi)}function Ze(Yi,Qr){for(var On=[],zr=0;zr<Yi;zr++)On.push(new Qr);return On}function bt(Yi,Qr){var On=[];return function zr(fr,Nr,Qt){for(var xr=Qt[Nr],Jr=0;Jr<xr&&(fr.push(Qt.length>Nr+1?[]:new Qr),!(Qt.length<Nr+1));Jr++)zr(fr[Jr],Nr+1,Qt)}(On,0,Yi),On}var ut=function(){var Qr=this;function On(pe,We){for(var ht=1<<We-1>>>0;pe&ht;)ht>>>=1;return ht?(pe&ht-1)+ht:pe}function zr(pe,We,ht,Yt,Er){be(!(Yt%ht));do pe[We+(Yt-=ht)]=Er;while(0<Yt)}function fr(pe,We,ht,Yt,Er){if(be(2328>=Er),512>=Er)var Xr=ze(512);else if((Xr=ze(Er))==null)return 0;return function(De,ee,Ae,Ve,at,It){var Wt,Pt,_r=ee,Zr=1<<Ae,Tr=ze(16),Ar=ze(16);for(be(at!=0),be(Ve!=null),be(De!=null),be(0<Ae),Pt=0;Pt<at;++Pt){if(15<Ve[Pt])return 0;++Tr[Ve[Pt]]}if(Tr[0]==at)return 0;for(Ar[1]=0,Wt=1;15>Wt;++Wt){if(Tr[Wt]>1<<Wt)return 0;Ar[Wt+1]=Ar[Wt]+Tr[Wt]}for(Pt=0;Pt<at;++Pt)Wt=Ve[Pt],0<Ve[Pt]&&(It[Ar[Wt]++]=Pt);if(Ar[15]==1)return(Ve=new Nr).g=0,Ve.value=It[0],zr(De,_r,1,Zr,Ve),Zr;var Hr,tn=-1,_n=Zr-1,gi=0,Li=1,oa=1,Wi=1<<Ae;for(Pt=0,Wt=1,at=2;Wt<=Ae;++Wt,at<<=1){if(Li+=oa<<=1,0>(oa-=Tr[Wt]))return 0;for(;0<Tr[Wt];--Tr[Wt])(Ve=new Nr).g=Wt,Ve.value=It[Pt++],zr(De,_r+gi,at,Wi,Ve),gi=On(gi,Wt)}for(Wt=Ae+1,at=2;15>=Wt;++Wt,at<<=1){if(Li+=oa<<=1,0>(oa-=Tr[Wt]))return 0;for(;0<Tr[Wt];--Tr[Wt]){if(Ve=new Nr,(gi&_n)!=tn){for(_r+=Wi,Hr=1<<(tn=Wt)-Ae;15>tn&&!(0>=(Hr-=Tr[tn]));)++tn,Hr<<=1;Zr+=Wi=1<<(Hr=tn-Ae),De[ee+(tn=gi&_n)].g=Hr+Ae,De[ee+tn].value=_r-ee-tn}Ve.g=Wt-Ae,Ve.value=It[Pt++],zr(De,_r+(gi>>Ae),at,Wi,Ve),gi=On(gi,Wt)}}return Li!=2*Ar[15]-1?0:Zr}(pe,We,ht,Yt,Er,Xr)}function Nr(){this.value=this.g=0}function Qt(){this.value=this.g=0}function xr(){this.G=Ze(5,Nr),this.H=ze(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Ze(fo,Qt)}function Jr(pe,We,ht,Yt){be(pe!=null),be(We!=null),be(2147483648>Yt),pe.Ca=254,pe.I=0,pe.b=-8,pe.Ka=0,pe.oa=We,pe.pa=ht,pe.Jd=We,pe.Yc=ht+Yt,pe.Zc=4<=Yt?ht+Yt-4+1:ht,Ei(pe)}function Kr(pe,We){for(var ht=0;0<We--;)ht|=Fi(pe,128)<<We;return ht}function en(pe,We){var ht=Kr(pe,We);return ki(pe)?-ht:ht}function ai(pe,We,ht,Yt){var Er,Xr=0;for(be(pe!=null),be(We!=null),be(4294967288>Yt),pe.Sb=Yt,pe.Ra=0,pe.u=0,pe.h=0,4<Yt&&(Yt=4),Er=0;Er<Yt;++Er)Xr+=We[ht+Er]<<8*Er;pe.Ra=Xr,pe.bb=Yt,pe.oa=We,pe.pa=ht}function Yn(pe){for(;8<=pe.u&&pe.bb<pe.Sb;)pe.Ra>>>=8,pe.Ra+=pe.oa[pe.pa+pe.bb]<<zo-8>>>0,++pe.bb,pe.u-=8;Xn(pe)&&(pe.h=1,pe.u=0)}function Si(pe,We){if(be(0<=We),!pe.h&&We<=Jo){var ht=wn(pe)&ts[We];return pe.u+=We,Yn(pe),ht}return pe.h=1,pe.u=0}function ln(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Or(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function wn(pe){return pe.Ra>>>(pe.u&zo-1)>>>0}function Xn(pe){return be(pe.bb<=pe.Sb),pe.h||pe.bb==pe.Sb&&pe.u>zo}function Zn(pe,We){pe.u=We,pe.h=Xn(pe)}function ii(pe){pe.u>=is&&(be(pe.u>=is),Yn(pe))}function Ei(pe){be(pe!=null&&pe.oa!=null),pe.pa<pe.Zc?(pe.I=(pe.oa[pe.pa++]|pe.I<<8)>>>0,pe.b+=8):(be(pe!=null&&pe.oa!=null),pe.pa<pe.Yc?(pe.b+=8,pe.I=pe.oa[pe.pa++]|pe.I<<8):pe.Ka?pe.b=0:(pe.I<<=8,pe.b+=8,pe.Ka=1))}function ki(pe){return Kr(pe,1)}function Fi(pe,We){var ht=pe.Ca;0>pe.b&&Ei(pe);var Yt=pe.b,Er=ht*We>>>8,Xr=(pe.I>>>Yt>Er)+0;for(Xr?(ht-=Er,pe.I-=Er+1<<Yt>>>0):ht=Er+1,Yt=ht,Er=0;256<=Yt;)Er+=8,Yt>>=8;return Yt=7^Er+Rs[Yt],pe.b-=Yt,pe.Ca=(ht<<Yt)-1,Xr}function ra(pe,We,ht){pe[We+0]=ht>>24&255,pe[We+1]=ht>>16&255,pe[We+2]=ht>>8&255,pe[We+3]=ht>>0&255}function _a(pe,We){return pe[We+0]<<0|pe[We+1]<<8}function wa(pe,We){return _a(pe,We)|pe[We+2]<<16}function _o(pe,We){return _a(pe,We)|_a(pe,We+2)<<16}function bi(pe,We){var ht=1<<We;return be(pe!=null),be(0<We),pe.X=ze(ht),pe.X==null?0:(pe.Mb=32-We,pe.Xa=We,1)}function xn(pe,We){be(pe!=null),be(We!=null),be(pe.Xa==We.Xa),Ue(We.X,0,pe.X,0,1<<We.Xa)}function Zi(){this.X=[],this.Xa=this.Mb=0}function va(pe,We,ht,Yt){be(ht!=null),be(Yt!=null);var Er=ht[0],Xr=Yt[0];return Er==0&&(Er=(pe*Xr+We/2)/We),Xr==0&&(Xr=(We*Er+pe/2)/pe),0>=Er||0>=Xr?0:(ht[0]=Er,Yt[0]=Xr,1)}function ta(pe,We){return pe+(1<<We)-1>>>We}function ma(pe,We){return((4278255360&pe)+(4278255360&We)>>>0&4278255360)+((16711935&pe)+(16711935&We)>>>0&16711935)>>>0}function Qi(pe,We){Qr[We]=function(ht,Yt,Er,Xr,De,ee,Ae){var Ve;for(Ve=0;Ve<De;++Ve){var at=Qr[pe](ee[Ae+Ve-1],Er,Xr+Ve);ee[Ae+Ve]=ma(ht[Yt+Ve],at)}}}function Ya(){this.ud=this.hd=this.jd=0}function Wa(pe,We){return((4278124286&(pe^We))>>>1)+(pe&We)>>>0}function Ao(pe){return 0<=pe&&256>pe?pe:0>pe?0:255<pe?255:void 0}function es(pe,We){return Ao(pe+(pe-We+.5>>1))}function so(pe,We,ht){return Math.abs(We-ht)-Math.abs(pe-ht)}function So(pe,We,ht,Yt,Er,Xr,De){for(Yt=Xr[De-1],ht=0;ht<Er;++ht)Xr[De+ht]=Yt=ma(pe[We+ht],Yt)}function xo(pe,We,ht,Yt,Er){var Xr;for(Xr=0;Xr<ht;++Xr){var De=pe[We+Xr],ee=De>>8&255,Ae=16711935&(Ae=(Ae=16711935&De)+((ee<<16)+ee));Yt[Er+Xr]=(4278255360&De)+Ae>>>0}}function hr(pe,We){We.jd=pe>>0&255,We.hd=pe>>8&255,We.ud=pe>>16&255}function Sn(pe,We,ht,Yt,Er,Xr){var De;for(De=0;De<Yt;++De){var ee=We[ht+De],Ae=ee>>>8,Ve=ee,at=255&(at=(at=ee>>>16)+((pe.jd<<24>>24)*(Ae<<24>>24)>>>5));Ve=255&(Ve=(Ve=Ve+((pe.hd<<24>>24)*(Ae<<24>>24)>>>5))+((pe.ud<<24>>24)*(at<<24>>24)>>>5)),Er[Xr+De]=(4278255360&ee)+(at<<16)+Ve}}function dn(pe,We,ht,Yt,Er){Qr[We]=function(Xr,De,ee,Ae,Ve,at,It,Wt,Pt){for(Ae=It;Ae<Wt;++Ae)for(It=0;It<Pt;++It)Ve[at++]=Er(ee[Yt(Xr[De++])])},Qr[pe]=function(Xr,De,ee,Ae,Ve,at,It){var Wt=8>>Xr.b,Pt=Xr.Ea,_r=Xr.K[0],Zr=Xr.w;if(8>Wt)for(Xr=(1<<Xr.b)-1,Zr=(1<<Wt)-1;De<ee;++De){var Tr,Ar=0;for(Tr=0;Tr<Pt;++Tr)Tr&Xr||(Ar=Yt(Ae[Ve++])),at[It++]=Er(_r[Ar&Zr]),Ar>>=Wt}else Qr["VP8LMapColor"+ht](Ae,Ve,_r,Zr,at,It,De,ee,Pt)}}function Kn(pe,We,ht,Yt,Er){for(ht=We+ht;We<ht;){var Xr=pe[We++];Yt[Er++]=Xr>>16&255,Yt[Er++]=Xr>>8&255,Yt[Er++]=Xr>>0&255}}function si(pe,We,ht,Yt,Er){for(ht=We+ht;We<ht;){var Xr=pe[We++];Yt[Er++]=Xr>>16&255,Yt[Er++]=Xr>>8&255,Yt[Er++]=Xr>>0&255,Yt[Er++]=Xr>>24&255}}function vi(pe,We,ht,Yt,Er){for(ht=We+ht;We<ht;){var Xr=(De=pe[We++])>>16&240|De>>12&15,De=De>>0&240|De>>28&15;Yt[Er++]=Xr,Yt[Er++]=De}}function pi(pe,We,ht,Yt,Er){for(ht=We+ht;We<ht;){var Xr=(De=pe[We++])>>16&248|De>>13&7,De=De>>5&224|De>>3&31;Yt[Er++]=Xr,Yt[Er++]=De}}function di(pe,We,ht,Yt,Er){for(ht=We+ht;We<ht;){var Xr=pe[We++];Yt[Er++]=Xr>>0&255,Yt[Er++]=Xr>>8&255,Yt[Er++]=Xr>>16&255}}function Ki(pe,We,ht,Yt,Er,Xr){if(Xr==0)for(ht=We+ht;We<ht;)ra(Yt,((Xr=pe[We++])[0]>>24|Xr[1]>>8&65280|Xr[2]<<8&16711680|Xr[3]<<24)>>>0),Er+=32;else Ue(Yt,Er,pe,We,ht)}function Mi(pe,We){Qr[We][0]=Qr[pe+"0"],Qr[We][1]=Qr[pe+"1"],Qr[We][2]=Qr[pe+"2"],Qr[We][3]=Qr[pe+"3"],Qr[We][4]=Qr[pe+"4"],Qr[We][5]=Qr[pe+"5"],Qr[We][6]=Qr[pe+"6"],Qr[We][7]=Qr[pe+"7"],Qr[We][8]=Qr[pe+"8"],Qr[We][9]=Qr[pe+"9"],Qr[We][10]=Qr[pe+"10"],Qr[We][11]=Qr[pe+"11"],Qr[We][12]=Qr[pe+"12"],Qr[We][13]=Qr[pe+"13"],Qr[We][14]=Qr[pe+"0"],Qr[We][15]=Qr[pe+"0"]}function pa(pe){return pe==bu||pe==Dl||pe==Fl||pe==jl}function _i(){this.eb=[],this.size=this.A=this.fb=0}function da(){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 na(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new _i,this.f.kb=new da,this.sd=null}function Sa(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Aa(){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 ua(pe){return alert("todo:WebPSamplerProcessPlane"),pe.T}function La(pe,We){var ht=pe.T,Yt=We.ba.f.RGBA,Er=Yt.eb,Xr=Yt.fb+pe.ka*Yt.A,De=Xo[We.ba.S],ee=pe.y,Ae=pe.O,Ve=pe.f,at=pe.N,It=pe.ea,Wt=pe.W,Pt=We.cc,_r=We.dc,Zr=We.Mc,Tr=We.Nc,Ar=pe.ka,Hr=pe.ka+pe.T,tn=pe.U,_n=tn+1>>1;for(Ar==0?De(ee,Ae,null,null,Ve,at,It,Wt,Ve,at,It,Wt,Er,Xr,null,null,tn):(De(We.ec,We.fc,ee,Ae,Pt,_r,Zr,Tr,Ve,at,It,Wt,Er,Xr-Yt.A,Er,Xr,tn),++ht);Ar+2<Hr;Ar+=2)Pt=Ve,_r=at,Zr=It,Tr=Wt,at+=pe.Rc,Wt+=pe.Rc,Xr+=2*Yt.A,De(ee,(Ae+=2*pe.fa)-pe.fa,ee,Ae,Pt,_r,Zr,Tr,Ve,at,It,Wt,Er,Xr-Yt.A,Er,Xr,tn);return Ae+=pe.fa,pe.j+Hr<pe.o?(Ue(We.ec,We.fc,ee,Ae,tn),Ue(We.cc,We.dc,Ve,at,_n),Ue(We.Mc,We.Nc,It,Wt,_n),ht--):1&Hr||De(ee,Ae,null,null,Ve,at,It,Wt,Ve,at,It,Wt,Er,Xr+Yt.A,null,null,tn),ht}function sa(pe,We,ht){var Yt=pe.F,Er=[pe.J];if(Yt!=null){var Xr=pe.U,De=We.ba.S,ee=De==Xl||De==Fl;We=We.ba.f.RGBA;var Ae=[0],Ve=pe.ka;Ae[0]=pe.T,pe.Kb&&(Ve==0?--Ae[0]:(--Ve,Er[0]-=pe.width),pe.j+pe.ka+pe.T==pe.o&&(Ae[0]=pe.o-pe.j-Ve));var at=We.eb;Ve=We.fb+Ve*We.A,pe=tl(Yt,Er[0],pe.width,Xr,Ae,at,Ve+(ee?0:3),We.A),be(ht==Ae),pe&&pa(De)&&Zl(at,Ve,ee,Xr,Ae,We.A)}return 0}function co(pe){var We=pe.ma,ht=We.ba.S,Yt=11>ht,Er=ht==yu||ht==Ll||ht==Xl||ht==Ou||ht==12||pa(ht);if(We.memory=null,We.Ib=null,We.Jb=null,We.Nd=null,!Mo(We.Oa,pe,Er?11:12))return 0;if(Er&&pa(ht)&&Ke(),pe.da)alert("todo:use_scaling");else{if(Yt){if(We.Ib=ua,pe.Kb){if(ht=pe.U+1>>1,We.memory=ze(pe.U+2*ht),We.memory==null)return 0;We.ec=We.memory,We.fc=0,We.cc=We.ec,We.dc=We.fc+pe.U,We.Mc=We.cc,We.Nc=We.dc+ht,We.Ib=La,Ke()}}else alert("todo:EmitYUV");Er&&(We.Jb=sa,Yt&&de())}if(Yt&&!ls){for(pe=0;256>pe;++pe)Zo[pe]=89858*(pe-128)+tu>>Ys,js[pe]=-22014*(pe-128)+tu,Cs[pe]=-45773*(pe-128),ds[pe]=113618*(pe-128)+tu>>Ys;for(pe=Su;pe<pu;++pe)We=76283*(pe-16)+tu>>Ys,vs[pe-Su]=Ga(We,255),ul[pe-Su]=Ga(We+8>>4,15);ls=1}return 1}function no(pe){var We=pe.ma,ht=pe.U,Yt=pe.T;return be(!(1&pe.ka)),0>=ht||0>=Yt?0:(ht=We.Ib(pe,We),We.Jb!=null&&We.Jb(pe,We,ht),We.Dc+=ht,1)}function ca(pe){pe.ma.memory=null}function yo(pe,We,ht,Yt){return Si(pe,8)!=47?0:(We[0]=Si(pe,14)+1,ht[0]=Si(pe,14)+1,Yt[0]=Si(pe,1),Si(pe,3)!=0?0:!pe.h)}function lo(pe,We){if(4>pe)return pe+1;var ht=pe-2>>1;return(2+(1&pe)<<ht)+Si(We,ht)+1}function Na(pe,We){return 120<We?We-120:1<=(ht=((ht=Yl[We-1])>>4)*pe+(8-(15&ht)))?ht:1;var ht}function ho(pe,We,ht){var Yt=wn(ht),Er=pe[We+=255&Yt].g-8;return 0<Er&&(Zn(ht,ht.u+8),Yt=wn(ht),We+=pe[We].value,We+=Yt&(1<<Er)-1),Zn(ht,ht.u+pe[We].g),pe[We].value}function Io(pe,We,ht){return ht.g+=pe.g,ht.value+=pe.value<<We>>>0,be(8>=ht.g),pe.g}function eo(pe,We,ht){var Yt=pe.xc;return be((We=Yt==0?0:pe.vc[pe.md*(ht>>Yt)+(We>>Yt)])<pe.Wb),pe.Ya[We]}function Lo(pe,We,ht,Yt){var Er=pe.ab,Xr=pe.c*We,De=pe.C;We=De+We;var ee=ht,Ae=Yt;for(Yt=pe.Ta,ht=pe.Ua;0<Er--;){var Ve=pe.gc[Er],at=De,It=We,Wt=ee,Pt=Ae,_r=(Ae=Yt,ee=ht,Ve.Ea);switch(be(at<It),be(It<=Ve.nc),Ve.hc){case 2:Ps(Wt,Pt,(It-at)*_r,Ae,ee);break;case 0:var Zr=at,Tr=It,Ar=Ae,Hr=ee,tn=(Wi=Ve).Ea;Zr==0&&(gs(Wt,Pt,null,null,1,Ar,Hr),So(Wt,Pt+1,0,0,tn-1,Ar,Hr+1),Pt+=tn,Hr+=tn,++Zr);for(var _n=1<<Wi.b,gi=_n-1,Li=ta(tn,Wi.b),oa=Wi.K,Wi=Wi.w+(Zr>>Wi.b)*Li;Zr<Tr;){var ro=oa,xa=Wi,Co=1;for(ps(Wt,Pt,Ar,Hr-tn,1,Ar,Hr);Co<tn;){var po=(Co&~gi)+_n;po>tn&&(po=tn),(0,ws[ro[xa++]>>8&15])(Wt,Pt+ +Co,Ar,Hr+Co-tn,po-Co,Ar,Hr+Co),Co=po}Pt+=tn,Hr+=tn,++Zr&gi||(Wi+=Li)}It!=Ve.nc&&Ue(Ae,ee-_r,Ae,ee+(It-at-1)*_r,_r);break;case 1:for(_r=Wt,Tr=Pt,tn=(Wt=Ve.Ea)-(Hr=Wt&~(Ar=(Pt=1<<Ve.b)-1)),Zr=ta(Wt,Ve.b),_n=Ve.K,Ve=Ve.w+(at>>Ve.b)*Zr;at<It;){for(gi=_n,Li=Ve,oa=new Ya,Wi=Tr+Hr,ro=Tr+Wt;Tr<Wi;)hr(gi[Li++],oa),Os(oa,_r,Tr,Pt,Ae,ee),Tr+=Pt,ee+=Pt;Tr<ro&&(hr(gi[Li++],oa),Os(oa,_r,Tr,tn,Ae,ee),Tr+=tn,ee+=tn),++at&Ar||(Ve+=Zr)}break;case 3:if(Wt==Ae&&Pt==ee&&0<Ve.b){for(Tr=Ae,Wt=_r=ee+(It-at)*_r-(Hr=(It-at)*ta(Ve.Ea,Ve.b)),Pt=Ae,Ar=ee,Zr=[],Hr=(tn=Hr)-1;0<=Hr;--Hr)Zr[Hr]=Pt[Ar+Hr];for(Hr=tn-1;0<=Hr;--Hr)Tr[Wt+Hr]=Zr[Hr];Es(Ve,at,It,Ae,_r,Ae,ee)}else Es(Ve,at,It,Wt,Pt,Ae,ee)}ee=Yt,Ae=ht}Ae!=ht&&Ue(Yt,ht,ee,Ae,Xr)}function Va(pe,We){var ht=pe.V,Yt=pe.Ba+pe.c*pe.C,Er=We-pe.C;if(be(We<=pe.l.o),be(16>=Er),0<Er){var Xr=pe.l,De=pe.Ta,ee=pe.Ua,Ae=Xr.width;if(Lo(pe,Er,ht,Yt),Er=ee=[ee],be((ht=pe.C)<(Yt=We)),be(Xr.v<Xr.va),Yt>Xr.o&&(Yt=Xr.o),ht<Xr.j){var Ve=Xr.j-ht;ht=Xr.j,Er[0]+=Ve*Ae}if(ht>=Yt?ht=0:(Er[0]+=4*Xr.v,Xr.ka=ht-Xr.j,Xr.U=Xr.va-Xr.v,Xr.T=Yt-ht,ht=1),ht){if(ee=ee[0],11>(ht=pe.ca).S){var at=ht.f.RGBA,It=(Yt=ht.S,Er=Xr.U,Xr=Xr.T,Ve=at.eb,at.A),Wt=Xr;for(at=at.fb+pe.Ma*at.A;0<Wt--;){var Pt=De,_r=ee,Zr=Er,Tr=Ve,Ar=at;switch(Yt){case ql:$s(Pt,_r,Zr,Tr,Ar);break;case yu:nl(Pt,_r,Zr,Tr,Ar);break;case bu:nl(Pt,_r,Zr,Tr,Ar),Zl(Tr,Ar,0,Zr,1,0);break;case du:Nl(Pt,_r,Zr,Tr,Ar);break;case Ll:Ki(Pt,_r,Zr,Tr,Ar,1);break;case Dl:Ki(Pt,_r,Zr,Tr,Ar,1),Zl(Tr,Ar,0,Zr,1,0);break;case Xl:Ki(Pt,_r,Zr,Tr,Ar,0);break;case Fl:Ki(Pt,_r,Zr,Tr,Ar,0),Zl(Tr,Ar,1,Zr,1,0);break;case Ou:il(Pt,_r,Zr,Tr,Ar);break;case jl:il(Pt,_r,Zr,Tr,Ar),iu(Tr,Ar,Zr,1,0);break;case hu:hl(Pt,_r,Zr,Tr,Ar);break;default:be(0)}ee+=Ae,at+=It}pe.Ma+=Xr}else alert("todo:EmitRescaledRowsYUVA");be(pe.Ma<=ht.height)}}pe.C=We,be(pe.C<=pe.i)}function Bo(pe){var We;if(0<pe.ua)return 0;for(We=0;We<pe.Wb;++We){var ht=pe.Ya[We].G,Yt=pe.Ya[We].H;if(0<ht[1][Yt[1]+0].g||0<ht[2][Yt[2]+0].g||0<ht[3][Yt[3]+0].g)return 0}return 1}function Ho(pe,We,ht,Yt,Er,Xr){if(pe.Z!=0){var De=pe.qd,ee=pe.rd;for(be(Do[pe.Z]!=null);We<ht;++We)Do[pe.Z](De,ee,Yt,Er,Yt,Er,Xr),De=Yt,ee=Er,Er+=Xr;pe.qd=De,pe.rd=ee}}function Pr(pe,We){var ht=pe.l.ma,Yt=ht.Z==0||ht.Z==1?pe.l.j:pe.C;if(Yt=pe.C<Yt?Yt:pe.C,be(We<=pe.l.o),We>Yt){var Er=pe.l.width,Xr=ht.ca,De=ht.tb+Er*Yt,ee=pe.V,Ae=pe.Ba+pe.c*Yt,Ve=pe.gc;be(pe.ab==1),be(Ve[0].hc==3),Ks(Ve[0],Yt,We,ee,Ae,Xr,De),Ho(ht,Yt,We,Xr,De,Er)}pe.C=pe.Ma=We}function An(pe,We,ht,Yt,Er,Xr,De){var ee=pe.$/Yt,Ae=pe.$%Yt,Ve=pe.m,at=pe.s,It=ht+pe.$,Wt=It;Er=ht+Yt*Er;var Pt=ht+Yt*Xr,_r=280+at.ua,Zr=pe.Pb?ee:16777216,Tr=0<at.ua?at.Wa:null,Ar=at.wc,Hr=It<Pt?eo(at,Ae,ee):null;be(pe.C<Xr),be(Pt<=Er);var tn=!1;e:for(;;){for(;tn||It<Pt;){var _n=0;if(ee>=Zr){var gi=It-ht;be((Zr=pe).Pb),Zr.wd=Zr.m,Zr.xd=gi,0<Zr.s.ua&&xn(Zr.s.Wa,Zr.s.vb),Zr=ee+wu}if(Ae&Ar||(Hr=eo(at,Ae,ee)),be(Hr!=null),Hr.Qb&&(We[It]=Hr.qb,tn=!0),!tn)if(ii(Ve),Hr.jc){_n=Ve,gi=We;var Li=It,oa=Hr.pd[wn(_n)&fo-1];be(Hr.jc),256>oa.g?(Zn(_n,_n.u+oa.g),gi[Li]=oa.value,_n=0):(Zn(_n,_n.u+oa.g-256),be(256<=oa.value),_n=oa.value),_n==0&&(tn=!0)}else _n=ho(Hr.G[0],Hr.H[0],Ve);if(Ve.h)break;if(tn||256>_n){if(!tn)if(Hr.nd)We[It]=(Hr.qb|_n<<8)>>>0;else{if(ii(Ve),tn=ho(Hr.G[1],Hr.H[1],Ve),ii(Ve),gi=ho(Hr.G[2],Hr.H[2],Ve),Li=ho(Hr.G[3],Hr.H[3],Ve),Ve.h)break;We[It]=(Li<<24|tn<<16|_n<<8|gi)>>>0}if(tn=!1,++It,++Ae>=Yt&&(Ae=0,++ee,De!=null&&ee<=Xr&&!(ee%16)&&De(pe,ee),Tr!=null))for(;Wt<It;)_n=We[Wt++],Tr.X[(506832829*_n&4294967295)>>>Tr.Mb]=_n}else if(280>_n){if(_n=lo(_n-256,Ve),gi=ho(Hr.G[4],Hr.H[4],Ve),ii(Ve),gi=Na(Yt,gi=lo(gi,Ve)),Ve.h)break;if(It-ht<gi||Er-It<_n)break e;for(Li=0;Li<_n;++Li)We[It+Li]=We[It+Li-gi];for(It+=_n,Ae+=_n;Ae>=Yt;)Ae-=Yt,++ee,De!=null&&ee<=Xr&&!(ee%16)&&De(pe,ee);if(be(It<=Er),Ae&Ar&&(Hr=eo(at,Ae,ee)),Tr!=null)for(;Wt<It;)_n=We[Wt++],Tr.X[(506832829*_n&4294967295)>>>Tr.Mb]=_n}else{if(!(_n<_r))break e;for(tn=_n-280,be(Tr!=null);Wt<It;)_n=We[Wt++],Tr.X[(506832829*_n&4294967295)>>>Tr.Mb]=_n;_n=It,be(!(tn>>>(gi=Tr).Xa)),We[_n]=gi.X[tn],tn=!0}tn||be(Ve.h==Xn(Ve))}if(pe.Pb&&Ve.h&&It<Er)be(pe.m.h),pe.a=5,pe.m=pe.wd,pe.$=pe.xd,0<pe.s.ua&&xn(pe.s.vb,pe.s.Wa);else{if(Ve.h)break e;De!=null&&De(pe,ee>Xr?Xr:ee),pe.a=0,pe.$=It-ht}return 1}return pe.a=3,0}function Pn(pe){be(pe!=null),pe.vc=null,pe.yc=null,pe.Ya=null;var We=pe.Wa;We!=null&&(We.X=null),pe.vb=null,be(pe!=null)}function qr(){var pe=new Xa;return pe==null?null:(pe.a=0,pe.xb=uo,Mi("Predictor","VP8LPredictors"),Mi("Predictor","VP8LPredictors_C"),Mi("PredictorAdd","VP8LPredictorsAdd"),Mi("PredictorAdd","VP8LPredictorsAdd_C"),Ps=xo,Os=Sn,$s=Kn,nl=si,il=vi,hl=pi,Nl=di,Qr.VP8LMapColor32b=Vs,Qr.VP8LMapColor8b=Gs,pe)}function er(pe,We,ht,Yt,Er){var Xr=1,De=[pe],ee=[We],Ae=Yt.m,Ve=Yt.s,at=null,It=0;e:for(;;){if(ht)for(;Xr&&Si(Ae,1);){var Wt=De,Pt=ee,_r=Yt,Zr=1,Tr=_r.m,Ar=_r.gc[_r.ab],Hr=Si(Tr,2);if(_r.Oc&1<<Hr)Xr=0;else{switch(_r.Oc|=1<<Hr,Ar.hc=Hr,Ar.Ea=Wt[0],Ar.nc=Pt[0],Ar.K=[null],++_r.ab,be(4>=_r.ab),Hr){case 0:case 1:Ar.b=Si(Tr,3)+2,Zr=er(ta(Ar.Ea,Ar.b),ta(Ar.nc,Ar.b),0,_r,Ar.K),Ar.K=Ar.K[0];break;case 3:var tn,_n=Si(Tr,8)+1,gi=16<_n?0:4<_n?1:2<_n?2:3;if(Wt[0]=ta(Ar.Ea,gi),Ar.b=gi,tn=Zr=er(_n,1,0,_r,Ar.K)){var Li,oa=_n,Wi=Ar,ro=1<<(8>>Wi.b),xa=ze(ro);if(xa==null)tn=0;else{var Co=Wi.K[0],po=Wi.w;for(xa[0]=Wi.K[0][0],Li=1;Li<1*oa;++Li)xa[Li]=ma(Co[po+Li],xa[Li-1]);for(;Li<4*ro;++Li)xa[Li]=0;Wi.K[0]=null,Wi.K[0]=xa,tn=1}}Zr=tn;break;case 2:break;default:be(0)}Xr=Zr}}if(De=De[0],ee=ee[0],Xr&&Si(Ae,1)&&!(Xr=1<=(It=Si(Ae,4))&&11>=It)){Yt.a=3;break e}var Yo;if(Yo=Xr)t:{var os,k,W,$=Yt,re=De,se=ee,ke=It,ft=ht,Kt=$.m,qt=$.s,ir=[null],bn=1,Bn=0,ci=_u[ke];r:for(;;){if(ft&&Si(Kt,1)){var fi=Si(Kt,3)+2,Ji=ta(re,fi),ba=ta(se,fi),Fa=Ji*ba;if(!er(Ji,ba,0,$,ir))break r;for(ir=ir[0],qt.xc=fi,os=0;os<Fa;++os){var Da=ir[os]>>8&65535;ir[os]=Da,Da>=bn&&(bn=Da+1)}}if(Kt.h)break r;for(k=0;5>k;++k){var Ia=rl[k];!k&&0<ke&&(Ia+=1<<ke),Bn<Ia&&(Bn=Ia)}var Za=Ze(bn*ci,Nr),mo=bn,Vo=Ze(mo,xr);if(Vo==null)var Fo=null;else be(65536>=mo),Fo=Vo;var Ta=ze(Bn);if(Fo==null||Ta==null||Za==null){$.a=1;break r}var fs=Za;for(os=W=0;os<bn;++os){var ks=Fo[os],hs=ks.G,cl=ks.H,cs=0,us=1,Cl=0;for(k=0;5>k;++k){Ia=rl[k],hs[k]=fs,cl[k]=W,!k&&0<ke&&(Ia+=1<<ke);i:{var dl,Qs=Ia,Js=$,Bs=Ta,Vl=fs,ku=W,gu=0,Zs=Js.m,vu=Si(Zs,1);if(Xe(Bs,0,0,Qs),vu){var Ol=Si(Zs,1)+1,Vu=Si(Zs,1),Au=Si(Zs,Vu==0?1:8);Bs[Au]=1,Ol==2&&(Bs[Au=Si(Zs,8)]=1);var xu=1}else{var Nu=ze(19),kl=Si(Zs,4)+4;if(19<kl){Js.a=3;var Eu=0;break i}for(dl=0;dl<kl;++dl)Nu[sl[dl]]=Si(Zs,3);var Ku=void 0,tc=void 0,bc=Js,lc=Nu,nu=Qs,fc=Bs,Gu=0,Pu=bc.m,wc=8,uc=Ze(128,Nr);n:for(;fr(uc,0,7,lc,19);){if(Si(Pu,1)){var Xu=2+2*Si(Pu,3);if((Ku=2+Si(Pu,Xu))>nu)break n}else Ku=nu;for(tc=0;tc<nu&&Ku--;){ii(Pu);var rc=uc[0+(127&wn(Pu))];Zn(Pu,Pu.u+rc.g);var Yu=rc.value;if(16>Yu)fc[tc++]=Yu,Yu!=0&&(wc=Yu);else{var Qu=Yu==16,Sc=Yu-16,Ec=Fs[Sc],pc=Si(Pu,Hl[Sc])+Ec;if(tc+pc>nu)break n;for(var Tc=Qu?wc:0;0<pc--;)fc[tc++]=Tc}}Gu=1;break n}Gu||(bc.a=3),xu=Gu}(xu=xu&&!Zs.h)&&(gu=fr(Vl,ku,8,Bs,Qs)),xu&&gu!=0?Eu=gu:(Js.a=3,Eu=0)}if(Eu==0)break r;if(us&&Kl[k]==1&&(us=fs[W].g==0),cs+=fs[W].g,W+=Eu,3>=k){var Ju,mc=Ta[0];for(Ju=1;Ju<Ia;++Ju)Ta[Ju]>mc&&(mc=Ta[Ju]);Cl+=mc}}if(ks.nd=us,ks.Qb=0,us&&(ks.qb=(hs[3][cl[3]+0].value<<24|hs[1][cl[1]+0].value<<16|hs[2][cl[2]+0].value)>>>0,cs==0&&256>hs[0][cl[0]+0].value&&(ks.Qb=1,ks.qb+=hs[0][cl[0]+0].value<<8)),ks.jc=!ks.Qb&&6>Cl,ks.jc){var cc,Mu=ks;for(cc=0;cc<fo;++cc){var Fu=cc,Bu=Mu.pd[Fu],dc=Mu.G[0][Mu.H[0]+Fu];256<=dc.value?(Bu.g=dc.g+256,Bu.value=dc.value):(Bu.g=0,Bu.value=0,Fu>>=Io(dc,8,Bu),Fu>>=Io(Mu.G[1][Mu.H[1]+Fu],16,Bu),Fu>>=Io(Mu.G[2][Mu.H[2]+Fu],0,Bu),Io(Mu.G[3][Mu.H[3]+Fu],24,Bu))}}}qt.vc=ir,qt.Wb=bn,qt.Ya=Fo,qt.yc=Za,Yo=1;break t}Yo=0}if(!(Xr=Yo)){Yt.a=3;break e}if(0<It){if(Ve.ua=1<<It,!bi(Ve.Wa,It)){Yt.a=1,Xr=0;break e}}else Ve.ua=0;var gc=Yt,xc=De,Cc=ee,vc=gc.s,Ac=vc.xc;if(gc.c=xc,gc.i=Cc,vc.md=ta(xc,Ac),vc.wc=Ac==0?-1:(1<<Ac)-1,ht){Yt.xb=as;break e}if((at=ze(De*ee))==null){Yt.a=1,Xr=0;break e}Xr=(Xr=An(Yt,at,0,De,ee,ee,null))&&!Ae.h;break e}return Xr?(Er!=null?Er[0]=at:(be(at==null),be(ht)),Yt.$=0,ht||Pn(Ve)):Pn(Ve),Xr}function Dr(pe,We){var ht=pe.c*pe.i,Yt=ht+We+16*We;return be(pe.c<=We),pe.V=ze(Yt),pe.V==null?(pe.Ta=null,pe.Ua=0,pe.a=1,0):(pe.Ta=pe.V,pe.Ua=pe.Ba+ht+We,1)}function lr(pe,We){var ht=pe.C,Yt=We-ht,Er=pe.V,Xr=pe.Ba+pe.c*ht;for(be(We<=pe.l.o);0<Yt;){var De=16<Yt?16:Yt,ee=pe.l.ma,Ae=pe.l.width,Ve=Ae*De,at=ee.ca,It=ee.tb+Ae*ht,Wt=pe.Ta,Pt=pe.Ua;Lo(pe,De,Er,Xr),xl(Wt,Pt,at,It,Ve),Ho(ee,ht,ht+De,at,It,Ae),Yt-=De,Er+=De*pe.c,ht+=De}be(ht==We),pe.C=pe.Ma=We}function on(){this.ub=this.yd=this.td=this.Rb=0}function fn(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Wn(){this.Fb=this.Bb=this.Cb=0,this.Zb=ze(4),this.Lb=ze(4)}function Dn(){this.Yb=function(){var pe=[];return function We(ht,Yt,Er){for(var Xr=Er[Yt],De=0;De<Xr&&(ht.push(Er.length>Yt+1?[]:0),!(Er.length<Yt+1));De++)We(ht[De],Yt+1,Er)}(pe,0,[3,11]),pe}()}function Jn(){this.jb=ze(3),this.Wc=bt([4,8],Dn),this.Xc=bt([4,17],Dn)}function Ti(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new ze(4),this.od=new ze(4)}function xi(){this.ld=this.La=this.dd=this.tc=0}function Bi(){this.Na=this.la=0}function ea(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ha(){this.ad=ze(384),this.Za=0,this.Ob=ze(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Qa(){this.uc=this.M=this.Nb=0,this.wa=Array(new xi),this.Y=0,this.ya=Array(new Ha),this.aa=0,this.l=new Ra}function io(){this.y=ze(16),this.f=ze(8),this.ea=ze(8)}function Ja(){this.cb=this.a=0,this.sc="",this.m=new ln,this.Od=new on,this.Kc=new fn,this.ed=new Ti,this.Qa=new Wn,this.Ic=this.$c=this.Aa=0,this.D=new Qa,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Ze(8,ln),this.ia=0,this.pb=Ze(4,ea),this.Pa=new Jn,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new io),this.Hd=0,this.rb=Array(new Bi),this.sb=0,this.wa=Array(new xi),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 Ha),this.L=this.aa=0,this.gd=bt([4,2],xi),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 Ga(pe,We){return 0>pe?0:pe>We?We:pe}function Ra(){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 ia(){var pe=new Ja;return pe!=null&&(pe.a=0,pe.sc="OK",pe.cb=0,pe.Xb=0,Ql||(Ql=Cr)),pe}function qe(pe,We,ht){return pe.a==0&&(pe.a=We,pe.sc=ht,pe.cb=0),0}function rr(pe,We,ht){return 3<=ht&&pe[We+0]==157&&pe[We+1]==1&&pe[We+2]==42}function Rr(pe,We){if(pe==null)return 0;if(pe.a=0,pe.sc="OK",We==null)return qe(pe,2,"null VP8Io passed to VP8GetHeaders()");var ht=We.data,Yt=We.w,Er=We.ha;if(4>Er)return qe(pe,7,"Truncated header.");var Xr=ht[Yt+0]|ht[Yt+1]<<8|ht[Yt+2]<<16,De=pe.Od;if(De.Rb=!(1&Xr),De.td=Xr>>1&7,De.yd=Xr>>4&1,De.ub=Xr>>5,3<De.td)return qe(pe,3,"Incorrect keyframe parameters.");if(!De.yd)return qe(pe,4,"Frame not displayable.");Yt+=3,Er-=3;var ee=pe.Kc;if(De.Rb){if(7>Er)return qe(pe,7,"cannot parse picture header");if(!rr(ht,Yt,Er))return qe(pe,3,"Bad code word");ee.c=16383&(ht[Yt+4]<<8|ht[Yt+3]),ee.Td=ht[Yt+4]>>6,ee.i=16383&(ht[Yt+6]<<8|ht[Yt+5]),ee.Ud=ht[Yt+6]>>6,Yt+=7,Er-=7,pe.za=ee.c+15>>4,pe.Ub=ee.i+15>>4,We.width=ee.c,We.height=ee.i,We.Da=0,We.j=0,We.v=0,We.va=We.width,We.o=We.height,We.da=0,We.ib=We.width,We.hb=We.height,We.U=We.width,We.T=We.height,Xe((Xr=pe.Pa).jb,0,255,Xr.jb.length),be((Xr=pe.Qa)!=null),Xr.Cb=0,Xr.Bb=0,Xr.Fb=1,Xe(Xr.Zb,0,0,Xr.Zb.length),Xe(Xr.Lb,0,0,Xr.Lb)}if(De.ub>Er)return qe(pe,7,"bad partition length");Jr(Xr=pe.m,ht,Yt,De.ub),Yt+=De.ub,Er-=De.ub,De.Rb&&(ee.Ld=ki(Xr),ee.Kd=ki(Xr)),ee=pe.Qa;var Ae,Ve=pe.Pa;if(be(Xr!=null),be(ee!=null),ee.Cb=ki(Xr),ee.Cb){if(ee.Bb=ki(Xr),ki(Xr)){for(ee.Fb=ki(Xr),Ae=0;4>Ae;++Ae)ee.Zb[Ae]=ki(Xr)?en(Xr,7):0;for(Ae=0;4>Ae;++Ae)ee.Lb[Ae]=ki(Xr)?en(Xr,6):0}if(ee.Bb)for(Ae=0;3>Ae;++Ae)Ve.jb[Ae]=ki(Xr)?Kr(Xr,8):255}else ee.Bb=0;if(Xr.Ka)return qe(pe,3,"cannot parse segment header");if((ee=pe.ed).zd=ki(Xr),ee.Tb=Kr(Xr,6),ee.wb=Kr(Xr,3),ee.Pc=ki(Xr),ee.Pc&&ki(Xr)){for(Ve=0;4>Ve;++Ve)ki(Xr)&&(ee.vd[Ve]=en(Xr,6));for(Ve=0;4>Ve;++Ve)ki(Xr)&&(ee.od[Ve]=en(Xr,6))}if(pe.L=ee.Tb==0?0:ee.zd?1:2,Xr.Ka)return qe(pe,3,"cannot parse filter header");var at=Er;if(Er=Ae=Yt,Yt=Ae+at,ee=at,pe.Xb=(1<<Kr(pe.m,2))-1,at<3*(Ve=pe.Xb))ht=7;else{for(Ae+=3*Ve,ee-=3*Ve,at=0;at<Ve;++at){var It=ht[Er+0]|ht[Er+1]<<8|ht[Er+2]<<16;It>ee&&(It=ee),Jr(pe.Jc[+at],ht,Ae,It),Ae+=It,ee-=It,Er+=3}Jr(pe.Jc[+Ve],ht,Ae,ee),ht=Ae<Yt?0:5}if(ht!=0)return qe(pe,ht,"cannot parse partitions");for(ht=Kr(Ae=pe.m,7),Er=ki(Ae)?en(Ae,4):0,Yt=ki(Ae)?en(Ae,4):0,ee=ki(Ae)?en(Ae,4):0,Ve=ki(Ae)?en(Ae,4):0,Ae=ki(Ae)?en(Ae,4):0,at=pe.Qa,It=0;4>It;++It){if(at.Cb){var Wt=at.Zb[It];at.Fb||(Wt+=ht)}else{if(0<It){pe.pb[It]=pe.pb[0];continue}Wt=ht}var Pt=pe.pb[It];Pt.Sc[0]=Bl[Ga(Wt+Er,127)],Pt.Sc[1]=El[Ga(Wt+0,127)],Pt.Eb[0]=2*Bl[Ga(Wt+Yt,127)],Pt.Eb[1]=101581*El[Ga(Wt+ee,127)]>>16,8>Pt.Eb[1]&&(Pt.Eb[1]=8),Pt.Qc[0]=Bl[Ga(Wt+Ve,117)],Pt.Qc[1]=El[Ga(Wt+Ae,127)],Pt.lc=Wt+Ae}if(!De.Rb)return qe(pe,4,"Not a key frame.");for(ki(Xr),De=pe.Pa,ht=0;4>ht;++ht){for(Er=0;8>Er;++Er)for(Yt=0;3>Yt;++Yt)for(ee=0;11>ee;++ee)Ve=Fi(Xr,Ul[ht][Er][Yt][ee])?Kr(Xr,8):eu[ht][Er][Yt][ee],De.Wc[ht][Er].Yb[Yt][ee]=Ve;for(Er=0;17>Er;++Er)De.Xc[ht][Er]=De.Wc[ht][fu[Er]]}return pe.kc=ki(Xr),pe.kc&&(pe.Bd=Kr(Xr,8)),pe.cb=1}function Cr(pe,We,ht,Yt,Er,Xr,De){var ee=We[Er].Yb[ht];for(ht=0;16>Er;++Er){if(!Fi(pe,ee[ht+0]))return Er;for(;!Fi(pe,ee[ht+1]);)if(ee=We[++Er].Yb[0],ht=0,Er==16)return 16;var Ae=We[Er+1].Yb;if(Fi(pe,ee[ht+2])){var Ve=pe,at=0;if(Fi(Ve,(Wt=ee)[(It=ht)+3]))if(Fi(Ve,Wt[It+6])){for(ee=0,It=2*(at=Fi(Ve,Wt[It+8]))+(Wt=Fi(Ve,Wt[It+9+at])),at=0,Wt=Iu[It];Wt[ee];++ee)at+=at+Fi(Ve,Wt[ee]);at+=3+(8<<It)}else Fi(Ve,Wt[It+7])?(at=7+2*Fi(Ve,165),at+=Fi(Ve,145)):at=5+Fi(Ve,159);else at=Fi(Ve,Wt[It+4])?3+Fi(Ve,Wt[It+5]):2;ee=Ae[2]}else at=1,ee=Ae[1];Ae=De+Lu[Er],0>(Ve=pe).b&&Ei(Ve);var It,Wt=Ve.b,Pt=(It=Ve.Ca>>1)-(Ve.I>>Wt)>>31;--Ve.b,Ve.Ca+=Pt,Ve.Ca|=1,Ve.I-=(It+1&Pt)<<Wt,Xr[Ae]=((at^Pt)-Pt)*Yt[(0<Er)+0]}return 16}function pn(pe){var We=pe.rb[pe.sb-1];We.la=0,We.Na=0,Xe(pe.zc,0,0,pe.zc.length),pe.ja=0}function Vr(pe,We){if(pe==null)return 0;if(We==null)return qe(pe,2,"NULL VP8Io parameter in VP8Decode().");if(!pe.cb&&!Rr(pe,We))return 0;if(be(pe.cb),We.ac==null||We.ac(We)){We.ob&&(pe.L=0);var ht=vl[pe.L];if(pe.L==2?(pe.yb=0,pe.zb=0):(pe.yb=We.v-ht>>4,pe.zb=We.j-ht>>4,0>pe.yb&&(pe.yb=0),0>pe.zb&&(pe.zb=0)),pe.Va=We.o+15+ht>>4,pe.Hb=We.va+15+ht>>4,pe.Hb>pe.za&&(pe.Hb=pe.za),pe.Va>pe.Ub&&(pe.Va=pe.Ub),0<pe.L){var Yt=pe.ed;for(ht=0;4>ht;++ht){var Er;if(pe.Qa.Cb){var Xr=pe.Qa.Lb[ht];pe.Qa.Fb||(Xr+=Yt.Tb)}else Xr=Yt.Tb;for(Er=0;1>=Er;++Er){var De=pe.gd[ht][Er],ee=Xr;if(Yt.Pc&&(ee+=Yt.vd[0],Er&&(ee+=Yt.od[0])),0<(ee=0>ee?0:63<ee?63:ee)){var Ae=ee;0<Yt.wb&&(Ae=4<Yt.wb?Ae>>2:Ae>>1)>9-Yt.wb&&(Ae=9-Yt.wb),1>Ae&&(Ae=1),De.dd=Ae,De.tc=2*ee+Ae,De.ld=40<=ee?2:15<=ee?1:0}else De.tc=0;De.La=Er}}}ht=0}else qe(pe,6,"Frame setup failed"),ht=pe.a;if(ht=ht==0){if(ht){pe.$c=0,0<pe.Aa||(pe.Ic=lu);e:{ht=pe.Ic,Yt=4*(Ae=pe.za);var Ve=32*Ae,at=Ae+1,It=0<pe.L?Ae*(0<pe.Aa?2:1):0,Wt=(pe.Aa==2?2:1)*Ae;if((De=Yt+832+(Er=3*(16*ht+vl[pe.L])/2*Ve)+(Xr=pe.Fa!=null&&0<pe.Fa.length?pe.Kc.c*pe.Kc.i:0))!=De)ht=0;else{if(De>pe.Vb){if(pe.Vb=0,pe.Ec=ze(De),pe.Fc=0,pe.Ec==null){ht=qe(pe,1,"no memory during frame initialization.");break e}pe.Vb=De}De=pe.Ec,ee=pe.Fc,pe.Ac=De,pe.Bc=ee,ee+=Yt,pe.Gd=Ze(Ve,io),pe.Hd=0,pe.rb=Ze(at+1,Bi),pe.sb=1,pe.wa=It?Ze(It,xi):null,pe.Y=0,pe.D.Nb=0,pe.D.wa=pe.wa,pe.D.Y=pe.Y,0<pe.Aa&&(pe.D.Y+=Ae),be(!0),pe.oc=De,pe.pc=ee,ee+=832,pe.ya=Ze(Wt,Ha),pe.aa=0,pe.D.ya=pe.ya,pe.D.aa=pe.aa,pe.Aa==2&&(pe.D.aa+=Ae),pe.R=16*Ae,pe.B=8*Ae,Ae=(Ve=vl[pe.L])*pe.R,Ve=Ve/2*pe.B,pe.sa=De,pe.ta=ee+Ae,pe.qa=pe.sa,pe.ra=pe.ta+16*ht*pe.R+Ve,pe.Ha=pe.qa,pe.Ia=pe.ra+8*ht*pe.B+Ve,pe.$c=0,ee+=Er,pe.mb=Xr?De:null,pe.nb=Xr?ee:null,be(ee+Xr<=pe.Fc+pe.Vb),pn(pe),Xe(pe.Ac,pe.Bc,0,Yt),ht=1}}if(ht){if(We.ka=0,We.y=pe.sa,We.O=pe.ta,We.f=pe.qa,We.N=pe.ra,We.ea=pe.Ha,We.Vd=pe.Ia,We.fa=pe.R,We.Rc=pe.B,We.F=null,We.J=0,!au){for(ht=-255;255>=ht;++ht)Ns[255+ht]=0>ht?-ht:ht;for(ht=-1020;1020>=ht;++ht)Pl[1020+ht]=-128>ht?-128:127<ht?127:ht;for(ht=-112;112>=ht;++ht)uu[112+ht]=-16>ht?-16:15<ht?15:ht;for(ht=-255;510>=ht;++ht)$l[255+ht]=0>ht?0:255<ht?255:ht;au=1}Al=ri,yl=qn,Ms=Gn,Ws=mi,Is=ti,al=$n,bl=No,wl=Po,ol=rs,el=Ko,ms=Qo,Ss=ss,As=$o,Ts=Uo,Us=Ba,_l=oo,Il=ja,Sl=Pa,ml[0]=En,ml[1]=Xi,ml[2]=nr,ml[3]=Wr,ml[4]=Cn,ml[5]=oi,ml[6]=Nn,ml[7]=Qn,ml[8]=wi,ml[9]=Vi,pl[0]=xt,pl[1]=ga,pl[2]=tr,pl[3]=Lt,pl[4]=Ut,pl[5]=ur,pl[6]=Ct,Wl[0]=fa,Wl[1]=Pi,Wl[2]=Ea,Wl[3]=aa,Wl[4]=qi,Wl[5]=ha,Wl[6]=Ma,ht=1}else ht=0}ht&&(ht=function(Pt,_r){for(Pt.M=0;Pt.M<Pt.Va;++Pt.M){var Zr,Tr=Pt.Jc[Pt.M&Pt.Xb],Ar=Pt.m,Hr=Pt;for(Zr=0;Zr<Hr.za;++Zr){var tn=Ar,_n=Hr,gi=_n.Ac,Li=_n.Bc+4*Zr,oa=_n.zc,Wi=_n.ya[_n.aa+Zr];if(_n.Qa.Bb?Wi.$b=Fi(tn,_n.Pa.jb[0])?2+Fi(tn,_n.Pa.jb[2]):Fi(tn,_n.Pa.jb[1]):Wi.$b=0,_n.kc&&(Wi.Ad=Fi(tn,_n.Bd)),Wi.Za=!Fi(tn,145)+0,Wi.Za){var ro=Wi.Ob,xa=0;for(_n=0;4>_n;++_n){var Co,po=oa[0+_n];for(Co=0;4>Co;++Co){po=su[gi[Li+Co]][po];for(var Yo=ou[Fi(tn,po[0])];0<Yo;)Yo=ou[2*Yo+Fi(tn,po[Yo])];po=-Yo,gi[Li+Co]=po}Ue(ro,xa,gi,Li,4),xa+=4,oa[0+_n]=po}}else po=Fi(tn,156)?Fi(tn,128)?1:3:Fi(tn,163)?2:0,Wi.Ob[0]=po,Xe(gi,Li,po,4),Xe(oa,0,po,4);Wi.Dd=Fi(tn,142)?Fi(tn,114)?Fi(tn,183)?1:3:2:0}if(Hr.m.Ka)return qe(Pt,7,"Premature end-of-partition0 encountered.");for(;Pt.ja<Pt.za;++Pt.ja){if(Hr=Tr,tn=(Ar=Pt).rb[Ar.sb-1],gi=Ar.rb[Ar.sb+Ar.ja],Zr=Ar.ya[Ar.aa+Ar.ja],Li=Ar.kc?Zr.Ad:0)tn.la=gi.la=0,Zr.Za||(tn.Na=gi.Na=0),Zr.Hc=0,Zr.Gc=0,Zr.ia=0;else{var os,k;if(tn=gi,gi=Hr,Li=Ar.Pa.Xc,oa=Ar.ya[Ar.aa+Ar.ja],Wi=Ar.pb[oa.$b],_n=oa.ad,ro=0,xa=Ar.rb[Ar.sb-1],po=Co=0,Xe(_n,ro,0,384),oa.Za)var W=0,$=Li[3];else{Yo=ze(16);var re=tn.Na+xa.Na;if(re=Ql(gi,Li[1],re,Wi.Eb,0,Yo,0),tn.Na=xa.Na=(0<re)+0,1<re)Al(Yo,0,_n,ro);else{var se=Yo[0]+3>>3;for(Yo=0;256>Yo;Yo+=16)_n[ro+Yo]=se}W=1,$=Li[0]}var ke=15&tn.la,ft=15&xa.la;for(Yo=0;4>Yo;++Yo){var Kt=1&ft;for(se=k=0;4>se;++se)ke=ke>>1|(Kt=(re=Ql(gi,$,re=Kt+(1&ke),Wi.Sc,W,_n,ro))>W)<<7,k=k<<2|(3<re?3:1<re?2:_n[ro+0]!=0),ro+=16;ke>>=4,ft=ft>>1|Kt<<7,Co=(Co<<8|k)>>>0}for($=ke,W=ft>>4,os=0;4>os;os+=2){for(k=0,ke=tn.la>>4+os,ft=xa.la>>4+os,Yo=0;2>Yo;++Yo){for(Kt=1&ft,se=0;2>se;++se)re=Kt+(1&ke),ke=ke>>1|(Kt=0<(re=Ql(gi,Li[2],re,Wi.Qc,0,_n,ro)))<<3,k=k<<2|(3<re?3:1<re?2:_n[ro+0]!=0),ro+=16;ke>>=2,ft=ft>>1|Kt<<5}po|=k<<4*os,$|=ke<<4<<os,W|=(240&ft)<<os}tn.la=$,xa.la=W,oa.Hc=Co,oa.Gc=po,oa.ia=43690&po?0:Wi.ia,Li=!(Co|po)}if(0<Ar.L&&(Ar.wa[Ar.Y+Ar.ja]=Ar.gd[Zr.$b][Zr.Za],Ar.wa[Ar.Y+Ar.ja].La|=!Li),Hr.Ka)return qe(Pt,7,"Premature end-of-file encountered.")}if(pn(Pt),Ar=_r,Hr=1,Zr=(Tr=Pt).D,tn=0<Tr.L&&Tr.M>=Tr.zb&&Tr.M<=Tr.Va,Tr.Aa==0)e:{if(Zr.M=Tr.M,Zr.uc=tn,wo(Tr,Zr),Hr=1,Zr=(k=Tr.D).Nb,tn=(po=vl[Tr.L])*Tr.R,gi=po/2*Tr.B,Yo=16*Zr*Tr.R,se=8*Zr*Tr.B,Li=Tr.sa,oa=Tr.ta-tn+Yo,Wi=Tr.qa,_n=Tr.ra-gi+se,ro=Tr.Ha,xa=Tr.Ia-gi+se,ft=(ke=k.M)==0,Co=ke>=Tr.Va-1,Tr.Aa==2&&wo(Tr,k),k.uc)for(Kt=(re=Tr).D.M,be(re.D.uc),k=re.yb;k<re.Hb;++k){W=k,$=Kt;var qt=(ir=(Ia=re).D).Nb;os=Ia.R;var ir=ir.wa[ir.Y+W],bn=Ia.sa,Bn=Ia.ta+16*qt*os+16*W,ci=ir.dd,fi=ir.tc;if(fi!=0)if(be(3<=fi),Ia.L==1)0<W&&_l(bn,Bn,os,fi+4),ir.La&&Sl(bn,Bn,os,fi),0<$&&Us(bn,Bn,os,fi+4),ir.La&&Il(bn,Bn,os,fi);else{var Ji=Ia.B,ba=Ia.qa,Fa=Ia.ra+8*qt*Ji+8*W,Da=Ia.Ha,Ia=Ia.Ia+8*qt*Ji+8*W;qt=ir.ld,0<W&&(wl(bn,Bn,os,fi+4,ci,qt),el(ba,Fa,Da,Ia,Ji,fi+4,ci,qt)),ir.La&&(Ss(bn,Bn,os,fi,ci,qt),Ts(ba,Fa,Da,Ia,Ji,fi,ci,qt)),0<$&&(bl(bn,Bn,os,fi+4,ci,qt),ol(ba,Fa,Da,Ia,Ji,fi+4,ci,qt)),ir.La&&(ms(bn,Bn,os,fi,ci,qt),As(ba,Fa,Da,Ia,Ji,fi,ci,qt))}}if(Tr.ia&&alert("todo:DitherRow"),Ar.put!=null){if(k=16*ke,ke=16*(ke+1),ft?(Ar.y=Tr.sa,Ar.O=Tr.ta+Yo,Ar.f=Tr.qa,Ar.N=Tr.ra+se,Ar.ea=Tr.Ha,Ar.W=Tr.Ia+se):(k-=po,Ar.y=Li,Ar.O=oa,Ar.f=Wi,Ar.N=_n,Ar.ea=ro,Ar.W=xa),Co||(ke-=po),ke>Ar.o&&(ke=Ar.o),Ar.F=null,Ar.J=null,Tr.Fa!=null&&0<Tr.Fa.length&&k<ke&&(Ar.J=sn(Tr,Ar,k,ke-k),Ar.F=Tr.mb,Ar.F==null&&Ar.F.length==0)){Hr=qe(Tr,3,"Could not decode alpha data.");break e}k<Ar.j&&(po=Ar.j-k,k=Ar.j,be(!(1&po)),Ar.O+=Tr.R*po,Ar.N+=Tr.B*(po>>1),Ar.W+=Tr.B*(po>>1),Ar.F!=null&&(Ar.J+=Ar.width*po)),k<ke&&(Ar.O+=Ar.v,Ar.N+=Ar.v>>1,Ar.W+=Ar.v>>1,Ar.F!=null&&(Ar.J+=Ar.v),Ar.ka=k-Ar.j,Ar.U=Ar.va-Ar.v,Ar.T=ke-k,Hr=Ar.put(Ar))}Zr+1!=Tr.Ic||Co||(Ue(Tr.sa,Tr.ta-tn,Li,oa+16*Tr.R,tn),Ue(Tr.qa,Tr.ra-gi,Wi,_n+8*Tr.B,gi),Ue(Tr.Ha,Tr.Ia-gi,ro,xa+8*Tr.B,gi))}if(!Hr)return qe(Pt,6,"Output aborted.")}return 1}(pe,We)),We.bc!=null&&We.bc(We),ht&=1}return ht?(pe.cb=0,ht):0}function br(pe,We,ht,Yt,Er){Er=pe[We+ht+32*Yt]+(Er>>3),pe[We+ht+32*Yt]=-256&Er?0>Er?0:255:Er}function In(pe,We,ht,Yt,Er,Xr){br(pe,We,0,ht,Yt+Er),br(pe,We,1,ht,Yt+Xr),br(pe,We,2,ht,Yt-Xr),br(pe,We,3,ht,Yt-Er)}function Sr(pe){return(20091*pe>>16)+pe}function gn(pe,We,ht,Yt){var Er,Xr=0,De=ze(16);for(Er=0;4>Er;++Er){var ee=pe[We+0]+pe[We+8],Ae=pe[We+0]-pe[We+8],Ve=(35468*pe[We+4]>>16)-Sr(pe[We+12]),at=Sr(pe[We+4])+(35468*pe[We+12]>>16);De[Xr+0]=ee+at,De[Xr+1]=Ae+Ve,De[Xr+2]=Ae-Ve,De[Xr+3]=ee-at,Xr+=4,We++}for(Er=Xr=0;4>Er;++Er)ee=(pe=De[Xr+0]+4)+De[Xr+8],Ae=pe-De[Xr+8],Ve=(35468*De[Xr+4]>>16)-Sr(De[Xr+12]),br(ht,Yt,0,0,ee+(at=Sr(De[Xr+4])+(35468*De[Xr+12]>>16))),br(ht,Yt,1,0,Ae+Ve),br(ht,Yt,2,0,Ae-Ve),br(ht,Yt,3,0,ee-at),Xr++,Yt+=32}function $n(pe,We,ht,Yt){var Er=pe[We+0]+4,Xr=35468*pe[We+4]>>16,De=Sr(pe[We+4]),ee=35468*pe[We+1]>>16;In(ht,Yt,0,Er+De,pe=Sr(pe[We+1]),ee),In(ht,Yt,1,Er+Xr,pe,ee),In(ht,Yt,2,Er-Xr,pe,ee),In(ht,Yt,3,Er-De,pe,ee)}function qn(pe,We,ht,Yt,Er){gn(pe,We,ht,Yt),Er&&gn(pe,We+16,ht,Yt+4)}function Gn(pe,We,ht,Yt){yl(pe,We+0,ht,Yt,1),yl(pe,We+32,ht,Yt+128,1)}function mi(pe,We,ht,Yt){var Er;for(pe=pe[We+0]+4,Er=0;4>Er;++Er)for(We=0;4>We;++We)br(ht,Yt,We,Er,pe)}function ti(pe,We,ht,Yt){pe[We+0]&&Ws(pe,We+0,ht,Yt),pe[We+16]&&Ws(pe,We+16,ht,Yt+4),pe[We+32]&&Ws(pe,We+32,ht,Yt+128),pe[We+48]&&Ws(pe,We+48,ht,Yt+128+4)}function ri(pe,We,ht,Yt){var Er,Xr=ze(16);for(Er=0;4>Er;++Er){var De=pe[We+0+Er]+pe[We+12+Er],ee=pe[We+4+Er]+pe[We+8+Er],Ae=pe[We+4+Er]-pe[We+8+Er],Ve=pe[We+0+Er]-pe[We+12+Er];Xr[0+Er]=De+ee,Xr[8+Er]=De-ee,Xr[4+Er]=Ve+Ae,Xr[12+Er]=Ve-Ae}for(Er=0;4>Er;++Er)De=(pe=Xr[0+4*Er]+3)+Xr[3+4*Er],ee=Xr[1+4*Er]+Xr[2+4*Er],Ae=Xr[1+4*Er]-Xr[2+4*Er],Ve=pe-Xr[3+4*Er],ht[Yt+0]=De+ee>>3,ht[Yt+16]=Ve+Ae>>3,ht[Yt+32]=De-ee>>3,ht[Yt+48]=Ve-Ae>>3,Yt+=64}function li(pe,We,ht){var Yt,Er=We-32,Xr=_s,De=255-pe[Er-1];for(Yt=0;Yt<ht;++Yt){var ee,Ae=Xr,Ve=De+pe[We-1];for(ee=0;ee<ht;++ee)pe[We+ee]=Ae[Ve+pe[Er+ee]];We+=32}}function Xi(pe,We){li(pe,We,4)}function Pi(pe,We){li(pe,We,8)}function ga(pe,We){li(pe,We,16)}function tr(pe,We){var ht;for(ht=0;16>ht;++ht)Ue(pe,We+32*ht,pe,We-32,16)}function Lt(pe,We){var ht;for(ht=16;0<ht;--ht)Xe(pe,We,pe[We-1],16),We+=32}function yr(pe,We,ht){var Yt;for(Yt=0;16>Yt;++Yt)Xe(We,ht+32*Yt,pe,16)}function xt(pe,We){var ht,Yt=16;for(ht=0;16>ht;++ht)Yt+=pe[We-1+32*ht]+pe[We+ht-32];yr(Yt>>5,pe,We)}function Ut(pe,We){var ht,Yt=8;for(ht=0;16>ht;++ht)Yt+=pe[We-1+32*ht];yr(Yt>>4,pe,We)}function ur(pe,We){var ht,Yt=8;for(ht=0;16>ht;++ht)Yt+=pe[We+ht-32];yr(Yt>>4,pe,We)}function Ct(pe,We){yr(128,pe,We)}function dr(pe,We,ht){return pe+2*We+ht+2>>2}function nr(pe,We){var ht,Yt=We-32;for(Yt=new Uint8Array([dr(pe[Yt-1],pe[Yt+0],pe[Yt+1]),dr(pe[Yt+0],pe[Yt+1],pe[Yt+2]),dr(pe[Yt+1],pe[Yt+2],pe[Yt+3]),dr(pe[Yt+2],pe[Yt+3],pe[Yt+4])]),ht=0;4>ht;++ht)Ue(pe,We+32*ht,Yt,0,Yt.length)}function Wr(pe,We){var ht=pe[We-1],Yt=pe[We-1+32],Er=pe[We-1+64],Xr=pe[We-1+96];ra(pe,We+0,16843009*dr(pe[We-1-32],ht,Yt)),ra(pe,We+32,16843009*dr(ht,Yt,Er)),ra(pe,We+64,16843009*dr(Yt,Er,Xr)),ra(pe,We+96,16843009*dr(Er,Xr,Xr))}function En(pe,We){var ht,Yt=4;for(ht=0;4>ht;++ht)Yt+=pe[We+ht-32]+pe[We-1+32*ht];for(Yt>>=3,ht=0;4>ht;++ht)Xe(pe,We+32*ht,Yt,4)}function Cn(pe,We){var ht=pe[We-1+0],Yt=pe[We-1+32],Er=pe[We-1+64],Xr=pe[We-1-32],De=pe[We+0-32],ee=pe[We+1-32],Ae=pe[We+2-32],Ve=pe[We+3-32];pe[We+0+96]=dr(Yt,Er,pe[We-1+96]),pe[We+1+96]=pe[We+0+64]=dr(ht,Yt,Er),pe[We+2+96]=pe[We+1+64]=pe[We+0+32]=dr(Xr,ht,Yt),pe[We+3+96]=pe[We+2+64]=pe[We+1+32]=pe[We+0+0]=dr(De,Xr,ht),pe[We+3+64]=pe[We+2+32]=pe[We+1+0]=dr(ee,De,Xr),pe[We+3+32]=pe[We+2+0]=dr(Ae,ee,De),pe[We+3+0]=dr(Ve,Ae,ee)}function Nn(pe,We){var ht=pe[We+1-32],Yt=pe[We+2-32],Er=pe[We+3-32],Xr=pe[We+4-32],De=pe[We+5-32],ee=pe[We+6-32],Ae=pe[We+7-32];pe[We+0+0]=dr(pe[We+0-32],ht,Yt),pe[We+1+0]=pe[We+0+32]=dr(ht,Yt,Er),pe[We+2+0]=pe[We+1+32]=pe[We+0+64]=dr(Yt,Er,Xr),pe[We+3+0]=pe[We+2+32]=pe[We+1+64]=pe[We+0+96]=dr(Er,Xr,De),pe[We+3+32]=pe[We+2+64]=pe[We+1+96]=dr(Xr,De,ee),pe[We+3+64]=pe[We+2+96]=dr(De,ee,Ae),pe[We+3+96]=dr(ee,Ae,Ae)}function oi(pe,We){var ht=pe[We-1+0],Yt=pe[We-1+32],Er=pe[We-1+64],Xr=pe[We-1-32],De=pe[We+0-32],ee=pe[We+1-32],Ae=pe[We+2-32],Ve=pe[We+3-32];pe[We+0+0]=pe[We+1+64]=Xr+De+1>>1,pe[We+1+0]=pe[We+2+64]=De+ee+1>>1,pe[We+2+0]=pe[We+3+64]=ee+Ae+1>>1,pe[We+3+0]=Ae+Ve+1>>1,pe[We+0+96]=dr(Er,Yt,ht),pe[We+0+64]=dr(Yt,ht,Xr),pe[We+0+32]=pe[We+1+96]=dr(ht,Xr,De),pe[We+1+32]=pe[We+2+96]=dr(Xr,De,ee),pe[We+2+32]=pe[We+3+96]=dr(De,ee,Ae),pe[We+3+32]=dr(ee,Ae,Ve)}function Qn(pe,We){var ht=pe[We+0-32],Yt=pe[We+1-32],Er=pe[We+2-32],Xr=pe[We+3-32],De=pe[We+4-32],ee=pe[We+5-32],Ae=pe[We+6-32],Ve=pe[We+7-32];pe[We+0+0]=ht+Yt+1>>1,pe[We+1+0]=pe[We+0+64]=Yt+Er+1>>1,pe[We+2+0]=pe[We+1+64]=Er+Xr+1>>1,pe[We+3+0]=pe[We+2+64]=Xr+De+1>>1,pe[We+0+32]=dr(ht,Yt,Er),pe[We+1+32]=pe[We+0+96]=dr(Yt,Er,Xr),pe[We+2+32]=pe[We+1+96]=dr(Er,Xr,De),pe[We+3+32]=pe[We+2+96]=dr(Xr,De,ee),pe[We+3+64]=dr(De,ee,Ae),pe[We+3+96]=dr(ee,Ae,Ve)}function Vi(pe,We){var ht=pe[We-1+0],Yt=pe[We-1+32],Er=pe[We-1+64],Xr=pe[We-1+96];pe[We+0+0]=ht+Yt+1>>1,pe[We+2+0]=pe[We+0+32]=Yt+Er+1>>1,pe[We+2+32]=pe[We+0+64]=Er+Xr+1>>1,pe[We+1+0]=dr(ht,Yt,Er),pe[We+3+0]=pe[We+1+32]=dr(Yt,Er,Xr),pe[We+3+32]=pe[We+1+64]=dr(Er,Xr,Xr),pe[We+3+64]=pe[We+2+64]=pe[We+0+96]=pe[We+1+96]=pe[We+2+96]=pe[We+3+96]=Xr}function wi(pe,We){var ht=pe[We-1+0],Yt=pe[We-1+32],Er=pe[We-1+64],Xr=pe[We-1+96],De=pe[We-1-32],ee=pe[We+0-32],Ae=pe[We+1-32],Ve=pe[We+2-32];pe[We+0+0]=pe[We+2+32]=ht+De+1>>1,pe[We+0+32]=pe[We+2+64]=Yt+ht+1>>1,pe[We+0+64]=pe[We+2+96]=Er+Yt+1>>1,pe[We+0+96]=Xr+Er+1>>1,pe[We+3+0]=dr(ee,Ae,Ve),pe[We+2+0]=dr(De,ee,Ae),pe[We+1+0]=pe[We+3+32]=dr(ht,De,ee),pe[We+1+32]=pe[We+3+64]=dr(Yt,ht,De),pe[We+1+64]=pe[We+3+96]=dr(Er,Yt,ht),pe[We+1+96]=dr(Xr,Er,Yt)}function Ea(pe,We){var ht;for(ht=0;8>ht;++ht)Ue(pe,We+32*ht,pe,We-32,8)}function aa(pe,We){var ht;for(ht=0;8>ht;++ht)Xe(pe,We,pe[We-1],8),We+=32}function Ca(pe,We,ht){var Yt;for(Yt=0;8>Yt;++Yt)Xe(We,ht+32*Yt,pe,8)}function fa(pe,We){var ht,Yt=8;for(ht=0;8>ht;++ht)Yt+=pe[We+ht-32]+pe[We-1+32*ht];Ca(Yt>>4,pe,We)}function ha(pe,We){var ht,Yt=4;for(ht=0;8>ht;++ht)Yt+=pe[We+ht-32];Ca(Yt>>3,pe,We)}function qi(pe,We){var ht,Yt=4;for(ht=0;8>ht;++ht)Yt+=pe[We-1+32*ht];Ca(Yt>>3,pe,We)}function Ma(pe,We){Ca(128,pe,We)}function za(pe,We,ht){var Yt=pe[We-ht],Er=pe[We+0],Xr=3*(Er-Yt)+cu[1020+pe[We-2*ht]-pe[We+ht]],De=Xs[112+(Xr+4>>3)];pe[We-ht]=_s[255+Yt+Xs[112+(Xr+3>>3)]],pe[We+0]=_s[255+Er-De]}function la(pe,We,ht,Yt){var Er=pe[We+0],Xr=pe[We+ht];return fl[255+pe[We-2*ht]-pe[We-ht]]>Yt||fl[255+Xr-Er]>Yt}function ao(pe,We,ht,Yt){return 4*fl[255+pe[We-ht]-pe[We+0]]+fl[255+pe[We-2*ht]-pe[We+ht]]<=Yt}function ka(pe,We,ht,Yt,Er){var Xr=pe[We-3*ht],De=pe[We-2*ht],ee=pe[We-ht],Ae=pe[We+0],Ve=pe[We+ht],at=pe[We+2*ht],It=pe[We+3*ht];return 4*fl[255+ee-Ae]+fl[255+De-Ve]>Yt?0:fl[255+pe[We-4*ht]-Xr]<=Er&&fl[255+Xr-De]<=Er&&fl[255+De-ee]<=Er&&fl[255+It-at]<=Er&&fl[255+at-Ve]<=Er&&fl[255+Ve-Ae]<=Er}function Ba(pe,We,ht,Yt){var Er=2*Yt+1;for(Yt=0;16>Yt;++Yt)ao(pe,We+Yt,ht,Er)&&za(pe,We+Yt,ht)}function oo(pe,We,ht,Yt){var Er=2*Yt+1;for(Yt=0;16>Yt;++Yt)ao(pe,We+Yt*ht,1,Er)&&za(pe,We+Yt*ht,1)}function ja(pe,We,ht,Yt){var Er;for(Er=3;0<Er;--Er)Ba(pe,We+=4*ht,ht,Yt)}function Pa(pe,We,ht,Yt){var Er;for(Er=3;0<Er;--Er)oo(pe,We+=4,ht,Yt)}function Fr(pe,We,ht,Yt,Er,Xr,De,ee){for(Xr=2*Xr+1;0<Er--;){if(ka(pe,We,ht,Xr,De))if(la(pe,We,ht,ee))za(pe,We,ht);else{var Ae=pe,Ve=We,at=ht,It=Ae[Ve-2*at],Wt=Ae[Ve-at],Pt=Ae[Ve+0],_r=Ae[Ve+at],Zr=Ae[Ve+2*at],Tr=27*(Hr=cu[1020+3*(Pt-Wt)+cu[1020+It-_r]])+63>>7,Ar=18*Hr+63>>7,Hr=9*Hr+63>>7;Ae[Ve-3*at]=_s[255+Ae[Ve-3*at]+Hr],Ae[Ve-2*at]=_s[255+It+Ar],Ae[Ve-at]=_s[255+Wt+Tr],Ae[Ve+0]=_s[255+Pt-Tr],Ae[Ve+at]=_s[255+_r-Ar],Ae[Ve+2*at]=_s[255+Zr-Hr]}We+=Yt}}function Oa(pe,We,ht,Yt,Er,Xr,De,ee){for(Xr=2*Xr+1;0<Er--;){if(ka(pe,We,ht,Xr,De))if(la(pe,We,ht,ee))za(pe,We,ht);else{var Ae=pe,Ve=We,at=ht,It=Ae[Ve-at],Wt=Ae[Ve+0],Pt=Ae[Ve+at],_r=Xs[112+((Zr=3*(Wt-It))+4>>3)],Zr=Xs[112+(Zr+3>>3)],Tr=_r+1>>1;Ae[Ve-2*at]=_s[255+Ae[Ve-2*at]+Tr],Ae[Ve-at]=_s[255+It+Zr],Ae[Ve+0]=_s[255+Wt-_r],Ae[Ve+at]=_s[255+Pt-Tr]}We+=Yt}}function No(pe,We,ht,Yt,Er,Xr){Fr(pe,We,ht,1,16,Yt,Er,Xr)}function Po(pe,We,ht,Yt,Er,Xr){Fr(pe,We,1,ht,16,Yt,Er,Xr)}function Qo(pe,We,ht,Yt,Er,Xr){var De;for(De=3;0<De;--De)Oa(pe,We+=4*ht,ht,1,16,Yt,Er,Xr)}function ss(pe,We,ht,Yt,Er,Xr){var De;for(De=3;0<De;--De)Oa(pe,We+=4,1,ht,16,Yt,Er,Xr)}function rs(pe,We,ht,Yt,Er,Xr,De,ee){Fr(pe,We,Er,1,8,Xr,De,ee),Fr(ht,Yt,Er,1,8,Xr,De,ee)}function Ko(pe,We,ht,Yt,Er,Xr,De,ee){Fr(pe,We,1,Er,8,Xr,De,ee),Fr(ht,Yt,1,Er,8,Xr,De,ee)}function $o(pe,We,ht,Yt,Er,Xr,De,ee){Oa(pe,We+4*Er,Er,1,8,Xr,De,ee),Oa(ht,Yt+4*Er,Er,1,8,Xr,De,ee)}function Uo(pe,We,ht,Yt,Er,Xr,De,ee){Oa(pe,We+4,1,Er,8,Xr,De,ee),Oa(ht,Yt+4,1,Er,8,Xr,De,ee)}function Wo(){this.ba=new na,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Aa,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Go(){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 Oo(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ka(){this.ua=0,this.Wa=new Zi,this.vb=new Zi,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new xr,this.yc=new Nr}function Xa(){this.xb=this.a=0,this.l=new Ra,this.ca=new na,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Or,this.Pb=0,this.wd=new Or,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ka,this.ab=0,this.gc=Ze(4,Oo),this.Oc=0}function bo(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ra,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Eo(pe,We,ht,Yt,Er,Xr,De){for(pe=pe==null?0:pe[We+0],We=0;We<De;++We)Er[Xr+We]=pe+ht[Yt+We]&255,pe=Er[Xr+We]}function pt(pe,We,ht,Yt,Er,Xr,De){var ee;if(pe==null)Eo(null,null,ht,Yt,Er,Xr,De);else for(ee=0;ee<De;++ee)Er[Xr+ee]=pe[We+ee]+ht[Yt+ee]&255}function Nt(pe,We,ht,Yt,Er,Xr,De){if(pe==null)Eo(null,null,ht,Yt,Er,Xr,De);else{var ee,Ae=pe[We+0],Ve=Ae,at=Ae;for(ee=0;ee<De;++ee)Ve=at+(Ae=pe[We+ee])-Ve,at=ht[Yt+ee]+(-256&Ve?0>Ve?0:255:Ve)&255,Ve=Ae,Er[Xr+ee]=at}}function sn(pe,We,ht,Yt){var Er=We.width,Xr=We.o;if(be(pe!=null&&We!=null),0>ht||0>=Yt||ht+Yt>Xr)return null;if(!pe.Cc){if(pe.ga==null){var De;if(pe.ga=new bo,(De=pe.ga==null)||(De=We.width*We.o,be(pe.Gb.length==0),pe.Gb=ze(De),pe.Uc=0,pe.Gb==null?De=0:(pe.mb=pe.Gb,pe.nb=pe.Uc,pe.rc=null,De=1),De=!De),!De){De=pe.ga;var ee=pe.Fa,Ae=pe.P,Ve=pe.qc,at=pe.mb,It=pe.nb,Wt=Ae+1,Pt=Ve-1,_r=De.l;if(be(ee!=null&&at!=null&&We!=null),Do[0]=null,Do[1]=Eo,Do[2]=pt,Do[3]=Nt,De.ca=at,De.tb=It,De.c=We.width,De.i=We.height,be(0<De.c&&0<De.i),1>=Ve)We=0;else if(De.$a=ee[Ae+0]>>0&3,De.Z=ee[Ae+0]>>2&3,De.Lc=ee[Ae+0]>>4&3,Ae=ee[Ae+0]>>6&3,0>De.$a||1<De.$a||4<=De.Z||1<De.Lc||Ae)We=0;else if(_r.put=no,_r.ac=co,_r.bc=ca,_r.ma=De,_r.width=We.width,_r.height=We.height,_r.Da=We.Da,_r.v=We.v,_r.va=We.va,_r.j=We.j,_r.o=We.o,De.$a)e:{be(De.$a==1),We=qr();t:for(;;){if(We==null){We=0;break e}if(be(De!=null),De.mc=We,We.c=De.c,We.i=De.i,We.l=De.l,We.l.ma=De,We.l.width=De.c,We.l.height=De.i,We.a=0,ai(We.m,ee,Wt,Pt),!er(De.c,De.i,1,We,null))break t;if(We.ab==1&&We.gc[0].hc==3&&Bo(We.s)?(De.ic=1,ee=We.c*We.i,We.Ta=null,We.Ua=0,We.V=ze(ee),We.Ba=0,We.V==null?(We.a=1,We=0):We=1):(De.ic=0,We=Dr(We,De.c)),!We)break t;We=1;break e}De.mc=null,We=0}else We=Pt>=De.c*De.i;De=!We}if(De)return null;pe.ga.Lc!=1?pe.Ga=0:Yt=Xr-ht}be(pe.ga!=null),be(ht+Yt<=Xr);e:{if(We=(ee=pe.ga).c,Xr=ee.l.o,ee.$a==0){if(Wt=pe.rc,Pt=pe.Vc,_r=pe.Fa,Ae=pe.P+1+ht*We,Ve=pe.mb,at=pe.nb+ht*We,be(Ae<=pe.P+pe.qc),ee.Z!=0)for(be(Do[ee.Z]!=null),De=0;De<Yt;++De)Do[ee.Z](Wt,Pt,_r,Ae,Ve,at,We),Wt=Ve,Pt=at,at+=We,Ae+=We;else for(De=0;De<Yt;++De)Ue(Ve,at,_r,Ae,We),Wt=Ve,Pt=at,at+=We,Ae+=We;pe.rc=Wt,pe.Vc=Pt}else{if(be(ee.mc!=null),We=ht+Yt,be((De=ee.mc)!=null),be(We<=De.i),De.C>=We)We=1;else if(ee.ic||de(),ee.ic){ee=De.V,Wt=De.Ba,Pt=De.c;var Zr=De.i,Tr=(_r=1,Ae=De.$/Pt,Ve=De.$%Pt,at=De.m,It=De.s,De.$),Ar=Pt*Zr,Hr=Pt*We,tn=It.wc,_n=Tr<Hr?eo(It,Ve,Ae):null;be(Tr<=Ar),be(We<=Zr),be(Bo(It));t:for(;;){for(;!at.h&&Tr<Hr;){if(Ve&tn||(_n=eo(It,Ve,Ae)),be(_n!=null),ii(at),256>(Zr=ho(_n.G[0],_n.H[0],at)))ee[Wt+Tr]=Zr,++Tr,++Ve>=Pt&&(Ve=0,++Ae<=We&&!(Ae%16)&&Pr(De,Ae));else{if(!(280>Zr)){_r=0;break t}Zr=lo(Zr-256,at);var gi,Li=ho(_n.G[4],_n.H[4],at);if(ii(at),!(Tr>=(Li=Na(Pt,Li=lo(Li,at)))&&Ar-Tr>=Zr)){_r=0;break t}for(gi=0;gi<Zr;++gi)ee[Wt+Tr+gi]=ee[Wt+Tr+gi-Li];for(Tr+=Zr,Ve+=Zr;Ve>=Pt;)Ve-=Pt,++Ae<=We&&!(Ae%16)&&Pr(De,Ae);Tr<Hr&&Ve&tn&&(_n=eo(It,Ve,Ae))}be(at.h==Xn(at))}Pr(De,Ae>We?We:Ae);break t}!_r||at.h&&Tr<Ar?(_r=0,De.a=at.h?5:3):De.$=Tr,We=_r}else We=An(De,De.V,De.Ba,De.c,De.i,We,lr);if(!We){Yt=0;break e}}ht+Yt>=Xr&&(pe.Cc=1),Yt=1}if(!Yt)return null;if(pe.Cc&&((Yt=pe.ga)!=null&&(Yt.mc=null),pe.ga=null,0<pe.Ga))return alert("todo:WebPDequantizeLevels"),null}return pe.nb+ht*Er}function Mn(pe,We,ht,Yt,Er,Xr){for(;0<Er--;){var De,ee=pe,Ae=We+(ht?1:0),Ve=pe,at=We+(ht?0:3);for(De=0;De<Yt;++De){var It=Ve[at+4*De];It!=255&&(It*=32897,ee[Ae+4*De+0]=ee[Ae+4*De+0]*It>>23,ee[Ae+4*De+1]=ee[Ae+4*De+1]*It>>23,ee[Ae+4*De+2]=ee[Ae+4*De+2]*It>>23)}We+=Xr}}function hi(pe,We,ht,Yt,Er){for(;0<Yt--;){var Xr;for(Xr=0;Xr<ht;++Xr){var De=pe[We+2*Xr+0],ee=15&(Ve=pe[We+2*Xr+1]),Ae=4369*ee,Ve=(240&Ve|Ve>>4)*Ae>>16;pe[We+2*Xr+0]=(240&De|De>>4)*Ae>>16&240|(15&De|De<<4)*Ae>>16>>4&15,pe[We+2*Xr+1]=240&Ve|ee}We+=Er}}function ot(pe,We,ht,Yt,Er,Xr,De,ee){var Ae,Ve,at=255;for(Ve=0;Ve<Er;++Ve){for(Ae=0;Ae<Yt;++Ae){var It=pe[We+Ae];Xr[De+4*Ae]=It,at&=It}We+=ht,De+=ee}return at!=255}function ae(pe,We,ht,Yt,Er){var Xr;for(Xr=0;Xr<Er;++Xr)ht[Yt+Xr]=pe[We+Xr]>>8}function de(){Zl=Mn,iu=hi,tl=ot,xl=ae}function ye(pe,We,ht){Qr[pe]=function(Yt,Er,Xr,De,ee,Ae,Ve,at,It,Wt,Pt,_r,Zr,Tr,Ar,Hr,tn){var _n,gi=tn-1>>1,Li=ee[Ae+0]|Ve[at+0]<<16,oa=It[Wt+0]|Pt[_r+0]<<16;be(Yt!=null);var Wi=3*Li+oa+131074>>2;for(We(Yt[Er+0],255&Wi,Wi>>16,Zr,Tr),Xr!=null&&(Wi=3*oa+Li+131074>>2,We(Xr[De+0],255&Wi,Wi>>16,Ar,Hr)),_n=1;_n<=gi;++_n){var ro=ee[Ae+_n]|Ve[at+_n]<<16,xa=It[Wt+_n]|Pt[_r+_n]<<16,Co=Li+ro+oa+xa+524296,po=Co+2*(ro+oa)>>3;Wi=po+Li>>1,Li=(Co=Co+2*(Li+xa)>>3)+ro>>1,We(Yt[Er+2*_n-1],255&Wi,Wi>>16,Zr,Tr+(2*_n-1)*ht),We(Yt[Er+2*_n-0],255&Li,Li>>16,Zr,Tr+(2*_n-0)*ht),Xr!=null&&(Wi=Co+oa>>1,Li=po+xa>>1,We(Xr[De+2*_n-1],255&Wi,Wi>>16,Ar,Hr+(2*_n-1)*ht),We(Xr[De+2*_n+0],255&Li,Li>>16,Ar,Hr+(2*_n+0)*ht)),Li=ro,oa=xa}1&tn||(Wi=3*Li+oa+131074>>2,We(Yt[Er+tn-1],255&Wi,Wi>>16,Zr,Tr+(tn-1)*ht),Xr!=null&&(Wi=3*oa+Li+131074>>2,We(Xr[De+tn-1],255&Wi,Wi>>16,Ar,Hr+(tn-1)*ht)))}}function Ke(){Xo[ql]=Ls,Xo[yu]=Rl,Xo[du]=zl,Xo[Ll]=ll,Xo[Xl]=Tl,Xo[Ou]=Ml,Xo[hu]=Jl,Xo[bu]=Rl,Xo[Dl]=ll,Xo[Fl]=Tl,Xo[jl]=Ml}function ct(pe){return pe&~Hu?0>pe?0:255:pe>>Du}function Bt(pe,We){return ct((19077*pe>>8)+(26149*We>>8)-14234)}function Ir(pe,We,ht){return ct((19077*pe>>8)-(6419*We>>8)-(13320*ht>>8)+8708)}function Br(pe,We){return ct((19077*pe>>8)+(33050*We>>8)-17685)}function un(pe,We,ht,Yt,Er){Yt[Er+0]=Bt(pe,ht),Yt[Er+1]=Ir(pe,We,ht),Yt[Er+2]=Br(pe,We)}function zn(pe,We,ht,Yt,Er){Yt[Er+0]=Br(pe,We),Yt[Er+1]=Ir(pe,We,ht),Yt[Er+2]=Bt(pe,ht)}function Rn(pe,We,ht,Yt,Er){var Xr=Ir(pe,We,ht);We=Xr<<3&224|Br(pe,We)>>3,Yt[Er+0]=248&Bt(pe,ht)|Xr>>5,Yt[Er+1]=We}function Fn(pe,We,ht,Yt,Er){var Xr=240&Br(pe,We)|15;Yt[Er+0]=240&Bt(pe,ht)|Ir(pe,We,ht)>>4,Yt[Er+1]=Xr}function Ai(pe,We,ht,Yt,Er){Yt[Er+0]=255,un(pe,We,ht,Yt,Er+1)}function Di(pe,We,ht,Yt,Er){zn(pe,We,ht,Yt,Er),Yt[Er+3]=255}function ya(pe,We,ht,Yt,Er){un(pe,We,ht,Yt,Er),Yt[Er+3]=255}function Ga(pe,We){return 0>pe?0:pe>We?We:pe}function Ua(pe,We,ht){Qr[pe]=function(Yt,Er,Xr,De,ee,Ae,Ve,at,It){for(var Wt=at+(-2&It)*ht;at!=Wt;)We(Yt[Er+0],Xr[De+0],ee[Ae+0],Ve,at),We(Yt[Er+1],Xr[De+0],ee[Ae+0],Ve,at+ht),Er+=2,++De,++Ae,at+=2*ht;1&It&&We(Yt[Er+0],Xr[De+0],ee[Ae+0],Ve,at)}}function to(pe,We,ht){return ht==0?pe==0?We==0?6:5:We==0?4:0:ht}function go(pe,We,ht,Yt,Er){switch(pe>>>30){case 3:yl(We,ht,Yt,Er,0);break;case 2:al(We,ht,Yt,Er);break;case 1:Ws(We,ht,Yt,Er)}}function wo(pe,We){var ht,Yt,Er=We.M,Xr=We.Nb,De=pe.oc,ee=pe.pc+40,Ae=pe.oc,Ve=pe.pc+584,at=pe.oc,It=pe.pc+600;for(ht=0;16>ht;++ht)De[ee+32*ht-1]=129;for(ht=0;8>ht;++ht)Ae[Ve+32*ht-1]=129,at[It+32*ht-1]=129;for(0<Er?De[ee-1-32]=Ae[Ve-1-32]=at[It-1-32]=129:(Xe(De,ee-32-1,127,21),Xe(Ae,Ve-32-1,127,9),Xe(at,It-32-1,127,9)),Yt=0;Yt<pe.za;++Yt){var Wt=We.ya[We.aa+Yt];if(0<Yt){for(ht=-1;16>ht;++ht)Ue(De,ee+32*ht-4,De,ee+32*ht+12,4);for(ht=-1;8>ht;++ht)Ue(Ae,Ve+32*ht-4,Ae,Ve+32*ht+4,4),Ue(at,It+32*ht-4,at,It+32*ht+4,4)}var Pt=pe.Gd,_r=pe.Hd+Yt,Zr=Wt.ad,Tr=Wt.Hc;if(0<Er&&(Ue(De,ee-32,Pt[_r].y,0,16),Ue(Ae,Ve-32,Pt[_r].f,0,8),Ue(at,It-32,Pt[_r].ea,0,8)),Wt.Za){var Ar=De,Hr=ee-32+16;for(0<Er&&(Yt>=pe.za-1?Xe(Ar,Hr,Pt[_r].y[15],4):Ue(Ar,Hr,Pt[_r+1].y,0,4)),ht=0;4>ht;ht++)Ar[Hr+128+ht]=Ar[Hr+256+ht]=Ar[Hr+384+ht]=Ar[Hr+0+ht];for(ht=0;16>ht;++ht,Tr<<=2)Ar=De,Hr=ee+gl[ht],ml[Wt.Ob[ht]](Ar,Hr),go(Tr,Zr,16*+ht,Ar,Hr)}else if(Ar=to(Yt,Er,Wt.Ob[0]),pl[Ar](De,ee),Tr!=0)for(ht=0;16>ht;++ht,Tr<<=2)go(Tr,Zr,16*+ht,De,ee+gl[ht]);for(ht=Wt.Gc,Ar=to(Yt,Er,Wt.Dd),Wl[Ar](Ae,Ve),Wl[Ar](at,It),Tr=Zr,Ar=Ae,Hr=Ve,255&(Wt=ht>>0)&&(170&Wt?Ms(Tr,256,Ar,Hr):Is(Tr,256,Ar,Hr)),Wt=at,Tr=It,255&(ht>>=8)&&(170&ht?Ms(Zr,320,Wt,Tr):Is(Zr,320,Wt,Tr)),Er<pe.Ub-1&&(Ue(Pt[_r].y,0,De,ee+480,16),Ue(Pt[_r].f,0,Ae,Ve+224,8),Ue(Pt[_r].ea,0,at,It+224,8)),ht=8*Xr*pe.B,Pt=pe.sa,_r=pe.ta+16*Yt+16*Xr*pe.R,Zr=pe.qa,Wt=pe.ra+8*Yt+ht,Tr=pe.Ha,Ar=pe.Ia+8*Yt+ht,ht=0;16>ht;++ht)Ue(Pt,_r+ht*pe.R,De,ee+32*ht,16);for(ht=0;8>ht;++ht)Ue(Zr,Wt+ht*pe.B,Ae,Ve+32*ht,8),Ue(Tr,Ar+ht*pe.B,at,It+32*ht,8)}}function qo(pe,We,ht,Yt,Er,Xr,De,ee,Ae){var Ve=[0],at=[0],It=0,Wt=Ae!=null?Ae.kd:0,Pt=Ae!=null?Ae:new Go;if(pe==null||12>ht)return 7;Pt.data=pe,Pt.w=We,Pt.ha=ht,We=[We],ht=[ht],Pt.gb=[Pt.gb];e:{var _r=We,Zr=ht,Tr=Pt.gb;if(be(pe!=null),be(Zr!=null),be(Tr!=null),Tr[0]=0,12<=Zr[0]&&!Ne(pe,_r[0],"RIFF")){if(Ne(pe,_r[0]+8,"WEBP")){Tr=3;break e}var Ar=_o(pe,_r[0]+4);if(12>Ar||4294967286<Ar){Tr=3;break e}if(Wt&&Ar>Zr[0]-8){Tr=7;break e}Tr[0]=Ar,_r[0]+=12,Zr[0]-=12}Tr=0}if(Tr!=0)return Tr;for(Ar=0<Pt.gb[0],ht=ht[0];;){e:{var Hr=pe;Zr=We,Tr=ht;var tn=Ve,_n=at,gi=_r=[0];if((Wi=It=[It])[0]=0,8>Tr[0])Tr=7;else{if(!Ne(Hr,Zr[0],"VP8X")){if(_o(Hr,Zr[0]+4)!=10){Tr=3;break e}if(18>Tr[0]){Tr=7;break e}var Li=_o(Hr,Zr[0]+8),oa=1+wa(Hr,Zr[0]+12);if(2147483648<=oa*(Hr=1+wa(Hr,Zr[0]+15))){Tr=3;break e}gi!=null&&(gi[0]=Li),tn!=null&&(tn[0]=oa),_n!=null&&(_n[0]=Hr),Zr[0]+=18,Tr[0]-=18,Wi[0]=1}Tr=0}}if(It=It[0],_r=_r[0],Tr!=0)return Tr;if(Zr=!!(2&_r),!Ar&&It)return 3;if(Xr!=null&&(Xr[0]=!!(16&_r)),De!=null&&(De[0]=Zr),ee!=null&&(ee[0]=0),De=Ve[0],_r=at[0],It&&Zr&&Ae==null){Tr=0;break}if(4>ht){Tr=7;break}if(Ar&&It||!Ar&&!It&&!Ne(pe,We[0],"ALPH")){ht=[ht],Pt.na=[Pt.na],Pt.P=[Pt.P],Pt.Sa=[Pt.Sa];e:{Li=pe,Tr=We,Ar=ht;var Wi=Pt.gb;tn=Pt.na,_n=Pt.P,gi=Pt.Sa,oa=22,be(Li!=null),be(Ar!=null),Hr=Tr[0];var ro=Ar[0];for(be(tn!=null),be(gi!=null),tn[0]=null,_n[0]=null,gi[0]=0;;){if(Tr[0]=Hr,Ar[0]=ro,8>ro){Tr=7;break e}var xa=_o(Li,Hr+4);if(4294967286<xa){Tr=3;break e}var Co=8+xa+1&-2;if(oa+=Co,0<Wi&&oa>Wi){Tr=3;break e}if(!Ne(Li,Hr,"VP8 ")||!Ne(Li,Hr,"VP8L")){Tr=0;break e}if(ro[0]<Co){Tr=7;break e}Ne(Li,Hr,"ALPH")||(tn[0]=Li,_n[0]=Hr+8,gi[0]=xa),Hr+=Co,ro-=Co}}if(ht=ht[0],Pt.na=Pt.na[0],Pt.P=Pt.P[0],Pt.Sa=Pt.Sa[0],Tr!=0)break}ht=[ht],Pt.Ja=[Pt.Ja],Pt.xa=[Pt.xa];e:if(Wi=pe,Tr=We,Ar=ht,tn=Pt.gb[0],_n=Pt.Ja,gi=Pt.xa,Li=Tr[0],Hr=!Ne(Wi,Li,"VP8 "),oa=!Ne(Wi,Li,"VP8L"),be(Wi!=null),be(Ar!=null),be(_n!=null),be(gi!=null),8>Ar[0])Tr=7;else{if(Hr||oa){if(Wi=_o(Wi,Li+4),12<=tn&&Wi>tn-12){Tr=3;break e}if(Wt&&Wi>Ar[0]-8){Tr=7;break e}_n[0]=Wi,Tr[0]+=8,Ar[0]-=8,gi[0]=oa}else gi[0]=5<=Ar[0]&&Wi[Li+0]==47&&!(Wi[Li+4]>>5),_n[0]=Ar[0];Tr=0}if(ht=ht[0],Pt.Ja=Pt.Ja[0],Pt.xa=Pt.xa[0],We=We[0],Tr!=0)break;if(4294967286<Pt.Ja)return 3;if(ee==null||Zr||(ee[0]=Pt.xa?2:1),De=[De],_r=[_r],Pt.xa){if(5>ht){Tr=7;break}ee=De,Wt=_r,Zr=Xr,pe==null||5>ht?pe=0:5<=ht&&pe[We+0]==47&&!(pe[We+4]>>5)?(Ar=[0],Wi=[0],tn=[0],ai(_n=new Or,pe,We,ht),yo(_n,Ar,Wi,tn)?(ee!=null&&(ee[0]=Ar[0]),Wt!=null&&(Wt[0]=Wi[0]),Zr!=null&&(Zr[0]=tn[0]),pe=1):pe=0):pe=0}else{if(10>ht){Tr=7;break}ee=_r,pe==null||10>ht||!rr(pe,We+3,ht-3)?pe=0:(Wt=pe[We+0]|pe[We+1]<<8|pe[We+2]<<16,Zr=16383&(pe[We+7]<<8|pe[We+6]),pe=16383&(pe[We+9]<<8|pe[We+8]),1&Wt||3<(Wt>>1&7)||!(Wt>>4&1)||Wt>>5>=Pt.Ja||!Zr||!pe?pe=0:(De&&(De[0]=Zr),ee&&(ee[0]=pe),pe=1))}if(!pe)return 3;if(De=De[0],_r=_r[0],It&&(Ve[0]!=De||at[0]!=_r))return 3;Ae!=null&&(Ae[0]=Pt,Ae.offset=We-Ae.w,be(4294967286>We-Ae.w),be(Ae.offset==Ae.ha-ht));break}return Tr==0||Tr==7&&It&&Ae==null?(Xr!=null&&(Xr[0]|=Pt.na!=null&&0<Pt.na.length),Yt!=null&&(Yt[0]=De),Er!=null&&(Er[0]=_r),0):Tr}function Mo(pe,We,ht){var Yt=We.width,Er=We.height,Xr=0,De=0,ee=Yt,Ae=Er;if(We.Da=pe!=null&&0<pe.Da,We.Da&&(ee=pe.cd,Ae=pe.bd,Xr=pe.v,De=pe.j,11>ht||(Xr&=-2,De&=-2),0>Xr||0>De||0>=ee||0>=Ae||Xr+ee>Yt||De+Ae>Er))return 0;if(We.v=Xr,We.j=De,We.va=Xr+ee,We.o=De+Ae,We.U=ee,We.T=Ae,We.da=pe!=null&&0<pe.da,We.da){if(!va(ee,Ae,ht=[pe.ib],Xr=[pe.hb]))return 0;We.ib=ht[0],We.hb=Xr[0]}return We.ob=pe!=null&&pe.ob,We.Kb=pe==null||!pe.Sd,We.da&&(We.ob=We.ib<3*Yt/4&&We.hb<3*Er/4,We.Kb=0),1}function $i(pe){if(pe==null)return 2;if(11>pe.S){var We=pe.f.RGBA;We.fb+=(pe.height-1)*We.A,We.A=-We.A}else We=pe.f.kb,pe=pe.height,We.O+=(pe-1)*We.fa,We.fa=-We.fa,We.N+=(pe-1>>1)*We.Ab,We.Ab=-We.Ab,We.W+=(pe-1>>1)*We.Db,We.Db=-We.Db,We.F!=null&&(We.J+=(pe-1)*We.lb,We.lb=-We.lb);return 0}function To(pe,We,ht,Yt){if(Yt==null||0>=pe||0>=We)return 2;if(ht!=null){if(ht.Da){var Er=ht.cd,Xr=ht.bd,De=-2&ht.v,ee=-2&ht.j;if(0>De||0>ee||0>=Er||0>=Xr||De+Er>pe||ee+Xr>We)return 2;pe=Er,We=Xr}if(ht.da){if(!va(pe,We,Er=[ht.ib],Xr=[ht.hb]))return 2;pe=Er[0],We=Xr[0]}}Yt.width=pe,Yt.height=We;e:{var Ae=Yt.width,Ve=Yt.height;if(pe=Yt.S,0>=Ae||0>=Ve||!(pe>=ql&&13>pe))pe=2;else{if(0>=Yt.Rd&&Yt.sd==null){De=Xr=Er=We=0;var at=(ee=Ae*mu[pe])*Ve;if(11>pe||(Xr=(Ve+1)/2*(We=(Ae+1)/2),pe==12&&(De=(Er=Ae)*Ve)),(Ve=ze(at+2*Xr+De))==null){pe=1;break e}Yt.sd=Ve,11>pe?((Ae=Yt.f.RGBA).eb=Ve,Ae.fb=0,Ae.A=ee,Ae.size=at):((Ae=Yt.f.kb).y=Ve,Ae.O=0,Ae.fa=ee,Ae.Fd=at,Ae.f=Ve,Ae.N=0+at,Ae.Ab=We,Ae.Cd=Xr,Ae.ea=Ve,Ae.W=0+at+Xr,Ae.Db=We,Ae.Ed=Xr,pe==12&&(Ae.F=Ve,Ae.J=0+at+2*Xr),Ae.Tc=De,Ae.lb=Er)}if(We=1,Er=Yt.S,Xr=Yt.width,De=Yt.height,Er>=ql&&13>Er)if(11>Er)pe=Yt.f.RGBA,We&=(ee=Math.abs(pe.A))*(De-1)+Xr<=pe.size,We&=ee>=Xr*mu[Er],We&=pe.eb!=null;else{pe=Yt.f.kb,ee=(Xr+1)/2,at=(De+1)/2,Ae=Math.abs(pe.fa),Ve=Math.abs(pe.Ab);var It=Math.abs(pe.Db),Wt=Math.abs(pe.lb),Pt=Wt*(De-1)+Xr;We&=Ae*(De-1)+Xr<=pe.Fd,We&=Ve*(at-1)+ee<=pe.Cd,We=(We&=It*(at-1)+ee<=pe.Ed)&Ae>=Xr&Ve>=ee&It>=ee,We&=pe.y!=null,We&=pe.f!=null,We&=pe.ea!=null,Er==12&&(We&=Wt>=Xr,We&=Pt<=pe.Tc,We&=pe.F!=null)}else We=0;pe=We?0:2}}return pe!=0||ht!=null&&ht.fd&&(pe=$i(Yt)),pe}var fo=64,ts=[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],Jo=24,zo=32,is=8,Rs=[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];Qi("Predictor0","PredictorAdd0"),Qr.Predictor0=function(){return 4278190080},Qr.Predictor1=function(pe){return pe},Qr.Predictor2=function(pe,We,ht){return We[ht+0]},Qr.Predictor3=function(pe,We,ht){return We[ht+1]},Qr.Predictor4=function(pe,We,ht){return We[ht-1]},Qr.Predictor5=function(pe,We,ht){return Wa(Wa(pe,We[ht+1]),We[ht+0])},Qr.Predictor6=function(pe,We,ht){return Wa(pe,We[ht-1])},Qr.Predictor7=function(pe,We,ht){return Wa(pe,We[ht+0])},Qr.Predictor8=function(pe,We,ht){return Wa(We[ht-1],We[ht+0])},Qr.Predictor9=function(pe,We,ht){return Wa(We[ht+0],We[ht+1])},Qr.Predictor10=function(pe,We,ht){return Wa(Wa(pe,We[ht-1]),Wa(We[ht+0],We[ht+1]))},Qr.Predictor11=function(pe,We,ht){var Yt=We[ht+0];return 0>=so(Yt>>24&255,pe>>24&255,(We=We[ht-1])>>24&255)+so(Yt>>16&255,pe>>16&255,We>>16&255)+so(Yt>>8&255,pe>>8&255,We>>8&255)+so(255&Yt,255&pe,255&We)?Yt:pe},Qr.Predictor12=function(pe,We,ht){var Yt=We[ht+0];return(Ao((pe>>24&255)+(Yt>>24&255)-((We=We[ht-1])>>24&255))<<24|Ao((pe>>16&255)+(Yt>>16&255)-(We>>16&255))<<16|Ao((pe>>8&255)+(Yt>>8&255)-(We>>8&255))<<8|Ao((255&pe)+(255&Yt)-(255&We)))>>>0},Qr.Predictor13=function(pe,We,ht){var Yt=We[ht-1];return(es((pe=Wa(pe,We[ht+0]))>>24&255,Yt>>24&255)<<24|es(pe>>16&255,Yt>>16&255)<<16|es(pe>>8&255,Yt>>8&255)<<8|es(pe>>0&255,Yt>>0&255))>>>0};var gs=Qr.PredictorAdd0;Qr.PredictorAdd1=So,Qi("Predictor2","PredictorAdd2"),Qi("Predictor3","PredictorAdd3"),Qi("Predictor4","PredictorAdd4"),Qi("Predictor5","PredictorAdd5"),Qi("Predictor6","PredictorAdd6"),Qi("Predictor7","PredictorAdd7"),Qi("Predictor8","PredictorAdd8"),Qi("Predictor9","PredictorAdd9"),Qi("Predictor10","PredictorAdd10"),Qi("Predictor11","PredictorAdd11"),Qi("Predictor12","PredictorAdd12"),Qi("Predictor13","PredictorAdd13");var ps=Qr.PredictorAdd2;dn("ColorIndexInverseTransform","MapARGB","32b",function(pe){return pe>>8&255},function(pe){return pe}),dn("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(pe){return pe},function(pe){return pe>>8&255});var Ps,Es=Qr.ColorIndexInverseTransform,Vs=Qr.MapARGB,Ks=Qr.VP8LColorIndexInverseTransformAlpha,Gs=Qr.MapAlpha,ws=Qr.VP8LPredictorsAdd=[];ws.length=16,(Qr.VP8LPredictors=[]).length=16,(Qr.VP8LPredictorsAdd_C=[]).length=16,(Qr.VP8LPredictors_C=[]).length=16;var Os,$s,nl,il,hl,Nl,Al,yl,al,Ms,Ws,Is,bl,wl,ol,el,ms,Ss,As,Ts,Us,_l,Il,Sl,Zl,iu,tl,xl,Ns=ze(511),Pl=ze(2041),uu=ze(225),$l=ze(767),au=0,cu=Pl,Xs=uu,_s=$l,fl=Ns,ql=0,yu=1,du=2,Ll=3,Xl=4,Ou=5,hu=6,bu=7,Dl=8,Fl=9,jl=10,Hl=[2,3,7],Fs=[3,3,11],rl=[280,256,256,256,40],Kl=[0,1,1,1,0],sl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Yl=[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],_u=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],wu=8,Bl=[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],El=[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],Ql=null,Iu=[[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]],Lu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ou=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],eu=[[[[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]]]],su=[[[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]]],Ul=[[[[255,255,255,255,255,255,255,255,255,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]]]],fu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],pl=[],ml=[],Wl=[],as=1,uo=2,Do=[],Xo=[];ye("UpsampleRgbLinePair",un,3),ye("UpsampleBgrLinePair",zn,3),ye("UpsampleRgbaLinePair",ya,4),ye("UpsampleBgraLinePair",Di,4),ye("UpsampleArgbLinePair",Ai,4),ye("UpsampleRgba4444LinePair",Fn,2),ye("UpsampleRgb565LinePair",Rn,2);var Ls=Qr.UpsampleRgbLinePair,zl=Qr.UpsampleBgrLinePair,Rl=Qr.UpsampleRgbaLinePair,ll=Qr.UpsampleBgraLinePair,Tl=Qr.UpsampleArgbLinePair,Ml=Qr.UpsampleRgba4444LinePair,Jl=Qr.UpsampleRgb565LinePair,Ys=16,tu=1<<Ys-1,Su=-227,pu=482,Du=6,Hu=(256<<Du)-1,ls=0,Zo=ze(256),ds=ze(256),Cs=ze(256),js=ze(256),vs=ze(pu-Su),ul=ze(pu-Su);Ua("YuvToRgbRow",un,3),Ua("YuvToBgrRow",zn,3),Ua("YuvToRgbaRow",ya,4),Ua("YuvToBgraRow",Di,4),Ua("YuvToArgbRow",Ai,4),Ua("YuvToRgba4444Row",Fn,2),Ua("YuvToRgb565Row",Rn,2);var gl=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],vl=[0,2,8],ru=[8,7,6,4,4,2,2,2,1,1,1,1],lu=1;this.WebPDecodeRGBA=function(pe,We,ht,Yt,Er){var Xr=yu,De=new Wo,ee=new na;De.ba=ee,ee.S=Xr,ee.width=[ee.width],ee.height=[ee.height];var Ae=ee.width,Ve=ee.height,at=new Sa;if(at==null||pe==null)var It=2;else be(at!=null),It=qo(pe,We,ht,at.width,at.height,at.Pd,at.Qd,at.format,null);if(It!=0?Ae=0:(Ae!=null&&(Ae[0]=at.width[0]),Ve!=null&&(Ve[0]=at.height[0]),Ae=1),Ae){ee.width=ee.width[0],ee.height=ee.height[0],Yt!=null&&(Yt[0]=ee.width),Er!=null&&(Er[0]=ee.height);e:{if(Yt=new Ra,(Er=new Go).data=pe,Er.w=We,Er.ha=ht,Er.kd=1,We=[0],be(Er!=null),((pe=qo(Er.data,Er.w,Er.ha,null,null,null,We,null,Er))==0||pe==7)&&We[0]&&(pe=4),(We=pe)==0){if(be(De!=null),Yt.data=Er.data,Yt.w=Er.w+Er.offset,Yt.ha=Er.ha-Er.offset,Yt.put=no,Yt.ac=co,Yt.bc=ca,Yt.ma=De,Er.xa){if((pe=qr())==null){De=1;break e}if(function(Wt,Pt){var _r=[0],Zr=[0],Tr=[0];t:for(;;){if(Wt==null)return 0;if(Pt==null)return Wt.a=2,0;if(Wt.l=Pt,Wt.a=0,ai(Wt.m,Pt.data,Pt.w,Pt.ha),!yo(Wt.m,_r,Zr,Tr)){Wt.a=3;break t}if(Wt.xb=uo,Pt.width=_r[0],Pt.height=Zr[0],!er(_r[0],Zr[0],1,Wt,null))break t;return 1}return be(Wt.a!=0),0}(pe,Yt)){if(Yt=(We=To(Yt.width,Yt.height,De.Oa,De.ba))==0){t:{Yt=pe;r:for(;;){if(Yt==null){Yt=0;break t}if(be(Yt.s.yc!=null),be(Yt.s.Ya!=null),be(0<Yt.s.Wb),be((ht=Yt.l)!=null),be((Er=ht.ma)!=null),Yt.xb!=0){if(Yt.ca=Er.ba,Yt.tb=Er.tb,be(Yt.ca!=null),!Mo(Er.Oa,ht,Ll)){Yt.a=2;break r}if(!Dr(Yt,ht.width))break r;if(ht.da)break r;if((ht.da||pa(Yt.ca.S))&&de(),11>Yt.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Yt.ca.f.kb.F!=null&&de()),Yt.Pb&&0<Yt.s.ua&&Yt.s.vb.X==null&&!bi(Yt.s.vb,Yt.s.Wa.Xa)){Yt.a=1;break r}Yt.xb=0}if(!An(Yt,Yt.V,Yt.Ba,Yt.c,Yt.i,ht.o,Va))break r;Er.Dc=Yt.Ma,Yt=1;break t}be(Yt.a!=0),Yt=0}Yt=!Yt}Yt&&(We=pe.a)}else We=pe.a}else{if((pe=new ia)==null){De=1;break e}if(pe.Fa=Er.na,pe.P=Er.P,pe.qc=Er.Sa,Rr(pe,Yt)){if((We=To(Yt.width,Yt.height,De.Oa,De.ba))==0){if(pe.Aa=0,ht=De.Oa,be((Er=pe)!=null),ht!=null){if(0<(Ae=0>(Ae=ht.Md)?0:100<Ae?255:255*Ae/100)){for(Ve=at=0;4>Ve;++Ve)12>(It=Er.pb[Ve]).lc&&(It.ia=Ae*ru[0>It.lc?0:It.lc]>>3),at|=It.ia;at&&(alert("todo:VP8InitRandom"),Er.ia=1)}Er.Ga=ht.Id,100<Er.Ga?Er.Ga=100:0>Er.Ga&&(Er.Ga=0)}Vr(pe,Yt)||(We=pe.a)}}else We=pe.a}We==0&&De.Oa!=null&&De.Oa.fd&&(We=$i(De.ba))}De=We}Xr=De!=0?null:11>Xr?ee.f.RGBA.eb:ee.f.kb.y}else Xr=null;return Xr};var mu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Gt(Yi,Qr){for(var On="",zr=0;zr<4;zr++)On+=String.fromCharCode(Yi[Qr++]);return On}function Mr(Yi,Qr){return(Yi[Qr+0]<<0|Yi[Qr+1]<<8|Yi[Qr+2]<<16)>>>0}function Lr(Yi,Qr){return(Yi[Qr+0]<<0|Yi[Qr+1]<<8|Yi[Qr+2]<<16|Yi[Qr+3]<<24)>>>0}new ut;var Gr=[0],Ht=[0],hn=[],or=new ut,vn=Qe,nn=function(Yi,Qr){var On={},zr=0,fr=!1,Nr=0,Qt=0;if(On.frames=[],!function(Or,wn,Xn,Zn){for(var ii=0;ii<Zn;ii++)if(Or[wn+ii]!=Xn.charCodeAt(ii))return!0;return!1}(Yi,Qr,"RIFF",4)){var xr,Jr;for(Lr(Yi,Qr+=4),Qr+=8;Qr<Yi.length;){var Kr=Gt(Yi,Qr),en=Lr(Yi,Qr+=4);Qr+=4;var ai=en+(1&en);switch(Kr){case"VP8 ":case"VP8L":On.frames[zr]===void 0&&(On.frames[zr]={}),(ln=On.frames[zr]).src_off=fr?Qt:Qr-8,ln.src_size=Nr+en+8,zr++,fr&&(fr=!1,Nr=0,Qt=0);break;case"VP8X":(ln=On.header={}).feature_flags=Yi[Qr];var Yn=Qr+4;ln.canvas_width=1+Mr(Yi,Yn),Yn+=3,ln.canvas_height=1+Mr(Yi,Yn),Yn+=3;break;case"ALPH":fr=!0,Nr=ai+8,Qt=Qr-8;break;case"ANIM":(ln=On.header).bgcolor=Lr(Yi,Qr),Yn=Qr+4,ln.loop_count=(xr=Yi)[(Jr=Yn)+0]<<0|xr[Jr+1]<<8,Yn+=2;break;case"ANMF":var Si,ln;(ln=On.frames[zr]={}).offset_x=2*Mr(Yi,Qr),Qr+=3,ln.offset_y=2*Mr(Yi,Qr),Qr+=3,ln.width=1+Mr(Yi,Qr),Qr+=3,ln.height=1+Mr(Yi,Qr),Qr+=3,ln.duration=Mr(Yi,Qr),Qr+=3,Si=Yi[Qr++],ln.dispose=1&Si,ln.blend=Si>>1&1}Kr!="ANMF"&&(Qr+=ai)}return On}}(vn,0);nn.response=vn,nn.rgbaoutput=!0,nn.dataurl=!1;var Ur=nn.header?nn.header:null,ni=nn.frames?nn.frames:null;if(Ur){Ur.loop_counter=Ur.loop_count,Gr=[Ur.canvas_height],Ht=[Ur.canvas_width];for(var Oi=0;Oi<ni.length&&ni[Oi].blend!=0;Oi++);}var Hi=ni[0],Ri=or.WebPDecodeRGBA(vn,Hi.src_off,Hi.src_size,Ht,Gr);Hi.rgba=Ri,Hi.imgwidth=Ht[0],Hi.imgheight=Gr[0];for(var Ni=0;Ni<Ht[0]*Gr[0]*4;Ni++)hn[Ni]=Ri[Ni];return this.width=Ht,this.height=Gr,this.data=hn,this}!function(Qe){var be=function(){return typeof v.b=="function"},Ne=function(Ht,hn,or,vn){var nn=4,Ur=Ze;switch(vn){case Qe.image_compression.FAST:nn=1,Ur=ze;break;case Qe.image_compression.MEDIUM:nn=6,Ur=bt;break;case Qe.image_compression.SLOW:nn=9,Ur=ut}Ht=Ue(Ht,hn,or,Ur);var ni=Object(v.b)(Ht,{level:nn});return Qe.__addimage__.arrayBufferToBinaryString(ni)},Ue=function(Ht,hn,or,vn){for(var nn,Ur,ni,Oi=Ht.length/hn,Hi=new Uint8Array(Ht.length+Oi),Ri=Mr(),Ni=0;Ni<Oi;Ni+=1){if(ni=Ni*hn,nn=Ht.subarray(ni,ni+hn),vn)Hi.set(vn(nn,or,Ur),ni+Ni);else{for(var Yi,Qr=Ri.length,On=[];Yi<Qr;Yi+=1)On[Yi]=Ri[Yi](nn,or,Ur);var zr=Lr(On.concat());Hi.set(On[zr],ni+Ni)}Ur=nn}return Hi},Xe=function(Ht){var hn=Array.apply([],Ht);return hn.unshift(0),hn},ze=function(Ht,hn){var or,vn=[],nn=Ht.length;vn[0]=1;for(var Ur=0;Ur<nn;Ur+=1)or=Ht[Ur-hn]||0,vn[Ur+1]=Ht[Ur]-or+256&255;return vn},Ze=function(Ht,hn,or){var vn,nn=[],Ur=Ht.length;nn[0]=2;for(var ni=0;ni<Ur;ni+=1)vn=or&&or[ni]||0,nn[ni+1]=Ht[ni]-vn+256&255;return nn},bt=function(Ht,hn,or){var vn,nn,Ur=[],ni=Ht.length;Ur[0]=3;for(var Oi=0;Oi<ni;Oi+=1)vn=Ht[Oi-hn]||0,nn=or&&or[Oi]||0,Ur[Oi+1]=Ht[Oi]+256-(vn+nn>>>1)&255;return Ur},ut=function(Ht,hn,or){var vn,nn,Ur,ni,Oi=[],Hi=Ht.length;Oi[0]=4;for(var Ri=0;Ri<Hi;Ri+=1)vn=Ht[Ri-hn]||0,nn=or&&or[Ri]||0,Ur=or&&or[Ri-hn]||0,ni=Gt(vn,nn,Ur),Oi[Ri+1]=Ht[Ri]-ni+256&255;return Oi},Gt=function(Ht,hn,or){if(Ht===hn&&hn===or)return Ht;var vn=Math.abs(hn-or),nn=Math.abs(Ht-or),Ur=Math.abs(Ht+hn-or-or);return vn<=nn&&vn<=Ur?Ht:nn<=Ur?hn:or},Mr=function(){return[Xe,ze,Ze,bt,ut]},Lr=function(Ht){var hn=Ht.map(function(or){return or.reduce(function(vn,nn){return vn+Math.abs(nn)},0)});return hn.indexOf(Math.min.apply(null,hn))};Qe.processPNG=function(Gr,Ht,hn,or){var vn,nn,Ur,ni,Oi,Hi,Ri,Ni,Yi,Qr,On,zr,fr,Nr,Qt,xr=this.decode.FLATE_DECODE,Jr="";if(this.__addimage__.isArrayBuffer(Gr)&&(Gr=new Uint8Array(Gr)),this.__addimage__.isArrayBufferView(Gr)){if(Gr=(Ur=new Ye(Gr)).imgData,nn=Ur.bits,vn=Ur.colorSpace,Oi=Ur.colors,[4,6].indexOf(Ur.colorType)!==-1){if(Ur.bits===8){Yi=(Ni=Ur.pixelBitlength==32?new Uint32Array(Ur.decodePixels().buffer):Ur.pixelBitlength==16?new Uint16Array(Ur.decodePixels().buffer):new Uint8Array(Ur.decodePixels().buffer)).length,On=new Uint8Array(Yi*Ur.colors),Qr=new Uint8Array(Yi);var Kr,en=Ur.pixelBitlength-Ur.bits;for(Nr=0,Qt=0;Nr<Yi;Nr++){for(fr=Ni[Nr],Kr=0;Kr<en;)On[Qt++]=fr>>>Kr&255,Kr+=Ur.bits;Qr[Nr]=fr>>>Kr&255}}if(Ur.bits===16){Yi=(Ni=new Uint32Array(Ur.decodePixels().buffer)).length,On=new Uint8Array(Yi*(32/Ur.pixelBitlength)*Ur.colors),Qr=new Uint8Array(Yi*(32/Ur.pixelBitlength)),zr=Ur.colors>1,Nr=0,Qt=0;for(var ai=0;Nr<Yi;)fr=Ni[Nr++],On[Qt++]=fr>>>0&255,zr&&(On[Qt++]=fr>>>16&255,fr=Ni[Nr++],On[Qt++]=fr>>>0&255),Qr[ai++]=fr>>>16&255;nn=8}or!==Qe.image_compression.NONE&&be()?(Gr=Ne(On,Ur.width*Ur.colors,Ur.colors,or),Ri=Ne(Qr,Ur.width,1,or)):(Gr=On,Ri=Qr,xr=void 0)}if(Ur.colorType===3&&(vn=this.color_spaces.INDEXED,Hi=Ur.palette,Ur.transparency.indexed)){var Yn=Ur.transparency.indexed,Si=0;for(Nr=0,Yi=Yn.length;Nr<Yi;++Nr)Si+=Yn[Nr];if((Si/=255)===Yi-1&&Yn.indexOf(0)!==-1)ni=[Yn.indexOf(0)];else if(Si!==Yi){for(Ni=Ur.decodePixels(),Qr=new Uint8Array(Ni.length),Nr=0,Yi=Ni.length;Nr<Yi;Nr++)Qr[Nr]=Yn[Ni[Nr]];Ri=Ne(Qr,Ur.width,1)}}var ln=function(Or){var wn;switch(Or){case Qe.image_compression.FAST:wn=11;break;case Qe.image_compression.MEDIUM:wn=13;break;case Qe.image_compression.SLOW:wn=14;break;default:wn=12}return wn}(or);return xr===this.decode.FLATE_DECODE&&(Jr="/Predictor "+ln+" "),Jr+="/Colors "+Oi+" /BitsPerComponent "+nn+" /Columns "+Ur.width,(this.__addimage__.isArrayBuffer(Gr)||this.__addimage__.isArrayBufferView(Gr))&&(Gr=this.__addimage__.arrayBufferToBinaryString(Gr)),(Ri&&this.__addimage__.isArrayBuffer(Ri)||this.__addimage__.isArrayBufferView(Ri))&&(Ri=this.__addimage__.arrayBufferToBinaryString(Ri)),{alias:hn,data:Gr,index:Ht,filter:xr,decodeParameters:Jr,transparency:ni,palette:Hi,sMask:Ri,predictor:ln,width:Ur.width,height:Ur.height,bitsPerComponent:nn,colorSpace:vn}}}}(K.API),function(Qe){Qe.processGIF89A=function(be,Ne,Ue,Xe){var ze=new it(be),Ze=ze.width,bt=ze.height,ut=[];ze.decodeAndBlitFrameRGBA(0,ut);var Gt={data:ut,width:Ze,height:bt},Mr=new _t(100).encode(Gt,100);return Qe.processJPEG.call(this,Mr,Ne,Ue,Xe)},Qe.processGIF87A=Qe.processGIF89A}(K.API),vr.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 Qe=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Qe);for(var be=0;be<Qe;be++){var Ne=this.datav.getUint8(this.pos++,!0),Ue=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0);this.palette[be]={red:Xe,green:Ue,blue:Ne,quad:ze}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},vr.prototype.parseBGR=function(){this.pos=this.offset;try{var Qe="bit"+this.bitPP,be=this.width*this.height*4;this.data=new Uint8Array(be),this[Qe]()}catch(Ne){h.log("bit decode error:"+Ne)}},vr.prototype.bit1=function(){var Qe,be=Math.ceil(this.width/8),Ne=be%4;for(Qe=this.height-1;Qe>=0;Qe--){for(var Ue=this.bottom_up?Qe:this.height-1-Qe,Xe=0;Xe<be;Xe++)for(var ze=this.datav.getUint8(this.pos++,!0),Ze=Ue*this.width*4+8*Xe*4,bt=0;bt<8&&8*Xe+bt<this.width;bt++){var ut=this.palette[ze>>7-bt&1];this.data[Ze+4*bt]=ut.blue,this.data[Ze+4*bt+1]=ut.green,this.data[Ze+4*bt+2]=ut.red,this.data[Ze+4*bt+3]=255}Ne!==0&&(this.pos+=4-Ne)}},vr.prototype.bit4=function(){for(var Qe=Math.ceil(this.width/2),be=Qe%4,Ne=this.height-1;Ne>=0;Ne--){for(var Ue=this.bottom_up?Ne:this.height-1-Ne,Xe=0;Xe<Qe;Xe++){var ze=this.datav.getUint8(this.pos++,!0),Ze=Ue*this.width*4+2*Xe*4,bt=ze>>4,ut=15&ze,Gt=this.palette[bt];if(this.data[Ze]=Gt.blue,this.data[Ze+1]=Gt.green,this.data[Ze+2]=Gt.red,this.data[Ze+3]=255,2*Xe+1>=this.width)break;Gt=this.palette[ut],this.data[Ze+4]=Gt.blue,this.data[Ze+4+1]=Gt.green,this.data[Ze+4+2]=Gt.red,this.data[Ze+4+3]=255}be!==0&&(this.pos+=4-be)}},vr.prototype.bit8=function(){for(var Qe=this.width%4,be=this.height-1;be>=0;be--){for(var Ne=this.bottom_up?be:this.height-1-be,Ue=0;Ue<this.width;Ue++){var Xe=this.datav.getUint8(this.pos++,!0),ze=Ne*this.width*4+4*Ue;if(Xe<this.palette.length){var Ze=this.palette[Xe];this.data[ze]=Ze.red,this.data[ze+1]=Ze.green,this.data[ze+2]=Ze.blue,this.data[ze+3]=255}else this.data[ze]=255,this.data[ze+1]=255,this.data[ze+2]=255,this.data[ze+3]=255}Qe!==0&&(this.pos+=4-Qe)}},vr.prototype.bit15=function(){for(var Qe=this.width%3,be=parseInt("11111",2),Ne=this.height-1;Ne>=0;Ne--){for(var Ue=this.bottom_up?Ne:this.height-1-Ne,Xe=0;Xe<this.width;Xe++){var ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ze=(ze&be)/be*255|0,bt=(ze>>5&be)/be*255|0,ut=(ze>>10&be)/be*255|0,Gt=ze>>15?255:0,Mr=Ue*this.width*4+4*Xe;this.data[Mr]=ut,this.data[Mr+1]=bt,this.data[Mr+2]=Ze,this.data[Mr+3]=Gt}this.pos+=Qe}},vr.prototype.bit16=function(){for(var Qe=this.width%3,be=parseInt("11111",2),Ne=parseInt("111111",2),Ue=this.height-1;Ue>=0;Ue--){for(var Xe=this.bottom_up?Ue:this.height-1-Ue,ze=0;ze<this.width;ze++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var bt=(Ze&be)/be*255|0,ut=(Ze>>5&Ne)/Ne*255|0,Gt=(Ze>>11)/be*255|0,Mr=Xe*this.width*4+4*ze;this.data[Mr]=Gt,this.data[Mr+1]=ut,this.data[Mr+2]=bt,this.data[Mr+3]=255}this.pos+=Qe}},vr.prototype.bit24=function(){for(var Qe=this.height-1;Qe>=0;Qe--){for(var be=this.bottom_up?Qe:this.height-1-Qe,Ne=0;Ne<this.width;Ne++){var Ue=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0),Ze=be*this.width*4+4*Ne;this.data[Ze]=ze,this.data[Ze+1]=Xe,this.data[Ze+2]=Ue,this.data[Ze+3]=255}this.pos+=this.width%4}},vr.prototype.bit32=function(){for(var Qe=this.height-1;Qe>=0;Qe--)for(var be=this.bottom_up?Qe:this.height-1-Qe,Ne=0;Ne<this.width;Ne++){var Ue=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),bt=be*this.width*4+4*Ne;this.data[bt]=ze,this.data[bt+1]=Xe,this.data[bt+2]=Ue,this.data[bt+3]=Ze}},vr.prototype.getData=function(){return this.data},function(Qe){Qe.processBMP=function(be,Ne,Ue,Xe){var ze=new vr(be,!1),Ze=ze.width,bt=ze.height,ut={data:ze.getData(),width:Ze,height:bt},Gt=new _t(100).encode(ut,100);return Qe.processJPEG.call(this,Gt,Ne,Ue,Xe)}}(K.API),kr.prototype.getData=function(){return this.data},function(Qe){Qe.processWEBP=function(be,Ne,Ue,Xe){var ze=new kr(be,!1),Ze=ze.width,bt=ze.height,ut={data:ze.getData(),width:Ze,height:bt},Gt=new _t(100).encode(ut,100);return Qe.processJPEG.call(this,Gt,Ne,Ue,Xe)}}(K.API),K.API.processRGBA=function(Qe,be,Ne){for(var Ue=Qe.data,Xe=Ue.length,ze=new Uint8Array(Xe/4*3),Ze=new Uint8Array(Xe/4),bt=0,ut=0,Gt=0;Gt<Xe;Gt+=4){var Mr=Ue[Gt],Lr=Ue[Gt+1],Gr=Ue[Gt+2],Ht=Ue[Gt+3];ze[bt++]=Mr,ze[bt++]=Lr,ze[bt++]=Gr,Ze[ut++]=Ht}var hn=this.__addimage__.arrayBufferToBinaryString(ze);return{alpha:this.__addimage__.arrayBufferToBinaryString(Ze),data:hn,index:be,alias:Ne,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Qe.width,height:Qe.height}},K.API.setLanguage=function(Qe){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"}[Qe]!==void 0&&(this.internal.languageSettings.languageCode=Qe,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},kt=K.API,wt=kt.getCharWidthsArray=function(Qe,be){var Ne,Ue,Xe=(be=be||{}).font||this.internal.getFont(),ze=be.fontSize||this.internal.getFontSize(),Ze=be.charSpace||this.internal.getCharSpace(),bt=be.widths?be.widths:Xe.metadata.Unicode.widths,ut=bt.fof?bt.fof:1,Gt=be.kerning?be.kerning:Xe.metadata.Unicode.kerning,Mr=Gt.fof?Gt.fof:1,Lr=be.doKerning!==!1,Gr=0,Ht=Qe.length,hn=0,or=bt[0]||ut,vn=[];for(Ne=0;Ne<Ht;Ne++)Ue=Qe.charCodeAt(Ne),typeof Xe.metadata.widthOfString=="function"?vn.push((Xe.metadata.widthOfGlyph(Xe.metadata.characterToGlyph(Ue))+Ze*(1e3/ze)||0)/1e3):(Gr=Lr&&C()(Gt[Ue])==="object"&&!isNaN(parseInt(Gt[Ue][hn],10))?Gt[Ue][hn]/Mr:0,vn.push((bt[Ue]||or)/ut+Gr)),hn=Ue;return vn},Te=kt.getStringUnitWidth=function(Qe,be){var Ne=(be=be||{}).fontSize||this.internal.getFontSize(),Ue=be.font||this.internal.getFont(),Xe=be.charSpace||this.internal.getCharSpace();return kt.processArabic&&(Qe=kt.processArabic(Qe)),typeof Ue.metadata.widthOfString=="function"?Ue.metadata.widthOfString(Qe,Ne,Xe)/Ne:wt.apply(this,arguments).reduce(function(ze,Ze){return ze+Ze},0)},xe=function(be,Ne,Ue,Xe){for(var ze=[],Ze=0,bt=be.length,ut=0;Ze!==bt&&ut+Ne[Ze]<Ue;)ut+=Ne[Ze],Ze++;ze.push(be.slice(0,Ze));var Gt=Ze;for(ut=0;Ze!==bt;)ut+Ne[Ze]>Xe&&(ze.push(be.slice(Gt,Ze)),ut=0,Gt=Ze),ut+=Ne[Ze],Ze++;return Gt!==Ze&&ze.push(be.slice(Gt,Ze)),ze},Ce=function(be,Ne,Ue){Ue||(Ue={});var Xe,ze,Ze,bt,ut,Gt,Mr,Lr=[],Gr=[Lr],Ht=Ue.textIndent||0,hn=0,or=0,vn=be.split(" "),nn=wt.apply(this,[" ",Ue])[0];if(Gt=Ue.lineIndent===-1?vn[0].length+2:Ue.lineIndent||0){var Ur=Array(Gt).join(" "),ni=[];vn.map(function(Hi){(Hi=Hi.split(/\s*\n/)).length>1?ni=ni.concat(Hi.map(function(Ri,Ni){return(Ni&&Ri.length?`
`:"")+Ri})):ni.push(Hi[0])}),vn=ni,Gt=Te.apply(this,[Ur,Ue])}for(Ze=0,bt=vn.length;Ze<bt;Ze++){var Oi=0;if(Xe=vn[Ze],Gt&&Xe[0]==`
`&&(Xe=Xe.substr(1),Oi=1),Ht+hn+(or=(ze=wt.apply(this,[Xe,Ue])).reduce(function(Hi,Ri){return Hi+Ri},0))>Ne||Oi){if(or>Ne){for(ut=xe.apply(this,[Xe,ze,Ne-(Ht+hn),Ne]),Lr.push(ut.shift()),Lr=[ut.pop()];ut.length;)Gr.push([ut.shift()]);or=ze.slice(Xe.length-(Lr[0]?Lr[0].length:0)).reduce(function(Hi,Ri){return Hi+Ri},0)}else Lr=[Xe];Gr.push(Lr),Ht=or+Gt,hn=nn}else Lr.push(Xe),Ht+=hn+or,hn=nn}return Mr=Gt?function(Hi,Ri){return(Ri?Ur:"")+Hi.join(" ")}:function(Hi){return Hi.join(" ")},Gr.map(Mr)},kt.splitTextToSize=function(Qe,be,Ne){var Ue,Xe=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),ze=function(Mr){if(Mr.widths&&Mr.kerning)return{widths:Mr.widths,kerning:Mr.kerning};var Lr=this.internal.getFont(Mr.fontName,Mr.fontStyle);return Lr.metadata.Unicode?{widths:Lr.metadata.Unicode.widths||{0:1},kerning:Lr.metadata.Unicode.kerning||{}}:{font:Lr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Ne);Ue=Array.isArray(Qe)?Qe:String(Qe).split(/\r?\n/);var Ze=1*this.internal.scaleFactor*be/Xe;ze.textIndent=Ne.textIndent?1*Ne.textIndent*this.internal.scaleFactor/Xe:0,ze.lineIndent=Ne.lineIndent;var bt,ut,Gt=[];for(bt=0,ut=Ue.length;bt<ut;bt++)Gt=Gt.concat(Ce.apply(this,[Ue[bt],Ze,ze]));return Gt},function(Qe){Qe.__fontmetrics__=Qe.__fontmetrics__||{};for(var be="klmnopqrstuvwxyz",Ne={},Ue={},Xe=0;Xe<be.length;Xe++)Ne[be[Xe]]="0123456789abcdef"[Xe],Ue["0123456789abcdef"[Xe]]=be[Xe];var ze=function(Gr){return"0x"+parseInt(Gr,10).toString(16)},Ze=Qe.__fontmetrics__.compress=function(Lr){var Gr,Ht,hn,or,vn=["{"];for(var nn in Lr){if(Gr=Lr[nn],isNaN(parseInt(nn,10))?Ht="'"+nn+"'":(nn=parseInt(nn,10),Ht=(Ht=ze(nn).slice(2)).slice(0,-1)+Ue[Ht.slice(-1)]),typeof Gr=="number")Gr<0?(hn=ze(Gr).slice(3),or="-"):(hn=ze(Gr).slice(2),or=""),hn=or+hn.slice(0,-1)+Ue[hn.slice(-1)];else{if(C()(Gr)!=="object")throw new Error("Don't know what to do with value type "+C()(Gr)+".");hn=Ze(Gr)}vn.push(Ht+hn)}return vn.push("}"),vn.join("")},bt=Qe.__fontmetrics__.uncompress=function(Lr){if(typeof Lr!="string")throw new Error("Invalid argument passed to uncompress.");for(var Gr,Ht,hn,or,vn={},nn=1,Ur=vn,ni=[],Oi="",Hi="",Ri=Lr.length-1,Ni=1;Ni<Ri;Ni+=1)(or=Lr[Ni])=="'"?Gr?(hn=Gr.join(""),Gr=void 0):Gr=[]:Gr?Gr.push(or):or=="{"?(ni.push([Ur,hn]),Ur={},hn=void 0):or=="}"?((Ht=ni.pop())[0][Ht[1]]=Ur,hn=void 0,Ur=Ht[0]):or=="-"?nn=-1:hn===void 0?Ne.hasOwnProperty(or)?(Oi+=Ne[or],hn=parseInt(Oi,16)*nn,nn=1,Oi=""):Oi+=or:Ne.hasOwnProperty(or)?(Hi+=Ne[or],Ur[hn]=parseInt(Hi,16)*nn,nn=1,hn=void 0,Hi=""):Hi+=or;return vn},ut={codePages:["WinAnsiEncoding"],WinAnsiEncoding:bt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Gt={Unicode:{Courier:ut,"Courier-Bold":ut,"Courier-BoldOblique":ut,"Courier-Oblique":ut,Helvetica:ut,"Helvetica-Bold":ut,"Helvetica-BoldOblique":ut,"Helvetica-Oblique":ut,"Times-Roman":ut,"Times-Bold":ut,"Times-BoldItalic":ut,"Times-Italic":ut}},Mr={Unicode:{"Courier-Oblique":bt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":bt("{'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":bt("{'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:bt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":bt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":bt("{'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:bt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:bt("{'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":bt("{'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:bt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":bt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":bt("{'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":bt("{'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":bt("{'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}}}")}};Qe.events.push(["addFont",function(Lr){var Gr=Lr.font,Ht=Mr.Unicode[Gr.postScriptName];Ht&&(Gr.metadata.Unicode={},Gr.metadata.Unicode.widths=Ht.widths,Gr.metadata.Unicode.kerning=Ht.kerning);var hn=Gt.Unicode[Gr.postScriptName];hn&&(Gr.metadata.Unicode.encoding=hn,Gr.encoding=hn.codePages[0])}])}(K.API),function(Qe){var be=function(Ue){for(var Xe=Ue.length,ze=new Uint8Array(Xe),Ze=0;Ze<Xe;Ze++)ze[Ze]=Ue.charCodeAt(Ze);return ze};Qe.API.events.push(["addFont",function(Ne){var Ue=void 0,Xe=Ne.font,ze=Ne.instance;if(!Xe.isStandardFont){if(ze===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Xe.postScriptName+"').");if(typeof(Ue=ze.existsFileInVFS(Xe.postScriptName)===!1?ze.loadFile(Xe.postScriptName):ze.getFileFromVFS(Xe.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Xe.postScriptName+"').");!function(Ze,bt){bt=/^\x00\x01\x00\x00/.test(bt)?be(bt):be(o(bt)),Ze.metadata=Qe.API.TTFFont.open(bt),Ze.metadata.Unicode=Ze.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Ze.metadata.glyIdsUsed=[0]}(Xe,Ue)}}])}(K),function(Qe){function be(){return(w.canvg?Promise.resolve(w.canvg):Promise.all([d.e(0),d.e(235)]).then(d.bind(null,"DXPr"))).catch(function(Ne){return Promise.reject(new Error("Could not load canvg: "+Ne))}).then(function(Ne){return Ne.default?Ne.default:Ne})}K.API.addSvgAsImage=function(Ne,Ue,Xe,ze,Ze,bt,ut,Gt){if(isNaN(Ue)||isNaN(Xe))throw h.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(ze)||isNaN(Ze))throw h.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Mr=document.createElement("canvas");Mr.width=ze,Mr.height=Ze;var Lr=Mr.getContext("2d");Lr.fillStyle="#fff",Lr.fillRect(0,0,Mr.width,Mr.height);var Gr={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ht=this;return be().then(function(hn){return hn.fromString(Lr,Ne,Gr)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(hn){return hn.render(Gr)}).then(function(){Ht.addImage(Mr.toDataURL("image/jpeg",1),Ue,Xe,ze,Ze,ut,Gt)})}}(),K.API.putTotalPages=function(Qe){var be,Ne=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(be=new RegExp(Qe,"g"),Ne=this.internal.getNumberOfPages()):(be=new RegExp(this.pdfEscape16(Qe,this.internal.getFont()),"g"),Ne=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ue=1;Ue<=this.internal.getNumberOfPages();Ue++)for(var Xe=0;Xe<this.internal.pages[Ue].length;Xe++)this.internal.pages[Ue][Xe]=this.internal.pages[Ue][Xe].replace(be,Ne);return this},K.API.viewerPreferences=function(Qe,be){var Ne;Qe=Qe||{},be=be||!1;var Ue,Xe,ze,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}},bt=Object.keys(Ze),ut=[],Gt=0,Mr=0,Lr=0;function Gr(hn,or){var vn,nn=!1;for(vn=0;vn<hn.length;vn+=1)hn[vn]===or&&(nn=!0);return nn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Ze)),this.internal.viewerpreferences.isSubscribed=!1),Ne=this.internal.viewerpreferences.configuration,Qe==="reset"||be===!0){var Ht=bt.length;for(Lr=0;Lr<Ht;Lr+=1)Ne[bt[Lr]].value=Ne[bt[Lr]].defaultValue,Ne[bt[Lr]].explicitSet=!1}if(C()(Qe)==="object"){for(Xe in Qe)if(ze=Qe[Xe],Gr(bt,Xe)&&ze!==void 0){if(Ne[Xe].type==="boolean"&&typeof ze=="boolean")Ne[Xe].value=ze;else if(Ne[Xe].type==="name"&&Gr(Ne[Xe].valueSet,ze))Ne[Xe].value=ze;else if(Ne[Xe].type==="integer"&&Number.isInteger(ze))Ne[Xe].value=ze;else if(Ne[Xe].type==="array"){for(Gt=0;Gt<ze.length;Gt+=1)if(Ue=!0,ze[Gt].length===1&&typeof ze[Gt][0]=="number")ut.push(String(ze[Gt]-1));else if(ze[Gt].length>1){for(Mr=0;Mr<ze[Gt].length;Mr+=1)typeof ze[Gt][Mr]!="number"&&(Ue=!1);Ue===!0&&ut.push([ze[Gt][0]-1,ze[Gt][1]-1].join(" "))}Ne[Xe].value="["+ut.join(" ")+"]"}else Ne[Xe].value=Ne[Xe].defaultValue;Ne[Xe].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var hn,or=[];for(hn in Ne)Ne[hn].explicitSet===!0&&(Ne[hn].type==="name"?or.push("/"+hn+" /"+Ne[hn].value):or.push("/"+hn+" "+Ne[hn].value));or.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+or.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ne,this},function(Qe){var be=function(){var Xe='<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>',ze=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Ze=unescape(encodeURIComponent(Xe)),bt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ut=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Gt=unescape(encodeURIComponent("</x:xmpmeta>")),Mr=Ze.length+bt.length+ut.length+ze.length+Gt.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Mr+" >>"),this.internal.write("stream"),this.internal.write(ze+Ze+bt+ut+Gt),this.internal.write("endstream"),this.internal.write("endobj")},Ne=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Qe.addMetadata=function(Ue,Xe){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ue,namespaceuri:Xe||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ne),this.internal.events.subscribe("postPutResources",be)),this}}(K.API),function(Qe){var be=Qe.API,Ne=be.pdfEscape16=function(ze,Ze){for(var bt,ut=Ze.metadata.Unicode.widths,Gt=["","0","00","000","0000"],Mr=[""],Lr=0,Gr=ze.length;Lr<Gr;++Lr){if(bt=Ze.metadata.characterToGlyph(ze.charCodeAt(Lr)),Ze.metadata.glyIdsUsed.push(bt),Ze.metadata.toUnicode[bt]=ze.charCodeAt(Lr),ut.indexOf(bt)==-1&&(ut.push(bt),ut.push([parseInt(Ze.metadata.widthOfGlyph(bt),10)])),bt=="0")return Mr.join("");bt=bt.toString(16),Mr.push(Gt[4-bt.length],bt)}return Mr.join("")},Ue=function(Ze){var bt,ut,Gt,Mr,Lr,Gr,Ht;for(Lr=`/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`,Gt=[],Gr=0,Ht=(ut=Object.keys(Ze).sort(function(hn,or){return hn-or})).length;Gr<Ht;Gr++)bt=ut[Gr],Gt.length>=100&&(Lr+=`
`+Gt.length+` beginbfchar
`+Gt.join(`
`)+`
endbfchar`,Gt=[]),Ze[bt]!==void 0&&Ze[bt]!==null&&typeof Ze[bt].toString=="function"&&(Mr=("0000"+Ze[bt].toString(16)).slice(-4),bt=("0000"+(+bt).toString(16)).slice(-4),Gt.push("<"+bt+"><"+Mr+">"));return Gt.length&&(Lr+=`
`+Gt.length+` beginbfchar
`+Gt.join(`
`)+`
endbfchar
`),Lr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};be.events.push(["putFont",function(ze){!function(Ze){var bt=Ze.font,ut=Ze.out,Gt=Ze.newObject,Mr=Ze.putStream;if(bt.metadata instanceof Qe.API.TTFFont&&bt.encoding==="Identity-H"){for(var Lr=bt.metadata.Unicode.widths,Gr=bt.metadata.subset.encode(bt.metadata.glyIdsUsed,1),Ht="",hn=0;hn<Gr.length;hn++)Ht+=String.fromCharCode(Gr[hn]);var or=Gt();Mr({data:Ht,addLength1:!0,objectId:or}),ut("endobj");var vn=Gt();Mr({data:Ue(bt.metadata.toUnicode),addLength1:!0,objectId:vn}),ut("endobj");var nn=Gt();ut("<<"),ut("/Type /FontDescriptor"),ut("/FontName /"+N(bt.fontName)),ut("/FontFile2 "+or+" 0 R"),ut("/FontBBox "+Qe.API.PDFObject.convert(bt.metadata.bbox)),ut("/Flags "+bt.metadata.flags),ut("/StemV "+bt.metadata.stemV),ut("/ItalicAngle "+bt.metadata.italicAngle),ut("/Ascent "+bt.metadata.ascender),ut("/Descent "+bt.metadata.decender),ut("/CapHeight "+bt.metadata.capHeight),ut(">>"),ut("endobj");var Ur=Gt();ut("<<"),ut("/Type /Font"),ut("/BaseFont /"+N(bt.fontName)),ut("/FontDescriptor "+nn+" 0 R"),ut("/W "+Qe.API.PDFObject.convert(Lr)),ut("/CIDToGIDMap /Identity"),ut("/DW 1000"),ut("/Subtype /CIDFontType2"),ut("/CIDSystemInfo"),ut("<<"),ut("/Supplement 0"),ut("/Registry (Adobe)"),ut("/Ordering ("+bt.encoding+")"),ut(">>"),ut(">>"),ut("endobj"),bt.objectNumber=Gt(),ut("<<"),ut("/Type /Font"),ut("/Subtype /Type0"),ut("/ToUnicode "+vn+" 0 R"),ut("/BaseFont /"+N(bt.fontName)),ut("/Encoding /"+bt.encoding),ut("/DescendantFonts ["+Ur+" 0 R]"),ut(">>"),ut("endobj"),bt.isAlreadyPutted=!0}}(ze)}]),be.events.push(["putFont",function(ze){!function(Ze){var bt=Ze.font,ut=Ze.out,Gt=Ze.newObject,Mr=Ze.putStream;if(bt.metadata instanceof Qe.API.TTFFont&&bt.encoding==="WinAnsiEncoding"){for(var Lr=bt.metadata.rawData,Gr="",Ht=0;Ht<Lr.length;Ht++)Gr+=String.fromCharCode(Lr[Ht]);var hn=Gt();Mr({data:Gr,addLength1:!0,objectId:hn}),ut("endobj");var or=Gt();Mr({data:Ue(bt.metadata.toUnicode),addLength1:!0,objectId:or}),ut("endobj");var vn=Gt();ut("<<"),ut("/Descent "+bt.metadata.decender),ut("/CapHeight "+bt.metadata.capHeight),ut("/StemV "+bt.metadata.stemV),ut("/Type /FontDescriptor"),ut("/FontFile2 "+hn+" 0 R"),ut("/Flags 96"),ut("/FontBBox "+Qe.API.PDFObject.convert(bt.metadata.bbox)),ut("/FontName /"+N(bt.fontName)),ut("/ItalicAngle "+bt.metadata.italicAngle),ut("/Ascent "+bt.metadata.ascender),ut(">>"),ut("endobj"),bt.objectNumber=Gt();for(var nn=0;nn<bt.metadata.hmtx.widths.length;nn++)bt.metadata.hmtx.widths[nn]=parseInt(bt.metadata.hmtx.widths[nn]*(1e3/bt.metadata.head.unitsPerEm));ut("<</Subtype/TrueType/Type/Font/ToUnicode "+or+" 0 R/BaseFont/"+N(bt.fontName)+"/FontDescriptor "+vn+" 0 R/Encoding/"+bt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Qe.API.PDFObject.convert(bt.metadata.hmtx.widths)+">>"),ut("endobj"),bt.isAlreadyPutted=!0}}(ze)}]);var Xe=function(Ze){var bt,ut=Ze.text||"",Gt=Ze.x,Mr=Ze.y,Lr=Ze.options||{},Gr=Ze.mutex||{},Ht=Gr.pdfEscape,hn=Gr.activeFontKey,or=Gr.fonts,vn=hn,nn="",Ur=0,ni="",Oi=or[vn].encoding;if(or[vn].encoding!=="Identity-H")return{text:ut,x:Gt,y:Mr,options:Lr,mutex:Gr};for(ni=ut,vn=hn,Array.isArray(ut)&&(ni=ut[0]),Ur=0;Ur<ni.length;Ur+=1)or[vn].metadata.hasOwnProperty("cmap")&&(bt=or[vn].metadata.cmap.unicode.codeMap[ni[Ur].charCodeAt(0)]),bt||ni[Ur].charCodeAt(0)<256&&or[vn].metadata.hasOwnProperty("Unicode")?nn+=ni[Ur]:nn+="";var Hi="";return parseInt(vn.slice(1))<14||Oi==="WinAnsiEncoding"?Hi=Ht(nn,vn).split("").map(function(Ri){return Ri.charCodeAt(0).toString(16)}).join(""):Oi==="Identity-H"&&(Hi=Ne(nn,or[vn])),Gr.isHex=!0,{text:Hi,x:Gt,y:Mr,options:Lr,mutex:Gr}};be.events.push(["postProcessText",function(ze){var Ze=ze.text||"",bt=[],ut={text:Ze,x:ze.x,y:ze.y,options:ze.options,mutex:ze.mutex};if(Array.isArray(Ze)){var Gt=0;for(Gt=0;Gt<Ze.length;Gt+=1)Array.isArray(Ze[Gt])&&Ze[Gt].length===3?bt.push([Xe(Object.assign({},ut,{text:Ze[Gt][0]})).text,Ze[Gt][1],Ze[Gt][2]]):bt.push(Xe(Object.assign({},ut,{text:Ze[Gt]})).text);ze.text=bt}else ze.text=Xe(Object.assign({},ut,{text:Ze})).text}])}(K),function(Qe){var be=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Qe.existsFileInVFS=function(Ne){return be.call(this),this.internal.vFS[Ne]!==void 0},Qe.addFileToVFS=function(Ne,Ue){return be.call(this),this.internal.vFS[Ne]=Ue,this},Qe.getFileFromVFS=function(Ne){return be.call(this),this.internal.vFS[Ne]!==void 0?this.internal.vFS[Ne]:null}}(K.API),function(Qe){Qe.__bidiEngine__=Qe.prototype.__bidiEngine__=function(Ue){var Xe,ze,Ze,bt,ut,Gt,Mr,Lr=be,Gr=[[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]],Ht=[[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]],hn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},or={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},vn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],nn=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)$/),Ur=!1,ni=0;this.__bidiEngine__={};var Oi=function(fr){var Nr=fr.charCodeAt(),Qt=Nr>>8,xr=or[Qt];return xr!==void 0?Lr[256*xr+(255&Nr)]:Qt===252||Qt===253?"AL":nn.test(Qt)?"L":Qt===8?"R":"N"},Hi=function(fr){for(var Nr,Qt=0;Qt<fr.length;Qt++){if((Nr=Oi(fr.charAt(Qt)))==="L")return!1;if(Nr==="R")return!0}return!1},Ri=function(fr,Nr,Qt,xr){var Jr,Kr,en,ai,Yn=Nr[xr];switch(Yn){case"L":case"R":Ur=!1;break;case"N":case"AN":break;case"EN":Ur&&(Yn="AN");break;case"AL":Ur=!0,Yn="R";break;case"WS":Yn="N";break;case"CS":xr<1||xr+1>=Nr.length||(Jr=Qt[xr-1])!=="EN"&&Jr!=="AN"||(Kr=Nr[xr+1])!=="EN"&&Kr!=="AN"?Yn="N":Ur&&(Kr="AN"),Yn=Kr===Jr?Kr:"N";break;case"ES":Yn=(Jr=xr>0?Qt[xr-1]:"B")==="EN"&&xr+1<Nr.length&&Nr[xr+1]==="EN"?"EN":"N";break;case"ET":if(xr>0&&Qt[xr-1]==="EN"){Yn="EN";break}if(Ur){Yn="N";break}for(en=xr+1,ai=Nr.length;en<ai&&Nr[en]==="ET";)en++;Yn=en<ai&&Nr[en]==="EN"?"EN":"N";break;case"NSM":if(Ze&&!bt){for(ai=Nr.length,en=xr+1;en<ai&&Nr[en]==="NSM";)en++;if(en<ai){var Si=fr[xr],ln=Si>=1425&&Si<=2303||Si===64286;if(Jr=Nr[en],ln&&(Jr==="R"||Jr==="AL")){Yn="R";break}}}Yn=xr<1||(Jr=Nr[xr-1])==="B"?"N":Qt[xr-1];break;case"B":Ur=!1,Xe=!0,Yn=ni;break;case"S":ze=!0,Yn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Ur=!1;break;case"BN":Yn="N"}return Yn},Ni=function(fr,Nr,Qt){var xr=fr.split("");return Qt&&Yi(xr,Qt,{hiLevel:ni}),xr.reverse(),Nr&&Nr.reverse(),xr.join("")},Yi=function(fr,Nr,Qt){var xr,Jr,Kr,en,ai,Yn=-1,Si=fr.length,ln=0,Or=[],wn=ni?Ht:Gr,Xn=[];for(Ur=!1,Xe=!1,ze=!1,Jr=0;Jr<Si;Jr++)Xn[Jr]=Oi(fr[Jr]);for(Kr=0;Kr<Si;Kr++){if(ai=ln,Or[Kr]=Ri(fr,Xn,Or,Kr),xr=240&(ln=wn[ai][hn[Or[Kr]]]),ln&=15,Nr[Kr]=en=wn[ln][5],xr>0)if(xr===16){for(Jr=Yn;Jr<Kr;Jr++)Nr[Jr]=1;Yn=-1}else Yn=-1;if(wn[ln][6])Yn===-1&&(Yn=Kr);else if(Yn>-1){for(Jr=Yn;Jr<Kr;Jr++)Nr[Jr]=en;Yn=-1}Xn[Kr]==="B"&&(Nr[Kr]=0),Qt.hiLevel|=en}ze&&function(Zn,ii,Ei){for(var ki=0;ki<Ei;ki++)if(Zn[ki]==="S"){ii[ki]=ni;for(var Fi=ki-1;Fi>=0&&Zn[Fi]==="WS";Fi--)ii[Fi]=ni}}(Xn,Nr,Si)},Qr=function(fr,Nr,Qt,xr,Jr){if(!(Jr.hiLevel<fr)){if(fr===1&&ni===1&&!Xe)return Nr.reverse(),void(Qt&&Qt.reverse());for(var Kr,en,ai,Yn,Si=Nr.length,ln=0;ln<Si;){if(xr[ln]>=fr){for(ai=ln+1;ai<Si&&xr[ai]>=fr;)ai++;for(Yn=ln,en=ai-1;Yn<en;Yn++,en--)Kr=Nr[Yn],Nr[Yn]=Nr[en],Nr[en]=Kr,Qt&&(Kr=Qt[Yn],Qt[Yn]=Qt[en],Qt[en]=Kr);ln=ai}ln++}}},On=function(fr,Nr,Qt){var xr=fr.split(""),Jr={hiLevel:ni};return Qt||(Qt=[]),Yi(xr,Qt,Jr),function(Kr,en,ai){if(ai.hiLevel!==0&&Mr)for(var Yn,Si=0;Si<Kr.length;Si++)en[Si]===1&&(Yn=vn.indexOf(Kr[Si]))>=0&&(Kr[Si]=vn[Yn+1])}(xr,Qt,Jr),Qr(2,xr,Nr,Qt,Jr),Qr(1,xr,Nr,Qt,Jr),xr.join("")};return this.__bidiEngine__.doBidiReorder=function(zr,fr,Nr){if(function(xr,Jr){if(Jr)for(var Kr=0;Kr<xr.length;Kr++)Jr[Kr]=Kr;bt===void 0&&(bt=Hi(xr)),Gt===void 0&&(Gt=Hi(xr))}(zr,fr),Ze||!ut||Gt)if(Ze&&ut&&bt^Gt)ni=bt?1:0,zr=Ni(zr,fr,Nr);else if(!Ze&&ut&&Gt)ni=bt?1:0,zr=On(zr,fr,Nr),zr=Ni(zr,fr);else if(!Ze||bt||ut||Gt){if(Ze&&!ut&&bt^Gt)zr=Ni(zr,fr),bt?(ni=0,zr=On(zr,fr,Nr)):(ni=1,zr=On(zr,fr,Nr),zr=Ni(zr,fr));else if(Ze&&bt&&!ut&&Gt)ni=1,zr=On(zr,fr,Nr),zr=Ni(zr,fr);else if(!Ze&&!ut&&bt^Gt){var Qt=Mr;bt?(ni=1,zr=On(zr,fr,Nr),ni=0,Mr=!1,zr=On(zr,fr,Nr),Mr=Qt):(ni=0,zr=On(zr,fr,Nr),zr=Ni(zr,fr),ni=1,Mr=!1,zr=On(zr,fr,Nr),Mr=Qt,zr=Ni(zr,fr))}}else ni=0,zr=On(zr,fr,Nr);else ni=bt?1:0,zr=On(zr,fr,Nr);return zr},this.__bidiEngine__.setOptions=function(zr){zr&&(Ze=zr.isInputVisual,ut=zr.isOutputVisual,bt=zr.isInputRtl,Gt=zr.isOutputRtl,Mr=zr.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ue),this.__bidiEngine__};var be=["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"],Ne=new Qe.__bidiEngine__({isInputVisual:!0});Qe.API.events.push(["postProcessText",function(Ue){var Xe=Ue.text,ze=(Ue.x,Ue.y,Ue.options||{}),Ze=(Ue.mutex,ze.lang,[]);if(ze.isInputVisual=typeof ze.isInputVisual!="boolean"||ze.isInputVisual,Ne.setOptions(ze),Object.prototype.toString.call(Xe)==="[object Array]"){var bt=0;for(Ze=[],bt=0;bt<Xe.length;bt+=1)Object.prototype.toString.call(Xe[bt])==="[object Array]"?Ze.push([Ne.doBidiReorder(Xe[bt][0]),Xe[bt][1],Xe[bt][2]]):Ze.push([Ne.doBidiReorder(Xe[bt])]);Ue.text=Ze}else Ue.text=Ne.doBidiReorder(Xe);Ne.setOptions({isInputVisual:!0})}])}(K),K.API.TTFFont=function(){function Qe(be){var Ne;if(this.rawData=be,Ne=this.contents=new Mt(be),this.contents.pos=4,Ne.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ne.pos=0,this.parse(),this.subset=new Gi(this),this.registerTTF()}return Qe.open=function(be){return new Qe(be)},Qe.prototype.parse=function(){return this.directory=new nt(this.contents),this.head=new Dt(this),this.name=new mr(this),this.cmap=new jt(this),this.toUnicode={},this.hhea=new At(this),this.maxp=new $r(this),this.hmtx=new rn(this),this.post=new wr(this),this.os2=new Ft(this),this.loca=new Ii(this),this.glyf=new Un(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]},Qe.prototype.registerTTF=function(){var be,Ne,Ue,Xe,ze;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Ze,bt,ut,Gt;for(Gt=[],Ze=0,bt=(ut=this.bbox).length;Ze<bt;Ze++)be=ut[Ze],Gt.push(Math.round(be*this.scaleFactor));return Gt}.call(this),this.stemV=0,this.post.exists?(Ue=255&(Xe=this.post.italic_angle),(32768&(Ne=Xe>>16))!=0&&(Ne=-(1+(65535^Ne))),this.italicAngle=+(Ne+"."+Ue)):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=(ze=this.familyClass)===1||ze===2||ze===3||ze===4||ze===5||ze===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")},Qe.prototype.characterToGlyph=function(be){var Ne;return((Ne=this.cmap.unicode)!=null?Ne.codeMap[be]:void 0)||0},Qe.prototype.widthOfGlyph=function(be){var Ne;return Ne=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(be).advance*Ne},Qe.prototype.widthOfString=function(be,Ne,Ue){var Xe,ze,Ze,bt;for(Ze=0,ze=0,bt=(be=""+be).length;0<=bt?ze<bt:ze>bt;ze=0<=bt?++ze:--ze)Xe=be.charCodeAt(ze),Ze+=this.widthOfGlyph(this.characterToGlyph(Xe))+Ue*(1e3/Ne)||0;return Ze*(Ne/1e3)},Qe.prototype.lineHeight=function(be,Ne){var Ue;return Ne==null&&(Ne=!1),Ue=Ne?this.lineGap:0,(this.ascender+Ue-this.decender)/1e3*be},Qe}();var mn,Mt=function(){function Qe(be){this.data=be!=null?be:[],this.pos=0,this.length=this.data.length}return Qe.prototype.readByte=function(){return this.data[this.pos++]},Qe.prototype.writeByte=function(be){return this.data[this.pos++]=be},Qe.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Qe.prototype.writeUInt32=function(be){return this.writeByte(be>>>24&255),this.writeByte(be>>16&255),this.writeByte(be>>8&255),this.writeByte(255&be)},Qe.prototype.readInt32=function(){var be;return(be=this.readUInt32())>=2147483648?be-4294967296:be},Qe.prototype.writeInt32=function(be){return be<0&&(be+=4294967296),this.writeUInt32(be)},Qe.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Qe.prototype.writeUInt16=function(be){return this.writeByte(be>>8&255),this.writeByte(255&be)},Qe.prototype.readInt16=function(){var be;return(be=this.readUInt16())>=32768?be-65536:be},Qe.prototype.writeInt16=function(be){return be<0&&(be+=65536),this.writeUInt16(be)},Qe.prototype.readString=function(be){var Ne,Ue;for(Ue=[],Ne=0;0<=be?Ne<be:Ne>be;Ne=0<=be?++Ne:--Ne)Ue[Ne]=String.fromCharCode(this.readByte());return Ue.join("")},Qe.prototype.writeString=function(be){var Ne,Ue,Xe;for(Xe=[],Ne=0,Ue=be.length;0<=Ue?Ne<Ue:Ne>Ue;Ne=0<=Ue?++Ne:--Ne)Xe.push(this.writeByte(be.charCodeAt(Ne)));return Xe},Qe.prototype.readShort=function(){return this.readInt16()},Qe.prototype.writeShort=function(be){return this.writeInt16(be)},Qe.prototype.readLongLong=function(){var be,Ne,Ue,Xe,ze,Ze,bt,ut;return be=this.readByte(),Ne=this.readByte(),Ue=this.readByte(),Xe=this.readByte(),ze=this.readByte(),Ze=this.readByte(),bt=this.readByte(),ut=this.readByte(),128&be?-1*(72057594037927940*(255^be)+281474976710656*(255^Ne)+1099511627776*(255^Ue)+4294967296*(255^Xe)+16777216*(255^ze)+65536*(255^Ze)+256*(255^bt)+(255^ut)+1):72057594037927940*be+281474976710656*Ne+1099511627776*Ue+4294967296*Xe+16777216*ze+65536*Ze+256*bt+ut},Qe.prototype.writeLongLong=function(be){var Ne,Ue;return Ne=Math.floor(be/4294967296),Ue=4294967295&be,this.writeByte(Ne>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne),this.writeByte(Ue>>24&255),this.writeByte(Ue>>16&255),this.writeByte(Ue>>8&255),this.writeByte(255&Ue)},Qe.prototype.readInt=function(){return this.readInt32()},Qe.prototype.writeInt=function(be){return this.writeInt32(be)},Qe.prototype.read=function(be){var Ne,Ue;for(Ne=[],Ue=0;0<=be?Ue<be:Ue>be;Ue=0<=be?++Ue:--Ue)Ne.push(this.readByte());return Ne},Qe.prototype.write=function(be){var Ne,Ue,Xe,ze;for(ze=[],Ue=0,Xe=be.length;Ue<Xe;Ue++)Ne=be[Ue],ze.push(this.writeByte(Ne));return ze},Qe}(),nt=function(){var Qe;function be(Ne){var Ue,Xe,ze;for(this.scalarType=Ne.readInt(),this.tableCount=Ne.readShort(),this.searchRange=Ne.readShort(),this.entrySelector=Ne.readShort(),this.rangeShift=Ne.readShort(),this.tables={},Xe=0,ze=this.tableCount;0<=ze?Xe<ze:Xe>ze;Xe=0<=ze?++Xe:--Xe)Ue={tag:Ne.readString(4),checksum:Ne.readInt(),offset:Ne.readInt(),length:Ne.readInt()},this.tables[Ue.tag]=Ue}return be.prototype.encode=function(Ne){var Ue,Xe,ze,Ze,bt,ut,Gt,Mr,Lr,Gr,Ht,hn,or;for(or in Ht=Object.keys(Ne).length,ut=Math.log(2),Lr=16*Math.floor(Math.log(Ht)/ut),Ze=Math.floor(Lr/ut),Mr=16*Ht-Lr,(Xe=new Mt).writeInt(this.scalarType),Xe.writeShort(Ht),Xe.writeShort(Lr),Xe.writeShort(Ze),Xe.writeShort(Mr),ze=16*Ht,Gt=Xe.pos+ze,bt=null,hn=[],Ne)for(Gr=Ne[or],Xe.writeString(or),Xe.writeInt(Qe(Gr)),Xe.writeInt(Gt),Xe.writeInt(Gr.length),hn=hn.concat(Gr),or==="head"&&(bt=Gt),Gt+=Gr.length;Gt%4;)hn.push(0),Gt++;return Xe.write(hn),Ue=2981146554-Qe(Xe.data),Xe.pos=bt+8,Xe.writeUInt32(Ue),Xe.data},Qe=function(Ue){var Xe,ze,Ze,bt;for(Ue=jn.call(Ue);Ue.length%4;)Ue.push(0);for(Ze=new Mt(Ue),ze=0,Xe=0,bt=Ue.length;Xe<bt;Xe=Xe+=4)ze+=Ze.readUInt32();return 4294967295&ze},be}(),st={}.hasOwnProperty,Xt=function(be,Ne){for(var Ue in Ne)st.call(Ne,Ue)&&(be[Ue]=Ne[Ue]);function Xe(){this.constructor=be}return Xe.prototype=Ne.prototype,be.prototype=new Xe,be.__super__=Ne.prototype,be};mn=function(){function Qe(be){var Ne;this.file=be,Ne=this.file.directory.tables[this.tag],this.exists=!!Ne,Ne&&(this.offset=Ne.offset,this.length=Ne.length,this.parse(this.file.contents))}return Qe.prototype.parse=function(){},Qe.prototype.encode=function(){},Qe.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Qe}();var Dt=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="head",be.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.revision=Ne.readInt(),this.checkSumAdjustment=Ne.readInt(),this.magicNumber=Ne.readInt(),this.flags=Ne.readShort(),this.unitsPerEm=Ne.readShort(),this.created=Ne.readLongLong(),this.modified=Ne.readLongLong(),this.xMin=Ne.readShort(),this.yMin=Ne.readShort(),this.xMax=Ne.readShort(),this.yMax=Ne.readShort(),this.macStyle=Ne.readShort(),this.lowestRecPPEM=Ne.readShort(),this.fontDirectionHint=Ne.readShort(),this.indexToLocFormat=Ne.readShort(),this.glyphDataFormat=Ne.readShort()},be.prototype.encode=function(Ne){var Ue;return(Ue=new Mt).writeInt(this.version),Ue.writeInt(this.revision),Ue.writeInt(this.checkSumAdjustment),Ue.writeInt(this.magicNumber),Ue.writeShort(this.flags),Ue.writeShort(this.unitsPerEm),Ue.writeLongLong(this.created),Ue.writeLongLong(this.modified),Ue.writeShort(this.xMin),Ue.writeShort(this.yMin),Ue.writeShort(this.xMax),Ue.writeShort(this.yMax),Ue.writeShort(this.macStyle),Ue.writeShort(this.lowestRecPPEM),Ue.writeShort(this.fontDirectionHint),Ue.writeShort(Ne),Ue.writeShort(this.glyphDataFormat),Ue.data},be}(),St=function(){function Qe(be,Ne){var Ue,Xe,ze,Ze,bt,ut,Gt,Mr,Lr,Gr,Ht,hn,or,vn,nn,Ur,ni;switch(this.platformID=be.readUInt16(),this.encodingID=be.readShort(),this.offset=Ne+be.readInt(),Lr=be.pos,be.pos=this.offset,this.format=be.readUInt16(),this.length=be.readUInt16(),this.language=be.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(ut=0;ut<256;++ut)this.codeMap[ut]=be.readByte();break;case 4:for(Ht=be.readUInt16(),Gr=Ht/2,be.pos+=6,ze=function(){var Oi,Hi;for(Hi=[],ut=Oi=0;0<=Gr?Oi<Gr:Oi>Gr;ut=0<=Gr?++Oi:--Oi)Hi.push(be.readUInt16());return Hi}(),be.pos+=2,or=function(){var Oi,Hi;for(Hi=[],ut=Oi=0;0<=Gr?Oi<Gr:Oi>Gr;ut=0<=Gr?++Oi:--Oi)Hi.push(be.readUInt16());return Hi}(),Gt=function(){var Oi,Hi;for(Hi=[],ut=Oi=0;0<=Gr?Oi<Gr:Oi>Gr;ut=0<=Gr?++Oi:--Oi)Hi.push(be.readUInt16());return Hi}(),Mr=function(){var Oi,Hi;for(Hi=[],ut=Oi=0;0<=Gr?Oi<Gr:Oi>Gr;ut=0<=Gr?++Oi:--Oi)Hi.push(be.readUInt16());return Hi}(),Xe=(this.length-be.pos+this.offset)/2,bt=function(){var Oi,Hi;for(Hi=[],ut=Oi=0;0<=Xe?Oi<Xe:Oi>Xe;ut=0<=Xe?++Oi:--Oi)Hi.push(be.readUInt16());return Hi}(),ut=nn=0,ni=ze.length;nn<ni;ut=++nn)for(vn=ze[ut],Ue=Ur=hn=or[ut];hn<=vn?Ur<=vn:Ur>=vn;Ue=hn<=vn?++Ur:--Ur)Mr[ut]===0?Ze=Ue+Gt[ut]:(Ze=bt[Mr[ut]/2+(Ue-hn)-(Gr-ut)]||0)!==0&&(Ze+=Gt[ut]),this.codeMap[Ue]=65535&Ze}be.pos=Lr}return Qe.encode=function(be,Ne){var Ue,Xe,ze,Ze,bt,ut,Gt,Mr,Lr,Gr,Ht,hn,or,vn,nn,Ur,ni,Oi,Hi,Ri,Ni,Yi,Qr,On,zr,fr,Nr,Qt,xr,Jr,Kr,en,ai,Yn,Si,ln,Or,wn,Xn,Zn,ii,Ei,ki,Fi,ra,_a;switch(Qt=new Mt,Ze=Object.keys(be).sort(function(wa,_o){return wa-_o}),Ne){case"macroman":for(or=0,vn=function(){var wa=[];for(hn=0;hn<256;++hn)wa.push(0);return wa}(),Ur={0:0},ze={},xr=0,ai=Ze.length;xr<ai;xr++)Ur[ki=be[Xe=Ze[xr]]]==null&&(Ur[ki]=++or),ze[Xe]={old:be[Xe],new:Ur[be[Xe]]},vn[Xe]=Ur[be[Xe]];return Qt.writeUInt16(1),Qt.writeUInt16(0),Qt.writeUInt32(12),Qt.writeUInt16(0),Qt.writeUInt16(262),Qt.writeUInt16(0),Qt.write(vn),{charMap:ze,subtable:Qt.data,maxGlyphID:or+1};case"unicode":for(fr=[],Lr=[],ni=0,Ur={},Ue={},nn=Gt=null,Jr=0,Yn=Ze.length;Jr<Yn;Jr++)Ur[Hi=be[Xe=Ze[Jr]]]==null&&(Ur[Hi]=++ni),Ue[Xe]={old:Hi,new:Ur[Hi]},bt=Ur[Hi]-Xe,nn!=null&&bt===Gt||(nn&&Lr.push(nn),fr.push(Xe),Gt=bt),nn=Xe;for(nn&&Lr.push(nn),Lr.push(65535),fr.push(65535),On=2*(Qr=fr.length),Yi=2*Math.pow(Math.log(Qr)/Math.LN2,2),Gr=Math.log(Yi/2)/Math.LN2,Ni=2*Qr-Yi,ut=[],Ri=[],Ht=[],hn=Kr=0,Si=fr.length;Kr<Si;hn=++Kr){if(zr=fr[hn],Mr=Lr[hn],zr===65535){ut.push(0),Ri.push(0);break}if(zr-(Nr=Ue[zr].new)>=32768)for(ut.push(0),Ri.push(2*(Ht.length+Qr-hn)),Xe=en=zr;zr<=Mr?en<=Mr:en>=Mr;Xe=zr<=Mr?++en:--en)Ht.push(Ue[Xe].new);else ut.push(Nr-zr),Ri.push(0)}for(Qt.writeUInt16(3),Qt.writeUInt16(1),Qt.writeUInt32(12),Qt.writeUInt16(4),Qt.writeUInt16(16+8*Qr+2*Ht.length),Qt.writeUInt16(0),Qt.writeUInt16(On),Qt.writeUInt16(Yi),Qt.writeUInt16(Gr),Qt.writeUInt16(Ni),ii=0,ln=Lr.length;ii<ln;ii++)Xe=Lr[ii],Qt.writeUInt16(Xe);for(Qt.writeUInt16(0),Ei=0,Or=fr.length;Ei<Or;Ei++)Xe=fr[Ei],Qt.writeUInt16(Xe);for(Fi=0,wn=ut.length;Fi<wn;Fi++)bt=ut[Fi],Qt.writeUInt16(bt);for(ra=0,Xn=Ri.length;ra<Xn;ra++)Oi=Ri[ra],Qt.writeUInt16(Oi);for(_a=0,Zn=Ht.length;_a<Zn;_a++)or=Ht[_a],Qt.writeUInt16(or);return{charMap:Ue,subtable:Qt.data,maxGlyphID:ni+1}}},Qe}(),jt=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="cmap",be.prototype.parse=function(Ne){var Ue,Xe,ze;for(Ne.pos=this.offset,this.version=Ne.readUInt16(),ze=Ne.readUInt16(),this.tables=[],this.unicode=null,Xe=0;0<=ze?Xe<ze:Xe>ze;Xe=0<=ze?++Xe:--Xe)Ue=new St(Ne,this.offset),this.tables.push(Ue),Ue.isUnicode&&this.unicode==null&&(this.unicode=Ue);return!0},be.encode=function(Ne,Ue){var Xe,ze;return Ue==null&&(Ue="macroman"),Xe=St.encode(Ne,Ue),(ze=new Mt).writeUInt16(0),ze.writeUInt16(1),Xe.table=ze.data.concat(Xe.subtable),Xe},be}(),At=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="hhea",be.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.ascender=Ne.readShort(),this.decender=Ne.readShort(),this.lineGap=Ne.readShort(),this.advanceWidthMax=Ne.readShort(),this.minLeftSideBearing=Ne.readShort(),this.minRightSideBearing=Ne.readShort(),this.xMaxExtent=Ne.readShort(),this.caretSlopeRise=Ne.readShort(),this.caretSlopeRun=Ne.readShort(),this.caretOffset=Ne.readShort(),Ne.pos+=8,this.metricDataFormat=Ne.readShort(),this.numberOfMetrics=Ne.readUInt16()},be}(),Ft=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="OS/2",be.prototype.parse=function(Ne){if(Ne.pos=this.offset,this.version=Ne.readUInt16(),this.averageCharWidth=Ne.readShort(),this.weightClass=Ne.readUInt16(),this.widthClass=Ne.readUInt16(),this.type=Ne.readShort(),this.ySubscriptXSize=Ne.readShort(),this.ySubscriptYSize=Ne.readShort(),this.ySubscriptXOffset=Ne.readShort(),this.ySubscriptYOffset=Ne.readShort(),this.ySuperscriptXSize=Ne.readShort(),this.ySuperscriptYSize=Ne.readShort(),this.ySuperscriptXOffset=Ne.readShort(),this.ySuperscriptYOffset=Ne.readShort(),this.yStrikeoutSize=Ne.readShort(),this.yStrikeoutPosition=Ne.readShort(),this.familyClass=Ne.readShort(),this.panose=function(){var Ue,Xe;for(Xe=[],Ue=0;Ue<10;++Ue)Xe.push(Ne.readByte());return Xe}(),this.charRange=function(){var Ue,Xe;for(Xe=[],Ue=0;Ue<4;++Ue)Xe.push(Ne.readInt());return Xe}(),this.vendorID=Ne.readString(4),this.selection=Ne.readShort(),this.firstCharIndex=Ne.readShort(),this.lastCharIndex=Ne.readShort(),this.version>0&&(this.ascent=Ne.readShort(),this.descent=Ne.readShort(),this.lineGap=Ne.readShort(),this.winAscent=Ne.readShort(),this.winDescent=Ne.readShort(),this.codePageRange=function(){var Ue,Xe;for(Xe=[],Ue=0;Ue<2;Ue=++Ue)Xe.push(Ne.readInt());return Xe}(),this.version>1))return this.xHeight=Ne.readShort(),this.capHeight=Ne.readShort(),this.defaultChar=Ne.readShort(),this.breakChar=Ne.readShort(),this.maxContext=Ne.readShort()},be}(),wr=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="post",be.prototype.parse=function(Ne){var Ue,Xe,ze;switch(Ne.pos=this.offset,this.format=Ne.readInt(),this.italicAngle=Ne.readInt(),this.underlinePosition=Ne.readShort(),this.underlineThickness=Ne.readShort(),this.isFixedPitch=Ne.readInt(),this.minMemType42=Ne.readInt(),this.maxMemType42=Ne.readInt(),this.minMemType1=Ne.readInt(),this.maxMemType1=Ne.readInt(),this.format){case 65536:break;case 131072:var Ze;for(Xe=Ne.readUInt16(),this.glyphNameIndex=[],Ze=0;0<=Xe?Ze<Xe:Ze>Xe;Ze=0<=Xe?++Ze:--Ze)this.glyphNameIndex.push(Ne.readUInt16());for(this.names=[],ze=[];Ne.pos<this.offset+this.length;)Ue=Ne.readByte(),ze.push(this.names.push(Ne.readString(Ue)));return ze;case 151552:return Xe=Ne.readUInt16(),this.offsets=Ne.read(Xe);case 196608:break;case 262144:return this.map=function(){var bt,ut,Gt;for(Gt=[],Ze=bt=0,ut=this.file.maxp.numGlyphs;0<=ut?bt<ut:bt>ut;Ze=0<=ut?++bt:--bt)Gt.push(Ne.readUInt32());return Gt}.call(this)}},be}(),sr=function(be,Ne){this.raw=be,this.length=be.length,this.platformID=Ne.platformID,this.encodingID=Ne.encodingID,this.languageID=Ne.languageID},mr=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="name",be.prototype.parse=function(Ne){var Ue,Xe,ze,Ze,bt,ut,Gt,Mr,Lr,Gr,Ht;for(Ne.pos=this.offset,Ne.readShort(),Ue=Ne.readShort(),ut=Ne.readShort(),Xe=[],Ze=0;0<=Ue?Ze<Ue:Ze>Ue;Ze=0<=Ue?++Ze:--Ze)Xe.push({platformID:Ne.readShort(),encodingID:Ne.readShort(),languageID:Ne.readShort(),nameID:Ne.readShort(),length:Ne.readShort(),offset:this.offset+ut+Ne.readShort()});for(Gt={},Ze=Lr=0,Gr=Xe.length;Lr<Gr;Ze=++Lr)ze=Xe[Ze],Ne.pos=ze.offset,Mr=Ne.readString(ze.length),bt=new sr(Mr,ze),Gt[Ht=ze.nameID]==null&&(Gt[Ht]=[]),Gt[ze.nameID].push(bt);this.strings=Gt,this.copyright=Gt[0],this.fontFamily=Gt[1],this.fontSubfamily=Gt[2],this.uniqueSubfamily=Gt[3],this.fontName=Gt[4],this.version=Gt[5];try{this.postscriptName=Gt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(hn){this.postscriptName=Gt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Gt[7],this.manufacturer=Gt[8],this.designer=Gt[9],this.description=Gt[10],this.vendorUrl=Gt[11],this.designerUrl=Gt[12],this.license=Gt[13],this.licenseUrl=Gt[14],this.preferredFamily=Gt[15],this.preferredSubfamily=Gt[17],this.compatibleFull=Gt[18],this.sampleText=Gt[19]},be}(),$r=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="maxp",be.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.numGlyphs=Ne.readUInt16(),this.maxPoints=Ne.readUInt16(),this.maxContours=Ne.readUInt16(),this.maxCompositePoints=Ne.readUInt16(),this.maxComponentContours=Ne.readUInt16(),this.maxZones=Ne.readUInt16(),this.maxTwilightPoints=Ne.readUInt16(),this.maxStorage=Ne.readUInt16(),this.maxFunctionDefs=Ne.readUInt16(),this.maxInstructionDefs=Ne.readUInt16(),this.maxStackElements=Ne.readUInt16(),this.maxSizeOfInstructions=Ne.readUInt16(),this.maxComponentElements=Ne.readUInt16(),this.maxComponentDepth=Ne.readUInt16()},be}(),rn=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="hmtx",be.prototype.parse=function(Ne){var Ue,Xe,ze,Ze,bt,ut,Gt;for(Ne.pos=this.offset,this.metrics=[],Ue=0,ut=this.file.hhea.numberOfMetrics;0<=ut?Ue<ut:Ue>ut;Ue=0<=ut?++Ue:--Ue)this.metrics.push({advance:Ne.readUInt16(),lsb:Ne.readInt16()});for(ze=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Mr,Lr;for(Lr=[],Ue=Mr=0;0<=ze?Mr<ze:Mr>ze;Ue=0<=ze?++Mr:--Mr)Lr.push(Ne.readInt16());return Lr}(),this.widths=function(){var Mr,Lr,Gr,Ht;for(Ht=[],Mr=0,Lr=(Gr=this.metrics).length;Mr<Lr;Mr++)Ze=Gr[Mr],Ht.push(Ze.advance);return Ht}.call(this),Xe=this.widths[this.widths.length-1],Gt=[],Ue=bt=0;0<=ze?bt<ze:bt>ze;Ue=0<=ze?++bt:--bt)Gt.push(this.widths.push(Xe));return Gt},be.prototype.forGlyph=function(Ne){return Ne in this.metrics?this.metrics[Ne]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ne-this.metrics.length]}},be}(),jn=[].slice,Un=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="glyf",be.prototype.parse=function(){return this.cache={}},be.prototype.glyphFor=function(Ne){var Ue,Xe,ze,Ze,bt,ut,Gt,Mr,Lr,Gr;return Ne in this.cache?this.cache[Ne]:(Ze=this.file.loca,Ue=this.file.contents,Xe=Ze.indexOf(Ne),(ze=Ze.lengthOf(Ne))===0?this.cache[Ne]=null:(Ue.pos=this.offset+Xe,bt=(ut=new Mt(Ue.read(ze))).readShort(),Mr=ut.readShort(),Gr=ut.readShort(),Gt=ut.readShort(),Lr=ut.readShort(),this.cache[Ne]=bt===-1?new yi(ut,Mr,Gr,Gt,Lr):new ui(ut,bt,Mr,Gr,Gt,Lr),this.cache[Ne]))},be.prototype.encode=function(Ne,Ue,Xe){var ze,Ze,bt,ut,Gt;for(bt=[],Ze=[],ut=0,Gt=Ue.length;ut<Gt;ut++)ze=Ne[Ue[ut]],Ze.push(bt.length),ze&&(bt=bt.concat(ze.encode(Xe)));return Ze.push(bt.length),{table:bt,offsets:Ze}},be}(),ui=function(){function Qe(be,Ne,Ue,Xe,ze,Ze){this.raw=be,this.numberOfContours=Ne,this.xMin=Ue,this.yMin=Xe,this.xMax=ze,this.yMax=Ze,this.compound=!1}return Qe.prototype.encode=function(){return this.raw.data},Qe}(),yi=function(){function Qe(be,Ne,Ue,Xe,ze){var Ze,bt;for(this.raw=be,this.xMin=Ne,this.yMin=Ue,this.xMax=Xe,this.yMax=ze,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Ze=this.raw;bt=Ze.readShort(),this.glyphOffsets.push(Ze.pos),this.glyphIDs.push(Ze.readUInt16()),32&bt;)Ze.pos+=1&bt?4:2,128&bt?Ze.pos+=8:64&bt?Ze.pos+=4:8&bt&&(Ze.pos+=2)}return Qe.prototype.encode=function(){var be,Ne,Ue;for(Ne=new Mt(jn.call(this.raw.data)),be=0,Ue=this.glyphIDs.length;be<Ue;++be)Ne.pos=this.glyphOffsets[be];return Ne.data},Qe}(),Ii=function(Qe){function be(){return be.__super__.constructor.apply(this,arguments)}return Xt(be,mn),be.prototype.tag="loca",be.prototype.parse=function(Ne){var Ue,Xe;return Ne.pos=this.offset,Ue=this.file.head.indexToLocFormat,this.offsets=Ue===0?function(){var ze,Ze;for(Ze=[],Xe=0,ze=this.length;Xe<ze;Xe+=2)Ze.push(2*Ne.readUInt16());return Ze}.call(this):function(){var ze,Ze;for(Ze=[],Xe=0,ze=this.length;Xe<ze;Xe+=4)Ze.push(Ne.readUInt32());return Ze}.call(this)},be.prototype.indexOf=function(Ne){return this.offsets[Ne]},be.prototype.lengthOf=function(Ne){return this.offsets[Ne+1]-this.offsets[Ne]},be.prototype.encode=function(Ne,Ue){for(var Xe=new Uint32Array(this.offsets.length),ze=0,Ze=0,bt=0;bt<Xe.length;++bt)if(Xe[bt]=ze,Ze<Ue.length&&Ue[Ze]==bt){++Ze,Xe[bt]=ze;var ut=this.offsets[bt],Gt=this.offsets[bt+1]-ut;Gt>0&&(ze+=Gt)}for(var Mr=new Array(4*Xe.length),Lr=0;Lr<Xe.length;++Lr)Mr[4*Lr+3]=255&Xe[Lr],Mr[4*Lr+2]=(65280&Xe[Lr])>>8,Mr[4*Lr+1]=(16711680&Xe[Lr])>>16,Mr[4*Lr]=(4278190080&Xe[Lr])>>24;return Mr},be}(),Gi=function(){function Qe(be){this.font=be,this.subset={},this.unicodes={},this.next=33}return Qe.prototype.generateCmap=function(){var be,Ne,Ue,Xe,ze;for(Ne in Xe=this.font.cmap.tables[0].codeMap,be={},ze=this.subset)Ue=ze[Ne],be[Ne]=Xe[Ue];return be},Qe.prototype.glyphsFor=function(be){var Ne,Ue,Xe,ze,Ze,bt,ut;for(Xe={},Ze=0,bt=be.length;Ze<bt;Ze++)Xe[ze=be[Ze]]=this.font.glyf.glyphFor(ze);for(ze in Ne=[],Xe)((Ue=Xe[ze])!=null?Ue.compound:void 0)&&Ne.push.apply(Ne,Ue.glyphIDs);if(Ne.length>0)for(ze in ut=this.glyphsFor(Ne))Ue=ut[ze],Xe[ze]=Ue;return Xe},Qe.prototype.encode=function(be,Ne){var Ue,Xe,ze,Ze,bt,ut,Gt,Mr,Lr,Gr,Ht,hn,or,vn,nn;for(Xe in Ue=jt.encode(this.generateCmap(),"unicode"),Ze=this.glyphsFor(be),Ht={0:0},nn=Ue.charMap)Ht[(ut=nn[Xe]).old]=ut.new;for(hn in Gr=Ue.maxGlyphID,Ze)hn in Ht||(Ht[hn]=Gr++);return Mr=function(Ur){var ni,Oi;for(ni in Oi={},Ur)Oi[Ur[ni]]=ni;return Oi}(Ht),Lr=Object.keys(Mr).sort(function(Ur,ni){return Ur-ni}),or=function(){var Ur,ni,Oi;for(Oi=[],Ur=0,ni=Lr.length;Ur<ni;Ur++)bt=Lr[Ur],Oi.push(Mr[bt]);return Oi}(),ze=this.font.glyf.encode(Ze,or,Ht),Gt=this.font.loca.encode(ze.offsets,or),vn={cmap:this.font.cmap.raw(),glyf:ze.table,loca:Gt,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(Ne)},this.font.os2.exists&&(vn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(vn)},Qe}();K.API.PDFObject=function(){var Qe;function be(){}return Qe=function(Ue,Xe){return(Array(Xe+1).join("0")+Ue).slice(-Xe)},be.convert=function(Ne){var Ue,Xe,ze,Ze;if(Array.isArray(Ne))return"["+function(){var bt,ut,Gt;for(Gt=[],bt=0,ut=Ne.length;bt<ut;bt++)Ue=Ne[bt],Gt.push(be.convert(Ue));return Gt}().join(" ")+"]";if(typeof Ne=="string")return"/"+Ne;if(Ne!=null?Ne.isString:void 0)return"("+Ne+")";if(Ne instanceof Date)return"(D:"+Qe(Ne.getUTCFullYear(),4)+Qe(Ne.getUTCMonth(),2)+Qe(Ne.getUTCDate(),2)+Qe(Ne.getUTCHours(),2)+Qe(Ne.getUTCMinutes(),2)+Qe(Ne.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ne)==="[object Object]"){for(Xe in ze=["<<"],Ne)Ze=Ne[Xe],ze.push("/"+Xe+" "+be.convert(Ze));return ze.push(">>"),ze.join(`
`)}return""+Ne},be}(),P.default=K}.call(this,d("IyRk"))},e5VY:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("YNAk"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},e7zE:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.Base,w=C.WordArray,m=E.algo,h=m.SHA1,c=m.HMAC,i=m.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:h,iterations:1}),init:function(o){this.cfg=this.cfg.extend(o)},compute:function(o,n){for(var e=this.cfg,s=c.create(e.hasher,o),t=w.create(),a=w.create([1]),l=t.words,u=a.words,f=e.keySize,p=e.iterations;l.length<f;){var g=s.update(n).finalize(a);s.reset();for(var A=g.words,y=A.length,x=g,T=1;T<p;T++){x=s.finalize(x),s.reset();for(var S=x.words,b=0;b<y;b++)A[b]^=S[b]}t.concat(g),u[0]++}return t.sigBytes=f*4,t}});E.PBKDF2=function(r,o,n){return i.create(n).compute(r,o)}}(),O.PBKDF2})},eIcI:function(j,P,d){var O=d("bYtY"),E=d("hM6l");function C(w,m,h){E.call(this,w,m,h),this.type="value",this.angle=0,this.name="",this.model}O.inherits(C,E);var v=C;j.exports=v},eJH7:function(j,P,d){var O=d("bYtY");function E(C){var v=C.polar;if(v){O.isArray(v)||(v=[v]);var w=[];O.each(v,function(m,h){m.indicator?(m.type&&!m.shape&&(m.shape=m.type),C.radar=C.radar||[],O.isArray(C.radar)||(C.radar=[C.radar]),C.radar.push(m)):w.push(m)}),C.polar=w}O.each(C.series,function(m){m&&m.type==="radar"&&m.polarIndex&&(m.radarIndex=m.polarIndex)})}j.exports=E},eP3c:function(j,P,d){"use strict";function O(Be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(J){return typeof J}:O=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},O(Be)}Object.defineProperty(P,"__esModule",{value:!0}),P.inflateReset=le,P.inflateReset2=me,P.inflateResetKeep=Oe,P.inflateInit=$e,P.inflateInit2=_e,P.inflate=vt,P.inflateEnd=Ot,P.inflateGetHeader=Et,P.inflateSetDictionary=Tt,P.inflateInfo=P.Z_DEFLATED=P.Z_BUF_ERROR=P.Z_MEM_ERROR=P.Z_DATA_ERROR=P.Z_STREAM_ERROR=P.Z_NEED_DICT=P.Z_STREAM_END=P.Z_OK=P.Z_TREES=P.Z_BLOCK=P.Z_FINISH=void 0;var E=i(d("6BzB")),C=h(d("xlC8")),v=h(d("QV2g")),w=h(d("sjKO")),m=h(d("JSwD"));function h(Be){return Be&&Be.__esModule?Be:{default:Be}}function c(){if(typeof WeakMap!="function")return null;var Be=new WeakMap;return c=function(){return Be},Be}function i(Be){if(Be&&Be.__esModule)return Be;if(Be===null||O(Be)!=="object"&&typeof Be!="function")return{default:Be};var Z=c();if(Z&&Z.has(Be))return Z.get(Be);var J={},je=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Re in Be)if(Object.prototype.hasOwnProperty.call(Be,Re)){var oe=je?Object.getOwnPropertyDescriptor(Be,Re):null;oe&&(oe.get||oe.set)?Object.defineProperty(J,Re,oe):J[Re]=Be[Re]}return J.default=Be,Z&&Z.set(Be,J),J}var r=0,o=1,n=2,e=4;P.Z_FINISH=e;var s=5;P.Z_BLOCK=s;var t=6;P.Z_TREES=t;var a=0;P.Z_OK=a;var l=1;P.Z_STREAM_END=l;var u=2;P.Z_NEED_DICT=u;var f=-2;P.Z_STREAM_ERROR=f;var p=-3;P.Z_DATA_ERROR=p;var g=-4;P.Z_MEM_ERROR=g;var A=-5;P.Z_BUF_ERROR=A;var y=8;P.Z_DEFLATED=y;var x=1,T=2,S=3,b=4,_=5,I=6,L=7,D=8,N=9,M=10,B=11,R=12,H=13,F=14,K=15,U=16,V=17,z=18,Y=19,q=20,ce=21,ie=22,ve=23,Ee=24,Le=25,He=26,ge=27,Fe=28,Q=29,fe=30,Je=31,ne=32,X=852,G=592,te=15,we=te;function he(Be){return(Be>>>24&255)+(Be>>>8&65280)+((Be&65280)<<8)+((Be&255)<<24)}function Pe(){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 Oe(Be){var Z;return!Be||!Be.state?f:(Z=Be.state,Be.total_in=Be.total_out=Z.total=0,Be.msg="",Z.wrap&&(Be.adler=Z.wrap&1),Z.mode=x,Z.last=0,Z.havedict=0,Z.dmax=32768,Z.head=null,Z.hold=0,Z.bits=0,Z.lencode=Z.lendyn=new E.Buf32(X),Z.distcode=Z.distdyn=new E.Buf32(G),Z.sane=1,Z.back=-1,a)}function le(Be){var Z;return!Be||!Be.state?f:(Z=Be.state,Z.wsize=0,Z.whave=0,Z.wnext=0,Oe(Be))}function me(Be,Z){var J,je;return!Be||!Be.state?f:(je=Be.state,Z<0?(J=0,Z=-Z):(J=(Z>>4)+1,Z<48&&(Z&=15)),Z&&(Z<8||Z>15)?f:(je.window!==null&&je.wbits!==Z&&(je.window=null),je.wrap=J,je.wbits=Z,le(Be)))}function _e(Be,Z){var J,je;return Be?(je=new Pe,Be.state=je,je.window=null,J=me(Be,Z),J!==a&&(Be.state=null),J):f}function $e(Be){return _e(Be,we)}var gt=!0,et,Ie;function rt(Be){if(gt){var Z;for(et=new E.Buf32(512),Ie=new E.Buf32(32),Z=0;Z<144;)Be.lens[Z++]=8;for(;Z<256;)Be.lens[Z++]=9;for(;Z<280;)Be.lens[Z++]=7;for(;Z<288;)Be.lens[Z++]=8;for((0,m.default)(o,Be.lens,0,288,et,0,Be.work,{bits:9}),Z=0;Z<32;)Be.lens[Z++]=5;(0,m.default)(n,Be.lens,0,32,Ie,0,Be.work,{bits:5}),gt=!1}Be.lencode=et,Be.lenbits=9,Be.distcode=Ie,Be.distbits=5}function Ge(Be,Z,J,je){var Re,oe=Be.state;return oe.window===null&&(oe.wsize=1<<oe.wbits,oe.wnext=0,oe.whave=0,oe.window=new E.Buf8(oe.wsize)),je>=oe.wsize?(E.arraySet(oe.window,Z,J-oe.wsize,oe.wsize,0),oe.wnext=0,oe.whave=oe.wsize):(Re=oe.wsize-oe.wnext,Re>je&&(Re=je),E.arraySet(oe.window,Z,J-je,Re,oe.wnext),je-=Re,je?(E.arraySet(oe.window,Z,J-je,je,0),oe.wnext=je,oe.whave=oe.wsize):(oe.wnext+=Re,oe.wnext===oe.wsize&&(oe.wnext=0),oe.whave<oe.wsize&&(oe.whave+=Re))),0}function vt(Be,Z){var J,je,Re,oe,yt,zt,lt,$t,cr,cn,pr,gr,Zt,Vt,mt=0,Yr,Tn,Hn,ei,ji,Ln,Vn,kt,wt=new E.Buf8(4),Te,xe,Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Be||!Be.state||!Be.output||!Be.input&&Be.avail_in!==0)return f;J=Be.state,J.mode===R&&(J.mode=H),yt=Be.next_out,Re=Be.output,lt=Be.avail_out,oe=Be.next_in,je=Be.input,zt=Be.avail_in,$t=J.hold,cr=J.bits,cn=zt,pr=lt,kt=a;e:for(;;)switch(J.mode){case x:if(J.wrap===0){J.mode=H;break}for(;cr<16;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if(J.wrap&2&&$t===35615){J.check=0,wt[0]=$t&255,wt[1]=$t>>>8&255,J.check=(0,v.default)(J.check,wt,2,0),$t=0,cr=0,J.mode=T;break}if(J.flags=0,J.head&&(J.head.done=!1),!(J.wrap&1)||((($t&255)<<8)+($t>>8))%31){Be.msg="incorrect header check",J.mode=fe;break}if(($t&15)!==y){Be.msg="unknown compression method",J.mode=fe;break}if($t>>>=4,cr-=4,Vn=($t&15)+8,J.wbits===0)J.wbits=Vn;else if(Vn>J.wbits){Be.msg="invalid window size",J.mode=fe;break}J.dmax=1<<Vn,Be.adler=J.check=1,J.mode=$t&512?M:R,$t=0,cr=0;break;case T:for(;cr<16;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if(J.flags=$t,(J.flags&255)!==y){Be.msg="unknown compression method",J.mode=fe;break}if(J.flags&57344){Be.msg="unknown header flags set",J.mode=fe;break}J.head&&(J.head.text=$t>>8&1),J.flags&512&&(wt[0]=$t&255,wt[1]=$t>>>8&255,J.check=(0,v.default)(J.check,wt,2,0)),$t=0,cr=0,J.mode=S;case S:for(;cr<32;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}J.head&&(J.head.time=$t),J.flags&512&&(wt[0]=$t&255,wt[1]=$t>>>8&255,wt[2]=$t>>>16&255,wt[3]=$t>>>24&255,J.check=(0,v.default)(J.check,wt,4,0)),$t=0,cr=0,J.mode=b;case b:for(;cr<16;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}J.head&&(J.head.xflags=$t&255,J.head.os=$t>>8),J.flags&512&&(wt[0]=$t&255,wt[1]=$t>>>8&255,J.check=(0,v.default)(J.check,wt,2,0)),$t=0,cr=0,J.mode=_;case _:if(J.flags&1024){for(;cr<16;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}J.length=$t,J.head&&(J.head.extra_len=$t),J.flags&512&&(wt[0]=$t&255,wt[1]=$t>>>8&255,J.check=(0,v.default)(J.check,wt,2,0)),$t=0,cr=0}else J.head&&(J.head.extra=null);J.mode=I;case I:if(J.flags&1024&&(gr=J.length,gr>zt&&(gr=zt),gr&&(J.head&&(Vn=J.head.extra_len-J.length,J.head.extra||(J.head.extra=new Array(J.head.extra_len)),E.arraySet(J.head.extra,je,oe,gr,Vn)),J.flags&512&&(J.check=(0,v.default)(J.check,je,gr,oe)),zt-=gr,oe+=gr,J.length-=gr),J.length))break e;J.length=0,J.mode=L;case L:if(J.flags&2048){if(zt===0)break e;gr=0;do Vn=je[oe+gr++],J.head&&Vn&&J.length<65536&&(J.head.name+=String.fromCharCode(Vn));while(Vn&&gr<zt);if(J.flags&512&&(J.check=(0,v.default)(J.check,je,gr,oe)),zt-=gr,oe+=gr,Vn)break e}else J.head&&(J.head.name=null);J.length=0,J.mode=D;case D:if(J.flags&4096){if(zt===0)break e;gr=0;do Vn=je[oe+gr++],J.head&&Vn&&J.length<65536&&(J.head.comment+=String.fromCharCode(Vn));while(Vn&&gr<zt);if(J.flags&512&&(J.check=(0,v.default)(J.check,je,gr,oe)),zt-=gr,oe+=gr,Vn)break e}else J.head&&(J.head.comment=null);J.mode=N;case N:if(J.flags&512){for(;cr<16;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if($t!==(J.check&65535)){Be.msg="header crc mismatch",J.mode=fe;break}$t=0,cr=0}J.head&&(J.head.hcrc=J.flags>>9&1,J.head.done=!0),Be.adler=J.check=0,J.mode=R;break;case M:for(;cr<32;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}Be.adler=J.check=he($t),$t=0,cr=0,J.mode=B;case B:if(J.havedict===0)return Be.next_out=yt,Be.avail_out=lt,Be.next_in=oe,Be.avail_in=zt,J.hold=$t,J.bits=cr,u;Be.adler=J.check=1,J.mode=R;case R:if(Z===s||Z===t)break e;case H:if(J.last){$t>>>=cr&7,cr-=cr&7,J.mode=ge;break}for(;cr<3;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}J.last=$t&1,$t>>>=1,cr-=1;switch($t&3){case 0:J.mode=F;break;case 1:if(rt(J),J.mode=q,Z===t){$t>>>=2,cr-=2;break e}break;case 2:J.mode=V;break;case 3:Be.msg="invalid block type",J.mode=fe}$t>>>=2,cr-=2;break;case F:for($t>>>=cr&7,cr-=cr&7;cr<32;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if(($t&65535)!==($t>>>16^65535)){Be.msg="invalid stored block lengths",J.mode=fe;break}if(J.length=$t&65535,$t=0,cr=0,J.mode=K,Z===t)break e;case K:J.mode=U;case U:if(gr=J.length,gr){if(gr>zt&&(gr=zt),gr>lt&&(gr=lt),gr===0)break e;E.arraySet(Re,je,oe,gr,yt),zt-=gr,oe+=gr,lt-=gr,yt+=gr,J.length-=gr;break}J.mode=R;break;case V:for(;cr<14;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if(J.nlen=($t&31)+257,$t>>>=5,cr-=5,J.ndist=($t&31)+1,$t>>>=5,cr-=5,J.ncode=($t&15)+4,$t>>>=4,cr-=4,J.nlen>286||J.ndist>30){Be.msg="too many length or distance symbols",J.mode=fe;break}J.have=0,J.mode=z;case z:for(;J.have<J.ncode;){for(;cr<3;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}J.lens[Ce[J.have++]]=$t&7,$t>>>=3,cr-=3}for(;J.have<19;)J.lens[Ce[J.have++]]=0;if(J.lencode=J.lendyn,J.lenbits=7,Te={bits:J.lenbits},kt=(0,m.default)(r,J.lens,0,19,J.lencode,0,J.work,Te),J.lenbits=Te.bits,kt){Be.msg="invalid code lengths set",J.mode=fe;break}J.have=0,J.mode=Y;case Y:for(;J.have<J.nlen+J.ndist;){for(;!(mt=J.lencode[$t&(1<<J.lenbits)-1],Yr=mt>>>24,Tn=mt>>>16&255,Hn=mt&65535,Yr<=cr);){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if(Hn<16)$t>>>=Yr,cr-=Yr,J.lens[J.have++]=Hn;else{if(Hn===16){for(xe=Yr+2;cr<xe;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if($t>>>=Yr,cr-=Yr,J.have===0){Be.msg="invalid bit length repeat",J.mode=fe;break}Vn=J.lens[J.have-1],gr=3+($t&3),$t>>>=2,cr-=2}else if(Hn===17){for(xe=Yr+3;cr<xe;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}$t>>>=Yr,cr-=Yr,Vn=0,gr=3+($t&7),$t>>>=3,cr-=3}else{for(xe=Yr+7;cr<xe;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}$t>>>=Yr,cr-=Yr,Vn=0,gr=11+($t&127),$t>>>=7,cr-=7}if(J.have+gr>J.nlen+J.ndist){Be.msg="invalid bit length repeat",J.mode=fe;break}for(;gr--;)J.lens[J.have++]=Vn}}if(J.mode===fe)break;if(J.lens[256]===0){Be.msg="invalid code -- missing end-of-block",J.mode=fe;break}if(J.lenbits=9,Te={bits:J.lenbits},kt=(0,m.default)(o,J.lens,0,J.nlen,J.lencode,0,J.work,Te),J.lenbits=Te.bits,kt){Be.msg="invalid literal/lengths set",J.mode=fe;break}if(J.distbits=6,J.distcode=J.distdyn,Te={bits:J.distbits},kt=(0,m.default)(n,J.lens,J.nlen,J.ndist,J.distcode,0,J.work,Te),J.distbits=Te.bits,kt){Be.msg="invalid distances set",J.mode=fe;break}if(J.mode=q,Z===t)break e;case q:J.mode=ce;case ce:if(zt>=6&&lt>=258){Be.next_out=yt,Be.avail_out=lt,Be.next_in=oe,Be.avail_in=zt,J.hold=$t,J.bits=cr,(0,w.default)(Be,pr),yt=Be.next_out,Re=Be.output,lt=Be.avail_out,oe=Be.next_in,je=Be.input,zt=Be.avail_in,$t=J.hold,cr=J.bits,J.mode===R&&(J.back=-1);break}for(J.back=0;!(mt=J.lencode[$t&(1<<J.lenbits)-1],Yr=mt>>>24,Tn=mt>>>16&255,Hn=mt&65535,Yr<=cr);){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if(Tn&&(Tn&240)===0){for(ei=Yr,ji=Tn,Ln=Hn;!(mt=J.lencode[Ln+(($t&(1<<ei+ji)-1)>>ei)],Yr=mt>>>24,Tn=mt>>>16&255,Hn=mt&65535,ei+Yr<=cr);){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}$t>>>=ei,cr-=ei,J.back+=ei}if($t>>>=Yr,cr-=Yr,J.back+=Yr,J.length=Hn,Tn===0){J.mode=He;break}if(Tn&32){J.back=-1,J.mode=R;break}if(Tn&64){Be.msg="invalid literal/length code",J.mode=fe;break}J.extra=Tn&15,J.mode=ie;case ie:if(J.extra){for(xe=J.extra;cr<xe;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}J.length+=$t&(1<<J.extra)-1,$t>>>=J.extra,cr-=J.extra,J.back+=J.extra}J.was=J.length,J.mode=ve;case ve:for(;!(mt=J.distcode[$t&(1<<J.distbits)-1],Yr=mt>>>24,Tn=mt>>>16&255,Hn=mt&65535,Yr<=cr);){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if((Tn&240)===0){for(ei=Yr,ji=Tn,Ln=Hn;!(mt=J.distcode[Ln+(($t&(1<<ei+ji)-1)>>ei)],Yr=mt>>>24,Tn=mt>>>16&255,Hn=mt&65535,ei+Yr<=cr);){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}$t>>>=ei,cr-=ei,J.back+=ei}if($t>>>=Yr,cr-=Yr,J.back+=Yr,Tn&64){Be.msg="invalid distance code",J.mode=fe;break}J.offset=Hn,J.extra=Tn&15,J.mode=Ee;case Ee:if(J.extra){for(xe=J.extra;cr<xe;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}J.offset+=$t&(1<<J.extra)-1,$t>>>=J.extra,cr-=J.extra,J.back+=J.extra}if(J.offset>J.dmax){Be.msg="invalid distance too far back",J.mode=fe;break}J.mode=Le;case Le:if(lt===0)break e;if(gr=pr-lt,J.offset>gr){if(gr=J.offset-gr,gr>J.whave&&J.sane){Be.msg="invalid distance too far back",J.mode=fe;break}gr>J.wnext?(gr-=J.wnext,Zt=J.wsize-gr):Zt=J.wnext-gr,gr>J.length&&(gr=J.length),Vt=J.window}else Vt=Re,Zt=yt-J.offset,gr=J.length;gr>lt&&(gr=lt),lt-=gr,J.length-=gr;do Re[yt++]=Vt[Zt++];while(--gr);J.length===0&&(J.mode=ce);break;case He:if(lt===0)break e;Re[yt++]=J.length,lt--,J.mode=ce;break;case ge:if(J.wrap){for(;cr<32;){if(zt===0)break e;zt--,$t|=je[oe++]<<cr,cr+=8}if(pr-=lt,Be.total_out+=pr,J.total+=pr,pr&&(Be.adler=J.check=J.flags?(0,v.default)(J.check,Re,pr,yt-pr):(0,C.default)(J.check,Re,pr,yt-pr)),pr=lt,(J.flags?$t:he($t))!==J.check){Be.msg="incorrect data check",J.mode=fe;break}$t=0,cr=0}J.mode=Fe;case Fe:if(J.wrap&&J.flags){for(;cr<32;){if(zt===0)break e;zt--,$t+=je[oe++]<<cr,cr+=8}if($t!==(J.total&4294967295)){Be.msg="incorrect length check",J.mode=fe;break}$t=0,cr=0}J.mode=Q;case Q:kt=l;break e;case fe:kt=p;break e;case Je:return g;case ne:default:return f}return Be.next_out=yt,Be.avail_out=lt,Be.next_in=oe,Be.avail_in=zt,J.hold=$t,J.bits=cr,(J.wsize||pr!==Be.avail_out&&J.mode<fe&&(J.mode<ge||Z!==e))&&Ge(Be,Be.output,Be.next_out,pr-Be.avail_out)?(J.mode=Je,g):(cn-=Be.avail_in,pr-=Be.avail_out,Be.total_in+=cn,Be.total_out+=pr,J.total+=pr,J.wrap&&pr&&(Be.adler=J.check=J.flags?(0,v.default)(J.check,Re,pr,Be.next_out-pr):(0,C.default)(J.check,Re,pr,Be.next_out-pr)),Be.data_type=J.bits+(J.last?64:0)+(J.mode===R?128:0)+(J.mode===q||J.mode===K?256:0),(cn===0&&pr===0||Z===e)&&kt===a&&(kt=A),kt)}function Ot(Be){if(!Be||!Be.state)return f;var Z=Be.state;return Z.window&&(Z.window=null),Be.state=null,a}function Et(Be,Z){var J;return!Be||!Be.state?f:(J=Be.state,(J.wrap&2)===0?f:(J.head=Z,Z.done=!1,a))}function Tt(Be,Z){var J=Z.length,je,Re,oe;return!Be||!Be.state?f:(je=Be.state,je.wrap!==0&&je.mode!==B?f:je.mode===B&&(Re=1,Re=(0,C.default)(Re,Z,J,0),Re!==je.check)?p:(oe=Ge(Be,Z,J,J),oe?(je.mode=Je,g):(je.havedict=1,a)))}var Rt="pako inflate (from Nodeca project)";P.inflateInfo=Rt},ePAk:function(j,P,d){var O=d("ProS");d("2fGM");var E=O.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(C){var v,w=this.ecModel;return w.eachComponent(C,function(m){m.getCoordSysModel()===this&&(v=m)},this),v},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});j.exports=E},eRkO:function(j,P,d){var O=d("+TT/"),E=O.getLayoutRect,C=O.box,v=O.positionElement,w=d("7aKB"),m=d("IwbS");function h(i,r,o){var n=r.getBoxLayoutParams(),e=r.get("padding"),s={width:o.getWidth(),height:o.getHeight()},t=E(n,s,e);C(r.get("orient"),i,r.get("itemGap"),t.width,t.height),v(i,n,s,e)}function c(i,r){var o=w.normalizeCssArray(r.get("padding")),n=r.getItemStyle(["color","opacity"]);n.fill=r.get("backgroundColor");var i=new m.Rect({shape:{x:i.x-o[3],y:i.y-o[0],width:i.width+o[1]+o[3],height:i.height+o[0]+o[2],r:r.get("borderRadius")},style:n,silent:!0,z2:-1});return i}P.layout=h,P.makeBackground=c},eS4l:function(j,P,d){d("HM/N"),d("FNN5")},eUgh:function(j,P){function d(O,E){for(var C=-1,v=O==null?0:O.length,w=Array(v);++C<v;)w[C]=E(O[C],C,O);return w}j.exports=d},ewwo:function(j,P,d){var O=d("bMXI"),E=d("+TT/"),C=E.getLayoutRect,v=d("4mN7");function w(h,c,i){var r=h.getBoxLayoutParams();return r.aspect=i,C(r,{width:c.getWidth(),height:c.getHeight()})}function m(h,c){var i=[];return h.eachSeriesByType("graph",function(r){var o=r.get("coordinateSystem");if(!o||o==="view"){var n=r.getData(),e=n.mapArray(function(y){var x=n.getItemModel(y);return[+x.get("x"),+x.get("y")]}),s=[],t=[];v.fromPoints(e,s,t),t[0]-s[0]===0&&(t[0]+=1,s[0]-=1),t[1]-s[1]===0&&(t[1]+=1,s[1]-=1);var a=(t[0]-s[0])/(t[1]-s[1]),l=w(r,c,a);isNaN(a)&&(s=[l.x,l.y],t=[l.x+l.width,l.y+l.height]);var u=t[0]-s[0],f=t[1]-s[1],p=l.width,g=l.height,A=r.coordinateSystem=new O;A.zoomLimit=r.get("scaleLimit"),A.setBoundingRect(s[0],s[1],u,f),A.setViewRect(l.x,l.y,p,g),A.setCenter(r.get("center")),A.setZoom(r.get("zoom")),i.push(A)}}),i}j.exports=m},f1nB:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("bYtY"),w=d("4NO4"),m=d("IwbS"),h=d("+TT/"),c=d("OELB"),i=c.parsePercent,r={path:null,compoundPath:null,group:m.Group,image:m.Image,text:m.Text};C.registerPreprocessor(function(p){var g=p.graphic;v.isArray(g)?!g[0]||!g[0].elements?p.graphic=[{elements:g}]:p.graphic=[p.graphic[0]]:g&&!g.elements&&(p.graphic=[{elements:[g]}])});var o=C.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(p){var g=this.option.elements;this.option.elements=null,o.superApply(this,"mergeOption",arguments),this.option.elements=g},optionUpdated:function(p,g){var A=this.option,y=(g?A:p).elements,x=A.elements=g?[]:A.elements,T=[];this._flatten(y,T);var S=w.mappingToExists(x,T);w.makeIdAndName(S);var b=this._elOptionsToUpdate=[];v.each(S,function(I,L){var D=I.option;if(!D)return;b.push(D),a(I,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,g,A){v.each(p,function(y){if(!y)return;A&&(y.parentOption=A),g.push(y);var x=y.children;y.type==="group"&&x&&this._flatten(x,g,y),delete y.children},this)},useElOptionsToUpdate:function(){var p=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,p}});C.extendComponentView({type:"graphic",init:function(p,g){this._elMap=v.createHashMap(),this._lastGraphicModel},render:function(p,g,A){p!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=p,this._updateElements(p),this._relocate(p,A)},_updateElements:function(p){var g=p.useElOptionsToUpdate();if(!g)return;var A=this._elMap,y=this.group;v.each(g,function(x){var T=x.$action,S=x.id,b=A.get(S),_=x.parentId,I=_!=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);!T||T==="merge"?b?b.attr(D):n(S,I,D,A):T==="replace"?(e(b,A),n(S,I,D,A)):T==="remove"&&e(b,A);var N=A.get(S);N&&(N.__ecGraphicWidthOption=x.width,N.__ecGraphicHeightOption=x.height,f(N,p,x))})},_relocate:function(p,g){for(var A=p.option.elements,y=this.group,x=this._elMap,T=g.getWidth(),S=g.getHeight(),b=0;b<A.length;b++){var _=A[b],I=x.get(_.id);if(!I||!I.isGroup)continue;var L=I.parent,D=L===y;I.__ecGraphicWidth=i(I.__ecGraphicWidthOption,D?T:L.__ecGraphicWidth)||0,I.__ecGraphicHeight=i(I.__ecGraphicHeightOption,D?S:L.__ecGraphicHeight)||0}for(var b=A.length-1;b>=0;b--){var _=A[b],I=x.get(_.id);if(!I)continue;var L=I.parent,N=L===y?{width:T,height:S}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};h.positionElement(I,_,N,null,{hv:_.hv,boundingMode:_.bounding})}},_clear:function(){var p=this._elMap;p.each(function(g){e(g,p)}),this._elMap=v.createHashMap()},dispose:function(){this._clear()}});function n(p,g,A,y){var x=A.type,T=r.hasOwnProperty(x)?r[x]:m.getShapeClass(x),S=new T(A);g.add(S),y.set(p,S),S.__ecGraphicId=p}function e(p,g){var A=p&&p.parent;A&&(p.type==="group"&&p.traverse(function(y){e(y,g)}),g.removeKey(p.__ecGraphicId),A.remove(p))}function s(p){return p=v.extend({},p),v.each(["id","parentId","$action","hv","bounding"].concat(h.LOCATION_PARAMS),function(g){delete p[g]}),p}function t(p,g){var A;return v.each(g,function(y){p[y]!=null&&p[y]!=="auto"&&(A=!0)}),A}function a(p,g){var A=p.exist;if(g.id=p.keyInfo.id,!g.type&&A&&(g.type=A.type),g.parentId==null){var y=g.parentOption;y?g.parentId=y.id:A&&(g.parentId=A.parentId)}g.parentOption=null}function l(p,g,A){var y=v.extend({},A),x=p[g],T=A.$action||"merge";T==="merge"?x?(v.merge(x,y,!0),h.mergeLayoutParam(x,y,{ignoreSize:!0}),h.copyLayoutParams(A,x)):p[g]=y:T==="replace"?p[g]=y:T==="remove"&&(x&&(p[g]=null))}function u(p,g){if(!p)return;p.hv=g.hv=[t(g,["left","right"]),t(g,["top","bottom"])],p.type==="group"&&(p.width==null&&(p.width=g.width=0),p.height==null&&(p.height=g.height=0))}function f(p,g,A){var y=p.eventData;!p.silent&&!p.ignore&&!y&&(y=p.eventData={componentType:"graphic",componentIndex:g.componentIndex,name:p.name}),y&&(y.info=p.info)}},f3JH:function(j,P,d){d("aTJb"),d("OlYY"),d("fc+c"),d("oY9F"),d("MqEG"),d("LBfv"),d("noeP")},f5HG:function(j,P,d){var O=d("IwbS"),E=d("QBsz"),C=O.Line.prototype,v=O.BezierCurve.prototype;function w(h){return isNaN(+h.cpx1)||isNaN(+h.cpy1)}var m=O.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[w(c)?"_buildPathLine":"_buildPathCurve"](h,c)},_buildPathLine:C.buildPath,_buildPathCurve:v.buildPath,pointAt:function(h){return this[w(this.shape)?"_pointAtLine":"_pointAtCurve"](h)},_pointAtLine:C.pointAt,_pointAtCurve:v.pointAt,tangentAt:function(h){var c=this.shape,i=w(c)?[c.x2-c.x1,c.y2-c.y1]:this._tangentAtCurve(h);return E.normalize(i,i)},_tangentAtCurve:v.tangentAt});j.exports=m},f5Yq:function(j,P,d){var O=d("bYtY"),E=O.isFunction;function C(v,w,m){return{seriesType:v,performRawSeries:!0,reset:function(h,c,i){var r=h.getData(),o=h.get("symbol"),n=h.get("symbolSize"),e=h.get("symbolKeepAspect"),s=h.get("symbolRotate"),t=E(o),a=E(n),l=E(s),u=t||a||l,f=!t&&o?o:w,p=a?null:n,g=l?null:g;if(r.setVisual({legendSymbol:m||f,symbol:f,symbolSize:p,symbolKeepAspect:e,symbolRotate:s}),c.isSeriesFiltered(h))return;function A(y,x){if(u){var T=h.getRawValue(x),S=h.getDataParams(x);t&&y.setItemVisual(x,"symbol",o(T,S)),a&&y.setItemVisual(x,"symbolSize",n(T,S)),l&&y.setItemVisual(x,"symbolRotate",s(T,S))}if(y.hasItemOption){var b=y.getItemModel(x),_=b.getShallow("symbol",!0),I=b.getShallow("symbolSize",!0),L=b.getShallow("symbolRotate",!0),D=b.getShallow("symbolKeepAspect",!0);_!=null&&y.setItemVisual(x,"symbol",_),I!=null&&y.setItemVisual(x,"symbolSize",I),L!=null&&y.setItemVisual(x,"symbolRotate",L),D!=null&&y.setItemVisual(x,"symbolKeepAspect",D)}}return{dataEach:r.hasItemOption||u?A:null}}}}j.exports=C},fE02:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("/IIm"),v=d("vZ6x"),w=d("b9oc"),m=d("72pK"),h=d("Kagy"),c=d("IUWy");d("3TkU");var i=h.toolbox.dataZoom,r=E.each,o="\0_ec_\0toolbox-dataZoom_";function n(f,p,g){(this._brushController=new C(g.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(i.title)};var e=n.prototype;e.render=function(f,p,g,A){this.model=f,this.ecModel=p,this.api=g,l(f,p,this,A,g),a(f,p)},e.onclick=function(f,p,g){s[g].call(this)},e.remove=function(f,p){this._brushController.unmount()},e.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(w.pop(this.ecModel))}};e._onBrush=function(f,p){if(!p.isEnd||!f.length)return;var g={},A=this.ecModel;this._brushController.updateCovers([]);var y=new v(t(this.model.option),A,{include:["grid"]});y.matchOutputRanges(f,A,function(S,b,_){if(_.type!=="cartesian2d")return;var I=S.brushType;I==="rect"?(x("x",_,b[0]),x("y",_,b[1])):x({lineX:"x",lineY:"y"}[I],_,b)}),w.push(A,g),this._dispatchZoomAction(g);function x(S,b,_){var I=b.getAxis(S),L=I.model,D=T(S,L,A),N=D.findRepresentativeAxisProxy(L).getMinMaxSpan();(N.minValueSpan!=null||N.maxValueSpan!=null)&&(_=m(0,_.slice(),I.scale.getExtent(),0,N.minValueSpan,N.maxValueSpan)),D&&(g[D.id]={dataZoomId:D.id,startValue:_[0],endValue:_[1]})}function T(S,b,_){var I;return _.eachComponent({mainType:"dataZoom",subType:"select"},function(L){var D=L.getAxisModel(S,b.componentIndex);D&&(I=L)}),I}},e._dispatchZoomAction=function(f){var p=[];r(f,function(g,A){p.push(E.clone(g))}),p.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:p})};function t(f){var p={};return E.each(["xAxisIndex","yAxisIndex"],function(g){p[g]=f[g],p[g]==null&&(p[g]="all"),(p[g]===!1||p[g]==="none")&&(p[g]=[])}),p}function a(f,p){f.setIconStatus("back",w.count(p)>1?"emphasis":"normal")}function l(f,p,g,A,y){var x=g._isZoomActive;A&&A.type==="takeGlobalCursor"&&(x=A.key==="dataZoomSelect"?A.dataZoomSelectActive:!1),g._isZoomActive=x,f.setIconStatus("zoom",x?"emphasis":"normal");var T=new v(t(f.option),p,{include:["grid"]});g._brushController.setPanels(T.makePanelOpts(y,function(S){return S.xAxisDeclared&&!S.yAxisDeclared?"lineX":!S.xAxisDeclared&&S.yAxisDeclared?"lineY":"rect"})).enableBrush(x?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}c.register("dataZoom",n),O.registerPreprocessor(function(f){if(!f)return;var p=f.dataZoom||(f.dataZoom=[]);E.isArray(p)||(f.dataZoom=p=[p]);var g=f.toolbox;if(g&&(E.isArray(g)&&(g=g[0]),g&&g.feature)){var A=g.feature.dataZoom;y("xAxis",A),y("yAxis",A)}function y(T,S){if(!S)return;var b=T+"Index",_=S[b];_!=null&&_!=="all"&&!E.isArray(_)&&(_=_===!1||_==="none"?[]:[_]),x(T,function(I,L){if(_!=null&&_!=="all"&&E.indexOf(_,L)===-1)return;var D={type:"select",$fromToolbox:!0,filterMode:S.filterMode||"filter",id:o+T+L};D[b]=L,p.push(D)})}function x(T,S){var b=f[T];E.isArray(b)||(b=b?[b]:[]),r(b,S)}});var u=n;j.exports=u},fNCr:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("tSko"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},fUL4:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("r+aA"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},fW2E:function(j,P){var d={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(E,C,v){return d.hasOwnProperty(C)?v*=E.dpr:v}j.exports=O},"fc+c":function(j,P,d){var O=d("sS/r"),E=O.extend({type:"dataZoom",render:function(C,v,w,m){this.dataZoomModel=C,this.ecModel=v,this.api=w},getTargetCoordInfo:function(){var C=this.dataZoomModel,v=this.ecModel,w={};C.eachTargetAxis(function(h,c){var i=v.getComponent(h.axis,c);if(i){var r=i.getCoordSysModel();r&&m(r,i,w[r.mainType]||(w[r.mainType]=[]),r.componentIndex)}},this);function m(h,c,i,r){for(var o,n=0;n<i.length;n++)if(i[n].model===h){o=i[n];break}o||i.push(o={model:h,axisModels:[],coordIndex:r}),o.axisModels.push(c)}return w}});j.exports=E},fjKi:function(j,P,d){var O=d("ProS");d("Q7if"),d("jndi"),O.registerPreprocessor(function(E){E.markArea=E.markArea||{}})},fls0:function(j,P,d){var O=d("bYtY"),E=d("QBsz"),C=d("oVpE"),v=d("f5HG"),w=d("IwbS"),m=d("OELB"),h=m.round,c=["fromSymbol","toSymbol"];function i(l){return"_"+l+"Type"}function r(l,u,f){var p=u.getItemVisual(f,"color"),g=u.getItemVisual(f,l),A=u.getItemVisual(f,l+"Size");if(!g||g==="none")return;O.isArray(A)||(A=[A,A]);var y=C.createSymbol(g,-A[0]/2,-A[1]/2,A[0],A[1],p);return y.name=l,y}function o(l){var u=new v({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 e(){var l=this,u=l.childOfName("fromSymbol"),f=l.childOfName("toSymbol"),p=l.childOfName("label");if(!u&&!f&&p.ignore)return;for(var g=1,A=this.parent;A;)A.scale&&(g/=A.scale[0]),A=A.parent;var y=l.childOfName("line");if(!this.__dirty&&!y.__dirty)return;var x=y.shape.percent,T=y.pointAt(0),S=y.pointAt(x),b=E.sub([],S,T);if(E.normalize(b,b),u){u.attr("position",T);var _=y.tangentAt(0);u.attr("rotation",Math.PI/2-Math.atan2(_[1],_[0])),u.attr("scale",[g*x,g*x])}if(f){f.attr("position",S);var _=y.tangentAt(1);f.attr("rotation",-Math.PI/2-Math.atan2(_[1],_[0])),f.attr("scale",[g*x,g*x])}if(!p.ignore){p.attr("position",S);var I,L,D,N,M=p.__labelDistance,B=M[0]*g,R=M[1]*g,H=x/2,_=y.tangentAt(H),F=[_[1],-_[0]],K=y.pointAt(H);F[1]>0&&(F[0]=-F[0],F[1]=-F[1]);var U=_[0]<0?-1:1;if(p.__position!=="start"&&p.__position!=="end"){var V=-Math.atan2(_[1],_[0]);S[0]<T[0]&&(V=Math.PI+V),p.attr("rotation",V)}var z;switch(p.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":z=-R,D="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":z=R,D="top";break;default:z=0,D="middle"}switch(p.__position){case"end":I=[b[0]*B+S[0],b[1]*R+S[1]],L=b[0]>.8?"left":b[0]<-.8?"right":"center",D=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":I=[-b[0]*B+T[0],-b[1]*R+T[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":I=[B*U+T[0],T[1]+z],L=_[0]<0?"right":"left",N=[-B*U,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[K[0],K[1]+z],L="center",N=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-B*U+S[0],S[1]+z],L=_[0]>=0?"right":"left",N=[B*U,-z];break}p.attr({style:{textVerticalAlign:p.__verticalAlign||D,textAlign:p.__textAlign||L},position:I,scale:[g,g],origin:N})}}function s(l,u,f){w.Group.call(this),this._createLine(l,u,f)}var t=s.prototype;t.beforeUpdate=e,t._createLine=function(l,u,f){var p=l.hostModel,g=l.getItemLayout(u),A=o(g);A.shape.percent=0,w.initProps(A,{shape:{percent:1}},p,u),this.add(A);var y=new w.Text({name:"label",lineLabelOriginalOpacity:1});this.add(y),O.each(c,function(x){var T=r(x,l,u);this.add(T),this[i(x)]=l.getItemVisual(u,x)},this),this._updateCommonStl(l,u,f)},t.updateData=function(l,u,f){var p=l.hostModel,g=this.childOfName("line"),A=l.getItemLayout(u),y={shape:{}};n(y.shape,A),w.updateProps(g,y,p,u),O.each(c,function(x){var T=l.getItemVisual(u,x),S=i(x);if(this[S]!==T){this.remove(this.childOfName(x));var b=r(x,l,u);this.add(b)}this[S]=T},this),this._updateCommonStl(l,u,f)},t._updateCommonStl=function(l,u,f){var p=l.hostModel,g=this.childOfName("line"),A=f&&f.lineStyle,y=f&&f.hoverLineStyle,x=f&&f.labelModel,T=f&&f.hoverLabelModel;if(!f||l.hasItemOption){var S=l.getItemModel(u);A=S.getModel("lineStyle").getLineStyle(),y=S.getModel("emphasis.lineStyle").getLineStyle(),x=S.getModel("label"),T=S.getModel("emphasis.label")}var b=l.getItemVisual(u,"color"),_=O.retrieve3(l.getItemVisual(u,"opacity"),A.opacity,1);g.useStyle(O.defaults({strokeNoScale:!0,fill:"none",stroke:b,opacity:_},A)),g.hoverStyle=y,O.each(c,function(U){var V=this.childOfName(U);V&&(V.setColor(b),V.setStyle({opacity:_}))},this);var I=x.getShallow("show"),L=T.getShallow("show"),D=this.childOfName("label"),N,M;if((I||L)&&(N=b||"#000",M=p.getFormattedLabel(u,"normal",l.dataType),M==null)){var B=p.getRawValue(u);M=B==null?l.getName(u):isFinite(B)?h(B):B}var R=I?M:null,H=L?O.retrieve2(p.getFormattedLabel(u,"emphasis",l.dataType),M):null,F=D.style;if(R!=null||H!=null){w.setTextStyle(D.style,x,{text:R},{autoColor:N}),D.__textAlign=F.textAlign,D.__verticalAlign=F.textVerticalAlign,D.__position=x.get("position")||"middle";var K=x.get("distance");O.isArray(K)||(K=[K,K]),D.__labelDistance=K}H!=null?D.hoverStyle={text:H,textFill:T.getTextColor(!0),fontStyle:T.getShallow("fontStyle"),fontWeight:T.getShallow("fontWeight"),fontSize:T.getShallow("fontSize"),fontFamily:T.getShallow("fontFamily")}:D.hoverStyle={text:null},D.ignore=!I&&!L,w.setHoverStyle(this)},t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.updateLayout=function(l,u){this.setLinePoints(l.getItemLayout(u))},t.setLinePoints=function(l){var u=this.childOfName("line");n(u.shape,l),u.dirty()},O.inherits(s,w.Group);var a=s;j.exports=a},fmMI:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=C.each,w=C.filter,m=C.map,h=C.isArray,c=C.indexOf,i=C.isObject,r=C.isString,o=C.createHashMap,n=C.assert,e=C.clone,s=C.merge,t=C.extend,a=C.mixin,l=d("4NO4"),u=d("Qxkt"),f=d("bLfw"),p=d("iXHM"),g=d("5Hur"),A=d("D5nY"),y=A.resetSourceDefaulter,x="\0_ec_inner",T=u.extend({init:function(R,H,F,K){F=F||{},this.option=null,this._theme=new u(F),this._optionManager=K},setOption:function(R,H){n(!(x in R),"please use chart.getOption()"),this._optionManager.setOption(R,H),this.resetOption(null)},resetOption:function(R){var H=!1,F=this._optionManager;if(!R||R==="recreate"){var K=F.mountOption(R==="recreate");!this.option||R==="recreate"?_.call(this,K):(this.restoreData(),this.mergeOption(K)),H=!0}if((R==="timeline"||R==="media")&&this.restoreData(),!R||R==="recreate"||R==="timeline"){var U=F.getTimelineOption(this);U&&(this.mergeOption(U),H=!0)}if(!R||R==="recreate"||R==="media"){var V=F.getMediaOption(this,this._api);V.length&&v(V,function(z){this.mergeOption(z,H=!0)},this)}return H},mergeOption:function(R){var H=this.option,F=this._componentsMap,K=[];y(this),v(R,function(V,z){if(V==null)return;f.hasClass(z)?z&&K.push(z):H[z]=H[z]==null?e(V):s(H[z],V,!0)}),f.topologicalTravel(K,f.getAllClassMainTypes(),U,this);function U(V,z){var Y=l.normalizeToArray(R[V]),q=l.mappingToExists(F.get(V),Y);l.makeIdAndName(q),v(q,function(ie,ve){var Ee=ie.option;i(Ee)&&(ie.keyInfo.mainType=V,ie.keyInfo.subType=L(V,Ee,ie.exist))});var ce=I(F,z);H[V]=[],F.set(V,[]),v(q,function(ie,ve){var Ee=ie.exist,Le=ie.option;if(n(i(Le)||Ee,"Empty component definition"),!Le)Ee.mergeOption({},this),Ee.optionUpdated({},!1);else{var He=f.getClass(V,ie.keyInfo.subType,!0);if(Ee&&Ee.constructor===He)Ee.name=ie.keyInfo.name,Ee.mergeOption(Le,this),Ee.optionUpdated(Le,!1);else{var ge=t({dependentModels:ce,componentIndex:ve},ie.keyInfo);Ee=new He(Le,this,this,ge),t(Ee,ge),Ee.init(Le,this,this,ge),Ee.optionUpdated(null,!0)}}F.get(V)[ve]=Ee,H[V][ve]=Ee.option},this),V==="series"&&D(this,F.get("series"))}this._seriesIndicesMap=o(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var R=e(this.option);return v(R,function(H,F){if(f.hasClass(F)){for(var H=l.normalizeToArray(H),K=H.length-1;K>=0;K--)l.isIdInner(H[K])&&H.splice(K,1);R[F]=H}}),delete R[x],R},getTheme:function(){return this._theme},getComponent:function(R,H){var F=this._componentsMap.get(R);if(F)return F[H||0]},queryComponents:function(R){var H=R.mainType;if(!H)return[];var F=R.index,K=R.id,U=R.name,V=this._componentsMap.get(H);if(!V||!V.length)return[];var z;if(F!=null)h(F)||(F=[F]),z=w(m(F,function(ce){return V[ce]}),function(ce){return!!ce});else if(K!=null){var Y=h(K);z=w(V,function(ce){return Y&&c(K,ce.id)>=0||!Y&&ce.id===K})}else if(U!=null){var q=h(U);z=w(V,function(ce){return q&&c(U,ce.name)>=0||!q&&ce.name===U})}else z=V.slice();return N(z,R)},findComponents:function(R){var H=R.query,F=R.mainType,K=V(H),U=K?this.queryComponents(K):this._componentsMap.get(F);return z(N(U,R));function V(Y){var q=F+"Index",ce=F+"Id",ie=F+"Name";return Y&&(Y[q]!=null||Y[ce]!=null||Y[ie]!=null)?{mainType:F,index:Y[q],id:Y[ce],name:Y[ie]}:null}function z(Y){return R.filter?w(Y,R.filter):Y}},eachComponent:function(R,H,F){var K=this._componentsMap;if(typeof R=="function")F=H,H=R,K.each(function(V,z){v(V,function(Y,q){H.call(F,z,Y,q)})});else if(r(R))v(K.get(R),H,F);else if(i(R)){var U=this.findComponents(R);v(U,H,F)}},getSeriesByName:function(R){var H=this._componentsMap.get("series");return w(H,function(F){return F.name===R})},getSeriesByIndex:function(R){return this._componentsMap.get("series")[R]},getSeriesByType:function(R){var H=this._componentsMap.get("series");return w(H,function(F){return F.subType===R})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(R,H){M(this),v(this._seriesIndices,function(F){var K=this._componentsMap.get("series")[F];R.call(H,K,F)},this)},eachRawSeries:function(R,H){v(this._componentsMap.get("series"),R,H)},eachSeriesByType:function(R,H,F){M(this),v(this._seriesIndices,function(K){var U=this._componentsMap.get("series")[K];U.subType===R&&H.call(F,U,K)},this)},eachRawSeriesByType:function(R,H,F){return v(this.getSeriesByType(R),H,F)},isSeriesFiltered:function(R){return M(this),this._seriesIndicesMap.get(R.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(R,H){M(this);var F=w(this._componentsMap.get("series"),R,H);D(this,F)},restoreData:function(R){var H=this._componentsMap;D(this,H.get("series"));var F=[];H.each(function(K,U){F.push(U)}),f.topologicalTravel(F,f.getAllClassMainTypes(),function(K,U){v(H.get(K),function(V){(K!=="series"||!S(V,R))&&V.restoreData()})})}});function S(R,H){if(H){var F=H.seiresIndex,K=H.seriesId,U=H.seriesName;return F!=null&&R.componentIndex!==F||K!=null&&R.id!==K||U!=null&&R.name!==U}}function b(R,H){var F=R.color&&!R.colorLayer;v(H,function(K,U){if(U==="colorLayer"&&F)return;f.hasClass(U)||(typeof K=="object"?R[U]=R[U]?s(R[U],K,!1):e(K):R[U]==null&&(R[U]=K))})}function _(R){R=R,this.option={},this.option[x]=1,this._componentsMap=o({series:[]}),this._seriesIndices,this._seriesIndicesMap,b(R,this._theme.option),s(R,p,!1),this.mergeOption(R)}function I(R,H){h(H)||(H=H?[H]:[]);var F={};return v(H,function(K){F[K]=(R.get(K)||[]).slice()}),F}function L(R,H,F){var K=H.type?H.type:F?F.subType:f.determineSubType(R,H);return K}function D(R,H){R._seriesIndicesMap=o(R._seriesIndices=m(H,function(F){return F.componentIndex})||[])}function N(R,H){return H.hasOwnProperty("subType")?w(R,function(F){return F.subType===H.subType}):R}function M(R){}a(T,g);var B=T;j.exports=B},fyUT:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("q1tI"),m=d.n(w),h=d("TSYQ"),c=d.n(h),i=d("Ff2n"),r=d("rePB"),o=d("1OyB"),n=d("vuIU"),e=d("Ji7U"),s=d("md7G"),t=d("foSv"),a=d("4IlW");function l(z,Y){var q=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);Y&&(ce=ce.filter(function(ie){return Object.getOwnPropertyDescriptor(z,ie).enumerable})),q.push.apply(q,ce)}return q}function u(z){for(var Y=1;Y<arguments.length;Y++){var q=arguments[Y]!=null?arguments[Y]:{};Y%2?l(Object(q),!0).forEach(function(ce){Object(r.a)(z,ce,q[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(q)):l(Object(q)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(q,ce))})}return z}function f(z){var Y=p();return function(){var ce=Object(t.a)(z),ie;if(Y){var ve=Object(t.a)(this).constructor;ie=Reflect.construct(ce,arguments,ve)}else ie=ce.apply(this,arguments);return Object(s.a)(this,ie)}}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(z){return!1}}function g(){}function A(z){z.preventDefault()}var y=function(Y){return Y.replace(/[^\w.-]+/g,"")},x=200,T=600,S=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,b=function(Y){return Y!=null},_=function(Y,q){return q===Y||typeof q=="number"&&typeof Y=="number"&&isNaN(q)&&isNaN(Y)},I=function(z){Object(e.a)(q,z);var Y=f(q);function q(ce){var ie;Object(o.a)(this,q),ie=Y.call(this,ce),ie.onKeyDown=function(Le){var He=ie.props,ge=He.onKeyDown,Fe=He.onPressEnter;if(Le.keyCode===a.a.UP){var Q=ie.getRatio(Le);ie.up(Le,Q,null),ie.stop()}else if(Le.keyCode===a.a.DOWN){var fe=ie.getRatio(Le);ie.down(Le,fe,null),ie.stop()}else Le.keyCode===a.a.ENTER&&Fe&&Fe(Le);if(ie.recordCursorPosition(),ie.lastKeyCode=Le.keyCode,ge){for(var Je=arguments.length,ne=new Array(Je>1?Je-1:0),X=1;X<Je;X++)ne[X-1]=arguments[X];ge.apply(void 0,[Le].concat(ne))}},ie.onKeyUp=function(Le){var He=ie.props.onKeyUp;if(ie.stop(),ie.recordCursorPosition(),He){for(var ge=arguments.length,Fe=new Array(ge>1?ge-1:0),Q=1;Q<ge;Q++)Fe[Q-1]=arguments[Q];He.apply(void 0,[Le].concat(Fe))}},ie.onChange=function(Le){var He=ie.props.onChange;ie.state.focused&&(ie.inputting=!0),ie.rawInput=ie.props.parser(ie.getValueFromEvent(Le)),ie.setState({inputValue:ie.rawInput}),He(ie.toNumber(ie.rawInput))},ie.onMouseUp=function(){var Le=ie.props.onMouseUp;ie.recordCursorPosition(),Le&&Le.apply(void 0,arguments)},ie.onFocus=function(){var Le;ie.setState({focused:!0}),(Le=ie.props).onFocus.apply(Le,arguments)},ie.onBlur=function(){var Le=ie.props.onBlur;ie.inputting=!1,ie.setState({focused:!1});var He=ie.getCurrentValidValue(ie.state.inputValue),ge=ie.setValue(He,g);if(Le){var Fe=ie.input.value,Q=ie.getInputDisplayValue({focus:!1,value:ge});ie.input.value=Q&&Number(Q),Le.apply(void 0,arguments),ie.input.value=Fe}},ie.getRatio=function(Le){var He=1;return Le.metaKey||Le.ctrlKey?He=.1:Le.shiftKey&&(He=10),He},ie.getFullNum=function(Le){return isNaN(Le)?Le:/e/i.test(String(Le))?Number(Le).toFixed(18).replace(/\.?0+$/,""):Le},ie.getPrecision=function(Le){if(b(ie.props.precision))return ie.props.precision;var He=String(Le);if(He.indexOf("e-")>=0)return parseInt(He.slice(He.indexOf("e-")+2),10);var ge=0;return He.indexOf(".")>=0&&(ge=He.length-He.indexOf(".")-1),ge},ie.getInputDisplayValue=function(Le){var He=Le||ie.state,ge=He.focused,Fe=He.inputValue,Q=He.value,fe;ge?fe=Fe:fe=ie.toPrecisionAsStep(Q),fe==null&&(fe="");var Je=ie.formatWrapper(fe);return b(ie.props.decimalSeparator)&&(Je=Je.toString().replace(".",ie.props.decimalSeparator)),Je},ie.recordCursorPosition=function(){try{ie.cursorStart=ie.input.selectionStart,ie.cursorEnd=ie.input.selectionEnd,ie.currentValue=ie.input.value,ie.cursorBefore=ie.input.value.substring(0,ie.cursorStart),ie.cursorAfter=ie.input.value.substring(ie.cursorEnd)}catch(Le){}},ie.restoreByAfter=function(Le){if(Le===void 0)return!1;var He=ie.input.value,ge=He.lastIndexOf(Le);if(ge===-1)return!1;var Fe=ie.cursorBefore.length;return ie.lastKeyCode===a.a.DELETE&&ie.cursorBefore.charAt(Fe-1)===Le[0]?(ie.fixCaret(Fe,Fe),!0):ge+Le.length===He.length?(ie.fixCaret(ge,ge),!0):!1},ie.partRestoreByAfter=function(Le){return Le===void 0?!1:Array.prototype.some.call(Le,function(He,ge){var Fe=Le.substring(ge);return ie.restoreByAfter(Fe)})},ie.isNotCompleteNumber=function(Le){return isNaN(Le)||Le===""||Le===null||Le&&Le.toString().indexOf(".")===Le.toString().length-1},ie.stop=function(){ie.autoStepTimer&&clearTimeout(ie.autoStepTimer)},ie.down=function(Le,He,ge){ie.pressingUpOrDown=!0,ie.step("down",Le,He,ge)},ie.up=function(Le,He,ge){ie.pressingUpOrDown=!0,ie.step("up",Le,He,ge)},ie.saveInput=function(Le){ie.input=Le};var ve=ce.value;ve===void 0&&(ve=ce.defaultValue),ie.state={focused:ce.autoFocus};var Ee=ie.getValidValue(ie.toNumber(ve));return ie.state=u(u({},ie.state),{},{inputValue:ie.toPrecisionAsStep(Ee),value:Ee}),ie}return Object(n.a)(q,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(ie){var ve=this.props,Ee=ve.value,Le=ve.onChange,He=ve.max,ge=ve.min,Fe=this.state.focused;if(ie){if(!_(ie.value,Ee)||!_(ie.max,He)||!_(ie.min,ge)){var Q=Fe?Ee:this.getValidValue(Ee),fe;this.pressingUpOrDown?fe=Q:this.inputting?fe=this.rawInput:fe=this.toPrecisionAsStep(Q),this.setState({value:Q,inputValue:fe})}var Je="value"in this.props?Ee:this.state.value;"max"in this.props&&ie.max!==He&&typeof Je=="number"&&Je>He&&Le&&Le(He),"min"in this.props&&ie.min!==ge&&typeof Je=="number"&&Je<ge&&Le&&Le(ge)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ne=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.a.BACKSPACE?ne=this.cursorStart-1:this.lastKeyCode===a.a.DELETE&&(ne=this.cursorStart):ne=this.input.value.length,this.fixCaret(ne,ne)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case a.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case a.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(ie){var ve=ie;return ve===""?ve="":this.isNotCompleteNumber(parseFloat(ve))?ve=this.state.value:ve=this.getValidValue(ve),this.toNumber(ve)}},{key:"getValueFromEvent",value:function(ie){var ve=ie.target.value.trim().replace(/。/g,".");return b(this.props.decimalSeparator)&&(ve=ve.replace(this.props.decimalSeparator,".")),ve}},{key:"getValidValue",value:function(ie){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Le=parseFloat(ie);return isNaN(Le)?ie:(Le<ve&&(Le=ve),Le>Ee&&(Le=Ee),Le)}},{key:"setValue",value:function(ie,ve){var Ee=this.props.precision,Le=this.isNotCompleteNumber(parseFloat(ie))?null:parseFloat(ie),He=this.state.value,ge=He===void 0?null:He,Fe=this.state.inputValue,Q=Fe===void 0?null:Fe,fe=typeof Le=="number"?Le.toFixed(Ee):"".concat(Le),Je=Le!==ge||fe!=="".concat(Q);return"value"in this.props?(Q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Q},ve)):this.setState({value:Le,inputValue:this.toPrecisionAsStep(ie)},ve),Je&&this.props.onChange(Le),Le}},{key:"getMaxPrecision",value:function(ie){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ee=this.props,Le=Ee.precision,He=Ee.step;if(b(Le))return Le;var ge=this.getPrecision(ve),Fe=this.getPrecision(He),Q=this.getPrecision(ie);return ie?Math.max(Q,ge+Fe):ge+Fe}},{key:"getPrecisionFactor",value:function(ie){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ee=this.getMaxPrecision(ie,ve);return Math.pow(10,Ee)}},{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(ie){return this.props.formatter?this.props.formatter(ie):ie}},{key:"toPrecisionAsStep",value:function(ie){if(this.isNotCompleteNumber(ie)||ie==="")return ie;var ve=Math.abs(this.getMaxPrecision(ie));return isNaN(ve)?ie.toString():Number(ie).toFixed(ve)}},{key:"toNumber",value:function(ie){var ve=this.props.precision,Ee=this.state.focused,Le=ie&&ie.length>16&&Ee;return this.isNotCompleteNumber(ie)||Le?ie:b(ve)?Math.round(ie*Math.pow(10,ve))/Math.pow(10,ve):Number(ie)}},{key:"upStep",value:function(ie,ve){var Ee=this.props.step,Le=this.getPrecisionFactor(ie,ve),He=Math.abs(this.getMaxPrecision(ie,ve)),ge=((Le*ie+Le*Ee*ve)/Le).toFixed(He);return this.toNumber(ge)}},{key:"downStep",value:function(ie,ve){var Ee=this.props.step,Le=this.getPrecisionFactor(ie,ve),He=Math.abs(this.getMaxPrecision(ie,ve)),ge=((Le*ie-Le*Ee*ve)/Le).toFixed(He);return this.toNumber(ge)}},{key:"step",value:function(ie,ve){var Ee=this,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,He=arguments.length>3?arguments[3]:void 0;this.stop(),ve&&(ve.persist(),ve.preventDefault());var ge=this.props;if(ge.disabled)return;var Fe=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(Fe))return;var Q=this["".concat(ie,"Step")](Fe,Le),fe=Q>ge.max||Q<ge.min;if(Q>ge.max?Q=ge.max:Q<ge.min&&(Q=ge.min),this.setValue(Q,null),this.setState({focused:!0},function(){Ee.pressingUpOrDown=!1}),fe)return;this.autoStepTimer=setTimeout(function(){Ee[ie](ve,Le,!0)},He?x:T)}},{key:"fixCaret",value:function(ie,ve){if(ie===void 0||ve===void 0||!this.input||!this.input.value)return;try{var Ee=this.input.selectionStart,Le=this.input.selectionEnd;(ie!==Ee||ve!==Le)&&this.input.setSelectionRange(ie,ve)}catch(He){}}},{key:"render",value:function(){var ie,ve=this.props,Ee=ve.prefixCls,Le=ve.disabled,He=ve.readOnly,ge=ve.useTouch,Fe=ve.autoComplete,Q=ve.upHandler,fe=ve.downHandler,Je=ve.className,ne=ve.max,X=ve.min,G=ve.style,te=ve.title,we=ve.onMouseEnter,he=ve.onMouseLeave,Pe=ve.onMouseOver,Oe=ve.onMouseOut,le=ve.required,me=ve.onClick,_e=ve.tabIndex,$e=ve.type,gt=ve.placeholder,et=ve.id,Ie=ve.inputMode,rt=ve.pattern,Ge=ve.step,vt=ve.maxLength,Ot=ve.autoFocus,Et=ve.name,Tt=ve.onPaste,Rt=ve.onInput,Be=Object(i.a)(ve,["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"]),Z=this.state,J=Z.value,je=Z.focused,Re=c()(Ee,(ie={},Object(r.a)(ie,Je,!!Je),Object(r.a)(ie,"".concat(Ee,"-disabled"),Le),Object(r.a)(ie,"".concat(Ee,"-focused"),je),ie)),oe={};Object.keys(Be).forEach(function(mt){(mt.substr(0,5)==="data-"||mt.substr(0,5)==="aria-"||mt==="role")&&(oe[mt]=Be[mt])});var yt=!He&&!Le,zt=this.getInputDisplayValue(null),lt=(J||J===0)&&(isNaN(J)||Number(J)>=ne),$t=(J||J===0)&&(isNaN(J)||Number(J)<=X),cr=lt||Le||He,cn=$t||Le||He,pr=c()("".concat(Ee,"-handler"),"".concat(Ee,"-handler-up"),Object(r.a)({},"".concat(Ee,"-handler-up-disabled"),cr)),gr=c()("".concat(Ee,"-handler"),"".concat(Ee,"-handler-down"),Object(r.a)({},"".concat(Ee,"-handler-down-disabled"),cn)),Zt=ge?{onTouchStart:cr?g:this.up,onTouchEnd:this.stop}:{onMouseDown:cr?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Vt=ge?{onTouchStart:cn?g:this.down,onTouchEnd:this.stop}:{onMouseDown:cn?g:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return m.a.createElement("div",{className:Re,style:G,title:te,onMouseEnter:we,onMouseLeave:he,onMouseOver:Pe,onMouseOut:Oe,onFocus:function(){return null},onBlur:function(){return null}},m.a.createElement("div",{className:"".concat(Ee,"-handler-wrap")},m.a.createElement("span",Object.assign({unselectable:"on"},Zt,{role:"button","aria-label":"Increase Value","aria-disabled":cr,className:pr}),Q||m.a.createElement("span",{unselectable:"on",className:"".concat(Ee,"-handler-up-inner"),onClick:A})),m.a.createElement("span",Object.assign({unselectable:"on"},Vt,{role:"button","aria-label":"Decrease Value","aria-disabled":cn,className:gr}),fe||m.a.createElement("span",{unselectable:"on",className:"".concat(Ee,"-handler-down-inner"),onClick:A}))),m.a.createElement("div",{className:"".concat(Ee,"-input-wrap")},m.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":X,"aria-valuemax":ne,"aria-valuenow":J,required:le,type:$e,placeholder:gt,onPaste:Tt,onClick:me,onMouseUp:this.onMouseUp,className:"".concat(Ee,"-input"),tabIndex:_e,autoComplete:Fe,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:yt?this.onKeyDown:g,onKeyUp:yt?this.onKeyUp:g,autoFocus:Ot,maxLength:vt,readOnly:He,disabled:Le,max:ne,min:X,step:Ge,name:Et,title:te,id:et,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(zt),pattern:rt,inputMode:Ie,onInput:Rt},oe))))}}]),q}(m.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:S,min:-S,step:1,style:{},onChange:g,onKeyDown:g,onPressEnter:g,onFocus:g,onBlur:g,parser:y,required:!1,autoComplete:"off"};var L=I,D=L,N=d("FH2Y"),M=d.n(N),B=d("HQEm"),R=d.n(B),H=d("H84U"),F=d("3Nzz"),K=function(z,Y){var q={};for(var ce in z)Object.prototype.hasOwnProperty.call(z,ce)&&Y.indexOf(ce)<0&&(q[ce]=z[ce]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ce=Object.getOwnPropertySymbols(z);ie<ce.length;ie++)Y.indexOf(ce[ie])<0&&Object.prototype.propertyIsEnumerable.call(z,ce[ie])&&(q[ce[ie]]=z[ce[ie]]);return q},U=w.forwardRef(function(z,Y){var q=function(ie){var ve=ie.getPrefixCls,Ee=ie.direction,Le=z.className,He=z.size,ge=z.prefixCls,Fe=z.readOnly,Q=K(z,["className","size","prefixCls","readOnly"]),fe=ve("input-number",ge),Je=w.createElement(M.a,{className:"".concat(fe,"-handler-up-inner")}),ne=w.createElement(R.a,{className:"".concat(fe,"-handler-down-inner")});return w.createElement(F.b.Consumer,null,function(X){var G,te=He||X,we=c()((G={},v()(G,"".concat(fe,"-lg"),te==="large"),v()(G,"".concat(fe,"-sm"),te==="small"),v()(G,"".concat(fe,"-rtl"),Ee==="rtl"),v()(G,"".concat(fe,"-readonly"),Fe),G),Le);return w.createElement(D,E()({ref:Y,className:we,upHandler:Je,downHandler:ne,prefixCls:fe,readOnly:Fe},Q))})};return w.createElement(H.a,null,q)});U.defaultProps={step:1};var V=P.a=U},g0SD:function(j,P,d){var O=d("bYtY"),E=d("9wZj"),C=d("OELB"),v=d("YXkt"),w=d("kj2x"),m=d("iPDy");function h(r,o,n){var e=o.coordinateSystem;r.each(function(s){var t=r.getItemModel(s),a,l=C.parsePercent(t.get("x"),n.getWidth()),u=C.parsePercent(t.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))a=[l,u];else if(o.getMarkerPosition)a=o.getMarkerPosition(r.getValues(r.dimensions,s));else if(e){var f=r.get(e.dimensions[0],s),p=r.get(e.dimensions[1],s);a=e.dataToPoint([f,p])}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u),r.setItemLayout(s,a)})}var c=m.extend({type:"markPoint",updateTransform:function(r,o,n){o.eachSeries(function(e){var s=e.markPointModel;s&&(h(s.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(s))},this)},renderSeries:function(r,o,n,e){var s=r.coordinateSystem,t=r.id,a=r.getData(),l=this.markerGroupMap,u=l.get(t)||l.set(t,new E),f=i(s,r,o);o.setData(f),h(o.getData(),r,e),f.each(function(p){var g=f.getItemModel(p),A=g.getShallow("symbol"),y=g.getShallow("symbolSize"),x=O.isFunction(A),T=O.isFunction(y);if(x||T){var S=o.getRawValue(p),b=o.getDataParams(p);x&&(A=A(S,b)),T&&(y=y(S,b))}f.setItemVisual(p,{symbol:A,symbolSize:y,color:g.get("itemStyle.color")||a.getVisual("color")})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(p){p.traverse(function(g){g.dataModel=o})}),u.__keep=!0,u.group.silent=o.get("silent")||r.get("silent")}});function i(r,o,n){var e;r?e=O.map(r&&r.dimensions,function(a){var l=o.getData().getDimensionInfo(o.getData().mapDimension(a))||{};return O.defaults({name:a},l)}):e=[{name:"value",type:"float"}];var s=new v(e,n),t=O.map(n.get("data"),O.curry(w.dataTransform,o));return r&&(t=O.filter(t,O.curry(w.dataFilter,r))),s.initData(t,null,r?w.dimValueGetter:function(a){return a.value}),s}j.exports=c},g7p0:function(j,P,d){var O=d("bYtY"),E=d("bLfw"),C=d("+TT/"),v=C.getLayoutParams,w=C.sizeCalculable,m=C.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,o,n,e){var s=v(r);h.superApply(this,"init",arguments),c(r,s)},mergeOption:function(r,o){h.superApply(this,"mergeOption",arguments),c(this.option,r)}});function c(r,o){var n=r.cellSize;O.isArray(n)?n.length===1&&(n[1]=n[0]):n=r.cellSize=[n,n];var e=O.map([0,1],function(s){return w(o,s)&&(n[s]="auto"),n[s]!=null&&n[s]!=="auto"});m(r,o,{type:"box",ignoreSize:e})}var i=h;j.exports=i},g9YV:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("pED+"),v=d.n(C),w=d("+L6B"),m=d("R9oj"),h=d("7Kak"),c=d("sRBo"),i=d("qVdP"),r=d("T2oS"),o=d("DjyN"),n=d("5Dmo")},gIYZ:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={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"};P.default=O},gKaM:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},gPAo:function(j,P){function d(v){return v}function O(v,w,m,h,c){this._old=v,this._new=w,this._oldKeyGetter=m||d,this._newKeyGetter=h||d,this.context=c}O.prototype={constructor:O,add:function(v){return this._add=v,this},update:function(v){return this._update=v,this},remove:function(v){return this._remove=v,this},execute:function(){var v=this._old,w=this._new,m={},h={},c=[],i=[],r;for(E(v,m,c,"_oldKeyGetter",this),E(w,h,i,"_newKeyGetter",this),r=0;r<v.length;r++){var o=c[r],n=h[o];if(n!=null){var e=n.length;e?(e===1&&(h[o]=null),n=n.shift()):h[o]=null,this._update&&this._update(n,r)}else this._remove&&this._remove(r)}for(var r=0;r<i.length;r++){var o=i[r];if(h.hasOwnProperty(o)){var n=h[o];if(n==null)continue;if(!n.length)this._add&&this._add(n);else for(var s=0,e=n.length;s<e;s++)this._add&&this._add(n[s])}}}};function E(v,w,m,h,c){for(var i=0;i<v.length;i++){var r="_ec_"+c[h](v[i],i),o=w[r];o==null?(m.push(r),w[r]=i):(o.length||(w[r]=o=[o]),o.push(i))}}var C=O;j.exports=C},gRFJ:function(j,P,d){j.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(j){return j<10?"0"+j:j}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(j){return rx_escapable.lastIndex=0,rx_escapable.test(j)?'"'+j.replace(rx_escapable,function(P){var d=meta[P];return typeof d=="string"?d:"\\u"+("0000"+P.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+j+'"'}function str(j,P){var d,O,E,C,v=gap,w,m=P[j];m&&typeof m=="object"&&typeof m.toJSON=="function"&&(m=m.toJSON(j)),typeof rep=="function"&&(m=rep.call(P,j,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,w=[],Object.prototype.toString.apply(m)==="[object Array]"){for(C=m.length,d=0;d<C;d+=1)w[d]=str(d,m)||"null";return E=w.length===0?"[]":gap?`[
`+gap+w.join(`,
`+gap)+`
`+v+"]":"["+w.join(",")+"]",gap=v,E}if(rep&&typeof rep=="object")for(C=rep.length,d=0;d<C;d+=1)typeof rep[d]=="string"&&(O=rep[d],E=str(O,m),E&&w.push(quote(O)+(gap?": ":":")+E));else for(O in m)Object.prototype.hasOwnProperty.call(m,O)&&(E=str(O,m),E&&w.push(quote(O)+(gap?": ":":")+E));return E=w.length===0?"{}":gap?`{
`+gap+w.join(`,
`+gap)+`
`+v+"}":"{"+w.join(",")+"}",gap=v,E}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(j,P,d){var O;if(gap="",indent="",typeof d=="number")for(O=0;O<d;O+=1)indent+=" ";else typeof d=="string"&&(indent=d);if(rep=P,P&&typeof P!="function"&&(typeof P!="object"||typeof P.length!="number"))throw new Error("JSON.stringify");return str("",{"":j})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(j,P){var d,O,E=j[P];if(E&&typeof E=="object")for(d in E)Object.prototype.hasOwnProperty.call(E,d)&&(O=walk(E,d),O!==void 0?E[d]=O:delete E[d]);return reviver.call(j,P,E)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(j){return"\\u"+("0000"+j.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(j,P,d){var O=d("+TT/"),E=d("bYtY"),C=d("4NO4"),v=C.groupData;function w(_,I,L){_.eachSeriesByType("sankey",function(D){var N=D.get("nodeWidth"),M=D.get("nodeGap"),B=m(D,I);D.layoutInfo=B;var R=B.width,H=B.height,F=D.getGraph(),K=F.nodes,U=F.edges;c(K);var V=E.filter(K,function(ce){return ce.getLayout().value===0}),z=V.length!==0?0:D.get("layoutIterations"),Y=D.get("orient"),q=D.get("nodeAlign");h(K,U,N,M,R,H,z,Y,q)})}function m(_,I){return O.getLayoutRect(_.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function h(_,I,L,D,N,M,B,R,H){i(_,I,L,N,M,R,H),s(_,I,M,N,D,B,R),b(_,R)}function c(_){E.each(_,function(I){var L=T(I.outEdges,x),D=T(I.inEdges,x),N=I.getValue()||0,M=Math.max(L,D,N);I.setLayout({value:M},!0)})}function i(_,I,L,D,N,M,B){for(var R=[],H=[],F=[],K=[],U=0,V=0,z=0;z<I.length;z++)R[z]=1;for(z=0;z<_.length;z++)H[z]=_[z].inEdges.length,H[z]===0&&F.push(_[z]);for(var Y=-1;F.length;){for(var q=0;q<F.length;q++){var ce=F[q],ie=ce.hostGraph.data.getRawDataItem(ce.dataIndex),ve=ie.depth!=null&&ie.depth>=0;ve&&ie.depth>Y&&(Y=ie.depth),ce.setLayout({depth:ve?ie.depth:U},!0),M==="vertical"?ce.setLayout({dy:L},!0):ce.setLayout({dx:L},!0);for(var Ee=0;Ee<ce.outEdges.length;Ee++){var Le=ce.outEdges[Ee],He=I.indexOf(Le);R[He]=0;var ge=Le.node2,Fe=_.indexOf(ge);--H[Fe]===0&&K.indexOf(ge)<0&&K.push(ge)}}++U,F=K,K=[]}for(z=0;z<R.length;z++)if(R[z]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Q=Y>U-1?Y:U-1;B&&B!=="left"&&o(_,B,M,Q);var V=M==="vertical"?(N-L)/Q:(D-L)/Q;e(_,V,M)}function r(_){var I=_.hostGraph.data.getRawDataItem(_.dataIndex);return I.depth!=null&&I.depth>=0}function o(_,I,L,D){if(I==="right"){for(var N=[],M=_,B=0;M.length;){for(var R=0;R<M.length;R++){var H=M[R];H.setLayout({skNodeHeight:B},!0);for(var F=0;F<H.inEdges.length;F++){var K=H.inEdges[F];N.indexOf(K.node1)<0&&N.push(K.node1)}}M=N,N=[],++B}E.each(_,function(U){r(U)||U.setLayout({depth:Math.max(0,D-U.getLayout().skNodeHeight)},!0)})}else I==="justify"&&n(_,D)}function n(_,I){E.each(_,function(L){!r(L)&&!L.outEdges.length&&L.setLayout({depth:I},!0)})}function e(_,I,L){E.each(_,function(D){var N=D.getLayout().depth*I;L==="vertical"?D.setLayout({y:N},!0):D.setLayout({x:N},!0)})}function s(_,I,L,D,N,M,B){var R=t(_,B);a(R,I,L,D,N,B),l(R,N,L,D,B);for(var H=1;M>0;M--)H*=.99,u(R,H,B),l(R,N,L,D,B),S(R,H,B),l(R,N,L,D,B)}function t(_,I){var L=[],D=I==="vertical"?"y":"x",N=v(_,function(M){return M.getLayout()[D]});return N.keys.sort(function(M,B){return M-B}),E.each(N.keys,function(M){L.push(N.buckets.get(M))}),L}function a(_,I,L,D,N,M){var B=Infinity;E.each(_,function(R){var H=R.length,F=0;E.each(R,function(U){F+=U.getLayout().value});var K=M==="vertical"?(D-(H-1)*N)/F:(L-(H-1)*N)/F;K<B&&(B=K)}),E.each(_,function(R){E.each(R,function(H,F){var K=H.getLayout().value*B;M==="vertical"?(H.setLayout({x:F},!0),H.setLayout({dx:K},!0)):(H.setLayout({y:F},!0),H.setLayout({dy:K},!0))})}),E.each(I,function(R){var H=+R.getValue()*B;R.setLayout({dy:H},!0)})}function l(_,I,L,D,N){var M=N==="vertical"?"x":"y";E.each(_,function(B){B.sort(function(q,ce){return q.getLayout()[M]-ce.getLayout()[M]});for(var R,H,F,K=0,U=B.length,V=N==="vertical"?"dx":"dy",z=0;z<U;z++)H=B[z],F=K-H.getLayout()[M],F>0&&(R=H.getLayout()[M]+F,N==="vertical"?H.setLayout({x:R},!0):H.setLayout({y:R},!0)),K=H.getLayout()[M]+H.getLayout()[V]+I;var Y=N==="vertical"?D:L;if(F=K-I-Y,F>0)for(R=H.getLayout()[M]-F,N==="vertical"?H.setLayout({x:R},!0):H.setLayout({y:R},!0),K=R,z=U-2;z>=0;--z)H=B[z],F=H.getLayout()[M]+H.getLayout()[V]+I-K,F>0&&(R=H.getLayout()[M]-F,N==="vertical"?H.setLayout({x:R},!0):H.setLayout({y:R},!0)),K=H.getLayout()[M]})}function u(_,I,L){E.each(_.slice().reverse(),function(D){E.each(D,function(N){if(N.outEdges.length){var M=T(N.outEdges,f,L)/T(N.outEdges,x,L);if(isNaN(M)){var B=N.outEdges.length;M=B?T(N.outEdges,p,L)/B:0}if(L==="vertical"){var R=N.getLayout().x+(M-y(N,L))*I;N.setLayout({x:R},!0)}else{var H=N.getLayout().y+(M-y(N,L))*I;N.setLayout({y:H},!0)}}})})}function f(_,I){return y(_.node2,I)*_.getValue()}function p(_,I){return y(_.node2,I)}function g(_,I){return y(_.node1,I)*_.getValue()}function A(_,I){return y(_.node1,I)}function y(_,I){return I==="vertical"?_.getLayout().x+_.getLayout().dx/2:_.getLayout().y+_.getLayout().dy/2}function x(_){return _.getValue()}function T(_,I,L){for(var D=0,N=_.length,M=-1;++M<N;){var B=+I.call(_,_[M],L);isNaN(B)||(D+=B)}return D}function S(_,I,L){E.each(_,function(D){E.each(D,function(N){if(N.inEdges.length){var M=T(N.inEdges,g,L)/T(N.inEdges,x,L);if(isNaN(M)){var B=N.inEdges.length;M=B?T(N.inEdges,A,L)/B:0}if(L==="vertical"){var R=N.getLayout().x+(M-y(N,L))*I;N.setLayout({x:R},!0)}else{var H=N.getLayout().y+(M-y(N,L))*I;N.setLayout({y:H},!0)}}})})}function b(_,I){var L=I==="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(B){B.setLayout({sy:N},!0),N+=B.getLayout().dy}),E.each(D.inEdges,function(B){B.setLayout({ty:M},!0),M+=B.getLayout().dy})})}j.exports=w},"gb/T":function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.ECB=function(){var E=O.lib.BlockCipherMode.extend();return E.Encryptor=E.extend({processBlock:function(v,w){this._cipher.encryptBlock(v,w)}}),E.Decryptor=E.extend({processBlock:function(v,w){this._cipher.decryptBlock(v,w)}}),E}(),O.mode.ECB})},"giR+":function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("QbM5"),v=d.n(C)},gut8:function(j,P){var d={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;P.ContextCachedBy=d,P.WILL_BE_RESTORED=O},gvm7:function(j,P,d){var O=d("bYtY"),E=d("dqUG");function C(w){this._zr=w.getZr(),this._show=!1,this._hideTimeout}C.prototype={constructor:C,_enterable:!0,update:function(){},show:function(w){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(w,m,h){this.el&&this._zr.remove(this.el);for(var c={},i=w,r="{marker",o="|}",n=i.indexOf(r);n>=0;){var e=i.indexOf(o),s=i.substr(n+r.length,e-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]},i=i.substr(e+1),n=i.indexOf("{marker")}this.el=new E({style:{rich:c,text:w,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 t=this;this.el.on("mouseover",function(){t._enterable&&(clearTimeout(t._hideTimeout),t._show=!0),t._inContent=!0}),this.el.on("mouseout",function(){t._enterable&&(t._show&&t.hideLater(t._hideDelay)),t._inContent=!1})},setEnterable:function(w){this._enterable=w},getSize:function(){var w=this.el.getBoundingRect();return[w.width,w.height]},moveTo:function(w,m){this.el&&this.el.attr("position",[w,m])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(w){this._show&&!(this._inContent&&this._enterable)&&(w?(this._hideDelay=w,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),w)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var w=this.getSize();return{width:w[0],height:w[1]}}};var v=C;j.exports=v},gwTy:function(j,P,d){},h54F:function(j,P,d){var O=d("ProS"),E=d("YXkt"),C=d("bYtY"),v=d("4NO4"),w=v.defaultEmphasis,m=d("Qxkt"),h=d("7aKB"),c=h.encodeHTML,i=d("I3/A"),r=d("xKMd"),o=O.extendSeriesModel({type:"series.graph",init:function(e){o.superApply(this,"init",arguments);var s=this;function t(){return s._categoriesData}this.legendVisualProvider=new r(t,t),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){o.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){o.superApply(this,"mergeDefaultAndTheme",arguments),w(e,["edgeLabel"],["show"])},getInitialData:function(e,s){var t=e.edges||e.links||[],a=e.data||e.nodes||[],l=this;if(a&&t)return i(a,t,this,!0,u).data;function u(f,p){f.wrapMethod("getItemModel",function(S){var b=l._categoriesModels,_=S.getShallow("category"),I=b[_];return I&&(I.parentModel=S.parentModel,S.parentModel=I),S});var g=l.getModel("edgeLabel"),A=new m({label:g.option},g.parentModel,s),y=l.getModel("emphasis.edgeLabel"),x=new m({emphasis:{label:y.option}},y.parentModel,s);p.wrapMethod("getItemModel",function(S){return S.customizeGetParent(T),S});function T(S){return S=this.parsePath(S),S&&S[0]==="label"?A:S&&S[0]==="emphasis"&&S[1]==="label"?x:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,s,t){if(t==="edge"){var a=this.getData(),l=this.getDataParams(e,t),u=a.graph.getEdgeByIndex(e),f=a.getName(u.node1.dataIndex),p=a.getName(u.node2.dataIndex),g=[];return f!=null&&g.push(f),p!=null&&g.push(p),g=c(g.join(" > ")),l.value&&(g+=" : "+c(l.value)),g}else return o.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=C.map(this.option.categories||[],function(t){return t.value!=null?t:C.extend({value:0},t)}),s=new E(["value"],this);s.initData(e),this._categoriesData=s,this._categoriesModels=s.mapArray(function(t){return s.getItemModel(t,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return o.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=o;j.exports=n},h7HQ:function(j,P,d){var O=d("y+Vt"),E=d("T6xi"),C=O.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(w,m){E.buildPath(w,m,!0)}});j.exports=C},h8O9:function(j,P,d){var O=d("bYtY"),E=O.map,C=d("zM3Q"),v=d("7hqr"),w=v.isDimensionStacked;function m(h){return{seriesType:h,plan:C(),reset:function(c){var i=c.getData(),r=c.coordinateSystem,o=c.pipelineContext,n=o.large;if(!r)return;var e=E(r.dimensions,function(l){return i.mapDimension(l)}).slice(0,2),s=e.length,t=i.getCalculationInfo("stackResultDimension");w(i,e[0])&&(e[0]=t),w(i,e[1])&&(e[1]=t);function a(l,u){for(var f=l.end-l.start,p=n&&new Float32Array(f*s),g=l.start,A=0,y=[],x=[];g<l.end;g++){var T;if(s===1){var S=u.get(e[0],g);T=!isNaN(S)&&r.dataToPoint(S,null,x)}else{var S=y[0]=u.get(e[0],g),b=y[1]=u.get(e[1],g);T=!isNaN(S)&&!isNaN(b)&&r.dataToPoint(y,null,x)}n?(p[A++]=T?T[0]:NaN,p[A++]=T?T[1]:NaN):u.setItemLayout(g,T&&T.slice()||[NaN,NaN])}n&&u.setLayout("symbolPoints",p)}return s&&{progress:a}}}}j.exports=m},hD7B:function(j,P,d){var O=d("bYtY"),E=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function C(w){O.each(E,function(m){this[m]=O.bind(w[m],w)},this)}var v=C;j.exports=v},hFmY:function(j,P,d){var O=d("ProS"),E={type:"axisAreaSelect",event:"axisAreaSelected"};O.registerAction(E,function(C,v){v.eachComponent({mainType:"parallelAxis",query:C},function(w){w.axis.model.setActiveIntervals(C.intervals)})}),O.registerAction("parallelAxisExpand",function(C,v){v.eachComponent({mainType:"parallel",query:C},function(w){w.setAxisExpand(C)})})},hJvP:function(j,P,d){var O=d("2dDv"),E=d("IDmD");function C(v,w){var m=[];return v.eachComponent("parallel",function(h,c){var i=new O(h,v,w);i.name="parallel_"+c,i.resize(h,w),h.coordinateSystem=i,i.model=h,m.push(i)}),v.eachSeries(function(h){if(h.get("coordinateSystem")==="parallel"){var c=v.queryComponents({mainType:"parallel",index:h.get("parallelIndex"),id:h.get("parallelId")})[0];h.coordinateSystem=c.coordinateSystem}}),m}E.register("parallel",{create:C})},hM6l:function(j,P,d){var O=d("bYtY"),E=O.each,C=O.map,v=d("OELB"),w=v.linearMap,m=v.getPixelPrecision,h=v.round,c=d("4HMb"),i=c.createAxisTicks,r=c.createAxisLabels,o=c.calculateCategoryInterval,n=[0,1],e=function(l,u,f){this.dim=l,this.scale=u,this._extent=f||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,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())),w(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 g=w(l,f,n,u);return this.scale.scale(g)},pointToData:function(l,u){},getTicksCoords:function(l){l=l||{};var u=l.tickModel||this.getTickModel(),f=i(this,u),p=f.ticks,g=C(p,function(y){return{coord:this.dataToCoord(y),tickValue:y}},this),A=u.get("alignWithLabel");return t(this,g,A,l.clamp),g},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=C(f,function(g){return C(g,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 o(this)}};function s(l,u){var f=l[1]-l[0],p=u,g=f/p/2;l[0]+=g,l[1]-=g}function t(l,u,f,p){var g=u.length;if(!l.onBand||f||!g)return;var A=l.getExtent(),y,x;if(g===1)u[0].coord=A[0],y=u[1]={coord:A[0]};else{var T=u[g-1].tickValue-u[0].tickValue,S=(u[g-1].coord-u[0].coord)/T;E(u,function(L){L.coord-=S/2});var b=l.scale.getExtent();x=1+b[1]-u[g-1].tickValue,y={coord:u[g-1].coord+S*x},u.push(y)}var _=A[0]>A[1];I(u[0].coord,A[0])&&(p?u[0].coord=A[0]:u.shift()),p&&I(A[0],u[0].coord)&&u.unshift({coord:A[0]}),I(A[1],y.coord)&&(p?y.coord=A[1]:u.pop()),p&&I(y.coord,A[1])&&u.push({coord:A[1]});function I(L,D){return L=h(L),D=h(D),_?L>D:L<D}}var a=e;j.exports=a},hNWo:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("Qxkt"),v=d("4NO4"),w=v.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)}},i=O.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(o,n,e){this.mergeDefaultAndTheme(o,e),o.selected=o.selected||{},this._updateSelector(o)},mergeOption:function(o){i.superCall(this,"mergeOption",o),this._updateSelector(o)},_updateSelector:function(o){var n=o.selector;n===!0&&(n=o.selector=["all","inverse"]),E.isArray(n)&&E.each(n,function(e,s){E.isString(e)&&(e={type:e}),n[s]=E.merge(e,c[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var o=this._data;if(o[0]&&this.get("selectedMode")==="single"){for(var n=!1,e=0;e<o.length;e++){var s=o[e].get("name");if(this.isSelected(s)){this.select(s),n=!0;break}}!n&&this.select(o[0].get("name"))}},_updateData:function(o){var n=[],e=[];o.eachRawSeries(function(a){var l=a.name;e.push(l);var u;if(a.legendVisualProvider){var f=a.legendVisualProvider,p=f.getAllNames();o.isSeriesFiltered(a)||(e=e.concat(p)),p.length?n=n.concat(p):u=!0}else u=!0;u&&w(a)&&n.push(a.name)}),this._availableNames=e;var s=this.get("data")||n,t=E.map(s,function(a){return(typeof a=="string"||typeof a=="number")&&(a={name:a}),new C(a,this,this.ecModel)},this);this._data=t},getData:function(){return this._data},select:function(o){var n=this.option.selected,e=this.get("selectedMode");if(e==="single"){var s=this._data;E.each(s,function(t){n[t.get("name")]=!1})}n[o]=!0},unSelect:function(o){this.get("selectedMode")!=="single"&&(this.option.selected[o]=!1)},toggleSelected:function(o){var n=this.option.selected;n.hasOwnProperty(o)||(n[o]=!0),this[n[o]?"unSelect":"select"](o)},allSelect:function(){var o=this._data,n=this.option.selected;E.each(o,function(e){n[e.get("name",!0)]=!0})},inverseSelect:function(){var o=this._data,n=this.option.selected;E.each(o,function(e){var s=e.get("name",!0);n.hasOwnProperty(s)||(n[s]=!0),n[s]=!n[s]})},isSelected:function(o){var n=this.option.selected;return!(n.hasOwnProperty(o)&&!n[o])&&E.indexOf(this._availableNames,o)>=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=i;j.exports=r},hOwI:function(j,P){var d=Math.log(2);function O(C,v,w,m,h,c){var i=m+"-"+h,r=C.length;if(c.hasOwnProperty(i))return c[i];if(v===1){var o=Math.round(Math.log((1<<r)-1&~h)/d);return C[w][o]}for(var n=m|1<<w,e=w+1;m&1<<e;)e++;for(var s=0,t=0,a=0;t<r;t++){var l=1<<t;l&h||(s+=(a%2?-1:1)*C[w][t]*O(C,v-1,e,n,h|l,c),a++)}return c[i]=s,s}function E(C,v){var w=[[C[0],C[1],1,0,0,0,-v[0]*C[0],-v[0]*C[1]],[0,0,0,C[0],C[1],1,-v[1]*C[0],-v[1]*C[1]],[C[2],C[3],1,0,0,0,-v[2]*C[2],-v[2]*C[3]],[0,0,0,C[2],C[3],1,-v[3]*C[2],-v[3]*C[3]],[C[4],C[5],1,0,0,0,-v[4]*C[4],-v[4]*C[5]],[0,0,0,C[4],C[5],1,-v[5]*C[4],-v[5]*C[5]],[C[6],C[7],1,0,0,0,-v[6]*C[6],-v[6]*C[7]],[0,0,0,C[6],C[7],1,-v[7]*C[6],-v[7]*C[7]]],m={},h=O(w,8,0,0,0,m);if(h===0)return;for(var c=[],i=0;i<8;i++)for(var r=0;r<8;r++)c[r]==null&&(c[r]=0),c[r]+=((i+r)%2?-1:1)*O(w,7,i===0?1:0,1<<i,1<<r,m)/h*v[i];return function(o,n,e){var s=n*c[6]+e*c[7]+1;o[0]=(n*c[0]+e*c[1]+c[2])/s,o[1]=(n*c[3]+e*c[4]+c[5])/s}}P.buildTransformer=E},hX1E:function(j,P){var d=Math.PI*2;function O(E){return E%=d,E<0&&(E+=d),E}P.normalizeRadian=O},hXwI:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function E(w,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(w,c.key,c)}}function C(w,m,h){return m&&E(w.prototype,m),h&&E(w,h),w}var v=function(){function w(){O(this,w)}return C(w,[{key:"decodeRect",value:function(h,c,i,r,o,n,e){if(o.rQwait("COPYRECT",4))return!1;var s=o.rQshift16(),t=o.rQshift16();return n.copyImage(s,t,h,c,i,r),!0}}]),w}();P.default=v},hi0g:function(j,P,d){var O=d("bYtY"),E=O.createHashMap,C=O.each,v=O.isString,w=O.defaults,m=O.extend,h=O.isObject,c=O.clone,i=d("4NO4"),r=i.normalizeToArray,o=d("D5nY"),n=o.guessOrdinal,e=o.BE_ORDINAL,s=d("7G+c"),t=d("L0Ub"),a=t.OTHER_DIMENSIONS,l=d("Vi4m");function u(A,y,x){s.isInstance(y)||(y=s.seriesDataToSource(y)),x=x||{},A=(A||[]).slice();for(var T=(x.dimsDef||[]).slice(),S=E(),b=E(),_=[],I=f(y,A,T,x.dimCount),L=0;L<I;L++){var D=T[L]=m({},h(T[L])?T[L]:{name:T[L]}),N=D.name,M=_[L]=new l;N!=null&&S.get(N)==null&&(M.name=M.displayName=N,S.set(N,L)),D.type!=null&&(M.type=D.type),D.displayName!=null&&(M.displayName=D.displayName)}var B=x.encodeDef;!B&&x.encodeDefaulter&&(B=x.encodeDefaulter(y,I)),B=E(B),B.each(function(q,ce){if(q=r(q).slice(),q.length===1&&!v(q[0])&&q[0]<0){B.set(ce,!1);return}var ie=B.set(ce,[]);C(q,function(ve,Ee){v(ve)&&(ve=S.get(ve)),ve!=null&&ve<I&&(ie[Ee]=ve,H(_[ve],ce,Ee))})});var R=0;C(A,function(q,ce){var ie,q,ve,Ee;if(v(q))ie=q,q={};else{ie=q.name;var Le=q.ordinalMeta;q.ordinalMeta=null,q=c(q),q.ordinalMeta=Le,ve=q.dimsDef,Ee=q.otherDims,q.name=q.coordDim=q.coordDimIndex=q.dimsDef=q.otherDims=null}var He=B.get(ie);if(He===!1)return;var He=r(He);if(!He.length)for(var ge=0;ge<(ve&&ve.length||1);ge++){for(;R<_.length&&_[R].coordDim!=null;)R++;R<_.length&&He.push(R++)}C(He,function(Fe,Q){var fe=_[Fe];if(H(w(fe,q),ie,Q),fe.name==null&&ve){var Je=ve[Q];!h(Je)&&(Je={name:Je}),fe.name=fe.displayName=Je.name,fe.defaultTooltip=Je.defaultTooltip}Ee&&w(fe.otherDims,Ee)})});function H(q,ce,ie){a.get(ce)!=null?q.otherDims[ce]=ie:(q.coordDim=ce,q.coordDimIndex=ie,b.set(ce,!0))}var F=x.generateCoord,K=x.generateCoordCount,U=K!=null;K=F?K||1:0;for(var V=F||"value",z=0;z<I;z++){var M=_[z]=_[z]||new l,Y=M.coordDim;Y==null&&(M.coordDim=p(V,b,U),M.coordDimIndex=0,(!F||K<=0)&&(M.isExtraCoord=!0),K--),M.name==null&&(M.name=p(M.coordDim,S)),M.type==null&&(n(y,z,M.name)===e.Must||M.isExtraCoord&&(M.otherDims.itemName!=null||M.otherDims.seriesName!=null))&&(M.type="ordinal")}return _}function f(A,y,x,T){var S=Math.max(A.dimensionsDetectCount||1,y.length,x.length,T||0);return C(y,function(b){var _=b.dimsDef;_&&(S=Math.max(S,_.length))}),S}function p(A,y,x){if(x||y.get(A)!=null){for(var T=0;y.get(A+T)!=null;)T++;A+=T}return y.set(A,!0),A}var g=u;j.exports=g},hkKa:function(j,P,d){"use strict";d.d(P,"a",function(){return w});var O=d("J4zp"),E=d.n(O),C=d("q1tI"),v=d.n(C);function w(){var m=C.useReducer(function(i){return i+1},0),h=E()(m,2),c=h[1];return c}},hw6D:function(j,P,d){var O=d("bYtY");function E(w){w.eachSeriesByType("radar",function(m){var h=m.getData(),c=[],i=m.coordinateSystem;if(!i)return;var r=i.getIndicatorAxes();O.each(r,function(o,n){h.each(h.mapDimension(r[n].dim),function(e,s){c[s]=c[s]||[];var t=i.dataToPoint(e,n);c[s][n]=C(t)?t:v(i)})}),h.each(function(o){var n=O.find(c[o],function(e){return C(e)})||v(i);c[o].push(n.slice()),h.setItemLayout(o,c[o])})})}function C(w){return!isNaN(w[0])&&!isNaN(w[1])}function v(w){return[w.cx,w.cy]}j.exports=E},hwYd:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("Nu4q")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="PictureTwoTone";var c=v.forwardRef(h);P.default=c},hydK:function(j,P){var d="http://www.w3.org/2000/svg";function O(E){return document.createElementNS(d,E)}P.createElement=O},hyiK:function(j,P){function d(O,E,C,v,w,m){if(m>E&&m>v||m<E&&m<v)return 0;if(v===E)return 0;var h=v<E?1:-1,c=(m-E)/(v-E);(c===1||c===0)&&(h=v<E?.5:-.5);var i=c*(C-O)+O;return i===w?Infinity:i>w?h:0}j.exports=d},i38C:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=C.createHashMap,w=C.retrieve,m=C.each;function h(o){this.coordSysName=o,this.coordSysDims=[],this.axisMap=v(),this.categoryAxisMap=v(),this.firstCategoryDimIndex=null}function c(o){var n=o.get("coordinateSystem"),e=new h(n),s=i[n];if(s)return s(o,e,e.axisMap,e.categoryAxisMap),e}var i={cartesian2d:function(o,n,e,s){var t=o.getReferringComponents("xAxis")[0],a=o.getReferringComponents("yAxis")[0];n.coordSysDims=["x","y"],e.set("x",t),e.set("y",a),r(t)&&(s.set("x",t),n.firstCategoryDimIndex=0),r(a)&&(s.set("y",a),n.firstCategoryDimIndex==null&(n.firstCategoryDimIndex=1))},singleAxis:function(o,n,e,s){var t=o.getReferringComponents("singleAxis")[0];n.coordSysDims=["single"],e.set("single",t),r(t)&&(s.set("single",t),n.firstCategoryDimIndex=0)},polar:function(o,n,e,s){var t=o.getReferringComponents("polar")[0],a=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");n.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",l),r(a)&&(s.set("radius",a),n.firstCategoryDimIndex=0),r(l)&&(s.set("angle",l),n.firstCategoryDimIndex==null&&(n.firstCategoryDimIndex=1))},geo:function(o,n,e,s){n.coordSysDims=["lng","lat"]},parallel:function(o,n,e,s){var t=o.ecModel,a=t.getComponent("parallel",o.get("parallelIndex")),l=n.coordSysDims=a.dimensions.slice();m(a.parallelAxisIndex,function(u,f){var p=t.getComponent("parallelAxis",u),g=l[f];e.set(g,p),r(p)&&n.firstCategoryDimIndex==null&&(s.set(g,p),n.firstCategoryDimIndex=f)})}};function r(o){return o.get("type")==="category"}P.getCoordSysInfoBySeries=c},i6bk:function(j,P,d){"use strict";d.d(P,"b",function(){return O}),d.d(P,"a",function(){return E});function O(C){return C!=null&&C===C.window}function E(C,v){if(typeof window=="undefined")return 0;var w=v?"scrollTop":"scrollLeft",m=0;return O(C)?m=C[v?"pageYOffset":"pageXOffset"]:C instanceof Document?m=C.documentElement[w]:C&&(m=C[w]),C&&!O(C)&&typeof m!="number"&&(m=(C.ownerDocument||C).documentElement[w]),m}},i8CU:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("Fm1+"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},iLNv:function(j,P){var d="\0__throttleOriginMethod",O="\0__throttleRate",E="\0__throttleType";function C(m,h,c){var i,r=0,o=0,n=null,e,s,t,a;h=h||0;function l(){o=new Date().getTime(),n=null,m.apply(s,t||[])}var u=function(){i=new Date().getTime(),s=this,t=arguments;var f=a||h,p=a||c;a=null,e=i-(p?r:o)-f,clearTimeout(n),p?n=setTimeout(l,f):e>=0?l():n=setTimeout(l,-e),r=i};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.debounceNextCall=function(f){a=f},u}function v(m,h,c,i){var r=m[h];if(!r)return;var o=r[d]||r,n=r[E],e=r[O];if(e!==c||n!==i){if(c==null||!i)return m[h]=o;r=m[h]=C(o,c,i==="debounce"),r[d]=o,r[E]=i,r[O]=c}return r}function w(m,h){var c=m[h];c&&c[d]&&(m[h]=c[d])}P.throttle=C,P.createOrUpdate=v,P.clear=w},iPDy:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=O.extendComponentView({type:"marker",init:function(){this.markerGroupMap=E.createHashMap()},render:function(v,w,m){var h=this.markerGroupMap;h.each(function(i){i.__keep=!1});var c=this.type+"Model";w.eachSeries(function(i){var r=i[c];r&&this.renderSeries(i,r,w,m)},this),h.each(function(i){!i.__keep&&this.group.remove(i.group)},this)},renderSeries:function(){}});j.exports=C},iQDF:function(j,P,d){"use strict";var O=d("ZTW2"),E=d.n(O),C=d("+BJd"),v=d("+L6B")},iRjW:function(j,P,d){var O=d("bYtY"),E=d("Yl7c"),C=E.parseClassType,v=0;function w(c){return[c||"",v++,Math.random().toFixed(5)].join("_")}function m(c){var i={};return c.registerSubTypeDefaulter=function(r,o){r=C(r),i[r.main]=o},c.determineSubType=function(r,o){var n=o.type;if(!n){var e=C(r).main;c.hasSubTypes(r)&&i[e]&&(n=i[e](o))}return n},c}function h(c,i){c.topologicalTravel=function(e,s,t,a){if(!e.length)return;var l=r(s),u=l.graph,f=l.noEntryList,p={};for(O.each(e,function(S){p[S]=!0});f.length;){var g=f.pop(),A=u[g],y=!!p[g];y&&(t.call(a,g,A.originalDeps.slice()),delete p[g]),O.each(A.successor,y?T:x)}O.each(p,function(){throw new Error("Circle dependency may exists")});function x(S){u[S].entryCount--,u[S].entryCount===0&&f.push(S)}function T(S){p[S]=!0,x(S)}};function r(e){var s={},t=[];return O.each(e,function(a){var l=o(s,a),u=l.originalDeps=i(a),f=n(u,e);l.entryCount=f.length,l.entryCount===0&&t.push(a),O.each(f,function(p){O.indexOf(l.predecessor,p)<0&&l.predecessor.push(p);var g=o(s,p);O.indexOf(g.successor,p)<0&&g.successor.push(a)})}),{graph:s,noEntryList:t}}function o(e,s){return e[s]||(e[s]={predecessor:[],successor:[]}),e[s]}function n(e,s){var t=[];return O.each(e,function(a){O.indexOf(s,a)>=0&&t.push(a)}),t}}P.getUID=w,P.enableSubTypeDefaulter=m,P.enableTopologicalTravel=h},iUHT:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(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 T=y[x];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(A,T.key,T)}}function C(A,y,x){return y&&E(A.prototype,y),x&&E(A,x),A}var v=[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],w=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=0,h,c,i,r,o,n;h=1<<16,c=1<<24,i=h|c,r=1<<2,o=1<<10,n=r|o;var e=[i|o,m|m,h|m,i|n,i|r,h|n,m|r,h|m,m|o,i|o,i|n,m|o,c|n,i|r,c|m,m|r,m|n,c|o,c|o,h|o,h|o,i|m,i|m,c|n,h|r,c|r,c|r,h|r,m|m,m|n,h|n,c|m,h|m,i|n,m|r,i|m,i|o,c|m,c|m,m|o,i|r,h|m,h|o,c|r,m|o,m|r,c|n,h|n,i|n,h|r,i|m,c|n,c|r,m|n,h|n,i|o,m|n,c|o,c|o,m|m,h|r,h|o,m|m,i|r];h=1<<20,c=1<<31,i=h|c,r=1<<5,o=1<<15,n=r|o;var s=[i|n,c|o,m|o,h|n,h|m,m|r,i|r,c|n,c|r,i|n,i|o,c|m,c|o,h|m,m|r,i|r,h|o,h|r,c|n,m|m,c|m,m|o,h|n,i|m,h|r,c|r,m|m,h|o,m|n,i|o,i|m,m|n,m|m,h|n,i|r,h|m,c|n,i|m,i|o,m|o,i|m,c|o,m|r,i|n,h|n,m|r,m|o,c|m,m|n,i|o,h|m,c|r,h|r,c|n,c|r,h|r,h|o,m|m,c|o,m|n,c|m,i|r,i|n,h|o];h=1<<17,c=1<<27,i=h|c,r=1<<3,o=1<<9,n=r|o;var t=[m|n,i|o,m|m,i|r,c|o,m|m,h|n,c|o,h|r,c|r,c|r,h|m,i|n,h|r,i|m,m|n,c|m,m|r,i|o,m|o,h|o,i|m,i|r,h|n,c|n,h|o,h|m,c|n,m|r,i|n,m|o,c|m,i|o,c|m,h|r,m|n,h|m,i|o,c|o,m|m,m|o,h|r,i|n,c|o,c|r,m|o,m|m,i|r,c|n,h|m,c|m,i|n,m|r,h|n,h|o,c|r,i|m,c|n,m|n,i|m,h|n,m|r,i|r,h|o];h=1<<13,c=1<<23,i=h|c,r=1<<0,o=1<<7,n=r|o;var a=[i|r,h|n,h|n,m|o,i|o,c|n,c|r,h|r,m|m,i|m,i|m,i|n,m|n,m|m,c|o,c|r,m|r,h|m,c|m,i|r,m|o,c|m,h|r,h|o,c|n,m|r,h|o,c|o,h|m,i|o,i|n,m|n,c|o,c|r,i|m,i|n,m|n,m|m,m|m,i|m,h|o,c|o,c|n,m|r,i|r,h|n,h|n,m|o,i|n,m|n,m|r,h|m,c|r,h|r,i|o,c|n,h|r,h|o,c|m,i|r,m|o,c|m,h|m,i|o];h=1<<25,c=1<<30,i=h|c,r=1<<8,o=1<<19,n=r|o;var l=[m|r,h|n,h|o,i|r,m|o,m|r,c|m,h|o,c|n,m|o,h|r,c|n,i|r,i|o,m|n,c|m,h|m,c|o,c|o,m|m,c|r,i|n,i|n,h|r,i|o,c|r,m|m,i|m,h|n,h|m,i|m,m|n,m|o,i|r,m|r,h|m,c|m,h|o,i|r,c|n,h|r,c|m,i|o,h|n,c|n,m|r,h|m,i|o,i|n,m|n,i|m,i|n,h|o,m|m,c|o,i|m,m|n,h|r,c|r,m|o,m|m,c|o,h|n,c|r];h=1<<22,c=1<<29,i=h|c,r=1<<4,o=1<<14,n=r|o;var u=[c|r,i|m,m|o,i|n,i|m,m|r,i|n,h|m,c|o,h|n,h|m,c|r,h|r,c|o,c|m,m|n,m|m,h|r,c|n,m|o,h|o,c|n,m|r,i|r,i|r,m|m,h|n,i|o,m|n,h|o,i|o,c|m,c|o,m|r,i|r,h|o,i|n,h|m,m|n,c|r,h|m,c|o,c|m,m|n,c|r,i|n,h|o,i|m,h|n,i|o,m|m,i|r,m|r,m|o,i|m,h|n,m|o,h|r,c|n,m|m,i|o,c|m,h|r,c|n];h=1<<21,c=1<<26,i=h|c,r=1<<1,o=1<<11,n=r|o;var f=[h|m,i|r,c|n,m|m,m|o,c|n,h|n,i|o,i|n,h|m,m|m,c|r,m|r,c|m,i|r,m|n,c|o,h|n,h|r,c|o,c|r,i|m,i|o,h|r,i|m,m|o,m|n,i|n,h|o,m|r,c|m,h|o,c|m,h|o,h|m,c|n,c|n,i|r,i|r,m|r,h|r,c|m,c|o,h|m,i|o,m|n,h|n,i|o,m|n,c|r,i|n,i|m,h|o,m|m,m|r,i|n,m|m,h|n,i|m,m|o,c|r,c|o,m|o,h|r];h=1<<18,c=1<<28,i=h|c,r=1<<6,o=1<<12,n=r|o;var p=[c|n,m|o,h|m,i|n,c|m,c|n,m|r,c|m,h|r,i|m,i|n,h|o,i|o,h|n,m|o,m|r,i|m,c|r,c|o,m|n,h|o,h|r,i|r,i|o,m|n,m|m,m|m,i|r,c|r,c|o,h|n,h|m,h|n,h|m,i|o,m|o,m|r,i|r,m|o,h|n,c|o,m|r,c|r,i|m,i|r,c|m,h|m,c|n,m|m,i|n,h|r,c|r,i|m,c|o,c|n,m|m,i|n,h|o,h|o,m|n,m|n,h|r,c|m,i|o],g=function(){function A(y){O(this,A),this.keys=[];for(var x=[],T=[],S=[],b=0,_=56;b<56;++b,_-=8){_+=_<-5?65:_<-3?31:_<-1?63:_===27?35:0;var I=_&7;x[b]=(y[_>>>3]&1<<I)!==0?1:0}for(var L=0;L<16;++L){var D=L<<1,N=D+1;S[D]=S[N]=0;for(var M=28;M<59;M+=28)for(var B=M-28;B<M;++B){var R=B+w[L];T[B]=R<M?x[R]:x[R-28]}for(var H=0;H<24;++H)T[v[H]]!==0&&(S[D]|=1<<23-H),T[v[H+24]]!==0&&(S[N]|=1<<23-H)}for(var F=0,K=0,U=0;F<16;++F){var V=S[K++],z=S[K++];this.keys[U]=(V&16515072)<<6,this.keys[U]|=(V&4032)<<10,this.keys[U]|=(z&16515072)>>>10,this.keys[U]|=(z&4032)>>>6,++U,this.keys[U]=(V&258048)<<12,this.keys[U]|=(V&63)<<16,this.keys[U]|=(z&258048)>>>4,this.keys[U]|=z&63,++U}}return C(A,[{key:"enc8",value:function(x){var T=x.slice(),S=0,b,_,I;b=T[S++]<<24|T[S++]<<16|T[S++]<<8|T[S++],_=T[S++]<<24|T[S++]<<16|T[S++]<<8|T[S++],I=(b>>>4^_)&252645135,_^=I,b^=I<<4,I=(b>>>16^_)&65535,_^=I,b^=I<<16,I=(_>>>2^b)&858993459,b^=I,_^=I<<2,I=(_>>>8^b)&16711935,b^=I,_^=I<<8,_=_<<1|_>>>31&1,I=(b^_)&2863311530,b^=I,_^=I,b=b<<1|b>>>31&1;for(var L=0,D=0;L<8;++L){I=_<<28|_>>>4,I^=this.keys[D++];var N=f[I&63];N|=l[I>>>8&63],N|=t[I>>>16&63],N|=e[I>>>24&63],I=_^this.keys[D++],N|=p[I&63],N|=u[I>>>8&63],N|=a[I>>>16&63],N|=s[I>>>24&63],b^=N,I=b<<28|b>>>4,I^=this.keys[D++],N=f[I&63],N|=l[I>>>8&63],N|=t[I>>>16&63],N|=e[I>>>24&63],I=b^this.keys[D++],N|=p[I&63],N|=u[I>>>8&63],N|=a[I>>>16&63],N|=s[I>>>24&63],_^=N}for(_=_<<31|_>>>1,I=(b^_)&2863311530,b^=I,_^=I,b=b<<31|b>>>1,I=(b>>>8^_)&16711935,_^=I,b^=I<<8,I=(b>>>2^_)&858993459,_^=I,b^=I<<2,I=(_>>>16^b)&65535,b^=I,_^=I<<16,I=(_>>>4^b)&252645135,b^=I,_^=I<<4,I=[_,b],S=0;S<8;S++)T[S]=(I[S>>>2]>>>8*(3-S%4))%256,T[S]<0&&(T[S]+=256);return T}},{key:"encrypt",value:function(x){return this.enc8(x.slice(0,8)).concat(this.enc8(x.slice(8,16)))}}]),A}();P.default=g},iXHM:function(j,P){var d="";typeof navigator!="undefined"&&(d=navigator.platform||"");var O={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};j.exports=O},iXp4:function(j,P,d){var O=d("ItGF"),E=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function C(v){return O.browser.ie&&O.browser.version>=11?function(){var w=this.__clipPaths,m=this.style,h;if(w)for(var c=0;c<w.length;c++){var i=w[c],r=i&&i.shape,o=i&&i.type;if(r&&(o==="sector"&&r.startAngle===r.endAngle||o==="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(v.apply(this,arguments),h)for(var n=0;n<E.length;n++)m[E[n][0]]=E[n][2]}:v}j.exports=C},iYpf:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("ZLWo")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="FolderOpenOutlined";var c=v.forwardRef(h);P.default=c},ieMj:function(j,P,d){var O=d("OELB"),E=d("7aKB"),C=d("4NgU"),v=d("lE7J"),w=O.round,m=C.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(c,i){var r=this._extent;isNaN(c)||(r[0]=parseFloat(c)),isNaN(i)||(r[1]=parseFloat(i))},unionExtent:function(c){var i=this._extent;c[0]<i[0]&&(i[0]=c[0]),c[1]>i[1]&&(i[1]=c[1]),m.prototype.setExtent.call(this,i[0],i[1])},getInterval:function(){return this._interval},setInterval:function(c){this._interval=c,this._niceExtent=this._extent.slice(),this._intervalPrecision=v.getIntervalPrecision(c)},getTicks:function(c){var i=this._interval,r=this._extent,o=this._niceExtent,n=this._intervalPrecision,e=[];if(!i)return e;var s=1e4;r[0]<o[0]&&(c?e.push(w(o[0]-i,n)):e.push(r[0]));for(var t=o[0];t<=o[1]&&!(e.push(t),t=w(t+i,n),t===e[e.length-1]);)if(e.length>s)return[];var a=e.length?e[e.length-1]:o[1];return r[1]>a&&(c?e.push(w(a+i,n)):e.push(r[1])),e},getMinorTicks:function(c){for(var i=this.getTicks(!0),r=[],o=this.getExtent(),n=1;n<i.length;n++){for(var e=i[n],s=i[n-1],t=0,a=[],l=e-s,u=l/c;t<c-1;){var f=O.round(s+(t+1)*u);f>o[0]&&f<o[1]&&a.push(f),t++}r.push(a)}return r},getLabel:function(c,i){if(c==null)return"";var r=i&&i.precision;return r==null?r=O.getPrecisionSafe(c)||0:r==="auto"&&(r=this._intervalPrecision),c=w(c,r,!0),E.addCommas(c)},niceTicks:function(c,i,r){c=c||5;var o=this._extent,n=o[1]-o[0];if(!isFinite(n))return;n<0&&(n=-n,o.reverse());var e=v.intervalScaleNiceTicks(o,c,i,r);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(c){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var r=i[0];c.fixMax||(i[1]+=r/2),i[0]-=r/2}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var n=this._interval;c.fixMin||(i[0]=w(Math.floor(i[0]/n)*n)),c.fixMax||(i[1]=w(Math.ceil(i[1]/n)*n))}});m.create=function(){return new m};var h=m;j.exports=h},j5sG:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.createSensor=void 0;var O=E(d("NohK"));function E(v){return v&&v.__esModule?v:{default:v}}var C=function(w){var m=void 0,h=[],c=(0,O.default)(function(){h.forEach(function(e){e(w)})}),i=function(){var s=new ResizeObserver(c);return s.observe(w),c(),s},r=function(s){m||(m=i()),h.indexOf(s)===-1&&h.push(s)},o=function(){m.disconnect(),h=[],m=void 0},n=function(s){var t=h.indexOf(s);t!==-1&&h.splice(t,1),h.length===0&&m&&o()};return{element:w,bind:r,destroy:o,unbind:n}};P.createSensor=C},jCoz:function(j,P,d){var O=d("bYtY"),E=d("4NgU"),C=d("OELB"),v=d("ieMj"),w=E.prototype,m=v.prototype,h=C.getPrecisionSafe,c=C.round,i=Math.floor,r=Math.ceil,o=Math.pow,n=Math.log,e=E.extend({type:"log",base:10,$constructor:function(){E.apply(this,arguments),this._originalScale=new v},getTicks:function(a){var l=this._originalScale,u=this._extent,f=l.getExtent();return O.map(m.getTicks.call(this,a),function(p){var g=C.round(o(this.base,p));return g=p===u[0]&&l.__fixMin?s(g,f[0]):g,g=p===u[1]&&l.__fixMax?s(g,f[1]):g,g},this)},getMinorTicks:m.getMinorTicks,getLabel:m.getLabel,scale:function(a){return a=w.scale.call(this,a),o(this.base,a)},setExtent:function(a,l){var u=this.base;a=n(a)/n(u),l=n(l)/n(u),m.setExtent.call(this,a,l)},getExtent:function(){var a=this.base,l=w.getExtent.call(this);l[0]=o(a,l[0]),l[1]=o(a,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(a){this._originalScale.unionExtent(a);var l=this.base;a[0]=n(a[0])/n(l),a[1]=n(a[1])/n(l),w.unionExtent.call(this,a)},unionExtentFromData:function(a,l){this.unionExtent(a.getApproximateExtent(l))},niceTicks:function(a){a=a||10;var l=this._extent,u=l[1]-l[0];if(u===Infinity||u<=0)return;var f=C.quantity(u),p=a/u*f;for(p<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var g=[C.round(r(l[0]/f)*f),C.round(i(l[1]/f)*f)];this._interval=f,this._niceExtent=g},niceExtent:function(a){m.niceExtent.call(this,a);var l=this._originalScale;l.__fixMin=a.fixMin,l.__fixMax=a.fixMax}});O.each(["contain","normalize"],function(a){e.prototype[a]=function(l){return l=n(l)/n(this.base),w[a].call(this,l)}}),e.create=function(){return new e};function s(a,l){return c(a,h(l))}var t=e;j.exports=t},jN4g:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="CloseCircleFilled";var h=P.a=E.forwardRef(m)},jO45:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="CheckCircleFilled";var h=P.a=E.forwardRef(m)},jO9C:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso97971={pad:function(C,v){C.concat(O.lib.WordArray.create([2147483648],1)),O.pad.ZeroPadding.pad(C,v)},unpad:function(C){O.pad.ZeroPadding.unpad(C),C.sigBytes--}},O.pad.Iso97971})},jTL6:function(j,P,d){var O=d("y+Vt"),E=O.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(v,w){var m=w.cx,h=w.cy,c=Math.max(w.r,0),i=w.startAngle,r=w.endAngle,o=w.clockwise,n=Math.cos(i),e=Math.sin(i);v.moveTo(n*c+m,e*c+h),v.arc(m,h,c,i,r,!o)}});j.exports=E},je13:function(j,P,d){var O=d("5nXd"),E=d("gRFJ"),C=[d("uQRt")];j.exports=O.createStore(E,C)},jett:function(j,P,d){var O=d("ProS");d("VSLf"),d("oBaM"),d("FGaS");var E=d("mOdp"),C=d("f5Yq"),v=d("hw6D"),w=d("0/Rx"),m=d("eJH7");O.registerVisual(E("radar")),O.registerVisual(C("radar","circle")),O.registerLayout(v),O.registerProcessor(w("radar")),O.registerPreprocessor(m)},jhfD:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="ArrowLeftOutlined";var h=P.a=E.forwardRef(m)},jkPA:function(j,P,d){var O=d("bYtY"),E=O.createHashMap,C=O.isObject,v=O.map;function w(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this._map}w.createByAxisModel=function(r){var o=r.option,n=o.data,e=n&&v(n,c);return new w({categories:e,needCollect:!e,deduplication:o.dedplication!==!1})};var m=w.prototype;m.getOrdinal=function(r){return h(this).get(r)},m.parseAndCollect=function(r){var o,n=this._needCollect;if(typeof r!="string"&&!n)return r;if(n&&!this._deduplication)return o=this.categories.length,this.categories[o]=r,o;var e=h(this);return o=e.get(r),o==null&&(n?(o=this.categories.length,this.categories[o]=r,e.set(r,o)):o=NaN),o};function h(r){return r._map||(r._map=E(r.categories))}function c(r){return C(r)&&r.value!=null?r.value:r+""}var i=w;j.exports=i},jndi:function(j,P,d){var O=d("bYtY"),E=d("Qe9p"),C=d("YXkt"),v=d("OELB"),w=d("IwbS"),m=d("kj2x"),h=d("iPDy"),c=function(t,a,l,u){var f=m.dataTransform(t,u[0]),p=m.dataTransform(t,u[1]),g=O.retrieve,A=f.coord,y=p.coord;A[0]=g(A[0],-Infinity),A[1]=g(A[1],-Infinity),y[0]=g(y[0],Infinity),y[1]=g(y[1],Infinity);var x=O.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 i(t){return!isNaN(t)&&!isFinite(t)}function r(t,a,l,u){var f=1-t;return i(a[f])&&i(l[f])}function o(t,a){var l=a.coord[0],u=a.coord[1];return t.type==="cartesian2d"&&(l&&u&&(r(1,l,u,t)||r(0,l,u,t)))?!0:m.dataFilter(t,{coord:l,x:a.x0,y:a.y0})||m.dataFilter(t,{coord:u,x:a.x1,y:a.y1})}function n(t,a,l,u,f){var p=u.coordinateSystem,g=t.getItemModel(a),A,y=v.parsePercent(g.get(l[0]),f.getWidth()),x=v.parsePercent(g.get(l[1]),f.getHeight());if(!isNaN(y)&&!isNaN(x))A=[y,x];else{if(u.getMarkerPosition)A=u.getMarkerPosition(t.getValues(l,a));else{var T=t.get(l[0],a),S=t.get(l[1],a),b=[T,S];p.clampData&&p.clampData(b,b),A=p.dataToPoint(b,!0)}if(p.type==="cartesian2d"){var _=p.getAxis("x"),I=p.getAxis("y"),T=t.get(l[0],a),S=t.get(l[1],a);i(T)?A[0]=_.toGlobalCoord(_.getExtent()[l[0]==="x0"?0:1]):i(S)&&(A[1]=I.toGlobalCoord(I.getExtent()[l[1]==="y0"?0:1]))}isNaN(y)||(A[0]=y),isNaN(x)||(A[1]=x)}return A}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];h.extend({type:"markArea",updateTransform:function(t,a,l){a.eachSeries(function(u){var f=u.markAreaModel;if(f){var p=f.getData();p.each(function(g){var A=O.map(e,function(x){return n(p,g,x,u,l)});p.setItemLayout(g,A);var y=p.getItemGraphicEl(g);y.setShape("points",A)})}},this)},renderSeries:function(t,a,l,u){var f=t.coordinateSystem,p=t.id,g=t.getData(),A=this.markerGroupMap,y=A.get(p)||A.set(p,{group:new w.Group});this.group.add(y.group),y.__keep=!0;var x=s(f,t,a);a.setData(x),x.each(function(T){x.setItemLayout(T,O.map(e,function(S){return n(x,T,S,t,u)})),x.setItemVisual(T,{color:g.getVisual("color")})}),x.diff(y.__data).add(function(T){var S=new w.Polygon({shape:{points:x.getItemLayout(T)}});x.setItemGraphicEl(T,S),y.group.add(S)}).update(function(T,S){var b=y.__data.getItemGraphicEl(S);w.updateProps(b,{shape:{points:x.getItemLayout(T)}},a,T),y.group.add(b),x.setItemGraphicEl(T,b)}).remove(function(T){var S=y.__data.getItemGraphicEl(T);y.group.remove(S)}).execute(),x.eachItemGraphicEl(function(T,S){var b=x.getItemModel(S),_=b.getModel("label"),I=b.getModel("emphasis.label"),L=x.getItemVisual(S,"color");T.useStyle(O.defaults(b.getModel("itemStyle").getItemStyle(),{fill:E.modifyAlpha(L,.4),stroke:L})),T.hoverStyle=b.getModel("emphasis.itemStyle").getItemStyle(),w.setLabelStyle(T.style,T.hoverStyle,_,I,{labelFetcher:a,labelDataIndex:S,defaultText:x.getName(S)||"",isRectText:!0,autoColor:L}),w.setHoverStyle(T,{}),T.dataModel=a}),y.__data=x,y.group.silent=a.get("silent")||t.get("silent")}});function s(t,a,l){var u,f,p=["x0","y0","x1","y1"];t?(u=O.map(t&&t.dimensions,function(y){var x=a.getData(),T=x.getDimensionInfo(x.mapDimension(y))||{};return O.defaults({name:y},T)}),f=new C(O.map(p,function(y,x){return{name:y,type:u[x%2].type}}),l)):(u=[{name:"value",type:"float"}],f=new C(u,l));var g=O.map(l.get("data"),O.curry(c,a,t,l));t&&(g=O.filter(g,O.curry(o,t)));var A=t?function(y,x,T,S){return y.coord[Math.floor(S/2)][S%2]}:function(y){return y.value};return f.initData(g,null,A),f.hasItemOption=!0,f}},"jsU+":function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("IUWy"),v=O.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){v.superApply(this,"optionUpdated",arguments),E.each(this.option.feature,function(m,h){var c=C.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}}}),w=v;j.exports=w},jtI2:function(j,P,d){d("SMc4");var O=d("bLfw"),E=O.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"}});j.exports=E},juDX:function(j,P,d){d("P47w");var O=d("aX58"),E=O.registerPainter,C=d("3CBa");E("svg",C)},k5C7:function(j,P,d){d("0JAE"),d("g7p0"),d("7mYs")},k9D9:function(j,P){var d="original",O="arrayRows",E="objectRows",C="keyedColumns",v="unknown",w="typedArray",m="column",h="row";P.SOURCE_FORMAT_ORIGINAL=d,P.SOURCE_FORMAT_ARRAY_ROWS=O,P.SOURCE_FORMAT_OBJECT_ROWS=E,P.SOURCE_FORMAT_KEYED_COLUMNS=C,P.SOURCE_FORMAT_UNKNOWN=v,P.SOURCE_FORMAT_TYPED_ARRAY=w,P.SERIES_LAYOUT_BY_COLUMN=m,P.SERIES_LAYOUT_BY_ROW=h},kDyi:function(j,P){function d(O){var E=O.findComponents({mainType:"legend"});E&&E.length&&O.filterSeries(function(C){for(var v=0;v<E.length;v++)if(!E[v].isSelected(C.name))return!1;return!0})}j.exports=d},kGiB:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("ABKa"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},kMLO:function(j,P,d){var O=d("XxSj"),E=d("Qe9p"),C=d("bYtY"),v=C.isArray,w="itemStyle",m={seriesType:"treemap",reset:function(t,a,l,u){var f=t.getData().tree,p=f.root,g=t.getModel(w);if(p.isRemoved())return;var A=C.map(f.levelModels,function(y){return y?y.get(w):null});h(p,{},A,g,t.getViewRoot().getAncestors(),t)}};function h(t,a,l,u,f,p){var g=t.getModel(),A=t.getLayout();if(!A||A.invisible||!A.isInView)return;var y=t.getModel(w),x=l[t.depth],T=c(y,a,x,u),S=y.get("borderColor"),b=y.get("borderColorSaturation"),_;b!=null&&(_=i(T,t),S=r(b,_)),t.setVisual("borderColor",S);var I=t.viewChildren;if(!I||!I.length)_=i(T,t),t.setVisual("color",_);else{var L=n(t,g,A,y,T,I);C.each(I,function(D,N){if(D.depth>=f.length||D===f[D.depth]){var M=s(g,T,D,N,L,p);h(D,M,l,u,f,p)}})}}function c(t,a,l,u){var f=C.extend({},a);return C.each(["color","colorAlpha","colorSaturation"],function(p){var g=t.get(p,!0);g==null&&l&&(g=l[p]),g==null&&(g=a[p]),g==null&&(g=u.get(p)),g!=null&&(f[p]=g)}),f}function i(t){var a=o(t,"color");if(a){var l=o(t,"colorAlpha"),u=o(t,"colorSaturation");return u&&(a=E.modifyHSL(a,null,null,u)),l&&(a=E.modifyAlpha(a,l)),a}}function r(t,a){return a!=null?E.modifyHSL(a,null,null,t):null}function o(t,a){var l=t[a];if(l!=null&&l!=="none")return l}function n(t,a,l,u,f,p){if(!p||!p.length)return;var g=e(a,"color")||f.color!=null&&f.color!=="none"&&(e(a,"colorAlpha")||e(a,"colorSaturation"));if(!g)return;var A=a.get("visualMin"),y=a.get("visualMax"),x=l.dataExtent.slice();A!=null&&A<x[0]&&(x[0]=A),y!=null&&y>x[1]&&(x[1]=y);var T=a.get("colorMappingBy"),S={type:g.name,dataExtent:x,visual:g.range};S.type==="color"&&(T==="index"||T==="id")?(S.mappingMethod="category",S.loop=!0):S.mappingMethod="linear";var b=new O(S);return b.__drColorMappingBy=T,b}function e(t,a){var l=t.get(a);return v(l)&&l.length?{name:a,range:l}:null}function s(t,a,l,u,f,p){var g=C.extend({},a);if(f){var A=f.type,y=A==="color"&&f.__drColorMappingBy,x=y==="index"?u:y==="id"?p.mapIdToIndex(l.getId()):l.getValue(t.get("visualDimension"));g[A]=f.mapValueToVisual(x)}return g}j.exports=m},"kVK+":function(j,P){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */P.read=function(d,O,E,C,v){var w,m,h=v*8-C-1,c=(1<<h)-1,i=c>>1,r=-7,o=E?v-1:0,n=E?-1:1,e=d[O+o];for(o+=n,w=e&(1<<-r)-1,e>>=-r,r+=h;r>0;w=w*256+d[O+o],o+=n,r-=8);for(m=w&(1<<-r)-1,w>>=-r,r+=C;r>0;m=m*256+d[O+o],o+=n,r-=8);if(w===0)w=1-i;else{if(w===c)return m?NaN:(e?-1:1)*Infinity;m=m+Math.pow(2,C),w=w-i}return(e?-1:1)*m*Math.pow(2,w-C)},P.write=function(d,O,E,C,v,w){var m,h,c,i=w*8-v-1,r=(1<<i)-1,o=r>>1,n=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=C?0:w-1,s=C?1:-1,t=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(h=isNaN(O)?1:0,m=r):(m=Math.floor(Math.log(O)/Math.LN2),O*(c=Math.pow(2,-m))<1&&(m--,c*=2),m+o>=1?O+=n/c:O+=n*Math.pow(2,1-o),O*c>=2&&(m++,c/=2),m+o>=r?(h=0,m=r):m+o>=1?(h=(O*c-1)*Math.pow(2,v),m=m+o):(h=O*Math.pow(2,o-1)*Math.pow(2,v),m=0));v>=8;d[E+e]=h&255,e+=s,h/=256,v-=8);for(m=m<<v|h,i+=v;i>0;d[E+e]=m&255,e+=s,m/=256,i-=8);d[E+e-s]|=t*128}},kj2x:function(j,P,d){var O=d("bYtY"),E=d("OELB"),C=d("7hqr"),v=C.isDimensionStacked,w=O.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,g,A){var y=[],x=v(u,p),T=x?u.getCalculationInfo("stackResultDimension"):p,S=a(u,T,l),b=u.indicesOfNearest(T,S)[0];y[g]=u.get(f,b),y[A]=u.get(T,b);var _=u.get(p,b),I=E.getPrecision(u.get(p,b));return I=Math.min(I,20),I>=0&&(y[A]=+y[A].toFixed(I)),[y,_]}var i=O.curry,r={min:i(c,"min"),max:i(c,"max"),average:i(c,"average")};function o(l,u){var f=l.getData(),p=l.coordinateSystem;if(u&&!h(u)&&!O.isArray(u.coord)&&p){var g=p.dimensions,A=n(u,f,p,l);if(u=O.clone(u),u.type&&r[u.type]&&A.baseAxis&&A.valueAxis){var y=w(g,A.baseAxis.dim),x=w(g,A.valueAxis.dim),T=r[u.type](f,A.baseDataDim,A.valueDataDim,y,x);u.coord=T[0],u.value=T[1]}else{for(var S=[u.xAxis!=null?u.xAxis:u.radiusAxis,u.yAxis!=null?u.yAxis:u.angleAxis],b=0;b<2;b++)r[S[b]]&&(S[b]=a(f,f.mapDimension(g[b]),S[b]));u.coord=S}}return u}function n(l,u,f,p){var g={};return l.valueIndex!=null||l.valueDim!=null?(g.valueDataDim=l.valueIndex!=null?u.getDimension(l.valueIndex):l.valueDim,g.valueAxis=f.getAxis(e(p,g.valueDataDim)),g.baseAxis=f.getOtherAxis(g.valueAxis),g.baseDataDim=u.mapDimension(g.baseAxis.dim)):(g.baseAxis=p.getBaseAxis(),g.valueAxis=f.getOtherAxis(g.baseAxis),g.baseDataDim=u.mapDimension(g.baseAxis.dim),g.valueDataDim=u.mapDimension(g.valueAxis.dim)),g}function e(l,u){var f=l.getData(),p=f.dimensions;u=f.getDimension(u);for(var g=0;g<p.length;g++){var A=f.getDimensionInfo(p[g]);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 t(l,u,f,p){return p<2?l.coord&&l.coord[p]:l.value}function a(l,u,f){if(f==="average"){var p=0,g=0;return l.each(u,function(A,y){isNaN(A)||(p+=A,g++)}),p/g}else return f==="median"?l.getMedian(u):l.getDataExtent(u,!0)[f==="max"?1:0]}P.dataTransform=o,P.getAxisInfo=n,P.dataFilter=s,P.dimValueGetter=t,P.numCalculate=a},knOB:function(j,P,d){var O=d("bYtY"),E=d("hM6l");function C(w,m){E.call(this,"radius",w,m),this.type="category"}C.prototype={constructor:C,pointToData:function(w,m){return this.polar.pointToData(w,m)[this.dim==="radius"?0:1]},dataToRadius:E.prototype.dataToCoord,radiusToData:E.prototype.coordToData},O.inherits(C,E);var v=C;j.exports=v},ko1b:function(j,P,d){var O=d("bYtY"),E=d("T4UG"),C=d("Bsck"),v=d("Qxkt"),w=d("7aKB"),m=w.encodeHTML,h=w.addCommas,c=d("VaxA"),i=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(e,s){var t={name:e.name,children:e.data};o(t);var a=e.levels||[];a=e.levels=n(a,s);var l=O.map(a||[],function(p){return new v(p,this,s)},this),u=C.createTree(t,this,null,f);function f(p){p.wrapMethod("getItemModel",function(g,A){var y=u.getNodeByDataIndex(A),x=l[y.depth];return x&&(g.parentModel=x),g})}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var s=this.getData(),t=this.getRawValue(e),a=O.isArray(t)?h(t[0]):h(t),l=s.getName(e);return m(l+": "+a)},getDataParams:function(e){var s=E.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(e);return s.treePathInfo=i(t,this),s},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},O.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var s=this._idIndexMap;s||(s=this._idIndexMap=O.createHashMap(),this._idIndexMapCount=0);var t=s.get(e);return t==null&&s.set(e,t=this._idIndexMapCount++),t},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var s=this.getRawData().tree.root;(!e||e!==s&&!s.contains(e))&&(this._viewRoot=s)}});function o(e){var s=0;O.each(e.children,function(a){o(a);var l=a.value;O.isArray(l)&&(l=l[0]),s+=l});var t=e.value;O.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=s),t<0&&(t=0),O.isArray(e.value)?e.value[0]=t:e.value=t}function n(e,s){var t=s.get("color");if(!t)return;e=e||[];var a;if(O.each(e,function(u){var f=new v(u),p=f.get("color");(f.get("itemStyle.color")||p&&p!=="none")&&(a=!0)}),!a){var l=e[0]||(e[0]={});l.color=t.slice()}return e}j.exports=r},kzFp:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O=P.pick=function(C,v){var w={};return v.forEach(function(m){w[m]=C[m]}),w}},kzvK:function(j,P,d){var O=d("sS/r"),E=O.extend({type:"timeline"});j.exports=E},"l+S1":function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="SearchOutlined";var h=P.a=E.forwardRef(m)},lE7J:function(j,P,d){var O=d("OELB"),E=O.round;function C(h,c,i,r){var o={},n=h[1]-h[0],e=o.interval=O.nice(n/c,!0);i!=null&&e<i&&(e=o.interval=i),r!=null&&e>r&&(e=o.interval=r);var s=o.intervalPrecision=v(e),t=o.niceTickExtent=[E(Math.ceil(h[0]/e)*e,s),E(Math.floor(h[1]/e)*e,s)];return m(t,h),o}function v(h){return O.getPrecisionSafe(h)+2}function w(h,c,i){h[c]=Math.max(Math.min(h[c],i[1]),i[0])}function m(h,c){!isFinite(h[0])&&(h[0]=c[0]),!isFinite(h[1])&&(h[1]=c[1]),w(h,0,c),w(h,1,c),h[0]>h[1]&&(h[0]=h[1])}P.intervalScaleNiceTicks=C,P.getIntervalPrecision=v,P.fixExtent=m},lELe:function(j,P,d){var O=d("bYtY");function E(C){var v=[];O.each(C.series,function(w){w&&w.type==="map"&&(v.push(w),w.map=w.map||w.mapType,O.defaults(w,w.mapLocation))})}j.exports=E},lLGD:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("nVfU"),v=C.layout,w=C.largeLayout;d("Wqna"),d("F7hV"),d("Z8zF"),d("Ae16"),O.registerLayout(O.PRIORITY.VISUAL.LAYOUT,E.curry(v,"bar")),O.registerLayout(O.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,w),O.registerVisual({seriesType:"bar",reset:function(m){m.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(j,P,d){"use strict";function O(oe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(zt){return typeof zt}:O=function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},O(oe)}Object.defineProperty(P,"__esModule",{value:!0}),P.deflateInit=Be,P.deflateInit2=Rt,P.deflateReset=Et,P.deflateResetKeep=Ot,P.deflateSetHeader=Tt,P.deflate=Z,P.deflateEnd=J,P.deflateSetDictionary=je,P.deflateInfo=P.Z_DEFLATED=P.Z_UNKNOWN=P.Z_DEFAULT_STRATEGY=P.Z_FIXED=P.Z_RLE=P.Z_HUFFMAN_ONLY=P.Z_FILTERED=P.Z_DEFAULT_COMPRESSION=P.Z_BUF_ERROR=P.Z_DATA_ERROR=P.Z_STREAM_ERROR=P.Z_STREAM_END=P.Z_OK=P.Z_BLOCK=P.Z_FINISH=P.Z_FULL_FLUSH=P.Z_PARTIAL_FLUSH=P.Z_NO_FLUSH=void 0;var E=i(d("6BzB")),C=i(d("c5fP")),v=h(d("xlC8")),w=h(d("QV2g")),m=h(d("xSIq"));function h(oe){return oe&&oe.__esModule?oe:{default:oe}}function c(){if(typeof WeakMap!="function")return null;var oe=new WeakMap;return c=function(){return oe},oe}function i(oe){if(oe&&oe.__esModule)return oe;if(oe===null||O(oe)!=="object"&&typeof oe!="function")return{default:oe};var yt=c();if(yt&&yt.has(oe))return yt.get(oe);var zt={},lt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $t in oe)if(Object.prototype.hasOwnProperty.call(oe,$t)){var cr=lt?Object.getOwnPropertyDescriptor(oe,$t):null;cr&&(cr.get||cr.set)?Object.defineProperty(zt,$t,cr):zt[$t]=oe[$t]}return zt.default=oe,yt&&yt.set(oe,zt),zt}var r=0;P.Z_NO_FLUSH=r;var o=1;P.Z_PARTIAL_FLUSH=o;var n=3;P.Z_FULL_FLUSH=n;var e=4;P.Z_FINISH=e;var s=5;P.Z_BLOCK=s;var t=0;P.Z_OK=t;var a=1;P.Z_STREAM_END=a;var l=-2;P.Z_STREAM_ERROR=l;var u=-3;P.Z_DATA_ERROR=u;var f=-5;P.Z_BUF_ERROR=f;var p=-1;P.Z_DEFAULT_COMPRESSION=p;var g=1;P.Z_FILTERED=g;var A=2;P.Z_HUFFMAN_ONLY=A;var y=3;P.Z_RLE=y;var x=4;P.Z_FIXED=x;var T=0;P.Z_DEFAULT_STRATEGY=T;var S=2;P.Z_UNKNOWN=S;var b=8;P.Z_DEFLATED=b;var _=9,I=15,L=8,D=29,N=256,M=N+1+D,B=30,R=19,H=2*M+1,F=15,K=3,U=258,V=U+K+1,z=32,Y=42,q=69,ce=73,ie=91,ve=103,Ee=113,Le=666,He=1,ge=2,Fe=3,Q=4,fe=3;function Je(oe,yt){return oe.msg=m.default[yt],yt}function ne(oe){return(oe<<1)-(oe>4?9:0)}function X(oe){for(var yt=oe.length;--yt>=0;)oe[yt]=0}function G(oe){var yt=oe.state,zt=yt.pending;if(zt>oe.avail_out&&(zt=oe.avail_out),zt===0)return;E.arraySet(oe.output,yt.pending_buf,yt.pending_out,zt,oe.next_out),oe.next_out+=zt,yt.pending_out+=zt,oe.total_out+=zt,oe.avail_out-=zt,yt.pending-=zt,yt.pending===0&&(yt.pending_out=0)}function te(oe,yt){C._tr_flush_block(oe,oe.block_start>=0?oe.block_start:-1,oe.strstart-oe.block_start,yt),oe.block_start=oe.strstart,G(oe.strm)}function we(oe,yt){oe.pending_buf[oe.pending++]=yt}function he(oe,yt){oe.pending_buf[oe.pending++]=yt>>>8&255,oe.pending_buf[oe.pending++]=yt&255}function Pe(oe,yt,zt,lt){var $t=oe.avail_in;return $t>lt&&($t=lt),$t===0?0:(oe.avail_in-=$t,E.arraySet(yt,oe.input,oe.next_in,$t,zt),oe.state.wrap===1?oe.adler=(0,v.default)(oe.adler,yt,$t,zt):oe.state.wrap===2&&(oe.adler=(0,w.default)(oe.adler,yt,$t,zt)),oe.next_in+=$t,oe.total_in+=$t,$t)}function Oe(oe,yt){var zt=oe.max_chain_length,lt=oe.strstart,$t,cr,cn=oe.prev_length,pr=oe.nice_match,gr=oe.strstart>oe.w_size-V?oe.strstart-(oe.w_size-V):0,Zt=oe.window,Vt=oe.w_mask,mt=oe.prev,Yr=oe.strstart+U,Tn=Zt[lt+cn-1],Hn=Zt[lt+cn];oe.prev_length>=oe.good_match&&(zt>>=2),pr>oe.lookahead&&(pr=oe.lookahead);do{if($t=yt,Zt[$t+cn]!==Hn||Zt[$t+cn-1]!==Tn||Zt[$t]!==Zt[lt]||Zt[++$t]!==Zt[lt+1])continue;lt+=2,$t++;do;while(Zt[++lt]===Zt[++$t]&&Zt[++lt]===Zt[++$t]&&Zt[++lt]===Zt[++$t]&&Zt[++lt]===Zt[++$t]&&Zt[++lt]===Zt[++$t]&&Zt[++lt]===Zt[++$t]&&Zt[++lt]===Zt[++$t]&&Zt[++lt]===Zt[++$t]&&lt<Yr);if(cr=U-(Yr-lt),lt=Yr-U,cr>cn){if(oe.match_start=yt,cn=cr,cr>=pr)break;Tn=Zt[lt+cn-1],Hn=Zt[lt+cn]}}while((yt=mt[yt&Vt])>gr&&--zt!==0);return cn<=oe.lookahead?cn:oe.lookahead}function le(oe){var yt=oe.w_size,zt,lt,$t,cr,cn;do{if(cr=oe.window_size-oe.lookahead-oe.strstart,oe.strstart>=yt+(yt-V)){E.arraySet(oe.window,oe.window,yt,yt,0),oe.match_start-=yt,oe.strstart-=yt,oe.block_start-=yt,lt=oe.hash_size,zt=lt;do $t=oe.head[--zt],oe.head[zt]=$t>=yt?$t-yt:0;while(--lt);lt=yt,zt=lt;do $t=oe.prev[--zt],oe.prev[zt]=$t>=yt?$t-yt:0;while(--lt);cr+=yt}if(oe.strm.avail_in===0)break;if(lt=Pe(oe.strm,oe.window,oe.strstart+oe.lookahead,cr),oe.lookahead+=lt,oe.lookahead+oe.insert>=K)for(cn=oe.strstart-oe.insert,oe.ins_h=oe.window[cn],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[cn+1])&oe.hash_mask;oe.insert&&!(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[cn+K-1])&oe.hash_mask,oe.prev[cn&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=cn,cn++,oe.insert--,oe.lookahead+oe.insert<K););}while(oe.lookahead<V&&oe.strm.avail_in!==0)}function me(oe,yt){var zt=65535;for(zt>oe.pending_buf_size-5&&(zt=oe.pending_buf_size-5);;){if(oe.lookahead<=1){if(le(oe),oe.lookahead===0&&yt===r)return He;if(oe.lookahead===0)break}oe.strstart+=oe.lookahead,oe.lookahead=0;var lt=oe.block_start+zt;if((oe.strstart===0||oe.strstart>=lt)&&(oe.lookahead=oe.strstart-lt,oe.strstart=lt,te(oe,!1),oe.strm.avail_out===0))return He;if(oe.strstart-oe.block_start>=oe.w_size-V&&(te(oe,!1),oe.strm.avail_out===0))return He}return oe.insert=0,yt===e?(te(oe,!0),oe.strm.avail_out===0?Fe:Q):(oe.strstart>oe.block_start&&(te(oe,!1),oe.strm.avail_out===0),He)}function _e(oe,yt){for(var zt,lt;;){if(oe.lookahead<V){if(le(oe),oe.lookahead<V&&yt===r)return He;if(oe.lookahead===0)break}if(zt=0,oe.lookahead>=K&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+K-1])&oe.hash_mask,zt=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),zt!==0&&oe.strstart-zt<=oe.w_size-V&&(oe.match_length=Oe(oe,zt)),oe.match_length>=K)if(lt=C._tr_tally(oe,oe.strstart-oe.match_start,oe.match_length-K),oe.lookahead-=oe.match_length,oe.match_length<=oe.max_lazy_match&&oe.lookahead>=K){oe.match_length--;do oe.strstart++,oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+K-1])&oe.hash_mask,zt=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart;while(--oe.match_length!==0);oe.strstart++}else oe.strstart+=oe.match_length,oe.match_length=0,oe.ins_h=oe.window[oe.strstart],oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+1])&oe.hash_mask;else lt=C._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++;if(lt&&(te(oe,!1),oe.strm.avail_out===0))return He}return oe.insert=oe.strstart<K-1?oe.strstart:K-1,yt===e?(te(oe,!0),oe.strm.avail_out===0?Fe:Q):oe.last_lit&&(te(oe,!1),oe.strm.avail_out===0)?He:ge}function $e(oe,yt){for(var zt,lt,$t;;){if(oe.lookahead<V){if(le(oe),oe.lookahead<V&&yt===r)return He;if(oe.lookahead===0)break}if(zt=0,oe.lookahead>=K&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+K-1])&oe.hash_mask,zt=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart),oe.prev_length=oe.match_length,oe.prev_match=oe.match_start,oe.match_length=K-1,zt!==0&&oe.prev_length<oe.max_lazy_match&&oe.strstart-zt<=oe.w_size-V&&(oe.match_length=Oe(oe,zt),oe.match_length<=5&&(oe.strategy===g||oe.match_length===K&&oe.strstart-oe.match_start>4096)&&(oe.match_length=K-1)),oe.prev_length>=K&&oe.match_length<=oe.prev_length){$t=oe.strstart+oe.lookahead-K,lt=C._tr_tally(oe,oe.strstart-1-oe.prev_match,oe.prev_length-K),oe.lookahead-=oe.prev_length-1,oe.prev_length-=2;do++oe.strstart<=$t&&(oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[oe.strstart+K-1])&oe.hash_mask,zt=oe.prev[oe.strstart&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=oe.strstart);while(--oe.prev_length!==0);if(oe.match_available=0,oe.match_length=K-1,oe.strstart++,lt&&(te(oe,!1),oe.strm.avail_out===0))return He}else if(oe.match_available){if(lt=C._tr_tally(oe,0,oe.window[oe.strstart-1]),lt&&te(oe,!1),oe.strstart++,oe.lookahead--,oe.strm.avail_out===0)return He}else oe.match_available=1,oe.strstart++,oe.lookahead--}return oe.match_available&&(lt=C._tr_tally(oe,0,oe.window[oe.strstart-1]),oe.match_available=0),oe.insert=oe.strstart<K-1?oe.strstart:K-1,yt===e?(te(oe,!0),oe.strm.avail_out===0?Fe:Q):oe.last_lit&&(te(oe,!1),oe.strm.avail_out===0)?He:ge}function gt(oe,yt){for(var zt,lt,$t,cr,cn=oe.window;;){if(oe.lookahead<=U){if(le(oe),oe.lookahead<=U&&yt===r)return He;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=K&&oe.strstart>0&&($t=oe.strstart-1,lt=cn[$t],lt===cn[++$t]&&lt===cn[++$t]&&lt===cn[++$t])){cr=oe.strstart+U;do;while(lt===cn[++$t]&&lt===cn[++$t]&&lt===cn[++$t]&&lt===cn[++$t]&&lt===cn[++$t]&&lt===cn[++$t]&&lt===cn[++$t]&&lt===cn[++$t]&&$t<cr);oe.match_length=U-(cr-$t),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=K?(zt=C._tr_tally(oe,1,oe.match_length-K),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(zt=C._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),zt&&(te(oe,!1),oe.strm.avail_out===0))return He}return oe.insert=0,yt===e?(te(oe,!0),oe.strm.avail_out===0?Fe:Q):oe.last_lit&&(te(oe,!1),oe.strm.avail_out===0)?He:ge}function et(oe,yt){for(var zt;;){if(oe.lookahead===0&&(le(oe),oe.lookahead===0)){if(yt===r)return He;break}if(oe.match_length=0,zt=C._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,zt&&(te(oe,!1),oe.strm.avail_out===0))return He}return oe.insert=0,yt===e?(te(oe,!0),oe.strm.avail_out===0?Fe:Q):oe.last_lit&&(te(oe,!1),oe.strm.avail_out===0)?He:ge}function Ie(oe,yt,zt,lt,$t){this.good_length=oe,this.max_lazy=yt,this.nice_length=zt,this.max_chain=lt,this.func=$t}var rt;rt=[new Ie(0,0,0,0,me),new Ie(4,4,8,4,_e),new Ie(4,5,16,8,_e),new Ie(4,6,32,32,_e),new Ie(4,4,16,16,$e),new Ie(8,16,32,32,$e),new Ie(8,16,128,128,$e),new Ie(8,32,128,256,$e),new Ie(32,128,258,1024,$e),new Ie(32,258,258,4096,$e)];function Ge(oe){oe.window_size=2*oe.w_size,X(oe.head),oe.max_lazy_match=rt[oe.level].max_lazy,oe.good_match=rt[oe.level].good_length,oe.nice_match=rt[oe.level].nice_length,oe.max_chain_length=rt[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=K-1,oe.match_available=0,oe.ins_h=0}function vt(){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(H*2),this.dyn_dtree=new E.Buf16((2*B+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(F+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 Ot(oe){var yt;return!oe||!oe.state?Je(oe,l):(oe.total_in=oe.total_out=0,oe.data_type=S,yt=oe.state,yt.pending=0,yt.pending_out=0,yt.wrap<0&&(yt.wrap=-yt.wrap),yt.status=yt.wrap?Y:Ee,oe.adler=yt.wrap===2?0:1,yt.last_flush=r,C._tr_init(yt),t)}function Et(oe){var yt=Ot(oe);return yt===t&&Ge(oe.state),yt}function Tt(oe,yt){return!oe||!oe.state||oe.state.wrap!==2?l:(oe.state.gzhead=yt,t)}function Rt(oe,yt,zt,lt,$t,cr){if(!oe)return l;var cn=1;if(yt===p&&(yt=6),lt<0?(cn=0,lt=-lt):lt>15&&(cn=2,lt-=16),$t<1||$t>_||zt!==b||lt<8||lt>15||yt<0||yt>9||cr<0||cr>x)return Je(oe,l);lt===8&&(lt=9);var pr=new vt;return oe.state=pr,pr.strm=oe,pr.wrap=cn,pr.gzhead=null,pr.w_bits=lt,pr.w_size=1<<pr.w_bits,pr.w_mask=pr.w_size-1,pr.hash_bits=$t+7,pr.hash_size=1<<pr.hash_bits,pr.hash_mask=pr.hash_size-1,pr.hash_shift=~~((pr.hash_bits+K-1)/K),pr.window=new E.Buf8(pr.w_size*2),pr.head=new E.Buf16(pr.hash_size),pr.prev=new E.Buf16(pr.w_size),pr.lit_bufsize=1<<$t+6,pr.pending_buf_size=pr.lit_bufsize*4,pr.pending_buf=new E.Buf8(pr.pending_buf_size),pr.d_buf=1*pr.lit_bufsize,pr.l_buf=(1+2)*pr.lit_bufsize,pr.level=yt,pr.strategy=cr,pr.method=zt,Et(oe)}function Be(oe,yt){return Rt(oe,yt,b,I,L,T)}function Z(oe,yt){var zt,lt,$t,cr;if(!oe||!oe.state||yt>s||yt<0)return oe?Je(oe,l):l;if(lt=oe.state,!oe.output||!oe.input&&oe.avail_in!==0||lt.status===Le&&yt!==e)return Je(oe,oe.avail_out===0?f:l);if(lt.strm=oe,zt=lt.last_flush,lt.last_flush=yt,lt.status===Y)if(lt.wrap===2)oe.adler=0,we(lt,31),we(lt,139),we(lt,8),lt.gzhead?(we(lt,(lt.gzhead.text?1:0)+(lt.gzhead.hcrc?2:0)+(lt.gzhead.extra?4:0)+(lt.gzhead.name?8:0)+(lt.gzhead.comment?16:0)),we(lt,lt.gzhead.time&255),we(lt,lt.gzhead.time>>8&255),we(lt,lt.gzhead.time>>16&255),we(lt,lt.gzhead.time>>24&255),we(lt,lt.level===9?2:lt.strategy>=A||lt.level<2?4:0),we(lt,lt.gzhead.os&255),lt.gzhead.extra&&lt.gzhead.extra.length&&(we(lt,lt.gzhead.extra.length&255),we(lt,lt.gzhead.extra.length>>8&255)),lt.gzhead.hcrc&&(oe.adler=(0,w.default)(oe.adler,lt.pending_buf,lt.pending,0)),lt.gzindex=0,lt.status=q):(we(lt,0),we(lt,0),we(lt,0),we(lt,0),we(lt,0),we(lt,lt.level===9?2:lt.strategy>=A||lt.level<2?4:0),we(lt,fe),lt.status=Ee);else{var cn=b+(lt.w_bits-8<<4)<<8,pr=-1;lt.strategy>=A||lt.level<2?pr=0:lt.level<6?pr=1:lt.level===6?pr=2:pr=3,cn|=pr<<6,lt.strstart!==0&&(cn|=z),cn+=31-cn%31,lt.status=Ee,he(lt,cn),lt.strstart!==0&&(he(lt,oe.adler>>>16),he(lt,oe.adler&65535)),oe.adler=1}if(lt.status===q)if(lt.gzhead.extra){for($t=lt.pending;lt.gzindex<(lt.gzhead.extra.length&65535)&&!(lt.pending===lt.pending_buf_size&&(lt.gzhead.hcrc&&lt.pending>$t&&(oe.adler=(0,w.default)(oe.adler,lt.pending_buf,lt.pending-$t,$t)),G(oe),$t=lt.pending,lt.pending===lt.pending_buf_size));)we(lt,lt.gzhead.extra[lt.gzindex]&255),lt.gzindex++;lt.gzhead.hcrc&&lt.pending>$t&&(oe.adler=(0,w.default)(oe.adler,lt.pending_buf,lt.pending-$t,$t)),lt.gzindex===lt.gzhead.extra.length&&(lt.gzindex=0,lt.status=ce)}else lt.status=ce;if(lt.status===ce)if(lt.gzhead.name){$t=lt.pending;do{if(lt.pending===lt.pending_buf_size&&(lt.gzhead.hcrc&&lt.pending>$t&&(oe.adler=(0,w.default)(oe.adler,lt.pending_buf,lt.pending-$t,$t)),G(oe),$t=lt.pending,lt.pending===lt.pending_buf_size)){cr=1;break}lt.gzindex<lt.gzhead.name.length?cr=lt.gzhead.name.charCodeAt(lt.gzindex++)&255:cr=0,we(lt,cr)}while(cr!==0);lt.gzhead.hcrc&&lt.pending>$t&&(oe.adler=(0,w.default)(oe.adler,lt.pending_buf,lt.pending-$t,$t)),cr===0&&(lt.gzindex=0,lt.status=ie)}else lt.status=ie;if(lt.status===ie)if(lt.gzhead.comment){$t=lt.pending;do{if(lt.pending===lt.pending_buf_size&&(lt.gzhead.hcrc&&lt.pending>$t&&(oe.adler=(0,w.default)(oe.adler,lt.pending_buf,lt.pending-$t,$t)),G(oe),$t=lt.pending,lt.pending===lt.pending_buf_size)){cr=1;break}lt.gzindex<lt.gzhead.comment.length?cr=lt.gzhead.comment.charCodeAt(lt.gzindex++)&255:cr=0,we(lt,cr)}while(cr!==0);lt.gzhead.hcrc&&lt.pending>$t&&(oe.adler=(0,w.default)(oe.adler,lt.pending_buf,lt.pending-$t,$t)),cr===0&&(lt.status=ve)}else lt.status=ve;if(lt.status===ve&&(lt.gzhead.hcrc?(lt.pending+2>lt.pending_buf_size&&G(oe),lt.pending+2<=lt.pending_buf_size&&(we(lt,oe.adler&255),we(lt,oe.adler>>8&255),oe.adler=0,lt.status=Ee)):lt.status=Ee),lt.pending!==0){if(G(oe),oe.avail_out===0)return lt.last_flush=-1,t}else if(oe.avail_in===0&&ne(yt)<=ne(zt)&&yt!==e)return Je(oe,f);if(lt.status===Le&&oe.avail_in!==0)return Je(oe,f);if(oe.avail_in!==0||lt.lookahead!==0||yt!==r&&lt.status!==Le){var gr=lt.strategy===A?et(lt,yt):lt.strategy===y?gt(lt,yt):rt[lt.level].func(lt,yt);if((gr===Fe||gr===Q)&&(lt.status=Le),gr===He||gr===Fe)return oe.avail_out===0&&(lt.last_flush=-1),t;if(gr===ge&&(yt===o?C._tr_align(lt):yt!==s&&(C._tr_stored_block(lt,0,0,!1),yt===n&&(X(lt.head),lt.lookahead===0&&(lt.strstart=0,lt.block_start=0,lt.insert=0))),G(oe),oe.avail_out===0))return lt.last_flush=-1,t}return yt!==e?t:lt.wrap<=0?a:(lt.wrap===2?(we(lt,oe.adler&255),we(lt,oe.adler>>8&255),we(lt,oe.adler>>16&255),we(lt,oe.adler>>24&255),we(lt,oe.total_in&255),we(lt,oe.total_in>>8&255),we(lt,oe.total_in>>16&255),we(lt,oe.total_in>>24&255)):(he(lt,oe.adler>>>16),he(lt,oe.adler&65535)),G(oe),lt.wrap>0&&(lt.wrap=-lt.wrap),lt.pending!==0?t:a)}function J(oe){var yt;return!oe||!oe.state?l:(yt=oe.state.status,yt!==Y&&yt!==q&&yt!==ce&&yt!==ie&&yt!==ve&&yt!==Ee&&yt!==Le?Je(oe,l):(oe.state=null,yt===Ee?Je(oe,u):t))}function je(oe,yt){var zt=yt.length,lt,$t,cr,cn,pr,gr,Zt,Vt;if(!oe||!oe.state)return l;if(lt=oe.state,cn=lt.wrap,cn===2||cn===1&&lt.status!==Y||lt.lookahead)return l;for(cn===1&&(oe.adler=(0,v.default)(oe.adler,yt,zt,0)),lt.wrap=0,zt>=lt.w_size&&(cn===0&&(X(lt.head),lt.strstart=0,lt.block_start=0,lt.insert=0),Vt=new E.Buf8(lt.w_size),E.arraySet(Vt,yt,zt-lt.w_size,lt.w_size,0),yt=Vt,zt=lt.w_size),pr=oe.avail_in,gr=oe.next_in,Zt=oe.input,oe.avail_in=zt,oe.next_in=0,oe.input=yt,le(lt);lt.lookahead>=K;){$t=lt.strstart,cr=lt.lookahead-(K-1);do lt.ins_h=(lt.ins_h<<lt.hash_shift^lt.window[$t+K-1])&lt.hash_mask,lt.prev[$t&lt.w_mask]=lt.head[lt.ins_h],lt.head[lt.ins_h]=$t,$t++;while(--cr);lt.strstart=$t,lt.lookahead=K-1,le(lt)}return lt.strstart+=lt.lookahead,lt.block_start=lt.strstart,lt.insert=lt.lookahead,lt.lookahead=0,lt.match_length=lt.prev_length=K-1,lt.match_available=0,oe.next_in=gr,oe.input=Zt,oe.avail_in=pr,lt.wrap=cn,t}var Re="pako deflate (from Nodeca project)";P.deflateInfo=Re},lOQZ:function(j,P,d){var O=d("QBsz"),E=d("U/Mo"),C=E.getSymbolSize,v=E.getNodeGlobalScale,w=Math.PI,m=[];function h(i,r){var o=i.coordinateSystem;if(o&&o.type!=="view")return;var n=o.getBoundingRect(),e=i.getData(),s=e.graph,t=n.width/2+n.x,a=n.height/2+n.y,l=Math.min(n.width,n.height)/2,u=e.count();if(e.setLayout({cx:t,cy:a}),!u)return;c[r](i,o,s,e,l,t,a,u),s.eachEdge(function(f){var p=f.getModel().get("lineStyle.curveness")||0,g=O.clone(f.node1.getLayout()),A=O.clone(f.node2.getLayout()),y,x=(g[0]+A[0])/2,T=(g[1]+A[1])/2;+p&&(p*=3,y=[t*p+x*(1-p),a*p+T*(1-p)]),f.setLayout([g,A,y])})}var c={value:function(i,r,o,n,e,s,t,a){var l=0,u=n.getSum("value"),f=Math.PI*2/(u||a);o.eachNode(function(p){var g=p.getValue("value"),A=f*(u?g:1)/2;l+=A,p.setLayout([e*Math.cos(l)+s,e*Math.sin(l)+t]),l+=A})},symbolSize:function(i,r,o,n,e,s,t,a){var l=0;m.length=a;var u=v(i);o.eachNode(function(g){var A=C(g);isNaN(A)&&(A=2),A<0&&(A=0),A*=u;var y=Math.asin(A/2/e);isNaN(y)&&(y=w/2),m[g.dataIndex]=y,l+=y*2});var f=(2*w-l)/a/2,p=0;o.eachNode(function(g){var A=f+m[g.dataIndex];p+=A,g.setLayout([e*Math.cos(p)+s,e*Math.sin(p)+t]),p+=A})}};P.circularLayout=h},lPiR:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(E){var C=O,v=C.lib,w=v.WordArray,m=v.Hasher,h=C.algo,c=[],i=[];(function(){function n(a){for(var l=E.sqrt(a),u=2;u<=l;u++)if(!(a%u))return!1;return!0}function e(a){return(a-(a|0))*4294967296|0}for(var s=2,t=0;t<64;)n(s)&&(t<8&&(c[t]=e(E.pow(s,1/2))),i[t]=e(E.pow(s,1/3)),t++),s++})();var r=[],o=h.SHA256=m.extend({_doReset:function(){this._hash=new w.init(c.slice(0))},_doProcessBlock:function(e,s){for(var t=this._hash.words,a=t[0],l=t[1],u=t[2],f=t[3],p=t[4],g=t[5],A=t[6],y=t[7],x=0;x<64;x++){if(x<16)r[x]=e[s+x]|0;else{var T=r[x-15],S=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=r[x-2],_=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;r[x]=S+r[x-7]+_+r[x-16]}var I=p&g^~p&A,L=a&l^a&u^l&u,D=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),N=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),M=y+N+I+i[x]+r[x],B=D+L;y=A,A=g,g=p,p=f+M|0,f=u,u=l,l=a,a=M+B|0}t[0]=t[0]+a|0,t[1]=t[1]+l|0,t[2]=t[2]+u|0,t[3]=t[3]+f|0,t[4]=t[4]+p|0,t[5]=t[5]+g|0,t[6]=t[6]+A|0,t[7]=t[7]+y|0},_doFinalize:function(){var e=this._data,s=e.words,t=this._nDataBytes*8,a=e.sigBytes*8;return s[a>>>5]|=128<<24-a%32,s[(a+64>>>9<<4)+14]=E.floor(t/4294967296),s[(a+64>>>9<<4)+15]=t,e.sigBytes=s.length*4,this._process(),this._hash},clone:function(){var e=m.clone.call(this);return e._hash=this._hash.clone(),e}});C.SHA256=m._createHelper(o),C.HmacSHA256=m._createHmacHelper(o)}(Math),O.SHA256})},lUTK:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("x54q"),v=d.n(C),w=d("5Dmo")},lZu9:function(j,P,d){(function(O){O(d("VrN/"),d("1eCo"),d("8EBN"))})(function(O){"use strict";O.defineMode("markdown",function(E,C){var v=O.getMode(E,"text/html"),w=v.name=="null";function m(F){if(O.findModeByName){var K=O.findModeByName(F);K&&(F=K.mime||K.mimes[0])}var U=O.getMode(E,F);return U.name=="null"?null:U}C.highlightFormatting===void 0&&(C.highlightFormatting=!1),C.maxBlockquoteDepth===void 0&&(C.maxBlockquoteDepth=0),C.taskLists===void 0&&(C.taskLists=!1),C.strikethrough===void 0&&(C.strikethrough=!1),C.emoji===void 0&&(C.emoji=!1),C.fencedCodeBlockHighlighting===void 0&&(C.fencedCodeBlockHighlighting=!0),C.fencedCodeBlockDefaultMode===void 0&&(C.fencedCodeBlockDefaultMode="text/plain"),C.xml===void 0&&(C.xml=!0),C.tokenTypeOverrides===void 0&&(C.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)&&C.tokenTypeOverrides[c]&&(h[c]=C.tokenTypeOverrides[c]);var i=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,o=/^\[(x| )\](?=\s)/i,n=C.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,a=/^\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(F,K,U){return K.f=K.inline=U,U(F,K)}function p(F,K,U){return K.f=K.block=U,U(F,K)}function g(F){return!F||!/\S/.test(F.string)}function A(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==x){var K=w;if(!K){var U=O.innerMode(v,F.htmlState);K=U.mode.name=="xml"&&U.state.tagStart===null&&!U.state.context&&U.state.tokenize.isInText}K&&(F.f=_,F.block=y,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function y(F,K){var U=F.column()===K.indentation,V=g(K.prevLine.stream),z=K.indentedCode,Y=K.prevLine.hr,q=K.list!==!1,ce=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var ie=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,q)){for(K.list=null;ie<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=ie-K.listStack[K.listStack.length-1])}var ve=!V&&!Y&&!K.prevLine.header&&(!q||!z)&&!K.prevLine.fencedCodeEnd,Ee=(K.list===!1||Y||V)&&K.indentation<=ce&&F.match(i),Le=null;if(K.indentationDiff>=4&&(z||K.prevLine.fencedCodeEnd||K.prevLine.header||V))return F.skipToEnd(),K.indentedCode=!0,h.code;if(F.eatSpace())return null;if(U&&K.indentation<=ce&&(Le=F.match(n))&&Le[1].length<=6)return K.quote=0,K.header=Le[1].length,K.thisLine.header=!0,C.highlightFormatting&&(K.formatting="header"),K.f=K.inline,S(K);if(K.indentation<=ce&&F.eat(">"))return K.quote=U?1:K.quote+1,C.highlightFormatting&&(K.formatting="quote"),F.eatSpace(),S(K);if(!Ee&&!K.setext&&U&&K.indentation<=ce&&(Le=F.match(r))){var He=Le[1]?"ol":"ul";return K.indentation=ie+F.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,C.taskLists&&F.match(o,!1)&&(K.taskList=!0),K.f=K.inline,C.highlightFormatting&&(K.formatting=["list","list-"+He]),S(K)}else{if(U&&K.indentation<=ce&&(Le=F.match(t,!0)))return K.quote=0,K.fencedEndRE=new RegExp(Le[1]+"+ *$"),K.localMode=C.fencedCodeBlockHighlighting&&m(Le[2]||C.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=O.startState(K.localMode)),K.f=K.block=T,C.highlightFormatting&&(K.formatting="code-block"),K.code=-1,S(K);if(K.setext||(!ve||!q)&&!K.quote&&K.list===!1&&!K.code&&!Ee&&!a.test(F.string)&&(Le=F.lookAhead(1))&&(Le=Le.match(e)))return K.setext?(K.header=K.setext,K.setext=0,F.skipToEnd(),C.highlightFormatting&&(K.formatting="header")):(K.header=Le[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,S(K);if(Ee)return F.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,h.hr;if(F.peek()==="[")return f(F,K,M)}return f(F,K,K.inline)}function x(F,K){var U=v.token(F,K.htmlState);if(!w){var V=O.innerMode(v,K.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||K.md_inside&&F.current().indexOf(">")>-1)&&(K.f=_,K.block=y,K.htmlState=null)}return U}function T(F,K){var U=K.listStack[K.listStack.length-1]||0,V=K.indentation<U,z=U+3;if(K.fencedEndRE&&K.indentation<=z&&(V||F.match(K.fencedEndRE))){C.highlightFormatting&&(K.formatting="code-block");var Y;return V||(Y=S(K)),K.localMode=K.localState=null,K.block=y,K.f=_,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,V?p(F,K,K.block):Y}else return K.localMode?K.localMode.token(F,K.localState):(F.skipToEnd(),h.code)}function S(F){var K=[];if(F.formatting){K.push(h.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var U=0;U<F.formatting.length;U++)K.push(h.formatting+"-"+F.formatting[U]),F.formatting[U]==="header"&&K.push(h.formatting+"-"+F.formatting[U]+"-"+F.header),F.formatting[U]==="quote"&&(!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=F.quote?K.push(h.formatting+"-"+F.formatting[U]+"-"+F.quote):K.push("error"))}if(F.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(F.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(F.linkHref?K.push(h.linkHref,"url"):(F.strong&&K.push(h.strong),F.em&&K.push(h.em),F.strikethrough&&K.push(h.strikethrough),F.emoji&&K.push(h.emoji),F.linkText&&K.push(h.linkText),F.code&&K.push(h.code),F.image&&K.push(h.image),F.imageAltText&&K.push(h.imageAltText,"link"),F.imageMarker&&K.push(h.imageMarker)),F.header&&K.push(h.header,h.header+"-"+F.header),F.quote&&(K.push(h.quote),!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=F.quote?K.push(h.quote+"-"+F.quote):K.push(h.quote+"-"+C.maxBlockquoteDepth)),F.list!==!1){var V=(F.listStack.length-1)%3;V?V===1?K.push(h.list2):K.push(h.list3):K.push(h.list1)}return F.trailingSpaceNewLine?K.push("trailing-space-new-line"):F.trailingSpace&&K.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function b(F,K){return F.match(s,!0)?S(K):void 0}function _(F,K){var U=K.text(F,K);if(typeof U!="undefined")return U;if(K.list)return K.list=null,S(K);if(K.taskList){var V=F.match(o,!0)[1]===" ";return V?K.taskOpen=!0:K.taskClosed=!0,C.highlightFormatting&&(K.formatting="task"),K.taskList=!1,S(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&F.match(/^#+$/,!0))return C.highlightFormatting&&(K.formatting="header"),S(K);var z=F.next();if(K.linkTitle){K.linkTitle=!1;var Y=z;z==="("&&(Y=")"),Y=(Y+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var q="^\\s*(?:[^"+Y+"\\\\]+|\\\\\\\\|\\\\.)"+Y;if(F.match(new RegExp(q),!0))return h.linkHref}if(z==="`"){var ce=K.formatting;C.highlightFormatting&&(K.formatting="code"),F.eatWhile("`");var ie=F.current().length;if(K.code==0&&(!K.quote||ie==1))return K.code=ie,S(K);if(ie==K.code){var ve=S(K);return K.code=0,ve}else return K.formatting=ce,S(K)}else if(K.code)return S(K);if(z==="\\"&&(F.next(),C.highlightFormatting)){var Ee=S(K),Le=h.formatting+"-escape";return Ee?Ee+" "+Le:Le}if(z==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,C.highlightFormatting&&(K.formatting="image"),S(K);if(z==="["&&K.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,C.highlightFormatting&&(K.formatting="image"),S(K);if(z==="]"&&K.imageAltText){C.highlightFormatting&&(K.formatting="image");var Ee=S(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=L,Ee}if(z==="["&&!K.image)return K.linkText&&F.match(/^.*?\]/)||(K.linkText=!0,C.highlightFormatting&&(K.formatting="link")),S(K);if(z==="]"&&K.linkText){C.highlightFormatting&&(K.formatting="link");var Ee=S(K);return K.linkText=!1,K.inline=K.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?L:_,Ee}if(z==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=I,C.highlightFormatting&&(K.formatting="link");var Ee=S(K);return Ee?Ee+=" ":Ee="",Ee+h.linkInline}if(z==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=I,C.highlightFormatting&&(K.formatting="link");var Ee=S(K);return Ee?Ee+=" ":Ee="",Ee+h.linkEmail}if(C.xml&&z==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var He=F.string.indexOf(">",F.pos);if(He!=-1){var ge=F.string.substring(F.start,He);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ge)&&(K.md_inside=!0)}return F.backUp(1),K.htmlState=O.startState(v),p(F,K,x)}if(C.xml&&z==="<"&&F.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var Fe=1,Q=F.pos==1?" ":F.string.charAt(F.pos-2);Fe<3&&F.eat(z);)Fe++;var fe=F.peek()||" ",Je=!/\s/.test(fe)&&(!l.test(fe)||/\s/.test(Q)||l.test(Q)),ne=!/\s/.test(Q)&&(!l.test(Q)||/\s/.test(fe)||l.test(fe)),X=null,G=null;if(Fe%2&&(!K.em&&Je&&(z==="*"||!ne||l.test(Q))?X=!0:K.em==z&&ne&&(z==="*"||!Je||l.test(fe))&&(X=!1)),Fe>1&&(!K.strong&&Je&&(z==="*"||!ne||l.test(Q))?G=!0:K.strong==z&&ne&&(z==="*"||!Je||l.test(fe))&&(G=!1)),G!=null||X!=null){C.highlightFormatting&&(K.formatting=X==null?"strong":G==null?"em":"strong em"),X===!0&&(K.em=z),G===!0&&(K.strong=z);var ve=S(K);return X===!1&&(K.em=!1),G===!1&&(K.strong=!1),ve}}else if(z===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return S(K);F.backUp(1)}if(C.strikethrough){if(z==="~"&&F.eatWhile(z)){if(K.strikethrough){C.highlightFormatting&&(K.formatting="strikethrough");var ve=S(K);return K.strikethrough=!1,ve}else if(F.match(/^[^\s]/,!1))return K.strikethrough=!0,C.highlightFormatting&&(K.formatting="strikethrough"),S(K)}else if(z===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return S(K);F.backUp(2)}}if(C.emoji&&z===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,C.highlightFormatting&&(K.formatting="emoji");var te=S(K);return K.emoji=!1,te}return z===" "&&(F.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),S(K)}function I(F,K){var U=F.next();if(U===">"){K.f=K.inline=_,C.highlightFormatting&&(K.formatting="link");var V=S(K);return V?V+=" ":V="",V+h.linkInline}return F.match(/^[^>]+/,!0),h.linkInline}function L(F,K){if(F.eatSpace())return null;var U=F.next();return U==="("||U==="["?(K.f=K.inline=N(U==="("?")":"]"),C.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,S(K)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(K,U){var V=K.next();if(V===F){U.f=U.inline=_,C.highlightFormatting&&(U.formatting="link-string");var z=S(U);return U.linkHref=!1,z}return K.match(D[F]),U.linkHref=!0,S(U)}}function M(F,K){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=B,F.next(),C.highlightFormatting&&(K.formatting="link"),K.linkText=!0,S(K)):f(F,K,_)}function B(F,K){if(F.match(/^\]:/,!0)){K.f=K.inline=R,C.highlightFormatting&&(K.formatting="link");var U=S(K);return K.linkText=!1,U}return F.match(/^([^\]\\]|\\.)+/,!0),h.linkText}function R(F,K){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?K.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=_,h.linkHref+" url")}var H={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&&O.copyState(v,K.htmlState),indentation:K.indentation,localMode:K.localMode,localState:K.localMode?O.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 V=K.match(/^\s*/,!0)[0].replace(/\t/g,u).length;if(U.indentation=V,U.indentationDiff=null,V>0)return null}}return U.f(K,U)},innerMode:function(K){return K.block==x?{state:K.htmlState,mode:v}:K.localState?{state:K.localState,mode:K.localMode}:{state:K,mode:H}},indent:function(K,U,V){return K.block==x&&v.indent?v.indent(K.htmlState,U,V):K.localState&&K.localMode.indent?K.localMode.indent(K.localState,U,V):O.Pass},blankLine:A,getType:S,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),O.defineMIME("text/markdown","markdown"),O.defineMIME("text/x-markdown","markdown")})},laiN:function(j,P,d){var O=d("ProS");d("GVMX"),d("MH26"),O.registerPreprocessor(function(E){E.markLine=E.markLine||{}})},lnY3:function(j,P,d){},loD1:function(j,P){function d(O,E,C,v,w,m,h){if(w===0)return!1;var c=w,i=0,r=O;if(h>E+c&&h>v+c||h<E-c&&h<v-c||m>O+c&&m>C+c||m<O-c&&m<C-c)return!1;if(O!==C)i=(E-v)/(O-C),r=(O*v-C*E)/(O-C);else return Math.abs(m-O)<=c/2;var o=i*m-h+r,n=o*o/(i*i+1);return n<=c/2*c/2}P.containStroke=d},lr6o:function(j,P,d){"use strict";var O=d("rePB"),E=d("Ff2n"),C=d("VTBJ"),v=d("1OyB"),w=d("vuIU"),m=d("JX7q"),h=d("Ji7U"),c=d("LK+K"),i=d("q1tI"),r=d("TSYQ"),o=d.n(r),n=d("FTAc"),e=d("wPhX"),s=function(x){var T=x.prefixCls,S=x.level,b=x.isStart,_=x.isEnd;if(!S)return null;for(var I="".concat(T,"-indent-unit"),L=[],D=0;D<S;D+=1){var N;L.push(i.createElement("span",{key:D,className:o()(I,(N={},Object(O.a)(N,"".concat(I,"-start"),b[D+1]),Object(O.a)(N,"".concat(I,"-end"),_[D+1]),Object(O.a)(N,"".concat(I,"-end-first-level"),!D&&_[0]),N))}))}return i.createElement("span",{"aria-hidden":"true",className:"".concat(T,"-indent")},L)},t=s,a=d("c3jg"),l="open",u="close",f="---",p=function(y){Object(h.a)(T,y);var x=Object(c.a)(T);function T(){var S;return Object(v.a)(this,T),S=x.apply(this,arguments),S.state={dragNodeHighlight:!1},S.onSelectorClick=function(b){var _=S.props.context.onNodeClick;_(b,Object(a.b)(S.props)),S.isSelectable()?S.onSelect(b):S.onCheck(b)},S.onSelectorDoubleClick=function(b){var _=S.props.context.onNodeDoubleClick;_(b,Object(a.b)(S.props))},S.onSelect=function(b){if(S.isDisabled())return;var _=S.props.context.onNodeSelect;b.preventDefault(),_(b,Object(a.b)(S.props))},S.onCheck=function(b){if(S.isDisabled())return;var _=S.props,I=_.disableCheckbox,L=_.checked,D=S.props.context.onNodeCheck;if(!S.isCheckable()||I)return;b.preventDefault();var N=!L;D(b,Object(a.b)(S.props),N)},S.onMouseEnter=function(b){var _=S.props.context.onNodeMouseEnter;_(b,Object(a.b)(S.props))},S.onMouseLeave=function(b){var _=S.props.context.onNodeMouseLeave;_(b,Object(a.b)(S.props))},S.onContextMenu=function(b){var _=S.props.context.onNodeContextMenu;_(b,Object(a.b)(S.props))},S.onDragStart=function(b){var _=S.props.context.onNodeDragStart;b.stopPropagation(),S.setState({dragNodeHighlight:!0}),_(b,Object(m.a)(S));try{b.dataTransfer.setData("text/plain","")}catch(I){}},S.onDragEnter=function(b){var _=S.props.context.onNodeDragEnter;b.preventDefault(),b.stopPropagation(),_(b,Object(m.a)(S))},S.onDragOver=function(b){var _=S.props.context.onNodeDragOver;b.preventDefault(),b.stopPropagation(),_(b,Object(m.a)(S))},S.onDragLeave=function(b){var _=S.props.context.onNodeDragLeave;b.stopPropagation(),_(b,Object(m.a)(S))},S.onDragEnd=function(b){var _=S.props.context.onNodeDragEnd;b.stopPropagation(),S.setState({dragNodeHighlight:!1}),_(b,Object(m.a)(S))},S.onDrop=function(b){var _=S.props.context.onNodeDrop;b.preventDefault(),b.stopPropagation(),S.setState({dragNodeHighlight:!1}),_(b,Object(m.a)(S))},S.onExpand=function(b){var _=S.props.context.onNodeExpand;_(b,Object(a.b)(S.props))},S.setSelectHandle=function(b){S.selectHandle=b},S.getNodeState=function(){var b=S.props.expanded;return S.isLeaf()?null:b?l:u},S.hasChildren=function(){var b=S.props.eventKey,_=S.props.context.keyEntities,I=_[b]||{},L=I.children;return!!(L||[]).length},S.isLeaf=function(){var b=S.props,_=b.isLeaf,I=b.loaded,L=S.props.context.loadData,D=S.hasChildren();return _===!1?!1:_||!L&&!D||L&&I&&!D},S.isDisabled=function(){var b=S.props.disabled,_=S.props.context.disabled;return!!(_||b)},S.isCheckable=function(){var b=S.props.checkable,_=S.props.context.checkable;return!_||b===!1?!1:_},S.syncLoadData=function(b){var _=b.expanded,I=b.loading,L=b.loaded,D=S.props.context,N=D.loadData,M=D.onNodeLoad;if(I)return;N&&_&&!S.isLeaf()&&(!S.hasChildren()&&!L&&M(Object(a.b)(S.props)))},S.renderSwitcher=function(){var b=S.props,_=b.expanded,I=b.switcherIcon,L=S.props.context,D=L.prefixCls,N=L.switcherIcon,M=I||N;if(S.isLeaf())return i.createElement("span",{className:o()("".concat(D,"-switcher"),"".concat(D,"-switcher-noop"))},typeof M=="function"?M(Object(C.a)(Object(C.a)({},S.props),{},{isLeaf:!0})):M);var B=o()("".concat(D,"-switcher"),"".concat(D,"-switcher_").concat(_?l:u));return i.createElement("span",{onClick:S.onExpand,className:B},typeof M=="function"?M(Object(C.a)(Object(C.a)({},S.props),{},{isLeaf:!1})):M)},S.renderCheckbox=function(){var b=S.props,_=b.checked,I=b.halfChecked,L=b.disableCheckbox,D=S.props.context.prefixCls,N=S.isDisabled(),M=S.isCheckable();if(!M)return null;var B=typeof M!="boolean"?M:null;return i.createElement("span",{className:o()("".concat(D,"-checkbox"),_&&"".concat(D,"-checkbox-checked"),!_&&I&&"".concat(D,"-checkbox-indeterminate"),(N||L)&&"".concat(D,"-checkbox-disabled")),onClick:S.onCheck},B)},S.renderIcon=function(){var b=S.props.loading,_=S.props.context.prefixCls;return i.createElement("span",{className:o()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(S.getNodeState()||"docu"),b&&"".concat(_,"-icon_loading"))})},S.renderSelector=function(){var b=S.state.dragNodeHighlight,_=S.props,I=_.title,L=_.selected,D=_.icon,N=_.loading,M=_.data,B=S.props.context,R=B.prefixCls,H=B.showIcon,F=B.icon,K=B.draggable,U=B.loadData,V=B.titleRender,z=S.isDisabled(),Y="".concat(R,"-node-content-wrapper"),q;if(H){var ce=D||F;q=ce?i.createElement("span",{className:o()("".concat(R,"-iconEle"),"".concat(R,"-icon__customize"))},typeof ce=="function"?ce(S.props):ce):S.renderIcon()}else U&&N&&(q=S.renderIcon());var ie;typeof I=="function"?ie=I(M):V?ie=V(M):ie=I;var ve=i.createElement("span",{className:"".concat(R,"-title")},ie);return i.createElement("span",{ref:S.setSelectHandle,title:typeof I=="string"?I:"",className:o()("".concat(Y),"".concat(Y,"-").concat(S.getNodeState()||"normal"),!z&&(L||b)&&"".concat(R,"-node-selected"),!z&&K&&"draggable"),draggable:!z&&K||void 0,"aria-grabbed":!z&&K||void 0,onMouseEnter:S.onMouseEnter,onMouseLeave:S.onMouseLeave,onContextMenu:S.onContextMenu,onClick:S.onSelectorClick,onDoubleClick:S.onSelectorDoubleClick,onDragStart:K?S.onDragStart:void 0},q,ve)},S}return Object(w.a)(T,[{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,I=_.eventKey,L=_.className,D=_.style,N=_.dragOver,M=_.dragOverGapTop,B=_.dragOverGapBottom,R=_.isLeaf,H=_.isStart,F=_.isEnd,K=_.expanded,U=_.selected,V=_.checked,z=_.halfChecked,Y=_.loading,q=_.domRef,ce=_.active,ie=_.onMouseMove,ve=Object(E.a)(_,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ee=this.props.context,Le=Ee.prefixCls,He=Ee.filterTreeNode,ge=Ee.draggable,Fe=Ee.keyEntities,Q=this.isDisabled(),fe=Object(e.f)(ve),Je=Fe[I]||{},ne=Je.level,X=F[F.length-1];return i.createElement("div",Object.assign({ref:q,className:o()(L,"".concat(Le,"-treenode"),(b={},Object(O.a)(b,"".concat(Le,"-treenode-disabled"),Q),Object(O.a)(b,"".concat(Le,"-treenode-switcher-").concat(K?"open":"close"),!R),Object(O.a)(b,"".concat(Le,"-treenode-checkbox-checked"),V),Object(O.a)(b,"".concat(Le,"-treenode-checkbox-indeterminate"),z),Object(O.a)(b,"".concat(Le,"-treenode-selected"),U),Object(O.a)(b,"".concat(Le,"-treenode-loading"),Y),Object(O.a)(b,"".concat(Le,"-treenode-active"),ce),Object(O.a)(b,"".concat(Le,"-treenode-leaf-last"),X),Object(O.a)(b,"drag-over",!Q&&N),Object(O.a)(b,"drag-over-gap-top",!Q&&M),Object(O.a)(b,"drag-over-gap-bottom",!Q&&B),Object(O.a)(b,"filter-node",He&&He(Object(a.b)(this.props))),b)),style:D,onDragEnter:ge?this.onDragEnter:void 0,onDragOver:ge?this.onDragOver:void 0,onDragLeave:ge?this.onDragLeave:void 0,onDrop:ge?this.onDrop:void 0,onDragEnd:ge?this.onDragEnd:void 0,onMouseMove:ie},fe),i.createElement(t,{prefixCls:Le,level:ne,isStart:H,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),T}(i.Component),g=function(x){return i.createElement(n.a.Consumer,null,function(T){return i.createElement(p,Object.assign({},x,{context:T}))})};g.displayName="TreeNode",g.defaultProps={title:f},g.isTreeNode=1;var A=P.a=g},lrIw:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("cDf5"),v=d.n(C),w=d("J4zp"),m=d.n(w),h=d("q1tI"),c=d.n(h),i=d("Zm9Q"),r=d("TSYQ"),o=d.n(r),n=d("BGR+"),e=d("2fM7"),s=d("H84U"),t=d("uaoM"),a=d("0n0R"),l=e.a.Option,u=e.a;function f(A){return A&&A.type&&(A.type.isSelectOption||A.type.isSelectOptGroup)}var p=function(y,x){var T=y.prefixCls,S=y.className,b=y.children,_=y.dataSource,I=Object(i.a)(b),L=h.useRef();h.useImperativeHandle(x,function(){return L.current});var D;if(I.length===1&&Object(a.b)(I[0])&&!f(I[0])){var N=m()(I,1);D=N[0]}var M=function(){return D},B;return I.length&&f(I[0])?B=b:B=_?_.map(function(R){if(Object(a.b)(R))return R;switch(v()(R)){case"string":return h.createElement(l,{key:R,value:R},R);case"object":{var H=R.value;return h.createElement(l,{key:H,value:H},R.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],h.useEffect(function(){Object(t.a)(!("dataSource"in y),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(t.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 H=R.getPrefixCls,F=H("select",T);return h.createElement(u,E()({ref:L},Object(n.default)(y,["dataSource"]),{prefixCls:F,className:o()(S,"".concat(F,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:M}),B)})},g=h.forwardRef(p);g.Option=l,P.a=g},lwQL:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("9wZj"),v=d("c8qY"),w=d("SgGq"),m=d("Ae+d"),h=d("xSat"),c=h.onIrrelevantElement,i=d("IwbS"),r=d("SA8n"),o=d("U/Mo"),n=o.getNodeGlobalScale,e="__focusNodeAdjacency",s="__unfocusNodeAdjacency",t=["itemStyle","opacity"],a=["lineStyle","opacity"];function l(g,A){var y=g.getVisual("opacity");return y!=null?y:g.getModel().get(A)}function u(g,A,y){var x=g.getGraphicEl(),T=l(g,A);y!=null&&(T==null&&(T=1),T*=y),x.downplay&&x.downplay(),x.traverse(function(S){if(!S.isGroup){var b=S.lineLabelOriginalOpacity;(b==null||y!=null)&&(b=T),S.setStyle("opacity",b)}})}function f(g,A){var y=l(g,A),x=g.getGraphicEl();x.traverse(function(T){!T.isGroup&&T.setStyle("opacity",y)}),x.highlight&&x.highlight()}var p=O.extendChartView({type:"graph",init:function(g,A){var y=new C,x=new v,T=this.group;this._controller=new w(A.getZr()),this._controllerHost={target:T},T.add(y.group),T.add(x.group),this._symbolDraw=y,this._lineDraw=x,this._firstRender=!0},render:function(g,A,y){var x=this,T=g.coordinateSystem;this._model=g;var S=this._symbolDraw,b=this._lineDraw,_=this.group;if(T.type==="view"){var I={position:T.position,scale:T.scale};this._firstRender?_.attr(I):i.updateProps(_,I,g)}r(g.getGraph(),n(g));var L=g.getData();S.updateData(L);var D=g.getEdgeData();b.updateData(D),this._updateNodeAndLinkScale(),this._updateController(g,A,y),clearTimeout(this._layoutTimeout);var N=g.forceLayout,M=g.get("force.layoutAnimation");N&&this._startForceLayoutIteration(N,M),L.eachItemGraphicEl(function(F,K){var U=L.getItemModel(K);F.off("drag").off("dragend");var V=U.get("draggable");V&&F.on("drag",function(){N&&(N.warmUp(),!this._layouting&&this._startForceLayoutIteration(N,M),N.setFixed(K),L.setItemLayout(K,F.position))},this).on("dragend",function(){N&&N.setUnfixed(K)},this),F.setDraggable(V&&N),F[e]&&F.off("mouseover",F[e]),F[s]&&F.off("mouseout",F[s]),U.get("focusNodeAdjacency")&&(F.on("mouseover",F[e]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[s]=function(){x._dispatchUnfocus(y)}))},this),L.graph.eachEdge(function(F){var K=F.getGraphicEl();K[e]&&K.off("mouseover",K[e]),K[s]&&K.off("mouseout",K[s]),F.getModel().get("focusNodeAdjacency")&&(K.on("mouseover",K[e]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,edgeDataIndex:F.dataIndex})}),K.on("mouseout",K[s]=function(){x._dispatchUnfocus(y)}))});var B=g.get("layout")==="circular"&&g.get("circular.rotateLabel"),R=L.getLayout("cx"),H=L.getLayout("cy");L.eachItemGraphicEl(function(F,K){var U=L.getItemModel(K),V=U.get("label.rotate")||0,z=F.getSymbolPath();if(B){var Y=L.getItemLayout(K),q=Math.atan2(Y[1]-H,Y[0]-R);q<0&&(q=Math.PI*2+q);var ce=Y[0]<R;ce&&(q=q-Math.PI);var ie=ce?"left":"right";i.modifyLabelStyle(z,{textRotation:-q,textPosition:ie,textOrigin:"center"},{textPosition:ie})}else i.modifyLabelStyle(z,{textRotation:V*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(g,A){var y=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){y._unfocusDelayTimer=null,g.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(g,A,y,x){var T=g.getData(),S=T.graph,b=x.dataIndex,_=x.edgeDataIndex,I=S.getNodeByIndex(b),L=S.getEdgeByIndex(_);if(!I&&!L)return;S.eachNode(function(D){u(D,t,.1)}),S.eachEdge(function(D){u(D,a,.1)}),I&&(f(I,t),E.each(I.edges,function(D){if(D.dataIndex<0)return;f(D,a),f(D.node1,t),f(D.node2,t)})),L&&(f(L,a),f(L.node1,t),f(L.node2,t))},unfocusNodeAdjacency:function(g,A,y,x){var T=g.getData().graph;T.eachNode(function(S){u(S,t)}),T.eachEdge(function(S){u(S,a)})},_startForceLayoutIteration:function(g,A){var y=this;(function x(){g.step(function(T){y.updateLayout(y._model),(y._layouting=!T)&&(A?y._layoutTimeout=setTimeout(x,16):x())})})()},_updateController:function(g,A,y){var x=this._controller,T=this._controllerHost,S=this.group;if(x.setPointerChecker(function(b,_,I){var L=S.getBoundingRect();return L.applyTransform(S.transform),L.contain(_,I)&&!c(b,y,g)}),g.coordinateSystem.type!=="view"){x.disable();return}x.enable(g.get("roam")),T.zoomLimit=g.get("scaleLimit"),T.zoom=g.coordinateSystem.getZoom(),x.off("pan").off("zoom").on("pan",function(b){m.updateViewOnPan(T,b.dx,b.dy),y.dispatchAction({seriesId:g.id,type:"graphRoam",dx:b.dx,dy:b.dy})}).on("zoom",function(b){m.updateViewOnZoom(T,b.scale,b.originX,b.originY),y.dispatchAction({seriesId:g.id,type:"graphRoam",zoom:b.scale,originX:b.originX,originY:b.originY}),this._updateNodeAndLinkScale(),r(g.getGraph(),n(g)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var g=this._model,A=g.getData(),y=n(g),x=[y,y];A.eachItemGraphicEl(function(T,S){T.attr("scale",x)})},updateLayout:function(g){r(g.getGraph(),n(g)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(g,A){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});j.exports=p},m9t5:function(j,P,d){var O=d("KCsZ"),E=O([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),C={getAreaStyle:function(v,w){return E(this,v,w)}};j.exports=C},mFDi:function(j,P,d){var O=d("QBsz"),E=d("Fofx"),C=O.applyTransform,v=Math.min,w=Math.max;function m(c,i,r,o){r<0&&(c=c+r,r=-r),o<0&&(i=i+o,o=-o),this.x=c,this.y=i,this.width=r,this.height=o}m.prototype={constructor:m,union:function(i){var r=v(i.x,this.x),o=v(i.y,this.y);this.width=w(i.x+i.width,this.x+this.width)-r,this.height=w(i.y+i.height,this.y+this.height)-o,this.x=r,this.y=o},applyTransform:function(){var c=[],i=[],r=[],o=[];return function(n){if(!n)return;c[0]=r[0]=this.x,c[1]=o[1]=this.y,i[0]=o[0]=this.x+this.width,i[1]=r[1]=this.y+this.height,C(c,c,n),C(i,i,n),C(r,r,n),C(o,o,n),this.x=v(c[0],i[0],r[0],o[0]),this.y=v(c[1],i[1],r[1],o[1]);var e=w(c[0],i[0],r[0],o[0]),s=w(c[1],i[1],r[1],o[1]);this.width=e-this.x,this.height=s-this.y}}(),calculateTransform:function(i){var r=this,o=i.width/r.width,n=i.height/r.height,e=E.create();return E.translate(e,e,[-r.x,-r.y]),E.scale(e,e,[o,n]),E.translate(e,e,[i.x,i.y]),e},intersect:function(i){if(!i)return!1;i instanceof m||(i=m.create(i));var r=this,o=r.x,n=r.x+r.width,e=r.y,s=r.y+r.height,t=i.x,a=i.x+i.width,l=i.y,u=i.y+i.height;return!(n<t||a<o||s<l||u<e)},contain:function(i,r){var o=this;return i>=o.x&&i<=o.x+o.width&&r>=o.y&&r<=o.y+o.height},clone:function(){return new m(this.x,this.y,this.width,this.height)},copy:function(i){this.x=i.x,this.y=i.y,this.width=i.width,this.height=i.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;j.exports=h},mHUz:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={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};P.default=O},mLcG:function(j,P){var d=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};j.exports=d},"mO/d":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("I9Y+"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},mOdp:function(j,P,d){var O=d("bYtY"),E=O.createHashMap;function C(v){return{getTargetSeries:function(w){var m={},h=E();return w.eachSeriesByType(v,function(c){c.__paletteScope=m,h.set(c.uid,c)}),h},reset:function(w,m){var h=w.getRawData(),c={},i=w.getData();i.each(function(r){var o=i.getRawIndex(r);c[o]=r}),h.each(function(r){var o=c[r],n=o!=null&&i.getItemVisual(o,"color",!0),e=o!=null&&i.getItemVisual(o,"borderColor",!0),s;if((!n||!e)&&(s=h.getItemModel(r)),!n){var t=s.get("itemStyle.color")||w.getColorFromPalette(h.getName(r)||r+"",w.__paletteScope,h.count());o!=null&&i.setItemVisual(o,"color",t)}if(!e){var a=s.get("itemStyle.borderColor");o!=null&&i.setItemVisual(o,"borderColor",a)}})}}}j.exports=C},mTgk:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("mHUz"));function E(c){return c&&c.__esModule?c:{default:c}}var C={};function v(c,i){if(i===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in C)throw new Error('Duplicate entry for key "'+c+'"');C[c]=[i,i,i,i]}function w(c,i,r){if(i===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 C)throw new Error('Duplicate entry for key "'+c+'"');C[c]=[i,i,r,i]}function m(c,i,r){if(i===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 C)throw new Error('Duplicate entry for key "'+c+'"');C[c]=[i,i,i,r]}w("Alt",O.default.XK_Alt_L,O.default.XK_Alt_R),v("AltGraph",O.default.XK_ISO_Level3_Shift),v("CapsLock",O.default.XK_Caps_Lock),w("Control",O.default.XK_Control_L,O.default.XK_Control_R),w("Meta",O.default.XK_Super_L,O.default.XK_Super_R),v("NumLock",O.default.XK_Num_Lock),v("ScrollLock",O.default.XK_Scroll_Lock),w("Shift",O.default.XK_Shift_L,O.default.XK_Shift_R),m("Enter",O.default.XK_Return,O.default.XK_KP_Enter),v("Tab",O.default.XK_Tab),m(" ",O.default.XK_space,O.default.XK_KP_Space),m("ArrowDown",O.default.XK_Down,O.default.XK_KP_Down),m("ArrowUp",O.default.XK_Up,O.default.XK_KP_Up),m("ArrowLeft",O.default.XK_Left,O.default.XK_KP_Left),m("ArrowRight",O.default.XK_Right,O.default.XK_KP_Right),m("End",O.default.XK_End,O.default.XK_KP_End),m("Home",O.default.XK_Home,O.default.XK_KP_Home),m("PageDown",O.default.XK_Next,O.default.XK_KP_Next),m("PageUp",O.default.XK_Prior,O.default.XK_KP_Prior),v("Backspace",O.default.XK_BackSpace),m("Clear",O.default.XK_Clear,O.default.XK_KP_Begin),v("Copy",O.default.XF86XK_Copy),v("Cut",O.default.XF86XK_Cut),m("Delete",O.default.XK_Delete,O.default.XK_KP_Delete),m("Insert",O.default.XK_Insert,O.default.XK_KP_Insert),v("Paste",O.default.XF86XK_Paste),v("Redo",O.default.XK_Redo),v("Undo",O.default.XK_Undo),v("Cancel",O.default.XK_Cancel),v("ContextMenu",O.default.XK_Menu),v("Escape",O.default.XK_Escape),v("Execute",O.default.XK_Execute),v("Find",O.default.XK_Find),v("Help",O.default.XK_Help),v("Pause",O.default.XK_Pause),v("Select",O.default.XK_Select),v("ZoomIn",O.default.XF86XK_ZoomIn),v("ZoomOut",O.default.XF86XK_ZoomOut),v("BrightnessDown",O.default.XF86XK_MonBrightnessDown),v("BrightnessUp",O.default.XF86XK_MonBrightnessUp),v("Eject",O.default.XF86XK_Eject),v("LogOff",O.default.XF86XK_LogOff),v("Power",O.default.XF86XK_PowerOff),v("PowerOff",O.default.XF86XK_PowerDown),v("PrintScreen",O.default.XK_Print),v("Hibernate",O.default.XF86XK_Hibernate),v("Standby",O.default.XF86XK_Standby),v("WakeUp",O.default.XF86XK_WakeUp),v("AllCandidates",O.default.XK_MultipleCandidate),v("Alphanumeric",O.default.XK_Eisu_Shift),v("CodeInput",O.default.XK_Codeinput),v("Compose",O.default.XK_Multi_key),v("Convert",O.default.XK_Henkan),v("GroupFirst",O.default.XK_ISO_First_Group),v("GroupLast",O.default.XK_ISO_Last_Group),v("GroupNext",O.default.XK_ISO_Next_Group),v("GroupPrevious",O.default.XK_ISO_Prev_Group),v("NonConvert",O.default.XK_Muhenkan),v("PreviousCandidate",O.default.XK_PreviousCandidate),v("SingleCandidate",O.default.XK_SingleCandidate),v("HangulMode",O.default.XK_Hangul),v("HanjaMode",O.default.XK_Hangul_Hanja),v("JunjuaMode",O.default.XK_Hangul_Jeonja),v("Eisu",O.default.XK_Eisu_toggle),v("Hankaku",O.default.XK_Hankaku),v("Hiragana",O.default.XK_Hiragana),v("HiraganaKatakana",O.default.XK_Hiragana_Katakana),v("KanaMode",O.default.XK_Kana_Shift),v("KanjiMode",O.default.XK_Kanji),v("Katakana",O.default.XK_Katakana),v("Romaji",O.default.XK_Romaji),v("Zenkaku",O.default.XK_Zenkaku),v("ZenkakuHanaku",O.default.XK_Zenkaku_Hankaku),v("F1",O.default.XK_F1),v("F2",O.default.XK_F2),v("F3",O.default.XK_F3),v("F4",O.default.XK_F4),v("F5",O.default.XK_F5),v("F6",O.default.XK_F6),v("F7",O.default.XK_F7),v("F8",O.default.XK_F8),v("F9",O.default.XK_F9),v("F10",O.default.XK_F10),v("F11",O.default.XK_F11),v("F12",O.default.XK_F12),v("F13",O.default.XK_F13),v("F14",O.default.XK_F14),v("F15",O.default.XK_F15),v("F16",O.default.XK_F16),v("F17",O.default.XK_F17),v("F18",O.default.XK_F18),v("F19",O.default.XK_F19),v("F20",O.default.XK_F20),v("F21",O.default.XK_F21),v("F22",O.default.XK_F22),v("F23",O.default.XK_F23),v("F24",O.default.XK_F24),v("F25",O.default.XK_F25),v("F26",O.default.XK_F26),v("F27",O.default.XK_F27),v("F28",O.default.XK_F28),v("F29",O.default.XK_F29),v("F30",O.default.XK_F30),v("F31",O.default.XK_F31),v("F32",O.default.XK_F32),v("F33",O.default.XK_F33),v("F34",O.default.XK_F34),v("F35",O.default.XK_F35),v("Close",O.default.XF86XK_Close),v("MailForward",O.default.XF86XK_MailForward),v("MailReply",O.default.XF86XK_Reply),v("MailSend",O.default.XF86XK_Send),v("MediaFastForward",O.default.XF86XK_AudioForward),v("MediaPause",O.default.XF86XK_AudioPause),v("MediaPlay",O.default.XF86XK_AudioPlay),v("MediaRecord",O.default.XF86XK_AudioRecord),v("MediaRewind",O.default.XF86XK_AudioRewind),v("MediaStop",O.default.XF86XK_AudioStop),v("MediaTrackNext",O.default.XF86XK_AudioNext),v("MediaTrackPrevious",O.default.XF86XK_AudioPrev),v("New",O.default.XF86XK_New),v("Open",O.default.XF86XK_Open),v("Print",O.default.XK_Print),v("Save",O.default.XF86XK_Save),v("SpellCheck",O.default.XF86XK_Spell),v("AudioVolumeDown",O.default.XF86XK_AudioLowerVolume),v("AudioVolumeUp",O.default.XF86XK_AudioRaiseVolume),v("AudioVolumeMute",O.default.XF86XK_AudioMute),v("MicrophoneVolumeMute",O.default.XF86XK_AudioMicMute),v("LaunchApplication1",O.default.XF86XK_MyComputer),v("LaunchApplication2",O.default.XF86XK_Calculator),v("LaunchCalendar",O.default.XF86XK_Calendar),v("LaunchMail",O.default.XF86XK_Mail),v("LaunchMediaPlayer",O.default.XF86XK_AudioMedia),v("LaunchMusicPlayer",O.default.XF86XK_Music),v("LaunchPhone",O.default.XF86XK_Phone),v("LaunchScreenSaver",O.default.XF86XK_ScreenSaver),v("LaunchSpreadsheet",O.default.XF86XK_Excel),v("LaunchWebBrowser",O.default.XF86XK_WWW),v("LaunchWebCam",O.default.XF86XK_WebCam),v("LaunchWordProcessor",O.default.XF86XK_Word),v("BrowserBack",O.default.XF86XK_Back),v("BrowserFavorites",O.default.XF86XK_Favorites),v("BrowserForward",O.default.XF86XK_Forward),v("BrowserHome",O.default.XF86XK_HomePage),v("BrowserRefresh",O.default.XF86XK_Refresh),v("BrowserSearch",O.default.XF86XK_Search),v("BrowserStop",O.default.XF86XK_Stop),v("Dimmer",O.default.XF86XK_BrightnessAdjust),v("MediaAudioTrack",O.default.XF86XK_AudioCycleTrack),v("RandomToggle",O.default.XF86XK_AudioRandomPlay),v("SplitScreenToggle",O.default.XF86XK_SplitScreen),v("Subtitle",O.default.XF86XK_Subtitle),v("VideoModeNext",O.default.XF86XK_Next_VMode),m("=",O.default.XK_equal,O.default.XK_KP_Equal),m("+",O.default.XK_plus,O.default.XK_KP_Add),m("-",O.default.XK_minus,O.default.XK_KP_Subtract),m("*",O.default.XK_asterisk,O.default.XK_KP_Multiply),m("/",O.default.XK_slash,O.default.XK_KP_Divide),m(".",O.default.XK_period,O.default.XK_KP_Decimal),m(",",O.default.XK_comma,O.default.XK_KP_Separator),m("0",O.default.XK_0,O.default.XK_KP_0),m("1",O.default.XK_1,O.default.XK_KP_1),m("2",O.default.XK_2,O.default.XK_KP_2),m("3",O.default.XK_3,O.default.XK_KP_3),m("4",O.default.XK_4,O.default.XK_KP_4),m("5",O.default.XK_5,O.default.XK_KP_5),m("6",O.default.XK_6,O.default.XK_KP_6),m("7",O.default.XK_7,O.default.XK_KP_7),m("8",O.default.XK_8,O.default.XK_KP_8),m("9",O.default.XK_9,O.default.XK_KP_9);var h=C;P.default=h},mYwL:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("6GrX"),v=Math.PI;function w(m,h){h=h||{},O.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,i=new E.Rect({style:{fill:h.maskColor},zlevel:h.zlevel,z:1e4});c.add(i);var r=h.fontSize+" sans-serif",o=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(o),h.showSpinner){var n=new E.Arc({shape:{startAngle:-v/2,endAngle:-v/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:v*3/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:v*3/2}).delay(300).start("circularInOut"),c.add(n)}return c.resize=function(){var e=C.getWidth(h.text,r),s=h.showSpinner?h.spinnerRadius:0,t=(m.getWidth()-s*2-(h.showSpinner&&e?10:0)-e)/2-(h.showSpinner?0:e/2),a=m.getHeight()/2;h.showSpinner&&n.setShape({cx:t,cy:a}),o.setShape({x:t-s,y:a-s,width:s*2,height:s*2}),i.setShape({x:0,y:0,width:m.getWidth(),height:m.getHeight()})},c.resize(),c}j.exports=w},mdZa:function(j,P,d){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(E,C){"use strict";if(E==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(E),w=1;w<arguments.length;w++){var m=arguments[w];if(m!=null)for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&(v[h]=m[h])}return v},writable:!0,configurable:!0}),function(){function O(E,C){C=C||{bubbles:!1,cancelable:!1,detail:void 0};var v=document.createEvent("CustomEvent");return v.initCustomEvent(E,C.bubbles,C.cancelable,C.detail),v}O.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=O)}(),Number.isInteger=Number.isInteger||function(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}},mr32:function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("J4zp"),m=d.n(w),h=d("q1tI"),c=d("TSYQ"),i=d.n(c),r=d("BGR+"),o=d("V/uB"),n=d.n(o),e=d("H84U"),s=function(T,S){var b={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&S.indexOf(_)<0&&(b[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)S.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(b[_[I]]=T[_[I]]);return b},t=function(S){var b,_=h.useContext(e.b),I=_.getPrefixCls,L=function(K){var U=S.checked,V=S.onChange,z=S.onClick;V&&V(!U),z&&z(K)},D=S.prefixCls,N=S.className,M=S.checked,B=s(S,["prefixCls","className","checked"]),R=I("tag",D),H=i()(R,(b={},E()(b,"".concat(R,"-checkable"),!0),E()(b,"".concat(R,"-checkable-checked"),M),b),N);return delete B.onChange,h.createElement("span",v()({},B,{className:H,onClick:L}))},a=t,l=d("09Wf"),u=d("g0mS"),f=function(T,S){var b={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&S.indexOf(_)<0&&(b[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)S.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(b[_[I]]=T[_[I]]);return b},p=new RegExp("^(".concat(l.a.join("|"),")(-inverse)?$")),g=new RegExp("^(".concat(l.b.join("|"),")$")),A=function(S,b){var _,I=S.prefixCls,L=S.className,D=S.style,N=S.children,M=S.icon,B=S.color,R=S.onClose,H=S.closeIcon,F=S.closable,K=F===void 0?!1:F,U=f(S,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),V=h.useContext(e.b),z=V.getPrefixCls,Y=V.direction,q=h.useState(!0),ce=m()(q,2),ie=ce[0],ve=ce[1];h.useEffect(function(){"visible"in U&&ve(U.visible)},[U.visible]);var Ee=function(){return B?p.test(B)||g.test(B):!1},Le=v()({backgroundColor:B&&!Ee()?B:void 0},D),He=Ee(),ge=z("tag",I),Fe=i()(ge,(_={},E()(_,"".concat(ge,"-").concat(B),He),E()(_,"".concat(ge,"-has-color"),B&&!He),E()(_,"".concat(ge,"-hidden"),!ie),E()(_,"".concat(ge,"-rtl"),Y==="rtl"),_),L),Q=function(he){if(he.stopPropagation(),R&&R(he),he.defaultPrevented)return;"visible"in U||ve(!1)},fe=function(){return K?H?h.createElement("div",{className:"".concat(ge,"-close-icon"),onClick:Q},H):h.createElement(n.a,{className:"".concat(ge,"-close-icon"),onClick:Q}):null},Je="onClick"in U||N&&N.type==="a",ne=Object(r.default)(U,["visible"]),X=M||null,G=X?h.createElement(h.Fragment,null,X,h.createElement("span",null,N)):N,te=h.createElement("span",v()({},ne,{ref:b,className:Fe,style:Le}),G,fe());return Je?h.createElement(u.a,null,te):te},y=h.forwardRef(A);y.displayName="Tag",y.CheckableTag=a;var x=P.a=y},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(j){if(!0)module.exports=j();else var P})(function(){var define,module,exports;return function(){function j(P,d,O){function E(w,m){if(!d[w]){if(!P[w]){var h=typeof require=="function"&&require;if(!m&&h)return require(w,!0);if(C)return C(w,!0);var c=new Error("Cannot find module '"+w+"'");throw c.code="MODULE_NOT_FOUND",c}var i=d[w]={exports:{}};P[w][0].call(i.exports,function(r){var o=P[w][1][r];return E(o||r)},i,i.exports,j,P,d,O)}return d[w].exports}for(var C=typeof require=="function"&&require,v=0;v<O.length;v++)E(O[v]);return E}return j}()({1:[function(j,P,d){"use strict";var O=j("./browser/client");O.Buffer=j("buffer").Buffer,O.urllib=j("../shims/xhr"),O.version=j("./browser/version").version,P.exports=O},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(j,P,d){(function(O,E){"use strict";var C=j("babel-runtime/core-js/promise"),v=i(C),w=j("babel-runtime/regenerator"),m=i(w),h=j("babel-runtime/core-js/object/assign"),c=i(h);function i(M){return M&&M.__esModule?M:{default:M}}var r=j("debug")("ali-oss"),o=j("copy-to"),n=j("xml2js"),e=j("agentkeepalive"),s=j("merge-descriptors"),t=j("url"),a=j("is-type-of"),l=j("platform"),u=j("utility"),f=j("urllib"),p=j("./version"),g=j("bowser"),A=j("../common/signUtils"),y=j("../common/utils/isIP"),x=y.isIP,T=j("../common/client/initOptions"),S=j("../common/utils/createRequest"),b=S.createRequest,_=new e;function I(){var M=l.name,B=l.version;M&&M.toLowerCase&&M.toLowerCase()==="ie"&&B.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function L(){return location&&location.protocol==="https:"}function D(M,B){if(I(),!(this instanceof D))return new D(M,B);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=B,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}P.exports=D,D.initOptions=function(B){B.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},B);return T(R)};var N=D.prototype;N.debug=r,s(N,j("./object")),s(N,j("../common/bucket/getBucketWebsite")),s(N,j("../common/bucket/putBucketWebsite")),s(N,j("../common/bucket/deleteBucketWebsite")),s(N,j("../common/bucket/getBucketLifecycle")),s(N,j("../common/bucket/putBucketLifecycle")),s(N,j("../common/bucket/deleteBucketLifecycle")),s(N,j("../common/bucket/putBucketVersioning")),s(N,j("../common/bucket/getBucketVersioning")),s(N,j("./managed-upload")),s(N,j("../common/multipart")),s(N,j("../common/parallel")),N.signature=function(B){return this.debug("authorization stringToSign: %s",B,"info"),A.computeSignature(this.options.accessKeySecret,B)},N.authorization=function(B,R,H,F){var K=A.buildCanonicalString(B.toUpperCase(),R,{headers:F,parameters:H});return A.authorization(this.options.accessKeyId,this.options.accessKeySecret,K)},N.request=function(B){var R,H,F,K,U,V;return m.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return R=b.call(this,B),this.options.useFetch||(R.params.mode="disable-fetch"),H=void 0,F=void 0,K=!!B.stream,Y.prev=5,Y.next=8,m.default.awrap(this.urllib.request(R.url,R.params));case 8:H=Y.sent,this.debug("response %s %s, got %s, headers: %j",B.method,R.url,H.status,H.headers,"info"),Y.next=15;break;case 12:Y.prev=12,Y.t0=Y.catch(5),F=Y.t0;case 15:if(U=void 0,!(H&&B.successStatuses&&B.successStatuses.indexOf(H.status)===-1)){Y.next=28;break}return Y.next=19,m.default.awrap(this.requestError(H));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(B));case 24:return Y.abrupt("return",Y.sent);case 25:U.params=B,Y.next=32;break;case 28:if(!F){Y.next=32;break}return Y.next=31,m.default.awrap(this.requestError(F));case 31:U=Y.sent;case 32:if(!U){Y.next=34;break}throw U;case 34:if(!B.xmlResponse){Y.next=39;break}return Y.next=37,m.default.awrap(this.parseXML(H.data));case 37:V=Y.sent,H.data=V;case 39:return Y.abrupt("return",H);case 40:case"end":return Y.stop()}},null,this,[[5,12]])},N._getResource=function(B){var R="/";return B.bucket&&(R+=B.bucket+"/"),B.object&&(R+=B.object),R},N._isIP=x,N._escape=function(B){return u.encodeURIComponent(B).replace(/%2F/g,"/")},N._getReqUrl=function(B){var R={};o(this.options.endpoint).to(R);var H=this._isIP(R.hostname),F=this.options.cname;B.bucket&&!F&&!H&&(R.host=B.bucket+"."+R.host);var K="/";B.bucket&&H&&(K+=B.bucket+"/"),B.object&&(K+=this._escape(B.object).replace(/\+/g,"%2B")),R.pathname=K;var U={};if(B.query&&s(U,B.query),B.subres){var V={};a.string(B.subres)?V[B.subres]="":a.array(B.subres)?B.subres.forEach(function(z){V[z]=""}):V=B.subres,s(U,V)}return R.query=U,t.format(R)},N._getUserAgent=function(){var B=E&&E.browser?"js":"nodejs",R="aliyun-sdk-"+B+"/"+p.version,H=l.description;return!H&&E&&(H="Node.js "+E.version.slice(1)+" on "+E.platform+" "+E.arch),this._checkUserAgent(R+" "+H)},N._checkUserAgent=function(B){var R=B.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return R},N.checkBrowserAndVersion=function(B,R){return g.name===B&&g.version.split(".")[0]===R},N.parseXML=function(B){return new v.default(function(R,H){O.isBuffer(B)&&(B=B.toString()),n.parseString(B,{explicitRoot:!1,explicitArray:!1},function(F,K){F?H(F):R(K)})})},N.requestError=function(B){var R,H,F,K;return m.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(R=null,!(!B.data||!B.data.length)){V.next=5;break}B.status===-1||B.status===-2?(R=new Error(B.message),R.name=B.name,R.status=B.status,R.code=B.name):(B.status===404?(R=new Error("Object not exists"),R.name="NoSuchKeyError",R.status=404,R.code="NoSuchKey"):B.status===412?(R=new Error("Pre condition failed"),R.name="PreconditionFailedError",R.status=412,R.code="PreconditionFailed"):(R=new Error("Unknow error, status: "+B.status),R.name="UnknowError",R.status=B.status),R.requestId=B.headers["x-oss-request-id"],R.host=""),V.next=33;break;case 5:return H=String(B.data),this.debug("request response error data: %s",H,"error"),F=void 0,V.prev=8,V.next=11,m.default.awrap(this.parseXML(H));case 11:if(V.t0=V.sent,V.t0){V.next=14;break}V.t0={};case 14:F=V.t0,V.next=24;break;case 17:return V.prev=17,V.t1=V.catch(8),this.debug(H,"error"),V.t1.message+=`
raw xml: `+H,V.t1.status=B.status,V.t1.requestId=B.headers["x-oss-request-id"],V.abrupt("return",V.t1);case 24:K=F.Message||"unknow request error, status: "+B.status,F.Condition&&(K+=" (condition: "+F.Condition+")"),R=new Error(K),R.name=F.Code?F.Code+"Error":"UnknowError",R.status=B.status,R.code=F.Code,R.requestId=F.RequestId,R.hostId=F.HostId,R.serverTime=F.ServerTime;case 33:return this.debug("generate error %j",R,"error"),V.abrupt("return",R);case 35:case"end":return V.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:j("../../node_modules/is-buffer/index.js")},j("_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(j,P,d){(function(O){"use strict";var E=j("babel-runtime/core-js/array/from"),C=c(E),v=j("babel-runtime/core-js/promise"),w=c(v),m=j("babel-runtime/regenerator"),h=c(m);function c(A){return A&&A.__esModule?A:{default:A}}var i=j("is-type-of"),r=j("util"),o=j("path"),n=j("mime"),e=j("copy-to"),s=j("../common/utils/isBlob"),t=s.isBlob,a=j("../common/utils/isFile"),l=a.isFile,u=d;u.multipartUpload=function(y,x,T){var S,b,_,I,L,D,N,M,B;return h.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),T=T||{},!(T.checkpoint&&T.checkpoint.uploadId)){H.next=6;break}return H.next=5,h.default.awrap(this._resumeMultipart(T.checkpoint,T));case 5:return H.abrupt("return",H.sent);case 6:return S=100*1024,T.mime||(l(x)?T.mime=n.getType(o.extname(x.name)):t(x)?T.mime=x.type:T.mime=n.getType(o.extname(x))),T.headers=T.headers||{},this._convertMetaToHeaders(T.meta,T.headers),H.next=12,h.default.awrap(this._getFileSize(x));case 12:if(b=H.sent,!(b<S)){H.next=25;break}return _=this._createStream(x,0,b),T.contentLength=b,H.next=18,h.default.awrap(this.putStream(y,_,T));case 18:if(I=H.sent,!(T&&T.progress)){H.next=22;break}return H.next=22,h.default.awrap(T.progress(1));case 22:return L={res:I.res,bucket:this.options.bucket,name:y,etag:I.res.headers.etag},(T.headers&&T.headers["x-oss-callback"]||T.callback)&&(L.data=I.data),H.abrupt("return",L);case 25:if(!(T.partSize&&!(parseInt(T.partSize,10)===T.partSize))){H.next=27;break}throw new Error("partSize must be int number");case 27:if(!(T.partSize&&T.partSize<S)){H.next=29;break}throw new Error("partSize must not be smaller than "+S);case 29:return H.next=31,h.default.awrap(this.initMultipartUpload(y,T));case 31:if(D=H.sent,N=D.uploadId,M=this._getPartSize(b,T.partSize),B={file:x,name:y,fileSize:b,partSize:M,uploadId:N,doneParts:[]},!(T&&T.progress)){H.next=38;break}return H.next=38,h.default.awrap(T.progress(0,B,D.res));case 38:return H.next=40,h.default.awrap(this._resumeMultipart(B,T));case 40:return H.abrupt("return",H.sent);case 41:case"end":return H.stop()}},null,this)},u._resumeMultipart=function(y,x){var T,S,b,_,I,L,D,N,M,B,R,H,F,K,U,V,z,Y;return h.default.async(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(T=this,!this.isCancel()){ce.next=3;break}throw this._makeCancelEvent();case 3:return S=y.file,b=y.fileSize,_=y.partSize,I=y.uploadId,L=y.doneParts,D=y.name,N=[],L.length>0&&e(L).to(N),M=this._divideParts(b,_),B=M.length,R=!1,H=function(ve,Ee){var Le=this;return new w.default(function(ge,Fe){var Q,fe,Je,ne;return h.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:if(G.prev=0,ve.isCancel()){G.next=18;break}return Q=M[Ee-1],fe={stream:ve._createStream(S,Q.start,Q.end),size:Q.end-Q.start},G.next=6,h.default.awrap(ve._uploadPart(D,I,Ee,fe));case 6:if(Je=G.sent,!(!ve.isCancel()&&!R)){G.next=15;break}if(y.doneParts.push({number:Ee,etag:Je.res.headers.etag}),!x.progress){G.next=12;break}return G.next=12,h.default.awrap(x.progress(L.length/B,y,Je.res));case 12:ge({number:Ee,etag:Je.res.headers.etag}),G.next=16;break;case 15:ge();case 16:G.next=19;break;case 18:ge();case 19:G.next=30;break;case 21:G.prev=21,G.t0=G.catch(0),ne=new Error,ne.name=G.t0.name,ne.message=G.t0.message,ne.stack=G.t0.stack,ne.partNum=Ee,e(G.t0).to(ne),Fe(ne);case 30:case"end":return G.stop()}},null,Le,[[0,21]])})},F=(0,C.default)(new Array(B),function(ie,ve){return ve+1}),K=N.map(function(ie){return ie.number}),U=F.filter(function(ie){return K.indexOf(ie)<0}),V=5,z=x.parallel||V,ce.next=17,h.default.awrap(this._parallel(U,z,function(ie){return new w.default(function(ve,Ee){H(T,ie).then(function(Le){Le&&N.push(Le),ve()}).catch(function(Le){Ee(Le)})})}));case 17:if(Y=ce.sent,R=!0,!this.isCancel()){ce.next=22;break}throw H=null,this._makeCancelEvent();case 22:if(!(Y&&Y.length>0)){ce.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 ce.next=27,h.default.awrap(this.completeMultipartUpload(D,I,N,x));case 27:return ce.abrupt("return",ce.sent);case 28:case"end":return ce.stop()}},null,this)},u._getFileSize=function(y){return h.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(!i.buffer(y)){T.next=4;break}return T.abrupt("return",y.length);case 4:if(!(t(y)||l(y))){T.next=6;break}return T.abrupt("return",y.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return T.stop()}},null,this)};var f=j("stream"),p=f.Readable;function g(A,y){if(!(this instanceof g))return new g(A,y);p.call(this,y),this.file=A,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(g,p),g.prototype.readFileAndPush=function(y){if(this.fileBuffer)for(var x=!0;x&&this.fileBuffer&&this.start<this.fileBuffer.length;){var T=this.start,S=T+y;S=S>this.fileBuffer.length?this.fileBuffer.length:S,this.start=S,x=this.push(this.fileBuffer.slice(T,S))}},g.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 T=this;this.reader.onload=function(b){T.fileBuffer=O.from(new Uint8Array(b.target.result)),T.file=null,T.readFileAndPush(y)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(y)},u._createStream=function(y,x,T){if(t(y)||l(y))return new g(y.slice(x,T));throw new Error("_createStream requires File/Blob.")},u._getPartSize=function(y,x){var T=10*1e3,S=1024*1024;return x?Math.max(Math.ceil(y/T),x):S},u._divideParts=function(y,x){for(var T=Math.ceil(y/x),S=[],b=0;b<T;b++){var _=x*b,I=Math.min(_+x,y);S.push({start:_,end:I})}return S}}).call(this,j("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(j,P,d){"use strict";var O=j("babel-runtime/core-js/promise"),E=i(O),C=j("babel-runtime/core-js/object/keys"),v=i(C),w=j("babel-runtime/core-js/object/assign"),m=i(w),h=j("babel-runtime/regenerator"),c=i(h);function i(T){return T&&T.__esModule?T:{default:T}}var r=j("utility"),o=j("fs"),n=j("is-type-of"),e=j("url"),s=j("copy-to"),t=j("path"),a=j("mime"),l=j("../common/callback"),u=j("../common/signUtils"),f=j("merge-descriptors"),p=j("../common/utils/isBlob"),g=p.isBlob,A=j("../common/utils/isFile"),y=A.isFile,x=d;x.append=function(S,b,_){var I;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(S,b,_));case 6:return I=D.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],D.abrupt("return",I);case 9:case"end":return D.stop()}},null,this)},x.put=function(S,b,_){var I,L,D,N,M,B,R;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(I=void 0,_=_||{},S=this._objectName(S),!n.buffer(b)){F.next=7;break}I=b,F.next=33;break;case 7:if(!(g(b)||y(b))){F.next=32;break}return _.mime||(y(b)?_.mime=a.getType(t.extname(b.name)):_.mime=b.type),L=this._createStream(b,0,b.size),F.next=12,c.default.awrap(this._getFileSize(b));case 12:return _.contentLength=F.sent,F.prev=13,F.next=16,c.default.awrap(this.putStream(S,L,_));case 16:return D=F.sent,F.abrupt("return",D);case 20:if(F.prev=20,F.t0=F.catch(13),!(F.t0.code==="RequestTimeTooSkewed")){F.next=29;break}return this.options.amendTimeSkewed=+new Date(F.t0.serverTime)-new Date,F.next=26,c.default.awrap(this.put(S,b,_));case 26:return F.abrupt("return",F.sent);case 29:throw F.t0;case 30:F.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,S,_),l.encodeCallback(M,_),M.mime=_.mime,M.content=I,M.successStatuses=[200],F.next=43,c.default.awrap(this.request(M));case 43:return B=F.sent,R={name:S,url:this._objectUrl(S),res:B.res},M.headers&&M.headers["x-oss-callback"]&&(R.data=JSON.parse(B.data.toString())),F.abrupt("return",R);case 47:case"end":return F.stop()}},null,this,[[13,20]])},x.putStream=function(S,b,_){var I,L,D,N;return c.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:return _=_||{},_.headers=_.headers||{},S=this._objectName(S),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),I=_.method||"PUT",L=this._objectRequestParams(I,S,_),l.encodeCallback(L,_),L.mime=_.mime,L.stream=b,L.successStatuses=[200],B.next=13,c.default.awrap(this.request(L));case 13:return D=B.sent,N={name:S,url:this._objectUrl(S),res:D.res},L.headers&&L.headers["x-oss-callback"]&&(N.data=JSON.parse(D.data.toString())),B.abrupt("return",N);case 17:case"end":return B.stop()}},null,this)},f(x,j("../common/object/copyObject")),f(x,j("../common/object/getObjectTagging")),f(x,j("../common/object/putObjectTagging")),f(x,j("../common/object/deleteObjectTagging")),f(x,j("../common/image")),f(x,j("../common/object/getBucketVersions")),f(x,j("../common/object/getACL")),f(x,j("../common/object/putACL")),f(x,j("../common/object/head")),f(x,j("../common/object/delete")),f(x,j("../common/object/get")),f(x,j("../common/object/putSymlink")),f(x,j("../common/object/getSymlink")),f(x,j("../common/object/deleteMulti")),f(x,j("../common/object/getObjectMeta")),x.putMeta=function(S,b,_){var I;return c.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,c.default.awrap(this.copy(S,S,{meta:b||{},timeout:_&&_.timeout,ctx:_&&_.ctx}));case 2:return I=D.sent,D.abrupt("return",I);case 4:case"end":return D.stop()}},null,this)},x.list=function(S,b){var _,I,L,D,N;return c.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:return _=this._objectRequestParams("GET","",b),_.query=S,_.xmlResponse=!0,_.successStatuses=[200],B.next=6,c.default.awrap(this.request(_));case 6:return I=B.sent,L=I.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=I.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(R){return R.Prefix})),B.abrupt("return",{res:I.res,objects:L,prefixes:N,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return B.stop()}},null,this)},x.restore=function(S,b){var _,I;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",S,b),_.successStatuses=[202],D.next=7,c.default.awrap(this.request(_));case 7:return I=D.sent,D.abrupt("return",{res:I.res});case 9:case"end":return D.stop()}},null,this)},x.signatureUrl=function(S,b){b=b||{},S=this._objectName(S),b.method=b.method||"GET";var _=r.timestamp()+(b.expires||1800),I={bucket:this.options.bucket,object:S},L=this._getResource(I);this.options.stsToken&&(b["security-token"]=this.options.stsToken);var D=u._signatureForURL(this.options.accessKeySecret,b,L,_),N=e.parse(this._getReqUrl(I));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:D.Signature},s(D.subResource).to(N.query),N.format()},x.getObjectUrl=function(S,b){return b?b[b.length-1]!=="/"&&(b+="/"):b=this.options.endpoint.format(),b+this._escape(this._objectName(S))},x._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},x.generateObjectUrl=function(T,S){if(S)S[S.length-1]!=="/"&&(S+="/");else{S=this.options.endpoint.format();var b=e.parse(S),_=this.options.bucket;b.hostname=_+"."+b.hostname,b.host=_+"."+b.host,S=b.format()}return S+this._escape(this._objectName(T))},x._objectRequestParams=function(S,b,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},b=this._objectName(b);var I={object:b,bucket:this.options.bucket,method:S,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(I.headers={},s(_.headers).to(I.headers)),I},x._objectName=function(S){return S.replace(/^\/+/,"")},x._convertMetaToHeaders=function(S,b){if(!S)return;(0,v.default)(S).forEach(function(_){b["x-oss-meta-"+_]=S[_]})},x._deleteFileSafe=function(S){var b=this;return new E.default(function(_){o.exists(S,function(I){I?o.unlink(S,function(L){L&&b.debug("unlink %j error: %s",S,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(j,P,d){"use strict";d.version="6.10.0"},{}],6:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(h){return h&&h.__esModule?h:{default:h}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=d;m.deleteBucketLifecycle=function(c,i){var r,o;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return w(c),r=this._bucketRequestParams("DELETE",c,"lifecycle",i),r.successStatuses=[204],e.next=5,E.default.awrap(this.request(r));case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(h){return h&&h.__esModule?h:{default:h}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=d;m.deleteBucketWebsite=function(c,i){var r,o;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return w(c),r=this._bucketRequestParams("DELETE",c,"website",i),r.successStatuses=[204],e.next=5,E.default.awrap(this.request(r));case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=j("../utils/isArray"),h=m.isArray,c=j("../utils/formatObjKey"),i=c.formatObjKey,r=d;r.getBucketLifecycle=function(n,e){var s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return w(n),s=this._bucketRequestParams("GET",n,"lifecycle",e),s.successStatuses=[200],s.xmlResponse=!0,u.next=6,E.default.awrap(this.request(s));case 6:return t=u.sent,a=t.data.Rule||null,a&&(h(a)||(a=[a]),a=a.map(function(f){return f.ID&&(f.id=f.ID,delete f.ID),f.Tag&&!h(f.Tag)&&(f.Tag=[f.Tag]),i(f,"firstLowerCase")})),u.abrupt("return",{rules:a,res:t.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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(h){return h&&h.__esModule?h:{default:h}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=d;m.getBucketVersioning=function(c,i){var r,o,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return w(c),r=this._bucketRequestParams("GET",c,"versioning",i),r.xmlResponse=!0,r.successStatuses=[200],s.next=6,E.default.awrap(this.request(r));case 6:return o=s.sent,n=o.data.Status,s.abrupt("return",{status:o.status,versionStatus:n,res:o.res});case 9:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=j("../utils/isObject"),h=m.isObject,c=d;c.getBucketWebsite=function(r,o){var n,e,s;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return w(r),n=this._bucketRequestParams("GET",r,"website",o),n.successStatuses=[200],n.xmlResponse=!0,a.next=6,E.default.awrap(this.request(n));case 6:return e=a.sent,s=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(h(e.data.RoutingRules.RoutingRule)?s=[e.data.RoutingRules.RoutingRule]:s=e.data.RoutingRules.RoutingRule),a.abrupt("return",{index:e.data.IndexDocument&&e.data.IndexDocument.Suffix||"",supportSubDir:e.data.IndexDocument&&e.data.IndexDocument.SupportSubDir||"false",type:e.data.IndexDocument&&e.data.IndexDocument.Type,routingRules:s,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return a.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(y){return y&&y.__esModule?y:{default:y}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=j("../utils/isArray"),h=m.isArray,c=j("../utils/deepCopy"),i=c.deepCopy,r=j("../utils/isObject"),o=r.isObject,n=j("../utils/obj2xml"),e=n.obj2xml,s=j("../utils/checkObjectTag"),t=s.checkObjectTag,a=j("../utils/getStrBytesCount"),l=a.getStrBytesCount,u=d;u.putBucketLifecycle=function(x,T,S){var b,_,I,L,D;return E.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(w(x),h(T)){M.next=3;break}throw new Error("rules must be Array");case 3:return b=this._bucketRequestParams("PUT",x,"lifecycle",S),_=[],I={LifecycleConfiguration:{Rule:_}},T.forEach(function(B){f(B),A(B),B.id&&(B.ID=B.id,delete B.id),_.push(B)}),L=e(I,{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 T=y.days,S=y.createdBeforeDate;if(!T&&!S)throw new Error(x+" must includes days or createdBeforeDate");if(T&&!/^[1-9][0-9]*$/.test(T))throw new Error("days must be a positive integer");if(S&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(S))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function g(y){if(!h(y)&&!o(y))throw new Error("tag must be Object or Array");y=o(y)?[y]:y;var x={},T=i(y);T.forEach(function(S){x[S.key]=S.value}),t(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");g(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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=j("../utils/obj2xml"),h=m.obj2xml,c=d;c.putBucketVersioning=function(r,o){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,s,t;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(w(r),["Enabled","Suspended"].includes(o)){l.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",r,"versioning",n),s={VersioningConfiguration:{Status:o}},e.mime="xml",e.content=h(s,{headers:!0}),l.next=9,E.default.awrap(this.request(e));case 9:return t=l.sent,l.abrupt("return",{res:t.res,status:t.status});case 11:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=j("../utils/obj2xml"),h=m.obj2xml,c=j("../utils/isArray"),i=c.isArray,r=d;r.putBucketWebsite=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2],t,a,l,u,f;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:if(w(n),t=this._bucketRequestParams("PUT",n,"website",s),a={Suffix:e.index||"index.html"},l={IndexDocument:a},u={WebsiteConfiguration:l},e.supportSubDir&&(a.SupportSubDir=e.supportSubDir),e.type&&(a.Type=e.type),e.error&&(l.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){g.next=12;break}if(i(e.routingRules)){g.next=11;break}throw new Error("RoutingRules must be Array");case 11:l.RoutingRules={RoutingRule:e.routingRules};case 12:return u=h(u),t.content=u,t.mime="xml",t.successStatuses=[200],g.next=18,E.default.awrap(this.request(t));case 18:return f=g.sent,g.abrupt("return",{res:f.res});case 20:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(j,P,d){(function(O){"use strict";var E=j("babel-runtime/core-js/object/keys"),C=m(E),v=j("babel-runtime/core-js/json/stringify"),w=m(v);function m(h){return h&&h.__esModule?h:{default:h}}d.encodeCallback=function(c,i){if(c.headers=c.headers||{},!Object.prototype.hasOwnProperty.call(c.headers,"x-oss-callback")&&i.callback){var r={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};i.callback.host&&(r.callbackHost=i.callback.host),i.callback.contentType&&(r.callbackBodyType=i.callback.contentType);var o=O.from((0,w.default)(r)).toString("base64");if(c.headers["x-oss-callback"]=o,i.callback.customValue){var n={};(0,C.default)(i.callback.customValue).forEach(function(e){n["x:"+e]=i.callback.customValue[e]}),c.headers["x-oss-callback-var"]=O.from((0,w.default)(n)).toString("base64")}}}}).call(this,j("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/assign"),E=C(O);function C(r){return r&&r.__esModule?r:{default:r}}var v=j("humanize-ms"),w=j("url"),m=j("../utils/checkBucketName"),h=m.checkBucketName;function c(r,o){var n=w.parse(r);if(n.protocol||(n=w.parse("http"+(o?"s":"")+"://"+r)),n.protocol!=="http:"&&n.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return n}function i(r,o,n){var e=n?"https://":"http://",s=o?"-internal.aliyuncs.com":".aliyuncs.com",t="vpc100-oss-cn-";return r.substr(0,t.length)===t&&(s=".aliyuncs.com"),w.parse(e+r+s)}P.exports=function(r){if(!r||!r.accessKeyId||!r.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");r.bucket&&h(r.bucket);var o=(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(o.accessKeyId=o.accessKeyId.trim(),o.accessKeySecret=o.accessKeySecret.trim(),o.timeout&&(o.timeout=v(o.timeout)),o.endpoint)o.endpoint=c(o.endpoint,o.secure);else if(o.region)o.endpoint=i(o.region,o.internal,o.secure);else throw new Error("require options.endpoint or options.region");return o.inited=!0,o}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(j,P,d){"use strict";var O=j("merge-descriptors"),E=d;O(E,j("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var v=j("../utils/checkBucketName"),w=v.checkBucketName,m=j("querystring"),h=j("js-base64"),c=h.Base64.encode,i=d;i.processObjectSave=function(n,e,s,t){var a,l,u,f;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return r(n,"sourceObject"),r(e,"targetObject"),r(s,"process"),e=this._objectName(e),t&&w(t),a=this._objectRequestParams("POST",n,{subres:"x-oss-process"}),l=t?",b_"+c(t):"",e=c(e),u={"x-oss-process":s+"|sys/saveas,o_"+e+l},a.content=m.stringify(u),g.next=12,E.default.awrap(this.request(a));case 12:return f=g.sent,g.abrupt("return",{res:f.res,status:f.res.status});case 14:case"end":return g.stop()}},null,this)};function r(o,n){if(!o)throw new Error(n+" is required");if(typeof o!="string")throw new Error(n+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var v=j("copy-to"),w=j("./callback"),m=j("./utils/deepCopy"),h=m.deepCopy,c=d;c.listUploads=function(r,o){var n,e,s,t;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return o=o||{},n={},v(o).to(n),n.subres="uploads",e=this._objectRequestParams("GET","",n),e.query=r,e.xmlResponse=!0,e.successStatuses=[200],l.next=10,E.default.awrap(this.request(e));case 10:return s=l.sent,t=s.data.Upload||[],Array.isArray(t)||(t=[t]),t=t.map(function(u){return{name:u.Key,uploadId:u.UploadId,initiated:u.Initiated}}),l.abrupt("return",{res:s.res,uploads:t,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,o,n,e){var s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=e||{},s={},v(e).to(s),s.subres={uploadId:o},t=this._objectRequestParams("GET",r,s),t.query=n,t.xmlResponse=!0,t.successStatuses=[200],u.next=10,E.default.awrap(this.request(t));case 10:return a=u.sent,u.abrupt("return",{res:a.res,uploadId:a.data.UploadId,bucket:a.data.Bucket,name:a.data.Key,partNumberMarker:a.data.PartNumberMarker,nextPartNumberMarker:a.data.NextPartNumberMarker,maxParts:a.data.MaxParts,isTruncated:a.data.IsTruncated,parts:a.data.Part||[]});case 12:case"end":return u.stop()}},null,this)},c.abortMultipartUpload=function(r,o,n){var e,s,t;return E.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return this._stop(),n=n||{},e={},v(n).to(e),e.subres={uploadId:o},s=this._objectRequestParams("DELETE",r,e),s.successStatuses=[204],l.next=9,E.default.awrap(this.request(s));case 9:return t=l.sent,l.abrupt("return",{res:t.res});case 11:case"end":return l.stop()}},null,this)},c.initMultipartUpload=function(r,o){var n,e,s;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return o=o||{},n={},v(o).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(o.meta,n.headers),n.subres="uploads",e=this._objectRequestParams("POST",r,n),e.mime=o.mime,e.xmlResponse=!0,e.successStatuses=[200],a.next=12,E.default.awrap(this.request(e));case 12:return s=a.sent,a.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return a.stop()}},null,this)},c.uploadPart=function(r,o,n,e,s,t,a){var l;return E.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return l={stream:this._createStream(e,s,t),size:t-s},f.next=3,E.default.awrap(this._uploadPart(r,o,n,l,a));case 3:return f.abrupt("return",f.sent);case 4:case"end":return f.stop()}},null,this)},c.completeMultipartUpload=function(r,o,n,e){var s,t,a,l,u,f,p,g;return E.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(s=n.concat().sort(function(x,T){return x.number-T.number}).filter(function(x,T,S){return!T||x.number!==S[T-1].number}),t=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,a=0;a<s.length;a++)l=s[a],t+=`<Part>
`,t+="<PartNumber>"+l.number+`</PartNumber>
`,t+="<ETag>"+l.etag+`</ETag>
`,t+=`</Part>
`;return t+="</CompleteMultipartUpload>",e=e||{},u={},u=h(e),u.headers&&delete u.headers["x-oss-server-side-encryption"],u.subres={uploadId:o},f=this._objectRequestParams("POST",r,u),w.encodeCallback(f,u),f.mime="xml",f.content=t,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,g={res:p.res,bucket:f.bucket,name:r,etag:p.res.headers.etag},f.headers&&f.headers["x-oss-callback"]&&(g.data=JSON.parse(p.data.toString())),y.abrupt("return",g);case 21:case"end":return y.stop()}},null,this)},c._uploadPart=function(r,o,n,e,s){var t,a,l;return E.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return s=s||{},t={},v(s).to(t),t.headers={"Content-Length":e.size},t.subres={partNumber:n,uploadId:o},a=this._objectRequestParams("PUT",r,t),a.mime=t.mime,a.stream=e.stream,a.successStatuses=[200],f.next=11,E.default.awrap(this.request(a));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 e.stream=null,a.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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=h(O),C=j("babel-runtime/core-js/object/keys"),v=h(C),w=j("babel-runtime/helpers/typeof"),m=h(w);function h(o){return o&&o.__esModule?o:{default:o}}var c=j("../utils/checkBucketName"),i=c.checkBucketName,r=d;r.copy=function(n,e,s,t){var a,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"&&(t=s),t=t||{},t.headers=t.headers||{},(0,v.default)(t.headers).forEach(function(g){t.headers["x-oss-copy-source-"+g.toLowerCase()]=t.headers[g]}),t.meta&&(t.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(t.meta,t.headers),e=this._getSourceName(e,s),t.versionId&&(e=e+"?versionId="+t.versionId),t.headers["x-oss-copy-source"]=e,a=this._objectRequestParams("PUT",n,t),a.xmlResponse=!0,a.successStatuses=[200,304],p.next=14,E.default.awrap(this.request(a));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,e){return typeof e=="string"?n=this._objectName(n):n[0]!=="/"?e=this.options.bucket:(e=n.replace(/\/(.+?)(\/.*)/,"$1"),n=n.replace(/(\/.+?\/)(.*)/,"$2")),i(e),n=encodeURI(n),n="/"+e+"/"+n,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m.delete=function(c){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return i.subres=(0,v.default)({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectRequestParams("DELETE",c,i),r.successStatuses=[204],e.next=6,E.default.awrap(this.request(r));case 6:return o=e.sent,e.abrupt("return",{res:o.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(r){return r&&r.__esModule?r:{default:r}}var m=j("utility"),h=j("../utils/obj2xml"),c=h.obj2xml,i=d;i.deleteMulti=function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,s,t,a,l,u,f,p,g,A,y,x;return E.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:if(e=[],!(!o||!o.length)){S.next=3;break}throw new Error("names is required");case 3:for(s=0;s<o.length;s++)t={},typeof o[s]=="string"?t.Key=m.escape(this._objectName(o[s])):(a=o[s],l=a.key,u=a.versionId,t.Key=m.escape(this._objectName(l)),t.VersionId=u),e.push(t);return f={Delete:{Quiet:!!n.quiet,Object:e}},p=c(f,{headers:!0}),n.subres=(0,v.default)({delete:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),g=this._objectRequestParams("POST","",n),g.mime="xml",g.content=p,g.xmlResponse=!0,g.successStatuses=[200],S.next=15,E.default.awrap(this.request(g));case 15:return A=S.sent,y=A.data,x=y&&y.Deleted||null,x&&(Array.isArray(x)||(x=[x])),S.abrupt("return",{res:A.res,deleted:x||[]});case 20:case"end":return S.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m.deleteObjectTagging=function(c){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return i.subres=(0,v.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),c=this._objectName(c),r=this._objectRequestParams("DELETE",c,i),r.successStatuses=[204],e.next=7,E.default.awrap(this.request(r));case 7:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(i){return i&&i.__esModule?i:{default:i}}var m=j("fs"),h=j("is-type-of"),c=d;c.get=function(r,o){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=null,s=!1,h.writableStream(o)?e=o:h.string(o)?(e=m.createWriteStream(o),s=!0):n=o,n=n||{},n.subres=(0,v.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),t=void 0,u.prev=8,a=this._objectRequestParams("GET",r,n),a.writeStream=e,a.successStatuses=[200,206,304],u.next=14,E.default.awrap(this.request(a));case 14:t=u.sent,s&&e.destroy(),u.next=25;break;case 18:if(u.prev=18,u.t0=u.catch(8),!s){u.next=24;break}return e.destroy(),u.next=24,E.default.awrap(this._deleteFileSafe(o));case 24:throw u.t0;case 25:return u.abrupt("return",{res:t.res,content:t.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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m.getACL=function(c){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return i.subres=(0,v.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,i),r.successStatuses=[200],r.xmlResponse=!0,e.next=8,E.default.awrap(this.request(r));case 8:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/keys"),E=h(O),C=j("babel-runtime/regenerator"),v=h(C),w=j("babel-runtime/core-js/object/assign"),m=h(w);function h(a){return a&&a.__esModule?a:{default:a}}var c=d,i=j("../utils/isObject"),r=i.isObject,o=j("../utils/isArray"),n=o.isArray;c.getBucketVersions=e,c.listObjectVersions=e;function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,f,p,g,A,y;return v.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(!(a.versionIdMarker&&a.keyMarker===void 0)){T.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=t(a),T.next=10,v.default.awrap(this.request(u));case 10:return f=T.sent,p=f.data.Version||[],g=f.data.DeleteMarker||[],A=this,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(S){return{name:S.Key,url:A._objectUrl(S.Key),lastModified:S.LastModified,isLatest:S.IsLatest==="true",versionId:S.VersionId,etag:S.ETag,type:S.Type,size:Number(S.Size),storageClass:S.StorageClass,owner:{id:S.Owner.ID,displayName:S.Owner.DisplayName}}})),g&&(n(g)||(g=[g]),g=g.map(function(S){return{name:S.Key,lastModified:S.LastModified,versionId:S.VersionId,owner:{id:S.Owner.ID,displayName:S.Owner.DisplayName}}})),y=f.data.CommonPrefixes||null,y&&(n(y)||(y=[y]),y=y.map(function(S){return S.Prefix})),T.abrupt("return",{res:f.res,objects:p,deleteMarker:g,prefixes:y,nextMarker:f.data.NextMarker||null,NextVersionIdMarker:f.data.NextVersionIdMarker||null,isTruncated:f.data.IsTruncated==="true"});case 19:case"end":return T.stop()}},null,this)}function s(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()}function t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l={};return r(a)&&(0,E.default)(a).forEach(function(u){l[s(u)]=a[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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m.getObjectMeta=function(c,i){var r,o;return E.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return i=i||{},c=this._objectName(c),i.subres=(0,v.default)({objectMeta:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectRequestParams("HEAD",c,i),r.successStatuses=[200],e.next=8,E.default.awrap(this.request(r));case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(i){return i&&i.__esModule?i:{default:i}}var m=d,h=j("../utils/isObject"),c=h.isObject;m.getObjectTagging=function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,s,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return o.subres=(0,v.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectName(r),n=this._objectRequestParams("GET",r,o),n.successStatuses=[200],u.next=7,E.default.awrap(this.request(n));case 7:return e=u.sent,u.next=10,E.default.awrap(this.parseXML(e.data));case 10:return s=u.sent,t=s.TagSet.Tag,t=t&&c(t)?[t]:t||[],a={},t.forEach(function(f){a[f.Key]=f.Value}),u.abrupt("return",{status:e.status,res:e.res,tag:a});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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m.getSymlink=function(c){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i.subres=(0,v.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,i),r.successStatuses=[200],s.next=7,E.default.awrap(this.request(r));case 7:return o=s.sent,n=o.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(n),res:o.res});case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=h(O),C=j("babel-runtime/core-js/object/keys"),v=h(C),w=j("babel-runtime/core-js/object/assign"),m=h(w);function h(i){return i&&i.__esModule?i:{default:i}}var c=d;c.head=function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,s;return E.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return o.subres=(0,m.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),n=this._objectRequestParams("HEAD",r,o),n.successStatuses=[200,304],a.next=6,E.default.awrap(this.request(n));case 6:return e=a.sent,s={meta:null,res:e.res,status:e.status},e.status===200&&(0,v.default)(e.headers).forEach(function(l){l.indexOf("x-oss-meta-")===0&&(s.meta||(s.meta={}),s.meta[l.substring(11)]=e.headers[l])}),a.abrupt("return",s);case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m.putACL=function(c,i,r){var o,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=r||{},r.subres=(0,v.default)({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=i,c=this._objectName(c),o=this._objectRequestParams("PUT",c,r),o.successStatuses=[200],s.next=10,E.default.awrap(this.request(o));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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=h(O),C=j("babel-runtime/core-js/object/keys"),v=h(C),w=j("babel-runtime/core-js/object/assign"),m=h(w);function h(e){return e&&e.__esModule?e:{default:e}}var c=j("../utils/obj2xml"),i=c.obj2xml,r=j("../utils/checkObjectTag"),o=r.checkObjectTag,n=d;n.putObjectTagging=function(s,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,u,f;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return o(t),a.subres=(0,m.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),s=this._objectName(s),l=this._objectRequestParams("PUT",s,a),l.successStatuses=[200],t=(0,v.default)(t).map(function(A){return{Key:A,Value:t[A]}}),u={Tagging:{TagSet:{Tag:t}}},l.mime="xml",l.content=i(u),g.next=12,E.default.awrap(this.request(l));case 12:return f=g.sent,g.abrupt("return",{res:f.res,status:f.status});case 14:case"end":return g.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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/object/assign"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m.putSymlink=function(c,i,r){var o,n;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=r||{},r.headers=r.headers||{},i=this._escape(this._objectName(i)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=i,r.subres=(0,v.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),o=this._objectRequestParams("PUT",c,r),o.successStatuses=[200],s.next=13,E.default.awrap(this.request(o));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(j,P,d){"use strict";var O=j("babel-runtime/regenerator"),E=w(O),C=j("babel-runtime/core-js/promise"),v=w(C);function w(h){return h&&h.__esModule?h:{default:h}}var m=d;m._parallelNode=function(c,i,r,o){var n,e,s,t,a,l,u,f;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:n=this,e=[],s=[],t=c.length/i,a=c.length%i,l=a===0?t:(c.length-a)/i+1,u=1,f=0;case 8:if(!(f<c.length)){g.next=26;break}if(!n.isCancel()){g.next=11;break}return g.abrupt("break",26);case 11:if(o?s.push(r(n,c[f],o)):s.push(r(n,c[f])),!(s.length===i||u===l&&f===c.length-1)){g.next=23;break}return g.prev=13,u+=1,g.next=17,E.default.awrap(v.default.all(s));case 17:g.next=22;break;case 19:g.prev=19,g.t0=g.catch(13),e.push(g.t0);case 22:s=[];case 23:f++,g.next=8;break;case 26:return g.abrupt("return",e);case 27:case"end":return g.stop()}},null,this,[[13,19]])},m._parallel=function(c,i,r){var o=this;return new v.default(function(n){var e=[];if(i<=0||!c){n(e);return}function s(y){return function(){if(y===null)throw new Error("Callback was already called.");var x=y;y=null;for(var T=arguments.length,S=Array(T),b=0;b<T;b++)S[b]=arguments[b];x.apply(this,S)}}function t(y){var x=-1,T=y.length;return function(){return++x<T&&!o.isCancel()?{value:y[x],key:x}:null}}var a=t(c),l=!1,u=0,f=!1;function p(y,x){u-=1,y?(l=!0,e.push(y),n(e)):x==={}||l&&u<=0?(l=!0,n(e)):f||(o.isCancel()?n(e):A())}function g(y,x){r(y).then(function(T){x(null,T)}).catch(function(T){x(T)})}function A(){for(f=!0;u<i&&!l&&!o.isCancel();){var y=a();if(y===null||e.length>0){l=!0,u<=0&&n(e);return}u+=1,g(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(j,P,d){(function(O){"use strict";var E=j("babel-runtime/core-js/json/stringify"),C=m(E),v=j("babel-runtime/core-js/object/keys"),w=m(v);function m(i){return i&&i.__esModule?i:{default:i}}var h=j("./../../shims/crypto/crypto.js"),c=j("is-type-of");d.buildCanonicalizedResource=function(r,o){var n=""+r,e="?";if(c.string(o)&&o.trim()!=="")n+=e+o;else if(c.array(o))o.sort(),n+=e+o.join("&");else if(o){var s=function(l,u){return l[0]>u[0]?1:l[0]<u[0]?-1:0},t=function(l){n+=e+l,o[l]&&(n+="="+o[l]),e="&"};(0,w.default)(o).sort(s).forEach(t)}return n},d.buildCanonicalString=function(r,o,n,e){n=n||{};var s=n.headers||{},t="x-oss-",a=[],l={},u=[r.toUpperCase(),s["Content-Md5"]||"",s["Content-Type"]||s["Content-Type".toLowerCase()],e||s["x-oss-date"]];return(0,w.default)(s).forEach(function(f){var p=f.toLowerCase();p.indexOf(t)===0&&(l[p]=String(s[f]).trim())}),(0,w.default)(l).sort().forEach(function(f){a.push(f+":"+l[f])}),u=u.concat(a),u.push(this.buildCanonicalizedResource(o,n.parameters)),u.join(`
`)},d.computeSignature=function(r,o){var n=h.createHmac("sha1",r);return n.update(O.from(o,"utf8")).digest("base64")},d.authorization=function(r,o,n){return"OSS "+r+":"+this.computeSignature(o,n)},d._signatureForURL=function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments[2],e=arguments[3],s={},t=o.subResource,a=t===void 0?{}:t;if(o.process){var l="x-oss-process";a[l]=o.process}if(o.trafficLimit){var u="x-oss-traffic-limit";a[u]=o.trafficLimit}if(o.response&&(0,w.default)(o.response).forEach(function(A){var y="response-"+A.toLowerCase();a[y]=o.response[A]}),(0,w.default)(o).forEach(function(A){var y=A.toLowerCase(),x=o[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(o,"security-token")&&(a["security-token"]=o["security-token"]),Object.prototype.hasOwnProperty.call(o,"callback")){var f={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};if(o.callback.host&&(f.callbackHost=o.callback.host),o.callback.contentType&&(f.callbackBodyType=o.callback.contentType),a.callback=O.from((0,C.default)(f)).toString("base64"),o.callback.customValue){var p={};(0,w.default)(o.callback.customValue).forEach(function(A){p["x:"+A]=o.callback.customValue[A]}),a["callback-var"]=O.from((0,C.default)(p)).toString("base64")}}var g=this.buildCanonicalString(o.method,n,{headers:s,parameters:a},e.toString());return{Signature:this.computeSignature(r,g),subResource:a}}}).call(this,j("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(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkBucketName=void 0,d.checkBucketName=function(O,E){var C=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!C.test(O))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/entries"),E=C(O);function C(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(d,"__esModule",{value:!0}),d.checkObjectTag=void 0;var v=j("./checkValid"),w=v.checkValid,m=j("./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 (/)"}],i={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(o){if(!h(o))throw new Error("tag must be Object");var n=(0,E.default)(o);if(n.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];n.forEach(function(s){s.forEach(function(t,a){w(t,i[e[a]])})})}d.checkObjectTag=r},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkValid=void 0;function O(E,C){C.forEach(function(v){if(v.validator)v.validator(E);else if(v.pattern&&!v.pattern.test(E))throw new Error(v.msg)})}d.checkValid=O},{}],38:[function(j,P,d){(function(O){"use strict";var E=j("babel-runtime/core-js/object/assign"),C=v(E);function v(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(d,"__esModule",{value:!0}),d.createRequest=void 0;var w=j("./../../../shims/crypto/crypto.js"),m=j("debug")("ali-oss"),h=j("mime"),c=j("dateformat"),i=j("copy-to"),r=j("path");function o(s,t){return s[t]||s[t.toLowerCase()]}function n(s,t){delete s[t],delete s[t.toLowerCase()]}function e(s){var t=new Date;this.options.amendTimeSkewed&&(t=+new Date+this.options.amendTimeSkewed);var a={"x-oss-date":c(t,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(a["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,C.default)(a,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(a["x-oss-security-token"]=this.options.stsToken),i(s.headers).to(a),o(a,"Content-Type")||(s.mime&&s.mime.indexOf("/")>0?a["Content-Type"]=s.mime:a["Content-Type"]=h.getType(s.mime||r.extname(s.object||""))),o(a,"Content-Type")||n(a,"Content-Type"),s.content&&(a["Content-Md5"]=w.createHash("md5").update(O.from(s.content,"utf8")).digest("base64"),a["Content-Length"]||(a["Content-Length"]=s.content.length));var l=this._getResource(s);a.authorization=this.authorization(s.method,l,s.subres,a);var u=this._getReqUrl(s);m("request %s %s, with headers %j, !!stream: %s",s.method,u,a,!!s.stream);var f=s.timeout||this.options.timeout,p={method:s.method,content:s.content,stream:s.stream,headers:a,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=e}).call(this,j("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(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/keys"),E=w(O),C=j("babel-runtime/helpers/typeof"),v=w(C);function w(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,v.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(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/keys"),E=w(O),C=j("babel-runtime/helpers/typeof"),v=w(C);function w(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(d,"__esModule",{value:!0}),d.formatObjKey=void 0;function m(c,i){if(c===null||(typeof c=="undefined"?"undefined":(0,v.default)(c))!=="object")return c;var r=void 0;if(Array.isArray(c)){r=[];for(var o=0;o<c.length;o++)r.push(m(c[o],i))}else r={},(0,E.default)(c).forEach(function(n){r[h(n,i)]=m(c[n],i)});return r}d.formatObjKey=m;function h(c,i){return i==="firstUpperCase"?c=c.replace(/^./,function(r){return r.toUpperCase()}):i==="firstLowerCase"&&(c=c.replace(/^./,function(r){return r.toLowerCase()})),c}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getStrBytesCount=void 0;function O(E){for(var C=0,v=0;v<E.length;v++){var w=E.charAt(v);/^[\u00-\uff]$/.test(w)?C+=1:C+=2}return C}d.getStrBytesCount=O},{}],42:[function(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isArray=void 0,d.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}},{}],43:[function(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function O(E){return typeof Blob!="undefined"&&E instanceof Blob}d.isBlob=O},{}],44:[function(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isFile=void 0,d.isFile=function(O){return typeof File!="undefined"&&O instanceof File}},{}],45:[function(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(O){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}$/,C=/^\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(O)||C.test(O)}},{}],46:[function(j,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isObject=void 0,d.isObject=function(O){return Object.prototype.toString.call(O)==="[object Object]"}},{}],47:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/keys"),E=C(O);function C(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(d,"__esModule",{value:!0}),d.obj2xml=void 0;var v=j("./formatObjKey");function w(h){return Object.prototype.toString.call(h).replace(/(.*? |])/g,"").toLowerCase()}function m(h,c){var i="";return c&&c.headers&&(i=`<?xml version="1.0" encoding="UTF-8"?>
`),c&&c.firstUpperCase&&(h=v.formatObjKey(h,"firstUpperCase")),w(h)==="object"?(0,E.default)(h).forEach(function(r){w(h[r])==="string"||w(h[r])==="number"?i+="<"+r+">"+h[r]+"</"+r+">":w(h[r])==="object"?i+="<"+r+">"+m(h[r])+"</"+r+">":w(h[r])==="array"?i+=h[r].map(function(o){return"<"+r+">"+m(o)+"</"+r+">"}).join(""):i+="<"+r+">"+h[r].toString()+"</"+r+">"}):i+=h.toString(),i}d.obj2xml=m},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(j,P,d){P.exports=O,P.exports.HttpsAgent=O;function O(){}},{}],49:[function(j,P,d){P.exports=j("./register")().Promise},{"./register":51}],50:[function(j,P,d){"use strict";var O="@@any-promise/REGISTRATION",E=null;P.exports=function(C,v){return function(m,h){m=m||null,h=h||{};var c=h.global!==!1;if(E===null&&c&&(E=C[O]||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=v(m),c&&(C[O]=E)),E}}},{}],51:[function(j,P,d){"use strict";P.exports=j("./loader")(window,O);function O(){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(j,P,d){P.exports={default:j("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(j,P,d){P.exports={default:j("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(j,P,d){P.exports={default:j("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(j,P,d){P.exports={default:j("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(j,P,d){P.exports={default:j("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(j,P,d){P.exports={default:j("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(j,P,d){P.exports={default:j("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(j,P,d){P.exports={default:j("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(j,P,d){P.exports={default:j("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(j,P,d){P.exports={default:j("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(j,P,d){P.exports={default:j("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(j,P,d){P.exports={default:j("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(j,P,d){P.exports={default:j("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(j,P,d){P.exports={default:j("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(j,P,d){P.exports={default:j("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(j,P,d){"use strict";d.__esModule=!0;var O=j("../core-js/symbol/iterator"),E=m(O),C=j("../core-js/symbol"),v=m(C),w=typeof v.default=="function"&&typeof E.default=="symbol"?function(h){return typeof h}:function(h){return h&&typeof v.default=="function"&&h.constructor===v.default&&h!==v.default.prototype?"symbol":typeof h};function m(h){return h&&h.__esModule?h:{default:h}}d.default=typeof v.default=="function"&&w(E.default)==="symbol"?function(h){return typeof h=="undefined"?"undefined":w(h)}:function(h){return h&&typeof v.default=="function"&&h.constructor===v.default&&h!==v.default.prototype?"symbol":typeof h=="undefined"?"undefined":w(h)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(j,P,d){P.exports=j("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(j,P,d){"use strict";d.byteLength=c,d.toByteArray=r,d.fromByteArray=e;for(var O=[],E=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,m=v.length;w<m;++w)O[w]=v[w],E[v.charCodeAt(w)]=w;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function h(s){var t=s.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=s.indexOf("=");a===-1&&(a=t);var l=a===t?0:4-a%4;return[a,l]}function c(s){var t=h(s),a=t[0],l=t[1];return(a+l)*3/4-l}function i(s,t,a){return(t+a)*3/4-a}function r(s){var t,a=h(s),l=a[0],u=a[1],f=new C(i(s,l,u)),p=0,g=u>0?l-4:l,A;for(A=0;A<g;A+=4)t=E[s.charCodeAt(A)]<<18|E[s.charCodeAt(A+1)]<<12|E[s.charCodeAt(A+2)]<<6|E[s.charCodeAt(A+3)],f[p++]=t>>16&255,f[p++]=t>>8&255,f[p++]=t&255;return u===2&&(t=E[s.charCodeAt(A)]<<2|E[s.charCodeAt(A+1)]>>4,f[p++]=t&255),u===1&&(t=E[s.charCodeAt(A)]<<10|E[s.charCodeAt(A+1)]<<4|E[s.charCodeAt(A+2)]>>2,f[p++]=t>>8&255,f[p++]=t&255),f}function o(s){return O[s>>18&63]+O[s>>12&63]+O[s>>6&63]+O[s&63]}function n(s,t,a){for(var l,u=[],f=t;f<a;f+=3)l=(s[f]<<16&16711680)+(s[f+1]<<8&65280)+(s[f+2]&255),u.push(o(l));return u.join("")}function e(s){for(var t,a=s.length,l=a%3,u=[],f=16383,p=0,g=a-l;p<g;p+=f)u.push(n(s,p,p+f>g?g:p+f));return l===1?(t=s[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):l===2&&(t=(s[a-2]<<8)+s[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},{}],70:[function(j,P,d){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(O,E,C){typeof P!="undefined"&&P.exports?P.exports=C():typeof define=="function"&&define.amd?define(E,C):O[E]=C()}(this,"bowser",function(){var O=!0;function E(i){function r(H){var F=i.match(H);return F&&F.length>1&&F[1]||""}function o(H){var F=i.match(H);return F&&F.length>1&&F[2]||""}var n=r(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(i),s=!e&&/android/i.test(i),t=/nexus\s*[0-6]\s*/i.test(i),a=!t&&/nexus\s*[0-9]+/i.test(i),l=/CrOS/.test(i),u=/silk/i.test(i),f=/sailfish/i.test(i),p=/tizen/i.test(i),g=/(web|hpw)(o|0)s/i.test(i),A=/windows phone/i.test(i),y=/SamsungBrowser/i.test(i),x=!A&&/windows/i.test(i),T=!n&&!u&&/macintosh/i.test(i),S=!s&&!f&&!p&&!g&&/linux/i.test(i),b=o(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=r(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(i)&&!/tablet pc/i.test(i),L=!I&&/[^-]mobi/i.test(i),D=/xbox/i.test(i),N;/opera/i.test(i)?N={name:"Opera",opera:O,version:_||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(i)?N={name:"Opera",opera:O,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(i)?N={name:"Samsung Internet for Android",samsungBrowser:O,version:_||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(i)?N={name:"NAVER Whale browser",whale:O,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(i)?N={name:"MZ Browser",mzbrowser:O,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(i)?N={name:"Opera Coast",coast:O,version:_||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(i)?N={name:"Focus",focus:O,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(i)?N={name:"Yandex Browser",yandexbrowser:O,version:_||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(i)?N={name:"UC Browser",ucbrowser:O,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(i)?N={name:"Maxthon",maxthon:O,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(i)?N={name:"Epiphany",epiphany:O,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(i)?N={name:"Puffin",puffin:O,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(i)?N={name:"Sleipnir",sleipnir:O,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(i)?N={name:"K-Meleon",kMeleon:O,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:A?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:O},b?(N.msedge=O,N.version=b):(N.msie=O,N.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(i)?N={name:"Internet Explorer",msie:O,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?N={name:"Chrome",osname:"Chrome OS",chromeos:O,chromeBook:O,chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(i)?N={name:"Microsoft Edge",msedge:O,version:b}:/vivaldi/i.test(i)?N={name:"Vivaldi",vivaldi:O,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||_}:f?N={name:"Sailfish",osname:"Sailfish OS",sailfish:O,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(i)?N={name:"SeaMonkey",seamonkey:O,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(i)?(N={name:"Firefox",firefox:O,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(i)&&(N.firefoxos=O,N.osname="Firefox OS")):u?N={name:"Amazon Silk",silk:O,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(i)?N={name:"PhantomJS",phantom:O,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(i)?N={name:"SlimerJS",slimer:O,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(i)||/rim\stablet/i.test(i)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:O,version:_||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(N={name:"WebOS",osname:"WebOS",webos:O,version:_||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(i)&&(N.touchpad=O)):/bada/i.test(i)?N={name:"Bada",osname:"Bada",bada:O,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:p?N={name:"Tizen",osname:"Tizen",tizen:O,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(i)?N={name:"QupZilla",qupzilla:O,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(i)?N={name:"Chromium",chromium:O,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(i)?N={name:"Chrome",chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?N={name:"Android",version:_}:/safari|applewebkit/i.test(i)?(N={name:"Safari",safari:O},_&&(N.version=_)):n?(N={name:n=="iphone"?"iPhone":n=="ipad"?"iPad":"iPod"},_&&(N.version=_)):/googlebot/i.test(i)?N={name:"Googlebot",googlebot:O,version:r(/googlebot\/(\d+(\.\d+))/i)||_}:N={name:r(/^(.*)\/(.*) /),version:o(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(i)?(/(apple)?webkit\/537\.36/i.test(i)?(N.name=N.name||"Blink",N.blink=O):(N.name=N.name||"Webkit",N.webkit=O),!N.version&&_&&(N.version=_)):!N.opera&&/gecko\//i.test(i)&&(N.name=N.name||"Gecko",N.gecko=O,N.version=N.version||r(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(s||N.silk)?(N.android=O,N.osname="Android"):!N.windowsphone&&n?(N[n]=O,N.ios=O,N.osname="iOS"):T?(N.mac=O,N.osname="macOS"):D?(N.xbox=O,N.osname="Xbox"):x?(N.windows=O,N.osname="Windows"):S&&(N.linux=O,N.osname="Linux");function M(H){switch(H){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 B="";N.windows?B=M(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?B=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(B=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),B=B.replace(/[_\s]/g,".")):n?(B=r(/os (\d+([_\s]\d+)*) like mac os x/i),B=B.replace(/[_\s]/g,".")):s?B=r(/android[ \/-](\d+(\.\d+)*)/i):N.webos?B=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?B=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?B=r(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(B=r(/tizen[\/\s](\d+(\.\d+)*)/i)),B&&(N.osversion=B);var R=!N.windows&&B.split(".")[0];return I||a||n=="ipad"||s&&(R==3||R>=4&&!L)||N.silk?N.tablet=O:(L||n=="iphone"||n=="ipod"||s||t||N.blackberry||N.webos||N.bada)&&(N.mobile=O),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=O: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=O:N.x=O,N}var C=E(typeof navigator!="undefined"&&navigator.userAgent||"");C.test=function(i){for(var r=0;r<i.length;++r){var o=i[r];if(typeof o=="string"&&o in C)return!0}return!1};function v(i){return i.split(".").length}function w(i,r){var o=[],n;if(Array.prototype.map)return Array.prototype.map.call(i,r);for(n=0;n<i.length;n++)o.push(r(i[n]));return o}function m(i){for(var r=Math.max(v(i[0]),v(i[1])),o=w(i,function(n){var e=r-v(n);return n=n+new Array(e+1).join(".0"),w(n.split("."),function(s){return new Array(20-s.length).join("0")+s}).reverse()});--r>=0;){if(o[0][r]>o[1][r])return 1;if(o[0][r]===o[1][r]){if(r===0)return 0}else return-1}}function h(i,r,o){var n=C;typeof r=="string"&&(o=r,r=void 0),r===void 0&&(r=!1),o&&(n=E(o));var e=""+n.version;for(var s in i)if(i.hasOwnProperty(s)&&n[s]){if(typeof i[s]!="string")throw new Error("Browser version in the minVersion map should be a string: "+s+": "+String(i));return m([e,i[s]])<0}return r}function c(i,r,o){return!h(i,r,o)}return C.isUnsupportedBrowser=h,C.compareVersions=m,C.check=c,C._detect=E,C.detect=E,C})},{}],71:[function(j,P,d){},{}],72:[function(j,P,d){var O=j("buffer").Buffer,E=O.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 C(c){if(c&&!E(c))throw new Error("Unknown encoding: "+c)}var v=d.StringDecoder=function(c){this.encoding=(c||"utf8").toLowerCase().replace(/[-_]/,""),C(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=w;return}this.charBuffer=new O(6),this.charReceived=0,this.charLength=0};v.prototype.write=function(c){for(var i="";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),i=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319){this.charLength+=this.surrogateSize,i="";continue}if(this.charReceived=this.charLength=0,c.length===0)return i;break}this.detectIncompleteChar(c);var o=c.length;this.charLength&&(c.copy(this.charBuffer,0,c.length-this.charReceived,o),o-=this.charReceived),i+=c.toString(this.encoding,0,o);var o=i.length-1,n=i.charCodeAt(o);if(n>=55296&&n<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),c.copy(this.charBuffer,0,0,e),i.substring(0,o)}return i},v.prototype.detectIncompleteChar=function(c){for(var i=c.length>=3?3:c.length;i>0;i--){var r=c[c.length-i];if(i==1&&r>>5==6){this.charLength=2;break}if(i<=2&&r>>4==14){this.charLength=3;break}if(i<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=i},v.prototype.end=function(c){var i="";if(c&&c.length&&(i=this.write(c)),this.charReceived){var r=this.charReceived,o=this.charBuffer,n=this.encoding;i+=o.slice(0,r).toString(n)}return i};function w(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(j,P,d){(function(O,E){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var C=j("base64-js"),v=j("ieee754"),w=j("isarray");d.Buffer=E,d.SlowBuffer=u,d.INSPECT_MAX_BYTES=50,E.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:m(),d.kMaxLength=h();function m(){try{var ne=new Uint8Array(1);return ne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ne.foo()===42&&typeof ne.subarray=="function"&&ne.subarray(1,1).byteLength===0}catch(X){return!1}}function h(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(ne,X){if(h()<X)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(ne=new Uint8Array(X),ne.__proto__=E.prototype):(ne===null&&(ne=new E(X)),ne.length=X),ne}function E(ne,X,G){if(!E.TYPED_ARRAY_SUPPORT&&!(this instanceof E))return new E(ne,X,G);if(typeof ne=="number"){if(typeof X=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,ne)}return i(this,ne,X,G)}E.poolSize=8192,E._augment=function(ne){return ne.__proto__=E.prototype,ne};function i(ne,X,G,te){if(typeof X=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&X instanceof ArrayBuffer?t(ne,X,G,te):typeof X=="string"?e(ne,X,G):a(ne,X)}E.from=function(ne,X,G){return i(null,ne,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(ne){if(typeof ne!="number")throw new TypeError('"size" argument must be a number');if(ne<0)throw new RangeError('"size" argument must not be negative')}function o(ne,X,G,te){return r(X),X<=0?c(ne,X):G!==void 0?typeof te=="string"?c(ne,X).fill(G,te):c(ne,X).fill(G):c(ne,X)}E.alloc=function(ne,X,G){return o(null,ne,X,G)};function n(ne,X){if(r(X),ne=c(ne,X<0?0:l(X)|0),!E.TYPED_ARRAY_SUPPORT)for(var G=0;G<X;++G)ne[G]=0;return ne}E.allocUnsafe=function(ne){return n(null,ne)},E.allocUnsafeSlow=function(ne){return n(null,ne)};function e(ne,X,G){if((typeof G!="string"||G==="")&&(G="utf8"),!E.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var te=f(X,G)|0;ne=c(ne,te);var we=ne.write(X,G);return we!==te&&(ne=ne.slice(0,we)),ne}function s(ne,X){var G=X.length<0?0:l(X.length)|0;ne=c(ne,G);for(var te=0;te<G;te+=1)ne[te]=X[te]&255;return ne}function t(ne,X,G,te){if(X.byteLength,G<0||X.byteLength<G)throw new RangeError("'offset' is out of bounds");if(X.byteLength<G+(te||0))throw new RangeError("'length' is out of bounds");return G===void 0&&te===void 0?X=new Uint8Array(X):te===void 0?X=new Uint8Array(X,G):X=new Uint8Array(X,G,te),E.TYPED_ARRAY_SUPPORT?(ne=X,ne.__proto__=E.prototype):ne=s(ne,X),ne}function a(ne,X){if(E.isBuffer(X)){var G=l(X.length)|0;return ne=c(ne,G),ne.length===0||X.copy(ne,0,0,G),ne}if(X){if(typeof ArrayBuffer!="undefined"&&X.buffer instanceof ArrayBuffer||"length"in X)return typeof X.length!="number"||Je(X.length)?c(ne,0):s(ne,X);if(X.type==="Buffer"&&w(X.data))return s(ne,X.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(ne){if(ne>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return ne|0}function u(ne){return+ne!=ne&&(ne=0),E.alloc(+ne)}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 te=X.length,we=G.length,he=0,Pe=Math.min(te,we);he<Pe;++he)if(X[he]!==G[he]){te=X[he],we=G[he];break}return te<we?-1:we<te?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(!w(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return E.alloc(0);var te;if(G===void 0)for(G=0,te=0;te<X.length;++te)G+=X[te].length;var we=E.allocUnsafe(G),he=0;for(te=0;te<X.length;++te){var Pe=X[te];if(!E.isBuffer(Pe))throw new TypeError('"list" argument must be an Array of Buffers');Pe.copy(we,he),he+=Pe.length}return we};function f(ne,X){if(E.isBuffer(ne))return ne.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ne)||ne instanceof ArrayBuffer))return ne.byteLength;typeof ne!="string"&&(ne=""+ne);var G=ne.length;if(G===0)return 0;for(var te=!1;;)switch(X){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return He(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Q(ne).length;default:if(te)return He(ne).length;X=(""+X).toLowerCase(),te=!0}}E.byteLength=f;function p(ne,X,G){var te=!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(ne||(ne="utf8");;)switch(ne){case"hex":return H(this,X,G);case"utf8":case"utf-8":return D(this,X,G);case"ascii":return B(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 F(this,X,G);default:if(te)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),te=!0}}E.prototype._isBuffer=!0;function g(ne,X,G){var te=ne[X];ne[X]=ne[G],ne[G]=te}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)g(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)g(this,G,G+3),g(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)g(this,G,G+7),g(this,G+1,G+6),g(this,G+2,G+5),g(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,te,we,he){if(!E.isBuffer(X))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),te===void 0&&(te=X?X.length:0),we===void 0&&(we=0),he===void 0&&(he=this.length),G<0||te>X.length||we<0||he>this.length)throw new RangeError("out of range index");if(we>=he&&G>=te)return 0;if(we>=he)return-1;if(G>=te)return 1;if(G>>>=0,te>>>=0,we>>>=0,he>>>=0,this===X)return 0;for(var Pe=he-we,Oe=te-G,le=Math.min(Pe,Oe),me=this.slice(we,he),_e=X.slice(G,te),$e=0;$e<le;++$e)if(me[$e]!==_e[$e]){Pe=me[$e],Oe=_e[$e];break}return Pe<Oe?-1:Oe<Pe?1:0};function A(ne,X,G,te,we){if(ne.length===0)return-1;if(typeof G=="string"?(te=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=we?0:ne.length-1),G<0&&(G=ne.length+G),G>=ne.length){if(we)return-1;G=ne.length-1}else if(G<0)if(we)G=0;else return-1;if(typeof X=="string"&&(X=E.from(X,te)),E.isBuffer(X))return X.length===0?-1:y(ne,X,G,te,we);if(typeof X=="number")return X=X&255,E.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?we?Uint8Array.prototype.indexOf.call(ne,X,G):Uint8Array.prototype.lastIndexOf.call(ne,X,G):y(ne,[X],G,te,we);throw new TypeError("val must be string, number or Buffer")}function y(ne,X,G,te,we){var he=1,Pe=ne.length,Oe=X.length;if(te!==void 0&&(te=String(te).toLowerCase(),te==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(ne.length<2||X.length<2)return-1;he=2,Pe/=2,Oe/=2,G/=2}function le(et,Ie){return he===1?et[Ie]:et.readUInt16BE(Ie*he)}var me;if(we){var _e=-1;for(me=G;me<Pe;me++)if(le(ne,me)===le(X,_e===-1?0:me-_e)){if(_e===-1&&(_e=me),me-_e+1===Oe)return _e*he}else _e!==-1&&(me-=me-_e),_e=-1}else for(G+Oe>Pe&&(G=Pe-Oe),me=G;me>=0;me--){for(var $e=!0,gt=0;gt<Oe;gt++)if(le(ne,me+gt)!==le(X,gt)){$e=!1;break}if($e)return me}return-1}E.prototype.includes=function(X,G,te){return this.indexOf(X,G,te)!==-1},E.prototype.indexOf=function(X,G,te){return A(this,X,G,te,!0)},E.prototype.lastIndexOf=function(X,G,te){return A(this,X,G,te,!1)};function x(ne,X,G,te){G=Number(G)||0;var we=ne.length-G;te?(te=Number(te),te>we&&(te=we)):te=we;var he=X.length;if(he%2!==0)throw new TypeError("Invalid hex string");te>he/2&&(te=he/2);for(var Pe=0;Pe<te;++Pe){var Oe=parseInt(X.substr(Pe*2,2),16);if(isNaN(Oe))return Pe;ne[G+Pe]=Oe}return Pe}function T(ne,X,G,te){return fe(He(X,ne.length-G),ne,G,te)}function S(ne,X,G,te){return fe(ge(X),ne,G,te)}function b(ne,X,G,te){return S(ne,X,G,te)}function _(ne,X,G,te){return fe(Q(X),ne,G,te)}function I(ne,X,G,te){return fe(Fe(X,ne.length-G),ne,G,te)}E.prototype.write=function(X,G,te,we){if(G===void 0)we="utf8",te=this.length,G=0;else if(te===void 0&&typeof G=="string")we=G,te=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(te)?(te=te|0,we===void 0&&(we="utf8")):(we=te,te=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var he=this.length-G;if((te===void 0||te>he)&&(te=he),X.length>0&&(te<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");we||(we="utf8");for(var Pe=!1;;)switch(we){case"hex":return x(this,X,G,te);case"utf8":case"utf-8":return T(this,X,G,te);case"ascii":return S(this,X,G,te);case"latin1":case"binary":return b(this,X,G,te);case"base64":return _(this,X,G,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,X,G,te);default:if(Pe)throw new TypeError("Unknown encoding: "+we);we=(""+we).toLowerCase(),Pe=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(ne,X,G){return X===0&&G===ne.length?C.fromByteArray(ne):C.fromByteArray(ne.slice(X,G))}function D(ne,X,G){G=Math.min(ne.length,G);for(var te=[],we=X;we<G;){var he=ne[we],Pe=null,Oe=he>239?4:he>223?3:he>191?2:1;if(we+Oe<=G){var le,me,_e,$e;switch(Oe){case 1:he<128&&(Pe=he);break;case 2:le=ne[we+1],(le&192)===128&&($e=(he&31)<<6|le&63,$e>127&&(Pe=$e));break;case 3:le=ne[we+1],me=ne[we+2],(le&192)===128&&(me&192)===128&&($e=(he&15)<<12|(le&63)<<6|me&63,$e>2047&&($e<55296||$e>57343)&&(Pe=$e));break;case 4:le=ne[we+1],me=ne[we+2],_e=ne[we+3],(le&192)===128&&(me&192)===128&&(_e&192)===128&&($e=(he&15)<<18|(le&63)<<12|(me&63)<<6|_e&63,$e>65535&&$e<1114112&&(Pe=$e))}}Pe===null?(Pe=65533,Oe=1):Pe>65535&&(Pe-=65536,te.push(Pe>>>10&1023|55296),Pe=56320|Pe&1023),te.push(Pe),we+=Oe}return M(te)}var N=4096;function M(ne){var X=ne.length;if(X<=N)return String.fromCharCode.apply(String,ne);for(var G="",te=0;te<X;)G+=String.fromCharCode.apply(String,ne.slice(te,te+=N));return G}function B(ne,X,G){var te="";G=Math.min(ne.length,G);for(var we=X;we<G;++we)te+=String.fromCharCode(ne[we]&127);return te}function R(ne,X,G){var te="";G=Math.min(ne.length,G);for(var we=X;we<G;++we)te+=String.fromCharCode(ne[we]);return te}function H(ne,X,G){var te=ne.length;(!X||X<0)&&(X=0),(!G||G<0||G>te)&&(G=te);for(var we="",he=X;he<G;++he)we+=Le(ne[he]);return we}function F(ne,X,G){for(var te=ne.slice(X,G),we="",he=0;he<te.length;he+=2)we+=String.fromCharCode(te[he]+te[he+1]*256);return we}E.prototype.slice=function(X,G){var te=this.length;X=~~X,G=G===void 0?te:~~G,X<0?(X+=te,X<0&&(X=0)):X>te&&(X=te),G<0?(G+=te,G<0&&(G=0)):G>te&&(G=te),G<X&&(G=X);var we;if(E.TYPED_ARRAY_SUPPORT)we=this.subarray(X,G),we.__proto__=E.prototype;else{var he=G-X;we=new E(he,void 0);for(var Pe=0;Pe<he;++Pe)we[Pe]=this[Pe+X]}return we};function K(ne,X,G){if(ne%1!==0||ne<0)throw new RangeError("offset is not uint");if(ne+X>G)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(X,G,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=this[X],he=1,Pe=0;++Pe<G&&(he*=256);)we+=this[X+Pe]*he;return we},E.prototype.readUIntBE=function(X,G,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=this[X+--G],he=1;G>0&&(he*=256);)we+=this[X+--G]*he;return we},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,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=this[X],he=1,Pe=0;++Pe<G&&(he*=256);)we+=this[X+Pe]*he;return he*=128,we>=he&&(we-=Math.pow(2,8*G)),we},E.prototype.readIntBE=function(X,G,te){X=X|0,G=G|0,te||K(X,G,this.length);for(var we=G,he=1,Pe=this[X+--we];we>0&&(he*=256);)Pe+=this[X+--we]*he;return he*=128,Pe>=he&&(Pe-=Math.pow(2,8*G)),Pe},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 te=this[X]|this[X+1]<<8;return te&32768?te|4294901760:te},E.prototype.readInt16BE=function(X,G){G||K(X,2,this.length);var te=this[X+1]|this[X]<<8;return te&32768?te|4294901760:te},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),v.read(this,X,!0,23,4)},E.prototype.readFloatBE=function(X,G){return G||K(X,4,this.length),v.read(this,X,!1,23,4)},E.prototype.readDoubleLE=function(X,G){return G||K(X,8,this.length),v.read(this,X,!0,52,8)},E.prototype.readDoubleBE=function(X,G){return G||K(X,8,this.length),v.read(this,X,!1,52,8)};function U(ne,X,G,te,we,he){if(!E.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>we||X<he)throw new RangeError('"value" argument is out of bounds');if(G+te>ne.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(X,G,te,we){if(X=+X,G=G|0,te=te|0,!we){var he=Math.pow(2,8*te)-1;U(this,X,G,te,he,0)}var Pe=1,Oe=0;for(this[G]=X&255;++Oe<te&&(Pe*=256);)this[G+Oe]=X/Pe&255;return G+te},E.prototype.writeUIntBE=function(X,G,te,we){if(X=+X,G=G|0,te=te|0,!we){var he=Math.pow(2,8*te)-1;U(this,X,G,te,he,0)}var Pe=te-1,Oe=1;for(this[G+Pe]=X&255;--Pe>=0&&(Oe*=256);)this[G+Pe]=X/Oe&255;return G+te},E.prototype.writeUInt8=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,1,255,0),E.TYPED_ARRAY_SUPPORT||(X=Math.floor(X)),this[G]=X&255,G+1};function V(ne,X,G,te){X<0&&(X=65535+X+1);for(var we=0,he=Math.min(ne.length-G,2);we<he;++we)ne[G+we]=(X&255<<8*(te?we:1-we))>>>(te?we:1-we)*8}E.prototype.writeUInt16LE=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):V(this,X,G,!0),G+2},E.prototype.writeUInt16BE=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):V(this,X,G,!1),G+2};function z(ne,X,G,te){X<0&&(X=4294967295+X+1);for(var we=0,he=Math.min(ne.length-G,4);we<he;++we)ne[G+we]=X>>>(te?we:3-we)*8&255}E.prototype.writeUInt32LE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!0),G+4},E.prototype.writeUInt32BE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!1),G+4},E.prototype.writeIntLE=function(X,G,te,we){if(X=+X,G=G|0,!we){var he=Math.pow(2,8*te-1);U(this,X,G,te,he-1,-he)}var Pe=0,Oe=1,le=0;for(this[G]=X&255;++Pe<te&&(Oe*=256);)X<0&&le===0&&this[G+Pe-1]!==0&&(le=1),this[G+Pe]=(X/Oe>>0)-le&255;return G+te},E.prototype.writeIntBE=function(X,G,te,we){if(X=+X,G=G|0,!we){var he=Math.pow(2,8*te-1);U(this,X,G,te,he-1,-he)}var Pe=te-1,Oe=1,le=0;for(this[G+Pe]=X&255;--Pe>=0&&(Oe*=256);)X<0&&le===0&&this[G+Pe+1]!==0&&(le=1),this[G+Pe]=(X/Oe>>0)-le&255;return G+te},E.prototype.writeInt8=function(X,G,te){return X=+X,G=G|0,te||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,te){return X=+X,G=G|0,te||U(this,X,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=X&255,this[G+1]=X>>>8):V(this,X,G,!0),G+2},E.prototype.writeInt16BE=function(X,G,te){return X=+X,G=G|0,te||U(this,X,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=X>>>8,this[G+1]=X&255):V(this,X,G,!1),G+2},E.prototype.writeInt32LE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!0),G+4},E.prototype.writeInt32BE=function(X,G,te){return X=+X,G=G|0,te||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):z(this,X,G,!1),G+4};function Y(ne,X,G,te,we,he){if(G+te>ne.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function q(ne,X,G,te,we){return we||Y(ne,X,G,4,34028234663852886e22,-34028234663852886e22),v.write(ne,X,G,te,23,4),G+4}E.prototype.writeFloatLE=function(X,G,te){return q(this,X,G,!0,te)},E.prototype.writeFloatBE=function(X,G,te){return q(this,X,G,!1,te)};function ce(ne,X,G,te,we){return we||Y(ne,X,G,8,17976931348623157e292,-17976931348623157e292),v.write(ne,X,G,te,52,8),G+8}E.prototype.writeDoubleLE=function(X,G,te){return ce(this,X,G,!0,te)},E.prototype.writeDoubleBE=function(X,G,te){return ce(this,X,G,!1,te)},E.prototype.copy=function(X,G,te,we){if(te||(te=0),!we&&we!==0&&(we=this.length),G>=X.length&&(G=X.length),G||(G=0),we>0&&we<te&&(we=te),we===te)return 0;if(X.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(te<0||te>=this.length)throw new RangeError("sourceStart out of bounds");if(we<0)throw new RangeError("sourceEnd out of bounds");we>this.length&&(we=this.length),X.length-G<we-te&&(we=X.length-G+te);var he=we-te,Pe;if(this===X&&te<G&&G<we)for(Pe=he-1;Pe>=0;--Pe)X[Pe+G]=this[Pe+te];else if(he<1e3||!E.TYPED_ARRAY_SUPPORT)for(Pe=0;Pe<he;++Pe)X[Pe+G]=this[Pe+te];else Uint8Array.prototype.set.call(X,this.subarray(te,te+he),G);return he},E.prototype.fill=function(X,G,te,we){if(typeof X=="string"){if(typeof G=="string"?(we=G,G=0,te=this.length):typeof te=="string"&&(we=te,te=this.length),X.length===1){var he=X.charCodeAt(0);he<256&&(X=he)}if(we!==void 0&&typeof we!="string")throw new TypeError("encoding must be a string");if(typeof we=="string"&&!E.isEncoding(we))throw new TypeError("Unknown encoding: "+we)}else typeof X=="number"&&(X=X&255);if(G<0||this.length<G||this.length<te)throw new RangeError("Out of range index");if(te<=G)return this;G=G>>>0,te=te===void 0?this.length:te>>>0,X||(X=0);var Pe;if(typeof X=="number")for(Pe=G;Pe<te;++Pe)this[Pe]=X;else{var Oe=E.isBuffer(X)?X:He(new E(X,we).toString()),le=Oe.length;for(Pe=0;Pe<te-G;++Pe)this[Pe+G]=Oe[Pe%le]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function ve(ne){if(ne=Ee(ne).replace(ie,""),ne.length<2)return"";for(;ne.length%4!==0;)ne=ne+"=";return ne}function Ee(ne){return ne.trim?ne.trim():ne.replace(/^\s+|\s+$/g,"")}function Le(ne){return ne<16?"0"+ne.toString(16):ne.toString(16)}function He(ne,X){X=X||Infinity;for(var G,te=ne.length,we=null,he=[],Pe=0;Pe<te;++Pe){if(G=ne.charCodeAt(Pe),G>55295&&G<57344){if(!we){if(G>56319){(X-=3)>-1&&he.push(239,191,189);continue}else if(Pe+1===te){(X-=3)>-1&&he.push(239,191,189);continue}we=G;continue}if(G<56320){(X-=3)>-1&&he.push(239,191,189),we=G;continue}G=(we-55296<<10|G-56320)+65536}else we&&((X-=3)>-1&&he.push(239,191,189));if(we=null,G<128){if((X-=1)<0)break;he.push(G)}else if(G<2048){if((X-=2)<0)break;he.push(G>>6|192,G&63|128)}else if(G<65536){if((X-=3)<0)break;he.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((X-=4)<0)break;he.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return he}function ge(ne){for(var X=[],G=0;G<ne.length;++G)X.push(ne.charCodeAt(G)&255);return X}function Fe(ne,X){for(var G,te,we,he=[],Pe=0;Pe<ne.length&&!((X-=2)<0);++Pe)G=ne.charCodeAt(Pe),te=G>>8,we=G%256,he.push(we),he.push(te);return he}function Q(ne){return C.toByteArray(ve(ne))}function fe(ne,X,G,te){for(var we=0;we<te&&!(we+G>=X.length||we>=ne.length);++we)X[we+G]=ne[we];return we}function Je(ne){return ne!==ne}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(j,P,d){P.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(j,P,d){P.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(j,P,d){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var O=Array.prototype.slice;P.exports=E;function E(v,w){if(!(this instanceof E))return new E(v,w);this.src=v,this._withAccess=w}E.prototype.withAccess=function(v){return this._withAccess=v!==!1,this},E.prototype.pick=function(v){return Array.isArray(v)||(v=O.call(arguments)),v.length&&(this.keys=v),this},E.prototype.to=function(v){if(v=v||{},!this.src)return v;var w=this.keys||Object.keys(this.src);if(!this._withAccess){for(var m=0;m<w.length;m++){if(h=w[m],v[h]!==void 0)continue;v[h]=this.src[h]}return v}for(var m=0;m<w.length;m++){var h=w[m];if(!C(v,h))continue;var c=this.src.__lookupGetter__(h),i=this.src.__lookupSetter__(h);c&&v.__defineGetter__(h,c),i&&v.__defineSetter__(h,i),!c&&!i&&(v[h]=this.src[h])}return v},E.prototype.toCover=function(v){for(var w=this.keys||Object.keys(this.src),m=0;m<w.length;m++){var h=w[m];delete v[h];var c=this.src.__lookupGetter__(h),i=this.src.__lookupSetter__(h);c&&v.__defineGetter__(h,c),i&&v.__defineSetter__(h,i),!c&&!i&&(v[h]=this.src[h])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(v){var w={};return this.to(w),this.src=v,this.to(w),this.src=w,this};function C(v,w){return v[w]===void 0&&v.__lookupGetter__(w)===void 0&&v.__lookupSetter__(w)===void 0}},{}],77:[function(j,P,d){j("../../modules/es6.string.iterator"),j("../../modules/es6.array.from"),P.exports=j("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(j,P,d){var O=j("../../modules/_core"),E=O.JSON||(O.JSON={stringify:JSON.stringify});P.exports=function(v){return E.stringify.apply(E,arguments)}},{"../../modules/_core":99}],79:[function(j,P,d){j("../../modules/es6.object.assign"),P.exports=j("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(j,P,d){j("../../modules/es6.object.create");var O=j("../../modules/_core").Object;P.exports=function(C,v){return O.create(C,v)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(j,P,d){j("../../modules/es6.object.define-property");var O=j("../../modules/_core").Object;P.exports=function(C,v,w){return O.defineProperty(C,v,w)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(j,P,d){j("../../modules/es7.object.entries"),P.exports=j("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(j,P,d){j("../../modules/es6.object.get-own-property-names");var O=j("../../modules/_core").Object;P.exports=function(C){return O.getOwnPropertyNames(C)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(j,P,d){j("../../modules/es6.object.get-prototype-of"),P.exports=j("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(j,P,d){j("../../modules/es6.object.keys"),P.exports=j("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(j,P,d){j("../modules/es6.object.to-string"),j("../modules/es6.string.iterator"),j("../modules/web.dom.iterable"),j("../modules/es6.promise"),j("../modules/es7.promise.finally"),j("../modules/es7.promise.try"),P.exports=j("../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(j,P,d){j("../modules/web.immediate"),P.exports=j("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(j,P,d){j("../../modules/es6.string.from-code-point"),P.exports=j("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(j,P,d){j("../../modules/es6.function.has-instance"),P.exports=j("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(j,P,d){j("../../modules/es6.symbol"),j("../../modules/es6.object.to-string"),j("../../modules/es7.symbol.async-iterator"),j("../../modules/es7.symbol.observable"),P.exports=j("../../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(j,P,d){j("../../modules/es6.string.iterator"),j("../../modules/web.dom.iterable"),P.exports=j("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(j,P,d){P.exports=function(O){if(typeof O!="function")throw TypeError(O+" is not a function!");return O}},{}],93:[function(j,P,d){P.exports=function(){}},{}],94:[function(j,P,d){P.exports=function(O,E,C,v){if(!(O instanceof E)||v!==void 0&&v in O)throw TypeError(C+": incorrect invocation!");return O}},{}],95:[function(j,P,d){var O=j("./_is-object");P.exports=function(E){if(!O(E))throw TypeError(E+" is not an object!");return E}},{"./_is-object":119}],96:[function(j,P,d){var O=j("./_to-iobject"),E=j("./_to-length"),C=j("./_to-absolute-index");P.exports=function(v){return function(w,m,h){var c=O(w),i=E(c.length),r=C(h,i),o;if(v&&m!=m){for(;i>r;)if(o=c[r++],o!=o)return!0}else for(;i>r;r++)if((v||r in c)&&c[r]===m)return v||r||0;return!v&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(j,P,d){var O=j("./_cof"),E=j("./_wks")("toStringTag"),C=O(function(){return arguments}())=="Arguments",v=function(m,h){try{return m[h]}catch(c){}};P.exports=function(w){var m,h,c;return w===void 0?"Undefined":w===null?"Null":typeof(h=v(m=Object(w),E))=="string"?h:C?O(m):(c=O(m))=="Object"&&typeof m.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(j,P,d){var O={}.toString;P.exports=function(E){return O.call(E).slice(8,-1)}},{}],99:[function(j,P,d){var O=P.exports={version:"2.6.11"};typeof __e=="number"&&(__e=O)},{}],100:[function(j,P,d){"use strict";var O=j("./_object-dp"),E=j("./_property-desc");P.exports=function(C,v,w){v in C?O.f(C,v,E(0,w)):C[v]=w}},{"./_object-dp":132,"./_property-desc":146}],101:[function(j,P,d){var O=j("./_a-function");P.exports=function(E,C,v){if(O(E),C===void 0)return E;switch(v){case 1:return function(w){return E.call(C,w)};case 2:return function(w,m){return E.call(C,w,m)};case 3:return function(w,m,h){return E.call(C,w,m,h)}}return function(){return E.apply(C,arguments)}}},{"./_a-function":92}],102:[function(j,P,d){P.exports=function(O){if(O==null)throw TypeError("Can't call method on "+O);return O}},{}],103:[function(j,P,d){P.exports=!j("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(j,P,d){var O=j("./_is-object"),E=j("./_global").document,C=O(E)&&O(E.createElement);P.exports=function(v){return C?E.createElement(v):{}}},{"./_global":110,"./_is-object":119}],105:[function(j,P,d){P.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(j,P,d){var O=j("./_object-keys"),E=j("./_object-gops"),C=j("./_object-pie");P.exports=function(v){var w=O(v),m=E.f;if(m)for(var h=m(v),c=C.f,i=0,r;h.length>i;)c.call(v,r=h[i++])&&w.push(r);return w}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(j,P,d){var O=j("./_global"),E=j("./_core"),C=j("./_ctx"),v=j("./_hide"),w=j("./_has"),m="prototype",h=function c(i,r,o){var n=i&c.F,e=i&c.G,s=i&c.S,t=i&c.P,a=i&c.B,l=i&c.W,u=e?E:E[r]||(E[r]={}),f=u[m],p=e?O:s?O[r]:(O[r]||{})[m],g,A,y;e&&(o=r);for(g in o){if(A=!n&&p&&p[g]!==void 0,A&&w(u,g))continue;y=A?p[g]:o[g],u[g]=e&&typeof p[g]!="function"?o[g]:a&&A?C(y,O):l&&p[g]==y?function(x){var T=function(b,_,I){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,_,I)}return x.apply(this,arguments)};return T[m]=x[m],T}(y):t&&typeof y=="function"?C(Function.call,y):y,t&&((u.virtual||(u.virtual={}))[g]=y,i&c.R&&f&&!f[g]&&v(f,g,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,P.exports=h},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(j,P,d){P.exports=function(O){try{return!!O()}catch(E){return!0}}},{}],109:[function(j,P,d){var O=j("./_ctx"),E=j("./_iter-call"),C=j("./_is-array-iter"),v=j("./_an-object"),w=j("./_to-length"),m=j("./core.get-iterator-method"),h={},c={},d=P.exports=function(i,r,o,n,e){var s=e?function(){return i}:m(i),t=O(o,n,r?2:1),a=0,l,u,f,p;if(typeof s!="function")throw TypeError(i+" is not iterable!");if(C(s)){for(l=w(i.length);l>a;a++)if(p=r?t(v(u=i[a])[0],u[1]):t(i[a]),p===h||p===c)return p}else for(f=s.call(i);!(u=f.next()).done;)if(p=E(f,t,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(j,P,d){var O=P.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=O)},{}],111:[function(j,P,d){var O={}.hasOwnProperty;P.exports=function(E,C){return O.call(E,C)}},{}],112:[function(j,P,d){var O=j("./_object-dp"),E=j("./_property-desc");P.exports=j("./_descriptors")?function(C,v,w){return O.f(C,v,E(1,w))}:function(C,v,w){return C[v]=w,C}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(j,P,d){var O=j("./_global").document;P.exports=O&&O.documentElement},{"./_global":110}],114:[function(j,P,d){P.exports=!j("./_descriptors")&&!j("./_fails")(function(){return Object.defineProperty(j("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(j,P,d){P.exports=function(O,E,C){var v=C===void 0;switch(E.length){case 0:return v?O():O.call(C);case 1:return v?O(E[0]):O.call(C,E[0]);case 2:return v?O(E[0],E[1]):O.call(C,E[0],E[1]);case 3:return v?O(E[0],E[1],E[2]):O.call(C,E[0],E[1],E[2]);case 4:return v?O(E[0],E[1],E[2],E[3]):O.call(C,E[0],E[1],E[2],E[3])}return O.apply(C,E)}},{}],116:[function(j,P,d){var O=j("./_cof");P.exports=Object("z").propertyIsEnumerable(0)?Object:function(E){return O(E)=="String"?E.split(""):Object(E)}},{"./_cof":98}],117:[function(j,P,d){var O=j("./_iterators"),E=j("./_wks")("iterator"),C=Array.prototype;P.exports=function(v){return v!==void 0&&(O.Array===v||C[E]===v)}},{"./_iterators":125,"./_wks":166}],118:[function(j,P,d){var O=j("./_cof");P.exports=Array.isArray||function(C){return O(C)=="Array"}},{"./_cof":98}],119:[function(j,P,d){P.exports=function(O){return typeof O=="object"?O!==null:typeof O=="function"}},{}],120:[function(j,P,d){var O=j("./_an-object");P.exports=function(E,C,v,w){try{return w?C(O(v)[0],v[1]):C(v)}catch(h){var m=E.return;throw m!==void 0&&O(m.call(E)),h}}},{"./_an-object":95}],121:[function(j,P,d){"use strict";var O=j("./_object-create"),E=j("./_property-desc"),C=j("./_set-to-string-tag"),v={};j("./_hide")(v,j("./_wks")("iterator"),function(){return this}),P.exports=function(w,m,h){w.prototype=O(v,{next:E(1,h)}),C(w,m+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(j,P,d){"use strict";var O=j("./_library"),E=j("./_export"),C=j("./_redefine"),v=j("./_hide"),w=j("./_iterators"),m=j("./_iter-create"),h=j("./_set-to-string-tag"),c=j("./_object-gpo"),i=j("./_wks")("iterator"),r=!([].keys&&"next"in[].keys()),o="@@iterator",n="keys",e="values",s=function(){return this};P.exports=function(t,a,l,u,f,p,g){m(l,a,u);var A=function(R){if(!r&&R in S)return S[R];switch(R){case n:return function(){return new l(this,R)};case e:return function(){return new l(this,R)}}return function(){return new l(this,R)}},y=a+" Iterator",x=f==e,T=!1,S=t.prototype,b=S[i]||S[o]||f&&S[f],_=b||A(f),I=f?x?A("entries"):_:void 0,L=a=="Array"&&S.entries||b,D,N,M;if(L&&(M=c(L.call(new t)),M!==Object.prototype&&M.next&&(h(M,y,!0),!O&&typeof M[i]!="function"&&v(M,i,s))),x&&b&&b.name!==e&&(T=!0,_=function(){return b.call(this)}),(!O||g)&&(r||T||!S[i])&&v(S,i,_),w[a]=_,w[y]=s,f)if(D={values:x?_:A(e),keys:p?_:A(n),entries:I},g)for(N in D)N in S||C(S,N,D[N]);else E(E.P+E.F*(r||T),a,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(j,P,d){var O=j("./_wks")("iterator"),E=!1;try{var C=[7][O]();C.return=function(){E=!0},Array.from(C,function(){throw 2})}catch(v){}P.exports=function(v,w){if(!w&&!E)return!1;var m=!1;try{var h=[7],c=h[O]();c.next=function(){return{done:m=!0}},h[O]=function(){return c},v(h)}catch(i){}return m}},{"./_wks":166}],124:[function(j,P,d){P.exports=function(O,E){return{value:E,done:!!O}}},{}],125:[function(j,P,d){P.exports={}},{}],126:[function(j,P,d){P.exports=!0},{}],127:[function(j,P,d){var O=j("./_uid")("meta"),E=j("./_is-object"),C=j("./_has"),v=j("./_object-dp").f,w=0,m=Object.isExtensible||function(){return!0},h=!j("./_fails")(function(){return m(Object.preventExtensions({}))}),c=function(s){v(s,O,{value:{i:"O"+ ++w,w:{}}})},i=function(s,t){if(!E(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!C(s,O)){if(!m(s))return"F";if(!t)return"E";c(s)}return s[O].i},r=function(s,t){if(!C(s,O)){if(!m(s))return!0;if(!t)return!1;c(s)}return s[O].w},o=function(s){return h&&n.NEED&&m(s)&&!C(s,O)&&c(s),s},n=P.exports={KEY:O,NEED:!1,fastKey:i,getWeak:r,onFreeze:o}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(j,P,d){var O=j("./_global"),E=j("./_task").set,C=O.MutationObserver||O.WebKitMutationObserver,v=O.process,w=O.Promise,m=j("./_cof")(v)=="process";P.exports=function(){var h,c,i,r=function(){var t,a;for(m&&(t=v.domain)&&t.exit();h;){a=h.fn,h=h.next;try{a()}catch(l){throw h?i():c=void 0,l}}c=void 0,t&&t.enter()};if(m)i=function(){v.nextTick(r)};else if(C&&!(O.navigator&&O.navigator.standalone)){var o=!0,n=document.createTextNode("");new C(r).observe(n,{characterData:!0}),i=function(){n.data=o=!o}}else if(w&&w.resolve){var e=w.resolve(void 0);i=function(){e.then(r)}}else i=function(){E.call(O,r)};return function(s){var t={fn:s,next:void 0};c&&(c.next=t),h||(h=t,i()),c=t}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(j,P,d){"use strict";var O=j("./_a-function");function E(C){var v,w;this.promise=new C(function(m,h){if(v!==void 0||w!==void 0)throw TypeError("Bad Promise constructor");v=m,w=h}),this.resolve=O(v),this.reject=O(w)}P.exports.f=function(C){return new E(C)}},{"./_a-function":92}],130:[function(j,P,d){"use strict";var O=j("./_descriptors"),E=j("./_object-keys"),C=j("./_object-gops"),v=j("./_object-pie"),w=j("./_to-object"),m=j("./_iobject"),h=Object.assign;P.exports=!h||j("./_fails")(function(){var c={},i={},r=Symbol(),o="abcdefghijklmnopqrst";return c[r]=7,o.split("").forEach(function(n){i[n]=n}),h({},c)[r]!=7||Object.keys(h({},i)).join("")!=o})?function(i,r){for(var o=w(i),n=arguments.length,e=1,s=C.f,t=v.f;n>e;)for(var a=m(arguments[e++]),l=s?E(a).concat(s(a)):E(a),u=l.length,f=0,p;u>f;)p=l[f++],(!O||t.call(a,p))&&(o[p]=a[p]);return o}:h},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(j,P,d){var O=j("./_an-object"),E=j("./_object-dps"),C=j("./_enum-bug-keys"),v=j("./_shared-key")("IE_PROTO"),w=function(){},m="prototype",h=function(){var i=j("./_dom-create")("iframe"),r=C.length,o="<",n=">",e;for(i.style.display="none",j("./_html").appendChild(i),i.src="javascript:",e=i.contentWindow.document,e.open(),e.write(o+"script"+n+"document.F=Object"+o+"/script"+n),e.close(),h=e.F;r--;)delete h[m][C[r]];return h()};P.exports=Object.create||function(i,r){var o;return i!==null?(w[m]=O(i),o=new w,w[m]=null,o[v]=i):o=h(),r===void 0?o:E(o,r)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(j,P,d){var O=j("./_an-object"),E=j("./_ie8-dom-define"),C=j("./_to-primitive"),v=Object.defineProperty;d.f=j("./_descriptors")?Object.defineProperty:function(m,h,c){if(O(m),h=C(h,!0),O(c),E)try{return v(m,h,c)}catch(i){}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(j,P,d){var O=j("./_object-dp"),E=j("./_an-object"),C=j("./_object-keys");P.exports=j("./_descriptors")?Object.defineProperties:function(w,m){E(w);for(var h=C(m),c=h.length,i=0,r;c>i;)O.f(w,r=h[i++],m[r]);return w}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(j,P,d){var O=j("./_object-pie"),E=j("./_property-desc"),C=j("./_to-iobject"),v=j("./_to-primitive"),w=j("./_has"),m=j("./_ie8-dom-define"),h=Object.getOwnPropertyDescriptor;d.f=j("./_descriptors")?h:function(i,r){if(i=C(i),r=v(r,!0),m)try{return h(i,r)}catch(o){}if(w(i,r))return E(!O.f.call(i,r),i[r])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(j,P,d){var O=j("./_to-iobject"),E=j("./_object-gopn").f,C={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],w=function(h){try{return E(h)}catch(c){return v.slice()}};P.exports.f=function(h){return v&&C.call(h)=="[object Window]"?w(h):E(O(h))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(j,P,d){var O=j("./_object-keys-internal"),E=j("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(v){return O(v,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(j,P,d){d.f=Object.getOwnPropertySymbols},{}],138:[function(j,P,d){var O=j("./_has"),E=j("./_to-object"),C=j("./_shared-key")("IE_PROTO"),v=Object.prototype;P.exports=Object.getPrototypeOf||function(w){return w=E(w),O(w,C)?w[C]:typeof w.constructor=="function"&&w instanceof w.constructor?w.constructor.prototype:w instanceof Object?v:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(j,P,d){var O=j("./_has"),E=j("./_to-iobject"),C=j("./_array-includes")(!1),v=j("./_shared-key")("IE_PROTO");P.exports=function(w,m){var h=E(w),c=0,i=[],r;for(r in h)r!=v&&(O(h,r)&&i.push(r));for(;m.length>c;)O(h,r=m[c++])&&(~C(i,r)||i.push(r));return i}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(j,P,d){var O=j("./_object-keys-internal"),E=j("./_enum-bug-keys");P.exports=Object.keys||function(v){return O(v,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(j,P,d){d.f={}.propertyIsEnumerable},{}],142:[function(j,P,d){var O=j("./_export"),E=j("./_core"),C=j("./_fails");P.exports=function(v,w){var m=(E.Object||{})[v]||Object[v],h={};h[v]=w(m),O(O.S+O.F*C(function(){m(1)}),"Object",h)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(j,P,d){var O=j("./_descriptors"),E=j("./_object-keys"),C=j("./_to-iobject"),v=j("./_object-pie").f;P.exports=function(w){return function(m){for(var h=C(m),c=E(h),i=c.length,r=0,o=[],n;i>r;)n=c[r++],(!O||v.call(h,n))&&o.push(w?[n,h[n]]:h[n]);return o}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(j,P,d){P.exports=function(O){try{return{e:!1,v:O()}}catch(E){return{e:!0,v:E}}}},{}],145:[function(j,P,d){var O=j("./_an-object"),E=j("./_is-object"),C=j("./_new-promise-capability");P.exports=function(v,w){if(O(v),E(w)&&w.constructor===v)return w;var m=C.f(v),h=m.resolve;return h(w),m.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(j,P,d){P.exports=function(O,E){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:E}}},{}],147:[function(j,P,d){var O=j("./_hide");P.exports=function(E,C,v){for(var w in C)v&&E[w]?E[w]=C[w]:O(E,w,C[w]);return E}},{"./_hide":112}],148:[function(j,P,d){P.exports=j("./_hide")},{"./_hide":112}],149:[function(j,P,d){"use strict";var O=j("./_global"),E=j("./_core"),C=j("./_object-dp"),v=j("./_descriptors"),w=j("./_wks")("species");P.exports=function(m){var h=typeof E[m]=="function"?E[m]:O[m];v&&h&&!h[w]&&C.f(h,w,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(j,P,d){var O=j("./_object-dp").f,E=j("./_has"),C=j("./_wks")("toStringTag");P.exports=function(v,w,m){v&&!E(v=m?v:v.prototype,C)&&O(v,C,{configurable:!0,value:w})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(j,P,d){var O=j("./_shared")("keys"),E=j("./_uid");P.exports=function(C){return O[C]||(O[C]=E(C))}},{"./_shared":152,"./_uid":162}],152:[function(j,P,d){var O=j("./_core"),E=j("./_global"),C="__core-js_shared__",v=E[C]||(E[C]={});(P.exports=function(w,m){return v[w]||(v[w]=m!==void 0?m:{})})("versions",[]).push({version:O.version,mode:j("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(j,P,d){var O=j("./_an-object"),E=j("./_a-function"),C=j("./_wks")("species");P.exports=function(v,w){var m=O(v).constructor,h;return m===void 0||(h=O(m)[C])==null?w:E(h)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(j,P,d){var O=j("./_to-integer"),E=j("./_defined");P.exports=function(C){return function(v,w){var m=String(E(v)),h=O(w),c=m.length,i,r;return h<0||h>=c?C?"":void 0:(i=m.charCodeAt(h),i<55296||i>56319||h+1===c||(r=m.charCodeAt(h+1))<56320||r>57343?C?m.charAt(h):i:C?m.slice(h,h+2):(i-55296<<10)+(r-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(j,P,d){var O=j("./_ctx"),E=j("./_invoke"),C=j("./_html"),v=j("./_dom-create"),w=j("./_global"),m=w.process,h=w.setImmediate,c=w.clearImmediate,i=w.MessageChannel,r=w.Dispatch,o=0,n={},e="onreadystatechange",s,t,a,l=function(){var p=+this;if(n.hasOwnProperty(p)){var g=n[p];delete n[p],g()}},u=function(p){l.call(p.data)};(!h||!c)&&(h=function(p){for(var g=[],A=1;arguments.length>A;)g.push(arguments[A++]);return n[++o]=function(){E(typeof p=="function"?p:Function(p),g)},s(o),o},c=function(p){delete n[p]},j("./_cof")(m)=="process"?s=function(p){m.nextTick(O(l,p,1))}:r&&r.now?s=function(p){r.now(O(l,p,1))}:i?(t=new i,a=t.port2,t.port1.onmessage=u,s=O(a.postMessage,a,1)):w.addEventListener&&typeof postMessage=="function"&&!w.importScripts?(s=function(p){w.postMessage(p+"","*")},w.addEventListener("message",u,!1)):e in v("script")?s=function(p){C.appendChild(v("script"))[e]=function(){C.removeChild(this),l.call(p)}}:s=function(p){setTimeout(O(l,p,1),0)}),P.exports={set:h,clear:c}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(j,P,d){var O=j("./_to-integer"),E=Math.max,C=Math.min;P.exports=function(v,w){return v=O(v),v<0?E(v+w,0):C(v,w)}},{"./_to-integer":157}],157:[function(j,P,d){var O=Math.ceil,E=Math.floor;P.exports=function(C){return isNaN(C=+C)?0:(C>0?E:O)(C)}},{}],158:[function(j,P,d){var O=j("./_iobject"),E=j("./_defined");P.exports=function(C){return O(E(C))}},{"./_defined":102,"./_iobject":116}],159:[function(j,P,d){var O=j("./_to-integer"),E=Math.min;P.exports=function(C){return C>0?E(O(C),9007199254740991):0}},{"./_to-integer":157}],160:[function(j,P,d){var O=j("./_defined");P.exports=function(E){return Object(O(E))}},{"./_defined":102}],161:[function(j,P,d){var O=j("./_is-object");P.exports=function(E,C){if(!O(E))return E;var v,w;if(C&&typeof(v=E.toString)=="function"&&!O(w=v.call(E)))return w;if(typeof(v=E.valueOf)=="function"&&!O(w=v.call(E)))return w;if(!C&&typeof(v=E.toString)=="function"&&!O(w=v.call(E)))return w;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(j,P,d){var O=0,E=Math.random();P.exports=function(C){return"Symbol(".concat(C===void 0?"":C,")_",(++O+E).toString(36))}},{}],163:[function(j,P,d){var O=j("./_global"),E=O.navigator;P.exports=E&&E.userAgent||""},{"./_global":110}],164:[function(j,P,d){var O=j("./_global"),E=j("./_core"),C=j("./_library"),v=j("./_wks-ext"),w=j("./_object-dp").f;P.exports=function(m){var h=E.Symbol||(E.Symbol=C?{}:O.Symbol||{});m.charAt(0)!="_"&&!(m in h)&&w(h,m,{value:v.f(m)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(j,P,d){d.f=j("./_wks")},{"./_wks":166}],166:[function(j,P,d){var O=j("./_shared")("wks"),E=j("./_uid"),C=j("./_global").Symbol,v=typeof C=="function",w=P.exports=function(m){return O[m]||(O[m]=v&&C[m]||(v?C:E)("Symbol."+m))};w.store=O},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(j,P,d){var O=j("./_classof"),E=j("./_wks")("iterator"),C=j("./_iterators");P.exports=j("./_core").getIteratorMethod=function(v){if(v!=null)return v[E]||v["@@iterator"]||C[O(v)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(j,P,d){"use strict";var O=j("./_ctx"),E=j("./_export"),C=j("./_to-object"),v=j("./_iter-call"),w=j("./_is-array-iter"),m=j("./_to-length"),h=j("./_create-property"),c=j("./core.get-iterator-method");E(E.S+E.F*!j("./_iter-detect")(function(i){Array.from(i)}),"Array",{from:function(r){var o=C(r),n=typeof this=="function"?this:Array,e=arguments.length,s=e>1?arguments[1]:void 0,t=s!==void 0,a=0,l=c(o),u,f,p,g;if(t&&(s=O(s,e>2?arguments[2]:void 0,2)),l!=null&&!(n==Array&&w(l)))for(g=l.call(o),f=new n;!(p=g.next()).done;a++)h(f,a,t?v(g,s,[p.value,a],!0):p.value);else for(u=m(o.length),f=new n(u);u>a;a++)h(f,a,t?s(o[a],a):o[a]);return f.length=a,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(j,P,d){"use strict";var O=j("./_add-to-unscopables"),E=j("./_iter-step"),C=j("./_iterators"),v=j("./_to-iobject");P.exports=j("./_iter-define")(Array,"Array",function(w,m){this._t=v(w),this._i=0,this._k=m},function(){var w=this._t,m=this._k,h=this._i++;return!w||h>=w.length?(this._t=void 0,E(1)):m=="keys"?E(0,h):m=="values"?E(0,w[h]):E(0,[h,w[h]])},"values"),C.Arguments=C.Array,O("keys"),O("values"),O("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(j,P,d){"use strict";var O=j("./_is-object"),E=j("./_object-gpo"),C=j("./_wks")("hasInstance"),v=Function.prototype;C in v||j("./_object-dp").f(v,C,{value:function(m){if(typeof this!="function"||!O(m))return!1;if(!O(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(j,P,d){var O=j("./_export");O(O.S+O.F,"Object",{assign:j("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(j,P,d){var O=j("./_export");O(O.S,"Object",{create:j("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(j,P,d){var O=j("./_export");O(O.S+O.F*!j("./_descriptors"),"Object",{defineProperty:j("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(j,P,d){j("./_object-sap")("getOwnPropertyNames",function(){return j("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(j,P,d){var O=j("./_to-object"),E=j("./_object-gpo");j("./_object-sap")("getPrototypeOf",function(){return function(v){return E(O(v))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(j,P,d){var O=j("./_to-object"),E=j("./_object-keys");j("./_object-sap")("keys",function(){return function(v){return E(O(v))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(j,P,d){arguments[4][71][0].apply(d,arguments)},{dup:71}],178:[function(j,P,d){"use strict";var O=j("./_library"),E=j("./_global"),C=j("./_ctx"),v=j("./_classof"),w=j("./_export"),m=j("./_is-object"),h=j("./_a-function"),c=j("./_an-instance"),i=j("./_for-of"),r=j("./_species-constructor"),o=j("./_task").set,n=j("./_microtask")(),e=j("./_new-promise-capability"),s=j("./_perform"),t=j("./_user-agent"),a=j("./_promise-resolve"),l="Promise",u=E.TypeError,f=E.process,p=f&&f.versions,g=p&&p.v8||"",A=E[l],y=v(f)=="process",x=function(){},T,S,b,_,I=S=e.f,L=!!function(){try{var K=A.resolve(1),U=(K.constructor={})[j("./_wks")("species")]=function(V){V(x,x)};return(y||typeof PromiseRejectionEvent=="function")&&K.then(x)instanceof U&&g.indexOf("6.6")!==0&&t.indexOf("Chrome/66")===-1}catch(V){}}(),D=function(U){var V;return m(U)&&typeof(V=U.then)=="function"?V:!1},N=function(U,V){if(U._n)return;U._n=!0;var z=U._c;n(function(){for(var Y=U._v,q=U._s==1,ce=0,ie=function(Ee){var Le=q?Ee.ok:Ee.fail,He=Ee.resolve,ge=Ee.reject,Fe=Ee.domain,Q,fe,Je;try{Le?(q||(U._h==2&&R(U),U._h=1),Le===!0?Q=Y:(Fe&&Fe.enter(),Q=Le(Y),Fe&&(Fe.exit(),Je=!0)),Q===Ee.promise?ge(u("Promise-chain cycle")):(fe=D(Q))?fe.call(Q,He,ge):He(Q)):ge(Y)}catch(ne){Fe&&!Je&&Fe.exit(),ge(ne)}};z.length>ce;)ie(z[ce++]);U._c=[],U._n=!1,V&&!U._h&&M(U)})},M=function(U){o.call(E,function(){var V=U._v,z=B(U),Y,q,ce;if(z&&(Y=s(function(){y?f.emit("unhandledRejection",V,U):(q=E.onunhandledrejection)?q({promise:U,reason:V}):(ce=E.console)&&ce.error&&ce.error("Unhandled promise rejection",V)}),U._h=y||B(U)?2:1),U._a=void 0,z&&Y.e)throw Y.v})},B=function(U){return U._h!==1&&(U._a||U._c).length===0},R=function(U){o.call(E,function(){var V;y?f.emit("rejectionHandled",U):(V=E.onrejectionhandled)&&V({promise:U,reason:U._v})})},H=function(U){var V=this;if(V._d)return;V._d=!0,V=V._w||V,V._v=U,V._s=2,V._a||(V._a=V._c.slice()),N(V,!0)},F=function K(U){var V=this,z;if(V._d)return;V._d=!0,V=V._w||V;try{if(V===U)throw u("Promise can't be resolved itself");(z=D(U))?n(function(){var Y={_w:V,_d:!1};try{z.call(U,C(K,Y,1),C(H,Y,1))}catch(q){H.call(Y,q)}}):(V._v=U,V._s=1,N(V,!1))}catch(Y){H.call({_w:V,_d:!1},Y)}};L||(A=function(U){c(this,A,l,"_h"),h(U),T.call(this);try{U(C(F,this,1),C(H,this,1))}catch(V){H.call(this,V)}},T=function(U){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},T.prototype=j("./_redefine-all")(A.prototype,{then:function(U,V){var z=I(r(this,A));return z.ok=typeof U=="function"?U:!0,z.fail=typeof V=="function"&&V,z.domain=y?f.domain:void 0,this._c.push(z),this._a&&this._a.push(z),this._s&&N(this,!1),z.promise},catch:function(U){return this.then(void 0,U)}}),b=function(){var U=new T;this.promise=U,this.resolve=C(F,U,1),this.reject=C(H,U,1)},e.f=I=function(U){return U===A||U===_?new b(U):S(U)}),w(w.G+w.W+w.F*!L,{Promise:A}),j("./_set-to-string-tag")(A,l),j("./_set-species")(l),_=j("./_core")[l],w(w.S+w.F*!L,l,{reject:function(U){var V=I(this),z=V.reject;return z(U),V.promise}}),w(w.S+w.F*(O||!L),l,{resolve:function(U){return a(O&&this===_?A:this,U)}}),w(w.S+w.F*!(L&&j("./_iter-detect")(function(K){A.all(K).catch(x)})),l,{all:function(U){var V=this,z=I(V),Y=z.resolve,q=z.reject,ce=s(function(){var ie=[],ve=0,Ee=1;i(U,!1,function(Le){var He=ve++,ge=!1;ie.push(void 0),Ee++,V.resolve(Le).then(function(Fe){if(ge)return;ge=!0,ie[He]=Fe,--Ee||Y(ie)},q)}),--Ee||Y(ie)});return ce.e&&q(ce.v),z.promise},race:function(U){var V=this,z=I(V),Y=z.reject,q=s(function(){i(U,!1,function(ce){V.resolve(ce).then(z.resolve,Y)})});return q.e&&Y(q.v),z.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(j,P,d){var O=j("./_export"),E=j("./_to-absolute-index"),C=String.fromCharCode,v=String.fromCodePoint;O(O.S+O.F*(!!v&&v.length!=1),"String",{fromCodePoint:function(m){for(var h=[],c=arguments.length,i=0,r;c>i;){if(r=+arguments[i++],E(r,1114111)!==r)throw RangeError(r+" is not a valid code point");h.push(r<65536?C(r):C(((r-=65536)>>10)+55296,r%1024+56320))}return h.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(j,P,d){"use strict";var O=j("./_string-at")(!0);j("./_iter-define")(String,"String",function(E){this._t=String(E),this._i=0},function(){var E=this._t,C=this._i,v;return C>=E.length?{value:void 0,done:!0}:(v=O(E,C),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(j,P,d){"use strict";var O=j("./_global"),E=j("./_has"),C=j("./_descriptors"),v=j("./_export"),w=j("./_redefine"),m=j("./_meta").KEY,h=j("./_fails"),c=j("./_shared"),i=j("./_set-to-string-tag"),r=j("./_uid"),o=j("./_wks"),n=j("./_wks-ext"),e=j("./_wks-define"),s=j("./_enum-keys"),t=j("./_is-array"),a=j("./_an-object"),l=j("./_is-object"),u=j("./_to-object"),f=j("./_to-iobject"),p=j("./_to-primitive"),g=j("./_property-desc"),A=j("./_object-create"),y=j("./_object-gopn-ext"),x=j("./_object-gopd"),T=j("./_object-gops"),S=j("./_object-dp"),b=j("./_object-keys"),_=x.f,I=S.f,L=y.f,D=O.Symbol,N=O.JSON,M=N&&N.stringify,B="prototype",R=o("_hidden"),H=o("toPrimitive"),F={}.propertyIsEnumerable,K=c("symbol-registry"),U=c("symbols"),V=c("op-symbols"),z=Object[B],Y=typeof D=="function"&&!!T.f,q=O.QObject,ce=!q||!q[B]||!q[B].findChild,ie=C&&h(function(){return A(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(he,Pe,Oe){var le=_(z,Pe);le&&delete z[Pe],I(he,Pe,Oe),le&&he!==z&&I(z,Pe,le)}:I,ve=function(Pe){var Oe=U[Pe]=A(D[B]);return Oe._k=Pe,Oe},Ee=Y&&typeof D.iterator=="symbol"?function(he){return typeof he=="symbol"}:function(he){return he instanceof D},Le=function(Pe,Oe,le){return Pe===z&&Le(V,Oe,le),a(Pe),Oe=p(Oe,!0),a(le),E(U,Oe)?(le.enumerable?(E(Pe,R)&&Pe[R][Oe]&&(Pe[R][Oe]=!1),le=A(le,{enumerable:g(0,!1)})):(E(Pe,R)||I(Pe,R,g(1,{})),Pe[R][Oe]=!0),ie(Pe,Oe,le)):I(Pe,Oe,le)},He=function(Pe,Oe){a(Pe);for(var le=s(Oe=f(Oe)),me=0,_e=le.length,$e;_e>me;)Le(Pe,$e=le[me++],Oe[$e]);return Pe},ge=function(Pe,Oe){return Oe===void 0?A(Pe):He(A(Pe),Oe)},Fe=function(Pe){var Oe=F.call(this,Pe=p(Pe,!0));return this===z&&E(U,Pe)&&!E(V,Pe)?!1:Oe||!E(this,Pe)||!E(U,Pe)||E(this,R)&&this[R][Pe]?Oe:!0},Q=function(Pe,Oe){if(Pe=f(Pe),Oe=p(Oe,!0),Pe===z&&E(U,Oe)&&!E(V,Oe))return;var le=_(Pe,Oe);return le&&E(U,Oe)&&!(E(Pe,R)&&Pe[R][Oe])&&(le.enumerable=!0),le},fe=function(Pe){for(var Oe=L(f(Pe)),le=[],me=0,_e;Oe.length>me;)!E(U,_e=Oe[me++])&&_e!=R&&_e!=m&&le.push(_e);return le},Je=function(Pe){for(var Oe=Pe===z,le=L(Oe?V:f(Pe)),me=[],_e=0,$e;le.length>_e;)E(U,$e=le[_e++])&&(Oe?E(z,$e):!0)&&me.push(U[$e]);return me};Y||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var Pe=r(arguments.length>0?arguments[0]:void 0),Oe=function le(me){this===z&&le.call(V,me),E(this,R)&&E(this[R],Pe)&&(this[R][Pe]=!1),ie(this,Pe,g(1,me))};return C&&ce&&ie(z,Pe,{configurable:!0,set:Oe}),ve(Pe)},w(D[B],"toString",function(){return this._k}),x.f=Q,S.f=Le,j("./_object-gopn").f=y.f=fe,j("./_object-pie").f=Fe,T.f=Je,C&&!j("./_library")&&w(z,"propertyIsEnumerable",Fe,!0),n.f=function(he){return ve(o(he))}),v(v.G+v.W+v.F*!Y,{Symbol:D});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),X=0;ne.length>X;)o(ne[X++]);for(var G=b(o.store),te=0;G.length>te;)e(G[te++]);v(v.S+v.F*!Y,"Symbol",{for:function(Pe){return E(K,Pe+="")?K[Pe]:K[Pe]=D(Pe)},keyFor:function(Pe){if(!Ee(Pe))throw TypeError(Pe+" is not a symbol!");for(var Oe in K)if(K[Oe]===Pe)return Oe},useSetter:function(){ce=!0},useSimple:function(){ce=!1}}),v(v.S+v.F*!Y,"Object",{create:ge,defineProperty:Le,defineProperties:He,getOwnPropertyDescriptor:Q,getOwnPropertyNames:fe,getOwnPropertySymbols:Je});var we=h(function(){T.f(1)});v(v.S+v.F*we,"Object",{getOwnPropertySymbols:function(Pe){return T.f(u(Pe))}}),N&&v(v.S+v.F*(!Y||h(function(){var he=D();return M([he])!="[null]"||M({a:he})!="{}"||M(Object(he))!="{}"})),"JSON",{stringify:function(Pe){for(var Oe=[Pe],le=1,me,_e;arguments.length>le;)Oe.push(arguments[le++]);return _e=me=Oe[1],!l(me)&&Pe===void 0||Ee(Pe)?void 0:(t(me)||(me=function(gt,et){if(typeof _e=="function"&&(et=_e.call(this,gt,et)),!Ee(et))return et}),Oe[1]=me,M.apply(N,Oe))}}),D[B][H]||j("./_hide")(D[B],H,D[B].valueOf),i(D,"Symbol"),i(Math,"Math",!0),i(O.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(j,P,d){var O=j("./_export"),E=j("./_object-to-array")(!0);O(O.S,"Object",{entries:function(v){return E(v)}})},{"./_export":107,"./_object-to-array":143}],183:[function(j,P,d){"use strict";var O=j("./_export"),E=j("./_core"),C=j("./_global"),v=j("./_species-constructor"),w=j("./_promise-resolve");O(O.P+O.R,"Promise",{finally:function(h){var c=v(this,E.Promise||C.Promise),i=typeof h=="function";return this.then(i?function(r){return w(c,h()).then(function(){return r})}:h,i?function(r){return w(c,h()).then(function(){throw r})}:h)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(j,P,d){"use strict";var O=j("./_export"),E=j("./_new-promise-capability"),C=j("./_perform");O(O.S,"Promise",{try:function(w){var m=E.f(this),h=C(w);return(h.e?m.reject:m.resolve)(h.v),m.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(j,P,d){j("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(j,P,d){j("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(j,P,d){j("./es6.array.iterator");for(var O=j("./_global"),E=j("./_hide"),C=j("./_iterators"),v=j("./_wks")("toStringTag"),w="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<w.length;m++){var h=w[m],c=O[h],i=c&&c.prototype;i&&!i[v]&&E(i,v,h),C[h]=C.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(j,P,d){var O=j("./_export"),E=j("./_task");O(O.G+O.B,{setImmediate:E.set,clearImmediate:E.clear})},{"./_export":107,"./_task":155}],189:[function(j,P,d){(function(O){"use strict";var E=j("babel-runtime/helpers/typeof"),C=v(E);function v(p){return p&&p.__esModule?p:{default:p}}function w(p){return Array.isArray?Array.isArray(p):f(p)==="[object Array]"}d.isArray=w;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 i(p){return typeof p=="number"}d.isNumber=i;function r(p){return typeof p=="string"}d.isString=r;function o(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="symbol"}d.isSymbol=o;function n(p){return p===void 0}d.isUndefined=n;function e(p){return f(p)==="[object RegExp]"}d.isRegExp=e;function s(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="object"&&p!==null}d.isObject=s;function t(p){return f(p)==="[object Date]"}d.isDate=t;function a(p){return f(p)==="[object Error]"||p instanceof Error}d.isError=a;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,C.default)(p))==="symbol"||typeof p=="undefined"}d.isPrimitive=u,d.isBuffer=O.isBuffer;function f(p){return Object.prototype.toString.call(p)}}).call(this,{isBuffer:j("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(j,P,d){"use strict";var O=j("babel-runtime/helpers/typeof"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(v){"use strict";var w=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,o=/\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(e,s,t,a){if(arguments.length===1&&i(e)==="string"&&!/\d/.test(e)&&(s=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");s=String(w.masks[s]||s||w.masks.default);var l=s.slice(0,4);(l==="UTC:"||l==="GMT:")&&(s=s.slice(4),t=!0,l==="GMT:"&&(a=!0));var u=t?"getUTC":"get",f=e[u+"Date"](),p=e[u+"Day"](),g=e[u+"Month"](),A=e[u+"FullYear"](),y=e[u+"Hours"](),x=e[u+"Minutes"](),T=e[u+"Seconds"](),S=e[u+"Milliseconds"](),b=t?0:e.getTimezoneOffset(),_=h(e),I=c(e),L={d:f,dd:m(f),ddd:w.i18n.dayNames[p],dddd:w.i18n.dayNames[p+7],m:g+1,mm:m(g+1),mmm:w.i18n.monthNames[g],mmmm:w.i18n.monthNames[g+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:T,ss:m(T),l:m(S,3),L:m(Math.round(S/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:a?"GMT":t?"UTC":(String(e).match(o)||[""]).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:I};return s.replace(r,function(D){return D in L?L[D]:D.slice(1,D.length-1)})}}();w.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"},w.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,o){for(r=String(r),o=o||2;r.length<o;)r="0"+r;return r}function h(r){var o=new Date(r.getFullYear(),r.getMonth(),r.getDate());o.setDate(o.getDate()-(o.getDay()+6)%7+3);var n=new Date(o.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var e=o.getTimezoneOffset()-n.getTimezoneOffset();o.setHours(o.getHours()-e);var s=(o-n)/(864e5*7);return 1+Math.floor(s)}function c(r){var o=r.getDay();return o===0&&(o=7),o}function i(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 w}):(typeof d=="undefined"?"undefined":(0,E.default)(d))==="object"?P.exports=w:v.dateFormat=w})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(j,P,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 O=/["'&<>]/;P.exports=E;function E(C){var v=""+C,w=O.exec(v);if(!w)return v;var m,h="",c=0,i=0;for(c=w.index;c<v.length;c++){switch(v.charCodeAt(c)){case 34:m="&quot;";break;case 38:m="&amp;";break;case 39:m="&#39;";break;case 60:m="&lt;";break;case 62:m="&gt;";break;default:continue}i!==c&&(h+=v.substring(i,c)),i=c+1,h+=m}return i!==c?h+v.substring(i,c):h}},{}],192:[function(j,P,d){function O(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}P.exports=O,O.EventEmitter=O,O.prototype._events=void 0,O.prototype._maxListeners=void 0,O.defaultMaxListeners=10,O.prototype.setMaxListeners=function(m){if(!C(m)||m<0||isNaN(m))throw TypeError("n must be a positive number");return this._maxListeners=m,this},O.prototype.emit=function(m){var h,c,i,r,o,n;if(this._events||(this._events={}),m==="error"&&(!this._events.error||v(this._events.error)&&!this._events.error.length)){if(h=arguments[1],h instanceof Error)throw h;var e=new Error('Uncaught, unspecified "error" event. ('+h+")");throw e.context=h,e}if(c=this._events[m],w(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(v(c))for(r=Array.prototype.slice.call(arguments,1),n=c.slice(),i=n.length,o=0;o<i;o++)n[o].apply(this,r);return!0},O.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]?v(this._events[m])?this._events[m].push(h):this._events[m]=[this._events[m],h]:this._events[m]=h,v(this._events[m])&&!this._events[m].warned&&(w(this._maxListeners)?c=O.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},O.prototype.on=O.prototype.addListener,O.prototype.once=function(m,h){if(!E(h))throw TypeError("listener must be a function");var c=!1;function i(){this.removeListener(m,i),c||(c=!0,h.apply(this,arguments))}return i.listener=h,this.on(m,i),this},O.prototype.removeListener=function(m,h){var c,i,r,o;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,i=-1,c===h||E(c.listener)&&c.listener===h)delete this._events[m],this._events.removeListener&&this.emit("removeListener",m,h);else if(v(c)){for(o=r;o-- >0;)if(c[o]===h||c[o].listener&&c[o].listener===h){i=o;break}if(i<0)return this;c.length===1?(c.length=0,delete this._events[m]):c.splice(i,1),this._events.removeListener&&this.emit("removeListener",m,h)}return this},O.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},O.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},O.prototype.listenerCount=function(m){if(this._events){var h=this._events[m];if(E(h))return 1;if(h)return h.length}return 0},O.listenerCount=function(m,h){return m.listenerCount(h)};function E(m){return typeof m=="function"}function C(m){return typeof m=="number"}function v(m){return typeof m=="object"&&m!==null}function w(m){return m===void 0}},{}],193:[function(j,P,d){var O=j("http"),E=P.exports;for(var C in O)O.hasOwnProperty(C)&&(E[C]=O[C]);E.request=function(v,w){return v||(v={}),v.scheme="https",v.protocol="https:",O.request.call(this,v,w)}},{http:231}],194:[function(j,P,d){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var O=j("util"),E=j("ms");P.exports=function(C){if(typeof C=="number")return C;var v=E(C);if(v===void 0){var w=new Error(O.format("humanize-ms(%j) result undefined",C));console.warn(w.stack)}return v}},{ms:204,util:243}],195:[function(j,P,d){d.read=function(O,E,C,v,w){var m,h,c=w*8-v-1,i=(1<<c)-1,r=i>>1,o=-7,n=C?w-1:0,e=C?-1:1,s=O[E+n];for(n+=e,m=s&(1<<-o)-1,s>>=-o,o+=c;o>0;m=m*256+O[E+n],n+=e,o-=8);for(h=m&(1<<-o)-1,m>>=-o,o+=v;o>0;h=h*256+O[E+n],n+=e,o-=8);if(m===0)m=1-r;else{if(m===i)return h?NaN:(s?-1:1)*Infinity;h=h+Math.pow(2,v),m=m-r}return(s?-1:1)*h*Math.pow(2,m-v)},d.write=function(O,E,C,v,w,m){var h,c,i,r=m*8-w-1,o=(1<<r)-1,n=o>>1,e=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=v?0:m-1,t=v?1:-1,a=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===Infinity?(c=isNaN(E)?1:0,h=o):(h=Math.floor(Math.log(E)/Math.LN2),E*(i=Math.pow(2,-h))<1&&(h--,i*=2),h+n>=1?E+=e/i:E+=e*Math.pow(2,1-n),E*i>=2&&(h++,i/=2),h+n>=o?(c=0,h=o):h+n>=1?(c=(E*i-1)*Math.pow(2,w),h=h+n):(c=E*Math.pow(2,n-1)*Math.pow(2,w),h=0));w>=8;O[C+s]=c&255,s+=t,c/=256,w-=8);for(h=h<<w|c,r+=w;r>0;O[C+s]=h&255,s+=t,h/=256,r-=8);O[C+s-t]|=a*128}},{}],196:[function(j,P,d){typeof Object.create=="function"?P.exports=function(E,C){C&&(E.super_=C,E.prototype=Object.create(C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:P.exports=function(E,C){if(C){E.super_=C;var v=function(){};v.prototype=C.prototype,E.prototype=new v,E.prototype.constructor=E}}},{}],197:[function(j,P,d){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/P.exports=function(C){return C!=null&&(O(C)||E(C)||!!C._isBuffer)};function O(C){return!!C.constructor&&typeof C.constructor.isBuffer=="function"&&C.constructor.isBuffer(C)}function E(C){return typeof C.readFloatLE=="function"&&typeof C.slice=="function"&&O(C.slice(0,0))}},{}],198:[function(j,P,d){var O={}.toString;P.exports=Array.isArray||function(E){return O.call(E)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(j,P){typeof exports=="object"&&typeof module!="undefined"?module.exports=P(j):typeof define=="function"&&define.amd?define(P):P(j)})(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(j){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(j){for(var P={},d=0,O=j.length;d<O;d++)P[j.charAt(d)]=d;return P}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(P){if(P.length<2){var d=P.charCodeAt(0);return d<128?P: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+(P.charCodeAt(0)-55296)*1024+(P.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(P){return P.replace(re_utob,cb_utob)},cb_encode=function(P){var d=[0,2,1][P.length%3],O=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),E=[b64chars.charAt(O>>>18),b64chars.charAt(O>>>12&63),d>=2?"=":b64chars.charAt(O>>>6&63),d>=1?"=":b64chars.charAt(O&63)];return E.join("")},btoa=global.btoa?function(j){return global.btoa(j)}:function(j){return j.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(P){var d=Object.prototype.toString.call(P)==="[object Uint8Array]";return d?P.toString("base64"):btoa(utob(String(P)))},encode=function(P,d){return d?_encode(String(P)).replace(/[+\/]/g,function(O){return O=="+"?"-":"_"}).replace(/=/g,""):_encode(P)},encodeURI=function(P){return encode(P,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(P){switch(P.length){case 4:var d=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),O=d-65536;return fromCharCode((O>>>10)+55296)+fromCharCode((O&1023)+56320);case 3:return fromCharCode((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return fromCharCode((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},btou=function(P){return P.replace(re_btou,cb_btou)},cb_decode=function(P){var d=P.length,O=d%4,E=(d>0?b64tab[P.charAt(0)]<<18:0)|(d>1?b64tab[P.charAt(1)]<<12:0)|(d>2?b64tab[P.charAt(2)]<<6:0)|(d>3?b64tab[P.charAt(3)]:0),C=[fromCharCode(E>>>16),fromCharCode(E>>>8&255),fromCharCode(E&255)];return C.length-=[0,0,2,1][O],C.join("")},_atob=global.atob?function(j){return global.atob(j)}:function(j){return j.replace(/\S{1,4}/g,cb_decode)},atob=function(P){return _atob(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(j){return(j.constructor===buffer.constructor?j:buffer.from(j,"base64")).toString()}:function(j){return(j.constructor===buffer.constructor?j:new buffer(j,"base64")).toString()}:function(j){return btou(_atob(j))},decode=function(P){return _decode(String(P).replace(/[-_]/g,function(d){return d=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var P=global.Base64;return global.Base64=_Base64,P};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(P){return{value:P,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(j){return encode(this,j)})),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(j,P,d){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";P.exports=E;var O=Object.prototype.hasOwnProperty;function E(C,v,w){if(!C)throw new TypeError("argument dest is required");if(!v)throw new TypeError("argument src is required");return w===void 0&&(w=!0),Object.getOwnPropertyNames(v).forEach(function(h){if(!w&&O.call(C,h))return;var c=Object.getOwnPropertyDescriptor(v,h);Object.defineProperty(C,h,c)}),C}},{}],201:[function(j,P,d){"use strict";function O(){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)}O.prototype.define=function(E,C){for(var v in E){var w=E[v].map(function(c){return c.toLowerCase()});v=v.toLowerCase();for(var m=0;m<w.length;m++){var h=w[m];if(h[0]=="*")continue;if(!C&&h in this._types)throw new Error('Attempt to change mapping for "'+h+'" extension from "'+this._types[h]+'" to "'+v+'". Pass `force=true` to allow this, otherwise remove "'+h+'" from the list of extensions for "'+v+'".');this._types[h]=v}if(C||!this._extensions[v]){var h=w[0];this._extensions[v]=h[0]!="*"?h:h.substr(1)}}},O.prototype.getType=function(E){E=String(E);var C=E.replace(/^.*[/\\]/,"").toLowerCase(),v=C.replace(/^.*\./,"").toLowerCase(),w=C.length<E.length,m=v.length<C.length-1;return(m||!w)&&this._types[v]||null},O.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},P.exports=O},{}],202:[function(j,P,d){"use strict";var O=j("./Mime");P.exports=new O(j("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(j,P,d){P.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(j,P,d){var O=1e3,E=O*60,C=E*60,v=C*24,w=v*7,m=v*365.25;P.exports=function(o,n){n=n||{};var e=typeof o;if(e==="string"&&o.length>0)return h(o);if(e==="number"&&isFinite(o))return n.long?i(o):c(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function h(o){if(o=String(o),o.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(o);if(!n)return;var e=parseFloat(n[1]),s=(n[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return e*m;case"weeks":case"week":case"w":return e*w;case"days":case"day":case"d":return e*v;case"hours":case"hour":case"hrs":case"hr":case"h":return e*C;case"minutes":case"minute":case"mins":case"min":case"m":return e*E;case"seconds":case"second":case"secs":case"sec":case"s":return e*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function c(o){var n=Math.abs(o);return n>=v?Math.round(o/v)+"d":n>=C?Math.round(o/C)+"h":n>=E?Math.round(o/E)+"m":n>=O?Math.round(o/O)+"s":o+"ms"}function i(o){var n=Math.abs(o);return n>=v?r(o,n,v,"day"):n>=C?r(o,n,C,"hour"):n>=E?r(o,n,E,"minute"):n>=O?r(o,n,O,"second"):o+" ms"}function r(o,n,e,s){var t=n>=e*1.5;return Math.round(o/e)+" "+s+(t?"s":"")}},{}],205:[function(j,P,d){(function(O){function E(m,h){for(var c=0,i=m.length-1;i>=0;i--){var r=m[i];r==="."?m.splice(i,1):r===".."?(m.splice(i,1),c++):c&&(m.splice(i,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 i=c>=0?arguments[c]:O.cwd();if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)continue;m=i+"/"+m,h=i.charAt(0)==="/"}return m=E(v(m.split("/"),function(r){return!!r}),!h).join("/"),(h?"/":"")+m||"."},d.normalize=function(m){var h=d.isAbsolute(m),c=w(m,-1)==="/";return m=E(v(m.split("/"),function(i){return!!i}),!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(v(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(t){for(var a=0;a<t.length&&!(t[a]!=="");a++);for(var l=t.length-1;l>=0&&!(t[l]!=="");l--);return a>l?[]:t.slice(a,l-a+1)}for(var i=c(m.split("/")),r=c(h.split("/")),o=Math.min(i.length,r.length),n=o,e=0;e<o;e++)if(i[e]!==r[e]){n=e;break}for(var s=[],e=n;e<i.length;e++)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,i=-1,r=!0,o=m.length-1;o>=1;--o)if(h=m.charCodeAt(o),h===47){if(!r){i=o;break}}else r=!1;return i===-1?c?"/":".":c&&i===1?"/":m.slice(0,i)};function C(m){typeof m!="string"&&(m=m+"");var h=0,c=-1,i=!0,r;for(r=m.length-1;r>=0;--r)if(m.charCodeAt(r)===47){if(!i){h=r+1;break}}else c===-1&&(i=!1,c=r+1);return c===-1?"":m.slice(h,c)}d.basename=function(m,h){var c=C(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,i=-1,r=!0,o=0,n=m.length-1;n>=0;--n){var e=m.charCodeAt(n);if(e===47){if(!r){c=n+1;break}continue}i===-1&&(r=!1,i=n+1),e===46?h===-1?h=n:o!==1&&(o=1):h!==-1&&(o=-1)}return h===-1||i===-1||o===0||o===1&&h===i-1&&h===c+1?"":m.slice(h,i)};function v(m,h){if(m.filter)return m.filter(h);for(var c=[],i=0;i<m.length;i++)h(m[i],i,m)&&c.push(m[i]);return c}var w="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,j("_process"))},{_process:208}],206:[function(j,P,d){(function(O){/*!
* 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},C=E[typeof window]&&window||this,v=C,w=E[typeof d]&&d,m=E[typeof P]&&P&&!P.nodeType&&P,h=w&&m&&typeof O=="object"&&O;h&&(h.global===h||h.window===h||h.self===h)&&(C=h);var c=Math.pow(2,53)-1,i=/\bOpera/,r=this,o=Object.prototype,n=o.hasOwnProperty,e=o.toString;function s(S){return S=String(S),S.charAt(0).toUpperCase()+S.slice(1)}function t(S,b,_){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return b&&_&&/^Win/i.test(S)&&!/^Windows Phone /i.test(S)&&(I=I[/[\d.]+$/.exec(S)])&&(S="Windows "+I),S=String(S),b&&_&&(S=S.replace(RegExp(b,"i"),_)),S=l(S.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]),S}function a(S,b){var _=-1,I=S?S.length:0;if(typeof I=="number"&&I>-1&&I<=c)for(;++_<I;)b(S[_],_,S);else u(S,b)}function l(S){return S=y(S),/^(?:webOS|i(?:OS|P))/.test(S)?S:s(S)}function u(S,b){for(var _ in S)n.call(S,_)&&b(S[_],_,S)}function f(S){return S==null?s(S):e.call(S).slice(8,-1)}function p(S,b){var _=S!=null?typeof S[b]:"number";return!/^(?:boolean|number|string|undefined)$/.test(_)&&(_=="object"?!!S[b]:!0)}function g(S){return String(S).replace(/([ -])(?!$)/g,"$1?")}function A(S,b){var _=null;return a(S,function(I,L){_=b(_,I,L,S)}),_}function y(S){return String(S).replace(/^ +| +$/g,"")}function x(S){var b=C,_=S&&typeof S=="object"&&f(S)!="String";_&&(b=S,S=null);var I=b.navigator||{},L=I.userAgent||"";S||(S=L);var D=_||r==v,N=_?!!I.likeChrome:/\bChrome\b/.test(S)&&!/internal|\n/i.test(e.toString()),M="Object",B=_?M:"ScriptBridgingProxyObject",R=_?M:"Environment",H=_&&b.java?"JavaPackage":f(b.java),F=_?M:"RuntimeObject",K=/\bJava/.test(H)&&b.java,U=K&&f(b.environment)==R,V=K?"a":"\u03B1",z=K?"b":"\u03B2",Y=b.document||{},q=b.operamini||b.opera,ce=i.test(ce=_&&q?q["[[Class]]"]:f(q))?ce:q=null,ie,ve=S,Ee=[],Le=null,He=S==L,ge=He&&q&&typeof q.version=="function"&&q.version(),Fe,Q=G([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),fe=we(["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"]),Je=Pe([{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"]),ne=te({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=he(["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(_e){return A(_e,function($e,gt){return $e||RegExp("\\b"+(gt.pattern||g(gt))+"\\b","i").exec(S)&&(gt.label||gt)})}function te(_e){return A(_e,function($e,gt,et){return $e||(gt[Je]||gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Je)]||RegExp("\\b"+g(et)+"(?:\\b|\\w*\\d)","i").exec(S))&&et})}function we(_e){return A(_e,function($e,gt){return $e||RegExp("\\b"+(gt.pattern||g(gt))+"\\b","i").exec(S)&&(gt.label||gt)})}function he(_e){return A(_e,function($e,gt){var et=gt.pattern||g(gt);return!$e&&($e=RegExp("\\b"+et+"(?:/[\\d.]+|[ \\w.]*)","i").exec(S))&&($e=t($e,et,gt.label||gt)),$e})}function Pe(_e){return A(_e,function($e,gt){var et=gt.pattern||g(gt);return!$e&&($e=RegExp("\\b"+et+" *\\d+[.\\w_]*","i").exec(S)||RegExp("\\b"+et+" *\\w+-[\\w]*","i").exec(S)||RegExp("\\b"+et+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(S))&&(($e=String(gt.label&&!RegExp(et,"i").test(gt.label)?gt.label:$e).split("/"))[1]&&!/[\d.]+/.test($e[0])&&($e[0]+=" "+$e[1]),gt=gt.label||gt,$e=l($e[0].replace(RegExp(et,"i"),gt).replace(RegExp("; *(?:"+gt+"[_-])?","i")," ").replace(RegExp("("+gt+")[-_.]?(\\w)","i"),"$1 $2"))),$e})}function Oe(_e){return A(_e,function($e,gt){return $e||(RegExp(gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(S)||0)[1]||null})}function le(){return this.description||""}if(Q&&(Q=[Q]),ne&&!Je&&(Je=Pe([ne])),(ie=/\bGoogle TV\b/.exec(Je))&&(Je=ie[0]),/\bSimulator\b/i.test(S)&&(Je=(Je?Je+" ":"")+"Simulator"),fe=="Opera Mini"&&/\bOPiOS\b/.test(S)&&Ee.push("running in Turbo/Uncompressed mode"),fe=="IE"&&/\blike iPhone OS\b/.test(S)?(ie=x(S.replace(/like iPhone OS/,"")),ne=ie.manufacturer,Je=ie.product):/^iP/.test(Je)?(fe||(fe="Safari"),X="iOS"+((ie=/ OS ([\d_]+)/i.exec(S))?" "+ie[1].replace(/_/g,"."):"")):fe=="Konqueror"&&!/buntu/i.test(X)?X="Kubuntu":ne&&ne!="Google"&&(/Chrome/.test(fe)&&!/\bMobile Safari\b/i.test(S)||/\bVita\b/.test(Je))||/\bAndroid\b/.test(X)&&/^Chrome/.test(fe)&&/\bVersion\//i.test(S)?(fe="Android Browser",X=/\bAndroid\b/.test(X)?X:"Android"):fe=="Silk"?(/\bMobi/i.test(S)||(X="Android",Ee.unshift("desktop mode")),/Accelerated *= *true/i.test(S)&&Ee.unshift("accelerated")):fe=="PaleMoon"&&(ie=/\bFirefox\/([\d.]+)\b/.exec(S))?Ee.push("identifying as Firefox "+ie[1]):fe=="Firefox"&&(ie=/\b(Mobile|Tablet|TV)\b/i.exec(S))?(X||(X="Firefox OS"),Je||(Je=ie[1])):!fe||(ie=!/\bMinefield\b/i.test(S)&&/\b(?:Firefox|Safari)\b/.exec(fe))?(fe&&!Je&&/[\/,]|^[^(]+?\)/.test(S.slice(S.indexOf(ie+"/")+8))&&(fe=null),(ie=Je||ne||X)&&(Je||ne||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(X))&&(fe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(X)?X:ie)+" Browser")):fe=="Electron"&&(ie=(/\bChrome\/([\d.]+)\b/.exec(S)||0)[1])&&Ee.push("Chromium "+ie),ge||(ge=Oe(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(fe),"(?:Firefox|Minefield|NetFront)"])),(ie=Q=="iCab"&&parseFloat(ge)>3&&"WebKit"||/\bOpera\b/.test(fe)&&(/\bOPR\b/.test(S)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(S)&&!/^(?:Trident|EdgeHTML)$/.test(Q)&&"WebKit"||!Q&&/\bMSIE\b/i.test(S)&&(X=="Mac OS"?"Tasman":"Trident")||Q=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(fe)&&"NetFront")&&(Q=[ie]),fe=="IE"&&(ie=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S)||0)[1])?(fe+=" Mobile",X="Windows Phone "+(/\+$/.test(ie)?ie:ie+".x"),Ee.unshift("desktop mode")):/\bWPDesktop\b/i.test(S)?(fe="IE Mobile",X="Windows Phone 8.x",Ee.unshift("desktop mode"),ge||(ge=(/\brv:([\d.]+)/.exec(S)||0)[1])):fe!="IE"&&Q=="Trident"&&(ie=/\brv:([\d.]+)/.exec(S))&&(fe&&Ee.push("identifying as "+fe+(ge?" "+ge:"")),fe="IE",ge=ie[1]),He){if(p(b,"global"))if(K&&(ie=K.lang.System,ve=ie.getProperty("os.arch"),X=X||ie.getProperty("os.name")+" "+ie.getProperty("os.version")),U){try{ge=b.require("ringo/engine").version.join("."),fe="RingoJS"}catch(_e){(ie=b.system)&&ie.global.system==b.system&&(fe="Narwhal",X||(X=ie[0].os||null))}fe||(fe="Rhino")}else typeof b.process=="object"&&!b.process.browser&&(ie=b.process)&&(typeof ie.versions=="object"&&(typeof ie.versions.electron=="string"?(Ee.push("Node "+ie.versions.node),fe="Electron",ge=ie.versions.electron):typeof ie.versions.nw=="string"&&(Ee.push("Chromium "+ge,"Node "+ie.versions.node),fe="NW.js",ge=ie.versions.nw)),fe||(fe="Node.js",ve=ie.arch,X=ie.platform,ge=/[\d.]+/.exec(ie.version),ge=ge?ge[0]:null));else f(ie=b.runtime)==B?(fe="Adobe AIR",X=ie.flash.system.Capabilities.os):f(ie=b.phantom)==F?(fe="PhantomJS",ge=(ie=ie.version||null)&&ie.major+"."+ie.minor+"."+ie.patch):typeof Y.documentMode=="number"&&(ie=/\bTrident\/(\d+)/i.exec(S))?(ge=[ge,Y.documentMode],(ie=+ie[1]+4)!=ge[1]&&(Ee.push("IE "+ge[1]+" mode"),Q&&(Q[1]=""),ge[1]=ie),ge=fe=="IE"?String(ge[1].toFixed(1)):ge[0]):typeof Y.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(fe)&&(Ee.push("masking as "+fe+" "+ge),fe="IE",ge="11.0",Q=["Trident"],X="Windows");X=X&&l(X)}if(ge&&(ie=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ge)||/(?:alpha|beta)(?: ?\d)?/i.exec(S+";"+(He&&I.appMinorVersion))||/\bMinefield\b/i.test(S)&&"a")&&(Le=/b/i.test(ie)?"beta":"alpha",ge=ge.replace(RegExp(ie+"\\+?$"),"")+(Le=="beta"?z:V)+(/\d+\+?/.exec(ie)||"")),fe=="Fennec"||fe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(X))fe="Firefox Mobile";else if(fe=="Maxthon"&&ge)ge=ge.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Je))Je=="Xbox 360"&&(X=null),Je=="Xbox 360"&&/\bIEMobile\b/.test(S)&&Ee.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(fe)||fe&&!Je&&!/Browser|Mobi/.test(fe))&&(X=="Windows CE"||/Mobi/i.test(S)))fe+=" Mobile";else if(fe=="IE"&&He)try{b.external===null&&Ee.unshift("platform preview")}catch(_e){Ee.unshift("embedded")}else(/\bBlackBerry\b/.test(Je)||/\bBB10\b/.test(S))&&(ie=(RegExp(Je.replace(/ +/g," *")+"/([.\\d]+)","i").exec(S)||0)[1]||ge)?(ie=[ie,/BB10/.test(S)],X=(ie[1]?(Je=null,ne="BlackBerry"):"Device Software")+" "+ie[0],ge=null):this!=u&&Je!="Wii"&&(He&&q||/Opera/.test(fe)&&/\b(?:MSIE|Firefox)\b/i.test(S)||fe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(X)||fe=="IE"&&(X&&!/^Win/.test(X)&&ge>5.5||/\bWindows XP\b/.test(X)&&ge>8||ge==8&&!/\bTrident\b/.test(S)))&&!i.test(ie=x.call(u,S.replace(i,"")+";"))&&ie.name&&(ie="ing as "+ie.name+((ie=ie.version)?" "+ie:""),i.test(fe)?(/\bIE\b/.test(ie)&&X=="Mac OS"&&(X=null),ie="identify"+ie):(ie="mask"+ie,ce?fe=l(ce.replace(/([a-z])([A-Z])/g,"$1 $2")):fe="Opera",/\bIE\b/.test(ie)&&(X=null),He||(ge=null)),Q=["Presto"],Ee.push(ie));(ie=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(S)||0)[1])&&(ie=[parseFloat(ie.replace(/\.(\d)$/,".0$1")),ie],fe=="Safari"&&ie[1].slice(-1)=="+"?(fe="WebKit Nightly",Le="alpha",ge=ie[1].slice(0,-1)):(ge==ie[1]||ge==(ie[2]=(/\bSafari\/([\d.]+\+?)/i.exec(S)||0)[1]))&&(ge=null),ie[1]=(/\bChrome\/([\d.]+)/i.exec(S)||0)[1],ie[0]==537.36&&ie[2]==537.36&&parseFloat(ie[1])>=28&&Q=="WebKit"&&(Q=["Blink"]),!He||!N&&!ie[1]?(Q&&(Q[1]="like Safari"),ie=(ie=ie[0],ie<400?1:ie<500?2:ie<526?3:ie<533?4:ie<534?"4+":ie<535?5:ie<537?6:ie<538?7:ie<601?8:"8")):(Q&&(Q[1]="like Chrome"),ie=ie[1]||(ie=ie[0],ie<530?1:ie<532?2:ie<532.05?3:ie<533?4:ie<534.03?5:ie<534.07?6:ie<534.1?7:ie<534.13?8:ie<534.16?9:ie<534.24?10:ie<534.3?11:ie<535.01?12:ie<535.02?"13+":ie<535.07?15:ie<535.11?16:ie<535.19?17:ie<536.05?18:ie<536.1?19:ie<537.01?20:ie<537.11?"21+":ie<537.13?23:ie<537.18?24:ie<537.24?25:ie<537.36?26:Q!="Blink"?"27":"28")),Q&&(Q[1]+=" "+(ie+=typeof ie=="number"?".x":/[.+]/.test(ie)?"":"+")),fe=="Safari"&&(!ge||parseInt(ge)>45)&&(ge=ie)),fe=="Opera"&&(ie=/\bzbov|zvav$/.exec(X))?(fe+=" ",Ee.unshift("desktop mode"),ie=="zvav"?(fe+="Mini",ge=null):fe+="Mobile",X=X.replace(RegExp(" *"+ie+"$"),"")):fe=="Safari"&&/\bChrome\b/.exec(Q&&Q[1])&&(Ee.unshift("desktop mode"),fe="Chrome Mobile",ge=null,/\bOS X\b/.test(X)?(ne="Apple",X="iOS 4.3+"):X=null),ge&&ge.indexOf(ie=/[\d.]+$/.exec(X))==0&&S.indexOf("/"+ie+"-")>-1&&(X=y(X.replace(ie,""))),Q&&!/\b(?:Avant|Nook)\b/.test(fe)&&(/Browser|Lunascape|Maxthon/.test(fe)||fe!="Safari"&&/^iOS/.test(X)&&/\bSafari\b/.test(Q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(fe)&&Q[1])&&((ie=Q[Q.length-1])&&Ee.push(ie)),Ee.length&&(Ee=["("+Ee.join("; ")+")"]),ne&&Je&&Je.indexOf(ne)<0&&Ee.push("on "+ne),Je&&Ee.push((/^on /.test(Ee[Ee.length-1])?"":"on ")+Je),X&&(ie=/ ([\d.+]+)$/.exec(X),Fe=ie&&X.charAt(X.length-ie[0].length-1)=="/",X={architecture:32,family:ie&&!Fe?X.replace(ie[0],""):X,version:ie?ie[1]:null,toString:function(){var $e=this.version;return this.family+($e&&!Fe?" "+$e:"")+(this.architecture==64?" 64-bit":"")}}),(ie=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ve))&&!/\bi686\b/i.test(ve)?(X&&(X.architecture=64,X.family=X.family.replace(RegExp(" *"+ie),"")),fe&&(/\bWOW64\b/i.test(S)||He&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(S))&&Ee.unshift("32-bit")):X&&/^OS X/.test(X.family)&&fe=="Chrome"&&parseFloat(ge)>=39&&(X.architecture=64),S||(S=null);var me={};return me.description=S,me.layout=Q&&Q[0],me.manufacturer=ne,me.name=fe,me.prerelease=Le,me.product=Je,me.ua=S,me.version=fe&&ge,me.os=X||{architecture:null,family:null,version:null,toString:function(){return"null"}},me.parse=x,me.toString=le,me.version&&Ee.unshift(ge),me.name&&Ee.unshift(fe),X&&fe&&!(X==String(X).split(" ")[0]&&(X==fe.split(" ")[0]||Je))&&Ee.push(Je?"("+X+")":"on "+X),Ee.length&&(me.description=Ee.join(" ")),me}var T=x();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(C.platform=T,define(function(){return T})):w&&m?u(T,function(S,b){w[b]=S}):C.platform=T}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(j,P,d){(function(O){"use strict";typeof O=="undefined"||!O.version||O.version.indexOf("v0.")===0||O.version.indexOf("v1.")===0&&O.version.indexOf("v1.8.")!==0?P.exports={nextTick:E}:P.exports=O;function E(C,v,w,m){if(typeof C!="function")throw new TypeError('"callback" argument must be a function');var h=arguments.length,c,i;switch(h){case 0:case 1:return O.nextTick(C);case 2:return O.nextTick(function(){C.call(null,v)});case 3:return O.nextTick(function(){C.call(null,v,w)});case 4:return O.nextTick(function(){C.call(null,v,w,m)});default:for(c=new Array(h-1),i=0;i<c.length;)c[i++]=arguments[i];return O.nextTick(function(){C.apply(null,c)})}}}).call(this,j("_process"))},{_process:208}],208:[function(j,P,d){var O=P.exports={},E,C;function v(){throw new Error("setTimeout has not been defined")}function w(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=v}catch(a){E=v}try{typeof clearTimeout=="function"?C=clearTimeout:C=w}catch(a){C=w}})();function m(a){if(E===setTimeout)return setTimeout(a,0);if((E===v||!E)&&setTimeout)return E=setTimeout,setTimeout(a,0);try{return E(a,0)}catch(l){try{return E.call(null,a,0)}catch(u){return E.call(this,a,0)}}}function h(a){if(C===clearTimeout)return clearTimeout(a);if((C===w||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(a);try{return C(a)}catch(l){try{return C.call(null,a)}catch(u){return C.call(this,a)}}}var c=[],i=!1,r,o=-1;function n(){if(!i||!r)return;i=!1,r.length?c=r.concat(c):o=-1,c.length&&e()}function e(){if(i)return;var a=m(n);i=!0;for(var l=c.length;l;){for(r=c,c=[];++o<l;)r&&r[o].run();o=-1,l=c.length}r=null,i=!1,h(a)}O.nextTick=function(a){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(a,l)),c.length===1&&!i&&m(e)};function s(a,l){this.fun=a,this.array=l}s.prototype.run=function(){this.fun.apply(null,this.array)},O.title="browser",O.browser=!0,O.env={},O.argv=[],O.version="",O.versions={};function t(){}O.on=t,O.addListener=t,O.once=t,O.off=t,O.removeListener=t,O.removeAllListeners=t,O.emit=t,O.prependListener=t,O.prependOnceListener=t,O.listeners=function(a){return[]},O.binding=function(a){throw new Error("process.binding is not supported")},O.cwd=function(){return"/"},O.chdir=function(a){throw new Error("process.chdir is not supported")},O.umask=function(){return 0}},{}],209:[function(j,P,d){(function(O){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(E){var C=typeof d=="object"&&d&&!d.nodeType&&d,v=typeof P=="object"&&P&&!P.nodeType&&P,w=typeof O=="object"&&O;(w.global===w||w.window===w||w.self===w)&&(E=w);var m,h=2147483647,c=36,i=1,r=26,o=38,n=700,e=72,s=128,t="-",a=/^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-i,g=Math.floor,A=String.fromCharCode,y;function x(H){throw new RangeError(f[H])}function T(H,F){for(var K=H.length,U=[];K--;)U[K]=F(H[K]);return U}function S(H,F){var K=H.split("@"),U="";K.length>1&&(U=K[0]+"@",H=K[1]),H=H.replace(u,".");var V=H.split("."),z=T(V,F).join(".");return U+z}function b(H){for(var F=[],K=0,U=H.length,V,z;K<U;)V=H.charCodeAt(K++),V>=55296&&V<=56319&&K<U?(z=H.charCodeAt(K++),(z&64512)==56320?F.push(((V&1023)<<10)+(z&1023)+65536):(F.push(V),K--)):F.push(V);return F}function _(H){return T(H,function(F){var K="";return F>65535&&(F-=65536,K+=A(F>>>10&1023|55296),F=56320|F&1023),K+=A(F),K}).join("")}function I(H){return H-48<10?H-22:H-65<26?H-65:H-97<26?H-97:c}function L(H,F){return H+22+75*(H<26)-((F!=0)<<5)}function D(H,F,K){var U=0;for(H=K?g(H/n):H>>1,H+=g(H/F);H>p*r>>1;U+=c)H=g(H/p);return g(U+(p+1)*H/(H+o))}function N(H){var F=[],K=H.length,U,V=0,z=s,Y=e,q,ce,ie,ve,Ee,Le,He,ge,Fe;for(q=H.lastIndexOf(t),q<0&&(q=0),ce=0;ce<q;++ce)H.charCodeAt(ce)>=128&&x("not-basic"),F.push(H.charCodeAt(ce));for(ie=q>0?q+1:0;ie<K;){for(ve=V,Ee=1,Le=c;!(ie>=K&&x("invalid-input"),He=I(H.charCodeAt(ie++)),(He>=c||He>g((h-V)/Ee))&&x("overflow"),V+=He*Ee,ge=Le<=Y?i:Le>=Y+r?r:Le-Y,He<ge);Le+=c)Fe=c-ge,Ee>g(h/Fe)&&x("overflow"),Ee*=Fe;U=F.length+1,Y=D(V-ve,U,ve==0),g(V/U)>h-z&&x("overflow"),z+=g(V/U),V%=U,F.splice(V++,0,z)}return _(F)}function M(H){var F,K,U,V,z,Y,q,ce,ie,ve,Ee,Le=[],He,ge,Fe,Q;for(H=b(H),He=H.length,F=s,K=0,z=e,Y=0;Y<He;++Y)Ee=H[Y],Ee<128&&Le.push(A(Ee));for(U=V=Le.length,V&&Le.push(t);U<He;){for(q=h,Y=0;Y<He;++Y)Ee=H[Y],Ee>=F&&Ee<q&&(q=Ee);for(ge=U+1,q-F>g((h-K)/ge)&&x("overflow"),K+=(q-F)*ge,F=q,Y=0;Y<He;++Y)if(Ee=H[Y],Ee<F&&++K>h&&x("overflow"),Ee==F){for(ce=K,ie=c;!(ve=ie<=z?i:ie>=z+r?r:ie-z,ce<ve);ie+=c)Q=ce-ve,Fe=c-ve,Le.push(A(L(ve+Q%Fe,0))),ce=g(Q/Fe);Le.push(A(L(ce,0))),z=D(K,ge,U==V),K=0,++U}++K,++F}return Le.join("")}function B(H){return S(H,function(F){return a.test(F)?N(F.slice(4).toLowerCase()):F})}function R(H){return S(H,function(F){return l.test(F)?"xn--"+M(F):F})}if(m={version:"1.4.1",ucs2:{decode:b,encode:_},decode:N,encode:M,toASCII:R,toUnicode:B},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return m});else if(C&&v)if(P.exports==C)v.exports=m;else for(y in m)m.hasOwnProperty(y)&&(C[y]=m[y]);else E.punycode=m})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(j,P,d){"use strict";function O(C,v){return Object.prototype.hasOwnProperty.call(C,v)}P.exports=function(C,v,w,m){v=v||"&",w=w||"=";var h={};if(typeof C!="string"||C.length===0)return h;var c=/\+/g;C=C.split(v);var i=1e3;m&&typeof m.maxKeys=="number"&&(i=m.maxKeys);var r=C.length;i>0&&r>i&&(r=i);for(var o=0;o<r;++o){var n=C[o].replace(c,"%20"),e=n.indexOf(w),s,t,a,l;e>=0?(s=n.substr(0,e),t=n.substr(e+1)):(s=n,t=""),a=decodeURIComponent(s),l=decodeURIComponent(t),O(h,a)?E(h[a])?h[a].push(l):h[a]=[h[a],l]:h[a]=l}return h};var E=Array.isArray||function(C){return Object.prototype.toString.call(C)==="[object Array]"}},{}],211:[function(j,P,d){"use strict";var O=function(m){switch(typeof m){case"string":return m;case"boolean":return m?"true":"false";case"number":return isFinite(m)?m:"";default:return""}};P.exports=function(w,m,h,c){return m=m||"&",h=h||"=",w===null&&(w=void 0),typeof w=="object"?C(v(w),function(i){var r=encodeURIComponent(O(i))+h;return E(w[i])?C(w[i],function(o){return r+encodeURIComponent(O(o))}).join(m):r+encodeURIComponent(O(w[i]))}).join(m):c?encodeURIComponent(O(c))+h+encodeURIComponent(O(w)):""};var E=Array.isArray||function(w){return Object.prototype.toString.call(w)==="[object Array]"};function C(w,m){if(w.map)return w.map(m);for(var h=[],c=0;c<w.length;c++)h.push(m(w[c],c));return h}var v=Object.keys||function(w){var m=[];for(var h in w)Object.prototype.hasOwnProperty.call(w,h)&&m.push(h);return m}},{}],212:[function(j,P,d){"use strict";d.decode=d.parse=j("./decode"),d.encode=d.stringify=j("./encode")},{"./decode":210,"./encode":211}],213:[function(j,P,d){P.exports=j("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=w(O),C=j("babel-runtime/core-js/object/keys"),v=w(C);function w(l){return l&&l.__esModule?l:{default:l}}var m=j("process-nextick-args"),h=v.default||function(l){var u=[];for(var f in l)u.push(f);return u};P.exports=s;var c=(0,E.default)(j("core-util-is"));c.inherits=j("inherits");var i=j("./_stream_readable"),r=j("./_stream_writable");c.inherits(s,i);for(var o=h(r.prototype),n=0;n<o.length;n++){var e=o[n];s.prototype[e]||(s.prototype[e]=r.prototype[e])}function s(l){if(!(this instanceof s))return new s(l);i.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",t)}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t(){if(this.allowHalfOpen||this._writableState.ended)return;m.nextTick(a,this)}function a(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(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(h){return h&&h.__esModule?h:{default:h}}P.exports=m;var v=j("./_stream_transform"),w=(0,E.default)(j("core-util-is"));w.inherits=j("inherits"),w.inherits(m,v);function m(h){if(!(this instanceof m))return new m(h);v.call(this,h)}m.prototype._transform=function(h,c,i){i(null,h)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(j,P,d){(function(O,E){"use strict";var C=j("babel-runtime/core-js/object/get-prototype-of"),v=h(C),w=j("babel-runtime/core-js/object/create"),m=h(w);function h(Q){return Q&&Q.__esModule?Q:{default:Q}}var c=j("process-nextick-args");P.exports=b;var i=j("isarray"),r;b.ReadableState=S;var o=j("events").EventEmitter,n=function(fe,Je){return fe.listeners(Je).length},e=j("./internal/streams/stream"),s=j("safe-buffer").Buffer,t=E.Uint8Array||function(){};function a(Q){return s.from(Q)}function l(Q){return s.isBuffer(Q)||Q instanceof t}var u=(0,m.default)(j("core-util-is"));u.inherits=j("inherits");var f=j("util"),p=void 0;f&&f.debuglog?p=f.debuglog("stream"):p=function(){};var g=j("./internal/streams/BufferList"),A=j("./internal/streams/destroy"),y;u.inherits(b,e);var x=["error","close","destroy","pause","resume"];function T(Q,fe,Je){if(typeof Q.prependListener=="function")return Q.prependListener(fe,Je);!Q._events||!Q._events[fe]?Q.on(fe,Je):i(Q._events[fe])?Q._events[fe].unshift(Je):Q._events[fe]=[Je,Q._events[fe]]}function S(Q,fe){r=r||j("./_stream_duplex"),Q=Q||{};var Je=fe instanceof r;this.objectMode=!!Q.objectMode,Je&&(this.objectMode=this.objectMode||!!Q.readableObjectMode);var ne=Q.highWaterMark,X=Q.readableHighWaterMark,G=this.objectMode?16:16*1024;ne||ne===0?this.highWaterMark=ne:Je&&(X||X===0)?this.highWaterMark=X:this.highWaterMark=G,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,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=j("string_decoder/").StringDecoder),this.decoder=new y(Q.encoding),this.encoding=Q.encoding)}function b(Q){if(r=r||j("./_stream_duplex"),!(this instanceof b))return new b(Q);this._readableState=new S(Q,this),this.readable=!0,Q&&(typeof Q.read=="function"&&(this._read=Q.read),typeof Q.destroy=="function"&&(this._destroy=Q.destroy)),e.call(this)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(fe){if(!this._readableState)return;this._readableState.destroyed=fe}}),b.prototype.destroy=A.destroy,b.prototype._undestroy=A.undestroy,b.prototype._destroy=function(Q,fe){this.push(null),fe(Q)},b.prototype.push=function(Q,fe){var Je=this._readableState,ne;return Je.objectMode?ne=!0:typeof Q=="string"&&(fe=fe||Je.defaultEncoding,fe!==Je.encoding&&(Q=s.from(Q,fe),fe=""),ne=!0),_(this,Q,fe,!1,ne)},b.prototype.unshift=function(Q){return _(this,Q,null,!0,!1)};function _(Q,fe,Je,ne,X){var G=Q._readableState;if(fe===null)G.reading=!1,R(Q,G);else{var te;X||(te=L(G,fe)),te?Q.emit("error",te):G.objectMode||fe&&fe.length>0?(typeof fe!="string"&&!G.objectMode&&(0,v.default)(fe)!==s.prototype&&(fe=a(fe)),ne?G.endEmitted?Q.emit("error",new Error("stream.unshift() after end event")):I(Q,G,fe,!0):G.ended?Q.emit("error",new Error("stream.push() after EOF")):(G.reading=!1,G.decoder&&!Je?(fe=G.decoder.write(fe),G.objectMode||fe.length!==0?I(Q,G,fe,!1):K(Q,G)):I(Q,G,fe,!1))):ne||(G.reading=!1)}return D(G)}function I(Q,fe,Je,ne){fe.flowing&&fe.length===0&&!fe.sync?(Q.emit("data",Je),Q.read(0)):(fe.length+=fe.objectMode?1:Je.length,ne?fe.buffer.unshift(Je):fe.buffer.push(Je),fe.needReadable&&H(Q)),K(Q,fe)}function L(Q,fe){var Je;return!l(fe)&&typeof fe!="string"&&fe!==void 0&&!Q.objectMode&&(Je=new TypeError("Invalid non-string/buffer chunk")),Je}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=j("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 B(Q,fe){return Q<=0||fe.length===0&&fe.ended?0:fe.objectMode?1:Q!==Q?fe.flowing&&fe.length?fe.buffer.head.data.length:fe.length:(Q>fe.highWaterMark&&(fe.highWaterMark=M(Q)),Q<=fe.length?Q:fe.ended?fe.length:(fe.needReadable=!0,0))}b.prototype.read=function(Q){p("read",Q),Q=parseInt(Q,10);var fe=this._readableState,Je=Q;if(Q!==0&&(fe.emittedReadable=!1),Q===0&&fe.needReadable&&(fe.length>=fe.highWaterMark||fe.ended))return p("read: emitReadable",fe.length,fe.ended),fe.length===0&&fe.ended?He(this):H(this),null;if(Q=B(Q,fe),Q===0&&fe.ended)return fe.length===0&&He(this),null;var ne=fe.needReadable;p("need readable",ne),(fe.length===0||fe.length-Q<fe.highWaterMark)&&(ne=!0,p("length less than watermark",ne)),fe.ended||fe.reading?(ne=!1,p("reading or ended",ne)):ne&&(p("do read"),fe.reading=!0,fe.sync=!0,fe.length===0&&(fe.needReadable=!0),this._read(fe.highWaterMark),fe.sync=!1,fe.reading||(Q=B(Je,fe)));var X;return Q>0?X=ie(Q,fe):X=null,X===null?(fe.needReadable=!0,Q=0):fe.length-=Q,fe.length===0&&(fe.ended||(fe.needReadable=!0),Je!==Q&&fe.ended&&He(this)),X!==null&&this.emit("data",X),X};function R(Q,fe){if(fe.ended)return;if(fe.decoder){var Je=fe.decoder.end();Je&&Je.length&&(fe.buffer.push(Je),fe.length+=fe.objectMode?1:Je.length)}fe.ended=!0,H(Q)}function H(Q){var fe=Q._readableState;fe.needReadable=!1,fe.emittedReadable||(p("emitReadable",fe.flowing),fe.emittedReadable=!0,fe.sync?c.nextTick(F,Q):F(Q))}function F(Q){p("emit readable"),Q.emit("readable"),ce(Q)}function K(Q,fe){fe.readingMore||(fe.readingMore=!0,c.nextTick(U,Q,fe))}function U(Q,fe){for(var Je=fe.length;!fe.reading&&!fe.flowing&&!fe.ended&&fe.length<fe.highWaterMark&&!(p("maybeReadMore read 0"),Q.read(0),Je===fe.length);)Je=fe.length;fe.readingMore=!1}b.prototype._read=function(Q){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(Q,fe){var Je=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=Q;break;case 1:ne.pipes=[ne.pipes,Q];break;default:ne.pipes.push(Q);break}ne.pipesCount+=1,p("pipe count=%d opts=%j",ne.pipesCount,fe);var X=(!fe||fe.end!==!1)&&Q!==O.stdout&&Q!==O.stderr,G=X?we:et;ne.endEmitted?c.nextTick(G):Je.once("end",G),Q.on("unpipe",te);function te(Ie,rt){p("onunpipe"),Ie===Je&&(rt&&rt.hasUnpiped===!1&&(rt.hasUnpiped=!0,Oe()))}function we(){p("onend"),Q.end()}var he=V(Je);Q.on("drain",he);var Pe=!1;function Oe(){p("cleanup"),Q.removeListener("close",$e),Q.removeListener("finish",gt),Q.removeListener("drain",he),Q.removeListener("error",_e),Q.removeListener("unpipe",te),Je.removeListener("end",we),Je.removeListener("end",et),Je.removeListener("data",me),Pe=!0,ne.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&he()}var le=!1;Je.on("data",me);function me(Ie){p("ondata"),le=!1;var rt=Q.write(Ie);rt===!1&&!le&&((ne.pipesCount===1&&ne.pipes===Q||ne.pipesCount>1&&Fe(ne.pipes,Q)!==-1)&&!Pe&&(p("false write response, pause",Je._readableState.awaitDrain),Je._readableState.awaitDrain++,le=!0),Je.pause())}function _e(Ie){p("onerror",Ie),et(),Q.removeListener("error",_e),n(Q,"error")===0&&Q.emit("error",Ie)}T(Q,"error",_e);function $e(){Q.removeListener("finish",gt),et()}Q.once("close",$e);function gt(){p("onfinish"),Q.removeListener("close",$e),et()}Q.once("finish",gt);function et(){p("unpipe"),Je.unpipe(Q)}return Q.emit("pipe",Je),ne.flowing||(p("pipe resume"),Je.resume()),Q};function V(Q){return function(){var fe=Q._readableState;p("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&n(Q,"data")&&(fe.flowing=!0,ce(Q))}}b.prototype.unpipe=function(Q){var fe=this._readableState,Je={hasUnpiped:!1};if(fe.pipesCount===0)return this;if(fe.pipesCount===1)return Q&&Q!==fe.pipes?this:(Q||(Q=fe.pipes),fe.pipes=null,fe.pipesCount=0,fe.flowing=!1,Q&&Q.emit("unpipe",this,Je),this);if(!Q){var ne=fe.pipes,X=fe.pipesCount;fe.pipes=null,fe.pipesCount=0,fe.flowing=!1;for(var G=0;G<X;G++)ne[G].emit("unpipe",this,Je);return this}var te=Fe(fe.pipes,Q);return te===-1?this:(fe.pipes.splice(te,1),fe.pipesCount-=1,fe.pipesCount===1&&(fe.pipes=fe.pipes[0]),Q.emit("unpipe",this,Je),this)},b.prototype.on=function(Q,fe){var Je=e.prototype.on.call(this,Q,fe);if(Q==="data")this._readableState.flowing!==!1&&this.resume();else if(Q==="readable"){var ne=this._readableState;!ne.endEmitted&&!ne.readableListening&&(ne.readableListening=ne.needReadable=!0,ne.emittedReadable=!1,ne.reading?ne.length&&H(this):c.nextTick(z,this))}return Je},b.prototype.addListener=b.prototype.on;function z(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,fe){fe.resumeScheduled||(fe.resumeScheduled=!0,c.nextTick(q,Q,fe))}function q(Q,fe){fe.reading||(p("resume read 0"),Q.read(0)),fe.resumeScheduled=!1,fe.awaitDrain=0,Q.emit("resume"),ce(Q),fe.flowing&&!fe.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 ce(Q){var fe=Q._readableState;for(p("flow",fe.flowing);fe.flowing&&Q.read()!==null;);}b.prototype.wrap=function(Q){var fe=this,Je=this._readableState,ne=!1;Q.on("end",function(){if(p("wrapped end"),Je.decoder&&!Je.ended){var te=Je.decoder.end();te&&te.length&&fe.push(te)}fe.push(null)}),Q.on("data",function(te){if(p("wrapped data"),Je.decoder&&(te=Je.decoder.write(te)),Je.objectMode&&te==null)return;if(!Je.objectMode&&(!te||!te.length))return;var we=fe.push(te);we||(ne=!0,Q.pause())});for(var X in Q)this[X]===void 0&&typeof Q[X]=="function"&&(this[X]=function(te){return function(){return Q[te].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(te){p("wrapped _read",te),ne&&(ne=!1,Q.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=ie;function ie(Q,fe){if(fe.length===0)return null;var Je;return fe.objectMode?Je=fe.buffer.shift():!Q||Q>=fe.length?(fe.decoder?Je=fe.buffer.join(""):fe.buffer.length===1?Je=fe.buffer.head.data:Je=fe.buffer.concat(fe.length),fe.buffer.clear()):Je=ve(Q,fe.buffer,fe.decoder),Je}function ve(Q,fe,Je){var ne;return Q<fe.head.data.length?(ne=fe.head.data.slice(0,Q),fe.head.data=fe.head.data.slice(Q)):Q===fe.head.data.length?ne=fe.shift():ne=Je?Ee(Q,fe):Le(Q,fe),ne}function Ee(Q,fe){var Je=fe.head,ne=1,X=Je.data;for(Q-=X.length;Je=Je.next;){var G=Je.data,te=Q>G.length?G.length:Q;if(te===G.length?X+=G:X+=G.slice(0,Q),Q-=te,Q===0){te===G.length?(++ne,Je.next?fe.head=Je.next:fe.head=fe.tail=null):(fe.head=Je,Je.data=G.slice(te));break}++ne}return fe.length-=ne,X}function Le(Q,fe){var Je=s.allocUnsafe(Q),ne=fe.head,X=1;for(ne.data.copy(Je),Q-=ne.data.length;ne=ne.next;){var G=ne.data,te=Q>G.length?G.length:Q;if(G.copy(Je,Je.length-Q,0,te),Q-=te,Q===0){te===G.length?(++X,ne.next?fe.head=ne.next:fe.head=fe.tail=null):(fe.head=ne,ne.data=G.slice(te));break}++X}return fe.length-=X,Je}function He(Q){var fe=Q._readableState;if(fe.length>0)throw new Error('"endReadable()" called on non-empty stream');fe.endEmitted||(fe.ended=!0,c.nextTick(ge,fe,Q))}function ge(Q,fe){!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,fe.readable=!1,fe.emit("end"))}function Fe(Q,fe){for(var Je=0,ne=Q.length;Je<ne;Je++)if(Q[Je]===fe)return Je;return-1}}).call(this,j("_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(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(r){return r&&r.__esModule?r:{default:r}}P.exports=h;var v=j("./_stream_duplex"),w=(0,E.default)(j("core-util-is"));w.inherits=j("inherits"),w.inherits(h,v);function m(r,o){var n=this._transformState;n.transforming=!1;var e=n.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,o!=null&&this.push(o),e(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);v.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(o,n){i(r,o,n)}):i(this,null,null)}h.prototype.push=function(r,o){return this._transformState.needTransform=!1,v.prototype.push.call(this,r,o)},h.prototype._transform=function(r,o,n){throw new Error("_transform() is not implemented")},h.prototype._write=function(r,o,n){var e=this._transformState;if(e.writecb=n,e.writechunk=r,e.writeencoding=o,!e.transforming){var s=this._readableState;(e.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},h.prototype._read=function(r){var o=this._transformState;o.writechunk!==null&&o.writecb&&!o.transforming?(o.transforming=!0,this._transform(o.writechunk,o.writeencoding,o.afterTransform)):o.needTransform=!0},h.prototype._destroy=function(r,o){var n=this;v.prototype._destroy.call(this,r,function(e){o(e),n.emit("close")})};function i(r,o,n){if(o)return r.emit("error",o);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(j,P,d){(function(O,E){"use strict";var C=j("babel-runtime/core-js/object/define-property"),v=e(C),w=j("babel-runtime/core-js/symbol/has-instance"),m=e(w),h=j("babel-runtime/core-js/symbol"),c=e(h),i=j("babel-runtime/core-js/object/create"),r=e(i),o=j("babel-runtime/core-js/set-immediate"),n=e(o);function e(Le){return Le&&Le.__esModule?Le:{default:Le}}var s=j("process-nextick-args");P.exports=L;function t(Le,He,ge){this.chunk=Le,this.encoding=He,this.callback=ge,this.next=null}function a(Le){var He=this;this.next=null,this.entry=null,this.finish=function(){Ee(He,Le)}}var l=!O.browser&&["v0.10","v0.9."].indexOf(O.version.slice(0,5))>-1?n.default:s.nextTick,u;L.WritableState=_;var f=(0,r.default)(j("core-util-is"));f.inherits=j("inherits");var p={deprecate:j("util-deprecate")},g=j("./internal/streams/stream"),A=j("safe-buffer").Buffer,y=E.Uint8Array||function(){};function x(Le){return A.from(Le)}function T(Le){return A.isBuffer(Le)||Le instanceof y}var S=j("./internal/streams/destroy");f.inherits(L,g);function b(){}function _(Le,He){u=u||j("./_stream_duplex"),Le=Le||{};var ge=He instanceof u;this.objectMode=!!Le.objectMode,ge&&(this.objectMode=this.objectMode||!!Le.writableObjectMode);var Fe=Le.highWaterMark,Q=Le.writableHighWaterMark,fe=this.objectMode?16:16*1024;Fe||Fe===0?this.highWaterMark=Fe:ge&&(Q||Q===0)?this.highWaterMark=Q:this.highWaterMark=fe,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 Je=Le.decodeStrings===!1;this.decodeStrings=!Je,this.defaultEncoding=Le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ne){K(He,ne)},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 a(this)}_.prototype.getBuffer=function(){for(var He=this.bufferedRequest,ge=[];He;)ge.push(He),He=He.next;return ge},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Le){}}();var I;typeof c.default=="function"&&m.default&&typeof Function.prototype[m.default]=="function"?(I=Function.prototype[m.default],(0,v.default)(L,m.default,{value:function(He){return I.call(this,He)?!0:this!==L?!1:He&&He._writableState instanceof _}})):I=function(He){return He instanceof this};function L(Le){if(u=u||j("./_stream_duplex"),!I.call(L,this)&&!(this instanceof u))return new L(Le);this._writableState=new _(Le,this),this.writable=!0,Le&&(typeof Le.write=="function"&&(this._write=Le.write),typeof Le.writev=="function"&&(this._writev=Le.writev),typeof Le.destroy=="function"&&(this._destroy=Le.destroy),typeof Le.final=="function"&&(this._final=Le.final)),g.call(this)}L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function D(Le,He){var ge=new Error("write after end");Le.emit("error",ge),s.nextTick(He,ge)}function N(Le,He,ge,Fe){var Q=!0,fe=!1;return ge===null?fe=new TypeError("May not write null values to stream"):typeof ge!="string"&&ge!==void 0&&!He.objectMode&&(fe=new TypeError("Invalid non-string/buffer chunk")),fe&&(Le.emit("error",fe),s.nextTick(Fe,fe),Q=!1),Q}L.prototype.write=function(Le,He,ge){var Fe=this._writableState,Q=!1,fe=!Fe.objectMode&&T(Le);return fe&&!A.isBuffer(Le)&&(Le=x(Le)),typeof He=="function"&&(ge=He,He=null),fe?He="buffer":He||(He=Fe.defaultEncoding),typeof ge!="function"&&(ge=b),Fe.ended?D(this,ge):(fe||N(this,Fe,Le,ge))&&(Fe.pendingcb++,Q=B(this,Fe,fe,Le,He,ge)),Q},L.prototype.cork=function(){var Le=this._writableState;Le.corked++},L.prototype.uncork=function(){var Le=this._writableState;Le.corked&&(Le.corked--,!Le.writing&&!Le.corked&&!Le.finished&&!Le.bufferProcessing&&Le.bufferedRequest&&z(this,Le))},L.prototype.setDefaultEncoding=function(He){if(typeof He=="string"&&(He=He.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((He+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+He);return this._writableState.defaultEncoding=He,this};function M(Le,He,ge){return!Le.objectMode&&Le.decodeStrings!==!1&&typeof He=="string"&&(He=A.from(He,ge)),He}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function B(Le,He,ge,Fe,Q,fe){if(!ge){var Je=M(He,Fe,Q);Fe!==Je&&(ge=!0,Q="buffer",Fe=Je)}var ne=He.objectMode?1:Fe.length;He.length+=ne;var X=He.length<He.highWaterMark;if(X||(He.needDrain=!0),He.writing||He.corked){var G=He.lastBufferedRequest;He.lastBufferedRequest={chunk:Fe,encoding:Q,isBuf:ge,callback:fe,next:null},G?G.next=He.lastBufferedRequest:He.bufferedRequest=He.lastBufferedRequest,He.bufferedRequestCount+=1}else R(Le,He,!1,ne,Fe,Q,fe);return X}function R(Le,He,ge,Fe,Q,fe,Je){He.writelen=Fe,He.writecb=Je,He.writing=!0,He.sync=!0,ge?Le._writev(Q,He.onwrite):Le._write(Q,fe,He.onwrite),He.sync=!1}function H(Le,He,ge,Fe,Q){--He.pendingcb,ge?(s.nextTick(Q,Fe),s.nextTick(ie,Le,He),Le._writableState.errorEmitted=!0,Le.emit("error",Fe)):(Q(Fe),Le._writableState.errorEmitted=!0,Le.emit("error",Fe),ie(Le,He))}function F(Le){Le.writing=!1,Le.writecb=null,Le.length-=Le.writelen,Le.writelen=0}function K(Le,He){var ge=Le._writableState,Fe=ge.sync,Q=ge.writecb;if(F(ge),He)H(Le,ge,Fe,He,Q);else{var fe=Y(ge);!fe&&!ge.corked&&!ge.bufferProcessing&&ge.bufferedRequest&&z(Le,ge),Fe?l(U,Le,ge,fe,Q):U(Le,ge,fe,Q)}}function U(Le,He,ge,Fe){ge||V(Le,He),He.pendingcb--,Fe(),ie(Le,He)}function V(Le,He){He.length===0&&He.needDrain&&(He.needDrain=!1,Le.emit("drain"))}function z(Le,He){He.bufferProcessing=!0;var ge=He.bufferedRequest;if(Le._writev&&ge&&ge.next){var Fe=He.bufferedRequestCount,Q=new Array(Fe),fe=He.corkedRequestsFree;fe.entry=ge;for(var Je=0,ne=!0;ge;)Q[Je]=ge,ge.isBuf||(ne=!1),ge=ge.next,Je+=1;Q.allBuffers=ne,R(Le,He,!0,He.length,Q,"",fe.finish),He.pendingcb++,He.lastBufferedRequest=null,fe.next?(He.corkedRequestsFree=fe.next,fe.next=null):He.corkedRequestsFree=new a(He),He.bufferedRequestCount=0}else{for(;ge;){var X=ge.chunk,G=ge.encoding,te=ge.callback,we=He.objectMode?1:X.length;if(R(Le,He,!1,we,X,G,te),ge=ge.next,He.bufferedRequestCount--,He.writing)break}ge===null&&(He.lastBufferedRequest=null)}He.bufferedRequest=ge,He.bufferProcessing=!1}L.prototype._write=function(Le,He,ge){ge(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(Le,He,ge){var Fe=this._writableState;typeof Le=="function"?(ge=Le,Le=null,He=null):typeof He=="function"&&(ge=He,He=null),Le!=null&&this.write(Le,He),Fe.corked&&(Fe.corked=1,this.uncork()),!Fe.ending&&!Fe.finished&&ve(this,Fe,ge)};function Y(Le){return Le.ending&&Le.length===0&&Le.bufferedRequest===null&&!Le.finished&&!Le.writing}function q(Le,He){Le._final(function(ge){He.pendingcb--,ge&&Le.emit("error",ge),He.prefinished=!0,Le.emit("prefinish"),ie(Le,He)})}function ce(Le,He){!He.prefinished&&!He.finalCalled&&(typeof Le._final=="function"?(He.pendingcb++,He.finalCalled=!0,s.nextTick(q,Le,He)):(He.prefinished=!0,Le.emit("prefinish")))}function ie(Le,He){var ge=Y(He);return ge&&(ce(Le,He),He.pendingcb===0&&(He.finished=!0,Le.emit("finish"))),ge}function ve(Le,He,ge){He.ending=!0,ie(Le,He),ge&&(He.finished?s.nextTick(ge):Le.once("finish",ge)),He.ended=!0,Le.writable=!1}function Ee(Le,He,ge){var Fe=Le.entry;for(Le.entry=null;Fe;){var Q=Fe.callback;He.pendingcb--,Q(ge),Fe=Fe.next}He.corkedRequestsFree?He.corkedRequestsFree.next=Le:He.corkedRequestsFree=Le}Object.defineProperty(L.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(He){if(!this._writableState)return;this._writableState.destroyed=He}}),L.prototype.destroy=S.destroy,L.prototype._undestroy=S.undestroy,L.prototype._destroy=function(Le,He){this.end(),He(Le)}}).call(this,j("_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(j,P,d){"use strict";function O(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}var E=j("safe-buffer").Buffer,C=j("util");function v(w,m,h){w.copy(m,h)}P.exports=function(){function w(){O(this,w),this.head=null,this.tail=null,this.length=0}return w.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},w.prototype.unshift=function(h){var c={data:h,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},w.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},w.prototype.clear=function(){this.head=this.tail=null,this.length=0},w.prototype.join=function(h){if(this.length===0)return"";for(var c=this.head,i=""+c.data;c=c.next;)i+=h+c.data;return i},w.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),i=this.head,r=0;i;)v(i.data,c,r),r+=i.data.length,i=i.next;return c},w}(),C&&C.inspect&&C.inspect.custom&&(P.exports.prototype[C.inspect.custom]=function(){var w=C.inspect({length:this.length});return this.constructor.name+" "+w})},{"safe-buffer":228,util:71}],220:[function(j,P,d){"use strict";var O=j("process-nextick-args");function E(w,m){var h=this,c=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return c||i?(m?m(w):w&&(!this._writableState||!this._writableState.errorEmitted)&&O.nextTick(v,this,w),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(w||null,function(r){!m&&r?(O.nextTick(v,h,r),h._writableState&&(h._writableState.errorEmitted=!0)):m&&m(r)}),this)}function C(){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 v(w,m){w.emit("error",m)}P.exports={destroy:E,undestroy:C}},{"process-nextick-args":207}],221:[function(j,P,d){"use strict";P.exports=j("events").EventEmitter},{events:192}],222:[function(j,P,d){P.exports=j("./readable").PassThrough},{"./readable":223}],223:[function(j,P,d){d=P.exports=j("./lib/_stream_readable.js"),d.Stream=d,d.Readable=d,d.Writable=j("./lib/_stream_writable.js"),d.Duplex=j("./lib/_stream_duplex.js"),d.Transform=j("./lib/_stream_transform.js"),d.PassThrough=j("./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(j,P,d){P.exports=j("./readable").Transform},{"./readable":223}],225:[function(j,P,d){P.exports=j("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(j,P,d){var O=function(){return this}()||Function("return this")(),E=O.regeneratorRuntime&&Object.getOwnPropertyNames(O).indexOf("regeneratorRuntime")>=0,C=E&&O.regeneratorRuntime;if(O.regeneratorRuntime=void 0,P.exports=j("./runtime"),E)O.regeneratorRuntime=C;else try{delete O.regeneratorRuntime}catch(v){O.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(j,P,d){!function(O){"use strict";var E=Object.prototype,C=E.hasOwnProperty,v,w=typeof Symbol=="function"?Symbol:{},m=w.iterator||"@@iterator",h=w.asyncIterator||"@@asyncIterator",c=w.toStringTag||"@@toStringTag",i=typeof P=="object",r=O.regeneratorRuntime;if(r){i&&(P.exports=r);return}r=O.regeneratorRuntime=i?P.exports:{};function o(B,R,H,F){var K=R&&R.prototype instanceof u?R:u,U=Object.create(K.prototype),V=new D(F||[]);return U._invoke=b(B,H,V),U}r.wrap=o;function n(B,R,H){try{return{type:"normal",arg:B.call(R,H)}}catch(F){return{type:"throw",arg:F}}}var e="suspendedStart",s="suspendedYield",t="executing",a="completed",l={};function u(){}function f(){}function p(){}var g={};g[m]=function(){return this};var A=Object.getPrototypeOf,y=A&&A(A(N([])));y&&y!==E&&C.call(y,m)&&(g=y);var x=p.prototype=u.prototype=Object.create(g);f.prototype=x.constructor=p,p.constructor=f,p[c]=f.displayName="GeneratorFunction";function T(B){["next","throw","return"].forEach(function(R){B[R]=function(H){return this._invoke(R,H)}})}r.isGeneratorFunction=function(B){var R=typeof B=="function"&&B.constructor;return R?R===f||(R.displayName||R.name)==="GeneratorFunction":!1},r.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,p):(B.__proto__=p,c in B||(B[c]="GeneratorFunction")),B.prototype=Object.create(x),B},r.awrap=function(B){return{__await:B}};function S(B){function R(K,U,V,z){var Y=n(B[K],B,U);if(Y.type==="throw")z(Y.arg);else{var q=Y.arg,ce=q.value;return ce&&typeof ce=="object"&&C.call(ce,"__await")?Promise.resolve(ce.__await).then(function(ie){R("next",ie,V,z)},function(ie){R("throw",ie,V,z)}):Promise.resolve(ce).then(function(ie){q.value=ie,V(q)},z)}}var H;function F(K,U){function V(){return new Promise(function(z,Y){R(K,U,z,Y)})}return H=H?H.then(V,V):V()}this._invoke=F}T(S.prototype),S.prototype[h]=function(){return this},r.AsyncIterator=S,r.async=function(B,R,H,F){var K=new S(o(B,R,H,F));return r.isGeneratorFunction(R)?K:K.next().then(function(U){return U.done?U.value:K.next()})};function b(B,R,H){var F=e;return function(U,V){if(F===t)throw new Error("Generator is already running");if(F===a){if(U==="throw")throw V;return M()}for(H.method=U,H.arg=V;;){var z=H.delegate;if(z){var Y=_(z,H);if(Y){if(Y===l)continue;return Y}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(F===e)throw F=a,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);F=t;var q=n(B,R,H);if(q.type==="normal"){if(F=H.done?a:s,q.arg===l)continue;return{value:q.arg,done:H.done}}else q.type==="throw"&&(F=a,H.method="throw",H.arg=q.arg)}}}function _(B,R){var H=B.iterator[R.method];if(H===v){if(R.delegate=null,R.method==="throw"){if(B.iterator.return&&(R.method="return",R.arg=v,_(B,R),R.method==="throw"))return l;R.method="throw",R.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var F=n(H,B.iterator,R.arg);if(F.type==="throw")return R.method="throw",R.arg=F.arg,R.delegate=null,l;var K=F.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[B.resultName]=K.value,R.next=B.nextLoc,R.method!=="return"&&(R.method="next",R.arg=v);else return K;return R.delegate=null,l}T(x),x[c]="Generator",x[m]=function(){return this},x.toString=function(){return"[object Generator]"};function I(B){var R={tryLoc:B[0]};1 in B&&(R.catchLoc=B[1]),2 in B&&(R.finallyLoc=B[2],R.afterLoc=B[3]),this.tryEntries.push(R)}function L(B){var R=B.completion||{};R.type="normal",delete R.arg,B.completion=R}function D(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(I,this),this.reset(!0)}r.keys=function(B){var R=[];for(var H in B)R.push(H);return R.reverse(),function F(){for(;R.length;){var K=R.pop();if(K in B)return F.value=K,F.done=!1,F}return F.done=!0,F}};function N(B){if(B){var R=B[m];if(R)return R.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var H=-1,F=function K(){for(;++H<B.length;)if(C.call(B,H))return K.value=B[H],K.done=!1,K;return K.value=v,K.done=!0,K};return F.next=F}}return{next:M}}r.values=N;function M(){return{value:v,done:!0}}D.prototype={constructor:D,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(L),!R)for(var H in this)H.charAt(0)==="t"&&C.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=v)},stop:function(){this.done=!0;var R=this.tryEntries[0],H=R.completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var H=this;function F(q,ce){return V.type="throw",V.arg=R,H.next=q,ce&&(H.method="next",H.arg=v),!!ce}for(var K=this.tryEntries.length-1;K>=0;--K){var U=this.tryEntries[K],V=U.completion;if(U.tryLoc==="root")return F("end");if(U.tryLoc<=this.prev){var z=C.call(U,"catchLoc"),Y=C.call(U,"finallyLoc");if(z&&Y){if(this.prev<U.catchLoc)return F(U.catchLoc,!0);if(this.prev<U.finallyLoc)return F(U.finallyLoc)}else if(z){if(this.prev<U.catchLoc)return F(U.catchLoc,!0)}else if(Y){if(this.prev<U.finallyLoc)return F(U.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(R,H){for(var F=this.tryEntries.length-1;F>=0;--F){var K=this.tryEntries[F];if(K.tryLoc<=this.prev&&C.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var U=K;break}}U&&(R==="break"||R==="continue")&&U.tryLoc<=H&&H<=U.finallyLoc&&(U=null);var V=U?U.completion:{};return V.type=R,V.arg=H,U?(this.method="next",this.next=U.finallyLoc,l):this.complete(V)},complete:function(R,H){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"&&H&&(this.next=H),l},finish:function(R){for(var H=this.tryEntries.length-1;H>=0;--H){var F=this.tryEntries[H];if(F.finallyLoc===R)return this.complete(F.completion,F.afterLoc),L(F),l}},catch:function(R){for(var H=this.tryEntries.length-1;H>=0;--H){var F=this.tryEntries[H];if(F.tryLoc===R){var K=F.completion;if(K.type==="throw"){var U=K.arg;L(F)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(R,H,F){return this.delegate={iterator:N(R),resultName:H,nextLoc:F},this.method==="next"&&(this.arg=v),l}}}(function(){return this}()||Function("return this")())},{}],228:[function(j,P,d){var O=j("buffer"),E=O.Buffer;function C(w,m){for(var h in w)m[h]=w[h]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?P.exports=O:(C(O,d),d.Buffer=v);function v(w,m,h){return E(w,m,h)}C(E,v),v.from=function(w,m,h){if(typeof w=="number")throw new TypeError("Argument must not be a number");return E(w,m,h)},v.alloc=function(w,m,h){if(typeof w!="number")throw new TypeError("Argument must be a number");var c=E(w);return m!==void 0?typeof h=="string"?c.fill(m,h):c.fill(m):c.fill(0),c},v.allocUnsafe=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return E(w)},v.allocUnsafeSlow=function(w){if(typeof w!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(w)}},{buffer:73}],229:[function(j,P,d){(function(O){"use strict";var E=j("babel-runtime/core-js/string/from-code-point"),C=s(E),v=j("babel-runtime/core-js/json/stringify"),w=s(v),m=j("babel-runtime/helpers/typeof"),h=s(m),c=j("babel-runtime/core-js/object/define-property"),i=s(c),r=j("babel-runtime/core-js/object/keys"),o=s(r),n=j("babel-runtime/core-js/object/create"),e=s(n);function s(t){return t&&t.__esModule?t:{default:t}}(function(t){t.parser=function(G,te){return new l(G,te)},t.SAXParser=l,t.SAXStream=x,t.createStream=y,t.MAX_BUFFER_LENGTH=64*1024;var a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function l(G,te){if(!(this instanceof l))return new l(G,te);var we=this;f(we),we.q=we.c="",we.bufferCheckPosition=t.MAX_BUFFER_LENGTH,we.opt=te||{},we.opt.lowercase=we.opt.lowercase||we.opt.lowercasetags,we.looseCase=we.opt.lowercase?"toLowerCase":"toUpperCase",we.tags=[],we.closed=we.closedRoot=we.sawRoot=!1,we.tag=we.error=null,we.strict=!!G,we.noscript=!!(G||we.opt.noscript),we.state=U.BEGIN,we.strictEntities=we.opt.strictEntities,we.ENTITIES=we.strictEntities?(0,e.default)(t.XML_ENTITIES):(0,e.default)(t.ENTITIES),we.attribList=[],we.opt.xmlns&&(we.ns=(0,e.default)(I)),we.trackPosition=we.opt.position!==!1,we.trackPosition&&(we.position=we.line=we.column=0),z(we,"onready")}e.default||(Object.create=function(G){function te(){}te.prototype=G;var we=new te;return we}),o.default||(Object.keys=function(G){var te=[];for(var we in G)G.hasOwnProperty(we)&&te.push(we);return te});function u(G){for(var te=Math.max(t.MAX_BUFFER_LENGTH,10),we=0,he=0,Pe=a.length;he<Pe;he++){var Oe=G[a[he]].length;if(Oe>te)switch(a[he]){case"textNode":q(G);break;case"cdata":Y(G,"oncdata",G.cdata),G.cdata="";break;case"script":Y(G,"onscript",G.script),G.script="";break;default:ie(G,"Max buffer length exceeded: "+a[he])}we=Math.max(we,Oe)}var le=t.MAX_BUFFER_LENGTH-we;G.bufferCheckPosition=le+G.position}function f(G){for(var te=0,we=a.length;te<we;te++)G[a[te]]=""}function p(G){q(G),G.cdata!==""&&(Y(G,"oncdata",G.cdata),G.cdata=""),G.script!==""&&(Y(G,"onscript",G.script),G.script="")}l.prototype={end:function(){ve(this)},write:X,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var g;try{g=j("stream").Stream}catch(G){g=function(){}}var A=t.EVENTS.filter(function(G){return G!=="error"&&G!=="end"});function y(G,te){return new x(G,te)}function x(G,te){if(!(this instanceof x))return new x(G,te);g.apply(this),this._parser=new l(G,te),this.writable=!0,this.readable=!0;var we=this;this._parser.onend=function(){we.emit("end")},this._parser.onerror=function(he){we.emit("error",he),we._parser.error=null},this._decoder=null,A.forEach(function(he){(0,i.default)(we,"on"+he,{get:function(){return we._parser["on"+he]},set:function(Oe){if(!Oe)return we.removeAllListeners(he),we._parser["on"+he]=Oe,Oe;we.on(he,Oe)},enumerable:!0,configurable:!1})})}x.prototype=(0,e.default)(g.prototype,{constructor:{value:x}}),x.prototype.write=function(G){if(typeof O=="function"&&typeof O.isBuffer=="function"&&O.isBuffer(G)){if(!this._decoder){var te=j("string_decoder").StringDecoder;this._decoder=new te("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,te){var we=this;return!we._parser["on"+G]&&A.indexOf(G)!==-1&&(we._parser["on"+G]=function(){var he=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);he.splice(0,0,G),we.emit.apply(we,he)}),g.prototype.on.call(we,G,te)};var T="[CDATA[",S="DOCTYPE",b="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",I={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 B(G){return G===" "||G===`
`||G==="\r"||G===" "}function R(G){return G==='"'||G==="'"}function H(G){return G===">"||B(G)}function F(G,te){return G.test(te)}function K(G,te){return!F(G,te)}var U=0;t.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++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.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,o.default)(t.ENTITIES).forEach(function(G){var te=t.ENTITIES[G],we=typeof te=="number"?String.fromCharCode(te):te;t.ENTITIES[G]=we});for(var V in t.STATE)t.STATE[t.STATE[V]]=V;U=t.STATE;function z(G,te,we){G[te]&&G[te](we)}function Y(G,te,we){G.textNode&&q(G),z(G,te,we)}function q(G){G.textNode=ce(G.opt,G.textNode),G.textNode&&z(G,"ontext",G.textNode),G.textNode=""}function ce(G,te){return G.trim&&(te=te.trim()),G.normalize&&(te=te.replace(/\s+/g," ")),te}function ie(G,te){return q(G),G.trackPosition&&(te+=`
Line: `+G.line+`
Column: `+G.column+`
Char: `+G.c),te=new Error(te),G.error=te,z(G,"onerror",te),G}function ve(G){return G.sawRoot&&!G.closedRoot&&Ee(G,"Unclosed root tag"),G.state!==U.BEGIN&&G.state!==U.BEGIN_WHITESPACE&&G.state!==U.TEXT&&ie(G,"Unexpected end"),q(G),G.c="",G.closed=!0,z(G,"onend"),l.call(G,G.strict,G.opt),G}function Ee(G,te){if((typeof G=="undefined"?"undefined":(0,h.default)(G))!=="object"||!(G instanceof l))throw new Error("bad call to strictFail");G.strict&&ie(G,te)}function Le(G){G.strict||(G.tagName=G.tagName[G.looseCase]());var te=G.tags[G.tags.length-1]||G,we=G.tag={name:G.tagName,attributes:{}};G.opt.xmlns&&(we.ns=te.ns),G.attribList.length=0,Y(G,"onopentagstart",we)}function He(G,te){var we=G.indexOf(":"),he=we<0?["",G]:G.split(":"),Pe=he[0],Oe=he[1];return te&&G==="xmlns"&&(Pe="xmlns",Oe=""),{prefix:Pe,local:Oe}}function ge(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 te=He(G.attribName,!0),we=te.prefix,he=te.local;if(we==="xmlns")if(he==="xml"&&G.attribValue!==b)Ee(G,"xml: prefix must be bound to "+b+`
Actual: `+G.attribValue);else if(he==="xmlns"&&G.attribValue!==_)Ee(G,"xmlns: prefix must be bound to "+_+`
Actual: `+G.attribValue);else{var Pe=G.tag,Oe=G.tags[G.tags.length-1]||G;Pe.ns===Oe.ns&&(Pe.ns=(0,e.default)(Oe.ns)),Pe.ns[he]=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 Fe(G,te){if(G.opt.xmlns){var we=G.tag,he=He(G.tagName);we.prefix=he.prefix,we.local=he.local,we.uri=we.ns[he.prefix]||"",we.prefix&&!we.uri&&(Ee(G,"Unbound namespace prefix: "+(0,w.default)(G.tagName)),we.uri=he.prefix);var Pe=G.tags[G.tags.length-1]||G;we.ns&&Pe.ns!==we.ns&&(0,o.default)(we.ns).forEach(function(vt){Y(G,"onopennamespace",{prefix:vt,uri:we.ns[vt]})});for(var Oe=0,le=G.attribList.length;Oe<le;Oe++){var me=G.attribList[Oe],_e=me[0],$e=me[1],gt=He(_e,!0),et=gt.prefix,Ie=gt.local,rt=et===""?"":we.ns[et]||"",Ge={name:_e,value:$e,prefix:et,local:Ie,uri:rt};et&&et!=="xmlns"&&!rt&&(Ee(G,"Unbound namespace prefix: "+(0,w.default)(et)),Ge.uri=et),G.tag.attributes[_e]=Ge,Y(G,"onattribute",Ge)}G.attribList.length=0}G.tag.isSelfClosing=!!te,G.sawRoot=!0,G.tags.push(G.tag),Y(G,"onopentag",G.tag),te||(!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){Ee(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 te=G.tags.length,we=G.tagName;G.strict||(we=we[G.looseCase]());for(var he=we;te--;){var Pe=G.tags[te];if(Pe.name!==he)Ee(G,"Unexpected close tag");else break}if(te<0){Ee(G,"Unmatched closing tag: "+G.tagName),G.textNode+="</"+G.tagName+">",G.state=U.TEXT;return}G.tagName=we;for(var Oe=G.tags.length;Oe-- >te;){var le=G.tag=G.tags.pop();G.tagName=G.tag.name,Y(G,"onclosetag",G.tagName);var me={};for(var _e in le.ns)me[_e]=le.ns[_e];var $e=G.tags[G.tags.length-1]||G;G.opt.xmlns&&le.ns!==$e.ns&&(0,o.default)(le.ns).forEach(function(gt){var et=le.ns[gt];Y(G,"onclosenamespace",{prefix:gt,uri:et})})}te===0&&(G.closedRoot=!0),G.tagName=G.attribValue=G.attribName="",G.attribList.length=0,G.state=U.TEXT}function fe(G){var te=G.entity,we=te.toLowerCase(),he,Pe="";return G.ENTITIES[te]?G.ENTITIES[te]:G.ENTITIES[we]?G.ENTITIES[we]:(te=we,te.charAt(0)==="#"&&(te.charAt(1)==="x"?(te=te.slice(2),he=parseInt(te,16),Pe=he.toString(16)):(te=te.slice(1),he=parseInt(te,10),Pe=he.toString(10))),te=te.replace(/^0+/,""),isNaN(he)||Pe.toLowerCase()!==te?(Ee(G,"Invalid character entity"),"&"+G.entity+";"):(0,C.default)(he))}function Je(G,te){te==="<"?(G.state=U.OPEN_WAKA,G.startTagPosition=G.position):B(te)||(Ee(G,"Non-whitespace before first tag."),G.textNode=te,G.state=U.TEXT)}function ne(G,te){var we="";return te<G.length&&(we=G.charAt(te)),we}function X(G){var te=this;if(this.error)throw this.error;if(te.closed)return ie(te,"Cannot write after close. Assign an onready handler.");if(G===null)return ve(te);(typeof G=="undefined"?"undefined":(0,h.default)(G))==="object"&&(G=G.toString());for(var we=0,he="";!(he=ne(G,we++),te.c=he,!he);){te.trackPosition&&(te.position++,he===`
`?(te.line++,te.column=0):te.column++);switch(te.state){case U.BEGIN:if(te.state=U.BEGIN_WHITESPACE,he==="\uFEFF")continue;Je(te,he);continue;case U.BEGIN_WHITESPACE:Je(te,he);continue;case U.TEXT:if(te.sawRoot&&!te.closedRoot){for(var Pe=we-1;he&&he!=="<"&&he!=="&";)he=ne(G,we++),he&&te.trackPosition&&(te.position++,he===`
`?(te.line++,te.column=0):te.column++);te.textNode+=G.substring(Pe,we-1)}he==="<"&&!(te.sawRoot&&te.closedRoot&&!te.strict)?(te.state=U.OPEN_WAKA,te.startTagPosition=te.position):(!B(he)&&(!te.sawRoot||te.closedRoot)&&Ee(te,"Text data outside of root node."),he==="&"?te.state=U.TEXT_ENTITY:te.textNode+=he);continue;case U.SCRIPT:he==="<"?te.state=U.SCRIPT_ENDING:te.script+=he;continue;case U.SCRIPT_ENDING:he==="/"?te.state=U.CLOSE_TAG:(te.script+="<"+he,te.state=U.SCRIPT);continue;case U.OPEN_WAKA:if(he==="!")te.state=U.SGML_DECL,te.sgmlDecl="";else if(!B(he))if(F(L,he))te.state=U.OPEN_TAG,te.tagName=he;else if(he==="/")te.state=U.CLOSE_TAG,te.tagName="";else if(he==="?")te.state=U.PROC_INST,te.procInstName=te.procInstBody="";else{if(Ee(te,"Unencoded <"),te.startTagPosition+1<te.position){var Oe=te.position-te.startTagPosition;he=new Array(Oe).join(" ")+he}te.textNode+="<"+he,te.state=U.TEXT}continue;case U.SGML_DECL:(te.sgmlDecl+he).toUpperCase()===T?(Y(te,"onopencdata"),te.state=U.CDATA,te.sgmlDecl="",te.cdata=""):te.sgmlDecl+he==="--"?(te.state=U.COMMENT,te.comment="",te.sgmlDecl=""):(te.sgmlDecl+he).toUpperCase()===S?(te.state=U.DOCTYPE,(te.doctype||te.sawRoot)&&Ee(te,"Inappropriately located doctype declaration"),te.doctype="",te.sgmlDecl=""):he===">"?(Y(te,"onsgmldeclaration",te.sgmlDecl),te.sgmlDecl="",te.state=U.TEXT):(R(he)&&(te.state=U.SGML_DECL_QUOTED),te.sgmlDecl+=he);continue;case U.SGML_DECL_QUOTED:he===te.q&&(te.state=U.SGML_DECL,te.q=""),te.sgmlDecl+=he;continue;case U.DOCTYPE:he===">"?(te.state=U.TEXT,Y(te,"ondoctype",te.doctype),te.doctype=!0):(te.doctype+=he,he==="["?te.state=U.DOCTYPE_DTD:R(he)&&(te.state=U.DOCTYPE_QUOTED,te.q=he));continue;case U.DOCTYPE_QUOTED:te.doctype+=he,he===te.q&&(te.q="",te.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:te.doctype+=he,he==="]"?te.state=U.DOCTYPE:R(he)&&(te.state=U.DOCTYPE_DTD_QUOTED,te.q=he);continue;case U.DOCTYPE_DTD_QUOTED:te.doctype+=he,he===te.q&&(te.state=U.DOCTYPE_DTD,te.q="");continue;case U.COMMENT:he==="-"?te.state=U.COMMENT_ENDING:te.comment+=he;continue;case U.COMMENT_ENDING:he==="-"?(te.state=U.COMMENT_ENDED,te.comment=ce(te.opt,te.comment),te.comment&&Y(te,"oncomment",te.comment),te.comment=""):(te.comment+="-"+he,te.state=U.COMMENT);continue;case U.COMMENT_ENDED:he!==">"?(Ee(te,"Malformed comment"),te.comment+="--"+he,te.state=U.COMMENT):te.state=U.TEXT;continue;case U.CDATA:he==="]"?te.state=U.CDATA_ENDING:te.cdata+=he;continue;case U.CDATA_ENDING:he==="]"?te.state=U.CDATA_ENDING_2:(te.cdata+="]"+he,te.state=U.CDATA);continue;case U.CDATA_ENDING_2:he===">"?(te.cdata&&Y(te,"oncdata",te.cdata),Y(te,"onclosecdata"),te.cdata="",te.state=U.TEXT):he==="]"?te.cdata+="]":(te.cdata+="]]"+he,te.state=U.CDATA);continue;case U.PROC_INST:he==="?"?te.state=U.PROC_INST_ENDING:B(he)?te.state=U.PROC_INST_BODY:te.procInstName+=he;continue;case U.PROC_INST_BODY:if(!te.procInstBody&&B(he))continue;he==="?"?te.state=U.PROC_INST_ENDING:te.procInstBody+=he;continue;case U.PROC_INST_ENDING:he===">"?(Y(te,"onprocessinginstruction",{name:te.procInstName,body:te.procInstBody}),te.procInstName=te.procInstBody="",te.state=U.TEXT):(te.procInstBody+="?"+he,te.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:F(D,he)?te.tagName+=he:(Le(te),he===">"?Fe(te):he==="/"?te.state=U.OPEN_TAG_SLASH:(B(he)||Ee(te,"Invalid character in tag name"),te.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:he===">"?(Fe(te,!0),Q(te)):(Ee(te,"Forward-slash in opening tag not followed by >"),te.state=U.ATTRIB);continue;case U.ATTRIB:if(B(he))continue;he===">"?Fe(te):he==="/"?te.state=U.OPEN_TAG_SLASH:F(L,he)?(te.attribName=he,te.attribValue="",te.state=U.ATTRIB_NAME):Ee(te,"Invalid attribute name");continue;case U.ATTRIB_NAME:he==="="?te.state=U.ATTRIB_VALUE:he===">"?(Ee(te,"Attribute without value"),te.attribValue=te.attribName,ge(te),Fe(te)):B(he)?te.state=U.ATTRIB_NAME_SAW_WHITE:F(D,he)?te.attribName+=he:Ee(te,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if(he==="=")te.state=U.ATTRIB_VALUE;else{if(B(he))continue;Ee(te,"Attribute without value"),te.tag.attributes[te.attribName]="",te.attribValue="",Y(te,"onattribute",{name:te.attribName,value:""}),te.attribName="",he===">"?Fe(te):F(L,he)?(te.attribName=he,te.state=U.ATTRIB_NAME):(Ee(te,"Invalid attribute name"),te.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if(B(he))continue;R(he)?(te.q=he,te.state=U.ATTRIB_VALUE_QUOTED):(Ee(te,"Unquoted attribute value"),te.state=U.ATTRIB_VALUE_UNQUOTED,te.attribValue=he);continue;case U.ATTRIB_VALUE_QUOTED:if(he!==te.q){he==="&"?te.state=U.ATTRIB_VALUE_ENTITY_Q:te.attribValue+=he;continue}ge(te),te.q="",te.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:B(he)?te.state=U.ATTRIB:he===">"?Fe(te):he==="/"?te.state=U.OPEN_TAG_SLASH:F(L,he)?(Ee(te,"No whitespace between attributes"),te.attribName=he,te.attribValue="",te.state=U.ATTRIB_NAME):Ee(te,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(!H(he)){he==="&"?te.state=U.ATTRIB_VALUE_ENTITY_U:te.attribValue+=he;continue}ge(te),he===">"?Fe(te):te.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(te.tagName)he===">"?Q(te):F(D,he)?te.tagName+=he:te.script?(te.script+="</"+te.tagName,te.tagName="",te.state=U.SCRIPT):(B(he)||Ee(te,"Invalid tagname in closing tag"),te.state=U.CLOSE_TAG_SAW_WHITE);else{if(B(he))continue;K(L,he)?te.script?(te.script+="</"+he,te.state=U.SCRIPT):Ee(te,"Invalid tagname in closing tag."):te.tagName=he}continue;case U.CLOSE_TAG_SAW_WHITE:if(B(he))continue;he===">"?Q(te):Ee(te,"Invalid characters in closing tag");continue;case U.TEXT_ENTITY:case U.ATTRIB_VALUE_ENTITY_Q:case U.ATTRIB_VALUE_ENTITY_U:var le,me;switch(te.state){case U.TEXT_ENTITY:le=U.TEXT,me="textNode";break;case U.ATTRIB_VALUE_ENTITY_Q:le=U.ATTRIB_VALUE_QUOTED,me="attribValue";break;case U.ATTRIB_VALUE_ENTITY_U:le=U.ATTRIB_VALUE_UNQUOTED,me="attribValue";break}he===";"?(te[me]+=fe(te),te.entity="",te.state=le):F(te.entity.length?M:N,he)?te.entity+=he:(Ee(te,"Invalid character in entity name"),te[me]+="&"+te.entity+he,te.entity="",te.state=le);continue;default:throw new Error(te,"Unknown state: "+te.state)}}return te.position>=te.bufferCheckPosition&&u(te),te}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */C.default||function(){var G=String.fromCharCode,te=Math.floor,we=function(){var Pe=16384,Oe=[],le,me,_e=-1,$e=arguments.length;if(!$e)return"";for(var gt="";++_e<$e;){var et=Number(arguments[_e]);if(!isFinite(et)||et<0||et>1114111||te(et)!==et)throw RangeError("Invalid code point: "+et);et<=65535?Oe.push(et):(et-=65536,le=(et>>10)+55296,me=et%1024+56320,Oe.push(le,me)),(_e+1===$e||Oe.length>Pe)&&(gt+=G.apply(null,Oe),Oe.length=0)}return gt};i.default?Object.defineProperty(String,"fromCodePoint",{value:we,configurable:!0,writable:!0}):String.fromCodePoint=we}()})(typeof d=="undefined"?(void 0).sax={}:d)}).call(this,j("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(j,P,d){P.exports=C;var O=j("events").EventEmitter,E=j("inherits");E(C,O),C.Readable=j("readable-stream/readable.js"),C.Writable=j("readable-stream/writable.js"),C.Duplex=j("readable-stream/duplex.js"),C.Transform=j("readable-stream/transform.js"),C.PassThrough=j("readable-stream/passthrough.js"),C.Stream=C;function C(){O.call(this)}C.prototype.pipe=function(v,w){var m=this;function h(s){v.writable&&(v.write(s)===!1&&m.pause&&m.pause())}m.on("data",h);function c(){m.readable&&m.resume&&m.resume()}v.on("drain",c),!v._isStdio&&(!w||w.end!==!1)&&(m.on("end",r),m.on("close",o));var i=!1;function r(){if(i)return;i=!0,v.end()}function o(){if(i)return;i=!0,typeof v.destroy=="function"&&v.destroy()}function n(s){if(e(),O.listenerCount(this,"error")===0)throw s}m.on("error",n),v.on("error",n);function e(){m.removeListener("data",h),v.removeListener("drain",c),m.removeListener("end",r),m.removeListener("close",o),m.removeListener("error",n),v.removeListener("error",n),m.removeListener("end",e),m.removeListener("close",e),v.removeListener("close",e)}return m.on("end",e),m.on("close",e),v.on("close",e),v.emit("pipe",m),v}},{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(j,P,d){(function(O){var E=j("./lib/request"),C=j("./lib/response"),v=j("xtend"),w=j("builtin-status-codes"),m=j("url"),h=d;h.request=function(c,i){typeof c=="string"?c=m.parse(c):c=v(c);var r=O.location.protocol.search(/^https?:$/)===-1?"http:":"",o=c.protocol||r,n=c.hostname||c.host,e=c.port,s=c.path||"/";n&&n.indexOf(":")!==-1&&(n="["+n+"]"),c.url=(n?o+"//"+n:"")+(e?":"+e:"")+s,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var t=new E(c);return i&&t.on("response",i),t},h.get=function(i,r){var o=h.request(i,r);return o.end(),o},h.ClientRequest=E,h.IncomingMessage=C.IncomingMessage,h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.globalAgent=new h.Agent,h.STATUS_CODES=w,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(j,P,d){(function(O){"use strict";d.fetch=h(O.fetch)&&h(O.ReadableStream),d.writableStream=h(O.WritableStream),d.abortController=h(O.AbortController),d.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),d.blobConstructor=!0}catch(c){}var E;function C(){if(E!==void 0)return E;if(O.XMLHttpRequest){E=new O.XMLHttpRequest;try{E.open("GET",O.XDomainRequest?"/":"https://example.com")}catch(c){E=null}}else E=null;return E}function v(c){var i=C();if(!i)return!1;try{return i.responseType=c,i.responseType===c}catch(r){}return!1}var w=typeof O.ArrayBuffer!="undefined",m=w&&h(O.ArrayBuffer.prototype.slice);d.arraybuffer=d.fetch||w&&v("arraybuffer"),d.msstream=!d.fetch&&m&&v("ms-stream"),d.mozchunkedarraybuffer=!d.fetch&&w&&v("moz-chunked-arraybuffer"),d.overrideMimeType=d.fetch||(C()?h(C().overrideMimeType):!1),d.vbArray=h(O.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(j,P,d){(function(O,E,C){"use strict";var v=j("babel-runtime/core-js/object/keys"),w=m(v);function m(u){return u&&u.__esModule?u:{default:u}}var h=j("./capability"),c=j("inherits"),i=j("./response"),r=j("readable-stream"),o=j("to-arraybuffer"),n=i.IncomingMessage,e=i.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 t=P.exports=function(u){var f=this;r.Writable.call(f),f._opts=u,f._body=[],f._headers={},u.auth&&f.setHeader("Authorization","Basic "+new C(u.auth).toString("base64")),(0,w.default)(u.headers).forEach(function(A){f.setHeader(A,u.headers[A])});var p,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!h.abortController)g=!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,g),f._fetchTimer=null,f.on("finish",function(){f._onFinish()})};c(t,r.Writable),t.prototype.setHeader=function(u,f){var p=this,g=u.toLowerCase();if(l.indexOf(g)!==-1)return;p._headers[g]={name:u,value:f}},t.prototype.getHeader=function(u){var f=this._headers[u.toLowerCase()];return f?f.value:null},t.prototype.removeHeader=function(u){var f=this;delete f._headers[u.toLowerCase()]},t.prototype._onFinish=function(){var u=this;if(u._destroyed)return;var f=u._opts,p=u._headers,g=null;f.method!=="GET"&&f.method!=="HEAD"&&(h.arraybuffer?g=o(C.concat(u._body)):h.blobConstructor?g=new E.Blob(u._body.map(function(b){return o(b)}),{type:(p["content-type"]||{}).value||""}):g=C.concat(u._body).toString());var A=[];if((0,w.default)(p).forEach(function(b){var _=p[b].name,I=p[b].value;Array.isArray(I)?I.forEach(function(L){A.push([_,L])}):A.push([_,I])}),u._mode==="fetch"){var y=null,x=null;if(h.abortController){var T=new AbortController;y=T.signal,u._fetchAbortController=T,"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:g||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 S=u._xhr=new E.XMLHttpRequest;try{S.open(u._opts.method,u._opts.url,!0)}catch(b){O.nextTick(function(){u.emit("error",b)});return}"responseType"in S&&(S.responseType=u._mode.split(":")[0]),"withCredentials"in S&&(S.withCredentials=!!f.withCredentials),u._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(S.timeout=f.requestTimeout,S.ontimeout=function(){u.emit("requestTimeout")}),A.forEach(function(b){S.setRequestHeader(b[0],b[1])}),u._response=null,S.onreadystatechange=function(){switch(S.readyState){case e.LOADING:case e.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){u._onXHRProgress()}),S.onerror=function(){if(u._destroyed)return;u.emit("error",new Error("XHR error"))};try{S.send(g)}catch(b){O.nextTick(function(){u.emit("error",b)});return}}};function a(u){try{var f=u.status;return f!==null&&f!==0}catch(p){return!1}}t.prototype._onXHRProgress=function(){var u=this;if(!a(u._xhr)||u._destroyed)return;u._response||u._connect(),u._response._onXHRProgress()},t.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)},t.prototype._write=function(u,f,p){var g=this;g._body.push(u),p()},t.prototype.abort=t.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()},t.prototype.end=function(u,f,p){var g=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(g,u,f,p)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.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,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("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(j,P,d){(function(O,E,C){"use strict";var v=j("babel-runtime/core-js/promise"),w=m(v);function m(n){return n&&n.__esModule?n:{default:n}}var h=j("./capability"),c=j("inherits"),i=j("readable-stream"),r=d.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=d.IncomingMessage=function(n,e,s,t){var a=this;if(i.Readable.call(a),a._mode=s,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){O.nextTick(function(){a.emit("close")})}),s==="fetch"){var l=function y(){f.read().then(function(x){if(a._destroyed)return;if(x.done){E.clearTimeout(t),a.push(null);return}a.push(new C(x.value)),y()}).catch(function(x){E.clearTimeout(t),a._destroyed||a.emit("error",x)})};if(a._fetchResponse=e,a.url=e.url,a.statusCode=e.status,a.statusMessage=e.statusText,e.headers.forEach(function(y,x){a.headers[x.toLowerCase()]=y,a.rawHeaders.push(x,y)}),h.writableStream){var u=new WritableStream({write:function(x){return new w.default(function(T,S){a._destroyed?S():a.push(new C(x))?T():a._resumeFetch=T})},close:function(){E.clearTimeout(t),a._destroyed||a.push(null)},abort:function(x){a._destroyed||a.emit("error",x)}});try{e.body.pipeTo(u).catch(function(y){E.clearTimeout(t),a._destroyed||a.emit("error",y)});return}catch(y){}}var f=e.body.getReader();l()}else{a._xhr=n,a._pos=0,a.url=n.responseURL,a.statusCode=n.status,a.statusMessage=n.statusText;var p=n.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(y){var x=y.match(/^([^:]+):\s*(.*)/);if(x){var T=x[1].toLowerCase();T==="set-cookie"?(a.headers[T]===void 0&&(a.headers[T]=[]),a.headers[T].push(x[2])):a.headers[T]!==void 0?a.headers[T]+=", "+x[2]:a.headers[T]=x[2],a.rawHeaders.push(x[1],x[2])}}),a._charset="x-user-defined",!h.overrideMimeType){var g=a.rawHeaders["mime-type"];if(g){var A=g.match(/;\s*charset=([^;])(;|$)/);A&&(a._charset=A[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};c(o,i.Readable),o.prototype._read=function(){var n=this,e=n._resumeFetch;e&&(n._resumeFetch=null,e())},o.prototype._onXHRProgress=function(){var n=this,e=n._xhr,s=null;switch(n._mode){case"text:vbarray":if(e.readyState!==r.DONE)break;try{s=new E.VBArray(e.responseBody).toArray()}catch(f){}if(s!==null){n.push(new C(s));break}case"text":try{s=e.responseText}catch(f){n._mode="text:vbarray";break}if(s.length>n._pos){var t=s.substr(n._pos);if(n._charset==="x-user-defined"){for(var a=new C(t.length),l=0;l<t.length;l++)a[l]=t.charCodeAt(l)&255;n.push(a)}else n.push(t,n._charset);n._pos=s.length}break;case"arraybuffer":if(e.readyState!==r.DONE||!e.response)break;s=e.response,n.push(new C(new Uint8Array(s)));break;case"moz-chunked-arraybuffer":if(s=e.response,e.readyState!==r.LOADING||!s)break;n.push(new C(new Uint8Array(s)));break;case"ms-stream":if(s=e.response,e.readyState!==r.LOADING)break;var u=new E.MSStreamReader;u.onprogress=function(){u.result.byteLength>n._pos&&(n.push(new C(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,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},j("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(j,P,d){"use strict";var O=j("safe-buffer").Buffer,E=O.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 C(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 v(u){var f=C(u);if(typeof f!="string"&&(O.isEncoding===E||!E(u)))throw new Error("Unknown encoding: "+u);return f||u}d.StringDecoder=w;function w(u){this.encoding=v(u);var f;switch(this.encoding){case"utf16le":this.text=n,this.end=e,f=4;break;case"utf8":this.fillLast=i,f=4;break;case"base64":this.text=s,this.end=t,f=3;break;default:this.write=a,this.end=l;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(f)}w.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||""},w.prototype.end=o,w.prototype.text=r,w.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 g=f.length-1;if(g<p)return 0;var A=m(f[g]);return A>=0?(A>0&&(u.lastNeed=A-1),A):--g<p||A===-2?0:(A=m(f[g]),A>=0?(A>0&&(u.lastNeed=A-2),A):--g<p||A===-2?0:(A=m(f[g]),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 i(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 g=u.length-(p-this.lastNeed);return u.copy(this.lastChar,0,g),u.toString("utf8",f,g)}function o(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 g=p.charCodeAt(p.length-1);if(g>=55296&&g<=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 e(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 t(u){var f=u&&u.length?this.write(u):"";return this.lastNeed?f+this.lastChar.toString("base64",0,3-this.lastNeed):f}function a(u){return u.toString(this.encoding)}function l(u){return u&&u.length?this.write(u):""}},{"safe-buffer":228}],236:[function(j,P,d){(function(O,E){var C=j("process/browser.js").nextTick,v=Function.prototype.apply,w=Array.prototype.slice,m={},h=0;d.setTimeout=function(){return new c(v.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new c(v.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(i){i.close()};function c(i,r){this._id=i,this._clearFn=r}c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(i,r){clearTimeout(i._idleTimeoutId),i._idleTimeout=r},d.unenroll=function(i){clearTimeout(i._idleTimeoutId),i._idleTimeout=-1},d._unrefActive=d.active=function(i){clearTimeout(i._idleTimeoutId);var r=i._idleTimeout;r>=0&&(i._idleTimeoutId=setTimeout(function(){i._onTimeout&&i._onTimeout()},r))},d.setImmediate=typeof O=="function"?O:function(i){var r=h++,o=arguments.length<2?!1:w.call(arguments,1);return m[r]=!0,C(function(){m[r]&&(o?i.apply(null,o):i.call(null),d.clearImmediate(r))}),r},d.clearImmediate=typeof E=="function"?E:function(i){delete m[i]}}).call(this,j("timers").setImmediate,j("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(j,P,d){var O=j("buffer").Buffer;P.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(O.isBuffer(E)){for(var C=new Uint8Array(E.length),v=E.length,w=0;w<v;w++)C[w]=E[w];return C.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(j,P,d){"use strict";var O=j("punycode"),E=j("./util");d.parse=f,d.resolve=g,d.resolveObject=A,d.format=p,d.Url=C;function C(){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 v=/^([a-z0-9.+-]+:)/i,w=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r",`
`," "],c=["{","}","|","\\","^","`"].concat(h),i=["'"].concat(c),r=["%","/","?",";","#"].concat(i),o=["/","?","#"],n=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,s=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},a={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=j("querystring");function f(y,x,T){if(y&&E.isObject(y)&&y instanceof C)return y;var S=new C;return S.parse(y,x,T),S}C.prototype.parse=function(y,x,T){if(!E.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var S=y.indexOf("?"),b=S!==-1&&S<y.indexOf("#")?"?":"#",_=y.split(b),I=/\\/g;_[0]=_[0].replace(I,"/"),y=_.join(b);var L=y;if(L=L.trim(),!T&&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=v.exec(L);if(N){N=N[0];var M=N.toLowerCase();this.protocol=M,L=L.substr(N.length)}if(T||N||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var B=L.substr(0,2)==="//";B&&!(N&&a[N])&&(L=L.substr(2),this.slashes=!0)}if(!a[N]&&(B||N&&!l[N])){for(var R=-1,H=0;H<o.length;H++){var F=L.indexOf(o[H]);F!==-1&&(R===-1||F<R)&&(R=F)}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 H=0;H<r.length;H++){var F=L.indexOf(r[H]);F!==-1&&(R===-1||F<R)&&(R=F)}R===-1&&(R=L.length),this.host=L.slice(0,R),L=L.slice(R),this.parseHost(),this.hostname=this.hostname||"";var V=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!V)for(var z=this.hostname.split(/\./),H=0,Y=z.length;H<Y;H++){var q=z[H];if(!q)continue;if(!q.match(e)){for(var ce="",ie=0,ve=q.length;ie<ve;ie++)q.charCodeAt(ie)>127?ce+="x":ce+=q[ie];if(!ce.match(e)){var Ee=z.slice(0,H),Le=z.slice(H+1),He=q.match(s);He&&(Ee.push(He[1]),Le.unshift(He[2])),Le.length&&(L="/"+Le.join(".")+L),this.hostname=Ee.join(".");break}}}this.hostname.length>n?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=O.toASCII(this.hostname));var ge=this.port?":"+this.port:"",Fe=this.hostname||"";this.host=Fe+ge,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!t[M])for(var H=0,Y=i.length;H<Y;H++){var Q=i[H];if(L.indexOf(Q)===-1)continue;var fe=encodeURIComponent(Q);fe===Q&&(fe=escape(Q)),L=L.split(Q).join(fe)}var Je=L.indexOf("#");Je!==-1&&(this.hash=L.substr(Je),L=L.slice(0,Je));var ne=L.indexOf("?");if(ne!==-1?(this.search=L.substr(ne),this.query=L.substr(ne+1),x&&(this.query=u.parse(this.query)),L=L.slice(0,ne)):x&&(this.search="",this.query={}),L&&(this.pathname=L),l[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ge=this.pathname||"",X=this.search||"";this.path=ge+X}return this.href=this.format(),this};function p(y){return E.isString(y)&&(y=f(y)),y instanceof C?y.format():C.prototype.format.call(y)}C.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var x=this.protocol||"",T=this.pathname||"",S=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 I=this.search||_&&"?"+_||"";return x&&x.substr(-1)!==":"&&(x+=":"),this.slashes||(!x||l[x])&&b!==!1?(b="//"+(b||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):b||(b=""),S&&S.charAt(0)!=="#"&&(S="#"+S),I&&I.charAt(0)!=="?"&&(I="?"+I),T=T.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),I=I.replace("#","%23"),x+b+T+I+S};function g(y,x){return f(y,!1,!0).resolve(x)}C.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}C.prototype.resolveObject=function(y){if(E.isString(y)){var x=new C;x.parse(y,!1,!0),y=x}for(var T=new C,S=Object.keys(this),b=0;b<S.length;b++){var _=S[b];T[_]=this[_]}if(T.hash=y.hash,y.href==="")return T.href=T.format(),T;if(y.slashes&&!y.protocol){for(var I=Object.keys(y),L=0;L<I.length;L++){var D=I[L];D!=="protocol"&&(T[D]=y[D])}return l[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(y.protocol&&y.protocol!==T.protocol){if(!l[y.protocol]){for(var N=Object.keys(y),M=0;M<N.length;M++){var B=N[M];T[B]=y[B]}return T.href=T.format(),T}if(T.protocol=y.protocol,!y.host&&!a[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(""),T.pathname=Y.join("/")}else T.pathname=y.pathname;if(T.search=y.search,T.query=y.query,T.host=y.host||"",T.auth=y.auth,T.hostname=y.hostname||y.host,T.port=y.port,T.pathname||T.search){var R=T.pathname||"",H=T.search||"";T.path=R+H}return T.slashes=T.slashes||y.slashes,T.href=T.format(),T}var F=T.pathname&&T.pathname.charAt(0)==="/",K=y.host||y.pathname&&y.pathname.charAt(0)==="/",U=K||F||T.host&&y.pathname,V=U,z=T.pathname&&T.pathname.split("/")||[],Y=y.pathname&&y.pathname.split("/")||[],q=T.protocol&&!l[T.protocol];if(q&&(T.hostname="",T.port=null,T.host&&(z[0]===""?z[0]=T.host:z.unshift(T.host)),T.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]===""||z[0]==="")),K)T.host=y.host||y.host===""?y.host:T.host,T.hostname=y.hostname||y.hostname===""?y.hostname:T.hostname,T.search=y.search,T.query=y.query,z=Y;else if(Y.length)z||(z=[]),z.pop(),z=z.concat(Y),T.search=y.search,T.query=y.query;else if(!E.isNullOrUndefined(y.search)){if(q){T.hostname=T.host=z.shift();var ce=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;ce&&(T.auth=ce.shift(),T.host=T.hostname=ce.shift())}return T.search=y.search,T.query=y.query,(!E.isNull(T.pathname)||!E.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T}if(!z.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var ie=z.slice(-1)[0],ve=(T.host||y.host||z.length>1)&&(ie==="."||ie==="..")||ie==="",Ee=0,Le=z.length;Le>=0;Le--)ie=z[Le],ie==="."?z.splice(Le,1):ie===".."?(z.splice(Le,1),Ee++):Ee&&(z.splice(Le,1),Ee--);if(!U&&!V)for(;Ee--;Ee)z.unshift("..");U&&z[0]!==""&&(!z[0]||z[0].charAt(0)!=="/")&&z.unshift(""),ve&&z.join("/").substr(-1)!=="/"&&z.push("");var He=z[0]===""||z[0]&&z[0].charAt(0)==="/";if(q){T.hostname=T.host=He?"":z.length?z.shift():"";var ce=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;ce&&(T.auth=ce.shift(),T.host=T.hostname=ce.shift())}return U=U||T.host&&z.length,U&&!He&&z.unshift(""),z.length?T.pathname=z.join("/"):(T.pathname=null,T.path=null),(!E.isNull(T.pathname)||!E.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=y.auth||T.auth,T.slashes=T.slashes||y.slashes,T.href=T.format(),T},C.prototype.parseHost=function(){var y=this.host,x=w.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(j,P,d){"use strict";P.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(j,P,d){(function(O){P.exports=E;function E(v,w){if(C("noDeprecation"))return v;var m=!1;function h(){if(!m){if(C("throwDeprecation"))throw new Error(w);C("traceDeprecation")?console.trace(w):console.warn(w),m=!0}return v.apply(this,arguments)}return h}function C(v){try{if(!O.localStorage)return!1}catch(m){return!1}var w=O.localStorage[v];return w==null?!1:String(w).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(j,P,d){typeof Object.create=="function"?P.exports=function(E,C){E.super_=C,E.prototype=Object.create(C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:P.exports=function(E,C){E.super_=C;var v=function(){};v.prototype=C.prototype,E.prototype=new v,E.prototype.constructor=E}},{}],242:[function(j,P,d){P.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],243:[function(j,P,d){(function(O,E){var C=/%[sdj%]/g;d.format=function(R){if(!g(R)){for(var H=[],F=0;F<arguments.length;F++)H.push(m(arguments[F]));return H.join(" ")}for(var F=1,K=arguments,U=K.length,V=String(R).replace(C,function(Y){if(Y==="%%")return"%";if(F>=U)return Y;switch(Y){case"%s":return String(K[F++]);case"%d":return Number(K[F++]);case"%j":try{return JSON.stringify(K[F++])}catch(q){return"[Circular]"}default:return Y}}),z=K[F];F<U;z=K[++F])u(z)||!T(z)?V+=" "+z:V+=" "+m(z);return V},d.deprecate=function(R,H){if(y(E.process))return function(){return d.deprecate(R,H).apply(this,arguments)};if(O.noDeprecation===!0)return R;var F=!1;function K(){if(!F){if(O.throwDeprecation)throw new Error(H);O.traceDeprecation?console.trace(H):console.error(H),F=!0}return R.apply(this,arguments)}return K};var v={},w;d.debuglog=function(R){if(y(w)&&(w=O.env.NODE_DEBUG||""),R=R.toUpperCase(),!v[R])if(new RegExp("\\b"+R+"\\b","i").test(w)){var H=O.pid;v[R]=function(){var F=d.format.apply(d,arguments);console.error("%s %d: %s",R,H,F)}}else v[R]=function(){};return v[R]};function m(R,H){var F={seen:[],stylize:c};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),l(H)?F.showHidden=H:H&&d._extend(F,H),y(F.showHidden)&&(F.showHidden=!1),y(F.depth)&&(F.depth=2),y(F.colors)&&(F.colors=!1),y(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=h),r(F,R,F.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,H){var F=m.styles[H];return F?"["+m.colors[F][0]+"m"+R+"["+m.colors[F][1]+"m":R}function c(R,H){return R}function i(R){var H={};return R.forEach(function(F,K){H[F]=!0}),H}function r(R,H,F){if(R.customInspect&&H&&_(H.inspect)&&H.inspect!==d.inspect&&!(H.constructor&&H.constructor.prototype===H)){var K=H.inspect(F,R);return g(K)||(K=r(R,K,F)),K}var U=o(R,H);if(U)return U;var V=Object.keys(H),z=i(V);if(R.showHidden&&(V=Object.getOwnPropertyNames(H)),b(H)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return n(H);if(V.length===0){if(_(H)){var Y=H.name?": "+H.name:"";return R.stylize("[Function"+Y+"]","special")}if(x(H))return R.stylize(RegExp.prototype.toString.call(H),"regexp");if(S(H))return R.stylize(Date.prototype.toString.call(H),"date");if(b(H))return n(H)}var q="",ce=!1,ie=["{","}"];if(a(H)&&(ce=!0,ie=["[","]"]),_(H)){var ve=H.name?": "+H.name:"";q=" [Function"+ve+"]"}if(x(H)&&(q=" "+RegExp.prototype.toString.call(H)),S(H)&&(q=" "+Date.prototype.toUTCString.call(H)),b(H)&&(q=" "+n(H)),V.length===0&&(!ce||H.length==0))return ie[0]+q+ie[1];if(F<0)return x(H)?R.stylize(RegExp.prototype.toString.call(H),"regexp"):R.stylize("[Object]","special");R.seen.push(H);var Ee;return ce?Ee=e(R,H,F,z,V):Ee=V.map(function(Le){return s(R,H,F,z,Le,ce)}),R.seen.pop(),t(Ee,q,ie)}function o(R,H){if(y(H))return R.stylize("undefined","undefined");if(g(H)){var F="'"+JSON.stringify(H).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return R.stylize(F,"string")}if(p(H))return R.stylize(""+H,"number");if(l(H))return R.stylize(""+H,"boolean");if(u(H))return R.stylize("null","null")}function n(R){return"["+Error.prototype.toString.call(R)+"]"}function e(R,H,F,K,U){for(var V=[],z=0,Y=H.length;z<Y;++z)B(H,String(z))?V.push(s(R,H,F,K,String(z),!0)):V.push("");return U.forEach(function(q){q.match(/^\d+$/)||V.push(s(R,H,F,K,q,!0))}),V}function s(R,H,F,K,U,V){var z,Y,q;if(q=Object.getOwnPropertyDescriptor(H,U)||{value:H[U]},q.get?q.set?Y=R.stylize("[Getter/Setter]","special"):Y=R.stylize("[Getter]","special"):q.set&&(Y=R.stylize("[Setter]","special")),B(K,U)||(z="["+U+"]"),Y||(R.seen.indexOf(q.value)<0?(u(F)?Y=r(R,q.value,null):Y=r(R,q.value,F-1),Y.indexOf(`
`)>-1&&(V?Y=Y.split(`
`).map(function(ce){return" "+ce}).join(`
`).substr(2):Y=`
`+Y.split(`
`).map(function(ce){return" "+ce}).join(`
`))):Y=R.stylize("[Circular]","special")),y(z)){if(V&&U.match(/^\d+$/))return Y;z=JSON.stringify(""+U),z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(z=z.substr(1,z.length-2),z=R.stylize(z,"name")):(z=z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),z=R.stylize(z,"string"))}return z+": "+Y}function t(R,H,F){var K=0,U=R.reduce(function(V,z){return K++,z.indexOf(`
`)>=0&&K++,V+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return U>60?F[0]+(H===""?"":H+`
`)+" "+R.join(`,
`)+" "+F[1]:F[0]+H+" "+R.join(", ")+" "+F[1]}function a(R){return Array.isArray(R)}d.isArray=a;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 g(R){return typeof R=="string"}d.isString=g;function A(R){return typeof R=="symbol"}d.isSymbol=A;function y(R){return R===void 0}d.isUndefined=y;function x(R){return T(R)&&L(R)==="[object RegExp]"}d.isRegExp=x;function T(R){return typeof R=="object"&&R!==null}d.isObject=T;function S(R){return T(R)&&L(R)==="[object Date]"}d.isDate=S;function b(R){return T(R)&&(L(R)==="[object Error]"||R instanceof Error)}d.isError=b;function _(R){return typeof R=="function"}d.isFunction=_;function I(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||typeof R=="undefined"}d.isPrimitive=I,d.isBuffer=j("./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,H=[D(R.getHours()),D(R.getMinutes()),D(R.getSeconds())].join(":");return[R.getDate(),N[R.getMonth()],H].join(" ")}d.log=function(){console.log("%s - %s",M(),d.format.apply(d,arguments))},d.inherits=j("inherits"),d._extend=function(R,H){if(!H||!T(H))return R;for(var F=Object.keys(H),K=F.length;K--;)R[F[K]]=H[F[K]];return R};function B(R,H){return Object.prototype.hasOwnProperty.call(R,H)}}).call(this,j("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(j,P,d){"use strict";(function(){"use strict";d.stripBOM=function(O){return O[0]==="\uFEFF"?O.substring(1):O}}).call(void 0)},{}],245:[function(j,P,d){"use strict";var O=j("babel-runtime/helpers/typeof"),E=w(O),C=j("babel-runtime/core-js/object/keys"),v=w(C);function w(m){return m&&m.__esModule?m:{default:m}}(function(){"use strict";var m,h,c,i,r,o={}.hasOwnProperty;m=j("xmlbuilder"),h=j("./defaults").defaults,i=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},r=function(e){return"<![CDATA["+c(e)+"]]>"},c=function(e){return e.replace("]]>","]]]]><![CDATA[>")},d.Builder=function(){function n(e){var s,t,a;this.options={},t=h["0.2"];for(s in t){if(!o.call(t,s))continue;a=t[s],this.options[s]=a}for(s in e){if(!o.call(e,s))continue;a=e[s],this.options[s]=a}}return n.prototype.buildObject=function(e){var s,t,a,l,u;return s=this.options.attrkey,t=this.options.charkey,(0,v.default)(e).length===1&&this.options.rootName===h["0.2"].rootName?(u=(0,v.default)(e)[0],e=e[u]):u=this.options.rootName,a=function(f){return function(p,g){var A,y,x,T,S,b;if((typeof g=="undefined"?"undefined":(0,E.default)(g))!=="object")f.options.cdata&&i(g)?p.raw(r(g)):p.txt(g);else if(Array.isArray(g))for(T in g){if(!o.call(g,T))continue;y=g[T];for(S in y)x=y[S],p=a(p.ele(S),x).up()}else for(S in g){if(!o.call(g,S))continue;if(y=g[S],S===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(S===t)f.options.cdata&&i(y)?p=p.raw(r(y)):p=p.txt(y);else if(Array.isArray(y))for(T in y){if(!o.call(y,T))continue;x=y[T],typeof x=="string"?f.options.cdata&&i(x)?p=p.ele(S).raw(r(x)).up():p=p.ele(S,x).up():p=a(p.ele(S),x).up()}else(typeof y=="undefined"?"undefined":(0,E.default)(y))==="object"?p=a(p.ele(S),y).up():typeof y=="string"&&f.options.cdata&&i(y)?p=p.ele(S).raw(r(y)).up():(y==null&&(y=""),p=p.ele(S,y.toString()).up())}return p}}(this),l=m.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),a(l,e).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(j,P,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(j,P,d){"use strict";var O=j("babel-runtime/core-js/promise"),E=i(O),C=j("babel-runtime/core-js/object/get-own-property-names"),v=i(C),w=j("babel-runtime/core-js/object/keys"),m=i(w),h=j("babel-runtime/helpers/typeof"),c=i(h);function i(r){return r&&r.__esModule?r:{default:r}}(function(){"use strict";var r,o,n,e,s,t,a,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 T(){this.constructor=A}return T.prototype=y.prototype,A.prototype=new T,A.__super__=y.prototype,A},p={}.hasOwnProperty;a=j("sax"),n=j("events"),r=j("./bom"),t=j("./processors"),l=j("timers").setImmediate,o=j("./defaults").defaults,e=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 T,S,b;for(T=0,S=A.length;T<S;T++)b=A[T],y=b(y,x);return y},d.Parser=function(g){f(A,g);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,T,S;if(!(this instanceof d.Parser))return new d.Parser(y);this.options={},T=o["0.2"];for(x in T){if(!p.call(T,x))continue;S=T[x],this.options[x]=S}for(x in y){if(!p.call(y,x))continue;S=y[x],this.options[x]=S}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(t.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(T){if(x=T,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(x)}},A.prototype.assignOrPush=function(y,x,T){return x in y?(y[x]instanceof Array||(y[x]=[y[x]]),y[x].push(T)):this.options.explicitArray?y[x]=[T]:y[x]=T},A.prototype.reset=function(){var y,x,T,S;return this.removeAllListeners(),this.saxParser=a.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,S=[],y=this.options.attrkey,x=this.options.charkey,this.saxParser.onopentag=function(b){return function(_){var I,L,D,N,M;if(D={},D[x]="",!b.options.ignoreAttrs){M=_.attributes;for(I in M){if(!p.call(M,I))continue;!(y in D)&&!b.options.mergeAttrs&&(D[y]={}),L=b.options.attrValueProcessors?s(b.options.attrValueProcessors,_.attributes[I],I):_.attributes[I],N=b.options.attrNameProcessors?s(b.options.attrNameProcessors,I):I,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}),S.push(D)}}(this),this.saxParser.onclosetag=function(b){return function(){var _,I,L,D,N,M,B,R,H,F;if(M=S.pop(),N=M["#name"],(!b.options.explicitChildren||!b.options.preserveChildrenOrder)&&delete M["#name"],M.cdata===!0&&(_=M.cdata,delete M.cdata),H=S[S.length-1],M[x].match(/^\s*$/)&&!_?(I=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])),e(M)&&(M=b.options.emptyTag!==""?b.options.emptyTag:I),b.options.validator!=null&&(F="/"+function(){var K,U,V;for(V=[],K=0,U=S.length;K<U;K++)D=S[K],V.push(D["#name"]);return V}().concat(N).join("/"),function(){var K;try{return M=b.options.validator(F,H&&H[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,v.default)(M).length>0&&(D[b.options.childkey]=M),M=D;else if(H){H[b.options.childkey]=H[b.options.childkey]||[],B={};for(L in M){if(!p.call(M,L))continue;B[L]=M[L]}H[b.options.childkey].push(B),delete M["#name"],(0,m.default)(M).length===1&&x in M&&!b.EXPLICIT_CHARKEY&&(M=M[x])}}return S.length>0?b.assignOrPush(H,N,M):(b.options.explicitRoot&&(R=M,M={},M[N]=R),b.resultObject=M,b.saxParser.ended=!0,b.emit("end",b.resultObject))}}(this),T=function(b){return function(_){var I,L;if(L=S[S.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]||[],I={"#name":"__text__"},I[x]=_,b.options.normalize&&(I[x]=I[x].replace(/\s{2,}/g," ").trim()),L[b.options.childkey].push(I)),L}}(this),this.saxParser.ontext=T,this.saxParser.oncdata=function(b){return function(_){var I;if(I=T(_),I)return I.cdata=!0}}(this)},A.prototype.parseString=function(y,x){var T;x!=null&&typeof x=="function"&&(this.on("end",function(S){return this.reset(),x(null,S)}),this.on("error",function(S){return this.reset(),x(S)}));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(S){if(T=S,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw T}else return this.emit("error",T),this.saxParser.errThrown=!0}},A.prototype.parseStringPromise=function(y){return new E.default(function(x){return function(T,S){return x.parseString(y,function(b,_){return b?S(b):T(_)})}}(this))},A}(n),d.parseString=function(g,A,y){var x,T,S;return y!=null?(typeof y=="function"&&(x=y),(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&(T=A)):(typeof A=="function"&&(x=A),T={}),S=new d.Parser(T),S.parseString(g,x)},d.parseStringPromise=function(g,A){var y,x;return(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&(y=A),x=new d.Parser(y),x.parseStringPromise(g)}}).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(j,P,d){"use strict";(function(){"use strict";var O;O=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(O,"")},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(j,P,d){"use strict";(function(){"use strict";var O,E,C,v,w=function(c,i){for(var r in i)m.call(i,r)&&(c[r]=i[r]);function o(){this.constructor=c}return o.prototype=i.prototype,c.prototype=new o,c.__super__=i.prototype,c},m={}.hasOwnProperty;E=j("./defaults"),O=j("./builder"),C=j("./parser"),v=j("./processors"),d.defaults=E.defaults,d.processors=v,d.ValidationError=function(h){w(c,h);function c(i){this.message=i}return c}(Error),d.Builder=O.Builder,d.Parser=C.Parser,d.parseString=C.parseString,d.parseStringPromise=C.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(j,P,d){"use strict";(function(){P.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(j,P,d){"use strict";(function(){P.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(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/get-prototype-of"),E=h(O),C=j("babel-runtime/helpers/typeof"),v=h(C),w=j("babel-runtime/core-js/object/assign"),m=h(w);function h(c){return c&&c.__esModule?c:{default:c}}(function(){var c,i,r,o,n,e,s,t=[].slice,a={}.hasOwnProperty;c=function(){var u,f,p,g,A,y;if(y=arguments[0],A=2<=arguments.length?t.call(arguments,1):[],n(m.default))m.default.apply(null,arguments);else for(u=0,p=A.length;u<p;u++)if(g=A[u],g!=null)for(f in g){if(!a.call(g,f))continue;y[f]=g[f]}return y},n=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},e=function(u){var f;return!!u&&((f=typeof u=="undefined"?"undefined":(0,v.default)(u))==="function"||f==="object")},r=function(u){return n(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},o=function(u){var f;if(r(u))return!u.length;for(f in u){if(!a.call(u,f))continue;return!1}return!0},s=function(u){var f,p;return e(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)},i=function(u){return n(u.valueOf)?u.valueOf():u},P.exports.assign=c,P.exports.isFunction=n,P.exports.isObject=e,P.exports.isArray=r,P.exports.isEmpty=o,P.exports.isPlainObject=s,P.exports.getValue=i}).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(j,P,d){"use strict";(function(){P.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m;v=j("./NodeType"),m=j("./XMLNode"),P.exports=w=function(){function h(c,i,r){if(this.parent=c,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),i==null)throw new Error("Missing attribute name. "+this.debugInfo(i));this.name=this.stringify.name(i),this.value=this.stringify.attValue(r),this.type=v.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(i){return this.value=i||""}}),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(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m,h=function(r,o){for(var n in o)c.call(o,n)&&(r[n]=o[n]);function e(){this.constructor=r}return e.prototype=o.prototype,r.prototype=new e,r.__super__=o.prototype,r},c={}.hasOwnProperty;v=j("./NodeType"),m=j("./XMLCharacterData"),P.exports=w=function(i){h(r,i);function r(o,n){if(r.__super__.constructor.call(this,o),n==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(n)}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(o){return this.options.writer.cdata(this,this.options.writer.filterOptions(o))},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m=function(i,r){for(var o in r)h.call(r,o)&&(i[o]=r[o]);function n(){this.constructor=i}return n.prototype=r.prototype,i.prototype=new n,i.__super__=r.prototype,i},h={}.hasOwnProperty;w=j("./XMLNode"),P.exports=v=function(c){m(i,c);function i(r){i.__super__.constructor.call(this,r),this.value=""}return Object.defineProperty(i.prototype,"data",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(i.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),i.prototype.clone=function(){return(0,E.default)(this)},i.prototype.substringData=function(r,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.insertData=function(r,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.deleteData=function(r,o){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceData=function(r,o,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(r){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.data!==this.data):!1},i}(w)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m,h=function(r,o){for(var n in o)c.call(o,n)&&(r[n]=o[n]);function e(){this.constructor=r}return e.prototype=o.prototype,r.prototype=new e,r.__super__=o.prototype,r},c={}.hasOwnProperty;v=j("./NodeType"),w=j("./XMLCharacterData"),P.exports=m=function(i){h(r,i);function r(o,n){if(r.__super__.constructor.call(this,o),n==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(n)}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(o){return this.options.writer.comment(this,this.options.writer.filterOptions(o))},r}(w)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/keys"),E=w(O),C=j("babel-runtime/core-js/object/create"),v=w(C);function w(m){return m&&m.__esModule?m:{default:m}}(function(){var m,h,c;h=j("./XMLDOMErrorHandler"),c=j("./XMLDOMStringList"),P.exports=m=function(){function i(){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,v.default)(this.defaultParams)}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new c((0,E.default)(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,o){return!0},i.prototype.setParameter=function(r,o){return o!=null?this.params[r]=o:delete this.params[r]},i}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(j,P,d){"use strict";(function(){var O;P.exports=O=function(){function E(){}return E.prototype.handleError=function(C){throw new Error(C)},E}()}).call(void 0)},{}],260:[function(j,P,d){"use strict";(function(){var O;P.exports=O=function(){function E(){}return E.prototype.hasFeature=function(C,v){return!0},E.prototype.createDocumentType=function(C,v,w){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(C,v,w){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(C){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(C,v){throw new Error("This DOM method is not implemented.")},E}()}).call(void 0)},{}],261:[function(j,P,d){"use strict";(function(){var O;P.exports=O=function(){function E(C){this.arr=C||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(C){return this.arr[C]||null},E.prototype.contains=function(C){return this.arr.indexOf(C)!==-1},E}()}).call(void 0)},{}],262:[function(j,P,d){"use strict";(function(){var O,E,C,v=function(h,c){for(var i in c)w.call(c,i)&&(h[i]=c[i]);function r(){this.constructor=h}return r.prototype=c.prototype,h.prototype=new r,h.__super__=c.prototype,h},w={}.hasOwnProperty;C=j("./XMLNode"),O=j("./NodeType"),P.exports=E=function(m){v(h,m);function h(c,i,r,o,n,e){if(h.__super__.constructor.call(this,c),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(r==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(i));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(i));if(!n)throw new Error("Missing DTD attribute default. "+this.debugInfo(i));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(i));if(e&&!n.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(i));this.elementName=this.stringify.name(i),this.type=O.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(o),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=n}return h.prototype.toString=function(c){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(c))},h}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(j,P,d){"use strict";(function(){var O,E,C,v=function(h,c){for(var i in c)w.call(c,i)&&(h[i]=c[i]);function r(){this.constructor=h}return r.prototype=c.prototype,h.prototype=new r,h.__super__=c.prototype,h},w={}.hasOwnProperty;C=j("./XMLNode"),O=j("./NodeType"),P.exports=E=function(m){v(h,m);function h(c,i,r){if(h.__super__.constructor.call(this,c),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(i),this.type=O.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}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(j,P,d){"use strict";(function(){var O,E,C,v,w=function(c,i){for(var r in i)m.call(i,r)&&(c[r]=i[r]);function o(){this.constructor=c}return o.prototype=i.prototype,c.prototype=new o,c.__super__=i.prototype,c},m={}.hasOwnProperty;v=j("./Utility").isObject,C=j("./XMLNode"),O=j("./NodeType"),P.exports=E=function(h){w(c,h);function c(i,r,o,n){if(c.__super__.constructor.call(this,i),o==null)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(n==null)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!r,this.name=this.stringify.name(o),this.type=O.EntityDeclaration,!v(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(o));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));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(o))}}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(i){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(i))},c}(C)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(j,P,d){"use strict";(function(){var O,E,C,v=function(h,c){for(var i in c)w.call(c,i)&&(h[i]=c[i]);function r(){this.constructor=h}return r.prototype=c.prototype,h.prototype=new r,h.__super__=c.prototype,h},w={}.hasOwnProperty;C=j("./XMLNode"),O=j("./NodeType"),P.exports=E=function(m){v(h,m);function h(c,i,r){if(h.__super__.constructor.call(this,c),i==null)throw new Error("Missing DTD notation name. "+this.debugInfo(i));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(i));this.name=this.stringify.name(i),this.type=O.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}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(j,P,d){"use strict";(function(){var O,E,C,v,w=function(c,i){for(var r in i)m.call(i,r)&&(c[r]=i[r]);function o(){this.constructor=c}return o.prototype=i.prototype,c.prototype=new o,c.__super__=i.prototype,c},m={}.hasOwnProperty;v=j("./Utility").isObject,C=j("./XMLNode"),O=j("./NodeType"),P.exports=E=function(h){w(c,h);function c(i,r,o,n){var e;c.__super__.constructor.call(this,i),v(r)&&(e=r,r=e.version,o=e.encoding,n=e.standalone),r||(r="1.0"),this.type=O.Declaration,this.version=this.stringify.xmlVersion(r),o!=null&&(this.encoding=this.stringify.xmlEncoding(o)),n!=null&&(this.standalone=this.stringify.xmlStandalone(n))}return c.prototype.toString=function(i){return this.options.writer.declaration(this,this.options.writer.filterOptions(i))},c}(C)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(j,P,d){"use strict";(function(){var O,E,C,v,w,m,h,c,i,r=function(e,s){for(var t in s)o.call(s,t)&&(e[t]=s[t]);function a(){this.constructor=e}return a.prototype=s.prototype,e.prototype=new a,e.__super__=s.prototype,e},o={}.hasOwnProperty;i=j("./Utility").isObject,c=j("./XMLNode"),O=j("./NodeType"),E=j("./XMLDTDAttList"),v=j("./XMLDTDEntity"),C=j("./XMLDTDElement"),w=j("./XMLDTDNotation"),h=j("./XMLNamedNodeMap"),P.exports=m=function(n){r(e,n);function e(s,t,a){var l,u,f,p,g,A;if(e.__super__.constructor.call(this,s),this.type=O.DocType,s.children){for(p=s.children,u=0,f=p.length;u<f;u++)if(l=p[u],l.type===O.Element){this.name=l.name;break}}this.documentObject=s,i(t)&&(g=t,t=g.pubID,a=g.sysID),a==null&&(A=[t,a],a=A[0],t=A[1]),t!=null&&(this.pubID=this.stringify.dtdPubID(t)),a!=null&&(this.sysID=this.stringify.dtdSysID(a))}return Object.defineProperty(e.prototype,"entities",{get:function(){var t,a,l,u,f;for(u={},f=this.children,a=0,l=f.length;a<l;a++)t=f[a],t.type===O.EntityDeclaration&&!t.pe&&(u[t.name]=t);return new h(u)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var t,a,l,u,f;for(u={},f=this.children,a=0,l=f.length;a<l;a++)t=f[a],t.type===O.NotationDeclaration&&(u[t.name]=t);return new h(u)}}),Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(e.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),e.prototype.element=function(s,t){var a;return a=new C(this,s,t),this.children.push(a),this},e.prototype.attList=function(s,t,a,l,u){var f;return f=new E(this,s,t,a,l,u),this.children.push(f),this},e.prototype.entity=function(s,t){var a;return a=new v(this,!1,s,t),this.children.push(a),this},e.prototype.pEntity=function(s,t){var a;return a=new v(this,!0,s,t),this.children.push(a),this},e.prototype.notation=function(s,t){var a;return a=new w(this,s,t),this.children.push(a),this},e.prototype.toString=function(s){return this.options.writer.docType(this,this.options.writer.filterOptions(s))},e.prototype.ele=function(s,t){return this.element(s,t)},e.prototype.att=function(s,t,a,l,u){return this.attList(s,t,a,l,u)},e.prototype.ent=function(s,t){return this.entity(s,t)},e.prototype.pent=function(s,t){return this.pEntity(s,t)},e.prototype.not=function(s,t){return this.notation(s,t)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(s){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)?s.name!==this.name||s.publicId!==this.publicId?!1:!(s.systemId!==this.systemId):!1},e}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(j,P,d){"use strict";(function(){var O,E,C,v,w,m,h,c,i=function(n,e){for(var s in e)r.call(e,s)&&(n[s]=e[s]);function t(){this.constructor=n}return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;c=j("./Utility").isPlainObject,C=j("./XMLDOMImplementation"),E=j("./XMLDOMConfiguration"),w=j("./XMLNode"),O=j("./NodeType"),h=j("./XMLStringifier"),m=j("./XMLStringWriter"),P.exports=v=function(o){i(n,o);function n(e){n.__super__.constructor.call(this,null),this.name="#document",this.type=O.Document,this.documentURI=null,this.domConfig=new E,e||(e={}),e.writer||(e.writer=new m),this.options=e,this.stringify=new h(e)}return Object.defineProperty(n.prototype,"implementation",{value:new C}),Object.defineProperty(n.prototype,"doctype",{get:function(){var s,t,a,l;for(l=this.children,t=0,a=l.length;t<a;t++)if(s=l[t],s.type===O.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===O.Declaration?this.children[0].encoding:null}}),Object.defineProperty(n.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===O.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(e){var s;return s={},e?c(e)&&(s=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(s))},n.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},n.prototype.createElement=function(e){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(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createProcessingInstruction=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.importNode=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createElementNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttributeNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagNameNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.adoptNode=function(e){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(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEvent=function(e){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(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTreeWalker=function(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(w)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(j,P,d){"use strict";(function(){var O,E,C,v,w,m,h,c,i,r,o,n,e,s,t,a,l,u,f,p,g,A,y,x,T={}.hasOwnProperty;x=j("./Utility"),A=x.isObject,g=x.isFunction,y=x.isPlainObject,p=x.getValue,O=j("./NodeType"),n=j("./XMLDocument"),s=j("./XMLElement"),v=j("./XMLCData"),w=j("./XMLComment"),a=j("./XMLRaw"),f=j("./XMLText"),t=j("./XMLProcessingInstruction"),r=j("./XMLDeclaration"),o=j("./XMLDocType"),m=j("./XMLDTDAttList"),c=j("./XMLDTDEntity"),h=j("./XMLDTDElement"),i=j("./XMLDTDNotation"),C=j("./XMLAttribute"),u=j("./XMLStringifier"),l=j("./XMLStringWriter"),E=j("./WriterState"),P.exports=e=function(){function S(b,_,I){var L;this.name="?xml",this.type=O.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=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return S.prototype.createChildNode=function(b){var _,I,L,D,N,M,B,R;switch(b.type){case O.CData:this.cdata(b.value);break;case O.Comment:this.comment(b.value);break;case O.Element:L={},B=b.attribs;for(I in B){if(!T.call(B,I))continue;_=B[I],L[I]=_.value}this.node(b.name,L);break;case O.Dummy:this.dummy();break;case O.Raw:this.raw(b.value);break;case O.Text:this.text(b.value);break;case O.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===O.Element&&this.up();return this},S.prototype.dummy=function(){return this},S.prototype.node=function(b,_,I){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=[_,I],I=L[0],_=L[1]),this.currentNode=new s(this,b,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},S.prototype.element=function(b,_,I){var L,D,N,M,B,R;if(this.currentNode&&this.currentNode.type===O.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(b)||A(b)||g(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,B=R.children,D=0,N=B.length;D<N;D++)L=B[D],this.createChildNode(L),L.type===O.Element&&this.up();else this.node(b,_,I);return this},S.prototype.attribute=function(b,_){var I,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(I in b){if(!T.call(b,I))continue;L=b[I],this.attribute(I,L)}else g(_)&&(_=_.apply()),this.options.keepNullAttributes&&_==null?this.currentNode.attribs[b]=new C(this,b,""):_!=null&&(this.currentNode.attribs[b]=new C(this,b,_));return this},S.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},S.prototype.cdata=function(b){var _;return this.openCurrent(),_=new v(this,b),this.onData(this.writer.cdata(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.comment=function(b){var _;return this.openCurrent(),_=new w(this,b),this.onData(this.writer.comment(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.raw=function(b){var _;return this.openCurrent(),_=new a(this,b),this.onData(this.writer.raw(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.instruction=function(b,_){var I,L,D,N,M;if(this.openCurrent(),b!=null&&(b=p(b)),_!=null&&(_=p(_)),Array.isArray(b))for(I=0,N=b.length;I<N;I++)L=b[I],this.instruction(L);else if(A(b))for(L in b){if(!T.call(b,L))continue;D=b[L],this.instruction(L,D)}else g(_)&&(_=_.apply()),M=new t(this,b,_),this.onData(this.writer.processingInstruction(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},S.prototype.declaration=function(b,_,I){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return L=new r(this,b,_,I),this.onData(this.writer.declaration(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.doctype=function(b,_,I){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 o(this,_,I),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},S.prototype.dtdElement=function(b,_){var I;return this.openCurrent(),I=new h(this,b,_),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.attList=function(b,_,I,L,D){var N;return this.openCurrent(),N=new m(this,b,_,I,L,D),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.entity=function(b,_){var I;return this.openCurrent(),I=new c(this,!1,b,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.pEntity=function(b,_){var I;return this.openCurrent(),I=new c(this,!0,b,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.notation=function(b,_){var I;return this.openCurrent(),I=new i(this,b,_),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.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},S.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},S.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},S.prototype.openNode=function(b){var _,I,L,D;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===O.Element&&(this.root=b),I="",b.type===O.Element){this.writerOptions.state=E.OpenTag,I=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name,D=b.attribs;for(L in D){if(!T.call(D,L))continue;_=D[L],I+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}I+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,I=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName,b.pubID&&b.sysID?I+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"':b.sysID&&(I+=' SYSTEM "'+b.sysID+'"'),b.children?(I+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,I+=">"),I+=this.writer.endline(b,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),b.isOpen=!0}},S.prototype.closeNode=function(b){var _;if(!b.isClosed)return _="",this.writerOptions.state=E.CloseTag,b.type===O.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},S.prototype.onData=function(b,_){return this.documentStarted=!0,this.onDataCallback(b,_+1)},S.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},S.prototype.debugInfo=function(b){return b==null?"":"node: <"+b+">"},S.prototype.ele=function(){return this.element.apply(this,arguments)},S.prototype.nod=function(b,_,I){return this.node(b,_,I)},S.prototype.txt=function(b){return this.text(b)},S.prototype.dat=function(b){return this.cdata(b)},S.prototype.com=function(b){return this.comment(b)},S.prototype.ins=function(b,_){return this.instruction(b,_)},S.prototype.dec=function(b,_,I){return this.declaration(b,_,I)},S.prototype.dtd=function(b,_,I){return this.doctype(b,_,I)},S.prototype.e=function(b,_,I){return this.element(b,_,I)},S.prototype.n=function(b,_,I){return this.node(b,_,I)},S.prototype.t=function(b){return this.text(b)},S.prototype.d=function(b){return this.cdata(b)},S.prototype.c=function(b){return this.comment(b)},S.prototype.r=function(b){return this.raw(b)},S.prototype.i=function(b,_){return this.instruction(b,_)},S.prototype.att=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},S.prototype.a=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},S.prototype.ent=function(b,_){return this.entity(b,_)},S.prototype.pent=function(b,_){return this.pEntity(b,_)},S.prototype.not=function(b,_){return this.notation(b,_)},S}()}).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(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m,h=function(r,o){for(var n in o)c.call(o,n)&&(r[n]=o[n]);function e(){this.constructor=r}return e.prototype=o.prototype,r.prototype=new e,r.__super__=o.prototype,r},c={}.hasOwnProperty;m=j("./XMLNode"),v=j("./NodeType"),P.exports=w=function(i){h(r,i);function r(o){r.__super__.constructor.call(this,o),this.type=v.Dummy}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(o){return""},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m,h,c,i,r,o,n,e=function(a,l){for(var u in l)s.call(l,u)&&(a[u]=l[u]);function f(){this.constructor=a}return f.prototype=l.prototype,a.prototype=new f,a.__super__=l.prototype,a},s={}.hasOwnProperty;n=j("./Utility"),o=n.isObject,r=n.isFunction,i=n.getValue,c=j("./XMLNode"),v=j("./NodeType"),w=j("./XMLAttribute"),h=j("./XMLNamedNodeMap"),P.exports=m=function(t){e(a,t);function a(l,u,f){var p,g,A,y;if(a.__super__.constructor.call(this,l),u==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(u),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,f!=null&&this.attribute(f),l.type===v.Document&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this,l.children)){for(y=l.children,g=0,A=y.length;g<A;g++)if(p=y[g],p.type===v.DocType){p.name=this.name;break}}}return Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new h(this.attribs)),this.attributeMap}}),a.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(g){var A;return A=g.clone(),A.parent=f,f.children.push(A)}),f},a.prototype.attribute=function(l,u){var f,p;if(l!=null&&(l=i(l)),o(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 w(this,l,""):u!=null&&(this.attribs[l]=new w(this,l,u));return this},a.prototype.removeAttribute=function(l){var u,f,p;if(l==null)throw new Error("Missing attribute name. "+this.debugInfo());if(l=i(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},a.prototype.toString=function(l){return this.options.writer.element(this,this.options.writer.filterOptions(l))},a.prototype.att=function(l,u){return this.attribute(l,u)},a.prototype.a=function(l,u){return this.attribute(l,u)},a.prototype.getAttribute=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l].value:null},a.prototype.setAttribute=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l]:null},a.prototype.setAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(l,u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(l){return this.attribs.hasOwnProperty(l)},a.prototype.hasAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(l,u){return this.attribs.hasOwnProperty(l)?this.attribs[l].isId:u},a.prototype.setIdAttributeNS=function(l,u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(l){var u,f,p;if(!a.__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},a}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/keys"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v;P.exports=v=function(){function w(m){this.nodes=m}return Object.defineProperty(w.prototype,"length",{get:function(){return(0,E.default)(this.nodes).length||0}}),w.prototype.clone=function(){return this.nodes=null},w.prototype.getNamedItem=function(m){return this.nodes[m]},w.prototype.setNamedItem=function(m){var h;return h=this.nodes[m.nodeName],this.nodes[m.nodeName]=m,h||null},w.prototype.removeNamedItem=function(m){var h;return h=this.nodes[m],delete this.nodes[m],h||null},w.prototype.item=function(m){return this.nodes[(0,E.default)(this.nodes)[m]]||null},w.prototype.getNamedItemNS=function(m,h){throw new Error("This DOM method is not implemented.")},w.prototype.setNamedItemNS=function(m){throw new Error("This DOM method is not implemented.")},w.prototype.removeNamedItemNS=function(m,h){throw new Error("This DOM method is not implemented.")},w}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(j,P,d){"use strict";(function(){var O,E,C,v,w,m,h,c,i,r,o,n,e,s,t,a,l,u,f,p={}.hasOwnProperty;f=j("./Utility"),u=f.isObject,l=f.isFunction,a=f.isEmpty,t=f.getValue,c=null,C=null,v=null,w=null,m=null,e=null,s=null,n=null,h=null,E=null,o=null,i=null,O=null,P.exports=r=function(){function g(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=j("./XMLElement"),C=j("./XMLCData"),v=j("./XMLComment"),w=j("./XMLDeclaration"),m=j("./XMLDocType"),e=j("./XMLRaw"),s=j("./XMLText"),n=j("./XMLProcessingInstruction"),h=j("./XMLDummy"),E=j("./NodeType"),o=j("./XMLNodeList"),i=j("./XMLNamedNodeMap"),O=j("./DocumentPosition"))}return Object.defineProperty(g.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(g.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(g.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(g.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new o(this.children)),this.childNodeList}}),Object.defineProperty(g.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(g.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(g.prototype,"previousSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y-1]||null}}),Object.defineProperty(g.prototype,"nextSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y+1]||null}}),Object.defineProperty(g.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(g.prototype,"textContent",{get:function(){var y,x,T,S,b;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(b="",S=this.children,x=0,T=S.length;x<T;x++)y=S[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())}}),g.prototype.setParent=function(A){var y,x,T,S,b;for(this.parent=A,A&&(this.options=A.options,this.stringify=A.stringify),S=this.children,b=[],x=0,T=S.length;x<T;x++)y=S[x],b.push(y.setParent(this));return b},g.prototype.element=function(A,y,x){var T,S,b,_,I,L,D,N,M,B,R;if(L=null,y===null&&x==null&&(M=[{},null],y=M[0],x=M[1]),y==null&&(y={}),y=t(y),u(y)||(B=[y,x],x=B[0],y=B[1]),A!=null&&(A=t(A)),Array.isArray(A))for(b=0,D=A.length;b<D;b++)S=A[b],L=this.element(S);else if(l(A))L=this.element(A.apply());else if(u(A))for(I in A){if(!p.call(A,I))continue;if(R=A[I],l(R)&&(R=R.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(I.substr(this.stringify.convertAttKey.length),R);else if(!this.options.separateArrayItems&&Array.isArray(R)&&a(R))L=this.dummy();else if(u(R)&&a(R))L=this.element(I);else if(!this.options.keepNullNodes&&R==null)L=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(R))for(_=0,N=R.length;_<N;_++)S=R[_],T={},T[I]=S,L=this.element(T);else u(R)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?L=this.element(R):(L=this.element(I),L.element(R)):L=this.element(I,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},g.prototype.insertBefore=function(A,y,x){var T,S,b,_,I;if(A!=null?A.type:void 0)return b=A,_=y,b.setParent(this),_?(S=children.indexOf(_),I=children.splice(S),children.push(b),Array.prototype.push.apply(children,I)):children.push(b),b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return S=this.parent.children.indexOf(this),I=this.parent.children.splice(S),T=this.parent.element(A,y,x),Array.prototype.push.apply(this.parent.children,I),T},g.prototype.insertAfter=function(A,y,x){var T,S,b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return S=this.parent.children.indexOf(this),b=this.parent.children.splice(S+1),T=this.parent.element(A,y,x),Array.prototype.push.apply(this.parent.children,b),T},g.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},g.prototype.node=function(A,y,x){var T,S;return A!=null&&(A=t(A)),y||(y={}),y=t(y),u(y)||(S=[y,x],x=S[0],y=S[1]),T=new c(this,A,y),x!=null&&T.text(x),this.children.push(T),T},g.prototype.text=function(A){var y;return u(A)&&this.element(A),y=new s(this,A),this.children.push(y),this},g.prototype.cdata=function(A){var y;return y=new C(this,A),this.children.push(y),this},g.prototype.comment=function(A){var y;return y=new v(this,A),this.children.push(y),this},g.prototype.commentBefore=function(A){var y,x,T;return x=this.parent.children.indexOf(this),T=this.parent.children.splice(x),y=this.parent.comment(A),Array.prototype.push.apply(this.parent.children,T),this},g.prototype.commentAfter=function(A){var y,x,T;return x=this.parent.children.indexOf(this),T=this.parent.children.splice(x+1),y=this.parent.comment(A),Array.prototype.push.apply(this.parent.children,T),this},g.prototype.raw=function(A){var y;return y=new e(this,A),this.children.push(y),this},g.prototype.dummy=function(){var A;return A=new h(this),A},g.prototype.instruction=function(A,y){var x,T,S,b,_;if(A!=null&&(A=t(A)),y!=null&&(y=t(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;T=A[x],this.instruction(x,T)}else l(y)&&(y=y.apply()),S=new n(this,A,y),this.children.push(S);return this},g.prototype.instructionBefore=function(A,y){var x,T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T),x=this.parent.instruction(A,y),Array.prototype.push.apply(this.parent.children,S),this},g.prototype.instructionAfter=function(A,y){var x,T,S;return T=this.parent.children.indexOf(this),S=this.parent.children.splice(T+1),x=this.parent.instruction(A,y),Array.prototype.push.apply(this.parent.children,S),this},g.prototype.declaration=function(A,y,x){var T,S;return T=this.document(),S=new w(T,A,y,x),T.children.length===0?T.children.unshift(S):T.children[0].type===E.Declaration?T.children[0]=S:T.children.unshift(S),T.root()||T},g.prototype.dtd=function(A,y){var x,T,S,b,_,I,L,D,N,M;for(T=this.document(),S=new m(T,A,y),N=T.children,b=_=0,L=N.length;_<L;b=++_)if(x=N[b],x.type===E.DocType)return T.children[b]=S,S;for(M=T.children,b=I=0,D=M.length;I<D;b=++I)if(x=M[b],x.isRoot)return T.children.splice(b,0,S),S;return T.children.push(S),S},g.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},g.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}},g.prototype.document=function(){var A;for(A=this;A;){if(A.type===E.Document)return A;A=A.parent}},g.prototype.end=function(A){return this.document().end(A)},g.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]},g.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]},g.prototype.importDocument=function(A){var y;return y=A.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},g.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+">"},g.prototype.ele=function(A,y,x){return this.element(A,y,x)},g.prototype.nod=function(A,y,x){return this.node(A,y,x)},g.prototype.txt=function(A){return this.text(A)},g.prototype.dat=function(A){return this.cdata(A)},g.prototype.com=function(A){return this.comment(A)},g.prototype.ins=function(A,y){return this.instruction(A,y)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(A,y,x){return this.declaration(A,y,x)},g.prototype.e=function(A,y,x){return this.element(A,y,x)},g.prototype.n=function(A,y,x){return this.node(A,y,x)},g.prototype.t=function(A){return this.text(A)},g.prototype.d=function(A){return this.cdata(A)},g.prototype.c=function(A){return this.comment(A)},g.prototype.r=function(A){return this.raw(A)},g.prototype.i=function(A,y){return this.instruction(A,y)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(A){return this.importDocument(A)},g.prototype.replaceChild=function(A,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return this.children.length!==0},g.prototype.cloneNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(A,y){return!0},g.prototype.hasAttributes=function(){return this.attribs.length!==0},g.prototype.compareDocumentPosition=function(A){var y,x;return y=this,y===A?0:this.document()!==A.document()?(x=O.Disconnected|O.ImplementationSpecific,Math.random()<.5?x|=O.Preceding:x|=O.Following,x):y.isAncestor(A)?O.Contains|O.Preceding:y.isDescendant(A)?O.Contains|O.Following:y.isPreceding(A)?O.Preceding:O.Following},g.prototype.isSameNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(A){var y,x,T;if(A.nodeType!==this.nodeType)return!1;if(A.children.length!==this.children.length)return!1;for(y=x=0,T=this.children.length-1;0<=T?x<=T:x>=T;y=0<=T?++x:--x)if(!this.children[y].isEqualNode(A.children[y]))return!1;return!0},g.prototype.getFeature=function(A,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(A,y,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(A){return A?A===this||this.isDescendant(A):!1},g.prototype.isDescendant=function(A){var y,x,T,S,b;for(b=this.children,T=0,S=b.length;T<S;T++){if(y=b[T],A===y)return!0;if(x=y.isDescendant(A),x)return!0}return!1},g.prototype.isAncestor=function(A){return A.isDescendant(this)},g.prototype.isPreceding=function(A){var y,x;return y=this.treePosition(A),x=this.treePosition(this),y===-1||x===-1?!1:y<x},g.prototype.isFollowing=function(A){var y,x;return y=this.treePosition(A),x=this.treePosition(this),y===-1||x===-1?!1:y>x},g.prototype.treePosition=function(A){var y,x;return x=0,y=!1,this.foreachTreeNode(this.document(),function(T){if(x++,!y&&T===A)return y=!0}),y?x:-1},g.prototype.foreachTreeNode=function(A,y){var x,T,S,b,_;for(A||(A=this.document()),b=A.children,T=0,S=b.length;T<S;T++){if(x=b[T],_=y(x))return _;if(_=this.foreachTreeNode(x,y),_)return _}},g}()}).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(j,P,d){"use strict";(function(){var O;P.exports=O=function(){function E(C){this.nodes=C}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(C){return this.nodes[C]||null},E}()}).call(void 0)},{}],275:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m,h=function(r,o){for(var n in o)c.call(o,n)&&(r[n]=o[n]);function e(){this.constructor=r}return e.prototype=o.prototype,r.prototype=new e,r.__super__=o.prototype,r},c={}.hasOwnProperty;v=j("./NodeType"),w=j("./XMLCharacterData"),P.exports=m=function(i){h(r,i);function r(o,n,e){if(r.__super__.constructor.call(this,o),n==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=v.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(o){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(o))},r.prototype.isEqualNode=function(o){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(o)?!(o.target!==this.target):!1},r}(w)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m,h=function(r,o){for(var n in o)c.call(o,n)&&(r[n]=o[n]);function e(){this.constructor=r}return e.prototype=o.prototype,r.prototype=new e,r.__super__=o.prototype,r},c={}.hasOwnProperty;v=j("./NodeType"),w=j("./XMLNode"),P.exports=m=function(i){h(r,i);function r(o,n){if(r.__super__.constructor.call(this,o),n==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=v.Raw,this.value=this.stringify.raw(n)}return r.prototype.clone=function(){return(0,E.default)(this)},r.prototype.toString=function(o){return this.options.writer.raw(this,this.options.writer.filterOptions(o))},r}(w)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(j,P,d){"use strict";(function(){var O,E,C,v,w=function(c,i){for(var r in i)m.call(i,r)&&(c[r]=i[r]);function o(){this.constructor=c}return o.prototype=i.prototype,c.prototype=new o,c.__super__=i.prototype,c},m={}.hasOwnProperty;O=j("./NodeType"),v=j("./XMLWriterBase"),E=j("./WriterState"),P.exports=C=function(h){w(c,h);function c(i,r){this.stream=i,c.__super__.constructor.call(this,r)}return c.prototype.endline=function(i,r,o){return i.isLastRootNode&&r.state===E.CloseTag?"":c.__super__.endline.call(this,i,r,o)},c.prototype.document=function(i,r){var o,n,e,s,t,a,l,u,f;for(l=i.children,n=e=0,t=l.length;e<t;n=++e)o=l[n],o.isLastRootNode=n===i.children.length-1;for(r=this.filterOptions(r),u=i.children,f=[],s=0,a=u.length;s<a;s++)o=u[s],f.push(this.writeChildNode(o,r,0));return f},c.prototype.attribute=function(i,r,o){return this.stream.write(c.__super__.attribute.call(this,i,r,o))},c.prototype.cdata=function(i,r,o){return this.stream.write(c.__super__.cdata.call(this,i,r,o))},c.prototype.comment=function(i,r,o){return this.stream.write(c.__super__.comment.call(this,i,r,o))},c.prototype.declaration=function(i,r,o){return this.stream.write(c.__super__.declaration.call(this,i,r,o))},c.prototype.docType=function(i,r,o){var n,e,s,t;if(o||(o=0),this.openNode(i,r,o),r.state=E.OpenTag,this.stream.write(this.indent(i,r,o)),this.stream.write("<!DOCTYPE "+i.root().name),i.pubID&&i.sysID?this.stream.write(' PUBLIC "'+i.pubID+'" "'+i.sysID+'"'):i.sysID&&this.stream.write(' SYSTEM "'+i.sysID+'"'),i.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(i,r,o)),r.state=E.InsideTag,t=i.children,e=0,s=t.length;e<s;e++)n=t[e],this.writeChildNode(n,r,o+1);r.state=E.CloseTag,this.stream.write("]")}return r.state=E.CloseTag,this.stream.write(r.spaceBeforeSlash+">"),this.stream.write(this.endline(i,r,o)),r.state=E.None,this.closeNode(i,r,o)},c.prototype.element=function(i,r,o){var n,e,s,t,a,l,u,f,p,g;o||(o=0),this.openNode(i,r,o),r.state=E.OpenTag,this.stream.write(this.indent(i,r,o)+"<"+i.name),p=i.attribs;for(u in p){if(!m.call(p,u))continue;n=p[u],this.attribute(n,r,o)}if(s=i.children.length,t=s===0?null:i.children[0],s===0||i.children.every(function(A){return(A.type===O.Text||A.type===O.Raw)&&A.value===""}))r.allowEmpty?(this.stream.write(">"),r.state=E.CloseTag,this.stream.write("</"+i.name+">")):(r.state=E.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&s===1&&(t.type===O.Text||t.type===O.Raw)&&t.value!=null)this.stream.write(">"),r.state=E.InsideTag,r.suppressPrettyCount++,f=!0,this.writeChildNode(t,r,o+1),r.suppressPrettyCount--,f=!1,r.state=E.CloseTag,this.stream.write("</"+i.name+">");else{for(this.stream.write(">"+this.endline(i,r,o)),r.state=E.InsideTag,g=i.children,a=0,l=g.length;a<l;a++)e=g[a],this.writeChildNode(e,r,o+1);r.state=E.CloseTag,this.stream.write(this.indent(i,r,o)+"</"+i.name+">")}return this.stream.write(this.endline(i,r,o)),r.state=E.None,this.closeNode(i,r,o)},c.prototype.processingInstruction=function(i,r,o){return this.stream.write(c.__super__.processingInstruction.call(this,i,r,o))},c.prototype.raw=function(i,r,o){return this.stream.write(c.__super__.raw.call(this,i,r,o))},c.prototype.text=function(i,r,o){return this.stream.write(c.__super__.text.call(this,i,r,o))},c.prototype.dtdAttList=function(i,r,o){return this.stream.write(c.__super__.dtdAttList.call(this,i,r,o))},c.prototype.dtdElement=function(i,r,o){return this.stream.write(c.__super__.dtdElement.call(this,i,r,o))},c.prototype.dtdEntity=function(i,r,o){return this.stream.write(c.__super__.dtdEntity.call(this,i,r,o))},c.prototype.dtdNotation=function(i,r,o){return this.stream.write(c.__super__.dtdNotation.call(this,i,r,o))},c}(v)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(j,P,d){"use strict";(function(){var O,E,C=function(m,h){for(var c in h)v.call(h,c)&&(m[c]=h[c]);function i(){this.constructor=m}return i.prototype=h.prototype,m.prototype=new i,m.__super__=h.prototype,m},v={}.hasOwnProperty;E=j("./XMLWriterBase"),P.exports=O=function(w){C(m,w);function m(h){m.__super__.constructor.call(this,h)}return m.prototype.document=function(h,c){var i,r,o,n,e;for(c=this.filterOptions(c),n="",e=h.children,r=0,o=e.length;r<o;r++)i=e[r],n+=this.writeChildNode(i,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(j,P,d){"use strict";(function(){var O,E=function(w,m){return function(){return w.apply(m,arguments)}},C={}.hasOwnProperty;P.exports=O=function(){function v(w){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var m,h,c;w||(w={}),this.options=w,this.options.version||(this.options.version="1.0"),h=w.stringify||{};for(m in h){if(!C.call(h,m))continue;c=h[m],this[m]=c}}return v.prototype.name=function(w){return this.options.noValidation?w:this.assertLegalName(""+w||"")},v.prototype.text=function(w){return this.options.noValidation?w:this.assertLegalChar(this.textEscape(""+w||""))},v.prototype.cdata=function(w){return this.options.noValidation?w:(w=""+w||"",w=w.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(w))},v.prototype.comment=function(w){if(this.options.noValidation)return w;if(w=""+w||"",w.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+w);return this.assertLegalChar(w)},v.prototype.raw=function(w){return this.options.noValidation?w:""+w||""},v.prototype.attValue=function(w){return this.options.noValidation?w:this.assertLegalChar(this.attEscape(w=""+w||""))},v.prototype.insTarget=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.insValue=function(w){if(this.options.noValidation)return w;if(w=""+w||"",w.match(/\?>/))throw new Error("Invalid processing instruction value: "+w);return this.assertLegalChar(w)},v.prototype.xmlVersion=function(w){if(this.options.noValidation)return w;if(w=""+w||"",!w.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+w);return w},v.prototype.xmlEncoding=function(w){if(this.options.noValidation)return w;if(w=""+w||"",!w.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+w);return this.assertLegalChar(w)},v.prototype.xmlStandalone=function(w){return this.options.noValidation?w:w?"yes":"no"},v.prototype.dtdPubID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.dtdSysID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.dtdElementValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.dtdAttType=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.dtdAttDefault=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.dtdEntityValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.dtdNData=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},v.prototype.convertAttKey="@",v.prototype.convertPIKey="?",v.prototype.convertTextKey="#text",v.prototype.convertCDataKey="#cdata",v.prototype.convertCommentKey="#comment",v.prototype.convertRawKey="#raw",v.prototype.assertLegalChar=function(w){var m,h;if(this.options.noValidation)return w;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=w.match(m))throw new Error("Invalid character in string: "+w+" at index "+h.index)}else if(this.options.version==="1.1"&&(m=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,h=w.match(m)))throw new Error("Invalid character in string: "+w+" at index "+h.index);return w},v.prototype.assertLegalName=function(w){var m;if(this.options.noValidation)return w;if(this.assertLegalChar(w),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])*$/,!w.match(m))throw new Error("Invalid character in name");return w},v.prototype.textEscape=function(w){var m;return this.options.noValidation?w:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(m,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},v.prototype.attEscape=function(w){var m;return this.options.noValidation?w:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(m,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},v}()}).call(void 0)},{}],280:[function(j,P,d){"use strict";var O=j("babel-runtime/core-js/object/create"),E=C(O);function C(v){return v&&v.__esModule?v:{default:v}}(function(){var v,w,m,h=function(r,o){for(var n in o)c.call(o,n)&&(r[n]=o[n]);function e(){this.constructor=r}return e.prototype=o.prototype,r.prototype=new e,r.__super__=o.prototype,r},c={}.hasOwnProperty;v=j("./NodeType"),w=j("./XMLCharacterData"),P.exports=m=function(i){h(r,i);function r(o,n){if(r.__super__.constructor.call(this,o),n==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=v.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,e,s;for(s="",e=this.previousSibling;e;)s=e.data+s,e=e.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(o){return this.options.writer.text(this,this.options.writer.filterOptions(o))},r.prototype.splitText=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(w)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(j,P,d){"use strict";(function(){var O,E,C,v,w,m,h,c,i,r,o,n,e,s,t,a,l,u={}.hasOwnProperty;l=j("./Utility").assign,O=j("./NodeType"),i=j("./XMLDeclaration"),r=j("./XMLDocType"),C=j("./XMLCData"),v=j("./XMLComment"),n=j("./XMLElement"),s=j("./XMLRaw"),t=j("./XMLText"),e=j("./XMLProcessingInstruction"),o=j("./XMLDummy"),w=j("./XMLDTDAttList"),m=j("./XMLDTDElement"),h=j("./XMLDTDEntity"),c=j("./XMLDTDNotation"),E=j("./WriterState"),P.exports=a=function(){function f(p){var g,A,y;p||(p={}),this.options=p,A=p.writer||{};for(g in A){if(!u.call(A,g))continue;y=A[g],this["_"+g]=this[g],this[g]=y}}return f.prototype.filterOptions=function(p){var g,A,y,x,T,S,b,_;return p||(p={}),p=l({},this.options,p),g={writer:this},g.pretty=p.pretty||!1,g.allowEmpty=p.allowEmpty||!1,g.indent=(A=p.indent)!=null?A:" ",g.newline=(y=p.newline)!=null?y:`
`,g.offset=(x=p.offset)!=null?x:0,g.dontPrettyTextNodes=(T=(S=p.dontPrettyTextNodes)!=null?S:p.dontprettytextnodes)!=null?T:0,g.spaceBeforeSlash=(b=(_=p.spaceBeforeSlash)!=null?_:p.spacebeforeslash)!=null?b:"",g.spaceBeforeSlash===!0&&(g.spaceBeforeSlash=" "),g.suppressPrettyCount=0,g.user={},g.state=E.None,g},f.prototype.indent=function(p,g,A){var y;return!g.pretty||g.suppressPrettyCount?"":g.pretty&&(y=(A||0)+g.offset+1,y>0)?new Array(y).join(g.indent):""},f.prototype.endline=function(p,g,A){return!g.pretty||g.suppressPrettyCount?"":g.newline},f.prototype.attribute=function(p,g,A){var y;return this.openAttribute(p,g,A),y=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,g,A),y},f.prototype.cdata=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<![CDATA[",g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+="]]>"+this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.comment=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<!-- ",g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+=" -->"+this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.declaration=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<?xml",g.state=E.InsideTag,y+=' version="'+p.version+'"',p.encoding!=null&&(y+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(y+=' standalone="'+p.standalone+'"'),g.state=E.CloseTag,y+=g.spaceBeforeSlash+"?>",y+=this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.docType=function(p,g,A){var y,x,T,S,b;if(A||(A=0),this.openNode(p,g,A),g.state=E.OpenTag,S=this.indent(p,g,A),S+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?S+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(S+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(S+=" [",S+=this.endline(p,g,A),g.state=E.InsideTag,b=p.children,x=0,T=b.length;x<T;x++)y=b[x],S+=this.writeChildNode(y,g,A+1);g.state=E.CloseTag,S+="]"}return g.state=E.CloseTag,S+=g.spaceBeforeSlash+">",S+=this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),S},f.prototype.element=function(p,g,A){var y,x,T,S,b,_,I,L,D,N,M,B,R,H;A||(A=0),N=!1,M="",this.openNode(p,g,A),g.state=E.OpenTag,M+=this.indent(p,g,A)+"<"+p.name,B=p.attribs;for(D in B){if(!u.call(B,D))continue;y=B[D],M+=this.attribute(y,g,A)}if(T=p.children.length,S=T===0?null:p.children[0],T===0||p.children.every(function(F){return(F.type===O.Text||F.type===O.Raw)&&F.value===""}))g.allowEmpty?(M+=">",g.state=E.CloseTag,M+="</"+p.name+">"+this.endline(p,g,A)):(g.state=E.CloseTag,M+=g.spaceBeforeSlash+"/>"+this.endline(p,g,A));else if(g.pretty&&T===1&&(S.type===O.Text||S.type===O.Raw)&&S.value!=null)M+=">",g.state=E.InsideTag,g.suppressPrettyCount++,N=!0,M+=this.writeChildNode(S,g,A+1),g.suppressPrettyCount--,N=!1,g.state=E.CloseTag,M+="</"+p.name+">"+this.endline(p,g,A);else{if(g.dontPrettyTextNodes){for(R=p.children,b=0,I=R.length;b<I;b++)if(x=R[b],(x.type===O.Text||x.type===O.Raw)&&x.value!=null){g.suppressPrettyCount++,N=!0;break}}for(M+=">"+this.endline(p,g,A),g.state=E.InsideTag,H=p.children,_=0,L=H.length;_<L;_++)x=H[_],M+=this.writeChildNode(x,g,A+1);g.state=E.CloseTag,M+=this.indent(p,g,A)+"</"+p.name+">",N&&g.suppressPrettyCount--,M+=this.endline(p,g,A),g.state=E.None}return this.closeNode(p,g,A),M},f.prototype.writeChildNode=function(p,g,A){switch(p.type){case O.CData:return this.cdata(p,g,A);case O.Comment:return this.comment(p,g,A);case O.Element:return this.element(p,g,A);case O.Raw:return this.raw(p,g,A);case O.Text:return this.text(p,g,A);case O.ProcessingInstruction:return this.processingInstruction(p,g,A);case O.Dummy:return"";case O.Declaration:return this.declaration(p,g,A);case O.DocType:return this.docType(p,g,A);case O.AttributeDeclaration:return this.dtdAttList(p,g,A);case O.ElementDeclaration:return this.dtdElement(p,g,A);case O.EntityDeclaration:return this.dtdEntity(p,g,A);case O.NotationDeclaration:return this.dtdNotation(p,g,A);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},f.prototype.processingInstruction=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<?",g.state=E.InsideTag,y+=p.target,p.value&&(y+=" "+p.value),g.state=E.CloseTag,y+=g.spaceBeforeSlash+"?>",y+=this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.raw=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A),g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+=this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.text=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A),g.state=E.InsideTag,y+=p.value,g.state=E.CloseTag,y+=this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.dtdAttList=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<!ATTLIST",g.state=E.InsideTag,y+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(y+=" "+p.defaultValueType),p.defaultValue&&(y+=' "'+p.defaultValue+'"'),g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.dtdElement=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<!ELEMENT",g.state=E.InsideTag,y+=" "+p.name+" "+p.value,g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.dtdEntity=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<!ENTITY",g.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)),g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.dtdNotation=function(p,g,A){var y;return this.openNode(p,g,A),g.state=E.OpenTag,y=this.indent(p,g,A)+"<!NOTATION",g.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+'"'),g.state=E.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=E.None,this.closeNode(p,g,A),y},f.prototype.openNode=function(p,g,A){},f.prototype.closeNode=function(p,g,A){},f.prototype.openAttribute=function(p,g,A){},f.prototype.closeAttribute=function(p,g,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(j,P,d){"use strict";(function(){var O,E,C,v,w,m,h,c,i,r;r=j("./Utility"),c=r.assign,i=r.isFunction,C=j("./XMLDOMImplementation"),v=j("./XMLDocument"),w=j("./XMLDocumentCB"),h=j("./XMLStringWriter"),m=j("./XMLStreamWriter"),O=j("./NodeType"),E=j("./WriterState"),P.exports.create=function(o,n,e,s){var t,a;if(o==null)throw new Error("Root element needs a name.");return s=c({},n,e,s),t=new v(s),a=t.element(o),s.headless||(t.declaration(s),(s.pubID!=null||s.sysID!=null)&&t.dtd(s)),a},P.exports.begin=function(o,n,e){var s;return i(o)&&(s=[o,n],n=s[0],e=s[1],o={}),n?new w(o,n,e):new v(o)},P.exports.stringWriter=function(o){return new h(o)},P.exports.streamWriter=function(o,n){return new m(o,n)},P.exports.implementation=new C,P.exports.nodeType=O,P.exports.writerState=E}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(j,P,d){P.exports=E;var O=Object.prototype.hasOwnProperty;function E(){for(var C={},v=0;v<arguments.length;v++){var w=arguments[v];for(var m in w)O.call(w,m)&&(C[m]=w[m])}return C}},{}],284:[function(j,P,d){"use strict";var O=j("buffer").Buffer,E=j("./sha"),C=j("./md5"),v={sha1:E,md5:C},w=64,m=O.alloc(w);m.fill(0);function h(r,o,n){O.isBuffer(o)||(o=O.from(o)),O.isBuffer(n)||(n=O.from(n)),o.length>w?o=r(o):o.length<w&&(o=O.concat([o,m],w));for(var e=O.alloc(w),s=O.alloc(w),t=0;t<w;t++)e[t]=o[t]^54,s[t]=o[t]^92;var a=r(O.concat([e,n]));return r(O.concat([s,a]))}function c(r,o){r=r||"sha1";var n=v[r],e=[],s=0;return n||i("algorithm:",r,"is not yet supported"),{update:function(a){return O.isBuffer(a)||(a=O.from(a)),e.push(a),s+=a.length,this},digest:function(a){var l=O.concat(e),u=o?h(n,o,l):n(l);return e=null,a?u.toString(a):u}}}function i(){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,o){return c(r,o)},d.createCredentials=function(){i("sorry,createCredentials is not implemented yet")},d.createCipher=function(){i("sorry,createCipher is not implemented yet")},d.createCipheriv=function(){i("sorry,createCipheriv is not implemented yet")},d.createDecipher=function(){i("sorry,createDecipher is not implemented yet")},d.createDecipheriv=function(){i("sorry,createDecipheriv is not implemented yet")},d.createSign=function(){i("sorry,createSign is not implemented yet")},d.createVerify=function(){i("sorry,createVerify is not implemented yet")},d.createDiffieHellman=function(){i("sorry,createDiffieHellman is not implemented yet")},d.pbkdf2=function(){i("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(j,P,d){"use strict";var O=j("buffer").Buffer,E=4,C=O.alloc(E);C.fill(0);var v=8;function w(c,i){if(c.length%E!==0){var r=c.length+(E-c.length%E);c=O.concat([c,C],r)}for(var o=[],n=i?c.readInt32BE:c.readInt32LE,e=0;e<c.length;e+=E)o.push(n.call(c,e));return o}function m(c,i,r){for(var o=O.alloc(i),n=r?o.writeInt32BE:o.writeInt32LE,e=0;e<c.length;e++)n.call(o,c[e],e*4,!0);return o}function h(c,i,r,o){O.isBuffer(c)||(c=O.from(c));var n=i(w(c,o),c.length*v);return m(n,r,o)}P.exports={hash:h}},{buffer:73}],286:[function(j,P,d){"use strict";var O=j("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function C(o,n){o[n>>5]|=128<<n%32,o[(n+64>>>9<<4)+14]=n;for(var e=1732584193,s=-271733879,t=-1732584194,a=271733878,l=0;l<o.length;l+=16){var u=e,f=s,p=t,g=a;e=w(e,s,t,a,o[l+0],7,-680876936),a=w(a,e,s,t,o[l+1],12,-389564586),t=w(t,a,e,s,o[l+2],17,606105819),s=w(s,t,a,e,o[l+3],22,-1044525330),e=w(e,s,t,a,o[l+4],7,-176418897),a=w(a,e,s,t,o[l+5],12,1200080426),t=w(t,a,e,s,o[l+6],17,-1473231341),s=w(s,t,a,e,o[l+7],22,-45705983),e=w(e,s,t,a,o[l+8],7,1770035416),a=w(a,e,s,t,o[l+9],12,-1958414417),t=w(t,a,e,s,o[l+10],17,-42063),s=w(s,t,a,e,o[l+11],22,-1990404162),e=w(e,s,t,a,o[l+12],7,1804603682),a=w(a,e,s,t,o[l+13],12,-40341101),t=w(t,a,e,s,o[l+14],17,-1502002290),s=w(s,t,a,e,o[l+15],22,1236535329),e=m(e,s,t,a,o[l+1],5,-165796510),a=m(a,e,s,t,o[l+6],9,-1069501632),t=m(t,a,e,s,o[l+11],14,643717713),s=m(s,t,a,e,o[l+0],20,-373897302),e=m(e,s,t,a,o[l+5],5,-701558691),a=m(a,e,s,t,o[l+10],9,38016083),t=m(t,a,e,s,o[l+15],14,-660478335),s=m(s,t,a,e,o[l+4],20,-405537848),e=m(e,s,t,a,o[l+9],5,568446438),a=m(a,e,s,t,o[l+14],9,-1019803690),t=m(t,a,e,s,o[l+3],14,-187363961),s=m(s,t,a,e,o[l+8],20,1163531501),e=m(e,s,t,a,o[l+13],5,-1444681467),a=m(a,e,s,t,o[l+2],9,-51403784),t=m(t,a,e,s,o[l+7],14,1735328473),s=m(s,t,a,e,o[l+12],20,-1926607734),e=h(e,s,t,a,o[l+5],4,-378558),a=h(a,e,s,t,o[l+8],11,-2022574463),t=h(t,a,e,s,o[l+11],16,1839030562),s=h(s,t,a,e,o[l+14],23,-35309556),e=h(e,s,t,a,o[l+1],4,-1530992060),a=h(a,e,s,t,o[l+4],11,1272893353),t=h(t,a,e,s,o[l+7],16,-155497632),s=h(s,t,a,e,o[l+10],23,-1094730640),e=h(e,s,t,a,o[l+13],4,681279174),a=h(a,e,s,t,o[l+0],11,-358537222),t=h(t,a,e,s,o[l+3],16,-722521979),s=h(s,t,a,e,o[l+6],23,76029189),e=h(e,s,t,a,o[l+9],4,-640364487),a=h(a,e,s,t,o[l+12],11,-421815835),t=h(t,a,e,s,o[l+15],16,530742520),s=h(s,t,a,e,o[l+2],23,-995338651),e=c(e,s,t,a,o[l+0],6,-198630844),a=c(a,e,s,t,o[l+7],10,1126891415),t=c(t,a,e,s,o[l+14],15,-1416354905),s=c(s,t,a,e,o[l+5],21,-57434055),e=c(e,s,t,a,o[l+12],6,1700485571),a=c(a,e,s,t,o[l+3],10,-1894986606),t=c(t,a,e,s,o[l+10],15,-1051523),s=c(s,t,a,e,o[l+1],21,-2054922799),e=c(e,s,t,a,o[l+8],6,1873313359),a=c(a,e,s,t,o[l+15],10,-30611744),t=c(t,a,e,s,o[l+6],15,-1560198380),s=c(s,t,a,e,o[l+13],21,1309151649),e=c(e,s,t,a,o[l+4],6,-145523070),a=c(a,e,s,t,o[l+11],10,-1120210379),t=c(t,a,e,s,o[l+2],15,718787259),s=c(s,t,a,e,o[l+9],21,-343485551),e=i(e,u),s=i(s,f),t=i(t,p),a=i(a,g)}return Array(e,s,t,a)}function v(o,n,e,s,t,a){return i(r(i(i(n,o),i(s,a)),t),e)}function w(o,n,e,s,t,a,l){return v(n&e|~n&s,o,n,t,a,l)}function m(o,n,e,s,t,a,l){return v(n&s|e&~s,o,n,t,a,l)}function h(o,n,e,s,t,a,l){return v(n^e^s,o,n,t,a,l)}function c(o,n,e,s,t,a,l){return v(e^(n|~s),o,n,t,a,l)}function i(o,n){var e=(o&65535)+(n&65535),s=(o>>16)+(n>>16)+(e>>16);return s<<16|e&65535}function r(o,n){return o<<n|o>>>32-n}P.exports=function(n){return O.hash(n,C,16)}},{"./helpers":285}],287:[function(j,P,d){"use strict";var O=j("./helpers");function E(h,c){h[c>>5]|=128<<24-c%32,h[(c+64>>9<<4)+15]=c;for(var i=Array(80),r=1732584193,o=-271733879,n=-1732584194,e=271733878,s=-1009589776,t=0;t<h.length;t+=16){for(var a=r,l=o,u=n,f=e,p=s,g=0;g<80;g++){g<16?i[g]=h[t+g]:i[g]=m(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var A=w(w(m(r,5),C(g,o,n,e)),w(w(s,i[g]),v(g)));s=e,e=n,n=m(o,30),o=r,r=A}r=w(r,a),o=w(o,l),n=w(n,u),e=w(e,f),s=w(s,p)}return Array(r,o,n,e,s)}function C(h,c,i,r){return h<20?c&i|~c&r:h<40?c^i^r:h<60?c&i|c&r|i&r:c^i^r}function v(h){return h<20?1518500249:h<40?1859775393:h<60?-1894007588:-899497514}function w(h,c){var i=(h&65535)+(c&65535),r=(h>>16)+(c>>16)+(i>>16);return r<<16|i&65535}function m(h,c){return h<<c|h>>>32-c}P.exports=function(c){return O.hash(c,E,20,!0)}},{"./helpers":285}],288:[function(j,P,d){"use strict";P.exports=function(){return function(){}}},{}],289:[function(j,P,d){(function(O){"use strict";var E=j("babel-runtime/helpers/typeof"),C=v(E);function v(r){return r&&r.__esModule?r:{default:r}}var w=j("stream"),m=w.Stream,h=j("../lib/common/utils/isArray"),c=h.isArray;P.exports.string=function(o){return typeof o=="string"},P.exports.array=c,P.exports.buffer=O.isBuffer;function i(r){return r instanceof m}P.exports.writableStream=function(o){return i(o)&&typeof o._write=="function"&&(0,C.default)(o._writableState)==="object"}}).call(this,{isBuffer:j("../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(j,P,d){"use strict";d.encodeURIComponent=function(O){try{return encodeURIComponent(O)}catch(E){return O}},d.escape=j("escape-html"),d.timestamp=function(E){if(E){var C=E;return typeof C=="string"&&(C=Number(C)),String(E).length===10&&(C*=1e3),new Date(C)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(j,P,d){(function(O,E){"use strict";var C=j("babel-runtime/core-js/json/stringify"),v=h(C),w=j("babel-runtime/helpers/typeof"),m=h(w);function h(g){return g&&g.__esModule?g:{default:g}}var c=j("util"),i=j("url"),r=j("http"),o=j("https"),n=j("debug")("urllib"),e=j("humanize-ms"),s,t=0,a=Math.pow(2,31)-10,l=/^https?:\/\//i;function u(g,A){return g===void 0?A:g}function f(g,A){return function(y,x,T){if(y)return A(y);g({data:x,status:T.statusCode,headers:T.headers,res:T})}}d.TIMEOUTS=[e("300s"),e("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=j("any-promise")),new s(function(T,S){d.requestWithCallback(A,y,f(T,S))}))},d.requestWithCallback=function(A,y,x){if(!A||typeof A!="string"&&(typeof A=="undefined"?"undefined":(0,m.default)(A))!=="object"){var T=c.format("expect request url to be a string or a http request options, but got %j",A);throw new Error(T)}arguments.length===2&&typeof y=="function"&&(x=y,y=null),y=y||{},t>=a&&(t=0);var S=++t;y.requestUrls=y.requestUrls||[];var b={requestId:S,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(),I;typeof A=="string"?(l.test(A)||(A="http://"+A),I=i.parse(A)):I=A;var L=(y.type||y.method||I.method||"GET").toUpperCase(),D=I.port||80,N=r,M=u(y.agent,d.agent),B=y.fixJSONCtlChars;I.protocol==="https:"&&(N=o,M=u(y.httpsAgent,d.httpsAgent),I.port||(D=443));var R={host:I.hostname||I.host||"localhost",path:I.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 H=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F<H.length;F++){var K=H[F];y.hasOwnProperty(K)&&(R[K]=y[K])}R.rejectUnauthorized===!1&&!R.hasOwnProperty("secureOptions")&&(R.secureOptions=j("constants").SSL_OP_NO_TLSv1_2);var U=y.auth||I.auth;U&&(R.auth=U);var V=y.content||y.data,z=L==="GET"||L==="HEAD"||y.dataAsQueryString;if(!y.content&&(V&&!(typeof V=="string"||E.isBuffer(V))))if(z)V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V);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"?V=(0,v.default)(V):V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V)}z&&V&&(R.path+=(I.query?"&":"?")+V,V=null);var q=0;if(V){var ce=V.length;E.isBuffer(V)||(ce=E.byteLength(V)),q=R.headers["Content-Length"]=ce}y.dataType==="json"&&(R.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(R);var ie=null,ve=null,Ee=null,Le=!1,He=!1,ge=0,Fe=-1,Q=!1,fe="",Je="",ne=null;y.timing&&(ne={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function X(){ie&&(clearTimeout(ie),ie=null)}function G(){ve&&(clearTimeout(ve),ve=null)}function te(Ie,rt,Ge){if(G(),!x){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),S,O.pid,R.method,A),Ie&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),S,O.pid,Ie.name,Ie.message,Ie.stack);return}var vt=x;x=null;var Ot={};if(Ge&&(Fe=Ge.statusCode,Ot=Ge.headers),Fe===401&&Ot["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var Et=Ot["www-authenticate"];if(Et.indexOf("Digest ")>=0)return n("Request#%d %s: got digest auth header WWW-Authenticate: %s",S,A,Et),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(R.method,R.path,Et,y.digestAuth),n("Request#%d %s: auth with digest header: %s",S,A,y.headers.Authorization),Ge.headers["set-cookie"]&&(y.headers.Cookie=Ge.headers["set-cookie"].join(";")),d.requestWithCallback(A,y,vt)}var Tt=Date.now()-_;ne&&(ne.contentDownload=Tt),n("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Tt,ge,Fe,R.method,R.host,R.path,He,ne);var Rt={status:Fe,statusCode:Fe,headers:Ot,size:ge,aborted:Q,rt:Tt,keepAliveSocket:He,data:rt,requestUrls:y.requestUrls,timing:ne,remoteAddress:fe,remotePort:Je};if(Ie){var Be="";M&&typeof M.getCurrentStatus=="function"&&(Be=", agent status: "+(0,v.default)(M.getCurrentStatus())),Ie.message+=", "+R.method+" "+A+" "+Fe+" (connected: "+Le+", keepalive socket: "+He+Be+`)
headers: `+(0,v.default)(Ot),Ie.data=rt,Ie.path=R.path,Ie.status=Fe,Ie.headers=Ot,Ie.res=Rt}vt(Ie,rt,y.streaming?Ge:Rt),y.emitter&&(b.url=A,b.socket=gt&&gt.connection,b.options=R,b.size=q,y.emitter.emit("response",{requestId:S,error:Ie,ctx:y.ctx,req:b,res:Rt}))}function we(Ie){var rt=null;if(y.followRedirect&&statuses.redirect[Ie.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var Ge=Ie.headers.location;if(!Ge)rt=new Error("Got statusCode "+Ie.statusCode+" but cannot resolve next location from headers"),rt.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)rt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+A),rt.name="MaxRedirectError";else{var vt=y.formatRedirectUrl?y.formatRedirectUrl(A,Ge):i.resolve(A,Ge);n("Request#%d %s: `redirected` from %s to %s",S,R.path,A,vt),G(),y.headers&&y.headers.Host&&l.test(Ge)&&(y.headers.Host=null);var Ot=x;return x=null,d.requestWithCallback(vt,y,Ot),{redirect:!0,error:null}}}return{redirect:!1,error:rt}}!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 he(Ie,rt,Ge){var vt=Ie.headers["content-encoding"];return Ge(null,rt,vt)}var Pe=y.writeStream;n("Request#%d %s %s with headers %j, options.path: %s",S,L,A,R.headers,R.path),y.requestUrls.push(A);function Oe(Ie){if(ne&&(ne.waiting=Date.now()-_),n("Request#%d %s `req response` event emit: status %d, headers: %j",S,A,Ie.statusCode,Ie.headers),y.streaming){var rt=we(Ie);if(rt.redirect){Ie.resume();return}return rt.error?(Ie.resume(),te(rt.error,null,Ie)):te(null,null,Ie)}if(Ie.on("close",function(){n("Request#%d %s: `res close` event emit, total size %d",S,A,ge)}),Ie.on("error",function(){n("Request#%d %s: `res error` event emit, total size %d",S,A,ge)}),Ie.on("aborted",function(){Q=!0,n("Request#%d %s: `res aborted` event emit, total size %d",S,A,ge)}),Pe){var rt=we(Ie);if(rt.redirect){Ie.resume();return}return rt.error?(Ie.resume(),Pe.end(),te(rt.error,null,Ie)):(y.consumeWriteStream===!1?Ie.on("end",te.bind(null,null,null,Ie)):isNode010||isNode012?first([[Pe,"close"],[Ie,"aborted"]],function(Ot,Et,Tt){n("Request#%d %s: writeStream or res %s event emitted",S,A,Tt),te(Ee||null,null,Ie)}):Pe.on("close",function(){n("Request#%d %s: writeStream close event emitted",S,A),te(Ee||null,null,Ie)}),Ie.pipe(Pe))}var Ge=[];Ie.on("data",function(vt){n("Request#%d %s: `res data` event emit, size %d",S,A,vt.length),ge+=vt.length,Ge.push(vt)}),Ie.on("end",function(){var vt=E.concat(Ge,ge);if(n("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",S,A,ge,Ie._dumped),Ee)return te(Ee,vt,Ie);var Ot=we(Ie);if(Ot.error)return te(Ot.error,vt,Ie);if(Ot.redirect)return;he(Ie,vt,function(Et,Tt,Rt){if(Et)return te(Et,vt,Ie);if(!Rt&&p.indexOf(y.dataType)>=0){try{Tt=decodeBodyByCharset(Tt,Ie)}catch(Z){return n("decodeBodyByCharset error: %s",Z),te(null,Tt,Ie)}if(y.dataType==="json")if(ge===0)Tt=null;else{var Be=parseJSON(Tt,B);Be.error?Et=Be.error:Tt=Be.data}}Q&&n("Request#%d %s: Remote socket was terminated before `response.end()` was called",S,A),te(Et,Tt,Ie)})})}var le,me;Array.isArray(y.timeout)?(le=e(y.timeout[0]),me=e(y.timeout[1])):le=me=e(y.timeout),n("ConnectTimeout: %d, ResponseTimeout: %d",le,me);function _e(){n("Connect timer ticking, timeout: %d",le),ie=setTimeout(function(){ie=null,Fe===-1&&(Fe=-2);var Ie="Connect timeout for "+le+"ms",rt="ConnectionTimeoutError";gt.socket||(rt="SocketAssignTimeoutError",Ie+=", working sockets is full"),Ee=new Error(Ie),Ee.name=rt,Ee.requestId=S,n("ConnectTimeout: Request#%d %s %s: %s, connected: %s",S,A,Ee.name,Ie,Le),et()},le)}function $e(){n("Response timer ticking, timeout: %d",me),ve=setTimeout(function(){ve=null;var Ie="Response timeout for "+me+"ms",rt="ResponseTimeoutError";Ee=new Error(Ie),Ee.name=rt,Ee.requestId=S,n("ResponseTimeout: Request#%d %s %s: %s, connected: %s",S,A,Ee.name,Ie,Le),et()},me)}var gt;R.mode=y.mode?y.mode:"";try{gt=N.request(R,Oe)}catch(Ie){return te(Ie)}typeof window=="undefined"?_e():gt.on("requestTimeout",function(){Fe===-1&&(Fe=-2);var Ie="Connect timeout for "+le+"ms",rt="ConnectionTimeoutError";Ee=new Error(Ie),Ee.name=rt,Ee.requestId=S,et()});function et(){n("Request#%d %s abort, connected: %s",S,A,Le),gt.socket||(Ee.noSocket=!0,te(Ee)),gt.abort()}return ne&&gt.on("finish",function(){ne.requestSent=Date.now()-_}),gt.once("socket",function(Ie){ne&&(ne.queuing=Date.now()-_),isNode010&&Ie.socket&&(Ie=Ie.socket);var rt=Ie.readyState;if(rt==="opening"){Ie.once("lookup",function(Ge,vt,Ot){n("Request#%d %s lookup: %s, %s, %s",S,A,Ge,vt,Ot),ne&&(ne.dnslookup=Date.now()-_),vt&&(fe=vt)}),Ie.once("connect",function(){ne&&(ne.connected=Date.now()-_),X(),$e(),n("Request#%d %s new socket connected",S,A),Le=!0,fe||(fe=Ie.remoteAddress),Je=Ie.remotePort});return}n("Request#%d %s reuse socket connected, readyState: %s",S,A,rt),Le=!0,He=!0,fe||(fe=Ie.remoteAddress),Je=Ie.remotePort,X(),$e()}),gt.on("error",function(Ie){(Ie.name==="Error"||Ie.name==="TypeError")&&(Ie.name=Le?"ResponseError":"RequestError"),Ie.message+=' (req "error")',n("Request#%d %s `req error` event emit, %s: %s",S,A,Ie.name,Ie.message),te(Ee||Ie)}),Pe&&Pe.once("error",function(Ie){Ie.message+=' (writeStream "error")',Ee=Ie,n("Request#%d %s `writeStream error` event emit, %s: %s",S,A,Ie.name,Ie.message),et()}),y.stream?(y.stream.pipe(gt),y.stream.once("error",function(Ie){Ie.message+=' (stream "error")',Ee=Ie,n("Request#%d %s `readStream error` event emit, %s: %s",S,A,Ie.name,Ie.message),et()})):gt.end(V),gt.requestId=S,gt}}).call(this,j("_process"),j("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__("IyRk"))},n1HI:function(j,P,d){var O=d("hX1E"),E=O.normalizeRadian,C=Math.PI*2;function v(w,m,h,c,i,r,o,n,e){if(o===0)return!1;var s=o;n-=w,e-=m;var t=Math.sqrt(n*n+e*e);if(t-s>h||t+s<h)return!1;if(Math.abs(c-i)%C<1e-4)return!0;if(r){var a=c;c=E(i),i=E(a)}else c=E(c),i=E(i);c>i&&(i+=C);var l=Math.atan2(e,n);return l<0&&(l+=C),l>=c&&l<=i||l+C>=c&&l+C<=i}P.containStroke=v},n4Lv:function(j,P,d){var O=d("7hqr"),E=O.isDimensionStacked,C=d("bYtY"),v=C.map;function w(c,i,r){var o=c.getBaseAxis(),n=c.getOtherAxis(o),e=m(n,r),s=o.dim,t=n.dim,a=i.mapDimension(t),l=i.mapDimension(s),u=t==="x"||t==="radius"?1:0,f=v(c.dimensions,function(A){return i.mapDimension(A)}),p,g=i.getCalculationInfo("stackResultDimension");return(p|=E(i,f[0]))&&(f[0]=g),(p|=E(i,f[1]))&&(f[1]=g),{dataDimsForPoint:f,valueStart:e,valueAxisDim:t,baseAxisDim:s,stacked:!!p,valueDim:a,baseDim:l,baseDataOffset:u,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function m(c,i){var r=0,o=c.scale.getExtent();return i==="start"?r=o[0]:i==="end"?r=o[1]:o[0]>0?r=o[0]:o[1]<0&&(r=o[1]),r}function h(c,i,r,o){var n=NaN;c.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),o)),isNaN(n)&&(n=c.valueStart);var e=c.baseDataOffset,s=[];return s[e]=r.get(c.baseDim,o),s[1-e]=n,i.dataToPoint(s)}P.prepareDataCoordInfo=w,P.getStackedOnPoint=h},n6Mw:function(j,P,d){var O=d("SrGk"),E=d("bYtY"),C=d("Fofx");function v(m,h){O.call(this,m,h,"clipPath","__clippath_in_use__")}E.inherits(v,O),v.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)},v.prototype.updateDom=function(m,h,c){if(h&&h.length>0){var i=this.getDefs(!0),r=h[0],o,n,e=c?"_textDom":"_dom";r[e]?(n=r[e].getAttribute("id"),o=r[e],i.contains(o)||i.appendChild(o)):(n="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,o=this.createElement("clipPath"),o.setAttribute("id",n),i.appendChild(o),r[e]=o);var s=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!c){var t=Array.prototype.slice.call(r.transform);C.mul(r.transform,r.parent.invTransform,r.transform),s.brush(r),r.transform=t}else s.brush(r);var a=this.getSvgElement(r);o.innerHTML="",o.appendChild(a.cloneNode()),m.setAttribute("clip-path","url(#"+n+")"),h.length>1&&this.updateDom(o,h.slice(1),c)}else m&&m.setAttribute("clip-path","none")},v.prototype.markUsed=function(m){var h=this;m.__clipPaths&&E.each(m.__clipPaths,function(c){c._dom&&O.prototype.markUsed.call(h,c._dom),c._textDom&&O.prototype.markUsed.call(h,c._textDom)})};var w=v;j.exports=w},nCxF:function(j,P,d){var O=d("QBsz"),E=O.min,C=O.max,v=O.scale,w=O.distance,m=O.add,h=O.clone,c=O.sub;function i(r,o,n,e){var s=[],t=[],a=[],l=[],u,f,p,g;if(e){p=[Infinity,Infinity],g=[-Infinity,-Infinity];for(var A=0,y=r.length;A<y;A++)E(p,p,r[A]),C(g,g,r[A]);E(p,p,e[0]),C(g,g,e[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(t,f,u),v(t,t,o);var T=w(x,u),S=w(x,f),b=T+S;b!==0&&(T/=b,S/=b),v(a,t,-T),v(l,t,S);var _=m([],x,a),I=m([],x,l);e&&(C(_,_,p),E(_,_,g),C(I,I,p),E(I,I,g)),s.push(_),s.push(I)}return n&&s.push(s.shift()),s}j.exports=i},nKiI:function(j,P,d){var O=d("bYtY"),E=d("mFDi"),C=d("OELB"),v=C.parsePercent,w=C.MAX_SAFE_INTEGER,m=d("+TT/"),h=d("VaxA"),c=Math.max,i=Math.min,r=O.retrieve,o=O.each,n=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],s=["upperLabel","show"],t=["upperLabel","height"],a={seriesType:"treemap",reset:function(_,I,L,D){var N=L.getWidth(),M=L.getHeight(),B=_.option,R=m.getLayoutRect(_.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()}),H=B.size||[],F=v(r(R.width,H[0]),N),K=v(r(R.height,H[1]),M),U=D&&D.type,V=["treemapZoomToNode","treemapRootToNode"],z=h.retrieveTargetInfo(D,V,_),Y=U==="treemapRender"||U==="treemapMove"?D.rootRect:null,q=_.getViewRoot(),ce=h.getPathToRoot(q);if(U!=="treemapMove"){var ie=U==="treemapZoomToNode"?x(_,z,q,F,K):Y?[Y.width,Y.height]:[F,K],ve=B.sort;ve&&ve!=="asc"&&ve!=="desc"&&(ve="desc");var Ee={squareRatio:B.squareRatio,sort:ve,leafDepth:B.leafDepth};q.hostTree.clearLayouts();var Le={x:0,y:0,width:ie[0],height:ie[1],area:ie[0]*ie[1]};q.setLayout(Le),l(q,Ee,!1,0);var Le=q.getLayout();o(ce,function(ge,Fe){var Q=(ce[Fe+1]||q).getValue();ge.setLayout(O.extend({dataExtent:[Q,Q],borderWidth:0,upperHeight:0},Le))})}var He=_.getData().tree.root;He.setLayout(T(R,Y,z),!0),_.setLayoutInfo(R),S(He,new E(-R.x,-R.y,N,M),ce,q,0)}};function l(_,I,L,D){var N,M;if(_.isRemoved())return;var B=_.getLayout();N=B.width,M=B.height;var R=_.getModel(),H=R.get(n),F=R.get(e)/2,K=b(R),U=Math.max(H,K),V=H-F,z=U-F,R=_.getModel();_.setLayout({borderWidth:H,upperHeight:U,upperLabelHeight:K},!0),N=c(N-2*V,0),M=c(M-V-z,0);var Y=N*M,q=u(_,R,Y,I,L,D);if(!q.length)return;var ce={x:V,y:z,width:N,height:M},ie=i(N,M),ve=Infinity,Ee=[];Ee.area=0;for(var Le=0,He=q.length;Le<He;){var ge=q[Le];Ee.push(ge),Ee.area+=ge.getLayout().area;var Fe=A(Ee,ie,I.squareRatio);Fe<=ve?(Le++,ve=Fe):(Ee.area-=Ee.pop().getLayout().area,y(Ee,ie,ce,F,!1),ie=i(ce.width,ce.height),Ee.length=Ee.area=0,ve=Infinity)}if(Ee.length&&y(Ee,ie,ce,F,!0),!L){var Q=R.get("childrenVisibleMin");Q!=null&&Y<Q&&(L=!0)}for(var Le=0,He=q.length;Le<He;Le++)l(q[Le],I,L,D+1)}function u(_,I,L,D,N,M){var B=_.children||[],R=D.sort;R!=="asc"&&R!=="desc"&&(R=null);var H=D.leafDepth!=null&&D.leafDepth<=M;if(N&&!H)return _.viewChildren=[];B=O.filter(B,function(z){return!z.isRemoved()}),p(B,R);var F=g(I,B,R);if(F.sum===0)return _.viewChildren=[];if(F.sum=f(I,L,F.sum,R,B),F.sum===0)return _.viewChildren=[];for(var K=0,U=B.length;K<U;K++){var V=B[K].getValue()/F.sum*L;B[K].setLayout({area:V})}return H&&(B.length&&_.setLayout({isLeafRoot:!0},!0),B.length=0),_.viewChildren=B,_.setLayout({dataExtent:F.dataExtent},!0),B}function f(_,I,L,D,N){if(!D)return L;for(var M=_.get("visibleMin"),B=N.length,R=B,H=B-1;H>=0;H--){var F=N[D==="asc"?B-H-1:H].getValue();F/L*I<M&&(R=H,L-=F)}return D==="asc"?N.splice(0,B-R):N.splice(R,B-R),L}function p(_,I){return I&&_.sort(function(L,D){var N=I==="asc"?L.getValue()-D.getValue():D.getValue()-L.getValue();return N===0?I==="asc"?L.dataIndex-D.dataIndex:D.dataIndex-L.dataIndex:N}),_}function g(_,I,L){for(var D=0,N=0,M=I.length;N<M;N++)D+=I[N].getValue();var B=_.get("visualDimension"),R;if(!I||!I.length)R=[NaN,NaN];else if(B==="value"&&L)R=[I[I.length-1].getValue(),I[0].getValue()],L==="asc"&&R.reverse();else{var R=[Infinity,-Infinity];o(I,function(F){var K=F.getValue(B);K<R[0]&&(R[0]=K),K>R[1]&&(R[1]=K)})}return{sum:D,dataExtent:R}}function A(_,I,L){for(var D=0,N=Infinity,M=0,B,R=_.length;M<R;M++)B=_[M].getLayout().area,B&&(B<N&&(N=B),B>D&&(D=B));var H=_.area*_.area,F=I*I*L;return H?c(F*D/H,H/(F*N)):Infinity}function y(_,I,L,D,N){var M=I===L.width?0:1,B=1-M,R=["x","y"],H=["width","height"],F=L[R[M]],K=I?_.area/I:0;(N||K>L[H[B]])&&(K=L[H[B]]);for(var U=0,V=_.length;U<V;U++){var z=_[U],Y={},q=K?z.getLayout().area/K:0,ce=Y[H[B]]=c(K-2*D,0),ie=L[R[M]]+L[H[M]]-F,ve=U===V-1||ie<q?ie:q,Ee=Y[H[M]]=c(ve-2*D,0);Y[R[B]]=L[R[B]]+i(D,ce/2),Y[R[M]]=F+i(D,Ee/2),F+=ve,z.setLayout(Y,!0)}L[R[B]]+=K,L[H[B]]-=K}function x(_,I,L,D,N){var M=(I||{}).node,B=[D,N];if(!M||M===L)return B;for(var R,H=D*N,F=H*_.option.zoomToNodeRatio;R=M.parentNode;){for(var K=0,U=R.children,V=0,z=U.length;V<z;V++)K+=U[V].getValue();var Y=M.getValue();if(Y===0)return B;F*=K/Y;var q=R.getModel(),ce=q.get(n),ie=Math.max(ce,b(q,ce));F+=4*ce*ce+(3*ce+ie)*Math.pow(F,.5),F>w&&(F=w),M=R}F<H&&(F=H);var ve=Math.pow(F/H,.5);return[D*ve,N*ve]}function T(_,I,L){if(I)return{x:I.x,y:I.y};var D={x:0,y:0};if(!L)return D;var N=L.node,M=N.getLayout();if(!M)return D;for(var B=[M.width/2,M.height/2],R=N;R;){var H=R.getLayout();B[0]+=H.x,B[1]+=H.y,R=R.parentNode}return{x:_.width/2-B[0],y:_.height/2-B[1]}}function S(_,I,L,D,N){var M=_.getLayout(),B=L[N],R=B&&B===_;if(B&&!R||N===L.length&&_!==D)return;_.setLayout({isInView:!0,invisible:!R&&!I.intersect(M),isAboveViewRoot:R},!0);var H=new E(I.x-M.x,I.y-M.y,I.width,I.height);o(_.viewChildren||[],function(F){S(F,H,L,D,N+1)})}function b(_){return _.get(s)?_.get(t):0}j.exports=a},nPnh:function(j,P){var d=Math.round;function O(v,w,m){if(!w)return;var h=w.x1,c=w.x2,i=w.y1,r=w.y2;v.x1=h,v.x2=c,v.y1=i,v.y2=r;var o=m&&m.lineWidth;if(!o)return;d(h*2)===d(c*2)&&(v.x1=v.x2=C(h,o,!0)),d(i*2)===d(r*2)&&(v.y1=v.y2=C(i,o,!0))}function E(v,w,m){if(!w)return;var h=w.x,c=w.y,i=w.width,r=w.height;v.x=h,v.y=c,v.width=i,v.height=r;var o=m&&m.lineWidth;if(!o)return;v.x=C(h,o,!0),v.y=C(c,o,!0),v.width=Math.max(C(h+i,o,!1)-v.x,i===0?0:1),v.height=Math.max(C(c+r,o,!1)-v.y,r===0?0:1)}function C(v,w,m){if(!w)return v;var h=d(v*2);return(h+d(w))%2===0?h/2:(h+(m?1:-1))/2}P.subPixelOptimizeLine=O,P.subPixelOptimizeRect=E,P.subPixelOptimize=C},nRaC:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("0fbx"),v=d.n(C),w=d("OaEy"),m=d("R9oj")},nVfU:function(j,P,d){var O=d("bYtY"),E=d("OELB"),C=E.parsePercent,v=d("7hqr"),w=v.isDimensionStacked,m=d("zM3Q"),h="__ec_stack_",c=.5,i=typeof Float32Array!="undefined"?Float32Array:Array;function r(y){return y.get("stack")||h+y.seriesIndex}function o(y){return y.dim+y.index}function n(y){var x=[],T=y.axis,S="axis0";if(T.type!=="category")return;for(var b=T.getBandWidth(),_=0;_<y.count||0;_++)x.push(O.defaults({bandWidth:b,axisKey:S,stackId:h+_},y));for(var I=a(x),L=[],_=0;_<y.count;_++){var D=I[S][h+_];D.offsetCenter=D.offset+D.width/2,L.push(D)}return L}function e(y,x){var T=[];return x.eachSeriesByType(y,function(S){p(S)&&!g(S)&&T.push(S)}),T}function s(y){var x={};O.each(y,function(D){var N=D.coordinateSystem,M=N.getBaseAxis();if(M.type!=="time"&&M.type!=="value")return;for(var B=D.getData(),R=M.dim+"_"+M.index,H=B.mapDimension(M.dim),F=0,K=B.count();F<K;++F){var U=B.get(H,F);x[R]?x[R].push(U):x[R]=[U]}});var T=[];for(var S in x)if(x.hasOwnProperty(S)){var b=x[S];if(b){b.sort(function(D,N){return D-N});for(var _=null,I=1;I<b.length;++I){var L=b[I]-b[I-1];L>0&&(_=_===null?L:Math.min(_,L))}T[S]=_}}return T}function t(y){var x=s(y),T=[];return O.each(y,function(S){var b=S.coordinateSystem,_=b.getBaseAxis(),I=_.getExtent(),L;if(_.type==="category")L=_.getBandWidth();else if(_.type==="value"||_.type==="time"){var D=_.dim+"_"+_.index,N=x[D],M=Math.abs(I[1]-I[0]),B=_.scale.getExtent(),R=Math.abs(B[1]-B[0]);L=N?M/R*N:M}else{var H=S.getData();L=Math.abs(I[1]-I[0])/H.count()}var F=C(S.get("barWidth"),L),K=C(S.get("barMaxWidth"),L),U=C(S.get("barMinWidth")||1,L),V=S.get("barGap"),z=S.get("barCategoryGap");T.push({bandWidth:L,barWidth:F,barMaxWidth:K,barMinWidth:U,barGap:V,barCategoryGap:z,axisKey:o(_),stackId:r(S)})}),a(T)}function a(y){var x={};O.each(y,function(S,b){var _=S.axisKey,I=S.bandWidth,L=x[_]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},D=L.stacks;x[_]=L;var N=S.stackId;D[N]||L.autoWidthCount++,D[N]=D[N]||{width:0,maxWidth:0};var M=S.barWidth;M&&!D[N].width&&(D[N].width=M,M=Math.min(L.remainedWidth,M),L.remainedWidth-=M);var B=S.barMaxWidth;B&&(D[N].maxWidth=B);var R=S.barMinWidth;R&&(D[N].minWidth=R);var H=S.barGap;H!=null&&(L.gap=H);var F=S.barCategoryGap;F!=null&&(L.categoryGap=F)});var T={};return O.each(x,function(S,b){T[b]={};var _=S.stacks,I=S.bandWidth,L=C(S.categoryGap,I),D=C(S.gap,1),N=S.remainedWidth,M=S.autoWidthCount,B=(N-L)/(M+(M-1)*D);B=Math.max(B,0),O.each(_,function(K){var U=K.maxWidth,V=K.minWidth;if(K.width){var z=K.width;U&&(z=Math.min(z,U)),V&&(z=Math.max(z,V)),K.width=z,N-=z+D*z,M--}else{var z=B;U&&U<z&&(z=Math.min(U,N)),V&&V>z&&(z=V),z!==B&&(K.width=z,N-=z+D*z,M--)}}),B=(N-L)/(M+(M-1)*D),B=Math.max(B,0);var R=0,H;O.each(_,function(K,U){K.width||(K.width=B),H=K,R+=K.width*(1+D)}),H&&(R-=H.width*D);var F=-R/2;O.each(_,function(K,U){T[b][U]=T[b][U]||{bandWidth:I,offset:F,width:K.width},F+=K.width*(1+D)})}),T}function l(y,x,T){if(y&&x){var S=y[o(x)];return S!=null&&T!=null&&(S=S[r(T)]),S}}function u(y,x){var T=e(y,x),S=t(T),b={},_={};O.each(T,function(I){var L=I.getData(),D=I.coordinateSystem,N=D.getBaseAxis(),M=r(I),B=S[o(N)][M],R=B.offset,H=B.width,F=D.getOtherAxis(N),K=I.get("barMinHeight")||0;b[M]=b[M]||[],_[M]=_[M]||[],L.setLayout({bandWidth:B.bandWidth,offset:R,size:H});for(var U=L.mapDimension(F.dim),V=L.mapDimension(N.dim),z=w(L,U),Y=F.isHorizontal(),q=A(N,F,z),ce=0,ie=L.count();ce<ie;ce++){var ve=L.get(U,ce),Ee=L.get(V,ce),Le=ve>=0?"p":"n",He=q;z&&(b[M][Ee]||(b[M][Ee]={p:q,n:q}),He=b[M][Ee][Le]);var ge,Fe,Q,fe;if(Y){var Je=D.dataToPoint([ve,Ee]);ge=He,Fe=Je[1]+R,Q=Je[0]-q,fe=H,Math.abs(Q)<K&&(Q=(Q<0?-1:1)*K),isNaN(Q)||z&&(b[M][Ee][Le]+=Q)}else{var Je=D.dataToPoint([Ee,ve]);ge=Je[0]+R,Fe=He,Q=H,fe=Je[1]-q,Math.abs(fe)<K&&(fe=(fe<=0?-1:1)*K),isNaN(fe)||z&&(b[M][Ee][Le]+=fe)}L.setItemLayout(ce,{x:ge,y:Fe,width:Q,height:fe})}},this)}var f={seriesType:"bar",plan:m(),reset:function(y){if(!p(y)||!g(y))return;var x=y.getData(),T=y.coordinateSystem,S=T.grid.getRect(),b=T.getBaseAxis(),_=T.getOtherAxis(b),I=x.mapDimension(_.dim),L=x.mapDimension(b.dim),D=_.isHorizontal(),N=D?0:1,M=l(t([y]),b,y).width;return M>c||(M=c),{progress:B};function B(R,H){for(var F=R.count,K=new i(F*2),U=new i(F*2),V=new i(F),z,Y=[],q=[],ce=0,ie=0;(z=R.next())!=null;)q[N]=H.get(I,z),q[1-N]=H.get(L,z),Y=T.dataToPoint(q,null,Y),U[ce]=D?S.x+S.width:Y[0],K[ce++]=Y[0],U[ce]=D?Y[1]:S.y+S.height,K[ce++]=Y[1],V[ie++]=z;H.setLayout({largePoints:K,largeDataIndices:V,largeBackgroundPoints:U,barWidth:M,valueAxisStart:A(b,_,!1),backgroundStart:D?S.x:S.y,valueAxisHorizontal:D})}}};function p(y){return y.coordinateSystem&&y.coordinateSystem.type==="cartesian2d"}function g(y){return y.pipelineContext&&y.pipelineContext.large}function A(y,x,T){return x.toGlobalCoord(x.dataToCoord(x.type==="log"?1:0))}P.getLayoutOnAxis=n,P.prepareLayoutBarSeries=e,P.makeColumnLayout=t,P.retrieveColumnLayout=l,P.layout=u,P.largeLayout=f},ngQI:function(j,P,d){"use strict";d.d(P,"a",function(){return au}),d.d(P,"b",function(){return ru}),d.d(P,"c",function(){return Xr});var O=d("q1tI"),E=d.n(O),C=d("dI71"),v=d("wx14"),w=d("ANjH"),m=d("/MKj");function h(De,ee){if(De.length!==ee.length)return!1;for(var Ae=0;Ae<De.length;Ae++)if(De[Ae]!==ee[Ae])return!1;return!0}function c(De,ee){var Ae=Object(O.useState)(function(){return{inputs:ee,result:De()}})[0],Ve=Object(O.useRef)(!0),at=Object(O.useRef)(Ae),It=Ve.current||Boolean(ee&&at.current.inputs&&h(ee,at.current.inputs)),Wt=It?at.current:{inputs:ee,result:De()};return Object(O.useEffect)(function(){Ve.current=!1,at.current=Wt},[Wt]),Wt.result}function i(De,ee){return c(function(){return De},ee)}var r=c,o=i,n=d("9R94"),e=function(ee){var Ae=ee.top,Ve=ee.right,at=ee.bottom,It=ee.left,Wt=Ve-It,Pt=at-Ae,_r={top:Ae,right:Ve,bottom:at,left:It,width:Wt,height:Pt,x:It,y:Ae,center:{x:(Ve+It)/2,y:(at+Ae)/2}};return _r},s=function(ee,Ae){return{top:ee.top-Ae.top,left:ee.left-Ae.left,bottom:ee.bottom+Ae.bottom,right:ee.right+Ae.right}},t=function(ee,Ae){return{top:ee.top+Ae.top,left:ee.left+Ae.left,bottom:ee.bottom-Ae.bottom,right:ee.right-Ae.right}},a=function(ee,Ae){return{top:ee.top+Ae.y,left:ee.left+Ae.x,bottom:ee.bottom+Ae.y,right:ee.right+Ae.x}},l={top:0,right:0,bottom:0,left:0},u=function(ee){var Ae=ee.borderBox,Ve=ee.margin,at=Ve===void 0?l:Ve,It=ee.border,Wt=It===void 0?l:It,Pt=ee.padding,_r=Pt===void 0?l:Pt,Zr=e(s(Ae,at)),Tr=e(t(Ae,Wt)),Ar=e(t(Tr,_r));return{marginBox:Zr,borderBox:e(Ae),paddingBox:Tr,contentBox:Ar,margin:at,border:Wt,padding:_r}},f=function(ee){var Ae=ee.slice(0,-2),Ve=ee.slice(-2);if(Ve!=="px")return 0;var at=Number(Ae);return isNaN(at)&&Object(n.a)(!1),at},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},g=function(ee,Ae){var Ve=ee.borderBox,at=ee.border,It=ee.margin,Wt=ee.padding,Pt=a(Ve,Ae);return u({borderBox:Pt,border:at,margin:It,padding:Wt})},A=function(ee,Ae){return Ae===void 0&&(Ae=p()),g(ee,Ae)},y=function(ee,Ae){var Ve={top:f(Ae.marginTop),right:f(Ae.marginRight),bottom:f(Ae.marginBottom),left:f(Ae.marginLeft)},at={top:f(Ae.paddingTop),right:f(Ae.paddingRight),bottom:f(Ae.paddingBottom),left:f(Ae.paddingLeft)},It={top:f(Ae.borderTopWidth),right:f(Ae.borderRightWidth),bottom:f(Ae.borderBottomWidth),left:f(Ae.borderLeftWidth)};return u({borderBox:ee,margin:Ve,padding:at,border:It})},x=function(ee){var Ae=ee.getBoundingClientRect(),Ve=window.getComputedStyle(ee);return y(Ae,Ve)},T=Number.isNaN||function(ee){return typeof ee=="number"&&ee!==ee};function S(De,ee){return De===ee?!0:!!(T(De)&&T(ee))}function b(De,ee){if(De.length!==ee.length)return!1;for(var Ae=0;Ae<De.length;Ae++)if(!S(De[Ae],ee[Ae]))return!1;return!0}function _(De,ee){ee===void 0&&(ee=b);var Ae,Ve=[],at,It=!1;function Wt(){for(var Pt=[],_r=0;_r<arguments.length;_r++)Pt[_r]=arguments[_r];return It&&Ae===this&&ee(Pt,Ve)||(at=De.apply(this,Pt),It=!0,Ae=this,Ve=Pt),at}return Wt}var I=_,L=function(ee){var Ae=[],Ve=null,at=function(){for(var Wt=arguments.length,Pt=new Array(Wt),_r=0;_r<Wt;_r++)Pt[_r]=arguments[_r];if(Ae=Pt,Ve)return;Ve=requestAnimationFrame(function(){Ve=null,ee.apply(void 0,Ae)})};return at.cancel=function(){if(!Ve)return;cancelAnimationFrame(Ve),Ve=null},at},D=L,N=d("i8i4"),M=d.n(N),B=!0,R=/[ \t]{2,}/g,H=/^[ \t]*/gm,F=function(ee){return ee.replace(R," ").replace(H,"").trim()},K=function(ee){return F(`
%creact-beautiful-dnd
%c`+F(ee)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},U=function(ee){return[K(ee),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},V="__react-beautiful-dnd-disable-dev-warnings";function z(De,ee){var Ae;if(B)return;if(typeof window!="undefined"&&window[V])return;(Ae=console)[De].apply(Ae,U(ee))}var Y=z.bind(null,"warn"),q=z.bind(null,"error");function ce(){}function ie(De,ee){return Object(v.a)({},De,{},ee)}function ve(De,ee,Ae){var Ve=ee.map(function(at){var It=ie(Ae,at.options);return De.addEventListener(at.eventName,at.fn,It),function(){De.removeEventListener(at.eventName,at.fn,It)}});return function(){Ve.forEach(function(It){It()})}}var Ee=!0,Le="Invariant failed";function He(De){this.message=De}He.prototype.toString=function(){return this.message};function ge(De,ee){if(De)return;throw Ee?new He(Le):new He(Le+": "+(ee||""))}var Fe=function(De){Object(C.a)(ee,De);function ee(){for(var Ve,at=arguments.length,It=new Array(at),Wt=0;Wt<at;Wt++)It[Wt]=arguments[Wt];return Ve=De.call.apply(De,[this].concat(It))||this,Ve.callbacks=null,Ve.unbind=ce,Ve.onWindowError=function(Pt){var _r=Ve.getCallbacks();_r.isDragging()&&_r.tryAbort();var Zr=Pt.error;Zr instanceof He&&Pt.preventDefault()},Ve.getCallbacks=function(){if(!Ve.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ve.callbacks},Ve.setCallbacks=function(Pt){Ve.callbacks=Pt},Ve}var Ae=ee.prototype;return Ae.componentDidMount=function(){this.unbind=ve(window,[{eventName:"error",fn:this.onWindowError}])},Ae.componentWillUnmount=function(){this.unbind()},Ae.componentDidCatch=function(at){if(at instanceof He){this.setState({});return}throw at},Ae.render=function(){return this.props.children(this.setCallbacks)},ee}(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
`,fe=function(ee){return ee+1},Je=function(ee){return`
You have lifted an item in position `+fe(ee.source.index)+`
`},ne=function(ee,Ae){var Ve=ee.droppableId===Ae.droppableId,at=fe(ee.index),It=fe(Ae.index);return Ve?`
You have moved the item from position `+at+`
to position `+It+`
`:`
You have moved the item from position `+at+`
in list `+ee.droppableId+`
to list `+Ae.droppableId+`
in position `+It+`
`},X=function(ee,Ae,Ve){var at=Ae.droppableId===Ve.droppableId;return at?`
The item `+ee+`
has been combined with `+Ve.draggableId:`
The item `+ee+`
in list `+Ae.droppableId+`
has been combined with `+Ve.draggableId+`
in list `+Ve.droppableId+`
`},G=function(ee){var Ae=ee.destination;if(Ae)return ne(ee.source,Ae);var Ve=ee.combine;return Ve?X(ee.draggableId,ee.source,Ve):"You are over an area that cannot be dropped on"},te=function(ee){return`
The item has returned to its starting position
of `+fe(ee.index)+`
`},we=function(ee){if(ee.reason==="CANCEL")return`
Movement cancelled.
`+te(ee.source)+`
`;var Ae=ee.destination,Ve=ee.combine;return Ae?`
You have dropped the item.
`+ne(ee.source,Ae)+`
`:Ve?`
You have dropped the item.
`+X(ee.draggableId,ee.source,Ve)+`
`:`
The item has been dropped while not over a drop area.
`+te(ee.source)+`
`},he={dragHandleUsageInstructions:Q,onDragStart:Je,onDragUpdate:G,onDragEnd:we},Pe={x:0,y:0},Oe=function(ee,Ae){return{x:ee.x+Ae.x,y:ee.y+Ae.y}},le=function(ee,Ae){return{x:ee.x-Ae.x,y:ee.y-Ae.y}},me=function(ee,Ae){return ee.x===Ae.x&&ee.y===Ae.y},_e=function(ee){return{x:ee.x!==0?-ee.x:0,y:ee.y!==0?-ee.y:0}},$e=function(ee,Ae,Ve){var at;return Ve===void 0&&(Ve=0),at={},at[ee]=Ae,at[ee==="x"?"y":"x"]=Ve,at},gt=function(ee,Ae){return Math.sqrt(Math.pow(Ae.x-ee.x,2)+Math.pow(Ae.y-ee.y,2))},et=function(ee,Ae){return Math.min.apply(Math,Ae.map(function(Ve){return gt(ee,Ve)}))},Ie=function(ee){return function(Ae){return{x:ee(Ae.x),y:ee(Ae.y)}}},rt=function(ee,Ae){var Ve=e({top:Math.max(Ae.top,ee.top),right:Math.min(Ae.right,ee.right),bottom:Math.min(Ae.bottom,ee.bottom),left:Math.max(Ae.left,ee.left)});return Ve.width<=0||Ve.height<=0?null:Ve},Ge=function(ee,Ae){return{top:ee.top+Ae.y,left:ee.left+Ae.x,bottom:ee.bottom+Ae.y,right:ee.right+Ae.x}},vt=function(ee){return[{x:ee.left,y:ee.top},{x:ee.right,y:ee.top},{x:ee.left,y:ee.bottom},{x:ee.right,y:ee.bottom}]},Ot={top:0,right:0,bottom:0,left:0},Et=function(ee,Ae){return Ae?Ge(ee,Ae.scroll.diff.displacement):ee},Tt=function(ee,Ae,Ve){if(Ve&&Ve.increasedBy){var at;return Object(v.a)({},ee,(at={},at[Ae.end]=ee[Ae.end]+Ve.increasedBy[Ae.line],at))}return ee},Rt=function(ee,Ae){return Ae&&Ae.shouldClipSubject?rt(Ae.pageMarginBox,ee):e(ee)},Be=function(ee){var Ae=ee.page,Ve=ee.withPlaceholder,at=ee.axis,It=ee.frame,Wt=Et(Ae.marginBox,It),Pt=Tt(Wt,at,Ve),_r=Rt(Pt,It);return{page:Ae,withPlaceholder:Ve,active:_r}},Z=function(ee,Ae){ee.frame||ge(!1);var Ve=ee.frame,at=le(Ae,Ve.scroll.initial),It=_e(at),Wt=Object(v.a)({},Ve,{scroll:{initial:Ve.scroll.initial,current:Ae,diff:{value:at,displacement:It},max:Ve.scroll.max}}),Pt=Be({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:Wt}),_r=Object(v.a)({},ee,{frame:Wt,subject:Pt});return _r};function J(De){return Number.isInteger?Number.isInteger(De):typeof De=="number"&&isFinite(De)&&Math.floor(De)===De}function je(De){return Object.values?Object.values(De):Object.keys(De).map(function(ee){return De[ee]})}function Re(De,ee){if(De.findIndex)return De.findIndex(ee);for(var Ae=0;Ae<De.length;Ae++)if(ee(De[Ae]))return Ae;return-1}function oe(De,ee){if(De.find)return De.find(ee);var Ae=Re(De,ee);return Ae!==-1?De[Ae]:void 0}function yt(De){return Array.prototype.slice.call(De)}var zt=I(function(De){return De.reduce(function(ee,Ae){return ee[Ae.descriptor.id]=Ae,ee},{})}),lt=I(function(De){return De.reduce(function(ee,Ae){return ee[Ae.descriptor.id]=Ae,ee},{})}),$t=I(function(De){return je(De)}),cr=I(function(De){return je(De)}),cn=I(function(De,ee){var Ae=cr(ee).filter(function(Ve){return De===Ve.descriptor.droppableId}).sort(function(Ve,at){return Ve.descriptor.index-at.descriptor.index});return Ae});function pr(De){return De.at&&De.at.type==="REORDER"?De.at.destination:null}function gr(De){return De.at&&De.at.type==="COMBINE"?De.at.combine:null}var Zt=I(function(De,ee){return ee.filter(function(Ae){return Ae.descriptor.id!==De.descriptor.id})}),Vt=function(ee){var Ae=ee.isMovingForward,Ve=ee.draggable,at=ee.destination,It=ee.insideDestination,Wt=ee.previousImpact;if(!at.isCombineEnabled)return null;var Pt=pr(Wt);if(!Pt)return null;function _r(Li){var oa={type:"COMBINE",combine:{draggableId:Li,droppableId:at.descriptor.id}};return Object(v.a)({},Wt,{at:oa})}var Zr=Wt.displaced.all,Tr=Zr.length?Zr[0]:null;if(Ae)return Tr?_r(Tr):null;var Ar=Zt(Ve,It);if(!Tr){if(!Ar.length)return null;var Hr=Ar[Ar.length-1];return _r(Hr.descriptor.id)}var tn=Re(Ar,function(Li){return Li.descriptor.id===Tr});tn!==-1||ge(!1);var _n=tn-1;if(_n<0)return null;var gi=Ar[_n];return _r(gi.descriptor.id)},mt=function(ee,Ae){return ee.descriptor.droppableId===Ae.descriptor.id},Yr={point:Pe,value:0},Tn={invisible:{},visible:{},all:[]},Hn={displaced:Tn,displacedBy:Yr,at:null},ei=function(ee,Ae){return function(Ve){return ee<=Ve&&Ve<=Ae}},ji=function(ee){var Ae=ei(ee.top,ee.bottom),Ve=ei(ee.left,ee.right);return function(at){var It=Ae(at.top)&&Ae(at.bottom)&&Ve(at.left)&&Ve(at.right);if(It)return!0;var Wt=Ae(at.top)||Ae(at.bottom),Pt=Ve(at.left)||Ve(at.right),_r=Wt&&Pt;if(_r)return!0;var Zr=at.top<ee.top&&at.bottom>ee.bottom,Tr=at.left<ee.left&&at.right>ee.right,Ar=Zr&&Tr;if(Ar)return!0;var Hr=Zr&&Pt||Tr&&Wt;return Hr}},Ln=function(ee){var Ae=ei(ee.top,ee.bottom),Ve=ei(ee.left,ee.right);return function(at){var It=Ae(at.top)&&Ae(at.bottom)&&Ve(at.left)&&Ve(at.right);return It}},Vn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},kt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},wt=function(ee){return function(Ae){var Ve=ei(Ae.top,Ae.bottom),at=ei(Ae.left,Ae.right);return function(It){return ee===Vn?Ve(It.top)&&Ve(It.bottom):at(It.left)&&at(It.right)}}},Te=function(ee,Ae){var Ve=Ae.frame?Ae.frame.scroll.diff.displacement:Pe;return Ge(ee,Ve)},xe=function(ee,Ae,Ve){return Ae.subject.active?Ve(Ae.subject.active)(ee):!1},Ce=function(ee,Ae,Ve){return Ve(Ae)(ee)},Ye=function(ee){var Ae=ee.target,Ve=ee.destination,at=ee.viewport,It=ee.withDroppableDisplacement,Wt=ee.isVisibleThroughFrameFn,Pt=It?Te(Ae,Ve):Ae;return xe(Pt,Ve,Wt)&&Ce(Pt,at,Wt)},it=function(ee){return Ye(Object(v.a)({},ee,{isVisibleThroughFrameFn:ji}))},dt=function(ee){return Ye(Object(v.a)({},ee,{isVisibleThroughFrameFn:Ln}))},_t=function(ee){return Ye(Object(v.a)({},ee,{isVisibleThroughFrameFn:wt(ee.destination.axis)}))},vr=function(ee,Ae,Ve){if(typeof Ve=="boolean")return Ve;if(!Ae)return!0;var at=Ae.invisible,It=Ae.visible;if(at[ee])return!1;var Wt=It[ee];return Wt?Wt.shouldAnimate:!0};function kr(De,ee){var Ae=De.page.marginBox,Ve={top:ee.point.y,right:0,bottom:0,left:ee.point.x};return e(s(Ae,Ve))}function mn(De){var ee=De.afterDragging,Ae=De.destination,Ve=De.displacedBy,at=De.viewport,It=De.forceShouldAnimate,Wt=De.last;return ee.reduce(function(_r,Zr){var Tr=kr(Zr,Ve),Ar=Zr.descriptor.id;_r.all.push(Ar);var Hr=it({target:Tr,destination:Ae,viewport:at,withDroppableDisplacement:!0});if(!Hr)return _r.invisible[Zr.descriptor.id]=!0,_r;var tn=vr(Ar,Wt,It),_n={draggableId:Ar,shouldAnimate:tn};return _r.visible[Ar]=_n,_r},{all:[],visible:{},invisible:{}})}function Mt(De,ee){if(!De.length)return 0;var Ae=De[De.length-1].descriptor.index;return ee.inHomeList?Ae:Ae+1}function nt(De){var ee=De.insideDestination,Ae=De.inHomeList,Ve=De.displacedBy,at=De.destination,It=Mt(ee,{inHomeList:Ae});return{displaced:Tn,displacedBy:Ve,at:{type:"REORDER",destination:{droppableId:at.descriptor.id,index:It}}}}function st(De){var ee=De.draggable,Ae=De.insideDestination,Ve=De.destination,at=De.viewport,It=De.displacedBy,Wt=De.last,Pt=De.index,_r=De.forceShouldAnimate,Zr=mt(ee,Ve);if(Pt==null)return nt({insideDestination:Ae,inHomeList:Zr,displacedBy:It,destination:Ve});var Tr=oe(Ae,function(gi){return gi.descriptor.index===Pt});if(!Tr)return nt({insideDestination:Ae,inHomeList:Zr,displacedBy:It,destination:Ve});var Ar=Zt(ee,Ae),Hr=Ae.indexOf(Tr),tn=Ar.slice(Hr),_n=mn({afterDragging:tn,destination:Ve,displacedBy:It,last:Wt,viewport:at.frame,forceShouldAnimate:_r});return{displaced:_n,displacedBy:It,at:{type:"REORDER",destination:{droppableId:Ve.descriptor.id,index:Pt}}}}function Xt(De,ee){return Boolean(ee.effected[De])}var Dt=function(ee){var Ae=ee.isMovingForward,Ve=ee.destination,at=ee.draggables,It=ee.combine,Wt=ee.afterCritical;if(!Ve.isCombineEnabled)return null;var Pt=It.draggableId,_r=at[Pt],Zr=_r.descriptor.index,Tr=Xt(Pt,Wt);return Tr?Ae?Zr:Zr-1:Ae?Zr+1:Zr},St=function(ee){var Ae=ee.isMovingForward,Ve=ee.isInHomeList,at=ee.insideDestination,It=ee.location;if(!at.length)return null;var Wt=It.index,Pt=Ae?Wt+1:Wt-1,_r=at[0].descriptor.index,Zr=at[at.length-1].descriptor.index,Tr=Ve?Zr:Zr+1;return Pt<_r||Pt>Tr?null:Pt},jt=function(ee){var Ae=ee.isMovingForward,Ve=ee.isInHomeList,at=ee.draggable,It=ee.draggables,Wt=ee.destination,Pt=ee.insideDestination,_r=ee.previousImpact,Zr=ee.viewport,Tr=ee.afterCritical,Ar=_r.at;if(Ar||ge(!1),Ar.type==="REORDER"){var Hr=St({isMovingForward:Ae,isInHomeList:Ve,location:Ar.destination,insideDestination:Pt});return Hr==null?null:st({draggable:at,insideDestination:Pt,destination:Wt,viewport:Zr,last:_r.displaced,displacedBy:_r.displacedBy,index:Hr})}var tn=Dt({isMovingForward:Ae,destination:Wt,displaced:_r.displaced,draggables:It,combine:Ar.combine,afterCritical:Tr});return tn==null?null:st({draggable:at,insideDestination:Pt,destination:Wt,viewport:Zr,last:_r.displaced,displacedBy:_r.displacedBy,index:tn})},At=function(ee){var Ae=ee.displaced,Ve=ee.afterCritical,at=ee.combineWith,It=ee.displacedBy,Wt=Boolean(Ae.visible[at]||Ae.invisible[at]);return Xt(at,Ve)?Wt?Pe:_e(It.point):Wt?It.point:Pe},Ft=function(ee){var Ae=ee.afterCritical,Ve=ee.impact,at=ee.draggables,It=gr(Ve);It||ge(!1);var Wt=It.draggableId,Pt=at[Wt].page.borderBox.center,_r=At({displaced:Ve.displaced,afterCritical:Ae,combineWith:Wt,displacedBy:Ve.displacedBy});return Oe(Pt,_r)},wr=function(ee,Ae){return Ae.margin[ee.start]+Ae.borderBox[ee.size]/2},sr=function(ee,Ae){return Ae.margin[ee.end]+Ae.borderBox[ee.size]/2},mr=function(ee,Ae,Ve){return Ae[ee.crossAxisStart]+Ve.margin[ee.crossAxisStart]+Ve.borderBox[ee.crossAxisSize]/2},$r=function(ee){var Ae=ee.axis,Ve=ee.moveRelativeTo,at=ee.isMoving;return $e(Ae.line,Ve.marginBox[Ae.end]+wr(Ae,at),mr(Ae,Ve.marginBox,at))},rn=function(ee){var Ae=ee.axis,Ve=ee.moveRelativeTo,at=ee.isMoving;return $e(Ae.line,Ve.marginBox[Ae.start]-sr(Ae,at),mr(Ae,Ve.marginBox,at))},jn=function(ee){var Ae=ee.axis,Ve=ee.moveInto,at=ee.isMoving;return $e(Ae.line,Ve.contentBox[Ae.start]+wr(Ae,at),mr(Ae,Ve.contentBox,at))},Un=function(ee){var Ae=ee.impact,Ve=ee.draggable,at=ee.draggables,It=ee.droppable,Wt=ee.afterCritical,Pt=cn(It.descriptor.id,at),_r=Ve.page,Zr=It.axis;if(!Pt.length)return jn({axis:Zr,moveInto:It.page,isMoving:_r});var Tr=Ae.displaced,Ar=Ae.displacedBy,Hr=Tr.all[0];if(Hr){var tn=at[Hr];if(Xt(Hr,Wt))return rn({axis:Zr,moveRelativeTo:tn.page,isMoving:_r});var _n=g(tn.page,Ar.point);return rn({axis:Zr,moveRelativeTo:_n,isMoving:_r})}var gi=Pt[Pt.length-1];if(gi.descriptor.id===Ve.descriptor.id)return _r.borderBox.center;if(Xt(gi.descriptor.id,Wt)){var Li=g(gi.page,_e(Wt.displacedBy.point));return $r({axis:Zr,moveRelativeTo:Li,isMoving:_r})}return $r({axis:Zr,moveRelativeTo:gi.page,isMoving:_r})},ui=function(ee,Ae){var Ve=ee.frame;return Ve?Oe(Ae,Ve.scroll.diff.displacement):Ae},yi=function(ee){var Ae=ee.impact,Ve=ee.draggable,at=ee.droppable,It=ee.draggables,Wt=ee.afterCritical,Pt=Ve.page.borderBox.center,_r=Ae.at;return at&&_r?_r.type==="REORDER"?Un({impact:Ae,draggable:Ve,draggables:It,droppable:at,afterCritical:Wt}):Ft({impact:Ae,draggables:It,afterCritical:Wt}):Pt},Ii=function(ee){var Ae=yi(ee),Ve=ee.droppable,at=Ve?ui(Ve,Ae):Ae;return at},Gi=function(ee,Ae){var Ve=le(Ae,ee.scroll.initial),at=_e(Ve),It=e({top:Ae.y,bottom:Ae.y+ee.frame.height,left:Ae.x,right:Ae.x+ee.frame.width}),Wt={frame:It,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:Ae,diff:{value:Ve,displacement:at}}};return Wt};function Qe(De,ee){return De.map(function(Ae){return ee[Ae]})}function be(De,ee){for(var Ae=0;Ae<ee.length;Ae++){var Ve=ee[Ae].visible[De];if(Ve)return Ve}return null}var Ne=function(ee){var Ae=ee.impact,Ve=ee.viewport,at=ee.destination,It=ee.draggables,Wt=ee.maxScrollChange,Pt=Gi(Ve,Oe(Ve.scroll.current,Wt)),_r=at.frame?Z(at,Oe(at.frame.scroll.current,Wt)):at,Zr=Ae.displaced,Tr=mn({afterDragging:Qe(Zr.all,It),destination:at,displacedBy:Ae.displacedBy,viewport:Pt.frame,last:Zr,forceShouldAnimate:!1}),Ar=mn({afterDragging:Qe(Zr.all,It),destination:_r,displacedBy:Ae.displacedBy,viewport:Ve.frame,last:Zr,forceShouldAnimate:!1}),Hr={},tn={},_n=[Zr,Tr,Ar];Zr.all.forEach(function(Li){var oa=be(Li,_n);if(oa){tn[Li]=oa;return}Hr[Li]=!0});var gi=Object(v.a)({},Ae,{displaced:{all:Zr.all,invisible:Hr,visible:tn}});return gi},Ue=function(ee,Ae){return Oe(ee.scroll.diff.displacement,Ae)},Xe=function(ee){var Ae=ee.pageBorderBoxCenter,Ve=ee.draggable,at=ee.viewport,It=Ue(at,Ae),Wt=le(It,Ve.page.borderBox.center);return Oe(Ve.client.borderBox.center,Wt)},ze=function(ee){var Ae=ee.draggable,Ve=ee.destination,at=ee.newPageBorderBoxCenter,It=ee.viewport,Wt=ee.withDroppableDisplacement,Pt=ee.onlyOnMainAxis,_r=Pt===void 0?!1:Pt,Zr=le(at,Ae.page.borderBox.center),Tr=Ge(Ae.page.borderBox,Zr),Ar={target:Tr,destination:Ve,withDroppableDisplacement:Wt,viewport:It};return _r?_t(Ar):dt(Ar)},Ze=function(ee){var Ae=ee.isMovingForward,Ve=ee.draggable,at=ee.destination,It=ee.draggables,Wt=ee.previousImpact,Pt=ee.viewport,_r=ee.previousPageBorderBoxCenter,Zr=ee.previousClientSelection,Tr=ee.afterCritical;if(!at.isEnabled)return null;var Ar=cn(at.descriptor.id,It),Hr=mt(Ve,at),tn=Vt({isMovingForward:Ae,draggable:Ve,destination:at,insideDestination:Ar,previousImpact:Wt})||jt({isMovingForward:Ae,isInHomeList:Hr,draggable:Ve,draggables:It,destination:at,insideDestination:Ar,previousImpact:Wt,viewport:Pt,afterCritical:Tr});if(!tn)return null;var _n=Ii({impact:tn,draggable:Ve,droppable:at,draggables:It,afterCritical:Tr}),gi=ze({draggable:Ve,destination:at,newPageBorderBoxCenter:_n,viewport:Pt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(gi){var Li=Xe({pageBorderBoxCenter:_n,draggable:Ve,viewport:Pt});return{clientSelection:Li,impact:tn,scrollJumpRequest:null}}var oa=le(_n,_r),Wi=Ne({impact:tn,viewport:Pt,destination:at,draggables:It,maxScrollChange:oa});return{clientSelection:Zr,impact:Wi,scrollJumpRequest:oa}},bt=function(ee){var Ae=ee.subject.active;return Ae||ge(!1),Ae},ut=function(ee){var Ae=ee.isMovingForward,Ve=ee.pageBorderBoxCenter,at=ee.source,It=ee.droppables,Wt=ee.viewport,Pt=at.subject.active;if(!Pt)return null;var _r=at.axis,Zr=ei(Pt[_r.start],Pt[_r.end]),Tr=$t(It).filter(function(Hr){return Hr!==at}).filter(function(Hr){return Hr.isEnabled}).filter(function(Hr){return Boolean(Hr.subject.active)}).filter(function(Hr){return ji(Wt.frame)(bt(Hr))}).filter(function(Hr){var tn=bt(Hr);return Ae?Pt[_r.crossAxisEnd]<tn[_r.crossAxisEnd]:tn[_r.crossAxisStart]<Pt[_r.crossAxisStart]}).filter(function(Hr){var tn=bt(Hr),_n=ei(tn[_r.start],tn[_r.end]);return Zr(tn[_r.start])||Zr(tn[_r.end])||_n(Pt[_r.start])||_n(Pt[_r.end])}).sort(function(Hr,tn){var _n=bt(Hr)[_r.crossAxisStart],gi=bt(tn)[_r.crossAxisStart];return Ae?_n-gi:gi-_n}).filter(function(Hr,tn,_n){return bt(Hr)[_r.crossAxisStart]===bt(_n[0])[_r.crossAxisStart]});if(!Tr.length)return null;if(Tr.length===1)return Tr[0];var Ar=Tr.filter(function(Hr){var tn=ei(bt(Hr)[_r.start],bt(Hr)[_r.end]);return tn(Ve[_r.line])});return Ar.length===1?Ar[0]:Ar.length>1?Ar.sort(function(Hr,tn){return bt(Hr)[_r.start]-bt(tn)[_r.start]})[0]:Tr.sort(function(Hr,tn){var _n=et(Ve,vt(bt(Hr))),gi=et(Ve,vt(bt(tn)));return _n!==gi?_n-gi:bt(Hr)[_r.start]-bt(tn)[_r.start]})[0]},Gt=function(ee,Ae){var Ve=ee.page.borderBox.center;return Xt(ee.descriptor.id,Ae)?le(Ve,Ae.displacedBy.point):Ve},Mr=function(ee,Ae){var Ve=ee.page.borderBox;return Xt(ee.descriptor.id,Ae)?Ge(Ve,_e(Ae.displacedBy.point)):Ve},Lr=function(ee){var Ae=ee.pageBorderBoxCenter,Ve=ee.viewport,at=ee.destination,It=ee.insideDestination,Wt=ee.afterCritical,Pt=It.filter(function(_r){return dt({target:Mr(_r,Wt),destination:at,viewport:Ve.frame,withDroppableDisplacement:!0})}).sort(function(_r,Zr){var Tr=gt(Ae,ui(at,Gt(_r,Wt))),Ar=gt(Ae,ui(at,Gt(Zr,Wt)));return Tr<Ar?-1:Ar<Tr?1:_r.descriptor.index-Zr.descriptor.index});return Pt[0]||null},Gr=I(function(ee,Ae){var Ve=Ae[ee.line];return{value:Ve,point:$e(ee.line,Ve)}}),Ht=function(ee,Ae,Ve){var at=ee.axis;if(ee.descriptor.mode==="virtual")return $e(at.line,Ae[at.line]);var It=ee.subject.page.contentBox[at.size],Wt=cn(ee.descriptor.id,Ve),Pt=Wt.reduce(function(Tr,Ar){return Tr+Ar.client.marginBox[at.size]},0),_r=Pt+Ae[at.line],Zr=_r-It;return Zr<=0?null:$e(at.line,Zr)},hn=function(ee,Ae){return Object(v.a)({},ee,{scroll:Object(v.a)({},ee.scroll,{max:Ae})})},or=function(ee,Ae,Ve){var at=ee.frame;mt(Ae,ee)&&ge(!1),ee.subject.withPlaceholder&&ge(!1);var It=Gr(ee.axis,Ae.displaceBy).point,Wt=Ht(ee,It,Ve),Pt={placeholderSize:It,increasedBy:Wt,oldFrameMaxScroll:ee.frame?ee.frame.scroll.max:null};if(!at){var _r=Be({page:ee.subject.page,withPlaceholder:Pt,axis:ee.axis,frame:ee.frame});return Object(v.a)({},ee,{subject:_r})}var Zr=Wt?Oe(at.scroll.max,Wt):at.scroll.max,Tr=hn(at,Zr),Ar=Be({page:ee.subject.page,withPlaceholder:Pt,axis:ee.axis,frame:Tr});return Object(v.a)({},ee,{subject:Ar,frame:Tr})},vn=function(ee){var Ae=ee.subject.withPlaceholder;Ae||ge(!1);var Ve=ee.frame;if(!Ve){var at=Be({page:ee.subject.page,axis:ee.axis,frame:null,withPlaceholder:null});return Object(v.a)({},ee,{subject:at})}var It=Ae.oldFrameMaxScroll;It||ge(!1);var Wt=hn(Ve,It),Pt=Be({page:ee.subject.page,axis:ee.axis,frame:Wt,withPlaceholder:null});return Object(v.a)({},ee,{subject:Pt,frame:Wt})},nn=function(ee){var Ae=ee.previousPageBorderBoxCenter,Ve=ee.moveRelativeTo,at=ee.insideDestination,It=ee.draggable,Wt=ee.draggables,Pt=ee.destination,_r=ee.viewport,Zr=ee.afterCritical;if(!Ve){if(at.length)return null;var Tr={displaced:Tn,displacedBy:Yr,at:{type:"REORDER",destination:{droppableId:Pt.descriptor.id,index:0}}},Ar=Ii({impact:Tr,draggable:It,droppable:Pt,draggables:Wt,afterCritical:Zr}),Hr=mt(It,Pt)?Pt:or(Pt,It,Wt),tn=ze({draggable:It,destination:Hr,newPageBorderBoxCenter:Ar,viewport:_r.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return tn?Tr:null}var _n=Boolean(Ae[Pt.axis.line]<=Ve.page.borderBox.center[Pt.axis.line]),gi=function(){var oa=Ve.descriptor.index;return Ve.descriptor.id===It.descriptor.id||_n?oa:oa+1}(),Li=Gr(Pt.axis,It.displaceBy);return st({draggable:It,insideDestination:at,destination:Pt,viewport:_r,displacedBy:Li,last:Tn,index:gi})},Ur=function(ee){var Ae=ee.isMovingForward,Ve=ee.previousPageBorderBoxCenter,at=ee.draggable,It=ee.isOver,Wt=ee.draggables,Pt=ee.droppables,_r=ee.viewport,Zr=ee.afterCritical,Tr=ut({isMovingForward:Ae,pageBorderBoxCenter:Ve,source:It,droppables:Pt,viewport:_r});if(!Tr)return null;var Ar=cn(Tr.descriptor.id,Wt),Hr=Lr({pageBorderBoxCenter:Ve,viewport:_r,destination:Tr,insideDestination:Ar,afterCritical:Zr}),tn=nn({previousPageBorderBoxCenter:Ve,destination:Tr,draggable:at,draggables:Wt,moveRelativeTo:Hr,insideDestination:Ar,viewport:_r,afterCritical:Zr});if(!tn)return null;var _n=Ii({impact:tn,draggable:at,droppable:Tr,draggables:Wt,afterCritical:Zr}),gi=Xe({pageBorderBoxCenter:_n,draggable:at,viewport:_r});return{clientSelection:gi,impact:tn,scrollJumpRequest:null}},ni=function(ee){var Ae=ee.at;return Ae?Ae.type==="REORDER"?Ae.destination.droppableId:Ae.combine.droppableId:null},Oi=function(ee,Ae){var Ve=ni(ee);return Ve?Ae[Ve]:null},Hi=function(ee){var Ae=ee.state,Ve=ee.type,at=Oi(Ae.impact,Ae.dimensions.droppables),It=Boolean(at),Wt=Ae.dimensions.droppables[Ae.critical.droppable.id],Pt=at||Wt,_r=Pt.axis.direction,Zr=_r==="vertical"&&(Ve==="MOVE_UP"||Ve==="MOVE_DOWN")||_r==="horizontal"&&(Ve==="MOVE_LEFT"||Ve==="MOVE_RIGHT");if(Zr&&!It)return null;var Tr=Ve==="MOVE_DOWN"||Ve==="MOVE_RIGHT",Ar=Ae.dimensions.draggables[Ae.critical.draggable.id],Hr=Ae.current.page.borderBoxCenter,tn=Ae.dimensions,_n=tn.draggables,gi=tn.droppables;return Zr?Ze({isMovingForward:Tr,previousPageBorderBoxCenter:Hr,draggable:Ar,destination:Pt,draggables:_n,viewport:Ae.viewport,previousClientSelection:Ae.current.client.selection,previousImpact:Ae.impact,afterCritical:Ae.afterCritical}):Ur({isMovingForward:Tr,previousPageBorderBoxCenter:Hr,draggable:Ar,isOver:Pt,draggables:_n,droppables:gi,viewport:Ae.viewport,afterCritical:Ae.afterCritical})};function Ri(De){return De.phase==="DRAGGING"||De.phase==="COLLECTING"}function Ni(De){var ee=ei(De.top,De.bottom),Ae=ei(De.left,De.right);return function(at){return ee(at.y)&&Ae(at.x)}}function Yi(De,ee){return De.left<ee.right&&De.right>ee.left&&De.top<ee.bottom&&De.bottom>ee.top}function Qr(De){var ee=De.pageBorderBox,Ae=De.draggable,Ve=De.candidates,at=Ae.page.borderBox.center,It=Ve.map(function(Wt){var Pt=Wt.axis,_r=$e(Wt.axis.line,ee.center[Pt.line],Wt.page.borderBox.center[Pt.crossAxisLine]);return{id:Wt.descriptor.id,distance:gt(at,_r)}}).sort(function(Wt,Pt){return Pt.distance-Wt.distance});return It[0]?It[0].id:null}function On(De){var ee=De.pageBorderBox,Ae=De.draggable,Ve=De.droppables,at=$t(Ve).filter(function(It){if(!It.isEnabled)return!1;var Wt=It.subject.active;if(!Wt)return!1;if(!Yi(ee,Wt))return!1;if(Ni(Wt)(ee.center))return!0;var Pt=It.axis,_r=Wt.center[Pt.crossAxisLine],Zr=ee[Pt.crossAxisStart],Tr=ee[Pt.crossAxisEnd],Ar=ei(Wt[Pt.crossAxisStart],Wt[Pt.crossAxisEnd]),Hr=Ar(Zr),tn=Ar(Tr);return!Hr&&!tn?!0:Hr?Zr<_r:Tr>_r});return at.length?at.length===1?at[0].descriptor.id:Qr({pageBorderBox:ee,draggable:Ae,candidates:at}):null}var zr=function(ee,Ae){return e(Ge(ee,Ae))},fr=function(ee,Ae){var Ve=ee.frame;return Ve?zr(Ae,Ve.scroll.diff.value):Ae};function Nr(De){var ee=De.displaced,Ae=De.id;return Boolean(ee.visible[Ae]||ee.invisible[Ae])}function Qt(De){var ee=De.draggable,Ae=De.closest,Ve=De.inHomeList;return Ae?Ve&&Ae.descriptor.index>ee.descriptor.index?Ae.descriptor.index-1:Ae.descriptor.index:null}var xr=function(ee){var Ae=ee.pageBorderBoxWithDroppableScroll,Ve=ee.draggable,at=ee.destination,It=ee.insideDestination,Wt=ee.last,Pt=ee.viewport,_r=ee.afterCritical,Zr=at.axis,Tr=Gr(at.axis,Ve.displaceBy),Ar=Tr.value,Hr=Ae[Zr.start],tn=Ae[Zr.end],_n=Zt(Ve,It),gi=oe(_n,function(oa){var Wi=oa.descriptor.id,ro=oa.page.borderBox.center[Zr.line],xa=Xt(Wi,_r),Co=Nr({displaced:Wt,id:Wi});return xa?Co?tn<=ro:Hr<ro-Ar:Co?tn<=ro+Ar:Hr<ro}),Li=Qt({draggable:Ve,closest:gi,inHomeList:mt(Ve,at)});return st({draggable:Ve,insideDestination:It,destination:at,viewport:Pt,last:Wt,displacedBy:Tr,index:Li})},Jr=4,Kr=function(ee){var Ae=ee.draggable,Ve=ee.pageBorderBoxWithDroppableScroll,at=ee.previousImpact,It=ee.destination,Wt=ee.insideDestination,Pt=ee.afterCritical;if(!It.isCombineEnabled)return null;var _r=It.axis,Zr=Gr(It.axis,Ae.displaceBy),Tr=Zr.value,Ar=Ve[_r.start],Hr=Ve[_r.end],tn=Zt(Ae,Wt),_n=oe(tn,function(Li){var oa=Li.descriptor.id,Wi=Li.page.borderBox,ro=Wi[_r.size],xa=ro/Jr,Co=Xt(oa,Pt),po=Nr({displaced:at.displaced,id:oa});return Co?po?Hr>Wi[_r.start]+xa&&Hr<Wi[_r.end]-xa:Ar>Wi[_r.start]-Tr+xa&&Ar<Wi[_r.end]-Tr-xa:po?Hr>Wi[_r.start]+Tr+xa&&Hr<Wi[_r.end]+Tr-xa:Ar>Wi[_r.start]+xa&&Ar<Wi[_r.end]-xa});if(!_n)return null;var gi={displacedBy:Zr,displaced:at.displaced,at:{type:"COMBINE",combine:{draggableId:_n.descriptor.id,droppableId:It.descriptor.id}}};return gi},en=function(ee){var Ae=ee.pageOffset,Ve=ee.draggable,at=ee.draggables,It=ee.droppables,Wt=ee.previousImpact,Pt=ee.viewport,_r=ee.afterCritical,Zr=zr(Ve.page.borderBox,Ae),Tr=On({pageBorderBox:Zr,draggable:Ve,droppables:It});if(!Tr)return Hn;var Ar=It[Tr],Hr=cn(Ar.descriptor.id,at),tn=fr(Ar,Zr);return Kr({pageBorderBoxWithDroppableScroll:tn,draggable:Ve,previousImpact:Wt,destination:Ar,insideDestination:Hr,afterCritical:_r})||xr({pageBorderBoxWithDroppableScroll:tn,draggable:Ve,destination:Ar,insideDestination:Hr,last:Wt.displaced,viewport:Pt,afterCritical:_r})},ai=function(ee,Ae){var Ve;return Object(v.a)({},ee,(Ve={},Ve[Ae.descriptor.id]=Ae,Ve))},Yn=function(ee){var Ae=ee.previousImpact,Ve=ee.impact,at=ee.droppables,It=ni(Ae),Wt=ni(Ve);if(!It)return at;if(It===Wt)return at;var Pt=at[It];if(!Pt.subject.withPlaceholder)return at;var _r=vn(Pt);return ai(at,_r)},Si=function(ee){var Ae=ee.draggable,Ve=ee.draggables,at=ee.droppables,It=ee.previousImpact,Wt=ee.impact,Pt=Yn({previousImpact:It,impact:Wt,droppables:at}),_r=ni(Wt);if(!_r)return Pt;var Zr=at[_r];if(mt(Ae,Zr))return Pt;if(Zr.subject.withPlaceholder)return Pt;var Tr=or(Zr,Ae,Ve);return ai(Pt,Tr)},ln=function(ee){var Ae=ee.state,Ve=ee.clientSelection,at=ee.dimensions,It=ee.viewport,Wt=ee.impact,Pt=ee.scrollJumpRequest,_r=It||Ae.viewport,Zr=at||Ae.dimensions,Tr=Ve||Ae.current.client.selection,Ar=le(Tr,Ae.initial.client.selection),Hr={offset:Ar,selection:Tr,borderBoxCenter:Oe(Ae.initial.client.borderBoxCenter,Ar)},tn={selection:Oe(Hr.selection,_r.scroll.current),borderBoxCenter:Oe(Hr.borderBoxCenter,_r.scroll.current),offset:Oe(Hr.offset,_r.scroll.diff.value)},_n={client:Hr,page:tn};if(Ae.phase==="COLLECTING")return Object(v.a)({phase:"COLLECTING"},Ae,{dimensions:Zr,viewport:_r,current:_n});var gi=Zr.draggables[Ae.critical.draggable.id],Li=Wt||en({pageOffset:tn.offset,draggable:gi,draggables:Zr.draggables,droppables:Zr.droppables,previousImpact:Ae.impact,viewport:_r,afterCritical:Ae.afterCritical}),oa=Si({draggable:gi,impact:Li,previousImpact:Ae.impact,draggables:Zr.draggables,droppables:Zr.droppables}),Wi=Object(v.a)({},Ae,{current:_n,dimensions:{draggables:Zr.draggables,droppables:oa},impact:Li,viewport:_r,scrollJumpRequest:Pt||null,forceShouldAnimate:Pt?!1:null});return Wi};function Or(De,ee){return De.map(function(Ae){return ee[Ae]})}var wn=function(ee){var Ae=ee.impact,Ve=ee.viewport,at=ee.draggables,It=ee.destination,Wt=ee.forceShouldAnimate,Pt=Ae.displaced,_r=Or(Pt.all,at),Zr=mn({afterDragging:_r,destination:It,displacedBy:Ae.displacedBy,viewport:Ve.frame,forceShouldAnimate:Wt,last:Pt});return Object(v.a)({},Ae,{displaced:Zr})},Xn=function(ee){var Ae=ee.impact,Ve=ee.draggable,at=ee.droppable,It=ee.draggables,Wt=ee.viewport,Pt=ee.afterCritical,_r=Ii({impact:Ae,draggable:Ve,draggables:It,droppable:at,afterCritical:Pt});return Xe({pageBorderBoxCenter:_r,draggable:Ve,viewport:Wt})},Zn=function(ee){var Ae=ee.state,Ve=ee.dimensions,at=ee.viewport;Ae.movementMode==="SNAP"||ge(!1);var It=Ae.impact,Wt=at||Ae.viewport,Pt=Ve||Ae.dimensions,_r=Pt.draggables,Zr=Pt.droppables,Tr=_r[Ae.critical.draggable.id],Ar=ni(It);Ar||ge(!1);var Hr=Zr[Ar],tn=wn({impact:It,viewport:Wt,destination:Hr,draggables:_r}),_n=Xn({impact:tn,draggable:Tr,droppable:Hr,draggables:_r,viewport:Wt,afterCritical:Ae.afterCritical});return ln({impact:tn,clientSelection:_n,state:Ae,dimensions:Pt,viewport:Wt})},ii=function(ee){return{index:ee.index,droppableId:ee.droppableId}},Ei=function(ee){var Ae=ee.draggable,Ve=ee.home,at=ee.draggables,It=ee.viewport,Wt=Gr(Ve.axis,Ae.displaceBy),Pt=cn(Ve.descriptor.id,at),_r=Pt.indexOf(Ae);_r!==-1||ge(!1);var Zr=Pt.slice(_r+1),Tr=Zr.reduce(function(_n,gi){return _n[gi.descriptor.id]=!0,_n},{}),Ar={inVirtualList:Ve.descriptor.mode==="virtual",displacedBy:Wt,effected:Tr},Hr=mn({afterDragging:Zr,destination:Ve,displacedBy:Wt,last:null,viewport:It.frame,forceShouldAnimate:!1}),tn={displaced:Hr,displacedBy:Wt,at:{type:"REORDER",destination:ii(Ae.descriptor)}};return{impact:tn,afterCritical:Ar}},ki=function(ee,Ae){return{draggables:ee.draggables,droppables:ai(ee.droppables,Ae)}},Fi=function(ee){},ra=function(ee){},_a=function(ee){var Ae=ee.draggable,Ve=ee.offset,at=ee.initialWindowScroll,It=g(Ae.client,Ve),Wt=A(It,at),Pt=Object(v.a)({},Ae,{placeholder:Object(v.a)({},Ae.placeholder,{client:It}),client:It,page:Wt});return Pt},wa=function(ee){var Ae=ee.frame;return Ae||ge(!1),Ae},_o=function(ee){var Ae=ee.additions,Ve=ee.updatedDroppables,at=ee.viewport,It=at.scroll.diff.value;return Ae.map(function(Wt){var Pt=Wt.descriptor.droppableId,_r=Ve[Pt],Zr=wa(_r),Tr=Zr.scroll.diff.value,Ar=Oe(It,Tr),Hr=_a({draggable:Wt,offset:Ar,initialWindowScroll:at.scroll.initial});return Hr})},bi=function(ee){var Ae=ee.state,Ve=ee.published;Fi();var at=Ve.modified.map(function(xa){var Co=Ae.dimensions.droppables[xa.droppableId],po=Z(Co,xa.scroll);return po}),It=Object(v.a)({},Ae.dimensions.droppables,{},zt(at)),Wt=lt(_o({additions:Ve.additions,updatedDroppables:It,viewport:Ae.viewport})),Pt=Object(v.a)({},Ae.dimensions.draggables,{},Wt);Ve.removals.forEach(function(xa){delete Pt[xa]});var _r={droppables:It,draggables:Pt},Zr=ni(Ae.impact),Tr=Zr?_r.droppables[Zr]:null,Ar=_r.draggables[Ae.critical.draggable.id],Hr=_r.droppables[Ae.critical.droppable.id],tn=Ei({draggable:Ar,home:Hr,draggables:Pt,viewport:Ae.viewport}),_n=tn.impact,gi=tn.afterCritical,Li=Tr&&Tr.isCombineEnabled?Ae.impact:_n,oa=en({pageOffset:Ae.current.page.offset,draggable:_r.draggables[Ae.critical.draggable.id],draggables:_r.draggables,droppables:_r.droppables,previousImpact:Li,viewport:Ae.viewport,afterCritical:gi});ra();var Wi=Object(v.a)({phase:"DRAGGING"},Ae,{phase:"DRAGGING",impact:oa,onLiftImpact:_n,dimensions:_r,afterCritical:gi,forceShouldAnimate:!1});if(Ae.phase==="COLLECTING")return Wi;var ro=Object(v.a)({phase:"DROP_PENDING"},Wi,{phase:"DROP_PENDING",reason:Ae.reason,isWaiting:!1});return ro},xn=function(ee){return ee.movementMode==="SNAP"},Zi=function(ee,Ae,Ve){var at=ki(ee.dimensions,Ae);return!xn(ee)||Ve?ln({state:ee,dimensions:at}):Zn({state:ee,dimensions:at})};function va(De){return De.isDragging&&De.movementMode==="SNAP"?Object(v.a)({phase:"DRAGGING"},De,{scrollJumpRequest:null}):De}var ta={phase:"IDLE",completed:null,shouldFlush:!1},ma=function(ee,Ae){if(ee===void 0&&(ee=ta),Ae.type==="FLUSH")return Object(v.a)({},ta,{shouldFlush:!0});if(Ae.type==="INITIAL_PUBLISH"){ee.phase==="IDLE"||ge(!1);var Ve=Ae.payload,at=Ve.critical,It=Ve.clientSelection,Wt=Ve.viewport,Pt=Ve.dimensions,_r=Ve.movementMode,Zr=Pt.draggables[at.draggable.id],Tr=Pt.droppables[at.droppable.id],Ar={selection:It,borderBoxCenter:Zr.client.borderBox.center,offset:Pe},Hr={client:Ar,page:{selection:Oe(Ar.selection,Wt.scroll.initial),borderBoxCenter:Oe(Ar.selection,Wt.scroll.initial),offset:Oe(Ar.selection,Wt.scroll.diff.value)}},tn=$t(Pt.droppables).every(function(Ta){return!Ta.isFixedOnPage}),_n=Ei({draggable:Zr,home:Tr,draggables:Pt.draggables,viewport:Wt}),gi=_n.impact,Li=_n.afterCritical,oa={phase:"DRAGGING",isDragging:!0,critical:at,movementMode:_r,dimensions:Pt,initial:Hr,current:Hr,isWindowScrollAllowed:tn,impact:gi,afterCritical:Li,onLiftImpact:gi,viewport:Wt,scrollJumpRequest:null,forceShouldAnimate:null};return oa}if(Ae.type==="COLLECTION_STARTING"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase==="DRAGGING"||ge(!1);var Wi=Object(v.a)({phase:"COLLECTING"},ee,{phase:"COLLECTING"});return Wi}if(Ae.type==="PUBLISH_WHILE_DRAGGING")return ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING"||ge(!1),bi({state:ee,published:Ae.payload});if(Ae.type==="MOVE"){if(ee.phase==="DROP_PENDING")return ee;Ri(ee)||ge(!1);var ro=Ae.payload.client;return me(ro,ee.current.client.selection)?ee:ln({state:ee,clientSelection:ro,impact:xn(ee)?ee.impact:null})}if(Ae.type==="UPDATE_DROPPABLE_SCROLL"){if(ee.phase==="DROP_PENDING")return va(ee);if(ee.phase==="COLLECTING")return va(ee);Ri(ee)||ge(!1);var xa=Ae.payload,Co=xa.id,po=xa.newScroll,Yo=ee.dimensions.droppables[Co];if(!Yo)return ee;var os=Z(Yo,po);return Zi(ee,os,!1)}if(Ae.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;Ri(ee)||ge(!1);var k=Ae.payload,W=k.id,$=k.isEnabled,re=ee.dimensions.droppables[W];re||ge(!1),re.isEnabled!==$||ge(!1);var se=Object(v.a)({},re,{isEnabled:$});return Zi(ee,se,!0)}if(Ae.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;Ri(ee)||ge(!1);var ke=Ae.payload,ft=ke.id,Kt=ke.isCombineEnabled,qt=ee.dimensions.droppables[ft];qt||ge(!1),qt.isCombineEnabled!==Kt||ge(!1);var ir=Object(v.a)({},qt,{isCombineEnabled:Kt});return Zi(ee,ir,!0)}if(Ae.type==="MOVE_BY_WINDOW_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="DROP_ANIMATING")return ee;Ri(ee)||ge(!1),ee.isWindowScrollAllowed||ge(!1);var bn=Ae.payload.newScroll;if(me(ee.viewport.scroll.current,bn))return va(ee);var Bn=Gi(ee.viewport,bn);return xn(ee)?Zn({state:ee,viewport:Bn}):ln({state:ee,viewport:Bn})}if(Ae.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ri(ee))return ee;var ci=Ae.payload.maxScroll;if(me(ci,ee.viewport.scroll.max))return ee;var fi=Object(v.a)({},ee.viewport,{scroll:Object(v.a)({},ee.viewport.scroll,{max:ci})});return Object(v.a)({phase:"DRAGGING"},ee,{viewport:fi})}if(Ae.type==="MOVE_UP"||Ae.type==="MOVE_DOWN"||Ae.type==="MOVE_LEFT"||Ae.type==="MOVE_RIGHT"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase==="DRAGGING"||ge(!1);var Ji=Hi({state:ee,type:Ae.type});return Ji?ln({state:ee,impact:Ji.impact,clientSelection:Ji.clientSelection,scrollJumpRequest:Ji.scrollJumpRequest}):ee}if(Ae.type==="DROP_PENDING"){var ba=Ae.payload.reason;ee.phase==="COLLECTING"||ge(!1);var Fa=Object(v.a)({phase:"DROP_PENDING"},ee,{phase:"DROP_PENDING",isWaiting:!0,reason:ba});return Fa}if(Ae.type==="DROP_ANIMATE"){var Da=Ae.payload,Ia=Da.completed,Za=Da.dropDuration,mo=Da.newHomeClientOffset;ee.phase==="DRAGGING"||ee.phase==="DROP_PENDING"||ge(!1);var Vo={phase:"DROP_ANIMATING",completed:Ia,dropDuration:Za,newHomeClientOffset:mo,dimensions:ee.dimensions};return Vo}if(Ae.type==="DROP_COMPLETE"){var Fo=Ae.payload.completed;return{phase:"IDLE",completed:Fo,shouldFlush:!1}}return ee},Qi=function(ee){return{type:"BEFORE_INITIAL_CAPTURE",payload:ee}},Ya=function(ee){return{type:"LIFT",payload:ee}},Wa=function(ee){return{type:"INITIAL_PUBLISH",payload:ee}},Ao=function(ee){return{type:"PUBLISH_WHILE_DRAGGING",payload:ee}},es=function(){return{type:"COLLECTION_STARTING",payload:null}},so=function(ee){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ee}},So=function(ee){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ee}},xo=function(ee){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ee}},hr=function(ee){return{type:"MOVE",payload:ee}},Sn=function(ee){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ee}},dn=function(ee){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ee}},Kn=function(){return{type:"MOVE_UP",payload:null}},si=function(){return{type:"MOVE_DOWN",payload:null}},vi=function(){return{type:"MOVE_RIGHT",payload:null}},pi=function(){return{type:"MOVE_LEFT",payload:null}},di=function(){return{type:"FLUSH",payload:null}},Ki=function(ee){return{type:"DROP_ANIMATE",payload:ee}},Mi=function(ee){return{type:"DROP_COMPLETE",payload:ee}},pa=function(ee){return{type:"DROP",payload:ee}},_i=function(ee){return{type:"DROP_PENDING",payload:ee}},da=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function na(De){if(De.length<=1)return;for(var ee=De.map(function(Pt){return Pt.descriptor.index}),Ae={},Ve=1;Ve<ee.length;Ve++){var at=ee[Ve],It=ee[Ve-1];at!==It+1&&(Ae[at]=!0)}if(!Object.keys(Ae).length)return;var Wt=ee.map(function(Pt){var _r=Boolean(Ae[Pt]);return _r?"[\u{1F525}"+Pt+"]":""+Pt}).join(", ")}function Sa(De,ee){if(!1)var Ae}var Aa=function(ee){return function(Ae){var Ve=Ae.getState,at=Ae.dispatch;return function(It){return function(Wt){if(Wt.type!=="LIFT"){It(Wt);return}var Pt=Wt.payload,_r=Pt.id,Zr=Pt.clientSelection,Tr=Pt.movementMode,Ar=Ve();Ar.phase==="DROP_ANIMATING"&&at(Mi({completed:Ar.completed})),Ve().phase==="IDLE"||ge(!1),at(di()),at(Qi({draggableId:_r,movementMode:Tr}));var Hr={shouldPublishImmediately:Tr==="SNAP"},tn={draggableId:_r,scrollOptions:Hr},_n=ee.startPublishing(tn),gi=_n.critical,Li=_n.dimensions,oa=_n.viewport;Sa(gi,Li),at(Wa({critical:gi,dimensions:Li,clientSelection:Zr,movementMode:Tr,viewport:oa}))}}}},ua=function(ee){return function(){return function(Ae){return function(Ve){Ve.type==="INITIAL_PUBLISH"&&ee.dragging(),Ve.type==="DROP_ANIMATE"&&ee.dropping(Ve.payload.completed.result.reason),(Ve.type==="FLUSH"||Ve.type==="DROP_COMPLETE")&&ee.resting(),Ae(Ve)}}}},La={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},sa={opacity:{drop:0,combining:.7},scale:{drop:.75}},co={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},no=co.outOfTheWay+"s "+La.outOfTheWay,ca={fluid:"opacity "+no,snap:"transform "+no+", opacity "+no,drop:function(ee){var Ae=ee+"s "+La.drop;return"transform "+Ae+", opacity "+Ae},outOfTheWay:"transform "+no,placeholder:"height "+no+", width "+no+", margin "+no},yo=function(ee){return me(ee,Pe)?null:"translate("+ee.x+"px, "+ee.y+"px)"},lo={moveTo:yo,drop:function(ee,Ae){var Ve=yo(ee);return Ve?Ae?Ve+" scale("+sa.scale.drop+")":Ve:null}},Na=co.minDropTime,ho=co.maxDropTime,Io=ho-Na,eo=1500,Lo=.6,Va=function(ee){var Ae=ee.current,Ve=ee.destination,at=ee.reason,It=gt(Ae,Ve);if(It<=0)return Na;if(It>=eo)return ho;var Wt=It/eo,Pt=Na+Io*Wt,_r=at==="CANCEL"?Pt*Lo:Pt;return Number(_r.toFixed(2))},Bo=function(ee){var Ae=ee.impact,Ve=ee.draggable,at=ee.dimensions,It=ee.viewport,Wt=ee.afterCritical,Pt=at.draggables,_r=at.droppables,Zr=ni(Ae),Tr=Zr?_r[Zr]:null,Ar=_r[Ve.descriptor.droppableId],Hr=Xn({impact:Ae,draggable:Ve,draggables:Pt,afterCritical:Wt,droppable:Tr||Ar,viewport:It}),tn=le(Hr,Ve.client.borderBox.center);return tn},Ho=function(ee){var Ae=ee.draggables,Ve=ee.reason,at=ee.lastImpact,It=ee.home,Wt=ee.viewport,Pt=ee.onLiftImpact;if(!at.at||Ve!=="DROP"){var _r=wn({draggables:Ae,impact:Pt,destination:It,viewport:Wt,forceShouldAnimate:!0});return{impact:_r,didDropInsideDroppable:!1}}if(at.at.type==="REORDER")return{impact:at,didDropInsideDroppable:!0};var Zr=Object(v.a)({},at,{displaced:Tn});return{impact:Zr,didDropInsideDroppable:!0}},Pr=function(ee){var Ae=ee.getState,Ve=ee.dispatch;return function(at){return function(It){if(It.type!=="DROP"){at(It);return}var Wt=Ae(),Pt=It.payload.reason;if(Wt.phase==="COLLECTING"){Ve(_i({reason:Pt}));return}if(Wt.phase==="IDLE")return;var _r=Wt.phase==="DROP_PENDING"&&Wt.isWaiting;_r&&ge(!1),Wt.phase==="DRAGGING"||Wt.phase==="DROP_PENDING"||ge(!1);var Zr=Wt.critical,Tr=Wt.dimensions,Ar=Tr.draggables[Wt.critical.draggable.id],Hr=Ho({reason:Pt,lastImpact:Wt.impact,afterCritical:Wt.afterCritical,onLiftImpact:Wt.onLiftImpact,home:Wt.dimensions.droppables[Wt.critical.droppable.id],viewport:Wt.viewport,draggables:Wt.dimensions.draggables}),tn=Hr.impact,_n=Hr.didDropInsideDroppable,gi=_n?pr(tn):null,Li=_n?gr(tn):null,oa={index:Zr.draggable.index,droppableId:Zr.droppable.id},Wi={draggableId:Ar.descriptor.id,type:Ar.descriptor.type,source:oa,reason:Pt,mode:Wt.movementMode,destination:gi,combine:Li},ro=Bo({impact:tn,draggable:Ar,dimensions:Tr,viewport:Wt.viewport,afterCritical:Wt.afterCritical}),xa={critical:Wt.critical,afterCritical:Wt.afterCritical,result:Wi,impact:tn},Co=!me(Wt.current.client.offset,ro)||Boolean(Wi.combine);if(!Co){Ve(Mi({completed:xa}));return}var po=Va({current:Wt.current.client.offset,destination:ro,reason:Pt}),Yo={newHomeClientOffset:ro,dropDuration:po,completed:xa};Ve(Ki(Yo))}}},An=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Pn(De){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Ae){if(Ae.target!==window&&Ae.target!==window.document)return;De()}}}function qr(De){var ee=De.onWindowScroll;function Ae(){ee(An())}var Ve=D(Ae),at=Pn(Ve),It=ce;function Wt(){return It!==ce}function Pt(){Wt()&&ge(!1),It=ve(window,[at])}function _r(){Wt()||ge(!1),Ve.cancel(),It(),It=ce}return{start:Pt,stop:_r,isActive:Wt}}var er=function(ee){return ee.type==="DROP_COMPLETE"||ee.type==="DROP_ANIMATE"||ee.type==="FLUSH"},Dr=function(ee){var Ae=qr({onWindowScroll:function(at){ee.dispatch(Sn({newScroll:at}))}});return function(Ve){return function(at){!Ae.isActive()&&at.type==="INITIAL_PUBLISH"&&Ae.start(),Ae.isActive()&&er(at)&&Ae.stop(),Ve(at)}}},lr=function(ee){var Ae=!1,Ve=!1,at=setTimeout(function(){Ve=!0}),It=function(Pt){if(Ae)return;if(Ve)return;Ae=!0,ee(Pt),clearTimeout(at)};return It.wasCalled=function(){return Ae},It},on=function(){var ee=[],Ae=function(Wt){var Pt=Re(ee,function(Tr){return Tr.timerId===Wt});Pt!==-1||ge(!1);var _r=ee.splice(Pt,1),Zr=_r[0];Zr.callback()},Ve=function(Wt){var Pt=setTimeout(function(){return Ae(Pt)}),_r={timerId:Pt,callback:Wt};ee.push(_r)},at=function(){if(!ee.length)return;var Wt=[].concat(ee);ee.length=0,Wt.forEach(function(Pt){clearTimeout(Pt.timerId),Pt.callback()})};return{add:Ve,flush:at}},fn=function(ee,Ae){return ee==null&&Ae==null?!0:ee==null||Ae==null?!1:ee.droppableId===Ae.droppableId&&ee.index===Ae.index},Wn=function(ee,Ae){return ee==null&&Ae==null?!0:ee==null||Ae==null?!1:ee.draggableId===Ae.draggableId&&ee.droppableId===Ae.droppableId},Dn=function(ee,Ae){if(ee===Ae)return!0;var Ve=ee.draggable.id===Ae.draggable.id&&ee.draggable.droppableId===Ae.draggable.droppableId&&ee.draggable.type===Ae.draggable.type&&ee.draggable.index===Ae.draggable.index,at=ee.droppable.id===Ae.droppable.id&&ee.droppable.type===Ae.droppable.type;return Ve&&at},Jn=function(ee,Ae){Fi(),Ae(),ra()},Ti=function(ee,Ae){return{draggableId:ee.draggable.id,type:ee.droppable.type,source:{droppableId:ee.droppable.id,index:ee.draggable.index},mode:Ae}},xi=function(ee,Ae,Ve,at){if(!ee){Ve(at(Ae));return}var It=lr(Ve),Wt={announce:It};ee(Ae,Wt),It.wasCalled()||Ve(at(Ae))},Bi=function(ee,Ae){var Ve=on(),at=null,It=function(tn,_n){at&&ge(!1),Jn("onBeforeCapture",function(){var gi=ee().onBeforeCapture;if(gi){var Li={draggableId:tn,mode:_n};gi(Li)}})},Wt=function(tn,_n){at&&ge(!1),Jn("onBeforeDragStart",function(){var gi=ee().onBeforeDragStart;gi&&gi(Ti(tn,_n))})},Pt=function(tn,_n){at&&ge(!1);var gi=Ti(tn,_n);at={mode:_n,lastCritical:tn,lastLocation:gi.source,lastCombine:null},Ve.add(function(){Jn("onDragStart",function(){return xi(ee().onDragStart,gi,Ae,he.onDragStart)})})},_r=function(tn,_n){var gi=pr(_n),Li=gr(_n);at||ge(!1);var oa=!Dn(tn,at.lastCritical);oa&&(at.lastCritical=tn);var Wi=!fn(at.lastLocation,gi);Wi&&(at.lastLocation=gi);var ro=!Wn(at.lastCombine,Li);if(ro&&(at.lastCombine=Li),!oa&&!Wi&&!ro)return;var xa=Object(v.a)({},Ti(tn,at.mode),{combine:Li,destination:gi});Ve.add(function(){Jn("onDragUpdate",function(){return xi(ee().onDragUpdate,xa,Ae,he.onDragUpdate)})})},Zr=function(){at||ge(!1),Ve.flush()},Tr=function(tn){at||ge(!1),at=null,Jn("onDragEnd",function(){return xi(ee().onDragEnd,tn,Ae,he.onDragEnd)})},Ar=function(){if(!at)return;var tn=Object(v.a)({},Ti(at.lastCritical,at.mode),{combine:null,destination:null,reason:"CANCEL"});Tr(tn)};return{beforeCapture:It,beforeStart:Wt,start:Pt,update:_r,flush:Zr,drop:Tr,abort:Ar}},ea=function(ee,Ae){var Ve=Bi(ee,Ae);return function(at){return function(It){return function(Wt){if(Wt.type==="BEFORE_INITIAL_CAPTURE"){Ve.beforeCapture(Wt.payload.draggableId,Wt.payload.movementMode);return}if(Wt.type==="INITIAL_PUBLISH"){var Pt=Wt.payload.critical;Ve.beforeStart(Pt,Wt.payload.movementMode),It(Wt),Ve.start(Pt,Wt.payload.movementMode);return}if(Wt.type==="DROP_COMPLETE"){var _r=Wt.payload.completed.result;Ve.flush(),It(Wt),Ve.drop(_r);return}if(It(Wt),Wt.type==="FLUSH"){Ve.abort();return}var Zr=at.getState();Zr.phase==="DRAGGING"&&Ve.update(Zr.critical,Zr.impact)}}}},Ha=function(ee){return function(Ae){return function(Ve){if(Ve.type!=="DROP_ANIMATION_FINISHED"){Ae(Ve);return}var at=ee.getState();at.phase==="DROP_ANIMATING"||ge(!1),ee.dispatch(Mi({completed:at.completed}))}}},Qa=function(ee){var Ae=null,Ve=null;function at(){Ve&&(cancelAnimationFrame(Ve),Ve=null),Ae&&(Ae(),Ae=null)}return function(It){return function(Wt){if((Wt.type==="FLUSH"||Wt.type==="DROP_COMPLETE"||Wt.type==="DROP_ANIMATION_FINISHED")&&at(),It(Wt),Wt.type!=="DROP_ANIMATE")return;var Pt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Zr=ee.getState();Zr.phase==="DROP_ANIMATING"&&ee.dispatch(da())}};Ve=requestAnimationFrame(function(){Ve=null,Ae=ve(window,[Pt])})}}},io=function(ee){return function(){return function(Ae){return function(Ve){(Ve.type==="DROP_COMPLETE"||Ve.type==="FLUSH"||Ve.type==="DROP_ANIMATE")&&ee.stopPublishing(),Ae(Ve)}}}},Ja=function(ee){var Ae=!1;return function(){return function(Ve){return function(at){if(at.type==="INITIAL_PUBLISH"){Ae=!0,ee.tryRecordFocus(at.payload.critical.draggable.id),Ve(at),ee.tryRestoreFocusRecorded();return}if(Ve(at),!Ae)return;if(at.type==="FLUSH"){Ae=!1,ee.tryRestoreFocusRecorded();return}if(at.type==="DROP_COMPLETE"){Ae=!1;var It=at.payload.completed.result;It.combine&&ee.tryShiftRecord(It.draggableId,It.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}},Ga=function(ee){return ee.type==="DROP_COMPLETE"||ee.type==="DROP_ANIMATE"||ee.type==="FLUSH"},Ra=function(ee){return function(Ae){return function(Ve){return function(at){if(Ga(at)){ee.stop(),Ve(at);return}if(at.type==="INITIAL_PUBLISH"){Ve(at);var It=Ae.getState();It.phase==="DRAGGING"||ge(!1),ee.start(It);return}Ve(at),ee.scroll(Ae.getState())}}}},ia=function(ee){return function(Ae){return function(Ve){if(Ae(Ve),Ve.type!=="PUBLISH_WHILE_DRAGGING")return;var at=ee.getState();if(at.phase!=="DROP_PENDING")return;if(at.isWaiting)return;ee.dispatch(pa({reason:at.reason}))}}},qe=w.d,rr=function(ee){var Ae=ee.dimensionMarshal,Ve=ee.focusMarshal,at=ee.styleMarshal,It=ee.getResponders,Wt=ee.announce,Pt=ee.autoScroller;return Object(w.e)(ma,qe(Object(w.a)(ua(at),io(Ae),Aa(Ae),Pr,Ha,Qa,ia,Ra(Pt),Dr,Ja(Ve),ea(It,Wt))))},Rr=function(){return{additions:{},removals:{},modified:{}}};function Cr(De){var ee=De.registry,Ae=De.callbacks,Ve=Rr(),at=null,It=function(){if(at)return;Ae.collectionStarting(),at=requestAnimationFrame(function(){at=null,Fi();var Tr=Ve,Ar=Tr.additions,Hr=Tr.removals,tn=Tr.modified,_n=Object.keys(Ar).map(function(oa){return ee.draggable.getById(oa).getDimension(Pe)}).sort(function(oa,Wi){return oa.descriptor.index-Wi.descriptor.index}),gi=Object.keys(tn).map(function(oa){var Wi=ee.droppable.getById(oa),ro=Wi.callbacks.getScrollWhileDragging();return{droppableId:oa,scroll:ro}}),Li={additions:_n,removals:Object.keys(Hr),modified:gi};Ve=Rr(),ra(),Ae.publish(Li)})},Wt=function(Tr){var Ar=Tr.descriptor.id;Ve.additions[Ar]=Tr,Ve.modified[Tr.descriptor.droppableId]=!0,Ve.removals[Ar]&&delete Ve.removals[Ar],It()},Pt=function(Tr){var Ar=Tr.descriptor;Ve.removals[Ar.id]=!0,Ve.modified[Ar.droppableId]=!0,Ve.additions[Ar.id]&&delete Ve.additions[Ar.id],It()},_r=function(){if(!at)return;cancelAnimationFrame(at),at=null,Ve=Rr()};return{add:Wt,remove:Pt,stop:_r}}var pn=function(ee){var Ae=ee.scrollHeight,Ve=ee.scrollWidth,at=ee.height,It=ee.width,Wt=le({x:Ve,y:Ae},{x:It,y:at}),Pt={x:Math.max(0,Wt.x),y:Math.max(0,Wt.y)};return Pt},Vr=function(){var ee=document.documentElement;return ee||ge(!1),ee},br=function(){var ee=Vr(),Ae=pn({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return Ae},In=function(){var ee=An(),Ae=br(),Ve=ee.y,at=ee.x,It=Vr(),Wt=It.clientWidth,Pt=It.clientHeight,_r=at+Wt,Zr=Ve+Pt,Tr=e({top:Ve,left:at,right:_r,bottom:Zr}),Ar={frame:Tr,scroll:{initial:ee,current:ee,max:Ae,diff:{value:Pe,displacement:Pe}}};return Ar},Sr=function(ee){var Ae=ee.critical,Ve=ee.scrollOptions,at=ee.registry;Fi();var It=In(),Wt=It.scroll.current,Pt=Ae.droppable,_r=at.droppable.getAllByType(Pt.type).map(function(Hr){return Hr.callbacks.getDimensionAndWatchScroll(Wt,Ve)}),Zr=at.draggable.getAllByType(Ae.draggable.type).map(function(Hr){return Hr.getDimension(Wt)}),Tr={draggables:lt(Zr),droppables:zt(_r)};ra();var Ar={dimensions:Tr,critical:Ae,viewport:It};return Ar};function gn(De,ee,Ae){if(Ae.descriptor.id===ee.id)return!1;if(Ae.descriptor.type!==ee.type)return!1;var Ve=De.droppable.getById(Ae.descriptor.droppableId);return!(Ve.descriptor.mode!=="virtual")}var $n=function(ee,Ae){var Ve=null,at=Cr({callbacks:{publish:Ae.publishWhileDragging,collectionStarting:Ae.collectionStarting},registry:ee}),It=function(_n,gi){if(ee.droppable.exists(_n)||ge(!1),!Ve)return;Ae.updateDroppableIsEnabled({id:_n,isEnabled:gi})},Wt=function(_n,gi){if(!Ve)return;ee.droppable.exists(_n)||ge(!1),Ae.updateDroppableIsCombineEnabled({id:_n,isCombineEnabled:gi})},Pt=function(_n,gi){if(!Ve)return;ee.droppable.exists(_n)||ge(!1),Ae.updateDroppableScroll({id:_n,newScroll:gi})},_r=function(_n,gi){if(!Ve)return;ee.droppable.getById(_n).callbacks.scroll(gi)},Zr=function(){if(!Ve)return;at.stop();var _n=Ve.critical.droppable;ee.droppable.getAllByType(_n.type).forEach(function(gi){return gi.callbacks.dragStopped()}),Ve.unsubscribe(),Ve=null},Tr=function(_n){Ve||ge(!1);var gi=Ve.critical.draggable;_n.type==="ADDITION"&&(gn(ee,gi,_n.value)&&at.add(_n.value)),_n.type==="REMOVAL"&&(gn(ee,gi,_n.value)&&at.remove(_n.value))},Ar=function(_n){Ve&&ge(!1);var gi=ee.draggable.getById(_n.draggableId),Li=ee.droppable.getById(gi.descriptor.droppableId),oa={draggable:gi.descriptor,droppable:Li.descriptor},Wi=ee.subscribe(Tr);return Ve={critical:oa,unsubscribe:Wi},Sr({critical:oa,registry:ee,scrollOptions:_n.scrollOptions})},Hr={updateDroppableIsEnabled:It,updateDroppableIsCombineEnabled:Wt,scrollDroppable:_r,updateDroppableScroll:Pt,startPublishing:Ar,stopPublishing:Zr};return Hr},qn=function(ee,Ae){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===Ae?!1:ee.completed.result.reason==="DROP"},Gn=function(ee){window.scrollBy(ee.x,ee.y)},mi=I(function(De){return $t(De).filter(function(ee){return ee.isEnabled?!!ee.frame:!1})}),ti=function(ee,Ae){var Ve=oe(mi(Ae),function(at){return at.frame||ge(!1),Ni(at.frame.pageMarginBox)(ee)});return Ve},ri=function(ee){var Ae=ee.center,Ve=ee.destination,at=ee.droppables;if(Ve){var It=at[Ve];return It.frame?It:null}var Wt=ti(Ae,at);return Wt},li={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ee){return Math.pow(ee,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Xi=function(ee,Ae){var Ve=ee[Ae.size]*li.startFromPercentage,at=ee[Ae.size]*li.maxScrollAtPercentage,It={startScrollingFrom:Ve,maxScrollValueAt:at};return It},Pi=function(ee){var Ae=ee.startOfRange,Ve=ee.endOfRange,at=ee.current,It=Ve-Ae;if(It===0)return 0;var Wt=at-Ae,Pt=Wt/It;return Pt},ga=1,tr=function(ee,Ae){if(ee>Ae.startScrollingFrom)return 0;if(ee<=Ae.maxScrollValueAt)return li.maxPixelScroll;if(ee===Ae.startScrollingFrom)return ga;var Ve=Pi({startOfRange:Ae.maxScrollValueAt,endOfRange:Ae.startScrollingFrom,current:ee}),at=1-Ve,It=li.maxPixelScroll*li.ease(at);return Math.ceil(It)},Lt=li.durationDampening.accelerateAt,yr=li.durationDampening.stopDampeningAt,xt=function(ee,Ae){var Ve=Ae,at=yr,It=Date.now(),Wt=It-Ve;if(Wt>=yr)return ee;if(Wt<Lt)return ga;var Pt=Pi({startOfRange:Lt,endOfRange:at,current:Wt}),_r=ee*li.ease(Pt);return Math.ceil(_r)},Ut=function(ee){var Ae=ee.distanceToEdge,Ve=ee.thresholds,at=ee.dragStartTime,It=ee.shouldUseTimeDampening,Wt=tr(Ae,Ve);return Wt===0?0:It?Math.max(xt(Wt,at),ga):Wt},ur=function(ee){var Ae=ee.container,Ve=ee.distanceToEdges,at=ee.dragStartTime,It=ee.axis,Wt=ee.shouldUseTimeDampening,Pt=Xi(Ae,It),_r=Ve[It.end]<Ve[It.start];return _r?Ut({distanceToEdge:Ve[It.end],thresholds:Pt,dragStartTime:at,shouldUseTimeDampening:Wt}):-1*Ut({distanceToEdge:Ve[It.start],thresholds:Pt,dragStartTime:at,shouldUseTimeDampening:Wt})},Ct=function(ee){var Ae=ee.container,Ve=ee.subject,at=ee.proposedScroll,It=Ve.height>Ae.height,Wt=Ve.width>Ae.width;return!Wt&&!It?at:Wt&&It?null:{x:Wt?0:at.x,y:It?0:at.y}},dr=Ie(function(De){return De===0?0:De}),nr=function(ee){var Ae=ee.dragStartTime,Ve=ee.container,at=ee.subject,It=ee.center,Wt=ee.shouldUseTimeDampening,Pt={top:It.y-Ve.top,right:Ve.right-It.x,bottom:Ve.bottom-It.y,left:It.x-Ve.left},_r=ur({container:Ve,distanceToEdges:Pt,dragStartTime:Ae,axis:Vn,shouldUseTimeDampening:Wt}),Zr=ur({container:Ve,distanceToEdges:Pt,dragStartTime:Ae,axis:kt,shouldUseTimeDampening:Wt}),Tr=dr({x:Zr,y:_r});if(me(Tr,Pe))return null;var Ar=Ct({container:Ve,subject:at,proposedScroll:Tr});return Ar?me(Ar,Pe)?null:Ar:null},Wr=Ie(function(De){return De===0?0:De>0?1:-1}),En=function(){var De=function(Ae,Ve){return Ae<0?Ae:Ae>Ve?Ae-Ve:0};return function(ee){var Ae=ee.current,Ve=ee.max,at=ee.change,It=Oe(Ae,at),Wt={x:De(It.x,Ve.x),y:De(It.y,Ve.y)};return me(Wt,Pe)?null:Wt}}(),Cn=function(ee){var Ae=ee.max,Ve=ee.current,at=ee.change,It={x:Math.max(Ve.x,Ae.x),y:Math.max(Ve.y,Ae.y)},Wt=Wr(at),Pt=En({max:It,current:Ve,change:Wt});return Pt?Wt.x!==0&&Pt.x===0?!0:Wt.y!==0&&Pt.y===0:!0},Nn=function(ee,Ae){return Cn({current:ee.scroll.current,max:ee.scroll.max,change:Ae})},oi=function(ee,Ae){if(!Nn(ee,Ae))return null;var Ve=ee.scroll.max,at=ee.scroll.current;return En({current:at,max:Ve,change:Ae})},Qn=function(ee,Ae){var Ve=ee.frame;return Ve?Cn({current:Ve.scroll.current,max:Ve.scroll.max,change:Ae}):!1},Vi=function(ee,Ae){var Ve=ee.frame;return Ve&&Qn(ee,Ae)?En({current:Ve.scroll.current,max:Ve.scroll.max,change:Ae}):null},wi=function(ee){var Ae=ee.viewport,Ve=ee.subject,at=ee.center,It=ee.dragStartTime,Wt=ee.shouldUseTimeDampening,Pt=nr({dragStartTime:It,container:Ae.frame,subject:Ve,center:at,shouldUseTimeDampening:Wt});return Pt&&Nn(Ae,Pt)?Pt:null},Ea=function(ee){var Ae=ee.droppable,Ve=ee.subject,at=ee.center,It=ee.dragStartTime,Wt=ee.shouldUseTimeDampening,Pt=Ae.frame;if(!Pt)return null;var _r=nr({dragStartTime:It,container:Pt.pageMarginBox,subject:Ve,center:at,shouldUseTimeDampening:Wt});return _r&&Qn(Ae,_r)?_r:null},aa=function(ee){var Ae=ee.state,Ve=ee.dragStartTime,at=ee.shouldUseTimeDampening,It=ee.scrollWindow,Wt=ee.scrollDroppable,Pt=Ae.current.page.borderBoxCenter,_r=Ae.dimensions.draggables[Ae.critical.draggable.id],Zr=_r.page.marginBox;if(Ae.isWindowScrollAllowed){var Tr=Ae.viewport,Ar=wi({dragStartTime:Ve,viewport:Tr,subject:Zr,center:Pt,shouldUseTimeDampening:at});if(Ar){It(Ar);return}}var Hr=ri({center:Pt,destination:ni(Ae.impact),droppables:Ae.dimensions.droppables});if(!Hr)return;var tn=Ea({dragStartTime:Ve,droppable:Hr,subject:Zr,center:Pt,shouldUseTimeDampening:at});tn&&Wt(Hr.descriptor.id,tn)},Ca=function(ee){var Ae=ee.scrollWindow,Ve=ee.scrollDroppable,at=D(Ae),It=D(Ve),Wt=null,Pt=function(Ar){Wt||ge(!1);var Hr=Wt,tn=Hr.shouldUseTimeDampening,_n=Hr.dragStartTime;aa({state:Ar,scrollWindow:at,scrollDroppable:It,dragStartTime:_n,shouldUseTimeDampening:tn})},_r=function(Ar){Fi(),Wt&&ge(!1);var Hr=Date.now(),tn=!1,_n=function(){tn=!0};aa({state:Ar,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:_n,scrollDroppable:_n}),Wt={dragStartTime:Hr,shouldUseTimeDampening:tn},ra(),tn&&Pt(Ar)},Zr=function(){if(!Wt)return;at.cancel(),It.cancel(),Wt=null};return{start:_r,stop:Zr,scroll:Pt}},fa=function(ee){var Ae=ee.move,Ve=ee.scrollDroppable,at=ee.scrollWindow,It=function(Tr,Ar){var Hr=Oe(Tr.current.client.selection,Ar);Ae({client:Hr})},Wt=function(Tr,Ar){if(!Qn(Tr,Ar))return Ar;var Hr=Vi(Tr,Ar);if(!Hr)return Ve(Tr.descriptor.id,Ar),null;var tn=le(Ar,Hr);Ve(Tr.descriptor.id,tn);var _n=le(Ar,tn);return _n},Pt=function(Tr,Ar,Hr){if(!Tr)return Hr;if(!Nn(Ar,Hr))return Hr;var tn=oi(Ar,Hr);if(!tn)return at(Hr),null;var _n=le(Hr,tn);at(_n);var gi=le(Hr,_n);return gi},_r=function(Tr){var Ar=Tr.scrollJumpRequest;if(!Ar)return;var Hr=ni(Tr.impact);Hr||ge(!1);var tn=Wt(Tr.dimensions.droppables[Hr],Ar);if(!tn)return;var _n=Tr.viewport,gi=Pt(Tr.isWindowScrollAllowed,_n,tn);if(!gi)return;It(Tr,gi)};return _r},ha=function(ee){var Ae=ee.scrollDroppable,Ve=ee.scrollWindow,at=ee.move,It=Ca({scrollWindow:Ve,scrollDroppable:Ae}),Wt=fa({move:at,scrollWindow:Ve,scrollDroppable:Ae}),Pt=function(Tr){if(Tr.phase!=="DRAGGING")return;if(Tr.movementMode==="FLUID"){It.scroll(Tr);return}if(!Tr.scrollJumpRequest)return;Wt(Tr)},_r={scroll:Pt,start:It.start,stop:It.stop};return _r},qi="data-rbd",Ma=function(){var De=qi+"-drag-handle";return{base:De,draggableId:De+"-draggable-id",contextId:De+"-context-id"}}(),za=function(){var De=qi+"-draggable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),la=function(){var De=qi+"-droppable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),ao={contextId:qi+"-scroll-container-context-id"},ka=function(ee){return function(Ae){return"["+Ae+'="'+ee+'"]'}},Ba=function(ee,Ae){return ee.map(function(Ve){var at=Ve.styles[Ae];return at?Ve.selector+" { "+at+" }":""}).join(" ")},oo="pointer-events: none;",ja=function(ee){var Ae=ka(ee),Ve=function(){var _r=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Ae(Ma.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:_r,dragging:oo,dropAnimating:_r}}}(),at=function(){var _r=`
transition: `+ca.outOfTheWay+`;
`;return{selector:Ae(za.contextId),styles:{dragging:_r,dropAnimating:_r,userCancel:_r}}}(),It={selector:Ae(la.contextId),styles:{always:"overflow-anchor: none;"}},Wt={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;
`}},Pt=[at,Ve,It,Wt];return{always:Ba(Pt,"always"),resting:Ba(Pt,"resting"),dragging:Ba(Pt,"dragging"),dropAnimating:Ba(Pt,"dropAnimating"),userCancel:Ba(Pt,"userCancel")}},Pa=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?O.useLayoutEffect:O.useEffect,Fr=function(){var ee=document.querySelector("head");return ee||ge(!1),ee},Oa=function(ee){var Ae=document.createElement("style");return ee&&Ae.setAttribute("nonce",ee),Ae.type="text/css",Ae};function No(De,ee){var Ae=r(function(){return ja(De)},[De]),Ve=Object(O.useRef)(null),at=Object(O.useRef)(null),It=o(I(function(Ar){var Hr=at.current;Hr||ge(!1),Hr.textContent=Ar}),[]),Wt=o(function(Ar){var Hr=Ve.current;Hr||ge(!1),Hr.textContent=Ar},[]);Pa(function(){!Ve.current&&!at.current||ge(!1);var Ar=Oa(ee),Hr=Oa(ee);return Ve.current=Ar,at.current=Hr,Ar.setAttribute(qi+"-always",De),Hr.setAttribute(qi+"-dynamic",De),Fr().appendChild(Ar),Fr().appendChild(Hr),Wt(Ae.always),It(Ae.resting),function(){var tn=function(gi){var Li=gi.current;Li||ge(!1),Fr().removeChild(Li),gi.current=null};tn(Ve),tn(at)}},[ee,Wt,It,Ae.always,Ae.resting,De]);var Pt=o(function(){return It(Ae.dragging)},[It,Ae.dragging]),_r=o(function(Ar){if(Ar==="DROP"){It(Ae.dropAnimating);return}It(Ae.userCancel)},[It,Ae.dropAnimating,Ae.userCancel]),Zr=o(function(){if(!at.current)return;It(Ae.resting)},[It,Ae.resting]),Tr=r(function(){return{dragging:Pt,dropping:_r,resting:Zr}},[Pt,_r,Zr]);return Tr}var Po=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Qo(De){return De instanceof Po(De).HTMLElement}function ss(De,ee){var Ae="["+Ma.contextId+'="'+De+'"]',Ve=yt(document.querySelectorAll(Ae));if(!Ve.length)return null;var at=oe(Ve,function(It){return It.getAttribute(Ma.draggableId)===ee});return at&&Qo(at)?at:null}function rs(De){var ee=Object(O.useRef)({}),Ae=Object(O.useRef)(null),Ve=Object(O.useRef)(null),at=Object(O.useRef)(!1),It=o(function(Hr,tn){var _n={id:Hr,focus:tn};return ee.current[Hr]=_n,function(){var Li=ee.current,oa=Li[Hr];oa!==_n&&delete Li[Hr]}},[]),Wt=o(function(Hr){var tn=ss(De,Hr);tn&&tn!==document.activeElement&&tn.focus()},[De]),Pt=o(function(Hr,tn){Ae.current===Hr&&(Ae.current=tn)},[]),_r=o(function(){if(Ve.current)return;if(!at.current)return;Ve.current=requestAnimationFrame(function(){Ve.current=null;var Hr=Ae.current;Hr&&Wt(Hr)})},[Wt]),Zr=o(function(Hr){Ae.current=null;var tn=document.activeElement;if(!tn)return;if(tn.getAttribute(Ma.draggableId)!==Hr)return;Ae.current=Hr},[]);Pa(function(){return at.current=!0,function(){at.current=!1;var Hr=Ve.current;Hr&&cancelAnimationFrame(Hr)}},[]);var Tr=r(function(){return{register:It,tryRecordFocus:Zr,tryRestoreFocusRecorded:_r,tryShiftRecord:Pt}},[It,Zr,_r,Pt]);return Tr}function Ko(){var De={draggables:{},droppables:{}},ee=[];function Ae(Ar){return ee.push(Ar),function(){var tn=ee.indexOf(Ar);if(tn===-1)return;ee.splice(tn,1)}}function Ve(Ar){ee.length&&ee.forEach(function(Hr){return Hr(Ar)})}function at(Ar){return De.draggables[Ar]||null}function It(Ar){var Hr=at(Ar);return Hr||ge(!1),Hr}var Wt={register:function(Hr){De.draggables[Hr.descriptor.id]=Hr,Ve({type:"ADDITION",value:Hr})},update:function(Hr,tn){var _n=De.draggables[tn.descriptor.id];if(!_n)return;if(_n.uniqueId!==Hr.uniqueId)return;delete De.draggables[tn.descriptor.id],De.draggables[Hr.descriptor.id]=Hr},unregister:function(Hr){var tn=Hr.descriptor.id,_n=at(tn);if(!_n)return;if(Hr.uniqueId!==_n.uniqueId)return;delete De.draggables[tn],Ve({type:"REMOVAL",value:Hr})},getById:It,findById:at,exists:function(Hr){return Boolean(at(Hr))},getAllByType:function(Hr){return je(De.draggables).filter(function(tn){return tn.descriptor.type===Hr})}};function Pt(Ar){return De.droppables[Ar]||null}function _r(Ar){var Hr=Pt(Ar);return Hr||ge(!1),Hr}var Zr={register:function(Hr){De.droppables[Hr.descriptor.id]=Hr},unregister:function(Hr){var tn=Pt(Hr.descriptor.id);if(!tn)return;if(Hr.uniqueId!==tn.uniqueId)return;delete De.droppables[Hr.descriptor.id]},getById:_r,findById:Pt,exists:function(Hr){return Boolean(Pt(Hr))},getAllByType:function(Hr){return je(De.droppables).filter(function(tn){return tn.descriptor.type===Hr})}};function Tr(){De.draggables={},De.droppables={},ee.length=0}return{draggable:Wt,droppable:Zr,subscribe:Ae,clean:Tr}}function $o(){var De=r(Ko,[]);return Object(O.useEffect)(function(){return function(){requestAnimationFrame(De.clean)}},[De]),De}var Uo=E.a.createContext(null),Wo=function(){var ee=document.body;return ee||ge(!1),ee},Go={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Oo=function(ee){return"rbd-announcement-"+ee};function Ka(De){var ee=r(function(){return Oo(De)},[De]),Ae=Object(O.useRef)(null);Object(O.useEffect)(function(){var It=document.createElement("div");return Ae.current=It,It.id=ee,It.setAttribute("aria-live","assertive"),It.setAttribute("aria-atomic","true"),Object(v.a)(It.style,Go),Wo().appendChild(It),function(){setTimeout(function(){var _r=Wo();_r.contains(It)&&_r.removeChild(It),It===Ae.current&&(Ae.current=null)})}},[ee]);var Ve=o(function(at){var It=Ae.current;if(It){It.textContent=at;return}},[]);return Ve}var Xa=0,bo={separator:"::"};function Eo(){Xa=0}function pt(De,ee){return ee===void 0&&(ee=bo),r(function(){return""+De+ee.separator+Xa++},[ee.separator,De])}function Nt(De){var ee=De.contextId,Ae=De.uniqueId;return"rbd-hidden-text-"+ee+"-"+Ae}function sn(De){var ee=De.contextId,Ae=De.text,Ve=pt("hidden-text",{separator:"-"}),at=r(function(){return Nt({contextId:ee,uniqueId:Ve})},[Ve,ee]);return Object(O.useEffect)(function(){var Wt=document.createElement("div");return Wt.id=at,Wt.textContent=Ae,Wt.style.display="none",Wo().appendChild(Wt),function(){var _r=Wo();_r.contains(Wt)&&_r.removeChild(Wt)}},[at,Ae]),at}var Mn=E.a.createContext(null),hi={react:"^16.8.5","react-dom":"^16.8.5"},ot=/(\d+)\.(\d+)\.(\d+)/,ae=function(ee){var Ae=ot.exec(ee);Ae!=null||ge(!1);var Ve=Number(Ae[1]),at=Number(Ae[2]),It=Number(Ae[3]);return{major:Ve,minor:at,patch:It,raw:ee}},de=function(ee,Ae){return Ae.major>ee.major?!0:Ae.major<ee.major?!1:Ae.minor>ee.minor?!0:Ae.minor<ee.minor?!1:Ae.patch>=ee.patch},ye=function(ee,Ae){var Ve=ae(ee),at=ae(Ae);if(de(Ve,at))return},Ke=`
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
`,ct=function(ee){var Ae=ee.doctype;if(!Ae)return;Ae.name.toLowerCase()!=="html",Ae.publicId!==""};function Bt(De){}function Ir(De,ee){Bt(function(){Object(O.useEffect)(function(){try{De()}catch(Ae){q(`
A setup problem was encountered.
> `+Ae.message+`
`)}},ee)})}function Br(){Ir(function(){ye(hi.react,E.a.version),ct(document)},[])}function un(De){var ee=Object(O.useRef)(De);return Object(O.useEffect)(function(){ee.current=De}),ee}function zn(){var De=null;function ee(){return Boolean(De)}function Ae(Wt){return Wt===De}function Ve(Wt){De&&ge(!1);var Pt={abandon:Wt};return De=Pt,Pt}function at(){De||ge(!1),De=null}function It(){De&&(De.abandon(),at())}return{isClaimed:ee,isActive:Ae,claim:Ve,release:at,tryAbandon:It}}var Rn=9,Fn=13,Ai=27,Di=32,ya=33,Ua=34,to=35,go=36,wo=37,qo=38,Mo=39,$i=40,To,fo=(To={},To[Fn]=!0,To[Rn]=!0,To),ts=function(ee){fo[ee.keyCode]&&ee.preventDefault()},Jo=function(){var De="visibilitychange";if(typeof document=="undefined")return De;var ee=[De,"ms"+De,"webkit"+De,"moz"+De,"o"+De],Ae=oe(ee,function(Ve){return"on"+Ve in document});return Ae||De}(),zo=0,is=5;function Rs(De,ee){return Math.abs(ee.x-De.x)>=is||Math.abs(ee.y-De.y)>=is}var gs={type:"IDLE"};function ps(De){var ee=De.cancel,Ae=De.completed,Ve=De.getPhase,at=De.setPhase;return[{eventName:"mousemove",fn:function(Wt){var Pt=Wt.button,_r=Wt.clientX,Zr=Wt.clientY;if(Pt!==zo)return;var Tr={x:_r,y:Zr},Ar=Ve();if(Ar.type==="DRAGGING"){Wt.preventDefault(),Ar.actions.move(Tr);return}Ar.type==="PENDING"||ge(!1);var Hr=Ar.point;if(!Rs(Hr,Tr))return;Wt.preventDefault();var tn=Ar.actions.fluidLift(Tr);at({type:"DRAGGING",actions:tn})}},{eventName:"mouseup",fn:function(Wt){var Pt=Ve();if(Pt.type!=="DRAGGING"){ee();return}Wt.preventDefault(),Pt.actions.drop({shouldBlockNextClick:!0}),Ae()}},{eventName:"mousedown",fn:function(Wt){Ve().type==="DRAGGING"&&Wt.preventDefault(),ee()}},{eventName:"keydown",fn:function(Wt){var Pt=Ve();if(Pt.type==="PENDING"){ee();return}if(Wt.keyCode===Ai){Wt.preventDefault(),ee();return}ts(Wt)}},{eventName:"resize",fn:ee},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ve().type==="PENDING"&&ee()}},{eventName:"webkitmouseforcedown",fn:function(Wt){var Pt=Ve();if(Pt.type!=="IDLE"||ge(!1),Pt.actions.shouldRespectForcePress()){ee();return}Wt.preventDefault()}},{eventName:Jo,fn:ee}]}function Ps(De){var ee=Object(O.useRef)(gs),Ae=Object(O.useRef)(ce),Ve=r(function(){return{eventName:"mousedown",fn:function(Ar){if(Ar.defaultPrevented)return;if(Ar.button!==zo)return;if(Ar.ctrlKey||Ar.metaKey||Ar.shiftKey||Ar.altKey)return;var Hr=De.findClosestDraggableId(Ar);if(!Hr)return;var tn=De.tryGetLock(Hr,Wt,{sourceEvent:Ar});if(!tn)return;Ar.preventDefault();var _n={x:Ar.clientX,y:Ar.clientY};Ae.current(),Zr(tn,_n)}}},[De]),at=r(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ar){if(Ar.defaultPrevented)return;var Hr=De.findClosestDraggableId(Ar);if(!Hr)return;var tn=De.findOptionsForDraggable(Hr);if(!tn)return;if(tn.shouldRespectForcePress)return;if(!De.canGetLock(Hr))return;Ar.preventDefault()}}},[De]),It=o(function(){var Ar={passive:!1,capture:!0};Ae.current=ve(window,[at,Ve],Ar)},[at,Ve]),Wt=o(function(){var Tr=ee.current;if(Tr.type==="IDLE")return;ee.current=gs,Ae.current(),It()},[It]),Pt=o(function(){var Tr=ee.current;Wt(),Tr.type==="DRAGGING"&&Tr.actions.cancel({shouldBlockNextClick:!0}),Tr.type==="PENDING"&&Tr.actions.abort()},[Wt]),_r=o(function(){var Ar={capture:!0,passive:!1},Hr=ps({cancel:Pt,completed:Wt,getPhase:function(){return ee.current},setPhase:function(_n){ee.current=_n}});Ae.current=ve(window,Hr,Ar)},[Pt,Wt]),Zr=o(function(Ar,Hr){ee.current.type==="IDLE"||ge(!1),ee.current={type:"PENDING",point:Hr,actions:Ar},_r()},[_r]);Pa(function(){return It(),function(){Ae.current()}},[It])}var Es;function Vs(){}var Ks=(Es={},Es[Ua]=!0,Es[ya]=!0,Es[go]=!0,Es[to]=!0,Es);function Gs(De,ee){function Ae(){ee(),De.cancel()}function Ve(){ee(),De.drop()}return[{eventName:"keydown",fn:function(It){if(It.keyCode===Ai){It.preventDefault(),Ae();return}if(It.keyCode===Di){It.preventDefault(),Ve();return}if(It.keyCode===$i){It.preventDefault(),De.moveDown();return}if(It.keyCode===qo){It.preventDefault(),De.moveUp();return}if(It.keyCode===Mo){It.preventDefault(),De.moveRight();return}if(It.keyCode===wo){It.preventDefault(),De.moveLeft();return}if(Ks[It.keyCode]){It.preventDefault();return}ts(It)}},{eventName:"mousedown",fn:Ae},{eventName:"mouseup",fn:Ae},{eventName:"click",fn:Ae},{eventName:"touchstart",fn:Ae},{eventName:"resize",fn:Ae},{eventName:"wheel",fn:Ae,options:{passive:!0}},{eventName:Jo,fn:Ae}]}function ws(De){var ee=Object(O.useRef)(Vs),Ae=r(function(){return{eventName:"keydown",fn:function(It){if(It.defaultPrevented)return;if(It.keyCode!==Di)return;var Wt=De.findClosestDraggableId(It);if(!Wt)return;var Pt=De.tryGetLock(Wt,Tr,{sourceEvent:It});if(!Pt)return;It.preventDefault();var _r=!0,Zr=Pt.snapLift();ee.current();function Tr(){_r||ge(!1),_r=!1,ee.current(),Ve()}ee.current=ve(window,Gs(Zr,Tr),{capture:!0,passive:!1})}}},[De]),Ve=o(function(){var It={passive:!1,capture:!0};ee.current=ve(window,[Ae],It)},[Ae]);Pa(function(){return Ve(),function(){ee.current()}},[Ve])}var Os={type:"IDLE"},$s=120,nl=.15;function il(De){var ee=De.cancel,Ae=De.getPhase;return[{eventName:"orientationchange",fn:ee},{eventName:"resize",fn:ee},{eventName:"contextmenu",fn:function(at){at.preventDefault()}},{eventName:"keydown",fn:function(at){if(Ae().type!=="DRAGGING"){ee();return}at.keyCode===Ai&&at.preventDefault(),ee()}},{eventName:Jo,fn:ee}]}function hl(De){var ee=De.cancel,Ae=De.completed,Ve=De.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(It){var Wt=Ve();if(Wt.type!=="DRAGGING"){ee();return}Wt.hasMoved=!0;var Pt=It.touches[0],_r=Pt.clientX,Zr=Pt.clientY,Tr={x:_r,y:Zr};It.preventDefault(),Wt.actions.move(Tr)}},{eventName:"touchend",fn:function(It){var Wt=Ve();if(Wt.type!=="DRAGGING"){ee();return}It.preventDefault(),Wt.actions.drop({shouldBlockNextClick:!0}),Ae()}},{eventName:"touchcancel",fn:function(It){if(Ve().type!=="DRAGGING"){ee();return}It.preventDefault(),ee()}},{eventName:"touchforcechange",fn:function(It){var Wt=Ve();Wt.type!=="IDLE"||ge(!1);var Pt=It.touches[0];if(!Pt)return;var _r=Pt.force>=nl;if(!_r)return;var Zr=Wt.actions.shouldRespectForcePress();if(Wt.type==="PENDING"){Zr&&ee();return}if(Zr){if(Wt.hasMoved){It.preventDefault();return}ee();return}It.preventDefault()}},{eventName:Jo,fn:ee}]}function Nl(De){var ee=Object(O.useRef)(Os),Ae=Object(O.useRef)(ce),Ve=o(function(){return ee.current},[]),at=o(function(tn){ee.current=tn},[]),It=r(function(){return{eventName:"touchstart",fn:function(tn){if(tn.defaultPrevented)return;var _n=De.findClosestDraggableId(tn);if(!_n)return;var gi=De.tryGetLock(_n,Pt,{sourceEvent:tn});if(!gi)return;var Li=tn.touches[0],oa=Li.clientX,Wi=Li.clientY,ro={x:oa,y:Wi};Ae.current(),Ar(gi,ro)}}},[De]),Wt=o(function(){var tn={capture:!0,passive:!1};Ae.current=ve(window,[It],tn)},[It]),Pt=o(function(){var Hr=ee.current;if(Hr.type==="IDLE")return;Hr.type==="PENDING"&&clearTimeout(Hr.longPressTimerId),at(Os),Ae.current(),Wt()},[Wt,at]),_r=o(function(){var Hr=ee.current;Pt(),Hr.type==="DRAGGING"&&Hr.actions.cancel({shouldBlockNextClick:!0}),Hr.type==="PENDING"&&Hr.actions.abort()},[Pt]),Zr=o(function(){var tn={capture:!0,passive:!1},_n={cancel:_r,completed:Pt,getPhase:Ve},gi=ve(window,hl(_n),tn),Li=ve(window,il(_n),tn);Ae.current=function(){gi(),Li()}},[_r,Ve,Pt]),Tr=o(function(){var tn=Ve();tn.type==="PENDING"||ge(!1);var _n=tn.actions.fluidLift(tn.point);at({type:"DRAGGING",actions:_n,hasMoved:!1})},[Ve,at]),Ar=o(function(tn,_n){Ve().type==="IDLE"||ge(!1);var gi=setTimeout(Tr,$s);at({type:"PENDING",point:_n,actions:tn,longPressTimerId:gi}),Zr()},[Zr,Ve,at,Tr]);Pa(function(){return Wt(),function(){Ae.current();var _n=Ve();_n.type==="PENDING"&&(clearTimeout(_n.longPressTimerId),at(Os))}},[Ve,Wt,at]),Pa(function(){var tn=ve(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return tn},[])}function Al(De){Bt(function(){var ee=un(De);Ir(function(){ee.current.length===De.length||ge(!1)})})}var yl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function al(De,ee){if(ee==null)return!1;var Ae=Boolean(yl[ee.tagName.toLowerCase()]);if(Ae)return!0;var Ve=ee.getAttribute("contenteditable");return Ve==="true"||Ve===""?!0:ee===De?!1:al(De,ee.parentElement)}function Ms(De,ee){var Ae=ee.target;return Qo(Ae)?al(De,Ae):!1}var Ws=function(ee){return e(ee.getBoundingClientRect()).center};function Is(De){return De instanceof Po(De).Element}var bl=function(){var De="matches";if(typeof document=="undefined")return De;var ee=[De,"msMatchesSelector","webkitMatchesSelector"],Ae=oe(ee,function(Ve){return Ve in Element.prototype});return Ae||De}();function wl(De,ee){return De==null?null:De[bl](ee)?De:wl(De.parentElement,ee)}function ol(De,ee){return De.closest?De.closest(ee):wl(De,ee)}function el(De){return"["+Ma.contextId+'="'+De+'"]'}function ms(De,ee){var Ae=ee.target;if(!Is(Ae))return null;var Ve=el(De),at=ol(Ae,Ve);return at&&Qo(at)?at:null}function Ss(De,ee){var Ae=ms(De,ee);return Ae?Ae.getAttribute(Ma.draggableId):null}function As(De,ee){var Ae="["+za.contextId+'="'+De+'"]',Ve=yt(document.querySelectorAll(Ae)),at=oe(Ve,function(It){return It.getAttribute(za.id)===ee});return at&&Qo(at)?at:null}function Ts(De){De.preventDefault()}function Us(De){var ee=De.expected,Ae=De.phase,Ve=De.isLockActive,at=De.shouldWarn;return Ve()?!(ee!==Ae):!1}function _l(De){var ee=De.lockAPI,Ae=De.store,Ve=De.registry,at=De.draggableId;if(ee.isClaimed())return!1;var It=Ve.draggable.findById(at);return It&&It.options.isEnabled?!!qn(Ae.getState(),at):!1}function Il(De){var ee=De.lockAPI,Ae=De.contextId,Ve=De.store,at=De.registry,It=De.draggableId,Wt=De.forceSensorStop,Pt=De.sourceEvent,_r=_l({lockAPI:ee,store:Ve,registry:at,draggableId:It});if(!_r)return null;var Zr=at.draggable.getById(It),Tr=As(Ae,Zr.descriptor.id);if(!Tr)return null;if(Pt&&!Zr.options.canDragInteractiveElements&&Ms(Tr,Pt))return null;var Ar=ee.claim(Wt||ce),Hr="PRE_DRAG";function tn(){return Zr.options.shouldRespectForcePress}function _n(){return ee.isActive(Ar)}function gi(po,Yo){Us({expected:po,phase:Hr,isLockActive:_n,shouldWarn:!0})&&Ve.dispatch(Yo())}var Li=gi.bind(null,"DRAGGING");function oa(po){function Yo(){ee.release(),Hr="COMPLETED"}Hr!=="PRE_DRAG"&&(Yo(),Hr==="PRE_DRAG"||ge(!1)),Ve.dispatch(Ya(po.liftActionArgs)),Hr="DRAGGING";function os(k,W){if(W===void 0&&(W={shouldBlockNextClick:!1}),po.cleanup(),W.shouldBlockNextClick){var $=ve(window,[{eventName:"click",fn:Ts,options:{once:!0,passive:!1,capture:!0}}]);setTimeout($)}Yo(),Ve.dispatch(pa({reason:k}))}return Object(v.a)({isActive:function(){return Us({expected:"DRAGGING",phase:Hr,isLockActive:_n,shouldWarn:!1})},shouldRespectForcePress:tn,drop:function(W){return os("DROP",W)},cancel:function(W){return os("CANCEL",W)}},po.actions)}function Wi(po){var Yo=D(function(k){Li(function(){return hr({client:k})})}),os=oa({liftActionArgs:{id:It,clientSelection:po,movementMode:"FLUID"},cleanup:function(){return Yo.cancel()},actions:{move:Yo}});return Object(v.a)({},os,{move:Yo})}function ro(){var po={moveUp:function(){return Li(Kn)},moveRight:function(){return Li(vi)},moveDown:function(){return Li(si)},moveLeft:function(){return Li(pi)}};return oa({liftActionArgs:{id:It,clientSelection:Ws(Tr),movementMode:"SNAP"},cleanup:ce,actions:po})}function xa(){var po=Us({expected:"PRE_DRAG",phase:Hr,isLockActive:_n,shouldWarn:!0});po&&ee.release()}var Co={isActive:function(){return Us({expected:"PRE_DRAG",phase:Hr,isLockActive:_n,shouldWarn:!1})},shouldRespectForcePress:tn,fluidLift:Wi,snapLift:ro,abort:xa};return Co}var Sl=[Ps,ws,Nl];function Zl(De){var ee=De.contextId,Ae=De.store,Ve=De.registry,at=De.customSensors,It=De.enableDefaultSensors,Wt=[].concat(It?Sl:[],at||[]),Pt=Object(O.useState)(function(){return zn()})[0],_r=o(function(Wi,ro){Wi.isDragging&&!ro.isDragging&&Pt.tryAbandon()},[Pt]);Pa(function(){var Wi=Ae.getState(),ro=Ae.subscribe(function(){var xa=Ae.getState();_r(Wi,xa),Wi=xa});return ro},[Pt,Ae,_r]),Pa(function(){return Pt.tryAbandon},[Pt.tryAbandon]);var Zr=o(function(oa){return _l({lockAPI:Pt,registry:Ve,store:Ae,draggableId:oa})},[Pt,Ve,Ae]),Tr=o(function(oa,Wi,ro){return Il({lockAPI:Pt,registry:Ve,contextId:ee,store:Ae,draggableId:oa,forceSensorStop:Wi,sourceEvent:ro&&ro.sourceEvent?ro.sourceEvent:null})},[ee,Pt,Ve,Ae]),Ar=o(function(oa){return Ss(ee,oa)},[ee]),Hr=o(function(oa){var Wi=Ve.draggable.findById(oa);return Wi?Wi.options:null},[Ve.draggable]),tn=o(function(){if(!Pt.isClaimed())return;Pt.tryAbandon(),Ae.getState().phase!=="IDLE"&&Ae.dispatch(di())},[Pt,Ae]),_n=o(Pt.isClaimed,[Pt]),gi=r(function(){return{canGetLock:Zr,tryGetLock:Tr,findClosestDraggableId:Ar,findOptionsForDraggable:Hr,tryReleaseLock:tn,isLockClaimed:_n}},[Zr,Tr,Ar,Hr,tn,_n]);Al(Wt);for(var Li=0;Li<Wt.length;Li++)Wt[Li](gi)}var iu=function(ee){return{onBeforeCapture:ee.onBeforeCapture,onBeforeDragStart:ee.onBeforeDragStart,onDragStart:ee.onDragStart,onDragEnd:ee.onDragEnd,onDragUpdate:ee.onDragUpdate}};function tl(De){return De.current||ge(!1),De.current}function xl(De){var ee=De.contextId,Ae=De.setCallbacks,Ve=De.sensors,at=De.nonce,It=De.dragHandleUsageInstructions,Wt=Object(O.useRef)(null);Br();var Pt=un(De),_r=o(function(){return iu(Pt.current)},[Pt]),Zr=Ka(ee),Tr=sn({contextId:ee,text:It}),Ar=No(ee,at),Hr=o(function(k){tl(Wt).dispatch(k)},[]),tn=r(function(){return Object(w.b)({publishWhileDragging:Ao,updateDroppableScroll:so,updateDroppableIsEnabled:So,updateDroppableIsCombineEnabled:xo,collectionStarting:es},Hr)},[Hr]),_n=$o(),gi=r(function(){return $n(_n,tn)},[_n,tn]),Li=r(function(){return ha(Object(v.a)({scrollWindow:Gn,scrollDroppable:gi.scrollDroppable},Object(w.b)({move:hr},Hr)))},[gi.scrollDroppable,Hr]),oa=rs(ee),Wi=r(function(){return rr({announce:Zr,autoScroller:Li,dimensionMarshal:gi,focusMarshal:oa,getResponders:_r,styleMarshal:Ar})},[Zr,Li,gi,oa,_r,Ar]);Wt.current=Wi;var ro=o(function(){var k=tl(Wt),W=k.getState();W.phase!=="IDLE"&&k.dispatch(di())},[]),xa=o(function(){var k=tl(Wt).getState();return k.isDragging||k.phase==="DROP_ANIMATING"},[]),Co=r(function(){return{isDragging:xa,tryAbort:ro}},[xa,ro]);Ae(Co);var po=o(function(k){return qn(tl(Wt).getState(),k)},[]),Yo=o(function(){return Ri(tl(Wt).getState())},[]),os=r(function(){return{marshal:gi,focus:oa,contextId:ee,canLift:po,isMovementAllowed:Yo,dragHandleUsageInstructionsId:Tr,registry:_n}},[ee,gi,Tr,oa,po,Yo,_n]);return Zl({contextId:ee,store:Wi,registry:_n,customSensors:Ve,enableDefaultSensors:De.enableDefaultSensors!==!1}),Object(O.useEffect)(function(){return ro},[ro]),E.a.createElement(Mn.Provider,{value:os},E.a.createElement(m.a,{context:Uo,store:Wi},De.children))}var Ns=0;function Pl(){Ns=0}function uu(){return r(function(){return""+Ns++},[])}function $l(){Pl(),Eo()}function au(De){var ee=uu(),Ae=De.dragHandleUsageInstructions||he.dragHandleUsageInstructions;return E.a.createElement(Fe,null,function(Ve){return E.a.createElement(xl,{nonce:De.nonce,contextId:ee,setCallbacks:Ve,dragHandleUsageInstructions:Ae,enableDefaultSensors:De.enableDefaultSensors,sensors:De.sensors,onBeforeCapture:De.onBeforeCapture,onBeforeDragStart:De.onBeforeDragStart,onDragStart:De.onDragStart,onDragUpdate:De.onDragUpdate,onDragEnd:De.onDragEnd},De.children)})}var cu=function(ee){return function(Ae){return ee===Ae}},Xs=cu("scroll"),_s=cu("auto"),fl=cu("visible"),ql=function(ee,Ae){return Ae(ee.overflowX)||Ae(ee.overflowY)},yu=function(ee,Ae){return Ae(ee.overflowX)&&Ae(ee.overflowY)},du=function(ee){var Ae=window.getComputedStyle(ee),Ve={overflowX:Ae.overflowX,overflowY:Ae.overflowY};return ql(Ve,Xs)||ql(Ve,_s)},Ll=function(){return!1;var ee,Ae;if(!du(ee))return!1;var Ve,at;if(yu(at,fl))return!1},Xl=function De(ee){return ee==null?null:ee===document.body?Ll()?ee:null:ee===document.documentElement?null:du(ee)?ee:De(ee.parentElement)},Ou=function(ee){if(!ee)return;var Ae=Xl(ee.parentElement);if(!Ae)return},hu=function(ee){return{x:ee.scrollLeft,y:ee.scrollTop}},bu=function De(ee){if(!ee)return!1;var Ae=window.getComputedStyle(ee);return Ae.position==="fixed"?!0:De(ee.parentElement)},Dl=function(ee){var Ae=Xl(ee),Ve=bu(ee);return{closestScrollable:Ae,isFixedOnPage:Ve}},Fl=function(ee){var Ae=ee.descriptor,Ve=ee.isEnabled,at=ee.isCombineEnabled,It=ee.isFixedOnPage,Wt=ee.direction,Pt=ee.client,_r=ee.page,Zr=ee.closest,Tr=function(){if(!Zr)return null;var _n=Zr.scrollSize,gi=Zr.client,Li=pn({scrollHeight:_n.scrollHeight,scrollWidth:_n.scrollWidth,height:gi.paddingBox.height,width:gi.paddingBox.width});return{pageMarginBox:Zr.page.marginBox,frameClient:gi,scrollSize:_n,shouldClipSubject:Zr.shouldClipSubject,scroll:{initial:Zr.scroll,current:Zr.scroll,max:Li,diff:{value:Pe,displacement:Pe}}}}(),Ar=Wt==="vertical"?Vn:kt,Hr=Be({page:_r,withPlaceholder:null,axis:Ar,frame:Tr}),tn={descriptor:Ae,isCombineEnabled:at,isFixedOnPage:It,axis:Ar,isEnabled:Ve,client:Pt,page:_r,frame:Tr,subject:Hr};return tn},jl=function(ee,Ae){var Ve=x(ee);if(!Ae)return Ve;if(ee!==Ae)return Ve;var at=Ve.paddingBox.top-Ae.scrollTop,It=Ve.paddingBox.left-Ae.scrollLeft,Wt=at+Ae.scrollHeight,Pt=It+Ae.scrollWidth,_r={top:at,right:Pt,bottom:Wt,left:It},Zr=s(_r,Ve.border),Tr=u({borderBox:Zr,margin:Ve.margin,border:Ve.border,padding:Ve.padding});return Tr},Hl=function(ee){var Ae=ee.ref,Ve=ee.descriptor,at=ee.env,It=ee.windowScroll,Wt=ee.direction,Pt=ee.isDropDisabled,_r=ee.isCombineEnabled,Zr=ee.shouldClipSubject,Tr=at.closestScrollable,Ar=jl(Ae,Tr),Hr=A(Ar,It),tn=function(){if(!Tr)return null;var gi=x(Tr),Li={scrollHeight:Tr.scrollHeight,scrollWidth:Tr.scrollWidth};return{client:gi,page:A(gi,It),scroll:hu(Tr),scrollSize:Li,shouldClipSubject:Zr}}(),_n=Fl({descriptor:Ve,isEnabled:!Pt,isCombineEnabled:_r,isFixedOnPage:at.isFixedOnPage,direction:Wt,client:Ar,page:Hr,closest:tn});return _n},Fs={passive:!1},rl={passive:!0},Kl=function(ee){return ee.shouldPublishImmediately?Fs:rl};function sl(De){var ee=Object(O.useContext)(De);return ee||ge(!1),ee}var Yl=function(ee){return ee&&ee.env.closestScrollable||null};function _u(De){var ee=Object(O.useRef)(null),Ae=sl(Mn),Ve=pt("droppable"),at=Ae.registry,It=Ae.marshal,Wt=un(De),Pt=r(function(){return{id:De.droppableId,type:De.type,mode:De.mode}},[De.droppableId,De.mode,De.type]),_r=Object(O.useRef)(Pt),Zr=r(function(){return I(function(xa,Co){ee.current||ge(!1);var po={x:xa,y:Co};It.updateDroppableScroll(Pt.id,po)})},[Pt.id,It]),Tr=o(function(){var xa=ee.current;return!xa||!xa.env.closestScrollable?Pe:hu(xa.env.closestScrollable)},[]),Ar=o(function(){var xa=Tr();Zr(xa.x,xa.y)},[Tr,Zr]),Hr=r(function(){return D(Ar)},[Ar]),tn=o(function(){var xa=ee.current,Co=Yl(xa);xa&&Co||ge(!1);var po=xa.scrollOptions;if(po.shouldPublishImmediately){Ar();return}Hr()},[Hr,Ar]),_n=o(function(xa,Co){ee.current&&ge(!1);var po=Wt.current,Yo=po.getDroppableRef();Yo||ge(!1);var os=Dl(Yo),k={ref:Yo,descriptor:Pt,env:os,scrollOptions:Co};ee.current=k;var W=Hl({ref:Yo,descriptor:Pt,env:os,windowScroll:xa,direction:po.direction,isDropDisabled:po.isDropDisabled,isCombineEnabled:po.isCombineEnabled,shouldClipSubject:!po.ignoreContainerClipping}),$=os.closestScrollable;return $&&($.setAttribute(ao.contextId,Ae.contextId),$.addEventListener("scroll",tn,Kl(k.scrollOptions))),W},[Ae.contextId,Pt,tn,Wt]),gi=o(function(){var xa=ee.current,Co=Yl(xa);return xa&&Co||ge(!1),hu(Co)},[]),Li=o(function(){var xa=ee.current;xa||ge(!1);var Co=Yl(xa);if(ee.current=null,!Co)return;Hr.cancel(),Co.removeAttribute(ao.contextId),Co.removeEventListener("scroll",tn,Kl(xa.scrollOptions))},[tn,Hr]),oa=o(function(xa){var Co=ee.current;Co||ge(!1);var po=Yl(Co);po||ge(!1),po.scrollTop+=xa.y,po.scrollLeft+=xa.x},[]),Wi=r(function(){return{getDimensionAndWatchScroll:_n,getScrollWhileDragging:gi,dragStopped:Li,scroll:oa}},[Li,_n,gi,oa]),ro=r(function(){return{uniqueId:Ve,descriptor:Pt,callbacks:Wi}},[Wi,Pt,Ve]);Pa(function(){return _r.current=ro.descriptor,at.droppable.register(ro),function(){ee.current&&Li(),at.droppable.unregister(ro)}},[Wi,Pt,Li,ro,It,at.droppable]),Pa(function(){if(!ee.current)return;It.updateDroppableIsEnabled(_r.current.id,!De.isDropDisabled)},[De.isDropDisabled,It]),Pa(function(){if(!ee.current)return;It.updateDroppableIsCombineEnabled(_r.current.id,De.isCombineEnabled)},[De.isCombineEnabled,It])}function wu(){}var Bl={width:0,height:0,margin:Ot},El=function(ee){var Ae=ee.isAnimatingOpenOnMount,Ve=ee.placeholder,at=ee.animate;return Ae||at==="close"?Bl:{height:Ve.client.borderBox.height,width:Ve.client.borderBox.width,margin:Ve.client.margin}},Ql=function(ee){var Ae=ee.isAnimatingOpenOnMount,Ve=ee.placeholder,at=ee.animate,It=El({isAnimatingOpenOnMount:Ae,placeholder:Ve,animate:at});return{display:Ve.display,boxSizing:"border-box",width:It.width,height:It.height,marginTop:It.margin.top,marginRight:It.margin.right,marginBottom:It.margin.bottom,marginLeft:It.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:at!=="none"?ca.placeholder:null}};function Iu(De){var ee=Object(O.useRef)(null),Ae=o(function(){if(!ee.current)return;clearTimeout(ee.current),ee.current=null},[]),Ve=De.animate,at=De.onTransitionEnd,It=De.onClose,Wt=De.contextId,Pt=Object(O.useState)(De.animate==="open"),_r=Pt[0],Zr=Pt[1];Object(O.useEffect)(function(){return _r?Ve!=="open"?(Ae(),Zr(!1),wu):ee.current?wu:(ee.current=setTimeout(function(){ee.current=null,Zr(!1)}),Ae):wu},[Ve,_r,Ae]);var Tr=o(function(Hr){if(Hr.propertyName!=="height")return;at(),Ve==="close"&&It()},[Ve,It,at]),Ar=Ql({isAnimatingOpenOnMount:_r,animate:De.animate,placeholder:De.placeholder});return E.a.createElement(De.placeholder.tagName,{style:Ar,"data-rbd-placeholder-context-id":Wt,onTransitionEnd:Tr,ref:De.innerRef})}var Lu=E.a.memo(Iu),ou=E.a.createContext(null);function eu(De){De&&Qo(De)||ge(!1)}function su(De){return typeof De=="boolean"}function Ul(De,ee){ee.forEach(function(Ae){return Ae(De)})}var fu=[function(ee){var Ae=ee.props;Ae.droppableId||ge(!1),typeof Ae.droppableId=="string"||ge(!1)},function(ee){var Ae=ee.props;su(Ae.isDropDisabled)||ge(!1),su(Ae.isCombineEnabled)||ge(!1),su(Ae.ignoreContainerClipping)||ge(!1)},function(ee){var Ae=ee.getDroppableRef;eu(Ae())}],pl=[function(ee){var Ae=ee.props,Ve=ee.getPlaceholderRef;if(!Ae.placeholder)return;var at=Ve();if(at)return}],ml=[function(ee){var Ae=ee.props;Ae.renderClone||ge(!1)},function(ee){var Ae=ee.getPlaceholderRef;Ae()&&ge(!1)}];function Wl(De){Ir(function(){Ul(De,fu),De.props.mode==="standard"&&Ul(De,pl),De.props.mode==="virtual"&&Ul(De,ml)})}var as=function(De){Object(C.a)(ee,De);function ee(){for(var Ve,at=arguments.length,It=new Array(at),Wt=0;Wt<at;Wt++)It[Wt]=arguments[Wt];return Ve=De.call.apply(De,[this].concat(It))||this,Ve.state={isVisible:Boolean(Ve.props.on),data:Ve.props.on,animate:Ve.props.shouldAnimate&&Ve.props.on?"open":"none"},Ve.onClose=function(){if(Ve.state.animate!=="close")return;Ve.setState({isVisible:!1})},Ve}ee.getDerivedStateFromProps=function(at,It){return at.shouldAnimate?at.on?{isVisible:!0,data:at.on,animate:"open"}:It.isVisible?{isVisible:!0,data:It.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(at.on),data:at.on,animate:"none"}};var Ae=ee.prototype;return Ae.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)},ee}(E.a.PureComponent),uo={dragging:5e3,dropAnimating:4500},Do=function(ee,Ae){return Ae?ca.drop(Ae.duration):ee?ca.snap:ca.fluid},Xo=function(ee,Ae){return ee?Ae?sa.opacity.drop:sa.opacity.combining:null},Ls=function(ee){return ee.forceShouldAnimate!=null?ee.forceShouldAnimate:ee.mode==="SNAP"};function zl(De){var ee=De.dimension,Ae=ee.client,Ve=De.offset,at=De.combineWith,It=De.dropping,Wt=Boolean(at),Pt=Ls(De),_r=Boolean(It),Zr=_r?lo.drop(Ve,Wt):lo.moveTo(Ve),Tr={position:"fixed",top:Ae.marginBox.top,left:Ae.marginBox.left,boxSizing:"border-box",width:Ae.borderBox.width,height:Ae.borderBox.height,transition:Do(Pt,It),transform:Zr,opacity:Xo(Wt,_r),zIndex:_r?uo.dropAnimating:uo.dragging,pointerEvents:"none"};return Tr}function Rl(De){return{transform:lo.moveTo(De.offset),transition:De.shouldAnimateDisplacement?null:"none"}}function ll(De){return De.type==="DRAGGING"?zl(De):Rl(De)}function Tl(De,ee,Ae){Ae===void 0&&(Ae=Pe);var Ve=window.getComputedStyle(ee),at=ee.getBoundingClientRect(),It=y(at,Ve),Wt=A(It,Ae),Pt={client:It,tagName:ee.tagName.toLowerCase(),display:Ve.display},_r={x:It.marginBox.width,y:It.marginBox.height},Zr={descriptor:De,placeholder:Pt,displaceBy:_r,client:It,page:Wt};return Zr}function Ml(De){var ee=pt("draggable"),Ae=De.descriptor,Ve=De.registry,at=De.getDraggableRef,It=De.canDragInteractiveElements,Wt=De.shouldRespectForcePress,Pt=De.isEnabled,_r=r(function(){return{canDragInteractiveElements:It,shouldRespectForcePress:Wt,isEnabled:Pt}},[It,Pt,Wt]),Zr=o(function(tn){var _n=at();return _n||ge(!1),Tl(Ae,_n,tn)},[Ae,at]),Tr=r(function(){return{uniqueId:ee,descriptor:Ae,options:_r,getDimension:Zr}},[Ae,Zr,_r,ee]),Ar=Object(O.useRef)(Tr),Hr=Object(O.useRef)(!0);Pa(function(){return Ve.draggable.register(Ar.current),function(){return Ve.draggable.unregister(Ar.current)}},[Ve.draggable]),Pa(function(){if(Hr.current){Hr.current=!1;return}var tn=Ar.current;Ar.current=Tr,Ve.draggable.update(Tr,tn)},[Tr,Ve.draggable])}function Jl(De,ee,Ae){Ir(function(){function Ve(It){return"Draggable[id: "+It+"]: "}var at=De.draggableId;if(at||ge(!1),typeof at=="string"||ge(!1),J(De.index)||ge(!1),De.mapped.type==="DRAGGING")return;eu(Ae()),De.isEnabled&&(ss(ee,at)||ge(!1))})}function Ys(De){Bt(function(){var ee=Object(O.useRef)(De);Ir(function(){De===ee.current||ge(!1)},[De])})}function tu(De){De.preventDefault()}function Su(De){var ee=Object(O.useRef)(null),Ae=o(function(k){ee.current=k},[]),Ve=o(function(){return ee.current},[]),at=sl(Mn),It=at.contextId,Wt=at.dragHandleUsageInstructionsId,Pt=at.registry,_r=sl(ou),Zr=_r.type,Tr=_r.droppableId,Ar=r(function(){return{id:De.draggableId,index:De.index,type:Zr,droppableId:Tr}},[De.draggableId,De.index,Zr,Tr]),Hr=De.children,tn=De.draggableId,_n=De.isEnabled,gi=De.shouldRespectForcePress,Li=De.canDragInteractiveElements,oa=De.isClone,Wi=De.mapped,ro=De.dropAnimationFinished;if(Jl(De,It,Ve),Ys(oa),!oa){var xa=r(function(){return{descriptor:Ar,registry:Pt,getDraggableRef:Ve,canDragInteractiveElements:Li,shouldRespectForcePress:gi,isEnabled:_n}},[Ar,Pt,Ve,Li,gi,_n]);Ml(xa)}var Co=r(function(){return _n?{tabIndex:0,role:"button","aria-describedby":Wt,"data-rbd-drag-handle-draggable-id":tn,"data-rbd-drag-handle-context-id":It,draggable:!1,onDragStart:tu}:null},[It,Wt,tn,_n]),po=o(function(k){if(Wi.type!=="DRAGGING")return;if(!Wi.dropping)return;if(k.propertyName!=="transform")return;ro()},[ro,Wi]),Yo=r(function(){var k=ll(Wi),W=Wi.type==="DRAGGING"&&Wi.dropping?po:null,$={innerRef:Ae,draggableProps:{"data-rbd-draggable-context-id":It,"data-rbd-draggable-id":tn,style:k,onTransitionEnd:W},dragHandleProps:Co};return $},[It,Co,tn,Wi,po,Ae]),os=r(function(){return{draggableId:Ar.id,type:Ar.type,source:{index:Ar.index,droppableId:Ar.droppableId}}},[Ar.droppableId,Ar.id,Ar.index,Ar.type]);return Hr(Yo,Wi.snapshot,os)}var pu=function(ee,Ae){return ee===Ae},Du=function(ee){var Ae=ee.combine,Ve=ee.destination;return Ve?Ve.droppableId:Ae?Ae.droppableId:null},Hu=function(ee){return ee.combine?ee.combine.draggableId:null},ls=function(ee){return ee.at&&ee.at.type==="COMBINE"?ee.at.combine.draggableId:null};function Zo(){var De=I(function(at,It){return{x:at,y:It}}),ee=I(function(at,It,Wt,Pt,_r){return{isDragging:!0,isClone:It,isDropAnimating:Boolean(_r),dropAnimation:_r,mode:at,draggingOver:Wt,combineWith:Pt,combineTargetFor:null}}),Ae=I(function(at,It,Wt,Pt,_r,Zr,Tr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:_r,combineWith:Zr,mode:It,offset:at,dimension:Wt,forceShouldAnimate:Tr,snapshot:ee(It,Pt,_r,Zr,null)}}}),Ve=function(It,Wt){if(It.isDragging){if(It.critical.draggable.id!==Wt.draggableId)return null;var Pt=It.current.client.offset,_r=It.dimensions.draggables[Wt.draggableId],Zr=ni(It.impact),Tr=ls(It.impact),Ar=It.forceShouldAnimate;return Ae(De(Pt.x,Pt.y),It.movementMode,_r,Wt.isClone,Zr,Tr,Ar)}if(It.phase==="DROP_ANIMATING"){var Hr=It.completed;if(Hr.result.draggableId!==Wt.draggableId)return null;var tn=Wt.isClone,_n=It.dimensions.draggables[Wt.draggableId],gi=Hr.result,Li=gi.mode,oa=Du(gi),Wi=Hu(gi),ro=It.dropDuration,xa={duration:ro,curve:La.drop,moveTo:It.newHomeClientOffset,opacity:Wi?sa.opacity.drop:null,scale:Wi?sa.scale.drop:null};return{mapped:{type:"DRAGGING",offset:It.newHomeClientOffset,dimension:_n,dropping:xa,draggingOver:oa,combineWith:Wi,mode:Li,forceShouldAnimate:null,snapshot:ee(Li,tn,oa,Wi,xa)}}}return null};return Ve}function ds(De){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:De,combineWith:null}}var Cs={mapped:{type:"SECONDARY",offset:Pe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ds(null)}};function js(){var De=I(function(Wt,Pt){return{x:Wt,y:Pt}}),ee=I(ds),Ae=I(function(Wt,Pt,_r){return Pt===void 0&&(Pt=null),{mapped:{type:"SECONDARY",offset:Wt,combineTargetFor:Pt,shouldAnimateDisplacement:_r,snapshot:ee(Pt)}}}),Ve=function(Pt){return Pt?Ae(Pe,Pt,!0):null},at=function(Pt,_r,Zr,Tr){var Ar=Zr.displaced.visible[Pt],Hr=Boolean(Tr.inVirtualList&&Tr.effected[Pt]),tn=gr(Zr),_n=tn&&tn.draggableId===Pt?_r:null;if(!Ar){if(!Hr)return Ve(_n);if(Zr.displaced.invisible[Pt])return null;var gi=_e(Tr.displacedBy.point),Li=De(gi.x,gi.y);return Ae(Li,_n,!0)}if(Hr)return Ve(_n);var oa=Zr.displacedBy.point,Wi=De(oa.x,oa.y);return Ae(Wi,_n,Ar.shouldAnimate)},It=function(Pt,_r){if(Pt.isDragging)return Pt.critical.draggable.id===_r.draggableId?null:at(_r.draggableId,Pt.critical.draggable.id,Pt.impact,Pt.afterCritical);if(Pt.phase==="DROP_ANIMATING"){var Zr=Pt.completed;return Zr.result.draggableId===_r.draggableId?null:at(_r.draggableId,Zr.result.draggableId,Zr.impact,Zr.afterCritical)}return null};return It}var vs=function(){var ee=Zo(),Ae=js(),Ve=function(It,Wt){return ee(It,Wt)||Ae(It,Wt)||Cs};return Ve},ul={dropAnimationFinished:da},gl=Object(m.c)(vs,ul,null,{context:Uo,pure:!0,areStatePropsEqual:pu})(Su);function vl(De){var ee=sl(ou),Ae=ee.isUsingCloneFor;return Ae===De.draggableId&&!De.isClone?null:E.a.createElement(gl,De)}function ru(De){var ee=typeof De.isDragDisabled=="boolean"?!De.isDragDisabled:!0,Ae=Boolean(De.disableInteractiveElementBlocking),Ve=Boolean(De.shouldRespectForcePress);return E.a.createElement(vl,Object(v.a)({},De,{isClone:!1,isEnabled:ee,canDragInteractiveElements:Ae,shouldRespectForcePress:Ve}))}function lu(De){var ee=Object(O.useContext)(Mn);ee||ge(!1);var Ae=ee.contextId,Ve=ee.isMovementAllowed,at=Object(O.useRef)(null),It=Object(O.useRef)(null),Wt=De.children,Pt=De.droppableId,_r=De.type,Zr=De.mode,Tr=De.direction,Ar=De.ignoreContainerClipping,Hr=De.isDropDisabled,tn=De.isCombineEnabled,_n=De.snapshot,gi=De.useClone,Li=De.updateViewportMaxScroll,oa=De.getContainerForClone,Wi=o(function(){return at.current},[]),ro=o(function(re){at.current=re},[]),xa=o(function(){return It.current},[]),Co=o(function(re){It.current=re},[]);Wl({props:De,getDroppableRef:Wi,getPlaceholderRef:xa});var po=o(function(){Ve()&&Li({maxScroll:br()})},[Ve,Li]);_u({droppableId:Pt,type:_r,mode:Zr,direction:Tr,isDropDisabled:Hr,isCombineEnabled:tn,ignoreContainerClipping:Ar,getDroppableRef:Wi});var Yo=E.a.createElement(as,{on:De.placeholder,shouldAnimate:De.shouldAnimatePlaceholder},function(re){var se=re.onClose,ke=re.data,ft=re.animate;return E.a.createElement(Lu,{placeholder:ke,onClose:se,innerRef:Co,animate:ft,contextId:Ae,onTransitionEnd:po})}),os=r(function(){return{innerRef:ro,placeholder:Yo,droppableProps:{"data-rbd-droppable-id":Pt,"data-rbd-droppable-context-id":Ae}}},[Ae,Pt,Yo,ro]),k=gi?gi.dragging.draggableId:null,W=r(function(){return{droppableId:Pt,type:_r,isUsingCloneFor:k}},[Pt,k,_r]);function $(){if(!gi)return null;var re=gi.dragging,se=gi.render,ke=E.a.createElement(vl,{draggableId:re.draggableId,index:re.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ft,Kt){return se(ft,Kt,re)});return M.a.createPortal(ke,oa())}return E.a.createElement(ou.Provider,{value:W},Wt(os,_n),$())}var mu=function(ee,Ae){return ee===Ae.droppable.type},pe=function(ee,Ae){return Ae.draggables[ee.draggable.id]},We=function(){var ee={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Ae=Object(v.a)({},ee,{shouldAnimatePlaceholder:!1}),Ve=I(function(Wt){return{draggableId:Wt.id,type:Wt.type,source:{index:Wt.index,droppableId:Wt.droppableId}}}),at=I(function(Wt,Pt,_r,Zr,Tr,Ar){var Hr=Tr.descriptor.id,tn=Tr.descriptor.droppableId===Wt;if(tn){var _n=Ar?{render:Ar,dragging:Ve(Tr.descriptor)}:null,gi={isDraggingOver:_r,draggingOverWith:_r?Hr:null,draggingFromThisWith:Hr,isUsingPlaceholder:!0};return{placeholder:Tr.placeholder,shouldAnimatePlaceholder:!1,snapshot:gi,useClone:_n}}if(!Pt)return Ae;if(!Zr)return ee;var Li={isDraggingOver:_r,draggingOverWith:Hr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Tr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Li,useClone:null}}),It=function(Pt,_r){var Zr=_r.droppableId,Tr=_r.type,Ar=!_r.isDropDisabled,Hr=_r.renderClone;if(Pt.isDragging){var tn=Pt.critical;if(!mu(Tr,tn))return Ae;var _n=pe(tn,Pt.dimensions),gi=ni(Pt.impact)===Zr;return at(Zr,Ar,gi,gi,_n,Hr)}if(Pt.phase==="DROP_ANIMATING"){var Li=Pt.completed;if(!mu(Tr,Li.critical))return Ae;var oa=pe(Li.critical,Pt.dimensions);return at(Zr,Ar,Du(Li.result)===Zr,ni(Li.impact)===Zr,oa,Hr)}if(Pt.phase==="IDLE"&&Pt.completed&&!Pt.shouldFlush){var Wi=Pt.completed;if(!mu(Tr,Wi.critical))return Ae;var ro=ni(Wi.impact)===Zr,xa=Boolean(Wi.impact.at&&Wi.impact.at.type==="COMBINE"),Co=Wi.critical.droppable.id===Zr;return ro?xa?ee:Ae:Co?ee:Ae}return Ae};return It},ht={updateViewportMaxScroll:dn};function Yt(){return document.body||ge(!1),document.body}var Er={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Yt},Xr=Object(m.c)(We,ht,null,{context:Uo,pure:!0,areStatePropsEqual:pu})(lu);Xr.defaultProps=Er},ni6a:function(j,P,d){var O=d("pzxd"),E=d("mFDi"),C=d("gut8"),v=C.WILL_BE_RESTORED,w=new E,m=function(){};m.prototype={constructor:m,drawRectText:function(i,r){var o=this.style;r=o.textRect||r,this.__dirty&&O.normalizeTextStyle(o,!0);var n=o.text;if(n!=null&&(n+=""),!O.needDrawText(n,o))return;i.save();var e=this.transform;o.transformText?this.setTransform(i):e&&(w.copy(r),w.applyTransform(e),r=w),O.renderText(this,i,n,o,r,v),i.restore()}};var h=m;j.exports=h},nkfE:function(j,P,d){var O=d("bYtY"),E=d("ca2m"),C=d("bLfw"),v=d("+TT/"),w=v.getLayoutParams,m=v.mergeLayoutParam,h=d("jkPA"),c=["value","category","time","log"];function i(r,o,n,e){O.each(c,function(s){o.extend({type:r+"Axis."+s,mergeDefaultAndTheme:function(t,a){var l=this.layoutMode,u=l?w(t):{},f=a.getTheme();O.merge(t,f.get(s+"Axis")),O.merge(t,this.getDefaultOption()),t.type=n(r,t),l&&m(t,u,l)},optionUpdated:function(){var t=this.option;t.type==="category"&&(this.__ordinalMeta=h.createByAxisModel(this))},getCategories:function(t){var a=this.option;if(a.type==="category")return t?a.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:O.mergeAll([{},E[s+"Axis"],e],!0)})}),C.registerSubTypeDefaulter(r+"Axis",O.curry(n,r))}j.exports=i},noeP:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("UOVi");O.registerAction("dataZoom",function(v,w){var m=C.createLinkedNodesFinder(E.bind(w.eachComponent,w,"dataZoom"),C.eachAxisDim,function(c,i){return c.get(i.axisIndex)}),h=[];w.eachComponent({mainType:"dataZoom",query:v},function(c,i){h.push.apply(h,m(c).nodes)}),E.each(h,function(c,i){c.setRawRange({start:v.start,end:v.end,startValue:v.startValue,endValue:v.endValue})})})},o40c:function(j,P,d){var O=d("IwbS"),E=d("OS9S"),C=d("loD1"),v=d("aKvl"),w=O.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(i,r){var o=r.segs,n=r.curveness;if(r.polyline)for(var e=0;e<o.length;){var s=o[e++];if(s>0){i.moveTo(o[e++],o[e++]);for(var t=1;t<s;t++)i.lineTo(o[e++],o[e++])}}else for(var e=0;e<o.length;){var a=o[e++],l=o[e++],u=o[e++],f=o[e++];if(i.moveTo(a,l),n>0){var p=(a+u)/2-(l-f)*n,g=(l+f)/2-(u-a)*n;i.quadraticCurveTo(p,g,u,f)}else i.lineTo(u,f)}},findDataIndex:function(i,r){var o=this.shape,n=o.segs,e=o.curveness;if(o.polyline)for(var s=0,t=0;t<n.length;){var a=n[t++];if(a>0)for(var l=n[t++],u=n[t++],f=1;f<a;f++){var p=n[t++],g=n[t++];if(C.containStroke(l,u,p,g))return s}s++}else for(var s=0,t=0;t<n.length;){var l=n[t++],u=n[t++],p=n[t++],g=n[t++];if(e>0){var A=(l+p)/2-(u-g)*e,y=(u+g)/2-(p-l)*e;if(v.containStroke(l,u,A,y,p,g))return s}else if(C.containStroke(l,u,p,g))return s;s++}return-1}});function m(){this.group=new O.Group}var h=m.prototype;h.isPersistent=function(){return!this._incremental},h.updateData=function(i){this.group.removeAll();var r=new w({rectHover:!0,cursor:"default"});r.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(r,i),this.group.add(r),this._incremental=null},h.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>5e5?(this._incremental||(this._incremental=new E({silent:!0})),this.group.add(this._incremental)):this._incremental=null},h.incrementalUpdate=function(i,r){var o=new w;o.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(o,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(o,!0):(o.rectHover=!0,o.cursor="default",o.__startIndex=i.start,this.group.add(o))},h.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},h._setCommon=function(i,r,o){var n=r.hostModel;i.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),i.useStyle(n.getModel("lineStyle").getLineStyle()),i.style.strokeNoScale=!0;var e=r.getVisual("color");e&&i.setStyle("stroke",e),i.setStyle("fill"),o||(i.seriesIndex=n.seriesIndex,i.on("mousemove",function(s){i.dataIndex=null;var t=i.findDataIndex(s.offsetX,s.offsetY);t>0&&(i.dataIndex=t+i.__startIndex)}))},h._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()};var c=m;j.exports=c},oBaM:function(j,P,d){var O=d("T4UG"),E=d("5GtS"),C=d("bYtY"),v=d("7aKB"),w=v.encodeHTML,m=d("xKMd"),h=O.extend({type:"series.radar",dependencies:["radar"],init:function(i){h.superApply(this,"init",arguments),this.legendVisualProvider=new m(C.bind(this.getData,this),C.bind(this.getRawData,this))},getInitialData:function(i,r){return E(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(i){var r=this.getData(),o=this.coordinateSystem,n=o.getIndicatorAxes(),e=this.getData().getName(i);return w(e===""?this.name:e)+"<br/>"+C.map(n,function(s,t){var a=r.get(r.mapDimension(s.dim),i);return w(s.name+" : "+a)}).join("<br />")},getTooltipPosition:function(i){if(i!=null){for(var r=this.getData(),o=this.coordinateSystem,n=r.getValues(C.map(o.dimensions,function(a){return r.mapDimension(a)}),i,!0),e=0,s=n.length;e<s;e++)if(!isNaN(n[e])){var t=o.getIndicatorAxes();return o.coordToPoint(t[e].dataToCoord(n[e]),e)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),c=h;j.exports=c},oE7X:function(j,P,d){var O=d("bLfw");O.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(j,P,d){},oRuE:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso10126={pad:function(C,v){var w=v*4,m=w-C.sigBytes%w;C.concat(O.lib.WordArray.random(m-1)).concat(O.lib.WordArray.create([m<<24],1))},unpad:function(C){var v=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=v}},O.pad.Iso10126})},oVpE:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("mFDi"),v=d("6GrX"),w=v.calculateTextPosition,m=E.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,l){var u=l.cx,f=l.cy,p=l.width/2,g=l.height/2;a.moveTo(u,f-g),a.lineTo(u+p,f+g),a.lineTo(u-p,f+g),a.closePath()}}),h=E.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,l){var u=l.cx,f=l.cy,p=l.width/2,g=l.height/2;a.moveTo(u,f-g),a.lineTo(u+p,f),a.lineTo(u,f+g),a.lineTo(u-p,f),a.closePath()}}),c=E.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,l){var u=l.x,f=l.y,p=l.width/5*3,g=Math.max(p,l.height),A=p/2,y=A*A/(g-A),x=f-g+A+y,T=Math.asin(y/A),S=Math.cos(T)*A,b=Math.sin(T),_=Math.cos(T),I=A*.6,L=A*.7;a.moveTo(u-S,x+y),a.arc(u,x,A,Math.PI-T,Math.PI*2+T),a.bezierCurveTo(u+S-b*I,x+y+_*I,u,f-L,u,f),a.bezierCurveTo(u,f-L,u-S+b*I,x+y+_*I,u-S,x+y),a.closePath()}}),i=E.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,l){var u=l.height,f=l.width,p=l.x,g=l.y,A=f/3*2;a.moveTo(p,g),a.lineTo(p+A,g+u),a.lineTo(p,g+u/4*3),a.lineTo(p-A,g+u),a.lineTo(p,g),a.closePath()}}),r={line:E.Line,rect:E.Rect,roundRect:E.Rect,square:E.Rect,circle:E.Circle,diamond:h,pin:c,arrow:i,triangle:m},o={line:function(a,l,u,f,p){p.x1=a,p.y1=l+f/2,p.x2=a+u,p.y2=l+f/2},rect:function(a,l,u,f,p){p.x=a,p.y=l,p.width=u,p.height=f},roundRect:function(a,l,u,f,p){p.x=a,p.y=l,p.width=u,p.height=f,p.r=Math.min(u,f)/4},square:function(a,l,u,f,p){var g=Math.min(u,f);p.x=a,p.y=l,p.width=g,p.height=g},circle:function(a,l,u,f,p){p.cx=a+u/2,p.cy=l+f/2,p.r=Math.min(u,f)/2},diamond:function(a,l,u,f,p){p.cx=a+u/2,p.cy=l+f/2,p.width=u,p.height=f},pin:function(a,l,u,f,p){p.x=a+u/2,p.y=l+f/2,p.width=u,p.height=f},arrow:function(a,l,u,f,p){p.x=a+u/2,p.y=l+f/2,p.width=u,p.height=f},triangle:function(a,l,u,f,p){p.cx=a+u/2,p.cy=l+f/2,p.width=u,p.height=f}},n={};O.each(r,function(a,l){n[l]=new a});var e=E.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(a,l,u){var f=w(a,l,u),p=this.shape;return p&&p.symbolType==="pin"&&l.textPosition==="inside"&&(f.y=u.y+u.height*.4),f},buildPath:function(a,l,u){var f=l.symbolType;if(f!=="none"){var p=n[f];p||(f="rect",p=n[f]),o[f](l.x,l.y,l.width,l.height,p.shape),p.buildPath(a,p.shape,u)}}});function s(a,l){if(this.type!=="image"){var u=this.style,f=this.shape;f&&f.symbolType==="line"?u.stroke=a:this.__isEmptyBrush?(u.stroke=a,u.fill=l||"#fff"):(u.fill&&(u.fill=a),u.stroke&&(u.stroke=a)),this.dirty(!1)}}function t(a,l,u,f,p,g,A){var y=a.indexOf("empty")===0;y&&(a=a.substr(5,1).toLowerCase()+a.substr(6));var x;return a.indexOf("image://")===0?x=E.makeImage(a.slice(8),new C(l,u,f,p),A?"center":"cover"):a.indexOf("path://")===0?x=E.makePath(a.slice(7),{},new C(l,u,f,p),A?"center":"cover"):x=new e({shape:{symbolType:a,x:l,y:u,width:f,height:p}}),x.__isEmptyBrush=y,x.setColor=s,x.setColor(g),x}P.createSymbol=t},oY9F:function(j,P,d){var O=d("OlYY"),E=O.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});j.exports=E},osHv:function(j,P,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var E=O.Pos;function C(l,u){return l.line-u.line||l.ch-u.ch}var v="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",w=v+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",m=new RegExp("<(/?)(["+v+"]["+w+"]*)","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 i(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 o(l){for(;;){var u=l.text.indexOf(">",l.ch);if(u==-1){if(i(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 e(l){for(;;){m.lastIndex=l.ch;var u=m.exec(l.text);if(!u){if(i(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 t(l,u){for(var f=[];;){var p=e(l),g,A=l.line,y=l.ch-(p?p[0].length:0);if(!p||!(g=o(l)))return;if(g=="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 a(l,u){for(var f=[];;){var p=s(l);if(!p)return;if(p=="selfClose"){n(l);continue}var g=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(g,A)}}}}O.registerHelper("fold","xml",function(l,u){for(var f=new h(l,u.line,0);;){var p=e(f);if(!p||f.line!=u.line)return;var g=o(f);if(!g)return;if(!p[1]&&g!="selfClose"){var A=E(f.line,f.ch),y=t(f,p[2]);return y&&C(y.from,A)>0?{from:A,to:y.from}:null}}}),O.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 g=o(p),A=g&&E(p.line,p.ch),y=g&&n(p);if(!g||!y||C(p,u)>0)return;var x={from:E(p.line,p.ch),to:A,tag:y[2]};return g=="selfClose"?{open:x,close:null,at:"open"}:y[1]?{open:a(p,y[2]),close:x,at:"close"}:(p=new h(l,A.line,A.ch,f),{open:x,close:t(p,y[2]),at:"open"})},O.findEnclosingTag=function(l,u,f,p){for(var g=new h(l,u.line,u.ch,f);;){var A=a(g,p);if(!A)break;var y=new h(l,u.line,u.ch,f),x=t(y,A.tag);if(x)return{open:A,close:x}}},O.scanForClosingTag=function(l,u,f,p){var g=new h(l,u.line,u.ch,p?{from:0,to:p}:null);return t(g,f)}})},ozfa:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("KxFI"),v=d.n(C)},"p+If":function(j,P,d){var O=d("ProS");d("cpOr"),d("rkZ5");var E=d("ZYIC"),C=d("7ph2");O.registerLayout(E),O.registerVisual(C)},"p/La":function(j,P){var d=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function O(E,C){E==="china"&&C.name==="\u53F0\u6E7E"&&C.geometries.push({type:"polygon",exterior:d[0]})}j.exports=O},p1MT:function(j,P,d){var O=d("Hw7h"),E=d("IwbS"),C=d("6Ic6"),v=d("OELB"),w=v.parsePercent,m=v.round,h=v.linearMap;function c(e,s){var t=e.get("center"),a=s.getWidth(),l=s.getHeight(),u=Math.min(a,l),f=w(t[0],s.getWidth()),p=w(t[1],s.getHeight()),g=w(e.get("radius"),u/2);return{cx:f,cy:p,r:g}}function i(e,s){return s&&(typeof s=="string"?e=s.replace("{value}",e!=null?e:""):typeof s=="function"&&(e=s(e))),e}var r=Math.PI*2,o=C.extend({type:"gauge",render:function(e,s,t){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),l=c(e,t);this._renderMain(e,s,t,a,l)},dispose:function(){},_renderMain:function(e,s,t,a,l){for(var u=this.group,f=e.getModel("axisLine"),p=f.getModel("lineStyle"),g=e.get("clockwise"),A=-e.get("startAngle")/180*Math.PI,y=-e.get("endAngle")/180*Math.PI,x=(y-A)%r,T=A,S=p.get("width"),b=f.get("show"),_=0;b&&_<a.length;_++){var I=Math.min(Math.max(a[_][0],0),1),y=A+x*I,L=new E.Sector({shape:{startAngle:T,endAngle:y,cx:l.cx,cy:l.cy,clockwise:g,r0:l.r-S,r:l.r},silent:!0});L.setStyle({fill:a[_][1]}),L.setStyle(p.getLineStyle(["color","borderWidth","borderColor"])),u.add(L),T=y}var D=function(M){if(M<=0)return a[0][1];for(var B=0;B<a.length;B++)if(a[B][0]>=M&&(B===0?0:a[B-1][0])<M)return a[B][1];return a[B-1][1]};if(!g){var N=A;A=y,y=N}this._renderTicks(e,s,t,D,l,A,y,g),this._renderPointer(e,s,t,D,l,A,y,g),this._renderTitle(e,s,t,D,l),this._renderDetail(e,s,t,D,l)},_renderTicks:function(e,s,t,a,l,u,f,p){for(var g=this.group,A=l.cx,y=l.cy,x=l.r,T=+e.get("min"),S=+e.get("max"),b=e.getModel("splitLine"),_=e.getModel("axisTick"),I=e.getModel("axisLabel"),L=e.get("splitNumber"),D=_.get("splitNumber"),N=w(b.get("length"),x),M=w(_.get("length"),x),B=u,R=(f-u)/L,H=R/D,F=b.getModel("lineStyle").getLineStyle(),K=_.getModel("lineStyle").getLineStyle(),U=0;U<=L;U++){var V=Math.cos(B),z=Math.sin(B);if(b.get("show")){var Y=new E.Line({shape:{x1:V*x+A,y1:z*x+y,x2:V*(x-N)+A,y2:z*(x-N)+y},style:F,silent:!0});F.stroke==="auto"&&Y.setStyle({stroke:a(U/L)}),g.add(Y)}if(I.get("show")){var q=i(m(U/L*(S-T)+T),I.get("formatter")),ce=I.get("distance"),ie=a(U/L);g.add(new E.Text({style:E.setTextStyle({},I,{text:q,x:V*(x-N-ce)+A,y:z*(x-N-ce)+y,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:V<-.4?"left":V>.4?"right":"center"},{autoColor:ie}),silent:!0}))}if(_.get("show")&&U!==L){for(var ve=0;ve<=D;ve++){var V=Math.cos(B),z=Math.sin(B),Ee=new E.Line({shape:{x1:V*x+A,y1:z*x+y,x2:V*(x-M)+A,y2:z*(x-M)+y},silent:!0,style:K});K.stroke==="auto"&&Ee.setStyle({stroke:a((U+ve/D)/L)}),g.add(Ee),B+=H}B-=H}else B+=R}},_renderPointer:function(e,s,t,a,l,u,f,p){var g=this.group,A=this._data;if(!e.get("pointer.show")){A&&A.eachItemGraphicEl(function(b){g.remove(b)});return}var y=[+e.get("min"),+e.get("max")],x=[u,f],T=e.getData(),S=T.mapDimension("value");T.diff(A).add(function(b){var _=new O({shape:{angle:u}});E.initProps(_,{shape:{angle:h(T.get(S,b),y,x,!0)}},e),g.add(_),T.setItemGraphicEl(b,_)}).update(function(b,_){var I=A.getItemGraphicEl(_);E.updateProps(I,{shape:{angle:h(T.get(S,b),y,x,!0)}},e),g.add(I),T.setItemGraphicEl(b,I)}).remove(function(b){var _=A.getItemGraphicEl(b);g.remove(_)}).execute(),T.eachItemGraphicEl(function(b,_){var I=T.getItemModel(_),L=I.getModel("pointer");b.setShape({x:l.cx,y:l.cy,width:w(L.get("width"),l.r),r:w(L.get("length"),l.r)}),b.useStyle(I.getModel("itemStyle").getItemStyle()),b.style.fill==="auto"&&b.setStyle("fill",a(h(T.get(S,_),y,[0,1],!0))),E.setHoverStyle(b,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=T},_renderTitle:function(e,s,t,a,l){var u=e.getData(),f=u.mapDimension("value"),p=e.getModel("title");if(p.get("show")){var g=p.get("offsetCenter"),A=l.cx+w(g[0],l.r),y=l.cy+w(g[1],l.r),x=+e.get("min"),T=+e.get("max"),S=e.getData().get(f,0),b=a(h(S,[x,T],[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(e,s,t,a,l){var u=e.getModel("detail"),f=+e.get("min"),p=+e.get("max");if(u.get("show")){var g=u.get("offsetCenter"),A=l.cx+w(g[0],l.r),y=l.cy+w(g[1],l.r),x=w(u.get("width"),l.r),T=w(u.get("height"),l.r),S=e.getData(),b=S.get(S.mapDimension("value"),0),_=a(h(b,[f,p],[0,1],!0));this.group.add(new E.Text({silent:!0,style:E.setTextStyle({},u,{x:A,y,text:i(b,u.get("formatter")),textWidth:isNaN(x)?null:x,textHeight:isNaN(T)?null:T,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),n=o;j.exports=n},"p77/":function(j,P,d){},pA7S:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.WordArray,w=C.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],i=[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}],o=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],n=m.DES=w.extend({_doReset:function(){for(var l=this._key,u=l.words,f=[],p=0;p<56;p++){var g=h[p]-1;f[p]=u[g>>>5]>>>31-g%32&1}for(var A=this._subKeys=[],y=0;y<16;y++){for(var x=A[y]=[],T=i[y],p=0;p<24;p++)x[p/6|0]|=f[(c[p]-1+T)%28]<<31-p%6,x[4+(p/6|0)]|=f[28+(c[p+24]-1+T)%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 S=this._invSubKeys=[],p=0;p<16;p++)S[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],e.call(this,4,252645135),e.call(this,16,65535),s.call(this,2,858993459),s.call(this,8,16711935),e.call(this,1,1431655765);for(var p=0;p<16;p++){for(var g=f[p],A=this._lBlock,y=this._rBlock,x=0,T=0;T<8;T++)x|=r[T][((y^g[T])&o[T])>>>0];this._lBlock=y,this._rBlock=A^x}var S=this._lBlock;this._lBlock=this._rBlock,this._rBlock=S,e.call(this,1,1431655765),s.call(this,8,16711935),s.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),l[u]=this._lBlock,l[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(a,l){var u=(this._lBlock>>>a^this._rBlock)&l;this._rBlock^=u,this._lBlock^=u<<a}function s(a,l){var u=(this._rBlock>>>a^this._lBlock)&l;this._lBlock^=u,this._rBlock^=u<<a}E.DES=w._createHelper(n);var t=m.TripleDES=w.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),g=u.length<6?u.slice(0,2):u.slice(4,6);this._des1=n.createEncryptor(v.create(f)),this._des2=n.createEncryptor(v.create(p)),this._des3=n.createEncryptor(v.create(g))},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=w._createHelper(t)}(),O.TripleDES})},pC0b:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("xzDV"),v=d.n(C),w=d("5Dmo")},"pED+":function(j,P,d){},pG52:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("WXVj"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},pLH3:function(j,P,d){var O=d("ProS");d("ALo7"),d("TWL2");var E=d("mOdp"),C=d("JLnu"),v=d("0/Rx");O.registerVisual(E("funnel")),O.registerLayout(C),O.registerProcessor(v("funnel"))},pP6R:function(j,P,d){var O=d("ProS"),E="\0_ec_interaction_mutex";function C(h,c,i){var r=m(h);r[c]=i}function v(h,c,i){var r=m(h),o=r[c];o===i&&(r[c]=null)}function w(h,c){return!!m(h)[c]}function m(h){return h[E]||(h[E]={})}O.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),P.take=C,P.release=v,P.isTaken=w},pmaE:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),v=d("DEFe"),w="__seriesMapHighDown",m="__seriesMapCallKey",h=O.extendChartView({type:"map",render:function(r,o,n,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var s=this.group;if(s.removeAll(),r.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===r.id){var t=this._mapDraw;t&&s.add(t.group)}else if(r.needsDrawMap){var t=this._mapDraw||new v(n,!0);s.add(t.group),t.draw(r,o,n,this,e),this._mapDraw=t}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&o.getComponent("legend")&&this._renderSymbols(r,o,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,o,n){var e=r.originalData,s=this.group;e.each(e.mapDimension("value"),function(t,a){if(isNaN(t))return;var l=e.getItemLayout(a);if(!l||!l.point)return;var u=l.point,f=l.offset,p=new C.Circle({style:{fill:r.getData().getVisual("color")},shape:{cx:u[0]+f*9,cy:u[1],r:3},silent:!0,z2:8+(f?0:C.Z2_EMPHASIS_LIFT+1)});if(!f){var g=r.mainSeries.getData(),A=e.getName(a),y=g.indexOfName(A),x=e.getItemModel(a),T=x.getModel("label"),S=x.getModel("emphasis.label"),b=g.getItemGraphicEl(y),_=E.retrieve2(r.getFormattedLabel(y,"normal"),A),I=E.retrieve2(r.getFormattedLabel(y,"emphasis"),_),L=b[w],D=Math.random();if(!L){L=b[w]={};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:T,hoverLabelModel:S,emphasisText:I,normalText:_}),i(L,!1)}s.add(p)})}});function c(r){var o=this[w];o&&o.recordVersion===this[m]&&i(o,r)}function i(r,o){var n=r.circle,e=r.labelModel,s=r.hoverLabelModel,t=r.emphasisText,a=r.normalText;o?(n.style.extendFrom(C.setTextStyle({},s,{text:s.get("show")?t:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=C.Z2_EMPHASIS_LIFT):(C.setTextStyle(n.style,e,{text:e.get("show")?a:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),n.__mapOriginalZ2!=null&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}j.exports=h},pwpV:function(j,P,d){},pzxd:function(j,P,d){var O=d("bYtY"),E=O.retrieve2,C=O.retrieve3,v=O.each,w=O.normalizeCssArray,m=O.isString,h=O.isObject,c=d("6GrX"),i=d("VpOo"),r=d("Xnb7"),o=d("fW2E"),n=d("gut8"),e=n.ContextCachedBy,s=n.WILL_BE_RESTORED,t=c.DEFAULT_FONT,a={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 g(U){return A(U),v(U.rich,A),U}function A(U){if(U){U.font=c.makeFont(U);var V=U.textAlign;V==="middle"&&(V="center"),U.textAlign=V==null||a[V]?V:"left";var z=U.textVerticalAlign||U.textBaseline;z==="center"&&(z="middle"),U.textVerticalAlign=z==null||l[z]?z:"top";var Y=U.textPadding;Y&&(U.textPadding=w(U.textPadding))}}function y(U,V,z,Y,q,ce){Y.rich?T(U,V,z,Y,q,ce):x(U,V,z,Y,q,ce)}function x(U,V,z,Y,q,ce){"use strict";var ie=I(Y),ve,Ee=!1,Le=V.__attrCachedBy===e.PLAIN_TEXT;ce!==s?(ce&&(ve=ce.style,Ee=!ie&&Le&&ve),V.__attrCachedBy=ie?e.NONE:e.PLAIN_TEXT):Le&&(V.__attrCachedBy=e.NONE);var He=Y.font||t;(!Ee||He!==(ve.font||t))&&(V.font=He);var ge=U.__computedFont;U.__styleFont!==He&&(U.__styleFont=He,ge=U.__computedFont=V.font);var Fe=Y.textPadding,Q=Y.textLineHeight,fe=U.__textCotentBlock;(!fe||U.__dirtyText)&&(fe=U.__textCotentBlock=c.parsePlainText(z,ge,Fe,Q,Y.truncate));var Je=fe.outerHeight,ne=fe.lines,X=fe.lineHeight,G=N(p,U,Y,q),te=G.baseX,we=G.baseY,he=G.textAlign||"left",Pe=G.textVerticalAlign;b(V,Y,q,te,we);var Oe=c.adjustTextY(we,Je,Pe),le=te,me=Oe;if(ie||Fe){var _e=c.getWidth(z,ge),$e=_e;Fe&&($e+=Fe[1]+Fe[3]);var gt=c.adjustTextX(te,$e,he);ie&&L(U,V,Y,gt,Oe,$e,Je),Fe&&(le=F(te,he,Fe),me+=Fe[0])}V.textAlign=he,V.textBaseline="middle",V.globalAlpha=Y.opacity||1;for(var et=0;et<u.length;et++){var Ie=u[et],rt=Ie[0],Ge=Ie[1],vt=Y[rt];(!Ee||vt!==ve[rt])&&(V[Ge]=o(V,Ge,vt||Ie[2]))}me+=X/2;var Ot=Y.textStrokeWidth,Et=Ee?ve.textStrokeWidth:null,Tt=!Ee||Ot!==Et,Rt=!Ee||Tt||Y.textStroke!==ve.textStroke,Be=B(Y.textStroke,Ot),Z=R(Y.textFill);if(Be&&(Tt&&(V.lineWidth=Ot),Rt&&(V.strokeStyle=Be)),Z&&((!Ee||Y.textFill!==ve.textFill)&&(V.fillStyle=Z)),ne.length===1)Be&&V.strokeText(ne[0],le,me),Z&&V.fillText(ne[0],le,me);else for(var et=0;et<ne.length;et++)Be&&V.strokeText(ne[et],le,me),Z&&V.fillText(ne[et],le,me),me+=X}function T(U,V,z,Y,q,ce){ce!==s&&(V.__attrCachedBy=e.NONE);var ie=U.__textCotentBlock;(!ie||U.__dirtyText)&&(ie=U.__textCotentBlock=c.parseRichText(z,Y)),S(U,V,ie,Y,q)}function S(U,V,z,Y,q){var ce=z.width,ie=z.outerWidth,ve=z.outerHeight,Ee=Y.textPadding,Le=N(p,U,Y,q),He=Le.baseX,ge=Le.baseY,Fe=Le.textAlign,Q=Le.textVerticalAlign;b(V,Y,q,He,ge);var fe=c.adjustTextX(He,ie,Fe),Je=c.adjustTextY(ge,ve,Q),ne=fe,X=Je;Ee&&(ne+=Ee[3],X+=Ee[0]);var G=ne+ce;I(Y)&&L(U,V,Y,fe,Je,ie,ve);for(var te=0;te<z.lines.length;te++){for(var we=z.lines[te],he=we.tokens,Pe=he.length,Oe=we.lineHeight,le=we.width,me=0,_e=ne,$e=G,gt=Pe-1,et;me<Pe&&(et=he[me],!et.textAlign||et.textAlign==="left");)_(U,V,et,Y,Oe,X,_e,"left"),le-=et.width,_e+=et.width,me++;for(;gt>=0&&(et=he[gt],et.textAlign==="right");)_(U,V,et,Y,Oe,X,$e,"right"),le-=et.width,$e-=et.width,gt--;for(_e+=(ce-(_e-ne)-(G-$e)-le)/2;me<=gt;)et=he[me],_(U,V,et,Y,Oe,X,_e+et.width/2,"center"),_e+=et.width,me++;X+=Oe}}function b(U,V,z,Y,q){if(z&&V.textRotation){var ce=V.textOrigin;ce==="center"?(Y=z.width/2+z.x,q=z.height/2+z.y):ce&&(Y=ce[0]+z.x,q=ce[1]+z.y),U.translate(Y,q),U.rotate(-V.textRotation),U.translate(-Y,-q)}}function _(U,V,z,Y,q,ce,ie,ve){var Ee=Y.rich[z.styleName]||{};Ee.text=z.text;var Le=z.textVerticalAlign,He=ce+q/2;Le==="top"?He=ce+z.height/2:Le==="bottom"&&(He=ce+q-z.height/2),!z.isLineHolder&&I(Ee)&&L(U,V,Ee,ve==="right"?ie-z.width:ve==="center"?ie-z.width/2:ie,He-z.height/2,z.width,z.height);var ge=z.textPadding;ge&&(ie=F(ie,ve,ge),He-=z.height/2-ge[2]-z.textHeight/2),M(V,"shadowBlur",C(Ee.textShadowBlur,Y.textShadowBlur,0)),M(V,"shadowColor",Ee.textShadowColor||Y.textShadowColor||"transparent"),M(V,"shadowOffsetX",C(Ee.textShadowOffsetX,Y.textShadowOffsetX,0)),M(V,"shadowOffsetY",C(Ee.textShadowOffsetY,Y.textShadowOffsetY,0)),M(V,"textAlign",ve),M(V,"textBaseline","middle"),M(V,"font",z.font||t);var Fe=B(Ee.textStroke||Y.textStroke,fe),Q=R(Ee.textFill||Y.textFill),fe=E(Ee.textStrokeWidth,Y.textStrokeWidth);Fe&&(M(V,"lineWidth",fe),M(V,"strokeStyle",Fe),V.strokeText(z.text,ie,He)),Q&&(M(V,"fillStyle",Q),V.fillText(z.text,ie,He))}function I(U){return!!(U.textBackgroundColor||U.textBorderWidth&&U.textBorderColor)}function L(U,V,z,Y,q,ce,ie){var ve=z.textBackgroundColor,Ee=z.textBorderWidth,Le=z.textBorderColor,He=m(ve);if(M(V,"shadowBlur",z.textBoxShadowBlur||0),M(V,"shadowColor",z.textBoxShadowColor||"transparent"),M(V,"shadowOffsetX",z.textBoxShadowOffsetX||0),M(V,"shadowOffsetY",z.textBoxShadowOffsetY||0),He||Ee&&Le){V.beginPath();var ge=z.textBorderRadius;ge?i.buildPath(V,{x:Y,y:q,width:ce,height:ie,r:ge}):V.rect(Y,q,ce,ie),V.closePath()}if(He)if(M(V,"fillStyle",ve),z.fillOpacity!=null){var Fe=V.globalAlpha;V.globalAlpha=z.fillOpacity*z.opacity,V.fill(),V.globalAlpha=Fe}else V.fill();else if(h(ve)){var Q=ve.image;Q=r.createOrUpdateImage(Q,null,U,D,ve),Q&&r.isImageReady(Q)&&V.drawImage(Q,Y,q,ce,ie)}if(Ee&&Le)if(M(V,"lineWidth",Ee),M(V,"strokeStyle",Le),z.strokeOpacity!=null){var Fe=V.globalAlpha;V.globalAlpha=z.strokeOpacity*z.opacity,V.stroke(),V.globalAlpha=Fe}else V.stroke()}function D(U,V){V.image=U}function N(U,V,z,Y){var q=z.x||0,ce=z.y||0,ie=z.textAlign,ve=z.textVerticalAlign;if(Y){var Ee=z.textPosition;if(Ee instanceof Array)q=Y.x+H(Ee[0],Y.width),ce=Y.y+H(Ee[1],Y.height);else{var Le=V&&V.calculateTextPosition?V.calculateTextPosition(f,z,Y):c.calculateTextPosition(f,z,Y);q=Le.x,ce=Le.y,ie=ie||Le.textAlign,ve=ve||Le.textVerticalAlign}var He=z.textOffset;He&&(q+=He[0],ce+=He[1])}return U=U||{},U.baseX=q,U.baseY=ce,U.textAlign=ie,U.textVerticalAlign=ve,U}function M(U,V,z){return U[V]=o(U,V,z),U[V]}function B(U,V){return U==null||V<=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 H(U,V){return typeof U=="string"?U.lastIndexOf("%")>=0?parseFloat(U)/100*V:parseFloat(U):U}function F(U,V,z){return V==="right"?U-z[1]:V==="center"?U+z[3]/2-z[1]/2:U+z[3]}function K(U,V){return U!=null&&(U||V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor||V.textPadding)}P.normalizeTextStyle=g,P.renderText=y,P.getBoxPosition=N,P.getStroke=B,P.getFill=R,P.parsePercent=H,P.needDrawText=K},"q/+u":function(j,P,d){var O=d("ProS"),E=d("9wZj"),C=d("yWXo"),v=d("h8O9");O.extendChartView({type:"scatter",render:function(w,m,h){var c=w.getData(),i=this._updateSymbolDraw(c,w);i.updateData(c,{clipShape:this._getClipShape(w)}),this._finished=!0},incrementalPrepareRender:function(w,m,h){var c=w.getData(),i=this._updateSymbolDraw(c,w);i.incrementalPrepareUpdate(c),this._finished=!1},incrementalRender:function(w,m,h){this._symbolDraw.incrementalUpdate(w,m.getData(),{clipShape:this._getClipShape(m)}),this._finished=w.end===m.getData().count()},updateTransform:function(w,m,h){var c=w.getData();if(this.group.dirty(),!this._finished||c.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=v().reset(w);i.progress&&i.progress({start:0,end:c.count()},c),this._symbolDraw.updateLayout(c)},_getClipShape:function(w){var m=w.coordinateSystem,h=m&&m.getArea&&m.getArea();return w.get("clip",!0)?h:null},_updateSymbolDraw:function(w,m){var h=this._symbolDraw,c=m.pipelineContext,i=c.large;return(!h||i!==this._isLargeDraw)&&(h&&h.remove(),h=this._symbolDraw=i?new C:new E,this._isLargeDraw=i,this.group.removeAll()),this.group.add(h.group),h},remove:function(w,m){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(j,P){var d=["lineStyle","normal","opacity"],O={seriesType:"parallel",reset:function(E,C,v){var w=E.getModel("itemStyle"),m=E.getModel("lineStyle"),h=C.get("color"),c=m.get("color")||w.get("color")||h[E.seriesIndex%h.length],i=E.get("inactiveOpacity"),r=E.get("activeOpacity"),o=E.getModel("lineStyle").getLineStyle(),n=E.coordinateSystem,e=E.getData(),s={normal:o.opacity,active:r,inactive:i};e.setVisual("color",c);function t(a,l){n.eachActiveState(l,function(u,f){var p=s[u];if(u==="normal"&&l.hasItemOption){var g=l.getItemModel(f).get(d,!0);g!=null&&(p=g)}l.setItemVisual(f,"opacity",p)},a.start,a.end)}return{progress:t}}};j.exports=O},q4HE:function(j,P){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",v=O+E+C,w="\\ufe0e\\ufe0f",m="["+d+"]",h="["+v+"]",c="\\ud83c[\\udffb-\\udfff]",i="(?:"+h+"|"+c+")",r="[^"+d+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",s=i+"?",t="["+w+"]?",a="(?:"+e+"(?:"+[r,o,n].join("|")+")"+t+s+")*",l=t+s+a,u="(?:"+[r+h+"?",h,o,n,m].join("|")+")",f=RegExp(c+"(?="+c+")|"+u+l,"g");function p(g){for(var A=f.lastIndex=0;f.test(g);)++A;return A}j.exports=p},q7KB:function(j,P,d){},qBft:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.AnsiX923={pad:function(C,v){var w=C.sigBytes,m=v*4,h=m-w%m,c=w+h-1;C.clamp(),C.words[c>>>2]|=h<<24-c%4*8,C.sigBytes+=h},unpad:function(C){var v=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=v}},O.pad.Ansix923})},qH13:function(j,P,d){var O=d("ItGF"),E=d("QBsz"),C=E.applyTransform,v=d("mFDi"),w=d("Qe9p"),m=d("6GrX"),h=d("pzxd"),c=d("ni6a"),i=d("Gev7"),r=d("Dagg"),o=d("dqUG"),n=d("y+Vt"),e=d("IMiH"),s=d("QuXc"),t=d("06Qe"),a=e.CMD,l=Math.round,u=Math.sqrt,f=Math.abs,p=Math.cos,g=Math.sin,A=Math.max;if(!O.canvasSupported){var y=",",x="progid:DXImageTransform.Microsoft",T=21600,S=T/2,b=1e5,_=1e3,I=function(we){we.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",we.coordsize=T+","+T,we.coordorigin="0,0"},L=function(we){return String(we).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},D=function(we,he,Pe){return"rgb("+[we,he,Pe].join(",")+")"},N=function(we,he){he&&we&&he.parentNode!==we&&we.appendChild(he)},M=function(we,he){he&&we&&he.parentNode===we&&we.removeChild(he)},B=function(we,he,Pe){return(parseFloat(we)||0)*b+(parseFloat(he)||0)*_+Pe},R=h.parsePercent,H=function(we,he,Pe){var Oe=w.parse(he);Pe=+Pe,isNaN(Pe)&&(Pe=1),Oe&&(we.color=D(Oe[0],Oe[1],Oe[2]),we.opacity=Pe*Oe[3])},F=function(we){var he=w.parse(we);return[D(he[0],he[1],he[2]),he[3]]},K=function(we,he,Pe){var Oe=he.fill;if(Oe!=null)if(Oe instanceof s){var le,me=0,_e=[0,0],$e=0,gt=1,et=Pe.getBoundingRect(),Ie=et.width,rt=et.height;if(Oe.type==="linear"){le="gradient";var Ge=Pe.transform,vt=[Oe.x*Ie,Oe.y*rt],Ot=[Oe.x2*Ie,Oe.y2*rt];Ge&&(C(vt,vt,Ge),C(Ot,Ot,Ge));var Et=Ot[0]-vt[0],Tt=Ot[1]-vt[1];me=Math.atan2(Et,Tt)*180/Math.PI,me<0&&(me+=360),me<1e-6&&(me=0)}else{le="gradientradial";var vt=[Oe.x*Ie,Oe.y*rt],Ge=Pe.transform,Rt=Pe.scale,Be=Ie,Z=rt;_e=[(vt[0]-et.x)/Be,(vt[1]-et.y)/Z],Ge&&C(vt,vt,Ge),Be/=Rt[0]*T,Z/=Rt[1]*T;var J=A(Be,Z);$e=2*0/J,gt=2*Oe.r/J-$e}var je=Oe.colorStops.slice();je.sort(function(Zt,Vt){return Zt.offset-Vt.offset});for(var Re=je.length,oe=[],yt=[],zt=0;zt<Re;zt++){var lt=je[zt],$t=F(lt.color);yt.push(lt.offset*gt+$e+" "+$t[0]),(zt===0||zt===Re-1)&&oe.push($t)}if(Re>=2){var cr=oe[0][0],cn=oe[1][0],pr=oe[0][1]*he.opacity,gr=oe[1][1]*he.opacity;we.type=le,we.method="none",we.focus="100%",we.angle=me,we.color=cr,we.color2=cn,we.colors=yt.join(","),we.opacity=gr,we.opacity2=pr}le==="radial"&&(we.focusposition=_e.join(","))}else H(we,Oe,he.opacity)},U=function(we,he){he.lineDash&&(we.dashstyle=he.lineDash.join(" ")),he.stroke!=null&&!(he.stroke instanceof s)&&H(we,he.stroke,he.opacity)},V=function(we,he,Pe,Oe){var le=he==="fill",me=we.getElementsByTagName(he)[0];Pe[he]!=null&&Pe[he]!=="none"&&(le||!le&&Pe.lineWidth)?(we[le?"filled":"stroked"]="true",Pe[he]instanceof s&&M(we,me),me||(me=t.createNode(he)),le?K(me,Pe,Oe):U(me,Pe),N(we,me)):(we[le?"filled":"stroked"]="false",M(we,me))},z=[[],[],[]],Y=function(we,he){var Pe=a.M,Oe=a.C,le=a.L,me=a.A,_e=a.Q,$e=[],gt,et,Ie,rt,Ge,vt,Ot=we.data,Et=we.len();for(rt=0;rt<Et;){Ie=Ot[rt++],et="",gt=0;switch(Ie){case Pe:et=" m ",gt=1,Ge=Ot[rt++],vt=Ot[rt++],z[0][0]=Ge,z[0][1]=vt;break;case le:et=" l ",gt=1,Ge=Ot[rt++],vt=Ot[rt++],z[0][0]=Ge,z[0][1]=vt;break;case _e:case Oe:et=" c ",gt=3;var Tt=Ot[rt++],Rt=Ot[rt++],Be=Ot[rt++],Z=Ot[rt++],J,je;Ie===_e?(J=Be,je=Z,Be=(Be+2*Tt)/3,Z=(Z+2*Rt)/3,Tt=(Ge+2*Tt)/3,Rt=(vt+2*Rt)/3):(J=Ot[rt++],je=Ot[rt++]),z[0][0]=Tt,z[0][1]=Rt,z[1][0]=Be,z[1][1]=Z,z[2][0]=J,z[2][1]=je,Ge=J,vt=je;break;case me:var Re=0,oe=0,yt=1,zt=1,lt=0;he&&(Re=he[4],oe=he[5],yt=u(he[0]*he[0]+he[1]*he[1]),zt=u(he[2]*he[2]+he[3]*he[3]),lt=Math.atan2(-he[1]/zt,he[0]/yt));var $t=Ot[rt++],cr=Ot[rt++],cn=Ot[rt++],pr=Ot[rt++],gr=Ot[rt++]+lt,Zt=Ot[rt++]+gr+lt;rt++;var Vt=Ot[rt++],mt=$t+p(gr)*cn,Yr=cr+g(gr)*pr,Tt=$t+p(Zt)*cn,Rt=cr+g(Zt)*pr,Tn=Vt?" wa ":" at ";Math.abs(mt-Tt)<1e-4&&(Math.abs(Zt-gr)>.01?Vt&&(mt+=270/T):Math.abs(Yr-cr)<1e-4?Vt&&mt<$t||!Vt&&mt>$t?Rt-=270/T:Rt+=270/T:Vt&&Yr<cr||!Vt&&Yr>cr?Tt+=270/T:Tt-=270/T),$e.push(Tn,l((($t-cn)*yt+Re)*T-S),y,l(((cr-pr)*zt+oe)*T-S),y,l((($t+cn)*yt+Re)*T-S),y,l(((cr+pr)*zt+oe)*T-S),y,l((mt*yt+Re)*T-S),y,l((Yr*zt+oe)*T-S),y,l((Tt*yt+Re)*T-S),y,l((Rt*zt+oe)*T-S)),Ge=Tt,vt=Rt;break;case a.R:var Hn=z[0],ei=z[1];Hn[0]=Ot[rt++],Hn[1]=Ot[rt++],ei[0]=Hn[0]+Ot[rt++],ei[1]=Hn[1]+Ot[rt++],he&&(C(Hn,Hn,he),C(ei,ei,he)),Hn[0]=l(Hn[0]*T-S),ei[0]=l(ei[0]*T-S),Hn[1]=l(Hn[1]*T-S),ei[1]=l(ei[1]*T-S),$e.push(" m ",Hn[0],y,Hn[1]," l ",ei[0],y,Hn[1]," l ",ei[0],y,ei[1]," l ",Hn[0],y,ei[1]);break;case a.Z:$e.push(" x ")}if(gt>0){$e.push(et);for(var ji=0;ji<gt;ji++){var Ln=z[ji];he&&C(Ln,Ln,he),$e.push(l(Ln[0]*T-S),y,l(Ln[1]*T-S),ji<gt-1?y:"")}}}return $e.join("")};n.prototype.brushVML=function(te){var we=this.style,he=this._vmlEl;he||(he=t.createNode("shape"),I(he),this._vmlEl=he),V(he,"fill",we,this),V(he,"stroke",we,this);var Pe=this.transform,Oe=Pe!=null,le=he.getElementsByTagName("stroke")[0];if(le){var me=we.lineWidth;if(Oe&&!we.strokeNoScale){var _e=Pe[0]*Pe[3]-Pe[1]*Pe[2];me*=u(f(_e))}le.weight=me+"px"}var $e=this.path||(this.path=new e);this.__dirtyPath&&($e.beginPath(),$e.subPixelOptimize=!1,this.buildPath($e,this.shape),$e.toStatic(),this.__dirtyPath=!1),he.path=Y($e,this.transform),he.style.zIndex=B(this.zlevel,this.z,this.z2),N(te,he),we.text!=null?this.drawRectText(te,this.getBoundingRect()):this.removeRectText(te)},n.prototype.onRemove=function(te){M(te,this._vmlEl),this.removeRectText(te)},n.prototype.onAdd=function(te){N(te,this._vmlEl),this.appendRectText(te)};var q=function(we){return typeof we=="object"&&we.tagName&&we.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(te){var we=this.style,he=we.image,Pe,Oe;if(q(he)){var le=he.src;if(le===this._imageSrc)Pe=this._imageWidth,Oe=this._imageHeight;else{var me=he.runtimeStyle,_e=me.width,$e=me.height;me.width="auto",me.height="auto",Pe=he.width,Oe=he.height,me.width=_e,me.height=$e,this._imageSrc=le,this._imageWidth=Pe,this._imageHeight=Oe}he=le}else he===this._imageSrc&&(Pe=this._imageWidth,Oe=this._imageHeight);if(!he)return;var gt=we.x||0,et=we.y||0,Ie=we.width,rt=we.height,Ge=we.sWidth,vt=we.sHeight,Ot=we.sx||0,Et=we.sy||0,Tt=Ge&&vt,Rt=this._vmlEl;Rt||(Rt=t.doc.createElement("div"),I(Rt),this._vmlEl=Rt);var Be=Rt.style,Z=!1,J,je=1,Re=1;if(this.transform&&(J=this.transform,je=u(J[0]*J[0]+J[1]*J[1]),Re=u(J[2]*J[2]+J[3]*J[3]),Z=J[1]||J[2]),Z){var oe=[gt,et],yt=[gt+Ie,et],zt=[gt,et+rt],lt=[gt+Ie,et+rt];C(oe,oe,J),C(yt,yt,J),C(zt,zt,J),C(lt,lt,J);var $t=A(oe[0],yt[0],zt[0],lt[0]),cr=A(oe[1],yt[1],zt[1],lt[1]),cn=[];cn.push("M11=",J[0]/je,y,"M12=",J[2]/Re,y,"M21=",J[1]/je,y,"M22=",J[3]/Re,y,"Dx=",l(gt*je+J[4]),y,"Dy=",l(et*Re+J[5])),Be.padding="0 "+l($t)+"px "+l(cr)+"px 0",Be.filter=x+".Matrix("+cn.join("")+", SizingMethod=clip)"}else J&&(gt=gt*je+J[4],et=et*Re+J[5]),Be.filter="",Be.left=l(gt)+"px",Be.top=l(et)+"px";var pr=this._imageEl,gr=this._cropEl;pr||(pr=t.doc.createElement("div"),this._imageEl=pr);var Zt=pr.style;if(Tt){if(Pe&&Oe)Zt.width=l(je*Pe*Ie/Ge)+"px",Zt.height=l(Re*Oe*rt/vt)+"px";else{var Vt=new Image,mt=this;Vt.onload=function(){Vt.onload=null,Pe=Vt.width,Oe=Vt.height,Zt.width=l(je*Pe*Ie/Ge)+"px",Zt.height=l(Re*Oe*rt/vt)+"px",mt._imageWidth=Pe,mt._imageHeight=Oe,mt._imageSrc=he},Vt.src=he}gr||(gr=t.doc.createElement("div"),gr.style.overflow="hidden",this._cropEl=gr);var Yr=gr.style;Yr.width=l((Ie+Ot*Ie/Ge)*je),Yr.height=l((rt+Et*rt/vt)*Re),Yr.filter=x+".Matrix(Dx="+-Ot*Ie/Ge*je+",Dy="+-Et*rt/vt*Re+")",gr.parentNode||Rt.appendChild(gr),pr.parentNode!==gr&&gr.appendChild(pr)}else Zt.width=l(je*Ie)+"px",Zt.height=l(Re*rt)+"px",Rt.appendChild(pr),gr&&gr.parentNode&&(Rt.removeChild(gr),this._cropEl=null);var Tn="",Hn=we.opacity;Hn<1&&(Tn+=".Alpha(opacity="+l(Hn*100)+") "),Tn+=x+".AlphaImageLoader(src="+he+", SizingMethod=scale)",Zt.filter=Tn,Rt.style.zIndex=B(this.zlevel,this.z,this.z2),N(te,Rt),we.text!=null&&this.drawRectText(te,this.getBoundingRect())},r.prototype.onRemove=function(te){M(te,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(te)},r.prototype.onAdd=function(te){N(te,this._vmlEl),this.appendRectText(te)};var ce="normal",ie={},ve=0,Ee=100,Le=document.createElement("div"),He=function(we){var he=ie[we];if(!he){ve>Ee&&(ve=0,ie={});var Pe=Le.style,Oe;try{Pe.font=we,Oe=Pe.fontFamily.split(",")[0]}catch(le){}he={style:Pe.fontStyle||ce,variant:Pe.fontVariant||ce,weight:Pe.fontWeight||ce,size:parseFloat(Pe.fontSize||12)|0,family:Oe||"Microsoft YaHei"},ie[we]=he,ve++}return he},ge;m.$override("measureText",function(te,we){var he=t.doc;ge||(ge=he.createElement("div"),ge.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",t.doc.body.appendChild(ge));try{ge.style.font=we}catch(Pe){}return ge.innerHTML="",ge.appendChild(he.createTextNode(te)),{width:ge.offsetWidth}});for(var Fe=new v,Q=function(we,he,Pe,Oe){var le=this.style;this.__dirty&&h.normalizeTextStyle(le,!0);var me=le.text;if(me!=null&&(me+=""),!me)return;if(le.rich){var _e=m.parseRichText(me,le);me=[];for(var $e=0;$e<_e.lines.length;$e++){for(var gt=_e.lines[$e].tokens,et=[],Ie=0;Ie<gt.length;Ie++)et.push(gt[Ie].text);me.push(et.join(""))}me=me.join(`
`)}var rt,Ge,vt=le.textAlign,Ot=le.textVerticalAlign,Et=He(le.font),Tt=Et.style+" "+Et.variant+" "+Et.weight+" "+Et.size+'px "'+Et.family+'"';Pe=Pe||m.getBoundingRect(me,Tt,vt,Ot,le.textPadding,le.textLineHeight);var Rt=this.transform;if(Rt&&!Oe&&(Fe.copy(he),Fe.applyTransform(Rt),he=Fe),Oe)rt=he.x,Ge=he.y;else{var Be=le.textPosition;if(Be instanceof Array)rt=he.x+R(Be[0],he.width),Ge=he.y+R(Be[1],he.height),vt=vt||"left";else{var Z=this.calculateTextPosition?this.calculateTextPosition({},le,he):m.calculateTextPosition({},le,he);rt=Z.x,Ge=Z.y,vt=vt||Z.textAlign,Ot=Ot||Z.textVerticalAlign}}rt=m.adjustTextX(rt,Pe.width,vt),Ge=m.adjustTextY(Ge,Pe.height,Ot),Ge+=Pe.height/2;var J=t.createNode,je=this._textVmlEl,Re,oe,yt;je?(yt=je.firstChild,Re=yt.nextSibling,oe=Re.nextSibling):(je=J("line"),Re=J("path"),oe=J("textpath"),yt=J("skew"),oe.style["v-text-align"]="left",I(je),Re.textpathok=!0,oe.on=!0,je.from="0 0",je.to="1000 0.05",N(je,yt),N(je,Re),N(je,oe),this._textVmlEl=je);var zt=[rt,Ge],lt=je.style;Rt&&Oe?(C(zt,zt,Rt),yt.on=!0,yt.matrix=Rt[0].toFixed(3)+y+Rt[2].toFixed(3)+y+Rt[1].toFixed(3)+y+Rt[3].toFixed(3)+",0,0",yt.offset=(l(zt[0])||0)+","+(l(zt[1])||0),yt.origin="0 0",lt.left="0px",lt.top="0px"):(yt.on=!1,lt.left=l(rt)+"px",lt.top=l(Ge)+"px"),oe.string=L(me);try{oe.style.font=Tt}catch($t){}V(je,"fill",{fill:le.textFill,opacity:le.opacity},this),V(je,"stroke",{stroke:le.textStroke,opacity:le.opacity,lineDash:le.lineDash||null},this),je.style.zIndex=B(this.zlevel,this.z,this.z2),N(we,je)},fe=function(we){M(we,this._textVmlEl),this._textVmlEl=null},Je=function(we){N(we,this._textVmlEl)},ne=[c,i,r,n,o],X=0;X<ne.length;X++){var G=ne[X].prototype;G.drawRectText=Q,G.removeRectText=fe,G.appendRectText=Je}o.prototype.brushVML=function(te){var we=this.style;we.text!=null?this.drawRectText(te,{x:we.x||0,y:we.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(te)},o.prototype.onRemove=function(te){this.removeRectText(te)},o.prototype.onAdd=function(te){this.appendRectText(te)}}},qJCg:function(j,P,d){var O=d("BlVb"),E=d("mFDi"),C=d("IwbS"),v=C.linePolygonIntersect,w={lineX:m(0),lineY:m(1),rect:{point:function(i,r,o){return i&&o.boundingRect.contain(i[0],i[1])},rect:function(i,r,o){return i&&o.boundingRect.intersect(i)}},polygon:{point:function(i,r,o){return i&&o.boundingRect.contain(i[0],i[1])&&O.contain(o.range,i[0],i[1])},rect:function(i,r,o){var n=o.range;if(!i||n.length<=1)return!1;var e=i.x,s=i.y,t=i.width,a=i.height,l=n[0];if(O.contain(n,e,s)||O.contain(n,e+t,s)||O.contain(n,e,s+a)||O.contain(n,e+t,s+a)||E.create(i).contain(l[0],l[1])||v(e,s,e+t,s,n)||v(e,s,e,s+a,n)||v(e+t,s,e+t,s+a,n)||v(e,s+a,e+t,s+a,n))return!0}}};function m(i){var r=["x","y"],o=["width","height"];return{point:function(n,e,s){if(n){var t=s.range,a=n[i];return h(a,t)}},rect:function(n,e,s){if(n){var t=s.range,a=[n[r[i]],n[r[i]]+n[o[i]]];return a[1]<a[0]&&a.reverse(),h(a[0],t)||h(a[1],t)||h(t[0],a)||h(t[1],a)}}}}function h(i,r){return r[0]<=i&&i<=r[1]}var c=w;j.exports=c},qM6L:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.WordArray,w=E.enc,m=w.Utf16=w.Utf16BE={stringify:function(i){for(var r=i.words,o=i.sigBytes,n=[],e=0;e<o;e+=2){var s=r[e>>>2]>>>16-e%4*8&65535;n.push(String.fromCharCode(s))}return n.join("")},parse:function(i){for(var r=i.length,o=[],n=0;n<r;n++)o[n>>>1]|=i.charCodeAt(n)<<16-n%2*16;return v.create(o,r*2)}};w.Utf16LE={stringify:function(i){for(var r=i.words,o=i.sigBytes,n=[],e=0;e<o;e+=2){var s=h(r[e>>>2]>>>16-e%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(i){for(var r=i.length,o=[],n=0;n<r;n++)o[n>>>1]|=h(i.charCodeAt(n)<<16-n%2*16);return v.create(o,r*2)}};function h(c){return c<<8&4278255360|c>>>8&16711935}}(),O.enc.Utf16})},qMZE:function(j,P,d){var O=d("JEkh"),E=O.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}}}});j.exports=E},qOx5:function(j,P,d){"use strict";d.d(P,"a",function(){return m});var O=d("Kwbf");function E(h,c){var i=new Set;return h.forEach(function(r){c.has(r)||i.add(r)}),i}function C(h){var c=h||{},i=c.disabled,r=c.disableCheckbox,o=c.checkable;return!!(i||r)||o===!1}function v(h,c,i,r){for(var o=new Set(h),n=new Set,e=0;e<=i;e+=1){var s=c.get(e)||new Set;s.forEach(function(u){var f=u.key,p=u.node,g=u.children,A=g===void 0?[]:g;o.has(f)&&!r(p)&&A.filter(function(y){return!r(y.node)}).forEach(function(y){o.add(y.key)})})}for(var t=new Set,a=i;a>=0;a-=1){var l=c.get(a)||new Set;l.forEach(function(u){var f=u.parent,p=u.node;if(r(p)||!u.parent||t.has(u.parent.key))return;if(r(u.parent.node)){t.add(f.key);return}var g=!0,A=!1;(f.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var x=y.key,T=o.has(x);g&&!T&&(g=!1),!A&&(T||n.has(x))&&(A=!0)}),g&&o.add(f.key),A&&n.add(f.key),t.add(f.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(E(n,o))}}function w(h,c,i,r,o){for(var n=new Set(h),e=new Set(c),s=0;s<=r;s+=1){var t=i.get(s)||new Set;t.forEach(function(f){var p=f.key,g=f.node,A=f.children,y=A===void 0?[]:A;!n.has(p)&&!e.has(p)&&!o(g)&&y.filter(function(x){return!o(x.node)}).forEach(function(x){n.delete(x.key)})})}e=new Set;for(var a=new Set,l=r;l>=0;l-=1){var u=i.get(l)||new Set;u.forEach(function(f){var p=f.parent,g=f.node;if(o(g)||!f.parent||a.has(f.parent.key))return;if(o(f.parent.node)){a.add(p.key);return}var A=!0,y=!1;(p.children||[]).filter(function(x){return!o(x.node)}).forEach(function(x){var T=x.key,S=n.has(T);A&&!S&&(A=!1),!y&&(S||e.has(T))&&(y=!0)}),A||n.delete(p.key),y&&e.add(p.key),a.add(p.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(E(e,n))}}function m(h,c,i,r){var o=[],n;r?n=r:n=C;var e=new Set(h.filter(function(l){var u=!!i[l];return u||o.push(l),u})),s=new Map,t=0;Object.keys(i).forEach(function(l){var u=i[l],f=u.level,p=s.get(f);p||(p=new Set,s.set(f,p)),p.add(u),t=Math.max(t,f)}),Object(O.a)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(l){return"'".concat(l,"'")}).join(", ")));var a;return c===!0?a=v(e,s,t,n):a=w(e,c.halfCheckedKeys,s,t,n),a}},qPY4:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("u4NN"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},qWUW:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("DL4k")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="CaretDownOutlined";var c=v.forwardRef(h);P.default=c},qWt2:function(j,P,d){var O=d("ProS"),E=O.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}}});j.exports=E},qZFw:function(j,P,d){var O=d("bYtY"),E=d("6GrX"),C=d("hM6l"),v=d("4NO4"),w=v.makeInner,m=w();function h(i,r){r=r||[0,360],C.call(this,"angle",i,r),this.type="category"}h.prototype={constructor:h,pointToData:function(i,r){return this.polar.pointToData(i,r)[this.dim==="radius"?0:1]},dataToAngle:C.prototype.dataToCoord,angleToData:C.prototype.coordToData,calculateCategoryInterval:function(){var i=this,r=i.getLabelModel(),o=i.scale,n=o.getExtent(),e=o.count();if(n[1]-n[0]<1)return 0;var s=n[0],t=i.dataToCoord(s+1)-i.dataToCoord(s),a=Math.abs(t),l=E.getBoundingRect(s,r.getFont(),"center","top"),u=Math.max(l.height,7),f=u/a;isNaN(f)&&(f=Infinity);var p=Math.max(0,Math.floor(f)),g=m(i.model),A=g.lastAutoInterval,y=g.lastTickCount;return A!=null&&y!=null&&Math.abs(A-p)<=1&&Math.abs(y-e)<=1&&A>p?p=A:(g.lastTickCount=e,g.lastAutoInterval=p),p}},O.inherits(h,C);var c=h;j.exports=c},qgGe:function(j,P,d){var O=d("bYtY"),E=d("T4UG"),C=d("Bsck"),v=d("VaxA"),w=v.wrapTreePathInfo,m=E.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(c,i){var r={name:c.name,children:c.data};h(r);var o=c.levels||[],n={};return n.levels=o,C.createTree(r,this,n).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(c){var i=E.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(c);return i.treePathInfo=w(r,this),i},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 i=this.getRawData().tree.root;(!c||c!==i&&!i.contains(c))&&(this._viewRoot=i)}});function h(c){var i=0;O.each(c.children,function(o){h(o);var n=o.value;O.isArray(n)&&(n=n[0]),i+=n});var r=c.value;O.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=i),r<0&&(r=0),O.isArray(c.value)?c.value[0]=r:c.value=r}j.exports=m},qj72:function(j,P,d){var O=d("bYtY");function E(v,w){return w=w||[0,0],O.map(["x","y"],function(m,h){var c=this.getAxis(m),i=w[h],r=v[h]/2;return c.type==="category"?c.getBandWidth():Math.abs(c.dataToCoord(i-r)-c.dataToCoord(i+r))},this)}function C(v){var w=v.grid.getRect();return{coordSys:{type:"cartesian2d",x:w.x,y:w.y,width:w.width,height:w.height},api:{coord:function(m){return v.dataToPoint(m)},size:O.bind(E,v)}}}j.exports=C},"qt/9":function(j,P,d){var O=d("ProS"),E=d("bYtY");d("Wqna"),d("1tlw"),d("Mylv");var C=d("nVfU"),v=C.layout,w=d("f5Yq");d("Ae16"),O.registerLayout(E.curry(v,"pictorialBar")),O.registerVisual(w("pictorialBar","roundRect"))},qu8F:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return O.mode.CTRGladman=function(){var E=O.lib.BlockCipherMode.extend();function C(m){if((m>>24&255)===255){var h=m>>16&255,c=m>>8&255,i=m&255;h===255?(h=0,c===255?(c=0,i===255?i=0:++i):++c):++h,m=0,m+=h<<16,m+=c<<8,m+=i}else m+=1<<24;return m}function v(m){return(m[0]=C(m[0]))===0&&(m[1]=C(m[1])),m}var w=E.Encryptor=E.extend({processBlock:function(h,c){var i=this._cipher,r=i.blockSize,o=this._iv,n=this._counter;o&&(n=this._counter=o.slice(0),this._iv=void 0),v(n);var e=n.slice(0);i.encryptBlock(e,0);for(var s=0;s<r;s++)h[c+s]^=e[s]}});return E.Decryptor=w,E}(),O.mode.CTRGladman})},quyA:function(j,P){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",v=O+E+C,w="\\ufe0e\\ufe0f",m="\\u200d",h=RegExp("["+m+d+v+w+"]");function c(i){return h.test(i)}j.exports=c},qwVE:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("K4ya"),v=d("XxSj"),w=O.PRIORITY.VISUAL.COMPONENT;O.registerVisual(w,{createOnAllSeries:!0,reset:function(h,c){var i=[];return c.eachComponent("visualMap",function(r){var o=h.pipelineContext;if(!r.isTargetSeries(h)||o&&o.large)return;i.push(C.incrementalApplyVisual(r.stateList,r.targetVisuals,E.bind(r.getValueState,r),r.getDataDimension(h.getData())))}),i}}),O.registerVisual(w,{createOnAllSeries:!0,reset:function(h,c){var i=h.getData(),r=[];c.eachComponent("visualMap",function(o){if(o.isTargetSeries(h)){var n=o.getVisualMeta(E.bind(m,null,h,o))||{stops:[],outerColors:[]},e=o.getDataDimension(i),s=i.getDimensionInfo(e);s!=null&&(n.dimension=s.index,r.push(n))}}),h.getData().setVisual("visualMeta",r)}});function m(h,c,i,r){for(var o=c.targetVisuals[r],n=v.prepareVisualTypes(o),e={color:h.getData().getVisual("color")},s=0,t=n.length;s<t;s++){var a=n[s],l=o[a==="opacity"?"__alphaForOpacity":a];l&&l.applyVisual(i,u,f)}return e.color;function u(p){return e[p]}function f(p,g){e[p]=g}}},"r+aA":function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("s2MQ")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="EyeInvisibleOutlined";var c=v.forwardRef(h);P.default=c},"r/2G":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("+Zaj"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},r6Bn:function(j,P,d){var O=d("bYtY"),E=d("ItGF"),C=d("4fz+"),v=d("BPZU");function w(c,i){return c.zlevel===i.zlevel?c.z===i.z?c.z2-i.z2:c.z-i.z:c.zlevel-i.zlevel}var m=function(){this._roots=[],this._displayList=[],this._displayListLen=0};m.prototype={constructor:m,traverse:function(i,r){for(var o=0;o<this._roots.length;o++)this._roots[o].traverse(i,r)},getDisplayList:function(i,r){return r=r||!1,i&&this.updateDisplayList(r),this._displayList},updateDisplayList:function(i){this._displayListLen=0;for(var r=this._roots,o=this._displayList,n=0,e=r.length;n<e;n++)this._updateAndAddDisplayable(r[n],null,i);o.length=this._displayListLen,E.canvasSupported&&v(o,w)},_updateAndAddDisplayable:function(i,r,o){if(i.ignore&&!o)return;i.beforeUpdate(),i.__dirty&&i.update(),i.afterUpdate();var n=i.clipPath;if(n){r?r=r.slice():r=[];for(var e=n,s=i;e;)e.parent=s,e.updateTransform(),r.push(e),s=e,e=e.clipPath}if(i.isGroup){for(var t=i._children,a=0;a<t.length;a++){var l=t[a];i.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,r,o)}i.__dirty=!1}else i.__clipPaths=r,this._displayList[this._displayListLen++]=i},addRoot:function(i){if(i.__storage===this)return;i instanceof C&&i.addChildrenToStorage(this),this.addToStorage(i),this._roots.push(i)},delRoot:function(i){if(i==null){for(var r=0;r<this._roots.length;r++){var o=this._roots[r];o instanceof C&&o.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(i instanceof Array){for(var r=0,n=i.length;r<n;r++)this.delRoot(i[r]);return}var e=O.indexOf(this._roots,i);e>=0&&(this.delFromStorage(i),this._roots.splice(e,1),i instanceof C&&i.delChildrenFromStorage(this))},addToStorage:function(i){return i&&(i.__storage=this,i.dirty(!1)),this},delFromStorage:function(i){return i&&(i.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:w};var h=m;j.exports=h},rA99:function(j,P,d){var O=d("y+Vt"),E=d("QBsz"),C=d("Sj9i"),v=C.quadraticSubdivide,w=C.cubicSubdivide,m=C.quadraticAt,h=C.cubicAt,c=C.quadraticDerivativeAt,i=C.cubicDerivativeAt,r=[];function o(e,s,t){var a=e.cpx2,l=e.cpy2;return a===null||l===null?[(t?i:h)(e.x1,e.cpx1,e.cpx2,e.x2,s),(t?i:h)(e.y1,e.cpy1,e.cpy2,e.y2,s)]:[(t?c:m)(e.x1,e.cpx1,e.x2,s),(t?c:m)(e.y1,e.cpy1,e.y2,s)]}var n=O.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,t){var a=t.x1,l=t.y1,u=t.x2,f=t.y2,p=t.cpx1,g=t.cpy1,A=t.cpx2,y=t.cpy2,x=t.percent;if(x===0)return;s.moveTo(a,l),A==null||y==null?(x<1&&(v(a,p,u,x,r),p=r[1],u=r[2],v(l,g,f,x,r),g=r[1],f=r[2]),s.quadraticCurveTo(p,g,u,f)):(x<1&&(w(a,p,A,u,x,r),p=r[1],A=r[2],u=r[3],w(l,g,y,f,x,r),g=r[1],y=r[2],f=r[3]),s.bezierCurveTo(p,g,A,y,u,f))},pointAt:function(s){return o(this.shape,s,!1)},tangentAt:function(s){var t=o(this.shape,s,!0);return E.normalize(t,t)}});j.exports=n},"rAM+":function(j,P,d){"use strict";d.d(P,"a",function(){return E});var O=d("Qw5x");function E(C,v){var w;if(typeof Symbol=="undefined"||C[Symbol.iterator]==null){if(Array.isArray(C)||(w=Object(O.a)(C))||v&&C&&typeof C.length=="number"){w&&(C=w);var m=0,h=function(){};return{s:h,n:function(){return m>=C.length?{done:!0}:{done:!1,value:C[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,i=!1,r;return{s:function(){w=C[Symbol.iterator]()},n:function(){var n=w.next();return c=n.done,n},e:function(n){i=!0,r=n},f:function(){try{!c&&w.return!=null&&w.return()}finally{if(i)throw r}}}}},rHrb:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.CopyToClipboard=void 0;var O=C(d("q1tI")),E=C(d("+QRC"));function C(f){return f&&f.__esModule?f:{default:f}}function v(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(g){return typeof g}:v=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},v(f)}function w(f,p){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(f);p&&(A=A.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),g.push.apply(g,A)}return g}function m(f){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?w(g,!0).forEach(function(A){l(f,A,g[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(g)):w(g).forEach(function(A){Object.defineProperty(f,A,Object.getOwnPropertyDescriptor(g,A))})}return f}function h(f,p){if(f==null)return{};var g=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;g[A]=f[A]}}return g}function c(f,p){if(f==null)return{};var g={},A=Object.keys(f),y,x;for(x=0;x<A.length;x++){if(y=A[x],p.indexOf(y)>=0)continue;g[y]=f[y]}return g}function i(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function r(f,p){for(var g=0;g<p.length;g++){var A=p[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}function o(f,p,g){return p&&r(f.prototype,p),g&&r(f,g),f}function n(f,p){return p&&(v(p)==="object"||typeof p=="function")?p:s(f)}function e(f){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},e(f)}function s(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function t(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&&a(f,p)}function a(f,p){return a=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},a(f,p)}function l(f,p,g){return p in f?Object.defineProperty(f,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[p]=g,f}var u=function(f){t(p,f);function p(){var g,A;i(this,p);for(var y=arguments.length,x=new Array(y),T=0;T<y;T++)x[T]=arguments[T];return A=n(this,(g=e(p)).call.apply(g,[this].concat(x))),l(s(A),"onClick",function(S){var b=A.props,_=b.text,I=b.onCopy,L=b.children,D=b.options,N=O.default.Children.only(L),M=(0,E.default)(_,D);I&&I(_,M),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(S)}),A}return o(p,[{key:"render",value:function(){var A=this.props,y=A.text,x=A.onCopy,T=A.options,S=A.children,b=h(A,["text","onCopy","options","children"]),_=O.default.Children.only(S);return O.default.cloneElement(_,m({},b,{onClick:this.onClick}))}}]),p}(O.default.PureComponent);P.CopyToClipboard=u,l(u,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="ReloadOutlined";var h=P.a=E.forwardRef(m)},rUJ1:function(j,P){var d=/[&<>"']/,O=/[&<>"']/g,E=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},w=function(S){return v[S]};function m(T,S){if(S){if(d.test(T))return T.replace(O,w)}else if(E.test(T))return T.replace(C,w);return T}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(T){return T.replace(h,function(S,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 i=/(^|[^\[])\^/g;function r(T,S){T=T.source||T,S=S||"";var b={replace:function(I,L){return L=L.source||L,L=L.replace(i,"$1"),T=T.replace(I,L),b},getRegex:function(){return new RegExp(T,S)}};return b}var o=/[^\w:]/g,n=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(T,S,b){if(T){var _;try{_=decodeURIComponent(c(b)).replace(o,"").toLowerCase()}catch(I){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}S&&!n.test(b)&&(b=u(S,b));try{b=encodeURI(b).replace(/%25/g,"%")}catch(I){return null}return b}var s={},t=/^[^:]+:\/*[^/]*$/,a=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(T,S){s[" "+T]||(t.test(T)?s[" "+T]=T+"/":s[" "+T]=A(T,"/",!0)),T=s[" "+T];var b=T.indexOf(":")===-1;return S.substring(0,2)==="//"?b?S:T.replace(a,"$1")+S:S.charAt(0)==="/"?b?S:T.replace(l,"$1")+S:T+S}var f={exec:function(){}};function p(T){for(var S=1,b,_;S<arguments.length;S++){b=arguments[S];for(_ in b)Object.prototype.hasOwnProperty.call(b,_)&&(T[_]=b[_])}return T}function g(T,S){var b=T.replace(/\|/g,function(L,D,N){for(var M=!1,B=D;--B>=0&&N[B]==="\\";)M=!M;return M?"|":" |"}),_=b.split(/ \|/),I=0;if(_.length>S)_.splice(S);else for(;_.length<S;)_.push("");for(;I<_.length;I++)_[I]=_[I].trim().replace(/\\\|/g,"|");return _}function A(T,S,b){var _=T.length;if(_===0)return"";for(var I=0;I<_;){var L=T.charAt(_-I-1);if(L===S&&!b)I++;else if(L!==S&&b)I++;else break}return T.substr(0,_-I)}function y(T,S){if(T.indexOf(S[1])===-1)return-1;for(var b=T.length,_=0,I=0;I<b;I++)if(T[I]==="\\")I++;else if(T[I]===S[0])_++;else if(T[I]===S[1]&&(_--,_<0))return I;return-1}function x(T){T&&T.sanitize&&!T.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")}j.exports={escape:m,unescape:c,edit:r,cleanUrl:e,resolveUrl:u,noopTest:f,merge:p,splitCells:g,rtrim:A,findClosingBracket:y,checkSanitizeDeprecation:x}},rdUC:function(j,P,d){var O=d("MFOe"),E=O.Global;j.exports={name:"localStorage",read:v,write:w,each:m,remove:h,clearAll:c};function C(){return E.localStorage}function v(i){return C().getItem(i)}function w(i,r){return C().setItem(i,r)}function m(i){for(var r=C().length-1;r>=0;r--){var o=C().key(r);i(v(o),o)}}function h(i){return C().removeItem(i)}function c(){return C().clear()}},rdor:function(j,P,d){var O=d("lOQZ"),E=O.circularLayout;function C(v){v.eachSeriesByType("graph",function(w){w.get("layout")==="circular"&&E(w,"symbolSize")})}j.exports=C},rfSb:function(j,P,d){var O=d("T4UG"),E=d("sdST"),C=d("L0Ub"),v=C.getDimensionTypeByAxis,w=d("YXkt"),m=d("bYtY"),h=d("4NO4"),c=h.groupData,i=d("7aKB"),r=i.encodeHTML,o=d("xKMd"),n=2,e=O.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){e.superApply(this,"init",arguments),this.legendVisualProvider=new o(m.bind(this.getData,this),m.bind(this.getRawData,this))},fixData:function(t){var a=t.length,l=c(t,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,g=-1,A=0;A<f;++A){var y=u[A].dataList.length;y>p&&(p=y,g=A)}for(var x=0;x<f;++x){if(x===g)continue;for(var T=u[x].name,S=0;S<p;++S){for(var b=u[g].dataList[S][0],_=u[x].dataList.length,I=-1,L=0;L<_;++L){var D=u[x].dataList[L][0];if(D===b){I=L;break}}I===-1&&(t[a]=[],t[a][0]=b,t[a][1]=0,t[a][2]=T,a++)}}return t},getInitialData:function(t,a){for(var l=a.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],u=l.get("type"),f=m.filter(t.data,function(b){return b[2]!==void 0}),p=this.fixData(f||[]),g=[],A=this.nameMap=m.createHashMap(),y=0,x=0;x<p.length;++x)g.push(p[x][n]),A.get(p[x][n])||(A.set(p[x][n],y),y++);var T=E(p,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:v(u)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),S=new w(T,this);return S.initData(p),S},getLayerSeries:function(){for(var t=this.getData(),a=t.count(),l=[],u=0;u<a;++u)l[u]=u;var f=t.mapDimension("single"),p=c(l,function(A){return t.get("name",A)}),g=[];return p.buckets.each(function(A,y){A.sort(function(x,T){return t.get(f,x)-t.get(f,T)}),g.push({name:y,indices:A})}),g},getAxisTooltipData:function(t,a,l){m.isArray(t)||(t=t?[t]:[]);for(var u=this.getData(),f=this.getLayerSeries(),p=[],g=f.length,A,y=0;y<g;++y){for(var x=Number.MAX_VALUE,T=-1,S=f[y].indices.length,b=0;b<S;++b){var _=u.get(t[0],f[y].indices[b]),I=Math.abs(_-a);I<=x&&(A=_,x=I,T=f[y].indices[b])}p.push(T)}return{dataIndices:p,nestestValue:A}},formatTooltip:function(t){var a=this.getData(),l=a.getName(t),u=a.get(a.mapDimension("value"),t);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=e;j.exports=s},rkZ5:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("ProS"),v=d("c8qY"),w=d("D9ME"),m=d("fls0"),h=d("RSch"),c=d("akwb"),i=d("o40c"),r=d("ZYIC"),o=d("sK/D"),n=o.createClipPath,e=C.extendChartView({type:"lines",init:function(){},render:function(s,t,a){var l=s.getData(),u=this._updateLineDraw(l,s),f=s.get("zlevel"),p=s.get("effect.trailLength"),g=a.getZr(),A=g.painter.getType()==="svg";A||g.painter.getLayer(f).clear(!0),this._lastZlevel!=null&&!A&&g.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(s)&&p&&(A||g.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,t,a){var l=s.getData(),u=this._updateLineDraw(l,s);u.incrementalPrepareUpdate(l),this._clearLayer(a),this._finished=!1},incrementalRender:function(s,t,a){this._lineDraw.incrementalUpdate(s,t.getData()),this._finished=s.end===t.getData().count()},updateTransform:function(s,t,a){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(a)},_updateLineDraw:function(s,t){var a=this._lineDraw,l=this._showEffect(t),u=!!t.get("polyline"),f=t.pipelineContext,p=f.large;return(!a||l!==this._hasEffet||u!==this._isPolyline||p!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=p?new i:new v(u?l?c:h:l?w:m),this._hasEffet=l,this._isPolyline=u,this._isLargeDraw=p,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(s){return!!s.get("effect.show")},_clearLayer:function(s){var t=s.getZr(),a=t.painter.getType()==="svg";!a&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(s,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});j.exports=e},rmlV:function(j,P,d){var O=d("y+Vt"),E=O.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(v,w){var m=.5522848,h=w.cx,c=w.cy,i=w.rx,r=w.ry,o=i*m,n=r*m;v.moveTo(h-i,c),v.bezierCurveTo(h-i,c-n,h-o,c-r,h,c-r),v.bezierCurveTo(h+o,c-r,h+i,c-n,h+i,c),v.bezierCurveTo(h+i,c+n,h+o,c+r,h,c+r),v.bezierCurveTo(h-o,c+r,h-i,c+n,h-i,c),v.closePath()}});j.exports=E},rnVJ:function(j,P,d){var O=d("bYtY"),E=["rect","polygon","keep","clear"];function C(w,m){var h=w&&w.brush;if(O.isArray(h)||(h=h?[h]:[]),!h.length)return;var c=[];O.each(h,function(e){var s=e.hasOwnProperty("toolbox")?e.toolbox:[];s instanceof Array&&(c=c.concat(s))});var i=w&&w.toolbox;O.isArray(i)&&(i=i[0]),i||(i={feature:{}},w.toolbox=[i]);var r=i.feature||(i.feature={}),o=r.brush||(r.brush={}),n=o.type||(o.type=[]);n.push.apply(n,c),v(n),m&&!n.length&&n.push.apply(n,E)}function v(w){var m={};O.each(w,function(h){m[h]=1}),w.length=0,O.each(m,function(h,c){w.push(c)})}j.exports=C},rwxt:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("GdRQ");function E(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}function C(h,c){for(var i=0;i<c.length;i++){var r=c[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}function v(h,c,i){return c&&C(h.prototype,c),i&&C(h,i),h}var w=!O.supportsCursorURIs||O.isTouchDevice,m=function(){function h(){E(this,h),this._target=null,this._canvas=document.createElement("canvas"),w&&(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 v(h,[{key:"attach",value:function(i){if(this._target&&this.detach(),this._target=i,w){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(w){var i={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,i),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,i),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,i),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,i),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(i,r,o,n,e){if(n===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-r,this._position.y=this._position.y+this._hotSpot.y-o,this._hotSpot.x=r,this._hotSpot.y=o;var s=this._canvas.getContext("2d");this._canvas.width=n,this._canvas.height=e;var t;try{t=new ImageData(new Uint8ClampedArray(i),n,e)}catch(l){t=s.createImageData(n,e),t.data.set(new Uint8ClampedArray(i))}if(s.clearRect(0,0,n,e),s.putImageData(t,0,0),w)this._updatePosition();else{var a=this._canvas.toDataURL();this._target.style.cursor="url("+a+")"+r+" "+o+", 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(i,r){if(!w)return;window.visualViewport?(this._position.x=i+window.visualViewport.offsetLeft,this._position.y=r+window.visualViewport.offsetTop):(this._position.x=i,this._position.y=r),this._updatePosition();var o=document.elementFromPoint(i,r);this._updateVisibility(o)}},{key:"_handleMouseOver",value:function(i){this._handleMouseMove(i)}},{key:"_handleMouseLeave",value:function(i){this._updateVisibility(i.relatedTarget)}},{key:"_handleMouseMove",value:function(i){this._updateVisibility(i.target),this._position.x=i.clientX-this._hotSpot.x,this._position.y=i.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(i){var r=this,o=document.elementFromPoint(i.clientX,i.clientY);this._updateVisibility(o),this._captureIsActive()&&window.setTimeout(function(){if(!r._target)return;o=document.elementFromPoint(i.clientX,i.clientY),r._updateVisibility(o)},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(i){return i?i===this._target?!0:this._target.contains(i)?!(window.getComputedStyle(i).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(i){this._captureIsActive()&&(i=document.captureElement),this._shouldShowCursor(i)?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}();P.default=m},rySg:function(j,P,d){d("SMc4"),d("8nMs")},s2MQ:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},s2lz:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("IwbS"),v=d("gPAo"),w=d("VaxA"),m=d("9hCq"),h=d("SgGq"),c=d("mFDi"),i=d("Fofx"),r=d("5s0K"),o=d("KCsZ"),n=d("7aKB"),e=n.windowOpen,s=E.bind,t=C.Group,a=C.Rect,l=E.each,u=3,f=["label"],p=["emphasis","label"],g=["upperLabel"],A=["emphasis","upperLabel"],y=10,x=1,T=2,S=o([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),b=function(N){var M=S(N);return M.stroke=M.fill=M.lineWidth=null,M},_=O.extendChartView({type:"treemap",init:function(N,M){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(N,M,B,R){var H=M.findComponents({mainType:"series",subType:"treemap",query:R});if(E.indexOf(H,N)<0)return;this.seriesModel=N,this.api=B,this.ecModel=M;var F=["treemapZoomToNode","treemapRootToNode"],K=w.retrieveTargetInfo(R,F,N),U=R&&R.type,V=N.layoutInfo,z=!this._oldTree,Y=this._storage,q=U==="treemapRootToNode"&&K&&Y?{rootNodeGroup:Y.nodeGroup[K.node.getRawIndex()],direction:R.direction}:null,ce=this._giveContainerGroup(V),ie=this._doRender(ce,N,q);!z&&(!U||U==="treemapZoomToNode"||U==="treemapRootToNode")?this._doAnimation(ce,ie,N,q):ie.renderFinally(),this._resetController(B),this._renderBreadcrumb(N,B,K)},_giveContainerGroup:function(N){var M=this._containerGroup;return M||(M=this._containerGroup=new t,this._initEvents(M),this.group.add(M)),M.attr("position",[N.x,N.y]),M},_doRender:function(N,M,B){var R=M.getData().tree,H=this._oldTree,F=I(),K=I(),U=this._storage,V=[],z=E.curry(L,M,K,U,B,F,V);q(R.root?[R.root]:[],H&&H.root?[H.root]:[],N,R===H||!H,0);var Y=ce(U);return this._oldTree=R,this._storage=K,{lastsForAnimation:F,willDeleteEls:Y,renderFinally:ie};function q(ve,Ee,Le,He,ge){He?(Ee=ve,l(ve,function(fe,Je){!fe.isRemoved()&&Q(Je,Je)})):new v(Ee,ve,Fe,Fe).add(Q).update(Q).remove(E.curry(Q,null)).execute();function Fe(fe){return fe.getId()}function Q(fe,Je){var ne=fe!=null?ve[fe]:null,X=Je!=null?Ee[Je]:null,G=z(ne,X,Le,ge);G&&q(ne&&ne.viewChildren||[],X&&X.viewChildren||[],G,He,ge+1)}}function ce(ve){var Ee=I();return ve&&l(ve,function(Le,He){var ge=Ee[He];l(Le,function(Fe){Fe&&(ge.push(Fe),Fe.__tmWillDelete=1)})}),Ee}function ie(){l(Y,function(ve){l(ve,function(Ee){Ee.parent&&Ee.parent.remove(Ee)})}),l(V,function(ve){ve.invisible=!0,ve.dirty()})}},_doAnimation:function(N,M,B,R){if(!B.get("animation"))return;var H=B.get("animationDurationUpdate"),F=B.get("animationEasing"),K=r.createWrap();l(M.willDeleteEls,function(U,V){l(U,function(z,Y){if(z.invisible)return;var q=z.parent,ce;if(R&&R.direction==="drillDown")ce=q===R.rootNodeGroup?{shape:{x:0,y:0,width:q.__tmNodeWidth,height:q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var ie=0,ve=0;q.__tmWillDelete||(ie=q.__tmNodeWidth/2,ve=q.__tmNodeHeight/2),ce=V==="nodeGroup"?{position:[ie,ve],style:{opacity:0}}:{shape:{x:ie,y:ve,width:0,height:0},style:{opacity:0}}}ce&&K.add(z,ce,H,F)})}),l(this._storage,function(U,V){l(U,function(z,Y){var q=M.lastsForAnimation[V][Y],ce={};if(!q)return;V==="nodeGroup"?q.old&&(ce.position=z.position.slice(),z.attr("position",q.old)):(q.old&&(ce.shape=E.extend({},z.shape),z.setShape(q.old)),q.fadein?(z.setStyle("opacity",0),ce.style={opacity:1}):z.style.opacity!==1&&(ce.style={opacity:1})),K.add(z,ce,H,F)})},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 B=new c(0,0,N.getWidth(),N.getHeight());M.setPointerChecker(function(R,H,F){return B.contain(H,F)})},_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 B=M.getLayout();if(!B)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:B.x+N.dx,y:B.y+N.dy,width:B.width,height:B.height}})}},_onZoom:function(N){var M=N.originX,B=N.originY;if(this._state!=="animating"){var R=this.seriesModel.getData().tree.root;if(!R)return;var H=R.getLayout();if(!H)return;var F=new c(H.x,H.y,H.width,H.height),K=this.seriesModel.layoutInfo;M-=K.x,B-=K.y;var U=i.create();i.translate(U,U,[-M,-B]),i.scale(U,U,[N.scale,N.scale]),i.translate(U,U,[M,B]),F.applyTransform(U),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x,y:F.y,width:F.width,height:F.height}})}},_initEvents:function(N){N.on("click",function(M){if(this._state!=="ready")return;var B=this.seriesModel.get("nodeClick",!0);if(!B)return;var R=this.findTarget(M.offsetX,M.offsetY);if(!R)return;var H=R.node;if(H.getLayout().isLeafRoot)this._rootToNode(R);else if(B==="zoomToNode")this._zoomToNode(R);else if(B==="link"){var F=H.hostTree.data.getItemModel(H.dataIndex),K=F.get("link",!0),U=F.get("target",!0)||"blank";K&&e(K,U)}},this)},_renderBreadcrumb:function(N,M,B){B||(B=N.get("leafDepth",!0)!=null?{node:N.getViewRoot()}:this.findTarget(M.getWidth()/2,M.getHeight()/2),B||(B={node:N.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new m(this.group))).render(N,M,B.node,s(R,this));function R(H){this._state!=="animating"&&(w.aboveViewRoot(N.getViewRoot(),H)?this._rootToNode({node:H}):this._zoomToNode({node:H}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(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 B,R=this.seriesModel.getViewRoot();return R.eachNode({attr:"viewChildren",order:"preorder"},function(H){var F=this._storage.background[H.getRawIndex()];if(F){var K=F.transformCoordToLocal(N,M),U=F.shape;if(U.x<=K[0]&&K[0]<=U.x+U.width&&U.y<=K[1]&&K[1]<=U.y+U.height)B={node:H,offsetX:K[0],offsetY:K[1]};else return!1}},this),B}});function I(){return{nodeGroup:[],background:[],content:[]}}function L(N,M,B,R,H,F,K,U,V,z){if(!K)return;var Y=K.getLayout(),q=N.getData();if(q.setItemGraphicEl(K.dataIndex,null),!Y||!Y.isInView)return;var ce=Y.width,ie=Y.height,ve=Y.borderWidth,Ee=Y.invisible,Le=K.getRawIndex(),He=U&&U.getRawIndex(),ge=K.viewChildren,Fe=Y.upperHeight,Q=ge&&ge.length,fe=K.getModel("itemStyle"),Je=K.getModel("emphasis.itemStyle"),ne=me("nodeGroup",t);if(!ne)return;if(V.add(ne),ne.attr("position",[Y.x||0,Y.y||0]),ne.__tmNodeWidth=ce,ne.__tmNodeHeight=ie,Y.isAboveViewRoot)return ne;var X=K.getModel(),G=me("background",a,z,x);if(G&&we(ne,G,Q&&Y.upperLabelHeight),Q)C.isHighDownDispatcher(ne)&&C.setAsHighDownDispatcher(ne,!1),G&&(C.setAsHighDownDispatcher(G,!0),q.setItemGraphicEl(K.dataIndex,G));else{var te=me("content",a,z,T);te&&he(ne,te),G&&C.isHighDownDispatcher(G)&&C.setAsHighDownDispatcher(G,!1),C.setAsHighDownDispatcher(ne,!0),q.setItemGraphicEl(K.dataIndex,ne)}return ne;function we(gt,et,Ie){if(et.dataIndex=K.dataIndex,et.seriesIndex=N.seriesIndex,et.setShape({x:0,y:0,width:ce,height:ie}),Ee)Pe(et);else{et.invisible=!1;var rt=K.getVisual("borderColor",!0),Ge=Je.get("borderColor"),vt=b(fe);vt.fill=rt;var Ot=S(Je);if(Ot.fill=Ge,Ie){var Et=ce-2*ve;Oe(vt,Ot,rt,Et,Fe,{x:ve,y:0,width:Et,height:Fe})}else vt.text=Ot.text=null;et.setStyle(vt),C.setElementHoverStyle(et,Ot)}gt.add(et)}function he(gt,et){et.dataIndex=K.dataIndex,et.seriesIndex=N.seriesIndex;var Ie=Math.max(ce-2*ve,0),rt=Math.max(ie-2*ve,0);if(et.culling=!0,et.setShape({x:ve,y:ve,width:Ie,height:rt}),Ee)Pe(et);else{et.invisible=!1;var Ge=K.getVisual("color",!0),vt=b(fe);vt.fill=Ge;var Ot=S(Je);Oe(vt,Ot,Ge,Ie,rt),et.setStyle(vt),C.setElementHoverStyle(et,Ot)}gt.add(et)}function Pe(gt){!gt.invisible&&F.push(gt)}function Oe(gt,et,Ie,rt,Ge,vt){var Ot=X.get("name"),Et=X.getModel(vt?g:f),Tt=X.getModel(vt?A:p),Rt=Et.getShallow("show");C.setLabelStyle(gt,et,Et,Tt,{defaultText:Rt?Ot:null,autoColor:Ie,isRectText:!0,labelFetcher:N,labelDataIndex:K.dataIndex,labelProp:vt?"upperLabel":"label"}),le(gt,vt,Y),le(et,vt,Y),vt&&(gt.textRect=E.clone(vt)),gt.truncate=Rt&&Et.get("ellipsis")?{outerWidth:rt,outerHeight:Ge,minChar:2}:null}function le(gt,et,Ie){var rt=gt.text;if(!et&&Ie.isLeafRoot&&rt!=null){var Ge=N.get("drillDownIcon",!0);gt.text=Ge?Ge+" "+rt:rt}}function me(gt,et,Ie,rt){var Ge=He!=null&&B[gt][He],vt=H[gt];return Ge?(B[gt][He]=null,_e(vt,Ge,gt)):Ee||(Ge=new et({z:D(Ie,rt)}),Ge.__tmDepth=Ie,Ge.__tmStorageName=gt,$e(vt,Ge,gt)),M[gt][Le]=Ge}function _e(gt,et,Ie){var rt=gt[Le]={};rt.old=Ie==="nodeGroup"?et.position.slice():E.extend({},et.shape)}function $e(gt,et,Ie){var rt=gt[Le]={},Ge=K.parentNode;if(Ge&&(!R||R.direction==="drillDown")){var vt=0,Ot=0,Et=H.background[Ge.getRawIndex()];!R&&Et&&Et.old&&(vt=Et.old.width,Ot=Et.old.height),rt.old=Ie==="nodeGroup"?[0,Ot]:{x:vt,y:Ot,width:0,height:0}}rt.fadein=Ie!=="nodeGroup"}}function D(N,M){var B=N*y+M;return(B-1)/B}j.exports=_},sAZ8:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("+rIm"),v=d("/IIm"),w=d("9KIM"),m=d("IwbS"),h=["axisLine","axisTickLabel","axisName"],c=O.extendComponentView({type:"parallelAxis",init:function(e,s){c.superApply(this,"init",arguments),(this._brushController=new v(s.getZr())).on("brush",E.bind(this._onBrush,this))},render:function(e,s,t,a){if(i(e,s,a))return;this.axisModel=e,this.api=t,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new m.Group,this.group.add(this._axisGroup),!e.get("show"))return;var u=o(e,s),f=u.coordinateSystem,p=e.getAreaSelectStyle(),g=p.width,A=e.axis.dim,y=f.getAxisLayout(A),x=E.extend({strokeContainThreshold:g},y),T=new C(e,x);E.each(h,T.add,T),this._axisGroup.add(T.getGroup()),this._refreshBrushController(x,p,e,u,g,t);var S=a&&a.animation===!1?null:e;m.groupTransition(l,this._axisGroup,S)},_refreshBrushController:function(e,s,t,a,l,u){var f=t.axis.getExtent(),p=f[1]-f[0],g=Math.min(30,Math.abs(p)*.1),A=m.BoundingRect.create({x:f[0],y:-l/2,width:p,height:l});A.x-=g,A.width+=2*g,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:w.makeRectPanelClipPath(A),isTargetByCursor:w.makeRectIsTargetByCursor(A,u,a),getLinearBrushOtherExtent:w.makeLinearBrushOtherExtent(A,0)}]).enableBrush({brushType:"lineX",brushStyle:s,removeOnClick:!0}).updateCovers(r(t))},_onBrush:function(e,s){var t=this.axisModel,a=t.axis,l=E.map(e,function(u){return[a.coordToData(u.range[0],!0),a.coordToData(u.range[1],!0)]});(!t.option.realtime===s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:t.id,intervals:l})},dispose:function(){this._brushController.dispose()}});function i(e,s,t){return t&&t.type==="axisAreaSelect"&&s.findComponents({mainType:"parallelAxis",query:t})[0]===e}function r(e){var s=e.axis;return E.map(e.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[s.dataToCoord(t[0],!0),s.dataToCoord(t[1],!0)]}})}function o(e,s){return s.getComponent("parallel",e.get("parallelIndex"))}var n=c;j.exports=n},sE09:function(j,P,d){},sGsY:function(j,P,d){"use strict";var O=d("lSNA"),E=d.n(O),C=d("pVnL"),v=d.n(C),w=d("q1tI"),m=d("TSYQ"),h=d.n(m),c=d("H84U"),i=d("B6l+"),r=d.n(i),o=function(K){var U=K.value,V=K.formatter,z=K.precision,Y=K.decimalSeparator,q=K.groupSeparator,ce=q===void 0?"":q,ie=K.prefixCls,ve;if(typeof V=="function")ve=V(U);else{var Ee=String(U),Le=Ee.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Le||Ee==="-")ve=Ee;else{var He=Le[1],ge=Le[2]||"0",Fe=Le[4]||"";ge=ge.replace(/\B(?=(\d{3})+(?!\d))/g,ce),typeof z=="number"&&(Fe=r()(Fe,z,"0").slice(0,z)),Fe&&(Fe="".concat(Y).concat(Fe)),ve=[w.createElement("span",{key:"int",className:"".concat(ie,"-content-value-int")},He,ge),Fe&&w.createElement("span",{key:"decimal",className:"".concat(ie,"-content-value-decimal")},Fe)]}}return w.createElement("span",{className:"".concat(ie,"-content-value")},ve)},n=o,e=function(K){var U=K.prefixCls,V=K.className,z=K.style,Y=K.valueStyle,q=K.value,ce=q===void 0?0:q,ie=K.title,ve=K.valueRender,Ee=K.prefix,Le=K.suffix,He=K.direction,ge=K.onMouseEnter,Fe=K.onMouseLeave,Q=w.createElement(n,v()({},K,{value:ce})),fe=h()(U,V,E()({},"".concat(U,"-rtl"),He==="rtl"));return w.createElement("div",{className:fe,style:z,onMouseEnter:ge,onMouseLeave:Fe},ie&&w.createElement("div",{className:"".concat(U,"-title")},ie),w.createElement("div",{style:Y,className:"".concat(U,"-content")},Ee&&w.createElement("span",{className:"".concat(U,"-content-prefix")},Ee),ve?ve(Q):Q,Le&&w.createElement("span",{className:"".concat(U,"-content-suffix")},Le)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var s=Object(c.c)({prefixCls:"statistic"})(e),t=s,a=d("lwsE"),l=d.n(a),u=d("W8MJ"),f=d.n(u),p=d("7W2i"),g=d.n(p),A=d("LQ03"),y=d.n(A),x=d("J4zp"),T=d.n(x),S=d("QQZ/"),b=d.n(S),_=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(F,K){var U=F,V=/\[[^\]]*]/g,z=(K.match(V)||[]).map(function(ie){return ie.slice(1,-1)}),Y=K.replace(V,"[]"),q=_.reduce(function(ie,ve){var Ee=T()(ve,2),Le=Ee[0],He=Ee[1];if(ie.indexOf(Le)!==-1){var ge=Math.floor(U/He);return U-=ge*He,ie.replace(new RegExp("".concat(Le,"+"),"g"),function(Fe){var Q=Fe.length;return b()(ge.toString(),Q,"0")})}return ie},Y),ce=0;return q.replace(V,function(){var ie=z[ce];return ce+=1,ie})}function L(F,K){var U=K.format,V=U===void 0?"":U,z=new Date(F).getTime(),Y=Date.now(),q=Math.max(z-Y,0);return I(q,V)}var D=d("0n0R"),N=1e3/30;function M(F){return new Date(F).getTime()}var B=function(F){g()(U,F);var K=y()(U);function U(){var V;return l()(this,U),V=K.apply(this,arguments),V.syncTimer=function(){var z=V.props.value,Y=M(z);Y>=Date.now()?V.startTimer():V.stopTimer()},V.startTimer=function(){if(V.countdownId)return;V.countdownId=window.setInterval(function(){V.forceUpdate()},N)},V.stopTimer=function(){var z=V.props,Y=z.onFinish,q=z.value;if(V.countdownId){clearInterval(V.countdownId),V.countdownId=void 0;var ce=M(q);Y&&ce<Date.now()&&Y()}},V.formatCountdown=function(z,Y){var q=V.props.format;return L(z,v()(v()({},Y),{format:q}))},V.valueRender=function(z){return Object(D.a)(z,{title:void 0})},V}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 w.createElement(t,v()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),U}(w.Component);B.defaultProps={format:"HH:mm:ss"};var R=B;t.Countdown=R;var H=P.a=t},"sK/D":function(j,P,d){var O=d("IwbS"),E=d("OELB"),C=E.round;function v(h,c,i){var r=h.getArea(),o=h.getBaseAxis().isHorizontal(),n=r.x,e=r.y,s=r.width,t=r.height,a=i.get("lineStyle.width")||2;n-=a/2,e-=a/2,s+=a,t+=a,n=Math.floor(n),s=Math.round(s);var l=new O.Rect({shape:{x:n,y:e,width:s,height:t}});return c&&(l.shape[o?"width":"height"]=0,O.initProps(l,{shape:{width:s,height:t}},i)),l}function w(h,c,i){var r=h.getArea(),o=new O.Sector({shape:{cx:C(h.cx,1),cy:C(h.cy,1),r0:C(r.r0,1),r:C(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return c&&(o.shape.endAngle=r.startAngle,O.initProps(o,{shape:{endAngle:r.endAngle}},i)),o}function m(h,c,i){if(h){if(h.type==="polar")return w(h,c,i);if(h.type==="cartesian2d")return v(h,c,i)}else return null;return null}P.createGridClipPath=v,P.createPolarClipPath=w,P.createClipPath=m},sKgW:function(j,P){var d=9007199254740991,O=Math.floor;function E(C,v){var w="";if(!C||v<1||v>d)return w;do v%2&&(w+=C),v=O(v/2),v&&(C+=C);while(v);return w}j.exports=E},sPJy:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("AOa7"),v=d.n(C),w=d("lUTK"),m=d("qVdP")},sPtV:function(j,P,d){"use strict";d.d(P,"a",function(){return v});var O=d("q1tI"),E=d.n(O),C=d("hkKa");function v(w){var m=O.useRef(w),h=Object(C.a)();return[function(){return m.current},function(c){m.current=c,h()}]}},sRwP:function(j,P,d){d("jsU+"),d("2548"),d("Tp9H"),d("06DH"),d("dnwI"),d("fE02"),d("33Ds")},"sS/r":function(j,P,d){var O=d("4fz+"),E=d("iRjW"),C=d("Yl7c"),v=function(){this.group=new O,this.uid=E.getUID("viewComponent")};v.prototype={constructor:v,init:function(h,c){},render:function(h,c,i,r){},dispose:function(){},filterForExposedEvent:null};var w=v.prototype;w.updateView=w.updateLayout=w.updateVisual=function(h,c,i,r){},C.enableClassExtend(v),C.enableClassManagement(v,{registerWhenExtend:!0});var m=v;j.exports=m},"sW+o":function(j,P,d){var O=d("SrGk"),E=d("bYtY"),C=d("SUKs"),v=d("Qe9p");function w(h,c){O.call(this,h,c,["linearGradient","radialGradient"],"__gradient_in_use__")}E.inherits(w,O),w.prototype.addWithoutUpdate=function(h,c){if(c&&c.style){var i=this;E.each(["fill","stroke"],function(r){if(c.style[r]&&(c.style[r].type==="linear"||c.style[r].type==="radial")){var o=c.style[r],n=i.getDefs(!0),e;o._dom?(e=o._dom,n.contains(o._dom)||i.addDom(e)):e=i.add(o),i.markUsed(c);var s=e.getAttribute("id");h.setAttribute(r,"url(#"+s+")")}})}},w.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 C("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},w.prototype.update=function(h){var c=this;O.prototype.update.call(this,h,function(){var i=h.type,r=h._dom.tagName;i==="linear"&&r==="linearGradient"||i==="radial"&&r==="radialGradient"?c.updateDom(h,h._dom):(c.removeDom(h),c.add(h))})},w.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{C("Illegal gradient type.");return}h.global?c.setAttribute("gradientUnits","userSpaceOnUse"):c.setAttribute("gradientUnits","objectBoundingBox"),c.innerHTML="";for(var i=h.colorStops,r=0,o=i.length;r<o;++r){var n=this.createElement("stop");n.setAttribute("offset",i[r].offset*100+"%");var e=i[r].color;if(e.indexOf("rgba">-1)){var s=v.parse(e)[3],t=v.toHex(e);n.setAttribute("stop-color","#"+t),n.setAttribute("stop-opacity",s)}else n.setAttribute("stop-color",i[r].color);c.appendChild(n)}h._dom=c},w.prototype.markUsed=function(h){if(h.style){var c=h.style.fill;c&&c._dom&&O.prototype.markUsed.call(this,c._dom),c=h.style.stroke,c&&c._dom&&O.prototype.markUsed.call(this,c._dom)}};var m=w;j.exports=m},sdST:function(j,P,d){var O=d("hi0g");function E(C,v){return v=v||{},O(v.coordDimensions||[],C,{dimsDef:v.dimensionsDefine||C.dimensionsDefine,encodeDef:v.encodeDefine||C.encodeDefine,dimCount:v.dimensionsCount,encodeDefaulter:v.encodeDefaulter,generateCoord:v.generateCoord,generateCoordCount:v.generateCoordCount})}j.exports=E},sjKO:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=C;var O=30,E=12;function C(v,w){var m,h,c,i,r,o,n,e,s,t,a,l,u,f,p,g,A,y,x,T,S,b,_,I,L;m=v.state,h=v.next_in,I=v.input,c=h+(v.avail_in-5),i=v.next_out,L=v.output,r=i-(w-v.avail_out),o=i+(v.avail_out-257),n=m.dmax,e=m.wsize,s=m.whave,t=m.wnext,a=m.window,l=m.hold,u=m.bits,f=m.lencode,p=m.distcode,g=(1<<m.lenbits)-1,A=(1<<m.distbits)-1;e:do{u<15&&(l+=I[h++]<<u,u+=8,l+=I[h++]<<u,u+=8),y=f[l&g];t:for(;;){if(x=y>>>24,l>>>=x,u-=x,x=y>>>16&255,x===0)L[i++]=y&65535;else if(x&16){T=y&65535,x&=15,x&&(u<x&&(l+=I[h++]<<u,u+=8),T+=l&(1<<x)-1,l>>>=x,u-=x),u<15&&(l+=I[h++]<<u,u+=8,l+=I[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(S=y&65535,x&=15,u<x&&(l+=I[h++]<<u,u+=8,u<x&&(l+=I[h++]<<u,u+=8)),S+=l&(1<<x)-1,S>n){v.msg="invalid distance too far back",m.mode=O;break e}if(l>>>=x,u-=x,x=i-r,S>x){if(x=S-x,x>s&&m.sane){v.msg="invalid distance too far back",m.mode=O;break e}if(b=0,_=a,t===0){if(b+=e-x,x<T){T-=x;do L[i++]=a[b++];while(--x);b=i-S,_=L}}else if(t<x){if(b+=e+t-x,x-=t,x<T){T-=x;do L[i++]=a[b++];while(--x);if(b=0,t<T){x=t,T-=x;do L[i++]=a[b++];while(--x);b=i-S,_=L}}}else if(b+=t-x,x<T){T-=x;do L[i++]=a[b++];while(--x);b=i-S,_=L}for(;T>2;)L[i++]=_[b++],L[i++]=_[b++],L[i++]=_[b++],T-=3;T&&(L[i++]=_[b++],T>1&&(L[i++]=_[b++]))}else{b=i-S;do L[i++]=L[b++],L[i++]=L[b++],L[i++]=L[b++],T-=3;while(T>2);T&&(L[i++]=L[b++],T>1&&(L[i++]=L[b++]))}}else if((x&64)===0){y=p[(y&65535)+(l&(1<<x)-1)];continue r}else{v.msg="invalid distance code",m.mode=O;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{v.msg="invalid literal/length code",m.mode=O;break e}break}}while(h<c&&i<o);T=u>>3,h-=T,u-=T<<3,l&=(1<<u)-1,v.next_in=h,v.next_out=i,v.avail_in=h<c?5+(c-h):5-(h-c),v.avail_out=i<o?257+(o-i):257-(i-o),m.hold=l,m.bits=u;return}},szbU:function(j,P,d){var O=d("bYtY"),E=O.each;function C(w){var m=w&&w.visualMap;O.isArray(m)||(m=m?[m]:[]),E(m,function(h){if(!h)return;v(h,"splitList")&&!v(h,"pieces")&&(h.pieces=h.splitList,delete h.splitList);var c=h.pieces;c&&O.isArray(c)&&E(c,function(i){O.isObject(i)&&(v(i,"start")&&!v(i,"min")&&(i.min=i.start),v(i,"end")&&!v(i,"max")&&(i.max=i.end))})})}function v(w,m){return w&&w.hasOwnProperty&&w.hasOwnProperty(m)}j.exports=C},t23M:function(j,P,d){"use strict";var O=d("wx14"),E=d("q1tI"),C=d("Zm9Q"),v=d("Kwbf"),w=d("VTBJ"),m=d("c+Xe"),h=d("m+aA"),c=d("bdgK"),i=new Map;function r(b){b.forEach(function(_){var I,L=_.target;(I=i.get(L))===null||I===void 0||I.forEach(function(D){return D(L)})})}var o=new c.default(r),n=null,e=null;function s(b,_){i.has(b)||(i.set(b,new Set),o.observe(b)),i.get(b).add(_)}function t(b,_){i.has(b)&&(i.get(b).delete(_),i.get(b).size||(o.unobserve(b),i.delete(b)))}var a=d("1OyB"),l=d("vuIU"),u=d("Ji7U"),f=d("LK+K"),p=function(b){Object(u.a)(I,b);var _=Object(f.a)(I);function I(){return Object(a.a)(this,I),_.apply(this,arguments)}return Object(l.a)(I,[{key:"render",value:function(){return this.props.children}}]),I}(E.Component),g=E.createContext(null);function A(b){var _=b.children,I=b.onBatchResize,L=E.useRef(0),D=E.useRef([]),N=E.useContext(g),M=E.useCallback(function(B,R,H){L.current+=1;var F=L.current;D.current.push({size:B,element:R,data:H}),Promise.resolve().then(function(){F===L.current&&(I==null||I(D.current),D.current=[])}),N==null||N(B,R,H)},[I,N]);return E.createElement(g.Provider,{value:M},_)}function y(b){var _=b.children,I=b.disabled,L=E.useRef(null),D=E.useRef(null),N=E.useContext(g),M=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),B=E.isValidElement(_)&&Object(m.c)(_),R=B?_.ref:null,H=E.useMemo(function(){return Object(m.a)(R,L)},[R,L]),F=E.useRef(b);F.current=b;var K=E.useCallback(function(U){var V=F.current,z=V.onResize,Y=V.data,q=U.getBoundingClientRect(),ce=q.width,ie=q.height,ve=U.offsetWidth,Ee=U.offsetHeight,Le=Math.floor(ce),He=Math.floor(ie);if(M.current.width!==Le||M.current.height!==He||M.current.offsetWidth!==ve||M.current.offsetHeight!==Ee){var ge={width:Le,height:He,offsetWidth:ve,offsetHeight:Ee};M.current=ge;var Fe=ve===Math.round(ce)?ce:ve,Q=Ee===Math.round(ie)?ie:Ee,fe=Object(w.a)(Object(w.a)({},ge),{},{offsetWidth:Fe,offsetHeight:Q});N==null||N(fe,U,Y),z&&Promise.resolve().then(function(){z(fe,U)})}},[]);return E.useEffect(function(){var U=Object(h.a)(L.current)||Object(h.a)(D.current);return U&&!I&&s(U,K),function(){return t(U,K)}},[L.current,I]),E.createElement(p,{ref:D},B?E.cloneElement(_,{ref:H}):_)}var x="rc-observer-key";function T(b){var _=b.children,I=Object(C.a)(_);return I.map(function(L,D){var N=(L==null?void 0:L.key)||"".concat(x,"-").concat(D);return E.createElement(y,Object(O.a)({},b,{key:N}),L)})}T.Collection=A;var S=P.a=T},t3Fx:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=Object.assign||function(a){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(a[f]=u[f])}return a},E=function(){function a(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&&a(l.prototype,u),f&&a(l,f),l}}(),C=d("q1tI"),v=o(C),w=d("17x9"),m=o(w),h=d("tkwv"),c=o(h),i=d("u3os"),r=d("kzFp");function o(a){return a&&a.__esModule?a:{default:a}}function n(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function e(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function s(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){s(l,a);function l(u){n(this,l);var f=e(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,i.clear)(f.echartsElement)}catch(p){console.warn(p)}f.echartsLib.dispose(f.echartsElement)}},f.rerender=function(){var p=f.props,g=p.onEvents,A=p.onChartReady,y=f.renderEchartDom();f.bindEvents(y,g||{}),typeof A=="function"&&f.props.onChartReady(y),f.echartsElement&&(0,i.bind)(f.echartsElement,function(){try{y.resize()}catch(x){console.warn(x)}})},f.bindEvents=function(p,g){var A=function(T,S){typeof T=="string"&&typeof S=="function"&&p.on(T,function(b){S(b,p)})};for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&A(y,g[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 g=this.renderEchartDom();if(!(0,c.default)(f.style,this.props.style)||!(0,c.default)(f.className,this.props.className))try{g.resize()}catch(A){console.warn(A)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var f=this,p=this.props,g=p.style,A=p.className,y=O({height:300},g);return v.default.createElement("div",{ref:function(T){f.echartsElement=T},style:y,className:"echarts-for-react "+A})}}]),l}(C.Component);P.default=t,t.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},t.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(j,P,d){var O=d("bYtY"),E=d("IwbS"),C=d("Qxkt"),v=d("Znkb"),w=d("+rIm"),m=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function h(o,n,e){n[1]>n[0]&&(n=n.slice().reverse());var s=o.coordToPoint([n[0],e]),t=o.coordToPoint([n[1],e]);return{x1:s[0],y1:s[1],x2:t[0],y2:t[1]}}function c(o){var n=o.getRadiusAxis();return n.inverse?0:1}function i(o){var n=o[0],e=o[o.length-1];n&&e&&Math.abs(Math.abs(n.coord-e.coord)-360)<1e-4&&o.pop()}var r=v.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(o,n){if(this.group.removeAll(),!o.get("show"))return;var e=o.axis,s=e.polar,t=s.getRadiusAxis().getExtent(),a=e.getTicksCoords(),l=e.getMinorTicksCoords(),u=O.map(e.getViewLabels(),function(f){var f=O.clone(f);return f.coord=e.dataToCoord(f.tickValue),f});i(u),i(a),O.each(m,function(f){o.get(f+".show")&&(!e.scale.isBlank()||f==="axisLine")&&this["_"+f](o,s,a,l,t,u)},this)},_axisLine:function(o,n,e,s,t){var a=o.getModel("axisLine.lineStyle"),l=c(n),u=l?0:1,f;t[u]===0?f=new E.Circle({shape:{cx:n.cx,cy:n.cy,r:t[l]},style:a.getLineStyle(),z2:1,silent:!0}):f=new E.Ring({shape:{cx:n.cx,cy:n.cy,r:t[l],r0:t[u]},style:a.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,this.group.add(f)},_axisTick:function(o,n,e,s,t){var a=o.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),u=t[c(n)],f=O.map(e,function(p){return new E.Line({shape:h(n,[u,u+l],p.coord)})});this.group.add(E.mergePath(f,{style:O.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:o.get("axisLine.lineStyle.color")})}))},_minorTick:function(o,n,e,s,t){if(!s.length)return;for(var a=o.getModel("axisTick"),l=o.getModel("minorTick"),u=(a.get("inside")?-1:1)*l.get("length"),f=t[c(n)],p=[],g=0;g<s.length;g++)for(var A=0;A<s[g].length;A++)p.push(new E.Line({shape:h(n,[f,f+u],s[g][A].coord)}));this.group.add(E.mergePath(p,{style:O.defaults(l.getModel("lineStyle").getLineStyle(),O.defaults(a.getLineStyle(),{stroke:o.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(o,n,e,s,t,a){var l=o.getCategories(!0),u=o.getModel("axisLabel"),f=u.get("margin"),p=o.get("triggerEvent");O.each(a,function(g,A){var y=u,x=g.tickValue,T=t[c(n)],S=n.coordToPoint([T+f,g.coord]),b=n.cx,_=n.cy,I=Math.abs(S[0]-b)/T<.3?"center":S[0]>b?"left":"right",L=Math.abs(S[1]-_)/T<.3?"middle":S[1]>_?"top":"bottom";l&&l[x]&&l[x].textStyle&&(y=new C(l[x].textStyle,u,u.ecModel));var D=new E.Text({silent:w.isLabelSilent(o)});this.group.add(D),E.setTextStyle(D.style,y,{x:S[0],y:S[1],textFill:y.getTextColor()||o.get("axisLine.lineStyle.color"),text:g.formattedLabel,textAlign:I,textVerticalAlign:L}),p&&(D.eventData=w.makeAxisEventDataBase(o),D.eventData.targetType="axisLabel",D.eventData.value=g.rawLabel)},this)},_splitLine:function(o,n,e,s,t){var a=o.getModel("splitLine"),l=a.getModel("lineStyle"),u=l.get("color"),f=0;u=u instanceof Array?u:[u];for(var p=[],g=0;g<e.length;g++){var A=f++%u.length;p[A]=p[A]||[],p[A].push(new E.Line({shape:h(n,t,e[g].coord)}))}for(var g=0;g<p.length;g++)this.group.add(E.mergePath(p[g],{style:O.defaults({stroke:u[g%u.length]},l.getLineStyle()),silent:!0,z:o.get("z")}))},_minorSplitLine:function(o,n,e,s,t){if(!s.length)return;for(var a=o.getModel("minorSplitLine"),l=a.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,t,s[f][p].coord)}));this.group.add(E.mergePath(u,{style:l.getLineStyle(),silent:!0,z:o.get("z")}))},_splitArea:function(o,n,e,s,t){if(!e.length)return;var a=o.getModel("splitArea"),l=a.getModel("areaStyle"),u=l.get("color"),f=0;u=u instanceof Array?u:[u];for(var p=[],g=Math.PI/180,A=-e[0].coord*g,y=Math.min(t[0],t[1]),x=Math.max(t[0],t[1]),T=o.get("clockwise"),S=1;S<e.length;S++){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:-e[S].coord*g,clockwise:T},silent:!0})),A=-e[S].coord*g}for(var S=0;S<p.length;S++)this.group.add(E.mergePath(p[S],{style:O.defaults({fill:u[S%u.length]},l.getAreaStyle()),silent:!0}))}});j.exports=r},tSko:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("SRve")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="PlusOutlined";var c=v.forwardRef(h);P.default=c},tceW:function(j,P,d){var O=d("KCsZ"),E=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getBarItemStyle:function(v){var w=E(this,v);if(this.getBorderLineDash){var m=this.getBorderLineDash();m&&(w.lineDash=m)}return w}};j.exports=C},tkwv:function(j,P,d){"use strict";var O=Array.isArray,E=Object.keys,C=Object.prototype.hasOwnProperty;j.exports=function v(w,m){if(w===m)return!0;if(w&&m&&typeof w=="object"&&typeof m=="object"){var h=O(w),c=O(m),i,r,o;if(h&&c){if(r=w.length,r!=m.length)return!1;for(i=r;i--!==0;)if(!v(w[i],m[i]))return!1;return!0}if(h!=c)return!1;var n=w instanceof Date,e=m instanceof Date;if(n!=e)return!1;if(n&&e)return w.getTime()==m.getTime();var s=w instanceof RegExp,t=m instanceof RegExp;if(s!=t)return!1;if(s&&t)return w.toString()==m.toString();var a=E(w);if(r=a.length,r!==E(m).length)return!1;for(i=r;i--!==0;)if(!C.call(m,a[i]))return!1;for(i=r;i--!==0;)if(o=a[i],!v(w[o],m[o]))return!1;return!0}return w!==w&&m!==m}},txkQ:function(j,P,d){var O=d("aX58");P.zrender=O;var E=d("Fofx");P.matrix=E;var C=d("QBsz");P.vector=C;var v=d("bYtY"),w=d("Qe9p");P.color=w;var m=d("IwbS"),h=d("OELB");P.number=h;var c=d("7aKB");P.format=c;var i=d("iLNv"),r=i.throttle;P.throttle=i.throttle;var o=d("FUi9");P.helper=o;var n=d("vafp");P.parseGeoJSON=n;var e=d("YXkt");P.List=e;var s=d("Qxkt");P.Model=s;var t=d("hM6l");P.Axis=t;var a=d("ItGF");P.env=a;var l=n,u={};v.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(p){u[p]=v[p]});var f={};v.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]}),P.parseGeoJson=l,P.util=u,P.graphic=f},u3DP:function(j,P,d){var O=d("6GrX"),E=d("OELB"),C=E.parsePercent,v=Math.PI/180;function w(i,r,o,n,e,s,t,a,l,u){i.sort(function(I,L){return I.y-L.y});function f(I,L,D,N){for(var M=I;M<L&&!(i[M].y+D>l+t);M++)if(i[M].y+=D,M>I&&M+1<L&&i[M+1].y>i[M].y+i[M].height){p(M,D/2);return}p(L-1,D/2)}function p(I,L){for(var D=I;D>=0&&!(i[D].y-L<l);D--)if(i[D].y-=L,D>0&&i[D].y>i[D-1].y+i[D-1].height)break}function g(I,L,D,N,M,B){for(var R=(B>0,L?Number.MAX_VALUE:0),H=0,F=I.length;H<F;H++){if(I[H].labelAlignTo!=="none")continue;var K=Math.abs(I[H].y-N),U=I[H].len,V=I[H].len2,z=K<M+U?Math.sqrt((M+U+V)*(M+U+V)-K*K):Math.abs(I[H].x-D);L&&z>=R&&(z=R-10),!L&&z<=R&&(z=R+10),I[H].x=D+z*B,R=z}}for(var A=0,y,x=i.length,T=[],S=[],b=0;b<x;b++){if(i[b].position==="outer"&&i[b].labelAlignTo==="labelLine"){var _=i[b].x-u;i[b].linePoints[1][0]+=_,i[b].x=u}y=i[b].y-A,y<0&&f(b,x,-y,e),A=i[b].y+i[b].height}t-A<0&&p(x-1,A-t);for(var b=0;b<x;b++)i[b].y>=o?S.push(i[b]):T.push(i[b]);g(T,!1,r,o,n,e),g(S,!0,r,o,n,e)}function m(i,r,o,n,e,s,t,a){for(var l=[],u=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<i.length;g++){if(h(i[g]))continue;i[g].x<r?(f=Math.min(f,i[g].x),l.push(i[g])):(p=Math.max(p,i[g].x),u.push(i[g]))}w(u,r,o,n,1,e,s,t,a,p),w(l,r,o,n,-1,e,s,t,a,f);for(var g=0;g<i.length;g++){var A=i[g];if(h(A))continue;var y=A.linePoints;if(y){var x=A.labelAlignTo==="edge",T=A.textRect.width,S;x?A.x<r?S=y[2][0]-A.labelDistance-t-A.labelMargin:S=t+e-A.labelMargin-y[2][0]-A.labelDistance:A.x<r?S=A.x-t-A.bleedMargin:S=t+e-A.x-A.bleedMargin,S<A.textRect.width&&(A.text=O.truncateText(A.text,S,A.font),A.labelAlignTo==="edge"&&(T=O.getWidth(A.text,A.font)));var b=y[1][0]-y[2][0];x?A.x<r?y[2][0]=t+A.labelMargin+T+A.labelDistance:y[2][0]=t+e-A.labelMargin-T-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(i){return i.position==="center"}function c(i,r,o,n,e,s){var t=i.getData(),a=[],l,u,f=!1,p=(i.get("minShowLabelAngle")||0)*v;t.each(function(g){var A=t.getItemLayout(g),y=t.getItemModel(g),x=y.getModel("label"),T=x.get("position")||y.get("emphasis.label.position"),S=x.get("distanceToLabelLine"),b=x.get("alignTo"),_=C(x.get("margin"),o),I=x.get("bleedMargin"),L=x.getFont(),D=y.getModel("labelLine"),N=D.get("length");N=C(N,o);var M=D.get("length2");if(M=C(M,o),A.angle<p)return;var B=(A.startAngle+A.endAngle)/2,R=Math.cos(B),H=Math.sin(B),F,K,U,V;l=A.cx,u=A.cy;var z=i.getFormattedLabel(g,"normal")||t.getName(g),Y=O.getBoundingRect(z,L,V,"top"),q=T==="inside"||T==="inner";if(T==="center")F=A.cx,K=A.cy,V="center";else{var ce=(q?(A.r+A.r0)/2*R:A.r*R)+l,ie=(q?(A.r+A.r0)/2*H:A.r*H)+u;if(F=ce+R*3,K=ie+H*3,!q){var ve=ce+R*(N+r-A.r),Ee=ie+H*(N+r-A.r),Le=ve+(R<0?-1:1)*M,He=Ee;b==="edge"?F=R<0?e+_:e+o-_:F=Le+(R<0?-S:S),K=He,U=[[ce,ie],[ve,Ee],[Le,He]]}V=q?"center":b==="edge"?R>0?"right":"left":R>0?"left":"right"}var ge,Fe=x.get("rotate");typeof Fe=="number"?ge=Fe*(Math.PI/180):ge=Fe?R<0?-B+Math.PI:-B:0,f=!!ge,A.label={x:F,y:K,position:T,height:Y.height,len:N,len2:M,linePoints:U,textAlign:V,verticalAlign:"middle",rotation:ge,inside:q,labelDistance:S,labelAlignTo:b,labelMargin:_,bleedMargin:I,textRect:Y,text:z,font:L},q||a.push(A.label)}),!f&&i.get("avoidLabelOverlap")&&m(a,l,u,r,o,n,e,s)}j.exports=c},u3os:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.ver=P.clear=P.bind=void 0;var O=d("P4Qj"),E=function(m,h){var c=(0,O.getSensor)(m);return c.bind(h),function(){c.unbind(h)}};P.bind=E;var C=function(m){var h=(0,O.getSensor)(m);(0,O.removeSensor)(h)};P.clear=C;var v="1.0.1";P.ver=v},u4NN:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("Uc92")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="EyeOutlined";var c=v.forwardRef(h);P.default=c},u9fO:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("b80e"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},uAnK:function(j,P,d){var O=d("bYtY"),E=d("Kagy"),C=d("KxfA"),v=C.retrieveRawValue;function w(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 i=0;h.eachSeries(function(g,A){++i},this);var r=c.get("data.maxCount")||10,o=c.get("series.maxCount")||10,n=Math.min(i,o),e;if(i<1)return;var s=f();s?e=l(u("general.withTitle"),{title:s}):e=u("general.withoutTitle");var t=[],a=i>1?"series.multiple.prefix":"series.single.prefix";e+=l(u(a),{seriesCount:i}),h.eachSeries(function(g,A){if(A<n){var y,x=g.get("name"),T="series."+(i>1?"multiple":"single")+".";y=u(x?T+"withName":T+"withoutName"),y=l(y,{seriesId:g.seriesIndex,seriesName:g.get("name"),seriesType:p(g.subType)});var S=g.getData();window.data=S,S.count()>r?y+=l(u("data.partialData"),{displayCnt:r}):y+=u("data.allData");for(var b=[],_=0;_<S.count();_++)if(_<r){var I=S.getName(_),L=v(S,_);b.push(l(u(I?"data.withName":"data.withoutName"),{name:I,value:L}))}y+=b.join(u("data.separator.middle"))+u("data.separator.end"),t.push(y)}}),e+=t.join(u("series.multiple.separator.middle"))+u("series.multiple.separator.end"),m.setAttribute("aria-label",e);function l(g,A){if(typeof g!="string")return g;var y=g;return O.each(A,function(x,T){y=y.replace(new RegExp("\\{\\s*"+T+"\\s*\\}","g"),x)}),y}function u(g){var A=c.get(g);if(A==null){for(var y=g.split("."),x=E.aria,T=0;T<y.length;++T)x=x[y[T]];return x}else return A}function f(){var g=h.getModel("title").option;return g&&g.length&&(g=g[0]),g&&g.text}function p(g){return E.series.typeNames[g]||"\u81EA\u5B9A\u4E49\u56FE"}}j.exports=w},uGsb:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(O){return function(){var E=O,C=E.x64,v=C.Word,w=C.WordArray,m=E.algo,h=m.SHA512,c=m.SHA384=h.extend({_doReset:function(){this._hash=new w.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.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)}(),O.SHA384})},uGxW:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.NoPadding={pad:function(){},unpad:function(){}},O.pad.NoPadding})},uK0f:function(j,P,d){(function(O,E){j.exports=E()})(this,function(){"use strict";function O(E,C,v){v=v||{},v.childrenKeyName=v.childrenKeyName||"children";var w=E||[],m=[],h=0;do{var c=w.filter(function(i){return C(i,h)})[0];if(!c)break;m.push(c),w=c[v.childrenKeyName]||[],h+=1}while(w.length>0);return m}return O})},uOyE:function(j,P,d){var O=d("ProS");O.registerAction({type:"brush",event:"brush"},function(E,C){C.eachComponent({mainType:"brush",query:E},function(v){v.setAreas(E.areas)})}),O.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),O.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(j,P,d){j.exports=O;function O(){return d("gaXo"),{}}},ugBc:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},ulZh:function(j,P,d){typeof window!="undefined"&&function(E,C){j.exports=C()}(this,function(){return function(O){var E={};function C(v){if(E[v])return E[v].exports;var w=E[v]={i:v,l:!1,exports:{}};return O[v].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=O,C.c=E,C.d=function(v,w,m){C.o(v,w)||Object.defineProperty(v,w,{enumerable:!0,get:m})},C.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},C.t=function(v,w){if(w&1&&(v=C(v)),w&8)return v;if(w&4&&typeof v=="object"&&v&&v.__esModule)return v;var m=Object.create(null);if(C.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:v}),w&2&&typeof v!="string")for(var h in v)C.d(m,h,function(c){return v[c]}.bind(null,h));return m},C.n=function(v){var w=v&&v.__esModule?function(){return v.default}:function(){return v};return C.d(w,"a",w),w},C.o=function(v,w){return Object.prototype.hasOwnProperty.call(v,w)},C.p="/dist/",C(C.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(E,C,v){"use strict";var w=Object.prototype.hasOwnProperty,m="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(m=!1));function c(n,e,s){this.fn=n,this.context=e,this.once=s||!1}function i(n,e,s,t,a){if(typeof s!="function")throw new TypeError("The listener must be a function");var l=new c(s,t||n,a),u=m?m+e:e;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,e){--n._eventsCount===0?n._events=new h:delete n._events[e]}function o(){this._events=new h,this._eventsCount=0}o.prototype.eventNames=function(){var e=[],s,t;if(this._eventsCount===0)return e;for(t in s=this._events)w.call(s,t)&&e.push(m?t.slice(1):t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(s)):e},o.prototype.listeners=function(e){var s=m?m+e:e,t=this._events[s];if(!t)return[];if(t.fn)return[t.fn];for(var a=0,l=t.length,u=new Array(l);a<l;a++)u[a]=t[a].fn;return u},o.prototype.listenerCount=function(e){var s=m?m+e:e,t=this._events[s];return t?t.fn?1:t.length:0},o.prototype.emit=function(e,s,t,a,l,u){var f=m?m+e:e;if(!this._events[f])return!1;var p=this._events[f],g=arguments.length,A,y;if(p.fn){p.once&&this.removeListener(e,p.fn,void 0,!0);switch(g){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,t),!0;case 4:return p.fn.call(p.context,s,t,a),!0;case 5:return p.fn.call(p.context,s,t,a,l),!0;case 6:return p.fn.call(p.context,s,t,a,l,u),!0}for(y=1,A=new Array(g-1);y<g;y++)A[y-1]=arguments[y];p.fn.apply(p.context,A)}else{var x=p.length,T;for(y=0;y<x;y++){p[y].once&&this.removeListener(e,p[y].fn,void 0,!0);switch(g){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,t);break;case 4:p[y].fn.call(p[y].context,s,t,a);break;default:if(!A)for(T=1,A=new Array(g-1);T<g;T++)A[T-1]=arguments[T];p[y].fn.apply(p[y].context,A)}}}return!0},o.prototype.on=function(e,s,t){return i(this,e,s,t,!1)},o.prototype.once=function(e,s,t){return i(this,e,s,t,!0)},o.prototype.removeListener=function(e,s,t,a){var l=m?m+e:e;if(!this._events[l])return this;if(!s)return r(this,l),this;var u=this._events[l];if(u.fn)u.fn===s&&(!a||u.once)&&(!t||u.context===t)&&r(this,l);else{for(var f=0,p=[],g=u.length;f<g;f++)(u[f].fn!==s||a&&!u[f].once||t&&u[f].context!==t)&&p.push(u[f]);p.length?this._events[l]=p.length===1?p[0]:p:r(this,l)}return this},o.prototype.removeAllListeners=function(e){var s;return e?(s=m?m+e:e,this._events[s]&&r(this,s)):(this._events=new h,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=m,o.EventEmitter=o,E.exports=o},"./node_modules/url-toolkit/src/url-toolkit.js":function(E,C,v){(function(w){var m=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,h=/^([^\/?#]*)([^]*)$/,c=/(?:\/|^)\.(?=\/)/g,i=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(n,e,s){if(s=s||{},n=n.trim(),e=e.trim(),!e){if(!s.alwaysNormalize)return n;var t=r.parseURL(n);if(!t)throw new Error("Error trying to parse base URL.");return t.path=r.normalizePath(t.path),r.buildURLFromParts(t)}var a=r.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return s.alwaysNormalize?(a.path=r.normalizePath(a.path),r.buildURLFromParts(a)):e;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:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(f.netLoc=l.netLoc,a.path[0]!=="/"))if(!a.path)f.path=l.path,a.params||(f.params=l.params,a.query||(f.query=l.query));else{var p=l.path,g=p.substring(0,p.lastIndexOf("/")+1)+a.path;f.path=r.normalizePath(g)}return f.path===null&&(f.path=s.alwaysNormalize?r.normalizePath(a.path):a.path),r.buildURLFromParts(f)},parseURL:function(n){var e=m.exec(n);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(n){for(n=n.split("").reverse().join("").replace(c,"");n.length!==(n=n.replace(i,"")).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,C,v){function w(e){var s={};function t(l){if(s[l])return s[l].exports;var u=s[l]={i:l,l:!1,exports:{}};return e[l].call(u.exports,u,u.exports,t),u.l=!0,u.exports}t.m=e,t.c=s,t.i=function(l){return l},t.d=function(l,u,f){t.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:f})},t.r=function(l){Object.defineProperty(l,"__esModule",{value:!0})},t.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return t.d(u,"a",u),u},t.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},t.p="/",t.oe=function(l){throw console.error(l),l};var a=t(t.s=ENTRY_MODULE);return a.default||a}var m="[\\.|\\-|\\+|\\w|/|@]+",h="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+m+").*?\\)";function c(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function i(e){return!isNaN(1*e)}function r(e,s,t){var a={};a[t]=[];var l=s.toString(),u=l.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return a;for(var f=u[1],p=new RegExp("(\\\\n|\\W)"+c(f)+h,"g"),g;g=p.exec(l);){if(g[3]==="dll-reference")continue;a[t].push(g[3])}for(p=new RegExp("\\("+c(f)+'\\("(dll-reference\\s('+m+'))"\\)\\)'+h,"g");g=p.exec(l);)e[g[2]]||(a[t].push(g[1]),e[g[2]]=v(g[1]).m),a[g[2]]=a[g[2]]||[],a[g[2]].push(g[4]);for(var A=Object.keys(a),y=0;y<A.length;y++)for(var x=0;x<a[A[y]].length;x++)i(a[A[y]][x])&&(a[A[y]][x]=1*a[A[y]][x]);return a}function o(e){var s=Object.keys(e);return s.reduce(function(t,a){return t||e[a].length>0},!1)}function n(e,s){for(var t={main:[s]},a={main:[]},l={main:{}};o(t);)for(var u=Object.keys(t),f=0;f<u.length;f++){var p=u[f],g=t[p],A=g.pop();if(l[p]=l[p]||{},l[p][A]||!e[p][A])continue;l[p][A]=!0,a[p]=a[p]||[],a[p].push(A);for(var y=r(e,e[p][A],p),x=Object.keys(y),T=0;T<x.length;T++)t[x[T]]=t[x[T]]||[],t[x[T]]=t[x[T]].concat(y[x[T]])}return a}E.exports=function(e,s){s=s||{};var t={main:v.m},a=s.all?{main:Object.keys(t.main)}:n(t,e),l="";Object.keys(a).filter(function(A){return A!=="main"}).forEach(function(A){for(var y=0;a[A][y];)y++;a[A].push(y),t[A][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",l=l+"var "+A+" = ("+w.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+a[A].map(function(x){return""+JSON.stringify(x)+": "+t[A][x].toString()}).join(",")+`});
`}),l=l+"new (("+w.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+a.main.map(function(A){return""+JSON.stringify(A)+": "+t.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),g=new window.Worker(p);return g.objectURL=p,g}},"./src/config.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"hlsDefaultConfig",function(){return T}),v.d(C,"mergeConfig",function(){return b}),v.d(C,"enableStreamingMode",function(){return _});var w=v("./src/controller/abr-controller.ts"),m=v("./src/controller/audio-stream-controller.ts"),h=v("./src/controller/audio-track-controller.ts"),c=v("./src/controller/subtitle-stream-controller.ts"),i=v("./src/controller/subtitle-track-controller.ts"),r=v("./src/controller/buffer-controller.ts"),o=v("./src/controller/timeline-controller.ts"),n=v("./src/controller/cap-level-controller.ts"),e=v("./src/controller/fps-controller.ts"),s=v("./src/controller/eme-controller.ts"),t=v("./src/controller/cmcd-controller.ts"),a=v("./src/utils/xhr-loader.ts"),l=v("./src/utils/fetch-loader.ts"),u=v("./src/utils/cues.ts"),f=v("./src/utils/mediakeys-helper.ts"),p=v("./src/utils/logger.ts");function g(){return g=Object.assign||function(I){for(var L=1;L<arguments.length;L++){var D=arguments[L];for(var N in D)Object.prototype.hasOwnProperty.call(D,N)&&(I[N]=D[N])}return I},g.apply(this,arguments)}function A(I,L){var D=Object.keys(I);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(I);L&&(N=N.filter(function(M){return Object.getOwnPropertyDescriptor(I,M).enumerable})),D.push.apply(D,N)}return D}function y(I){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(I,N,D[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(D)):A(Object(D)).forEach(function(N){Object.defineProperty(I,N,Object.getOwnPropertyDescriptor(D,N))})}return I}function x(I,L,D){return L in I?Object.defineProperty(I,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):I[L]=D,I}var T=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:a.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:w.default,bufferController:r.default,capLevelController:n.default,fpsController:e.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},S()),{},{subtitleStreamController:c.SubtitleStreamController,subtitleTrackController:i.default,timelineController:o.TimelineController,audioStreamController:m.default,audioTrackController:h.default,emeController:s.default,cmcdController:t.default});function S(){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(I,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 g({},I,L)}function _(I){var L=I.loader;if(L!==l.default&&L!==a.default)p.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),I.progressive=!1;else{var D=Object(l.fetchSupported)();D&&(I.loader=l.default,I.progressive=!0,I.enableSoftwareAES=!0,p.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/polyfills/number.ts"),m=v("./src/utils/ewma-bandwidth-estimator.ts"),h=v("./src/events.ts"),c=v("./src/utils/buffer-helper.ts"),i=v("./src/errors.ts"),r=v("./src/types/loader.ts"),o=v("./src/utils/logger.ts");function n(t,a){for(var l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function e(t,a,l){return a&&n(t.prototype,a),l&&n(t,l),t}var s=function(){function t(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 a=t.prototype;return a.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)},a.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)},a.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},a.onFragLoading=function(u,f){var p=f.frag;if(p.type===r.PlaylistLevelType.MAIN&&!this.timer){var g;this.fragCurrent=p,this.partCurrent=(g=f.part)!=null?g:null,this.timer=self.setInterval(this.onCheck,100)}},a.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)},a._abandonRulesCheck=function(){var u=this.fragCurrent,f=this.partCurrent,p=this.hls,g=p.autoLevelEnabled,A=p.config,y=p.media;if(!u||!y)return;var x=f?f.stats:u.stats,T=f?f.duration:u.duration;if(x.aborted){o.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!g||y.paused||!y.playbackRate||!y.readyState)return;var S=performance.now()-x.loading.start,b=Math.abs(y.playbackRate);if(S<=500*T/b)return;var _=p.levels,I=p.minAutoLevel,L=_[u.level],D=x.total||Math.max(x.loaded,Math.round(T*L.maxBitrate/8)),N=Math.max(1,x.bwEstimate?x.bwEstimate/8:x.loaded*1e3/S),M=(D-x.loaded)/N,B=y.currentTime,R=(c.BufferHelper.bufferInfo(y,B,A.maxBufferHole).end-B)/b;if(R>=2*T/b||M<=R)return;var H=Number.POSITIVE_INFINITY,F;for(F=u.level-1;F>I;F--){var K=_[F].maxBitrate;if(H=T*K/(8*.8*N),H<R)break}if(H>=M)return;var U=this.bwEstimator.getEstimate();o.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 "+F+`
Current BW estimate: `+(Object(w.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: `+H.toFixed(3)+` s
Time to underbuffer: `+R.toFixed(3)+" s"),p.nextLoadLevel=F,this.bwEstimator.sample(S,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})},a.onFragLoaded=function(u,f){var p=f.frag,g=f.part;if(p.type===r.PlaylistLevelType.MAIN&&Object(w.isFiniteNumber)(p.sn)){var A=g?g.stats:p.stats,y=g?g.duration:p.duration;if(this.clearTimer(),this.lastLoadedFragLevel=p.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var x=this.hls.levels[p.level],T=(x.loaded?x.loaded.bytes:0)+A.loaded,S=(x.loaded?x.loaded.duration:0)+y;x.loaded={bytes:T,duration:S},x.realBitrate=Math.round(8*T/S)}if(p.bitrateTest){var b={stats:A,frag:p,part:g,id:p.type};this.onFragBuffered(h.Events.FRAG_BUFFERED,b),p.bitrateTest=!1}}},a.onFragBuffered=function(u,f){var p=f.frag,g=f.part,A=g?g.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},a.onError=function(u,f){switch(f.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},a.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},a.getNextABRAutoLevel=function(){var u=this.fragCurrent,f=this.partCurrent,p=this.hls,g=p.maxAutoLevel,A=p.config,y=p.minAutoLevel,x=p.media,T=f?f.duration:u?u.duration:0,S=x?x.currentTime:0,b=x&&x.playbackRate!==0?Math.abs(x.playbackRate):1,_=this.bwEstimator?this.bwEstimator.getEstimate():A.abrEwmaDefaultEstimate,I=(c.BufferHelper.bufferInfo(x,S,A.maxBufferHole).end-S)/b,L=this.findBestLevel(_,y,g,I,A.abrBandWidthFactor,A.abrBandWidthUpFactor);if(L>=0)return L;o.logger.trace((I?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=T?Math.min(T,A.maxStarvationDelay):A.maxStarvationDelay,N=A.abrBandWidthFactor,M=A.abrBandWidthUpFactor;if(!I){var B=this.bitrateTestDelay;if(B){var R=T?Math.min(T,A.maxLoadingDelay):A.maxLoadingDelay;D=R-B,o.logger.trace("bitrate test took "+Math.round(1e3*B)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),N=M=1}}return L=this.findBestLevel(_,y,g,I+D,N,M),Math.max(L,0)},a.findBestLevel=function(u,f,p,g,A,y){for(var x,T=this.fragCurrent,S=this.partCurrent,b=this.lastLoadedFragLevel,_=this.hls.levels,I=_[b],L=!!(I!=null&&(x=I.details)!==null&&x!==void 0&&x.live),D=I==null?void 0:I.codecSet,N=S?S.duration:T?T.duration:0,M=p;M>=f;M--){var B=_[M];if(!B||D&&B.codecSet!==D)continue;var R=B.details,H=(S?R==null?void 0:R.partTarget:R==null?void 0:R.averagetargetduration)||N,F=void 0;M<=b?F=A*u:F=y*u;var K=_[M].maxBitrate,U=K*H/F;if(o.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+M+"/"+Math.round(F)+"/"+K+"/"+H+"/"+g+"/"+U),F>K&&(!U||L&&!this.bitrateTestDelay||U<g))return M}return-1},e(t,[{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}}]),t}();C.default=s},"./src/controller/audio-stream-controller.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/polyfills/number.ts"),m=v("./src/controller/base-stream-controller.ts"),h=v("./src/events.ts"),c=v("./src/utils/buffer-helper.ts"),i=v("./src/controller/fragment-tracker.ts"),r=v("./src/types/level.ts"),o=v("./src/types/loader.ts"),n=v("./src/loader/fragment.ts"),e=v("./src/demux/chunk-cache.ts"),s=v("./src/demux/transmuxer-interface.ts"),t=v("./src/types/transmuxer.ts"),a=v("./src/controller/fragment-finders.ts"),l=v("./src/utils/discontinuities.ts"),u=v("./src/errors.ts"),f=v("./src/utils/logger.ts");function p(){return p=Object.assign||function(T){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(T[_]=b[_])}return T},p.apply(this,arguments)}function g(T,S){T.prototype=Object.create(S.prototype),T.prototype.constructor=T,A(T,S)}function A(T,S){return A=Object.setPrototypeOf||function(_,I){return _.__proto__=I,_},A(T,S)}var y=100,x=function(T){g(S,T);function S(_,I){var L;return L=T.call(this,_,I,"[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=S.prototype;return b.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},b._registerListeners=function(){var I=this.hls;I.on(h.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.on(h.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.on(h.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.on(h.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.on(h.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),I.on(h.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.on(h.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),I.on(h.Events.ERROR,this.onError,this),I.on(h.Events.BUFFER_RESET,this.onBufferReset,this),I.on(h.Events.BUFFER_CREATED,this.onBufferCreated,this),I.on(h.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.on(h.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),I.on(h.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var I=this.hls;I.off(h.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.off(h.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.off(h.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.off(h.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.off(h.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),I.off(h.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.off(h.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),I.off(h.Events.ERROR,this.onError,this),I.off(h.Events.BUFFER_RESET,this.onBufferReset,this),I.off(h.Events.BUFFER_CREATED,this.onBufferCreated,this),I.off(h.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.off(h.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),I.off(h.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onInitPtsFound=function(I,L){var D=L.frag,N=L.id,M=L.initPTS;if(N==="main"){var B=D.cc;this.initPTS[D.cc]=M,this.log("InitPTS for cc: "+B+" found from main: "+M),this.videoTrackCC=B,this.state===m.State.WAITING_INIT_PTS&&this.tick()}},b.startLoad=function(I){if(!this.levels){this.startPosition=I,this.state=m.State.STOPPED;return}var L=this.lastCurrentTime;this.stopLoad(),this.setInterval(y),this.fragLoadError=0,L>0&&I===-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=I,this.tick()},b.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_TRACK:{var I,L=this.levels,D=this.trackId,N=L==null||((I=L[D])===null||I===void 0)?void 0:I.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,B=performance.now(),R=this.retryDate;(!R||B>=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 H=this.waitingData;if(H){var F=H.frag,K=H.part,U=H.cache,V=H.complete;if(this.initPTS[F.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.FRAG_LOADING;var z=U.flush(),Y={frag:F,part:K,payload:z,networkDetails:null};this._handleFragmentLoadProgress(Y),V&&T.prototype._handleFragmentLoadComplete.call(this,Y)}else if(this.videoTrackCC!==this.waitingVideoCC)f.logger.log("Waiting fragment cc ("+F.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var q=this.getLoadPosition(),ce=c.BufferHelper.bufferInfo(this.mediaBuffer,q,this.config.maxBufferHole),ie=Object(a.fragmentWithinToleranceTest)(ce.end,this.config.maxFragLookUpTolerance,F);ie<0&&(f.logger.log("Waiting fragment cc ("+F.cc+") @ "+F.start+" cancelled because another fragment at "+ce.end+" is needed"),this.clearWaitingFragment())}}else this.state=m.State.IDLE}}this.onTickEnd()},b.clearWaitingFragment=function(){var I=this.waitingData;I&&(this.fragmentTracker.removeFragment(I.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.IDLE)},b.onTickEnd=function(){var I=this.media;if(!I||!I.readyState)return;var L=this.mediaBuffer?this.mediaBuffer:I,D=L.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=I.currentTime},b.doTickIdle=function(){var I,L,D=this.hls,N=this.levels,M=this.media,B=this.trackId,R=D.config;if(!N||!N[B])return;if(!M&&(this.startFragRequested||!R.startFragPrefetch))return;var H=N[B],F=H.details;if(!F||F.live&&this.levelLastLoaded!==B||this.waitForCdnTuneIn(F)){this.state=m.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,o.PlaylistLevelType.AUDIO));var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,o.PlaylistLevelType.AUDIO);if(K===null)return;var U=K.len,V=this.getMaxBufferLength(),z=this.audioSwitch;if(U>=V&&!z)return;if(!z&&this._streamEnded(K,F)){D.trigger(h.Events.BUFFER_EOS,{type:"audio"}),this.state=m.State.ENDED;return}var Y=F.fragments,q=Y[0].start,ce=K.end;if(z){var ie=this.getLoadPosition();ce=ie,F.PTSKnown&&ie<q&&((K.end>q||K.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),M.currentTime=q+.05))}var ve=this.getNextFragment(ce,F);if(!ve){this.bufferFlushed=!0;return}((I=ve.decryptdata)===null||I===void 0?void 0:I.keyFormat)==="identity"&&!((L=ve.decryptdata)!==null&&L!==void 0&&L.key)?this.loadKey(ve,F):this.loadFragment(ve,F,ce)},b.getMaxBufferLength=function(){var I=T.prototype.getMaxBufferLength.call(this),L=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,o.PlaylistLevelType.MAIN);return L===null?I:Math.max(I,L.len)},b.onMediaDetaching=function(){this.videoBuffer=null,T.prototype.onMediaDetaching.call(this)},b.onAudioTracksUpdated=function(I,L){var D=L.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(N){return new r.Level(N)})},b.onAudioTrackSwitching=function(I,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(I,L){this.mainDetails=L.details},b.onAudioTrackLoaded=function(I,L){var D,N=this.levels,M=L.details,B=L.id;if(!N){this.warn("Audio tracks were reset while loading level "+B);return}this.log("Track "+B+" loaded ["+M.startSN+","+M.endSN+"],duration:"+M.totalduration);var R=N[B],H=0;if(M.live||(D=R.details)!==null&&D!==void 0&&D.live){var F=this.mainDetails;if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed||!F)return;!R.details&&M.hasProgramDateTime&&F.hasProgramDateTime?(Object(l.alignMediaPlaylistByPDT)(M,F),H=M.fragments[0].start):H=this.alignPlaylists(M,R.details)}R.details=M,this.levelLastLoaded=B,!this.startFragRequested&&(this.mainDetails||!M.live)&&this.setStartPosition(R.details,H),this.state===m.State.WAITING_TRACK&&!this.waitForCdnTuneIn(M)&&(this.state=m.State.IDLE),this.tick()},b._handleFragmentLoadProgress=function(I){var L,D=I.frag,N=I.part,M=I.payload,B=this.config,R=this.trackId,H=this.levels;if(!H){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 F=H[R];console.assert(F,"Audio track is defined on fragment load progress");var K=F.details;console.assert(K,"Audio track details are defined on fragment load progress");var U=B.defaultAudioCodec||F.audioCodec||"mp4a.40.2",V=this.transmuxer;V||(V=this.transmuxer=new s.default(this.hls,o.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var z=this.initPTS[D.cc],Y=(L=D.initSegment)===null||L===void 0?void 0:L.data;if(z!==void 0){var q=!1,ce=N?N.index:-1,ie=ce!==-1,ve=new t.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,M.byteLength,ce,ie);V.push(M,Y,U,"",D,N,K.totalduration,q,ve,z)}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 Ee=this.waitingData=this.waitingData||{frag:D,part:N,cache:new e.default,complete:!1},Le=Ee.cache;Le.push(new Uint8Array(M)),this.waitingVideoCC=this.videoTrackCC,this.state=m.State.WAITING_INIT_PTS}},b._handleFragmentLoadComplete=function(I){if(this.waitingData){this.waitingData.complete=!0;return}T.prototype._handleFragmentLoadComplete.call(this,I)},b.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},b.onBufferCreated=function(I,L){var D=L.tracks.audio;D&&(this.mediaBuffer=D.buffer),L.tracks.video&&(this.videoBuffer=L.tracks.video.buffer)},b.onFragBuffered=function(I,L){var D=L.frag,N=L.part;if(D.type!==o.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(I,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(o.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,o.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,T.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},b.onBufferFlushed=function(I,L){var D=L.type;D===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},b._handleTransmuxComplete=function(I){var L,D="audio",N=this.hls,M=I.remuxResult,B=I.chunkMeta,R=this.getCurrentContext(B);if(!R){this.warn("The loading context changed while buffering fragment "+B.sn+" of level "+B.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(B.level);return}var H=R.frag,F=R.part,K=M.audio,U=M.text,V=M.id3,z=M.initSegment;if(this.fragContextChanged(H))return;if(this.state=m.State.PARSING,this.audioSwitch&&K&&this.completeAudioSwitch(),z!=null&&z.tracks&&(this._bufferInitSegment(z.tracks,H,B),N.trigger(h.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:D,tracks:z.tracks})),K){var Y=K.startPTS,q=K.endPTS,ce=K.startDTS,ie=K.endDTS;F&&(F.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Y,endPTS:q,startDTS:ce,endDTS:ie}),H.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Y,q,ce,ie),this.bufferFragmentData(K,H,F,B)}if(V!=null&&(L=V.samples)!==null&&L!==void 0&&L.length){var ve=p({frag:H,id:D},V);N.trigger(h.Events.FRAG_PARSING_METADATA,ve)}if(U){var Ee=p({frag:H,id:D},U);N.trigger(h.Events.FRAG_PARSING_USERDATA,Ee)}},b._bufferInitSegment=function(I,L,D){if(this.state!==m.State.PARSING)return;I.video&&delete I.video;var N=I.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,I);var M=N.initSegment;if(M!=null&&M.byteLength){var B={type:"audio",frag:L,part:null,chunkMeta:D,parent:L.type,data:M};this.hls.trigger(h.Events.BUFFER_APPENDING,B)}this.tick()},b.loadFragment=function(I,L,D){var N=this.fragmentTracker.getState(I);this.fragCurrent=I,(this.audioSwitch||N===i.FragmentState.NOT_LOADED||N===i.FragmentState.PARTIAL)&&(I.sn==="initSegment"?this._loadInitSegment(I):L.live&&!Object(w.isFiniteNumber)(this.initPTS[I.cc])?(this.log("Waiting for video PTS in continuity counter "+I.cc+" of live stream before loading audio fragment "+I.sn+" of level "+this.trackId),this.state=m.State.WAITING_INIT_PTS):(this.startFragRequested=!0,T.prototype.loadFragment.call(this,I,L,D)))},b.completeAudioSwitch=function(){var I=this.hls,L=this.media,D=this.trackId;L&&(this.log("Switching audio track : flushing all audio"),T.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,I.trigger(h.Events.AUDIO_TRACK_SWITCHED,{id:D})},S}(m.default);C.default=x},"./src/controller/audio-track-controller.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/events.ts"),m=v("./src/errors.ts"),h=v("./src/controller/base-playlist-controller.ts"),c=v("./src/types/loader.ts");function i(s,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function r(s,t,a){return t&&i(s.prototype,t),a&&i(s,a),s}function o(s,t){s.prototype=Object.create(t.prototype),s.prototype.constructor=s,n(s,t)}function n(s,t){return n=Object.setPrototypeOf||function(l,u){return l.__proto__=u,l},n(s,t)}var e=function(s){o(t,s);function t(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 a=t.prototype;return a.registerListeners=function(){var u=this.hls;u.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(w.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.on(w.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.on(w.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var u=this.hls;u.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(w.Events.LEVEL_LOADING,this.onLevelLoading,this),u.off(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.off(w.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.off(w.Events.ERROR,this.onError,this)},a.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,s.prototype.destroy.call(this)},a.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},a.onManifestParsed=function(u,f){this.tracks=f.audioTracks||[]},a.onAudioTrackLoaded=function(u,f){var p=f.id,g=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 ["+g.startSN+"-"+g.endSN+"]"),p===this.trackId&&(this.retryCount=0,this.playlistLoaded(p,f,y))},a.onLevelLoading=function(u,f){this.switchLevel(f.level)},a.onLevelSwitching=function(u,f){this.switchLevel(f.level)},a.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 g=this.tracks.filter(function(y){return!p||y.groupId===p});this.selectDefaultTrack&&!g.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=g;var A={audioTracks:g};this.log("Updating audio tracks, "+g.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(w.Events.AUDIO_TRACKS_UPDATED,A),this.selectInitialTrack()}},a.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)},a.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 g=f[u],A=g.id,y=g.groupId,x=y===void 0?"":y,T=g.name,S=g.type,b=g.url;if(this.trackId=u,this.trackName=T,this.selectDefaultTrack=!1,this.hls.trigger(w.Events.AUDIO_TRACK_SWITCHING,{id:A,groupId:x,name:T,type:S,url:b}),g.details&&!g.details.live)return;var _=this.switchParams(g.url,p==null?void 0:p.details);this.loadPlaylist(_)},a.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(w.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},a.findTrackId=function(u){for(var f=this.tracksInGroup,p=0;p<f.length;p++){var g=f[p];if((!this.selectDefaultTrack||g.default)&&(!u||u===g.name))return g.id}return-1},a.loadPlaylist=function(u){var f=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(f)){var p=f.id,g=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(w.Events.AUDIO_TRACK_LOADING,{url:A,id:p,groupId:g,deliveryDirectives:u||null})}},r(t,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(u){this.selectDefaultTrack=!1,this.setAudioTrack(u)}}]),t}(h.default);C.default=e},"./src/controller/base-playlist-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return r});var w=v("./src/polyfills/number.ts"),m=v("./src/types/level.ts"),h=v("./src/controller/level-helper.ts"),c=v("./src/utils/logger.ts"),i=v("./src/errors.ts"),r=function(){function o(e,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=e}var n=o.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(s,t){t.fatal&&t.type===i.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,t){var a=t==null?void 0:t.renditionReports;if(a)for(var l=0;l<a.length;l++){var u=a[l],f=""+u.URI;if(f===s.substr(-f.length)){var p=parseInt(u["LAST-MSN"]),g=parseInt(u["LAST-PART"]);if(t&&this.hls.config.lowLatencyMode){var A=Math.min(t.age-t.partTarget,t.targetduration);g!==void 0&&A>t.partTarget&&(g+=1)}if(Object(w.isFiniteNumber)(p))return new m.HlsUrlParameters(p,Object(w.isFiniteNumber)(g)?g: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,t,a){var l=this,u=t.details,f=t.stats,p=f.loading.end?Math.max(0,self.performance.now()-f.loading.end):0;if(u.advancedDateTime=Date.now()-p,u.live||a!=null&&a.live){if(u.reloaded(a),a&&this.log("live playlist "+s+" "+(u.advanced?"REFRESHED "+u.lastPartSn+"-"+u.lastPartIndex:"MISSED")),a&&u.fragments.length>0&&Object(h.mergeDetails)(a,u),!this.canLoad||!u.live)return;var g,A=void 0,y=void 0;if(u.canBlockReload&&u.endSN&&u.advanced){var x=this.hls.config.lowLatencyMode,T=u.lastPartSn,S=u.endSN,b=u.lastPartIndex,_=b!==-1,I=T===S,L=x?0:b;_?(A=I?S+1:T,y=I?L:b+1):A=S+1;var D=u.age,N=D+u.ageHeader,M=Math.min(N-u.partTarget,u.targetduration*1.5);if(M>0){if(a&&M>a.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+a.tuneInGoal+" to: "+M+" with playlist age: "+u.age),M=0;else{var B=Math.floor(M/u.targetduration);if(A+=B,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 "+B+" to part "+y)}u.tuneInGoal=M}if(g=this.getDeliveryDirectives(u,t.deliveryDirectives,A,y),x||!I){this.loadPlaylist(g);return}}else g=this.getDeliveryDirectives(u,t.deliveryDirectives,A,y);var H=Object(h.computeReloadInterval)(u,f);A!==void 0&&u.canBlockReload&&(H-=u.partTarget||1),this.log("reload live playlist "+s+" in "+Math.round(H)+" ms"),this.timer=self.setTimeout(function(){return l.loadPlaylist(g)},H)}else this.clearTimer()},n.getDeliveryDirectives=function(s,t,a,l){var u=Object(m.getSkipValue)(s,a);return t!=null&&t.skip&&s.deltaUpdateFailed&&(a=t.msn,l=t.part,u=m.HlsSkip.No),new m.HlsUrlParameters(a,l,u)},n.retryLoadingOrFail=function(s){var t=this,a=this.hls.config,l=this.retryCount<a.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)*a.levelLoadingRetryDelay,a.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return t.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},o}()},"./src/controller/base-stream-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"State",function(){return S}),v.d(C,"default",function(){return b});var w=v("./src/polyfills/number.ts"),m=v("./src/task-loop.ts"),h=v("./src/controller/fragment-tracker.ts"),c=v("./src/utils/buffer-helper.ts"),i=v("./src/utils/logger.ts"),r=v("./src/events.ts"),o=v("./src/errors.ts"),n=v("./src/types/transmuxer.ts"),e=v("./src/utils/mp4-tools.ts"),s=v("./src/utils/discontinuities.ts"),t=v("./src/controller/fragment-finders.ts"),a=v("./src/controller/level-helper.ts"),l=v("./src/loader/fragment-loader.ts"),u=v("./src/crypt/decrypter.ts"),f=v("./src/utils/time-ranges.ts"),p=v("./src/types/loader.ts");function g(_,I){for(var L=0;L<I.length;L++){var D=I[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(_,D.key,D)}}function A(_,I,L){return I&&g(_.prototype,I),L&&g(_,L),_}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function x(_,I){_.prototype=Object.create(I.prototype),_.prototype.constructor=_,T(_,I)}function T(_,I){return T=Object.setPrototypeOf||function(D,N){return D.__proto__=N,D},T(_,I)}var S={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(I,_);function I(D,N,M){var B;return B=_.call(this)||this,B.hls=void 0,B.fragPrevious=null,B.fragCurrent=null,B.fragmentTracker=void 0,B.transmuxer=null,B._state=S.STOPPED,B.media=void 0,B.mediaBuffer=void 0,B.config=void 0,B.bitrateTest=!1,B.lastCurrentTime=0,B.nextLoadPosition=0,B.startPosition=0,B.loadedmetadata=!1,B.fragLoadError=0,B.retryDate=0,B.levels=null,B.fragmentLoader=void 0,B.levelLastLoaded=null,B.startFragRequested=!1,B.decrypter=void 0,B.initPTS=[],B.onvseeking=null,B.onvended=null,B.logPrefix="",B.log=void 0,B.warn=void 0,B.logPrefix=M,B.log=i.logger.log.bind(i.logger,M+":"),B.warn=i.logger.warn.bind(i.logger,M+":"),B.hls=D,B.fragmentLoader=new l.default(D.config),B.fragmentTracker=N,B.config=D.config,B.decrypter=new u.default(D,D.config),D.on(r.Events.KEY_LOADED,B.onKeyLoaded,y(B)),B}var L=I.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=S.STOPPED},L._streamEnded=function(N,M){var B=this.fragCurrent,R=this.fragmentTracker;if(!M.live&&B&&B.sn===M.endSN&&!N.nextStart){var H=R.getState(B);return H===h.FragmentState.PARTIAL||H===h.FragmentState.OK}return!1},L.onMediaAttached=function(N,M){var B=this.media=this.mediaBuffer=M.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),B.addEventListener("seeking",this.onvseeking),B.addEventListener("ended",this.onvended);var R=this.config;this.levels&&R.autoStartLoad&&this.state===S.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,B=this.media,R=this.mediaBuffer,H=this.state,F=B?B.currentTime:0,K=c.BufferHelper.bufferInfo(R||B,F,N.maxBufferHole);if(this.log("media seeking to "+(Object(w.isFiniteNumber)(F)?F.toFixed(3):F)+", state: "+H),H===S.ENDED)this.resetLoadingState();else if(M&&!K.len){var U=N.maxFragLookUpTolerance,V=M.start-U,z=M.start+M.duration+U,Y=F>z;(F<V||Y)&&(Y&&M.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),M.loader.abort()),this.resetLoadingState())}B&&(this.lastCurrentTime=F),!this.loadedmetadata&&!K.len&&(this.nextLoadPosition=this.startPosition=F),this.tickImmediate()},L.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},L.onKeyLoaded=function(N,M){if(this.state!==S.KEY_LOADING||M.frag!==this.fragCurrent||!this.levels)return;this.state=S.IDLE;var B=this.levels[M.frag.level].details;B&&this.loadFragment(M.frag,B,M.frag.start)},L.onHandlerDestroying=function(){this.stopLoad(),_.prototype.onHandlerDestroying.call(this)},L.onHandlerDestroyed=function(){this.state=S.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=S.KEY_LOADING,this.fragCurrent=N,this.hls.trigger(r.Events.KEY_LOADING,{frag:N})},L.loadFragment=function(N,M,B){this._loadFragForPlayback(N,M,B)},L._loadFragForPlayback=function(N,M,B){var R=this,H=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,B,H).then(function(F){if(!F)return;R.fragLoadError=0;var K=R.state;if(R.fragContextChanged(N)){(K===S.FRAG_LOADING||K===S.BACKTRACKING||!R.fragCurrent&&K===S.PARSING)&&(R.fragmentTracker.removeFragment(N),R.state=S.IDLE);return}if("payload"in F&&(R.log("Loaded fragment "+N.sn+" of level "+N.level),R.hls.trigger(r.Events.FRAG_LOADED,F),R.state===S.BACKTRACKING)){R.fragmentTracker.backtrack(N,F),R.resetFragmentLoading(N);return}R._handleFragmentLoadComplete(F)}).catch(function(F){R.warn(F),R.resetFragmentLoading(N)})},L.flushMainBuffer=function(N,M,B){if(B===void 0&&(B=null),!(N-M))return;var R={startOffset:N,endOffset:M,type:B};this.fragLoadError=0,this.hls.trigger(r.Events.BUFFER_FLUSHING,R)},L._loadInitSegment=function(N){var M=this;this._doFragLoad(N).then(function(B){if(!B||M.fragContextChanged(N)||!M.levels)throw new Error("init load aborted");return B}).then(function(B){var R=M.hls,H=B.payload,F=N.decryptdata;if(H&&H.byteLength>0&&F&&F.key&&F.iv&&F.method==="AES-128"){var K=self.performance.now();return M.decrypter.webCryptoDecrypt(new Uint8Array(H),F.key.buffer,F.iv.buffer).then(function(U){var V=self.performance.now();return R.trigger(r.Events.FRAG_DECRYPTED,{frag:N,payload:U,stats:{tstart:K,tdecrypt:V}}),B.payload=U,B})}return B}).then(function(B){var R=M.fragCurrent,H=M.hls,F=M.levels;if(!F)throw new Error("init load aborted, missing levels");var K=F[N.level].details;console.assert(K,"Level details are defined when init segment is loaded");var U=N.stats;M.state=S.IDLE,M.fragLoadError=0,N.data=new Uint8Array(B.payload),U.parsing.start=U.buffering.start=self.performance.now(),U.parsing.end=U.buffering.end=self.performance.now(),B.frag===R&&H.trigger(r.Events.FRAG_BUFFERED,{stats:U,frag:R,part:null,id:N.type}),M.tick()}).catch(function(B){M.warn(B),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 B=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(B))),this.state=S.IDLE,this.tick()},L._handleFragmentLoadComplete=function(N){var M=this.transmuxer;if(!M)return;var B=N.frag,R=N.part,H=N.partsLoaded,F=!H||H.length===0||H.some(function(U){return!U}),K=new n.ChunkMetadata(B.level,B.sn,B.stats.chunkCount+1,0,R?R.index:-1,!F);M.flush(K)},L._handleFragmentLoadProgress=function(N){},L._doFragLoad=function(N,M,B,R){var H=this;if(B===void 0&&(B=null),!this.levels)throw new Error("frag load aborted, missing levels");if(B=Math.max(N.start,B||0),this.config.lowLatencyMode&&M){var F=M.partList;if(F&&R){B>N.end&&M.fragmentHint&&(N=M.fragmentHint);var K=this.getNextPart(F,N,B);if(K>-1){var U=F[K];return this.log("Loading part sn: "+N.sn+" p: "+U.index+" cc: "+N.cc+" of playlist ["+M.startSN+"-"+M.endSN+"] parts [0-"+K+"-"+(F.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+N.level+", target: "+parseFloat(B.toFixed(3))),this.nextLoadPosition=U.start+U.duration,this.state=S.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:N,part:F[K],targetBufferTime:B}),this.doFragPartsLoad(N,F,K,R).catch(function(V){return H.handleFragLoadError(V)})}else if(!N.url||this.loadedEndOfParts(F,B))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(B.toFixed(3))),Object(w.isFiniteNumber)(N.sn)&&!this.bitrateTest&&(this.nextLoadPosition=N.start+N.duration),this.state=S.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:N,targetBufferTime:B}),this.fragmentLoader.load(N,R).catch(function(V){return H.handleFragLoadError(V)})},L.doFragPartsLoad=function(N,M,B,R){var H=this;return new Promise(function(F,K){var U=[],V=function z(Y){var q=M[Y];H.fragmentLoader.loadPart(N,q,R).then(function(ce){U[q.index]=ce;var ie=ce.part;H.hls.trigger(r.Events.FRAG_LOADED,ce);var ve=M[Y+1];if(ve&&ve.fragment===N)z(Y+1);else return F({frag:N,part:ie,partsLoaded:U})}).catch(K)};V(B)})},L.handleFragLoadError=function(N){var M=N.data;return M&&M.details===o.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!==S.PARSING){this.fragCurrent||(this.state=S.IDLE);return}var B=M.frag,R=M.part,H=M.level,F=self.performance.now();B.stats.parsing.end=F,R&&(R.stats.parsing.end=F),this.updateLevelTiming(B,R,H,N.partial)},L.getCurrentContext=function(N){var M=this.levels,B=N.level,R=N.sn,H=N.part;if(!M||!M[B])return this.warn("Levels object was unset while buffering fragment "+R+" of level "+B+". The current chunk will not be buffered."),null;var F=M[B],K=H>-1?Object(a.getPartWith)(F,R,H):null,U=K?K.fragment:Object(a.getFragmentWithSN)(F,R,this.fragCurrent);return U?{frag:U,part:K,level:F}:null},L.bufferFragmentData=function(N,M,B,R){if(!N||this.state!==S.PARSING)return;var H=N.data1,F=N.data2,K=H;if(H&&F&&(K=Object(e.appendUint8Array)(H,F)),!K||!K.length)return;var U={type:N.type,frag:M,part:B,chunkMeta:R,parent:M.type,data:K};this.hls.trigger(r.Events.BUFFER_APPENDING,U),N.dropped&&N.independent&&!B&&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 B=M.currentTime,R=c.BufferHelper.bufferInfo(M,B,0),H=N.duration,F=Math.min(this.config.maxFragLookUpTolerance*2,H*.25),K=Math.max(Math.min(N.start-F,R.end-F),B+F);N.start-K>F&&this.flushMainBuffer(K,N.start)},L.getFwdBufferInfo=function(N,M){var B=this.config,R=this.getLoadPosition();if(!Object(w.isFiniteNumber)(R))return null;var H=c.BufferHelper.bufferInfo(N,R,B.maxBufferHole);if(H.len===0&&H.nextStart!==void 0){var F=this.fragmentTracker.getBufferedFrag(R,M);if(F&&H.nextStart<F.end)return c.BufferHelper.bufferInfo(N,R,Math.max(H.nextStart,B.maxBufferHole))}return H},L.getMaxBufferLength=function(N){var M=this.config,B;return N?B=Math.max(8*M.maxBufferSize/N,M.maxBufferLength):B=M.maxBufferLength,Math.min(B,M.maxMaxBufferLength)},L.reduceMaxBufferLength=function(N){var M=this.config,B=N||M.maxBufferLength;return M.maxMaxBufferLength>=B?(M.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+M.maxMaxBufferLength+"s"),!0):!1},L.getNextFragment=function(N,M){var B,R,H=M.fragments,F=H.length;if(!F)return null;var K=this.config,U=H[0].start,V;if(M.live){var z=K.initialLiveManifestSize;if(F<z)return this.warn("Not enough fragments to start playback (have: "+F+", need: "+z+")"),null;!M.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(V=this.getInitialLiveFragment(M,H),this.startPosition=V?this.hls.liveSyncPosition||V.start:N)}else N<=U&&(V=H[0]);if(!V){var Y=K.lowLatencyMode?M.partEnd:M.fragmentEnd;V=this.getFragmentAtPosition(N,Y,M)}return(B=V)!==null&&B!==void 0&&B.initSegment&&!((R=V)!==null&&R!==void 0&&R.initSegment.data)&&!this.bitrateTest&&(V=V.initSegment),V},L.getNextPart=function(N,M,B){for(var R=-1,H=!1,F=!0,K=0,U=N.length;K<U;K++){var V=N[K];if(F=F&&!V.independent,R>-1&&B<V.start)break;var z=V.loaded;!z&&(H||V.independent||F)&&V.fragment===M&&(R=K),H=z}return R},L.loadedEndOfParts=function(N,M){var B=N[N.length-1];return B&&M>B.start&&B.loaded},L.getInitialLiveFragment=function(N,M){var B=this.fragPrevious,R=null;if(B){if(N.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+B.programDateTime),R=Object(t.findFragmentByPDT)(M,B.endProgramDateTime,this.config.maxFragLookUpTolerance)),!R){var H=B.sn+1;if(H>=N.startSN&&H<=N.endSN){var F=M[H-N.startSN];B.cc===F.cc&&(R=F,this.log("Live playlist, switching playlist, load frag with next SN: "+R.sn))}R||(R=Object(t.findFragWithCC)(M,B.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,B){var R=this.config,H=this.fragPrevious,F=B.fragments,K=B.endSN,U=B.fragmentHint,V=R.maxFragLookUpTolerance,z=!!(R.lowLatencyMode&&B.partList&&U);z&&U&&!this.bitrateTest&&(F=F.concat(U),K=U.sn);var Y;if(N<M){var q=N>M-V?0:V;Y=Object(t.findFragmentByPTS)(H,F,N,q)}else Y=F[F.length-1];if(Y){var ce=Y.sn-B.startSN,ie=H&&Y.level===H.level,ve=F[ce+1],Ee=this.fragmentTracker.getState(Y);if(Ee===h.FragmentState.BACKTRACKED){Y=null;for(var Le=ce;F[Le]&&this.fragmentTracker.getState(F[Le])===h.FragmentState.BACKTRACKED;)H?Y=F[Le--]:Y=F[--Le];Y||(Y=ve)}else H&&Y.sn===H.sn&&!z&&(ie&&(Y.sn<K&&this.fragmentTracker.getState(ve)!==h.FragmentState.OK?(this.log("SN "+Y.sn+" just loaded, load next one: "+ve.sn),Y=ve):Y=null))}return Y},L.synchronizeToLiveEdge=function(N){var M=this.config,B=this.media;if(!B)return;var R=this.hls.liveSyncPosition,H=B.currentTime,F=N.fragments[0].start,K=N.edge,U=H>=F-M.maxFragLookUpTolerance&&H<=K;if(R!==null&&B.duration>R&&(H<R||!U)){var V=M.liveMaxLatencyDuration!==void 0?M.liveMaxLatencyDuration:M.liveMaxLatencyDurationCount*N.targetduration;(!U&&B.readyState<4||H<K-V)&&(this.loadedmetadata||(this.nextLoadPosition=R),B.readyState&&(this.warn("Playback: "+H.toFixed(3)+" is located too far from the end of live sliding playlist: "+K+", reset currentTime to : "+R.toFixed(3)),B.currentTime=R))}},L.alignPlaylists=function(N,M){var B=this.levels,R=this.levelLastLoaded,H=this.fragPrevious,F=R!==null?B[R]:null,K=N.fragments.length;if(!K)return this.warn("No fragments in live playlist"),0;var U=N.fragments[0].start,V=!M,z=N.alignedSliding&&Object(w.isFiniteNumber)(U);if(V||!z&&!U){Object(s.alignStream)(H,F,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: "+(H?H.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 B=this.startPosition;if(B<M&&(B=-1),B===-1||this.lastCurrentTime===-1){var R=N.startTimeOffset;Object(w.isFiniteNumber)(R)?(B=M+R,R<0&&(B+=N.totalduration),B=Math.min(Math.max(M,B),M+N.totalduration),this.log("Start time offset "+R+" found in playlist, adjust startPosition to "+B),this.startPosition=B):N.live?B=this.hls.liveSyncPosition||M:this.startPosition=B=0,this.lastCurrentTime=B}this.nextLoadPosition=B},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=S.IDLE)},L.onFragmentOrKeyLoadError=function(N,M){if(M.fatal)return;var B=M.frag;if(!B||B.type!==N)return;var R=this.fragCurrent;console.assert(R&&B.sn===R.sn&&B.level===R.level&&B.urlId===R.urlId,"Frag load error must match current frag to retry");var H=this.config;if(this.fragLoadError+1<=H.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(B.level))return;var F=Math.min(Math.pow(2,this.fragLoadError)*H.fragLoadingRetryDelay,H.fragLoadingMaxRetryTimeout);this.warn("Fragment "+B.sn+" of "+N+" "+B.level+" failed to load, retrying in "+F+"ms"),this.retryDate=self.performance.now()+F,this.fragLoadError++,this.state=S.FRAG_LOADING_WAITING_RETRY}else M.levelRetry?(N===p.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=S.IDLE):(i.logger.error(M.details+" reaches max retry, redispatch as fatal ..."),M.fatal=!0,this.hls.stopLoad(),this.state=S.ERROR)},L.afterBufferFlushed=function(N,M,B){if(!N)return;var R=c.BufferHelper.getBuffered(N);this.fragmentTracker.detectEvictedFragments(M,R,B),this.state===S.ENDED&&this.resetLoadingState()},L.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=S.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,B,R){var H=this,F=B.details;console.assert(!!F,"level.details must be defined");var K=Object.keys(N.elementaryStreams).reduce(function(U,V){var z=N.elementaryStreams[V];if(z){var Y=z.endPTS-z.startPTS;if(Y<=0)return H.warn("Could not parse fragment "+N.sn+" "+V+" duration reliably ("+Y+") resetting transmuxer to fallback to playlist timing"),H.resetTransmuxer(),U||!1;var q=R?0:Object(a.updateFragPTSDTS)(F,N,z.startPTS,z.endPTS,z.startDTS,z.endDTS);return H.hls.trigger(r.Events.LEVEL_PTS_UPDATED,{details:F,level:B,drift:q,type:V,frag:N,start:z.startPTS,end:z.endPTS}),!0}return U},!1);K?(this.state=S.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(I,[{key:"state",get:function(){return this._state},set:function(N){var M=this._state;M!==N&&(this._state=N,this.log(M+"->"+N))}}]),I}(m.default)},"./src/controller/buffer-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return t});var w=v("./src/polyfills/number.ts"),m=v("./src/events.ts"),h=v("./src/utils/logger.ts"),c=v("./src/errors.ts"),i=v("./src/utils/buffer-helper.ts"),r=v("./src/utils/mediasource-helper.ts"),o=v("./src/loader/fragment.ts"),n=v("./src/controller/buffer-operation-queue.ts"),e=Object(r.getMediaSource)(),s=/([ha]vc.)(?:\.[^.,]+)+/,t=function(){function a(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,g=f.media,A=f.mediaSource;h.logger.log("[buffer-controller]: Media source opened"),g&&(f.updateMediaElementDuration(),p.trigger(m.Events.MEDIA_ATTACHED,{media:g})),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=a.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 g=2;(p.audio&&!p.video||!p.altAudio)&&(g=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=g,this.details=null,h.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},l.onMediaAttaching=function(f,p){var g=this.media=p.media;if(g&&e){var A=this.mediaSource=new e;A.addEventListener("sourceopen",this._onMediaSourceOpen),A.addEventListener("sourceended",this._onMediaSourceEnded),A.addEventListener("sourceclose",this._onMediaSourceClose),g.src=self.URL.createObjectURL(A),this._objectUrl=g.src}},l.onMediaDetaching=function(){var f=this.media,p=this.mediaSource,g=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&&(g&&self.URL.revokeObjectURL(g),f.src===g?(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 g=f.sourceBuffer[p];try{g&&(f.removeBufferListeners(p),f.mediaSource&&f.mediaSource.removeSourceBuffer(g),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 g=this,A=this.getSourceBufferTypes().length;if(Object.keys(p).forEach(function(y){if(A){var x=g.tracks[y];if(x&&typeof x.buffer.changeType=="function"){var T=p[y],S=T.codec,b=T.levelCodec,_=T.container,I=(x.levelCodec||x.codec).replace(s,"$1"),L=(b||S).replace(s,"$1");if(I!==L){var D=_+";codecs="+(b||S);g.appendChangeType(y,D)}}}else g.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 g=this,A=this.operationQueue,y={execute:function(){var T=g.sourceBuffer[f];T&&(h.logger.log("[buffer-controller]: changing "+f+" sourceBuffer type to "+p),T.changeType(p)),A.shiftAndExecuteNext(f)},onStart:function(){},onComplete:function(){},onError:function(T){h.logger.warn("[buffer-controller]: Failed to change "+f+" SourceBuffer type",T)}};A.append(y,f)},l.onBufferAppending=function(f,p){var g=this,A=this.hls,y=this.operationQueue,x=this.tracks,T=p.data,S=p.type,b=p.frag,_=p.part,I=p.chunkMeta,L=I.buffering[S],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 B=x.audio,R=S==="audio"&&I.id===1&&(B==null?void 0:B.container)==="audio/mpeg",H={execute:function(){if(L.executeStart=self.performance.now(),R){var K=g.sourceBuffer[S];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)}}g.appendExecutor(T,S)},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=g.sourceBuffer,V={};for(var z in U)V[z]=i.BufferHelper.getBuffered(U[z]);g.appendError=0,g.hls.trigger(m.Events.BUFFER_APPENDED,{type:S,frag:b,part:_,chunkMeta:I,parent:b.type,timeRanges:V})},onError:function(K){h.logger.error("[buffer-controller]: Error encountered while trying to append to the "+S+" 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:(g.appendError++,U.details=c.ErrorDetails.BUFFER_APPEND_ERROR,g.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(H,S)},l.onBufferFlushing=function(f,p){var g=this,A=this.operationQueue,y=function(T){return{execute:g.removeExecutor.bind(g,T,p.startOffset,p.endOffset),onStart:function(){},onComplete:function(){g.hls.trigger(m.Events.BUFFER_FLUSHED,{type:T})},onError:function(b){h.logger.warn("[buffer-controller]: Failed to remove from "+T+" 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 g=this,A=p.frag,y=p.part,x=[],T=y?y.elementaryStreams:A.elementaryStreams;T[o.ElementaryStreamTypes.AUDIOVIDEO]?x.push("audiovideo"):(T[o.ElementaryStreamTypes.AUDIO]&&x.push("audio"),T[o.ElementaryStreamTypes.VIDEO]&&x.push("video"));var S=function(){var _=self.performance.now();A.stats.buffering.end=_,y&&(y.stats.buffering.end=_);var I=y?y.stats:A.stats;g.hls.trigger(m.Events.FRAG_BUFFERED,{frag:A,part:y,stats:I,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(S,x)},l.onFragChanged=function(f,p){this.flushBackBuffer()},l.onBufferEos=function(f,p){var g=this,A=this.getSourceBufferTypes().reduce(function(y,x){var T=g.sourceBuffer[x];return(!p.type||p.type===x)&&(T&&!T.ended&&(T.ended=!0,h.logger.log("[buffer-controller]: "+x+" sourceBuffer now EOS"))),y&&!!(!T||T.ended)},!0);A&&this.blockBuffers(function(){var y=g.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},l.onLevelUpdated=function(f,p){var g=p.details;if(!g.fragments.length)return;this.details=g,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},l.flushBackBuffer=function(){var f=this.hls,p=this.details,g=this.media,A=this.sourceBuffer;if(!g||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(w.isFiniteNumber)(x)||x<0)return;var T=g.currentTime,S=p.levelTargetDuration,b=Math.max(x,S),_=Math.floor(T/S)*S-b;y.forEach(function(I){var L=A[I];if(L){var D=i.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:I}))}})},l.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var f=this.details,p=this.hls,g=this.media,A=this.mediaSource,y=f.fragments[0].start+f.totalduration,x=g.duration,T=Object(w.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>T&&y>x||!Object(w.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,g=f.fragments,A=g.length;if(A&&f.live&&p!==null&&p!==void 0&&p.setLiveSeekableRange){var y=Math.max(0,g[0].start),x=Math.max(y,y+f.totalduration);p.setLiveSeekableRange(y,x)}},l.checkPendingTracks=function(){var f=this.bufferCodecEventsExpected,p=this.operationQueue,g=this.pendingTracks,A=Object.keys(g).length;if(A&&!f||A===2){this.createSourceBuffers(g),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,g=this.mediaSource;if(!g)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 T=x.levelCodec||x.codec,S=x.container+";codecs="+T;h.logger.log("[buffer-controller]: creating sourceBuffer("+S+")");try{var b=p[y]=g.addSourceBuffer(S),_=y;this.addBufferListener(_,"updatestart",this._onSBUpdateStart),this.addBufferListener(_,"updateend",this._onSBUpdateEnd),this.addBufferListener(_,"error",this._onSBUpdateError),this.tracks[y]={buffer:b,codec:T,container:x.container,levelCodec:x.levelCodec,id:x.id},A++}catch(I){h.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+I.message),this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:I,mimeType:S})}}A&&this.hls.trigger(m.Events.BUFFER_CREATED,{tracks:this.tracks})},l._onSBUpdateStart=function(f){var p=this.operationQueue,g=p.current(f);g.onStart()},l._onSBUpdateEnd=function(f){var p=this.operationQueue,g=p.current(f);g.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 g=this.operationQueue.current(f);g&&g.onError(p)},l.removeExecutor=function(f,p,g){var A=this.media,y=this.mediaSource,x=this.operationQueue,T=this.sourceBuffer,S=T[f];if(!A||!y||!S){h.logger.warn("[buffer-controller]: Attempting to remove from the "+f+" SourceBuffer, but it does not exist"),x.shiftAndExecuteNext(f);return}var b=Object(w.isFiniteNumber)(A.duration)?A.duration:Infinity,_=Object(w.isFiniteNumber)(y.duration)?y.duration:Infinity,I=Math.max(0,p),L=Math.min(g,b,_);L>I?(h.logger.log("[buffer-controller]: Removing ["+I+","+L+"] from the "+f+" SourceBuffer"),console.assert(!S.updating,f+" sourceBuffer must not be updating"),S.remove(I,L)):x.shiftAndExecuteNext(f)},l.appendExecutor=function(f,p){var g=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"),g.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 g=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 T=g.sourceBuffer[x];(!T||!T.updating)&&A.shiftAndExecuteNext(x)})})},l.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},l.addBufferListener=function(f,p,g){var A=this.sourceBuffer[f];if(!A)return;var y=g.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(g){p.removeEventListener(g.event,g.listener)})},a}()},"./src/controller/buffer-operation-queue.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return m});var w=v("./src/utils/logger.ts"),m=function(){function h(i){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=i}var c=h.prototype;return c.append=function(r,o){var n=this.queues[o];n.push(r),n.length===1&&this.buffers[o]&&this.executeNext(o)},c.insertAbort=function(r,o){var n=this.queues[o];n.unshift(r),this.executeNext(o)},c.appendBlocker=function(r){var o,n=new Promise(function(s){o=s}),e={execute:o,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,r),n},c.executeNext=function(r){var o=this.buffers,n=this.queues,e=o[r],s=n[r];if(s.length){var t=s[0];try{t.execute()}catch(a){w.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),t.onError(a),(!e||!e.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,C,v){"use strict";v.r(C);var w=v("./src/events.ts");function m(i,r){for(var o=0;o<r.length;o++){var n=r[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function h(i,r,o){return r&&m(i.prototype,r),o&&m(i,o),i}var c=function(){function i(o){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=o,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var r=i.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(w.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(w.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(w.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.unregisterListener=function(){var n=this.hls;n.off(w.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(w.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(w.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.onFpsDropLevelCapping=function(n,e){i.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)},r.onMediaAttaching=function(n,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},r.onManifestParsed=function(n,e){var s=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onBufferCodecs=function(n,e){var s=this.hls;s.config.capLevelToPlayerSize&&e.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 e=this.hls;e.autoLevelCapping=this.getMaxLevel(n.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},r.getMaxLevel=function(n){var e=this,s=this.hls.levels;if(!s.length)return-1;var t=s.filter(function(a,l){return i.isLevelAllowed(l,e.restrictedLevels)&&l<=n});return this.clientRect=null,i.getMaxLevelByMediaSize(t,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,e={width:0,height:0};if(n){var s=n.getBoundingClientRect();e.width=s.width,e.height=s.height,!e.width&&!e.height&&(e.width=s.right-s.left||n.width||0,e.height=s.bottom-s.top||n.height||0)}return this.clientRect=e,e},i.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},i.getMaxLevelByMediaSize=function(n,e,s){if(!n||!n.length)return-1;for(var t=function(p,g){return g?p.width!==g.width||p.height!==g.height:!0},a=n.length-1,l=0;l<n.length;l+=1){var u=n[l];if((u.width>=e||u.height>=s)&&t(u,n[l+1])){a=l;break}}return a},h(i,[{key:"mediaWidth",get:function(){return this.getDimensions().width*i.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*i.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),i}();C.default=c},"./src/controller/cmcd-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return t});var w=v("./src/events.ts"),m=v("./src/types/cmcd.ts"),h=v("./src/utils/buffer-helper.ts"),c=v("./src/utils/logger.ts");function i(a,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(a,f.key,f)}}function r(a,l,u){return l&&i(a.prototype,l),u&&i(a,u),a}function o(a,l){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(u)return(u=u.call(a)).next.bind(u);if(Array.isArray(a)||(u=n(a))||l&&a&&typeof a.length=="number"){u&&(a=u);var f=0;return function(){return f>=a.length?{done:!0}:{done:!1,value:a[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(a,l){if(!a)return;if(typeof a=="string")return e(a,l);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return e(a,l)}function e(a,l){(l==null||l>a.length)&&(l=a.length);for(var u=0,f=new Array(l);u<l;u++)f[u]=a[u];return f}function s(){return s=Object.assign||function(a){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(a[f]=u[f])}return a},s.apply(this,arguments)}var t=function(){function a(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],T=f.getObjectType(y),S={d:y.duration*1e3,ot:T};(T===m.CMCDObjectType.VIDEO||T===m.CMCDObjectType.AUDIO||T==m.CMCDObjectType.MUXED)&&(S.br=x.bitrate/1e3,S.tb=f.getTopBandwidth(T),S.bl=f.getBufferLength(T)),f.apply(A,S)}catch(b){c.logger.warn("Could not generate segment CMCD data.",b)}},this.hls=u;var p=this.config=u.config,g=p.cmcd;g!=null&&(p.pLoader=this.createPlaylistLoader(),p.fLoader=this.createFragmentLoader(),this.sid=g.sessionId||a.uuid(),this.cid=g.contentId,this.useHeaders=g.useHeaders===!0,this.registerListeners())}var l=a.prototype;return l.registerListeners=function(){var f=this.hls;f.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.on(w.Events.BUFFER_CREATED,this.onBufferCreated,this)},l.unregisterListeners=function(){var f=this.hls;f.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.off(w.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 g,A;this.audioBuffer=(g=p.tracks.audio)===null||g===void 0?void 0:g.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 g=p.ot===m.CMCDObjectType.INIT||p.ot===m.CMCDObjectType.VIDEO||p.ot===m.CMCDObjectType.MUXED;if(this.starved&&g&&(p.bs=!0,p.su=!0,this.starved=!1),p.su==null&&(p.su=this.buffering),this.useHeaders){var A=a.toHeaders(p);if(!Object.keys(A).length)return;f.headers||(f.headers={}),s(f.headers,A)}else{var y=a.toQuery(p);if(!y)return;f.url=a.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,g=f===m.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,A=o(g),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,g=f===m.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!g||!p)return NaN;var A=h.BufferHelper.bufferInfo(g,p.currentTime,this.config.maxBufferHole);return A.len*1e3},l.createPlaylistLoader=function(){var f=this.config.pLoader,p=this.applyPlaylistData,g=f||this.config.loader;return function(){function A(x){this.loader=void 0,this.loader=new g(x)}var y=A.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,S,b){p(T),this.loader.load(T,S,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,g=f||this.config.loader;return function(){function A(x){this.loader=void 0,this.loader=new g(x)}var y=A.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,S,b){p(T),this.loader.load(T,S,b)},r(A,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),A}()},a.uuid=function(){var f=URL.createObjectURL(new Blob),p=f.toString();return URL.revokeObjectURL(f),p.substr(p.lastIndexOf("/")+1)},a.serialize=function(f){for(var p=[],g=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)},T={br:A,d:A,bl:y,dl:y,mtp:y,nor:x,rtp:y,tb:A},S=Object.keys(f||{}).sort(),b=o(S),_;!(_=b()).done;){var I=_.value,L=f[I];if(!g(L))continue;if(I==="v"&&L===1)continue;if(I=="pr"&&L===1)continue;var D=T[I];D&&(L=D(L));var N=typeof L,M=void 0;I==="ot"||I==="sf"||I==="st"?M=I+"="+L:N==="boolean"?M=I:N==="number"?M=I+"="+L:M=I+"="+JSON.stringify(L),p.push(M)}return p.join(",")},a.toHeaders=function(f){for(var p=Object.keys(f),g={},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},T=0,S=p;T<S.length;T++){var b=S[T],_=x[b]!=null?x[b]:1;y[_][b]=f[b]}for(var I=0;I<y.length;I++){var L=a.serialize(y[I]);L&&(g["CMCD-"+A[I]]=L)}return g},a.toQuery=function(f){return"CMCD="+encodeURIComponent(a.serialize(f))},a.appendQueryToUri=function(f,p){if(!p)return f;var g=f.includes("?")?"&":"?";return""+f+g+p},a}()},"./src/controller/eme-controller.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/events.ts"),m=v("./src/errors.ts"),h=v("./src/utils/logger.ts"),c=v("./src/utils/mediakeys-helper.ts");function i(t,a){for(var l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,l){return a&&i(t.prototype,a),l&&i(t,l),t}var o=3,n=function(a,l,u){var f={audioCapabilities:[],videoCapabilities:[]};return a.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]},e=function(a,l,u,f){switch(a){case c.KeySystems.WIDEVINE:return n(l,u,f);default:throw new Error("Unknown key-system: "+a)}},s=function(){function t(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 a=t.prototype;return a.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},a._registerListeners=function(){this.hls.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a._unregisterListeners=function(){this.hls.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(w.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a.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+'"')},a._attemptKeySystemAccess=function(u,f,p){var g=this,A=e(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 g._onMediaKeySystemAccessObtained(u,x)}),y.catch(function(x){h.logger.error('Failed to obtain key-system "'+u+'" access:',x)})},a._onMediaKeySystemAccessObtained=function(u,f){var p=this;h.logger.log('Access for key-system "'+u+'" obtained');var g={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:f,mediaKeySystemDomain:u};this._mediaKeysList.push(g);var A=Promise.resolve().then(function(){return f.createMediaKeys()}).then(function(y){return g.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},a._onMediaKeysCreated=function(){var u=this;this._mediaKeysList.forEach(function(f){f.mediaKeysSession||(f.mediaKeysSession=f.mediaKeys.createSession(),u._onNewMediaKeySession(f.mediaKeysSession))})},a._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)},a._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)})},a.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(w.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)},a._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(w.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}},a._generateRequestWithPreferredKeySession=function(u,f){var p=this,g=this._mediaKeysList[0];if(!g){h.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(g.mediaKeysSessionInitialized){h.logger.warn("Key-Session already initialized but requested again");return}var A=g.mediaKeysSession;if(!A){h.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(w.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(w.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'),g.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(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},a._createLicenseXhr=function(u,f,p){var g=new XMLHttpRequest;g.responseType="arraybuffer",g.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,g,u,f,p);var A=this._licenseXhrSetup;if(A)try{A.call(this.hls,g,u),A=void 0}catch(y){h.logger.error(y)}try{g.readyState||g.open("POST",u,!0),A&&A.call(this.hls,g,u)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return g},a._onLicenseRequestReadyStageChange=function(u,f,p,g){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(T){h.logger.error(T)}g(A)}else{if(h.logger.error("License Request XHR failed ("+f+"). Status: "+u.status+" ("+u.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>o){this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var x=o-this._requestLicenseFailureCount+1;h.logger.warn("Retrying license request, "+x+" attempts left"),this._requestLicense(p,g)}break}},a._generateLicenseRequestChallenge=function(u,f){switch(u.mediaKeySystemDomain){case c.KeySystems.WIDEVINE:return f}throw new Error("unsupported key-system: "+u.mediaKeySystemDomain)},a._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(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var g=this.getLicenseServerUrl(p.mediaKeySystemDomain),A=this._createLicenseXhr(g,u,f);h.logger.log("Sending license request to URL: "+g);var y=this._generateLicenseRequestChallenge(p,u);A.send(y)}catch(x){h.logger.error("Failure requesting DRM license: "+x),this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},a.onMediaAttached=function(u,f){if(!this._emeEnabled)return;var p=f.media;this._media=p,p.addEventListener("encrypted",this._onMediaEncrypted)},a.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(){})},a.onManifestParsed=function(u,f){if(!this._emeEnabled)return;var p=f.levels.map(function(A){return A.audioCodec}).filter(function(A){return!!A}),g=f.levels.map(function(A){return A.videoCodec}).filter(function(A){return!!A});this._attemptKeySystemAccess(c.KeySystems.WIDEVINE,p,g)},r(t,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),t}();C.default=s},"./src/controller/fps-controller.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/events.ts"),m=v("./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 i=c.prototype;return i.setStreamController=function(o){this.streamController=o},i.registerListeners=function(){this.hls.on(w.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},i.unregisterListeners=function(){this.hls.off(w.Events.MEDIA_ATTACHING,this.onMediaAttaching)},i.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},i.onMediaAttaching=function(o,n){var e=this.hls.config;if(e.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),e.fpsDroppedMonitoringPeriod)}},i.checkFPS=function(o,n,e){var s=performance.now();if(n){if(this.lastTime){var t=s-this.lastTime,a=e-this.lastDroppedFrames,l=n-this.lastDecodedFrames,u=1e3*a/t,f=this.hls;if(f.trigger(w.Events.FPS_DROP,{currentDropped:a,currentDecoded:l,totalDroppedFrames:e}),u>0&&a>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(w.Events.FPS_DROP_LEVEL_CAPPING,{level:p,droppedLevel:f.currentLevel}),f.autoLevelCapping=p,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},i.checkFPSInterval=function(){var o=this.media;if(o)if(this.isVideoPlaybackQualityAvailable){var n=o.getVideoPlaybackQuality();this.checkFPS(o,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(o,o.webkitDecodedFrameCount,o.webkitDroppedFrameCount)},c}();C.default=h},"./src/controller/fragment-finders.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"findFragmentByPDT",function(){return h}),v.d(C,"findFragmentByPTS",function(){return c}),v.d(C,"fragmentWithinToleranceTest",function(){return i}),v.d(C,"pdtWithinToleranceTest",function(){return r}),v.d(C,"findFragWithCC",function(){return o});var w=v("./src/polyfills/number.ts"),m=v("./src/utils/binary-search.ts");function h(n,e,s){if(e===null||!Array.isArray(n)||!n.length||!Object(w.isFiniteNumber)(e))return null;var t=n[0].programDateTime;if(e<(t||0))return null;var a=n[n.length-1].endProgramDateTime;if(e>=(a||0))return null;s=s||0;for(var l=0;l<n.length;++l){var u=n[l];if(r(e,s,u))return u}return null}function c(n,e,s,t){s===void 0&&(s=0),t===void 0&&(t=0);var a=null;if(n?a=e[n.sn-e[0].sn+1]||null:s===0&&e[0].start===0&&(a=e[0]),a&&i(s,t,a)===0)return a;var l=m.default.search(e,i.bind(null,s,t));return l||a}function i(n,e,s){n===void 0&&(n=0),e===void 0&&(e=0);var t=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0));return s.start+s.duration-t<=n?1:s.start-t>n&&s.start?-1:0}function r(n,e,s){var t=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0))*1e3,a=s.endProgramDateTime||0;return a-t>n}function o(n,e){return m.default.search(n,function(s){return s.cc<e?1:s.cc>e?-1:0})}},"./src/controller/fragment-tracker.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"FragmentState",function(){return h}),v.d(C,"FragmentTracker",function(){return c});var w=v("./src/events.ts"),m=v("./src/types/loader.ts"),h;(function(o){o.NOT_LOADED="NOT_LOADED",o.BACKTRACKED="BACKTRACKED",o.APPENDING="APPENDING",o.PARTIAL="PARTIAL",o.OK="OK"})(h||(h={}));var c=function(){function o(e){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=e,this._registerListeners()}var n=o.prototype;return n._registerListeners=function(){var s=this.hls;s.on(w.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.on(w.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(w.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var s=this.hls;s.off(w.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.off(w.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(w.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(s,t){if(t===m.PlaylistLevelType.MAIN){var a=this.activeFragment,l=this.activeParts;if(!a)return null;if(l)for(var u=l.length;u--;){var f=l[u],p=f?f.end:a.appendedPTS;if(f.start<=s&&p!==void 0&&s<=p)return u>9&&(this.activeParts=l.slice(u-9)),f}else if(a.start<=s&&a.appendedPTS!==void 0&&s<=a.appendedPTS)return a}return this.getBufferedFrag(s,t)},n.getBufferedFrag=function(s,t){for(var a=this.fragments,l=Object.keys(a),u=l.length;u--;){var f=a[l[u]];if((f==null?void 0:f.body.type)===t&&f.buffered){var p=f.body;if(p.start<=s&&s<=p.end)return p}}return null},n.detectEvictedFragments=function(s,t,a){var l=this;Object.keys(this.fragments).forEach(function(u){var f=l.fragments[u];if(!f)return;if(!f.buffered){f.body.type===a&&l.removeFragment(f.body);return}var p=f.range[s];if(!p)return;p.time.some(function(g){var A=!l.isTimeBuffered(g.startPTS,g.endPTS,t);return A&&l.removeFragment(f.body),A})})},n.detectPartialFragments=function(s){var t=this,a=this.timeRanges,l=s.frag,u=s.part;if(!a||l.sn==="initSegment")return;var f=r(l),p=this.fragments[f];if(!p)return;Object.keys(a).forEach(function(g){var A=l.elementaryStreams[g];if(!A)return;var y=a[g],x=u!==null||A.partial===!0;p.range[g]=t.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 t=r(s),a=this.fragments[t];a&&(a.backtrack=a.loaded=null,a.buffered=!0)},n.getBufferedTimes=function(s,t,a,l){for(var u={time:[],partial:a},f=t?t.start:s.start,p=t?t.end:s.end,g=s.minEndPTS||p,A=s.maxStartPTS||f,y=0;y<l.length;y++){var x=l.start(y)-this.bufferPadding,T=l.end(y)+this.bufferPadding;if(A>=x&&g<=T){u.time.push({startPTS:Math.max(f,l.start(y)),endPTS:Math.min(p,l.end(y))});break}else if(f<T&&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 t=null,a,l,u,f=0,p=this.bufferPadding,g=this.fragments;return Object.keys(g).forEach(function(A){var y=g[A];if(!y)return;i(y)&&(l=y.body.start-p,u=y.body.end+p,s>=l&&s<=u&&(a=Math.min(s-l,u-s),f<=a&&(t=y.body,f=a)))}),t},n.getState=function(s){var t=r(s),a=this.fragments[t];return a?a.buffered?i(a)?h.PARTIAL:h.OK:a.backtrack?h.BACKTRACKED:h.APPENDING:h.NOT_LOADED},n.backtrack=function(s,t){var a=r(s),l=this.fragments[a];if(!l||l.backtrack)return null;var u=l.backtrack=t||l.loaded;return l.loaded=null,u},n.getBacktrackData=function(s){var t=r(s),a=this.fragments[t];if(a){var l,u=a.backtrack;if(u!=null&&(l=u.payload)!==null&&l!==void 0&&l.byteLength)return u;this.removeFragment(s)}return null},n.isTimeBuffered=function(s,t,a){for(var l,u,f=0;f<a.length;f++){if(l=a.start(f)-this.bufferPadding,u=a.end(f)+this.bufferPadding,s>=l&&t<=u)return!0;if(t<=l)return!1}return!1},n.onFragLoaded=function(s,t){var a=t.frag,l=t.part;if(a.sn==="initSegment"||a.bitrateTest||l)return;var u=r(a);this.fragments[u]={body:a,loaded:t,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(s,t){var a=this,l=t.frag,u=t.part,f=t.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(g){var A=f[g];if(a.detectEvictedFragments(g,A),!u)for(var y=0;y<A.length;y++)l.appendedPTS=Math.max(A.end(y),l.appendedPTS||0)})},n.onFragBuffered=function(s,t){this.detectPartialFragments(t)},n.hasFragment=function(s){var t=r(s);return!!this.fragments[t]},n.removeFragmentsInRange=function(s,t,a){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===a&&p.start<t&&p.end>s&&l.removeFragment(p)}})},n.removeFragment=function(s){var t=r(s);s.stats.loaded=0,s.clearElementaryStreamInfo(),delete this.fragments[t]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},o}();function i(o){var n,e;return o.buffered&&(((n=o.range.video)===null||n===void 0?void 0:n.partial)||((e=o.range.audio)===null||e===void 0?void 0:e.partial))}function r(o){return o.type+"_"+o.level+"_"+o.urlId+"_"+o.sn}},"./src/controller/gap-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"STALL_MINIMUM_DURATION_MS",function(){return i}),v.d(C,"MAX_START_GAP_JUMP",function(){return r}),v.d(C,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return o}),v.d(C,"SKIP_BUFFER_RANGE_START",function(){return n}),v.d(C,"default",function(){return e});var w=v("./src/utils/buffer-helper.ts"),m=v("./src/errors.ts"),h=v("./src/events.ts"),c=v("./src/utils/logger.ts"),i=250,r=2,o=.1,n=.05,e=function(){function s(a,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=a,this.media=l,this.fragmentTracker=u,this.hls=f}var t=s.prototype;return t.destroy=function(){this.hls=this.fragmentTracker=this.media=null},t.poll=function(l){var u=this.config,f=this.media,p=this.stalled,g=f.currentTime,A=f.seeking,y=this.seeking&&!A,x=!this.seeking&&A;if(this.seeking=A,g!==l){if(this.moved=!0,p!==null){if(this.stallReported){var T=self.performance.now()-p;c.logger.warn("playback not stuck anymore @"+g+", after "+Math.round(T)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((x||y)&&(this.stalled=null),f.paused||f.ended||f.playbackRate===0||!w.BufferHelper.getBuffered(f).length)return;var S=w.BufferHelper.bufferInfo(f,g,0),b=S.len>0,_=S.nextStart||0;if(!b&&!_)return;if(A){var I=S.len>r,L=!_||_-g>r&&!this.fragmentTracker.getPartialFragment(g);if(I||L)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,N=Math.max(_,S.start||0)-g,M=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,B=M==null||((D=M.details)===null||D===void 0)?void 0:D.live,R=B?M.details.targetduration*2:r;if(N>0&&N<=R){this._trySkipBufferHole(null);return}}var H=self.performance.now();if(p===null){this.stalled=H;return}var F=H-p;!A&&F>=i&&this._reportStall(S.len);var K=w.BufferHelper.bufferInfo(f,g,u.maxBufferHole);this._tryFixBufferStall(K,F)},t._tryFixBufferStall=function(l,u){var f=this.config,p=this.fragmentTracker,g=this.media,A=g.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())},t._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}))},t._trySkipBufferHole=function(l){for(var u=this.config,f=this.hls,p=this.media,g=p.currentTime,A=0,y=w.BufferHelper.getBuffered(p),x=0;x<y.length;x++){var T=y.start(x);if(g+u.maxBufferHole>=A&&g<T){var S=Math.max(T+n,p.currentTime+o);return c.logger.warn("skipping hole, adjusting currentTime from "+g+" to "+S),this.moved=!0,this.stalled=null,p.currentTime=S,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 "+g+" to "+S,frag:l}),S}A=y.end(x)}return 0},t._tryNudgeBuffer=function(){var l=this.config,u=this.hls,f=this.media,p=f.currentTime,g=(this.nudgeRetry||0)+1;if(this.nudgeRetry=g,g<l.nudgeMaxRetry){var A=p+g*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,C,v){"use strict";v.r(C);var w=v("./src/events.ts"),m=v("./src/utils/texttrack-utils.ts"),h=v("./src/demux/id3.ts"),c=.25,i=function(){function r(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var o=r.prototype;return o.destroy=function(){this._unregisterListeners()},o._registerListeners=function(){var e=this.hls;e.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(w.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(w.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},o._unregisterListeners=function(){var e=this.hls;e.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(w.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(w.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},o.onMediaAttached=function(e,s){this.media=s.media},o.onMediaDetaching=function(){if(!this.id3Track)return;Object(m.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},o.getID3Track=function(e){if(!this.media)return;for(var s=0;s<e.length;s++){var t=e[s];if(t.kind==="metadata"&&t.label==="id3")return Object(m.sendAddTrackEvent)(t,this.media),t}return this.media.addTextTrack("metadata","id3")},o.onFragParsingMetadata=function(e,s){if(!this.media)return;var t=s.frag,a=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<a.length;u++){var f=h.getID3Frames(a[u].data);if(f){var p=a[u].pts,g=u<a.length-1?a[u+1].pts:t.end,A=g-p;A<=0&&(g=p+c);for(var y=0;y<f.length;y++){var x=f[y];if(!h.isTimeStampFrame(x)){var T=new l(p,g,"");T.value=x,this.id3Track.addCue(T)}}}}},o.onBufferFlushing=function(e,s){var t=s.startOffset,a=s.endOffset,l=s.type;if(!l||l==="audio"){var u=this.id3Track;u&&Object(m.removeCuesInRange)(u,t,a)}},r}();C.default=i},"./src/controller/latency-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return r});var w=v("./src/errors.ts"),m=v("./src/events.ts"),h=v("./src/utils/logger.ts");function c(o,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(o,s.key,s)}}function i(o,n,e){return n&&c(o.prototype,n),e&&c(o,e),o}var r=function(){function o(e){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=e,this.config=e.config,this.registerListeners()}var n=o.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,t){this.media=t.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,t){var a=t.details;this.levelDetails=a,a.advanced&&this.timeupdate(),!a.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(s,t){if(t.details!==w.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,t=this.levelDetails;if(!s||!t)return;this.currentTime=s.currentTime;var a=this.computeLatency();if(a===null)return;this._latency=a;var l=this.config,u=l.lowLatencyMode,f=l.maxLiveSyncPlaybackRate;if(!u||f===1)return;var p=this.targetLatency;if(p===null)return;var g=a-p,A=Math.min(this.maxLatency,p+t.targetduration),y=g<A;if(t.live&&y&&g>.05&&this.forwardBufferLength>1){var x=Math.min(2,Math.max(1,f)),T=Math.round(2/(1+Math.exp(-.75*g-this.edgeStalled))*20)/20;s.playbackRate=Math.min(x,Math.max(1,T))}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},i(o,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var s=this.config,t=this.levelDetails;return s.liveMaxLatencyDuration!==void 0?s.liveMaxLatencyDuration:t?s.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var s=this.levelDetails;if(s===null)return null;var t=s.holdBack,a=s.partHoldBack,l=s.targetduration,u=this.config,f=u.liveSyncDuration,p=u.liveSyncDurationCount,g=u.lowLatencyMode,A=this.hls.userConfig,y=g&&a||t;(A.liveSyncDuration||A.liveSyncDurationCount||y===0)&&(y=f!==void 0?f:p*l);var x=l,T=1;return y+Math.min(this.stallCount*T,x)}},{key:"liveSyncPosition",get:function(){var s=this.estimateLiveEdge(),t=this.targetLatency,a=this.levelDetails;if(s===null||t===null||a===null)return null;var l=a.edge,u=s-t-this.edgeStalled,f=l-a.totalduration,p=l-(this.config.lowLatencyMode&&a.partTarget||a.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 t=(this.config.lowLatencyMode&&s.partTarget||s.targetduration)*3;return Math.max(s.age-t,0)}},{key:"forwardBufferLength",get:function(){var s=this.media,t=this.levelDetails;if(!s||!t)return 0;var a=s.buffered.length;return a?s.buffered.end(a-1):t.edge-this.currentTime}}]),o}()},"./src/controller/level-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return u});var w=v("./src/types/level.ts"),m=v("./src/events.ts"),h=v("./src/errors.ts"),c=v("./src/utils/codecs.ts"),i=v("./src/controller/level-helper.ts"),r=v("./src/controller/base-playlist-controller.ts"),o=v("./src/types/loader.ts");function n(){return n=Object.assign||function(f){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var A in g)Object.prototype.hasOwnProperty.call(g,A)&&(f[A]=g[A])}return f},n.apply(this,arguments)}function e(f,p){for(var g=0;g<p.length;g++){var A=p[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}function s(f,p,g){return p&&e(f.prototype,p),g&&e(f,g),f}function t(f,p){f.prototype=Object.create(p.prototype),f.prototype.constructor=f,a(f,p)}function a(f,p){return a=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},a(f,p)}var l=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),u=function(f){t(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 g=p.prototype;return g._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)},g._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)},g.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,f.prototype.destroy.call(this)},g.startLoad=function(){var y=this._levels;y.forEach(function(x){x.loadError=0}),f.prototype.startLoad.call(this)},g.onManifestLoaded=function(y,x){var T=[],S=[],b=[],_,I={},L,D=!1,N=!1,M=!1;if(x.levels.forEach(function(F){var K=F.attrs;D=D||!!(F.width&&F.height),N=N||!!F.videoCodec,M=M||!!F.audioCodec,l&&F.audioCodec&&F.audioCodec.indexOf("mp4a.40.34")!==-1&&(F.audioCodec=void 0);var U=F.bitrate+"-"+F.attrs.RESOLUTION+"-"+F.attrs.CODECS;L=I[U],L?L.url.push(F.url):(L=new w.Level(F),I[U]=L,T.push(L)),K&&(K.AUDIO&&Object(i.addGroupId)(L,"audio",K.AUDIO),K.SUBTITLES&&Object(i.addGroupId)(L,"text",K.SUBTITLES))}),(D||N)&&M&&(T=T.filter(function(F){var K=F.videoCodec,U=F.width,V=F.height;return!!K||!!(U&&V)})),T=T.filter(function(F){var K=F.audioCodec,U=F.videoCodec;return(!K||Object(c.isCodecSupportedInMp4)(K,"audio"))&&(!U||Object(c.isCodecSupportedInMp4)(U,"video"))}),x.audioTracks&&(S=x.audioTracks.filter(function(F){return!F.audioCodec||Object(c.isCodecSupportedInMp4)(F.audioCodec,"audio")}),Object(i.assignTrackIdsByGroup)(S)),x.subtitles&&(b=x.subtitles,Object(i.assignTrackIdsByGroup)(b)),T.length>0){_=T[0].bitrate,T.sort(function(F,K){return F.bitrate-K.bitrate}),this._levels=T;for(var B=0;B<T.length;B++)if(T[B].bitrate===_){this._firstLevel=B,this.log("manifest loaded, "+T.length+" level(s) found, first bitrate: "+_);break}var R=M&&!N,H={levels:T,audioTracks:S,subtitleTracks:b,firstLevel:this._firstLevel,stats:x.stats,audio:M,video:N,altAudio:!R&&S.some(function(F){return!!F.url})};this.hls.trigger(m.Events.MANIFEST_PARSED,H),(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"})},g.onError=function(y,x){if(f.prototype.onError.call(this,y,x),x.fatal)return;var T=x.context,S=this._levels[this.currentLevelIndex];if(T&&(T.type===o.PlaylistContextType.AUDIO_TRACK&&S.audioGroupIds&&T.groupId===S.audioGroupIds[S.urlId]||T.type===o.PlaylistContextType.SUBTITLE_TRACK&&S.textGroupIds&&T.groupId===S.textGroupIds[S.urlId])){this.redundantFailover(this.currentLevelIndex);return}var b=!1,_=!0,I;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&&(I=x.frag.level)):I=x.frag.level}break;case h.ErrorDetails.LEVEL_LOAD_ERROR:case h.ErrorDetails.LEVEL_LOAD_TIMEOUT:T&&(T.deliveryDirectives&&(_=!1),I=T.level),b=!0;break;case h.ErrorDetails.REMUX_ALLOC_ERROR:I=x.level,b=!0;break}I!==void 0&&this.recoverLevel(x,I,b,_)},g.recoverLevel=function(y,x,T,S){var b=y.details,_=this._levels[x];if(_.loadError++,T){var I=this.retryLoadingOrFail(y);if(I)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(S){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)}}},g.redundantFailover=function(y){var x=this._levels[y],T=x.url.length;if(T>1){var S=(x.urlId+1)%T;this.warn("Switching to redundant URL-id "+S),this._levels.forEach(function(b){b.urlId=S}),this.level=y}},g.onFragLoaded=function(y,x){var T=x.frag;if(T!==void 0&&T.type===o.PlaylistLevelType.MAIN){var S=this._levels[T.level];S!==void 0&&(S.fragmentError=0,S.loadError=0)}},g.onLevelLoaded=function(y,x){var T,S=x.level,b=x.details,_=this._levels[S];if(!_){var I;this.warn("Invalid level index "+S),(I=x.deliveryDirectives)!==null&&I!==void 0&&I.skip&&(b.deltaUpdateFailed=!0);return}S===this.currentLevelIndex?(_.fragmentError===0&&(_.loadError=0,this.retryCount=0),this.playlistLoaded(S,x,_.details)):(T=x.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(b.deltaUpdateFailed=!0)},g.onAudioTrackSwitched=function(y,x){var T=this.hls.levels[this.currentLevelIndex];if(!T)return;if(T.audioGroupIds){for(var S=-1,b=this.hls.audioTracks[x.id].groupId,_=0;_<T.audioGroupIds.length;_++)if(T.audioGroupIds[_]===b){S=_;break}S!==T.urlId&&(T.urlId=S,this.startLoad())}},g.loadPlaylist=function(y){var x=this.currentLevelIndex,T=this._levels[x];if(this.canLoad&&T&&T.url.length>0){var S=T.urlId,b=T.url[S];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 "+S+" "+b),this.clearTimer(),this.hls.trigger(m.Events.LEVEL_LOADING,{url:b,level:x,id:S,deliveryDirectives:y||null})}},g.removeLevel=function(y,x){var T=function(_,I){return I!==x},S=this._levels.filter(function(b,_){return _!==y?!0:b.url.length>1&&x!==void 0?(b.url=b.url.filter(T),b.audioGroupIds&&(b.audioGroupIds=b.audioGroupIds.filter(T)),b.textGroupIds&&(b.textGroupIds=b.textGroupIds.filter(T)),b.urlId=0,!0):!1}).map(function(b,_){var I=b.details;return I!=null&&I.fragments&&I.fragments.forEach(function(L){L.level=_}),b});this._levels=S,this.hls.trigger(m.Events.LEVELS_UPDATED,{levels:S})},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,T=this._levels;if(T.length===0)return;if(this.currentLevelIndex===y&&(x=T[y])!==null&&x!==void 0&&x.details)return;if(y<0||y>=T.length){var S=y<0;if(this.hls.trigger(m.Events.ERROR,{type:h.ErrorTypes.OTHER_ERROR,details:h.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:S,reason:"invalid level idx"}),S)return;y=Math.min(y,T.length-1)}this.clearTimer();var b=this.currentLevelIndex,_=T[b],I=T[y];this.log("switching to level "+y+" from "+b),this.currentLevelIndex=y;var L=n({},I,{level:y,maxBitrate:I.maxBitrate,uri:I.uri,urlId:I.urlId});delete L._urlId,this.hls.trigger(m.Events.LEVEL_SWITCHING,L);var D=I.details;if(!D||D.live){var N=this.switchParams(I.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,C,v){"use strict";v.r(C),v.d(C,"addGroupId",function(){return h}),v.d(C,"assignTrackIdsByGroup",function(){return c}),v.d(C,"updatePTS",function(){return i}),v.d(C,"updateFragPTSDTS",function(){return o}),v.d(C,"mergeDetails",function(){return n}),v.d(C,"mapPartIntersection",function(){return e}),v.d(C,"mapFragmentIntersection",function(){return s}),v.d(C,"adjustSliding",function(){return t}),v.d(C,"addSliding",function(){return a}),v.d(C,"computeReloadInterval",function(){return l}),v.d(C,"getFragmentWithSN",function(){return u}),v.d(C,"getPartWith",function(){return f});var w=v("./src/polyfills/number.ts"),m=v("./src/utils/logger.ts");function h(p,g,A){switch(g){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 g={};p.forEach(function(A){var y=A.groupId||"";A.id=g[y]=g[y]||0,g[y]++})}function i(p,g,A){var y=p[g],x=p[A];r(y,x)}function r(p,g){var A=g.startPTS;if(Object(w.isFiniteNumber)(A)){var y=0,x;g.sn>p.sn?(y=A-p.start,x=p):(y=p.start-A,x=g),x.duration!==y&&(x.duration=y)}else if(g.sn>p.sn){var T=p.cc===g.cc;T&&p.minEndPTS?g.start=p.start+(p.minEndPTS-p.start):g.start=p.start+p.duration}else g.start=Math.max(p.start-g.duration,0)}function o(p,g,A,y,x,T){var S=y-A;S<=0&&(m.logger.warn("Fragment should have a positive duration",g),y=A+g.duration,T=x+g.duration);var b=A,_=y,I=g.startPTS,L=g.endPTS;if(Object(w.isFiniteNumber)(I)){var D=Math.abs(I-A);Object(w.isFiniteNumber)(g.deltaPTS)?g.deltaPTS=Math.max(D,g.deltaPTS):g.deltaPTS=D,b=Math.max(A,I),A=Math.min(A,I),x=Math.min(x,g.startDTS),_=Math.min(y,L),y=Math.max(y,L),T=Math.max(T,g.endDTS)}g.duration=y-A;var N=A-g.start;g.appendedPTS=y,g.start=g.startPTS=A,g.maxStartPTS=b,g.startDTS=x,g.endPTS=y,g.minEndPTS=_,g.endDTS=T;var M=g.sn;if(!p||M<p.startSN||M>p.endSN)return 0;var B,R=M-p.startSN,H=p.fragments;for(H[R]=g,B=R;B>0;B--)r(H[B],H[B-1]);for(B=R;B<H.length-1;B++)r(H[B],H[B+1]);return p.fragmentHint&&r(H[H.length-1],p.fragmentHint),p.PTSKnown=p.alignedSliding=!0,N}function n(p,g){for(var A=null,y=p.fragments,x=y.length-1;x>=0;x--){var T=y[x].initSegment;if(T){A=T;break}}p.fragmentHint&&delete p.fragmentHint.endPTS;var S=0,b;if(s(p,g,function(B,R){B.relurl&&(S=B.cc-R.cc),Object(w.isFiniteNumber)(B.startPTS)&&Object(w.isFiniteNumber)(B.endPTS)&&(R.start=R.startPTS=B.startPTS,R.startDTS=B.startDTS,R.appendedPTS=B.appendedPTS,R.maxStartPTS=B.maxStartPTS,R.endPTS=B.endPTS,R.endDTS=B.endDTS,R.minEndPTS=B.minEndPTS,R.duration=B.endPTS-B.startPTS,R.duration&&(b=R),g.PTSKnown=g.alignedSliding=!0),R.elementaryStreams=B.elementaryStreams,R.loader=B.loader,R.stats=B.stats,R.urlId=B.urlId,B.initSegment&&(R.initSegment=B.initSegment,A=B.initSegment)}),A){var _=g.fragmentHint?g.fragments.concat(g.fragmentHint):g.fragments;_.forEach(function(B){var R;(!B.initSegment||B.initSegment.relurl===((R=A)===null||R===void 0?void 0:R.relurl))&&(B.initSegment=A)})}if(g.skippedSegments&&(g.deltaUpdateFailed=g.fragments.some(function(B){return!B}),g.deltaUpdateFailed)){m.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var I=g.skippedSegments;I--;)g.fragments.shift();g.startSN=g.fragments[0].sn,g.startCC=g.fragments[0].cc}var L=g.fragments;if(S){m.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D<L.length;D++)L[D].cc+=S}g.skippedSegments&&(g.startCC=g.fragments[0].cc),e(p.partList,g.partList,function(B,R){R.elementaryStreams=B.elementaryStreams,R.stats=B.stats}),b?o(g,b,b.startPTS,b.endPTS,b.startDTS,b.endDTS):t(p,g),L.length&&(g.totalduration=g.edge-L[0].start),g.driftStartTime=p.driftStartTime,g.driftStart=p.driftStart;var N=g.advancedDateTime;if(g.advanced&&N){var M=g.edge;g.driftStart||(g.driftStartTime=N,g.driftStart=M),g.driftEndTime=N,g.driftEnd=M}else g.driftEndTime=p.driftEndTime,g.driftEnd=p.driftEnd,g.advancedDateTime=p.advancedDateTime}function e(p,g,A){if(p&&g)for(var y=0,x=0,T=p.length;x<=T;x++){var S=p[x],b=g[x+y];S&&b&&S.index===b.index&&S.fragment.sn===b.fragment.sn?A(S,b):y--}}function s(p,g,A){for(var y=g.skippedSegments,x=Math.max(p.startSN,g.startSN)-g.startSN,T=(p.fragmentHint?1:0)+(y?g.endSN:Math.min(p.endSN,g.endSN))-g.startSN,S=g.startSN-p.startSN,b=g.fragmentHint?g.fragments.concat(g.fragmentHint):g.fragments,_=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments,I=x;I<=T;I++){var L=_[S+I],D=b[I];y&&!D&&I<y&&(D=g.fragments[I]=L),L&&D&&A(L,D)}}function t(p,g){var A=g.startSN+g.skippedSegments-p.startSN,y=p.fragments;if(A<0||A>=y.length)return;a(g,y[A].start)}function a(p,g){if(g){for(var A=p.fragments,y=p.skippedSegments;y<A.length;y++)A[y].start+=g;p.fragmentHint&&(p.fragmentHint.start+=g)}}function l(p,g){var A=1e3*p.levelTargetDuration,y=A/2,x=p.age,T=x>0&&x<A*3,S=g.loading.end-g.loading.start,b,_=p.availabilityDelay;if(p.updated===!1)if(T){var I=333*p.misses;b=Math.max(Math.min(y,S*2),I),p.availabilityDelay=(p.availabilityDelay||0)+b}else b=y;else T?(_=Math.min(_||A/2,x),p.availabilityDelay=_,b=_+A-x):b=A-S;return Math.round(b)}function u(p,g,A){if(!p||!p.details)return null;var y=p.details,x=y.fragments[g-y.startSN];return x||(x=y.fragmentHint,x&&x.sn===g?x:g<y.startSN&&A&&A.sn===g?A:null)}function f(p,g,A){if(!p||!p.details)return null;var y=p.details.partList;if(y)for(var x=y.length;x--;){var T=y[x];if(T.index===A&&T.fragment.sn===g)return T}return null}},"./src/controller/stream-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return y});var w=v("./src/polyfills/number.ts"),m=v("./src/controller/base-stream-controller.ts"),h=v("./src/is-supported.ts"),c=v("./src/events.ts"),i=v("./src/utils/buffer-helper.ts"),r=v("./src/controller/fragment-tracker.ts"),o=v("./src/types/loader.ts"),n=v("./src/loader/fragment.ts"),e=v("./src/demux/transmuxer-interface.ts"),s=v("./src/types/transmuxer.ts"),t=v("./src/controller/gap-controller.ts"),a=v("./src/errors.ts"),l=v("./src/utils/logger.ts");function u(x,T){for(var S=0;S<T.length;S++){var b=T[S];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}function f(x,T,S){return T&&u(x.prototype,T),S&&u(x,S),x}function p(x,T){x.prototype=Object.create(T.prototype),x.prototype.constructor=x,g(x,T)}function g(x,T){return g=Object.setPrototypeOf||function(b,_){return b.__proto__=_,b},g(x,T)}var A=100,y=function(x){p(T,x);function T(b,_){var I;return I=x.call(this,b,_,"[stream-controller]")||this,I.audioCodecSwap=!1,I.gapController=null,I.level=-1,I._forceStartLoad=!1,I.altAudio=!1,I.audioOnly=!1,I.fragPlaying=null,I.onvplaying=null,I.onvseeked=null,I.fragLastKbps=0,I.stalled=!1,I.couldBacktrack=!1,I.audioCodecSwitch=!1,I.videoBuffer=null,I._registerListeners(),I}var S=T.prototype;return S._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)},S._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)},S.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},S.startLoad=function(_){if(this.levels){var I=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}I>0&&_===-1&&(this.log("Override startPosition with lastCurrentTime @"+I.toFixed(3)),_=I),this.state=m.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()}else this._forceStartLoad=!0,this.state=m.State.STOPPED},S.stopLoad=function(){this._forceStartLoad=!1,x.prototype.stopLoad.call(this)},S.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_LEVEL:{var _,I=this.levels,L=this.level,D=I==null||((_=I[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(),B=this.retryDate;(!B||M>=B||(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()},S.onTickEnd=function(){x.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},S.doTickIdle=function(){var _,I,L=this.hls,D=this.levelLastLoaded,N=this.levels,M=this.media,B=L.config,R=L.nextLoadLevel;if(D===null||!M&&(this.startFragRequested||!B.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!N||!N[R])return;var H=N[R];this.level=L.nextLoadLevel=R;var F=H.details;if(!F||this.state===m.State.WAITING_LEVEL||F.live&&this.levelLastLoaded!==R){this.state=m.State.WAITING_LEVEL;return}var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:M,o.PlaylistLevelType.MAIN);if(K===null)return;var U=K.len,V=this.getMaxBufferLength(H.maxBitrate);if(U>=V)return;if(this._streamEnded(K,F)){var z={};this.altAudio&&(z.type="video"),this.hls.trigger(c.Events.BUFFER_EOS,z),this.state=m.State.ENDED;return}var Y=K.end,q=this.getNextFragment(Y,F);if(this.couldBacktrack&&!this.fragPrevious&&q&&q.sn!=="initSegment"){var ce=q.sn-F.startSN;ce>1&&(q=F.fragments[ce-1],this.fragmentTracker.removeFragment(q))}if(q&&this.fragmentTracker.getState(q)===r.FragmentState.OK&&this.nextLoadPosition>Y){var ie=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(M,ie,o.PlaylistLevelType.MAIN),q=this.getNextFragment(this.nextLoadPosition,F)}if(!q)return;q.initSegment&&!q.initSegment.data&&!this.bitrateTest&&(q=q.initSegment),((_=q.decryptdata)===null||_===void 0?void 0:_.keyFormat)==="identity"&&!((I=q.decryptdata)!==null&&I!==void 0&&I.key)?this.loadKey(q,F):this.loadFragment(q,F,Y)},S.loadFragment=function(_,I,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,_,I,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()},S.getAppendedFrag=function(_){var I=this.fragmentTracker.getAppendedFrag(_,o.PlaylistLevelType.MAIN);return I&&"fragment"in I?I.fragment:I},S.getBufferedFrag=function(_){return this.fragmentTracker.getBufferedFrag(_,o.PlaylistLevelType.MAIN)},S.followingBufferedFrag=function(_){return _?this.getBufferedFrag(_.end+.5):null},S.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},S.nextLevelSwitch=function(){var _=this.levels,I=this.media;if(I!=null&&I.readyState){var L,D=this.getAppendedFrag(I.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!I.paused&&_){var N=this.hls.nextLoadLevel,M=_[N],B=this.fragLastKbps;B&&this.fragCurrent?L=this.fragCurrent.duration*M.maxBitrate/(1e3*B)+1:L=0}else L=0;var R=this.getBufferedFrag(I.currentTime+L);if(R){var H=this.followingBufferedFrag(R);if(H){this.abortCurrentFrag();var F=H.maxStartPTS?H.maxStartPTS:H.start,K=H.duration,U=Math.max(R.end,F+Math.min(Math.max(K-this.config.maxFragLookUpTolerance,K*.5),K*.75));this.flushMainBuffer(U,Number.POSITIVE_INFINITY)}}}},S.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()},S.flushMainBuffer=function(_,I){x.prototype.flushMainBuffer.call(this,_,I,this.altAudio?"video":null)},S.onMediaAttached=function(_,I){x.prototype.onMediaAttached.call(this,_,I);var L=I.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 t.default(this.config,L,this.fragmentTracker,this.hls)},S.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)},S.onMediaPlaying=function(){this.tick()},S.onMediaSeeked=function(){var _=this.media,I=_?_.currentTime:null;Object(w.isFiniteNumber)(I)&&this.log("Media seeked to "+I.toFixed(3)),this.tick()},S.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},S.onManifestParsed=function(_,I){var L=!1,D=!1,N;I.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=I.levels,this.startFragRequested=!1},S.onLevelLoading=function(_,I){var L=this.levels;if(!L||this.state!==m.State.IDLE)return;var D=L[I.level];(!D.details||D.details.live&&this.levelLastLoaded!==I.level||this.waitForCdnTuneIn(D.details))&&(this.state=m.State.WAITING_LEVEL)},S.onLevelLoaded=function(_,I){var L,D=this.levels,N=I.level,M=I.details,B=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:"+B);var R=this.fragCurrent;R&&(this.state===m.State.FRAG_LOADING||this.state===m.State.FRAG_LOADING_WAITING_RETRY)&&(R.level!==I.level&&R.loader&&(this.state=m.State.IDLE,R.loader.abort()));var H=D[N],F=0;if(M.live||(L=H.details)!==null&&L!==void 0&&L.live){if(M.fragments[0]||(M.deltaUpdateFailed=!0),M.deltaUpdateFailed)return;F=this.alignPlaylists(M,H.details)}if(H.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,F),this.tick()},S._handleFragmentLoadProgress=function(_){var I,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 B=M[L.level],R=B.details;if(!R){this.warn("Dropping fragment "+L.sn+" of level "+L.level+" after level details were reset");return}var H=B.videoCodec,F=R.PTSKnown||!R.live,K=(I=L.initSegment)===null||I===void 0?void 0:I.data,U=this._getAudioCodec(B),V=this.transmuxer=this.transmuxer||new e.default(this.hls,o.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),z=D?D.index:-1,Y=z!==-1,q=new s.ChunkMetadata(L.level,L.sn,L.stats.chunkCount,N.byteLength,z,Y),ce=this.initPTS[L.cc];V.push(N,K,U,H,L,D,R.totalduration,F,q,ce)},S.onAudioTrackSwitching=function(_,I){var L=this.altAudio,D=!!I.url,N=I.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 B=this.hls;L&&B.trigger(c.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),B.trigger(c.Events.AUDIO_TRACK_SWITCHED,{id:N})}},S.onAudioTrackSwitched=function(_,I){var L=I.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()},S.onBufferCreated=function(_,I){var L=I.tracks,D,N,M=!1;for(var B in L){var R=L[B];if(R.id==="main"){if(N=B,D=R,B==="video"){var H=L[B];H&&(this.videoBuffer=H.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},S.onFragBuffered=function(_,I){var L=I.frag,D=I.part;if(L&&L.type!==o.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)},S.onError=function(_,I){switch(I.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(o.PlaylistLevelType.MAIN,I);break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==m.State.ERROR&&(I.fatal?(this.warn(""+I.details),this.state=m.State.ERROR):!I.levelRetry&&this.state===m.State.WAITING_LEVEL&&(this.state=m.State.IDLE));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(I.parent==="main"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var L=!0,D=this.getFwdBufferInfo(this.media,o.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}},S.checkBuffer=function(){var _=this.media,I=this.gapController;if(!_||!I||!_.readyState)return;var L=i.BufferHelper.getBuffered(_);!this.loadedmetadata&&L.length?(this.loadedmetadata=!0,this.seekToStartPos()):I.poll(this.lastCurrentTime),this.lastCurrentTime=_.currentTime},S.onFragLoadEmergencyAborted=function(){this.state=m.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},S.onBufferFlushed=function(_,I){var L=I.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,o.PlaylistLevelType.MAIN)}},S.onLevelsUpdated=function(_,I){this.levels=I.levels},S.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},S.seekToStartPos=function(){var _=this.media,I=_.currentTime,L=this.startPosition;if(L>=0&&I<L){if(_.seeking){l.logger.log("could not seek to "+L+", already seeking at "+I);return}var D=i.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 "+I),_.currentTime=L}},S._getAudioCodec=function(_){var I=this.config.defaultAudioCodec||_.audioCodec;return this.audioCodecSwap&&I&&(this.log("Swapping audio codec"),I.indexOf("mp4a.40.5")!==-1?I="mp4a.40.2":I="mp4a.40.5"),I},S._loadBitrateTestFrag=function(_){var I=this;this._doFragLoad(_).then(function(L){var D=I.hls;if(!L||D.nextLoadLevel||I.fragContextChanged(_))return;I.fragLoadError=0,I.state=m.State.IDLE,I.startFragRequested=!1,I.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)})},S._handleTransmuxComplete=function(_){var I,L="main",D=this.hls,N=_.remuxResult,M=_.chunkMeta,B=this.getCurrentContext(M);if(!B){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=B.frag,H=B.part,F=B.level,K=N.video,U=N.text,V=N.id3,z=N.initSegment,Y=this.altAudio?void 0:N.audio;if(this.fragContextChanged(R))return;if(this.state=m.State.PARSING,z){z.tracks&&(this._bufferInitSegment(F,z.tracks,R,M),D.trigger(c.Events.FRAG_PARSING_INIT_SEGMENT,{frag:R,id:L,tracks:z.tracks}));var q=z.initPTS,ce=z.timescale;Object(w.isFiniteNumber)(q)&&(this.initPTS[R.cc]=q,D.trigger(c.Events.INIT_PTS_FOUND,{frag:R,id:L,initPTS:q,timescale:ce}))}if(K&&N.independent!==!1){if(F.details){var ie=K.startPTS,ve=K.endPTS,Ee=K.startDTS,Le=K.endDTS;if(H)H.elementaryStreams[K.type]={startPTS:ie,endPTS:ve,startDTS:Ee,endDTS:Le};else if(K.firstKeyFrame&&K.independent&&(this.couldBacktrack=!0),K.dropped&&K.independent){var He=this.getLoadPosition()+this.config.maxBufferHole;if(He<ie){this.backtrack(R);return}R.setElementaryStreamInfo(K.type,R.start,ve,R.start,Le,!0)}R.setElementaryStreamInfo(K.type,ie,ve,Ee,Le),this.bufferFragmentData(K,R,H,M)}}else if(N.independent===!1){this.backtrack(R);return}if(Y){var ge=Y.startPTS,Fe=Y.endPTS,Q=Y.startDTS,fe=Y.endDTS;H&&(H.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:ge,endPTS:Fe,startDTS:Q,endDTS:fe}),R.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,ge,Fe,Q,fe),this.bufferFragmentData(Y,R,H,M)}if(V!=null&&(I=V.samples)!==null&&I!==void 0&&I.length){var Je={frag:R,id:L,samples:V.samples};D.trigger(c.Events.FRAG_PARSING_METADATA,Je)}if(U){var ne={frag:R,id:L,samples:U.samples};D.trigger(c.Events.FRAG_PARSING_USERDATA,ne)}},S._bufferInitSegment=function(_,I,L,D){var N=this;if(this.state!==m.State.PARSING)return;this.audioOnly=!!I.audio&&!I.video,this.altAudio&&!this.audioOnly&&delete I.audio;var M=I.audio,B=I.video,R=I.audiovideo;if(M){var H=_.audioCodec,F=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(H&&(H.indexOf("mp4a.40.5")!==-1?H="mp4a.40.2":H="mp4a.40.5"),M.metadata.channelCount!==1&&F.indexOf("firefox")===-1&&(H="mp4a.40.5")),F.indexOf("android")!==-1&&M.container!=="audio/mpeg"&&(H="mp4a.40.2",this.log("Android: force audio codec to "+H)),_.audioCodec&&_.audioCodec!==H&&this.log('Swapping manifest audio codec "'+_.audioCodec+'" for "'+H+'"'),M.levelCodec=H,M.id="main",this.log("Init audio buffer, container:"+M.container+", codecs[selected/level/parsed]=["+(H||"")+"/"+(_.audioCodec||"")+"/"+M.codec+"]")}B&&(B.levelCodec=_.videoCodec,B.id="main",this.log("Init video buffer, container:"+B.container+", codecs[level/parsed]=["+(_.videoCodec||"")+"/"+B.codec+"]")),R&&this.log("Init audiovideo buffer, container:"+R.container+", codecs[level/parsed]=["+(_.attrs.CODECS||"")+"/"+R.codec+"]"),this.hls.trigger(c.Events.BUFFER_CODECS,I),Object.keys(I).forEach(function(K){var U=I[K],V=U.initSegment;V!=null&&V.byteLength&&N.hls.trigger(c.Events.BUFFER_APPENDING,{type:K,data:V,frag:L,part:null,chunkMeta:D,parent:L.type})}),this.tick()},S.backtrack=function(_){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(_);var I=this.fragmentTracker.backtrack(_);this.fragPrevious=null,this.nextLoadPosition=_.start,I?this.resetFragmentLoading(_):this.state=m.State.BACKTRACKING},S.checkFragmentChanged=function(){var _=this.media,I=null;if(_&&_.readyState>1&&_.seeking===!1){var L=_.currentTime;if(i.BufferHelper.isBuffered(_,L)?I=this.getAppendedFrag(L):i.BufferHelper.isBuffered(_,L+.1)&&(I=this.getAppendedFrag(L+.1)),I){var D=this.fragPlaying,N=I.level;(!D||I.sn!==D.sn||D.level!==N||I.urlId!==D.urlId)&&(this.hls.trigger(c.Events.FRAG_CHANGED,{frag:I}),(!D||D.level!==N)&&this.hls.trigger(c.Events.LEVEL_SWITCHED,{level:N}),this.fragPlaying=I)}}},f(T,[{key:"nextLevel",get:function(){var _=this.nextBufferedFrag;return _?_.level:-1}},{key:"currentLevel",get:function(){var _=this.media;if(_){var I=this.getAppendedFrag(_.currentTime);if(I)return I.level}return-1}},{key:"nextBufferedFrag",get:function(){var _=this.media;if(_){var I=this.getAppendedFrag(_.currentTime);return this.followingBufferedFrag(I)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),T}(m.default)},"./src/controller/subtitle-stream-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"SubtitleStreamController",function(){return p});var w=v("./src/events.ts"),m=v("./src/utils/logger.ts"),h=v("./src/utils/buffer-helper.ts"),c=v("./src/controller/fragment-finders.ts"),i=v("./src/utils/discontinuities.ts"),r=v("./src/controller/level-helper.ts"),o=v("./src/controller/fragment-tracker.ts"),n=v("./src/controller/base-stream-controller.ts"),e=v("./src/types/loader.ts"),s=v("./src/types/level.ts");function t(g,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(g,x.key,x)}}function a(g,A,y){return A&&t(g.prototype,A),y&&t(g,y),g}function l(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,u(g,A)}function u(g,A){return u=Object.setPrototypeOf||function(x,T){return x.__proto__=T,x},u(g,A)}var f=500,p=function(g){l(A,g);function A(x,T){var S;return S=g.call(this,x,T,"[subtitle-stream-controller]")||this,S.levels=[],S.currentTrackId=-1,S.tracksBuffered=[],S.mainDetails=null,S._registerListeners(),S}var y=A.prototype;return y.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},y._registerListeners=function(){var T=this.hls;T.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.on(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.on(w.Events.ERROR,this.onError,this),T.on(w.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),T.on(w.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),T.on(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),T.on(w.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),T.on(w.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y._unregisterListeners=function(){var T=this.hls;T.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.off(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.off(w.Events.ERROR,this.onError,this),T.off(w.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),T.off(w.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),T.off(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),T.off(w.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),T.off(w.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(T,S){this.mainDetails=S.details},y.onSubtitleFragProcessed=function(T,S){var b=S.frag,_=S.success;if(this.fragPrevious=b,this.state=n.State.IDLE,!_)return;var I=this.tracksBuffered[this.currentTrackId];if(!I)return;for(var L,D=b.start,N=0;N<I.length;N++)if(D>=I[N].start&&D<=I[N].end){L=I[N];break}var M=b.start+b.duration;L?L.end=M:(L={start:D,end:M},I.push(L)),this.fragmentTracker.fragBuffered(b)},y.onBufferFlushing=function(T,S){var b=S.startOffset,_=S.endOffset;if(b===0&&_!==Number.POSITIVE_INFINITY){var I=this.currentTrackId,L=this.levels;if(!L.length||!L[I]||!L[I].details)return;var D=L[I].details,N=D.targetduration,M=_-N;if(M<=0)return;S.endOffsetSubtitles=Math.max(0,M),this.tracksBuffered.forEach(function(B){for(var R=0;R<B.length;){if(B[R].end<=M){B.shift();continue}else if(B[R].start<M)B[R].start=M;else break;R++}}),this.fragmentTracker.removeFragmentsInRange(b,M,e.PlaylistLevelType.SUBTITLE)}},y.onError=function(T,S){var b,_=S.frag;if(!_||_.type!==e.PlaylistLevelType.SUBTITLE)return;(b=this.fragCurrent)!==null&&b!==void 0&&b.loader&&this.fragCurrent.loader.abort(),this.state=n.State.IDLE},y.onSubtitleTracksUpdated=function(T,S){var b=this,_=S.subtitleTracks;this.tracksBuffered=[],this.levels=_.map(function(I){return new s.Level(I)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(I){b.tracksBuffered[I.id]=[]}),this.mediaBuffer=null},y.onSubtitleTrackSwitch=function(T,S){if(this.currentTrackId=S.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(T,S){var b,_=S.details,I=S.id,L=this.currentTrackId,D=this.levels;if(!D.length)return;var N=D[L];if(I>=D.length||I!==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 B=M.fragments[0];if(!N.details)_.hasProgramDateTime&&M.hasProgramDateTime?Object(i.alignMediaPlaylistByPDT)(_,M):B&&Object(r.addSliding)(_,B.start);else{var R=this.alignPlaylists(_,N.details);R===0&&B&&Object(r.addSliding)(_,B.start)}}if(N.details=_,this.levelLastLoaded=I,this.tick(),_.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var H=Object(c.findFragmentByPTS)(null,_.fragments,this.media.currentTime,0);H||(this.warn("Subtitle playlist not aligned with playback"),N.details=void 0)}},y._handleFragmentLoadComplete=function(T){var S=T.frag,b=T.payload,_=S.decryptdata,I=this.hls;if(this.fragContextChanged(S))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();I.trigger(w.Events.FRAG_DECRYPTED,{frag:S,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 T,S=this.currentTrackId,b=this.levels;if(!b.length||!b[S]||!b[S].details)return;var _=b[S].details,I=_.targetduration,L=this.config,D=this.media,N=h.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-I,L.maxBufferHole),M=N.end,B=N.len,R=this.getMaxBufferLength()+I;if(B>R)return;console.assert(_,"Subtitle track details are defined on idle subtitle stream controller tick");var H=_.fragments,F=H.length,K=_.edge,U,V=this.fragPrevious;if(M<K){var z=L.maxFragLookUpTolerance;V&&_.hasProgramDateTime&&(U=Object(c.findFragmentByPDT)(H,V.endProgramDateTime,z)),U||(U=Object(c.findFragmentByPTS)(V,H,M,z),!U&&V&&V.start<H[0].start&&(U=H[0]))}else U=H[F-1];(T=U)!==null&&T!==void 0&&T.encrypted?(m.logger.log("Loading key for "+U.sn),this.state=n.State.KEY_LOADING,this.hls.trigger(w.Events.KEY_LOADING,{frag:U})):U&&this.fragmentTracker.getState(U)===o.FragmentState.NOT_LOADED&&this.loadFragment(U,_,M)}},y.loadFragment=function(T,S,b){this.fragCurrent=T,g.prototype.loadFragment.call(this,T,S,b)},a(A,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),A}(n.default)},"./src/controller/subtitle-track-controller.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/events.ts"),m=v("./src/utils/texttrack-utils.ts"),h=v("./src/controller/base-playlist-controller.ts"),c=v("./src/types/loader.ts");function i(t,a){for(var l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,l){return a&&i(t.prototype,a),l&&i(t,l),t}function o(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,n(t,a)}function n(t,a){return n=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u},n(t,a)}var e=function(t){o(a,t);function a(u){var f;return f=t.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=a.prototype;return l.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},l.registerListeners=function(){var f=this.hls;f.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(w.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.on(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.on(w.Events.ERROR,this.onError,this)},l.unregisterListeners=function(){var f=this.hls;f.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(w.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(w.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(w.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.off(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.off(w.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 g=p.id,A=p.details,y=this.trackId,x=this.tracksInGroup[y];if(!x){this.warn("Invalid subtitle track id "+g);return}var T=x.details;x.details=p.details,this.log("subtitle track "+g+" loaded ["+A.startSN+"-"+A.endSN+"]"),g===this.trackId&&(this.retryCount=0,this.playlistLoaded(g,p,T))},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 g=p.textGroupIds[p.urlId];if(this.groupId!==g){var A=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(S){return!g||S.groupId===g});this.tracksInGroup=y;var x=this.findTrackId(A==null?void 0:A.name)||this.findTrackId();this.groupId=g;var T={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+g+'" group-id'),this.hls.trigger(w.Events.SUBTITLE_TRACKS_UPDATED,T),x!==-1&&this.setSubtitleTrack(x,A)}},l.findTrackId=function(f){for(var p=this.tracksInGroup,g=0;g<p.length;g++){var A=p[g];if((!this.selectDefaultTrack||A.default)&&(!f||f===A.name))return A.id}return-1},l.onError=function(f,p){if(t.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 g=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 "+g),this.hls.trigger(w.Events.SUBTITLE_TRACK_LOADING,{url:y,id:g,groupId:A,deliveryDirectives:f||null})}},l.toggleTrackModes=function(f){var p=this,g=this.media,A=this.subtitleDisplay,y=this.trackId;if(!g)return;var x=s(g.textTracks),T=x.filter(function(_){return _.groupId===p.groupId});if(f===-1)[].slice.call(x).forEach(function(_){_.mode="disabled"});else{var S=T[y];S&&(S.mode="disabled")}var b=T[f];b&&(b.mode=A?"showing":"hidden")},l.setSubtitleTrack=function(f,p){var g,A=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=f;return}if(this.trackId!==f&&this.toggleTrackModes(f),this.trackId===f&&(f===-1||(g=A[f])!==null&&g!==void 0&&g.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,T=y.groupId,S=T===void 0?"":T,b=y.name,_=y.type,I=y.url;this.hls.trigger(w.Events.SUBTITLE_TRACK_SWITCH,{id:x,groupId:S,name:b,type:_,url:I});var L=this.switchParams(y.url,p==null?void 0:p.details);this.loadPlaylist(L)}else this.hls.trigger(w.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),g=0;g<p.length;g++)if(p[g].mode==="hidden")f=g;else if(p[g].mode==="showing"){f=g;break}this.subtitleTrack!==f&&(this.subtitleTrack=f)},r(a,[{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)}}]),a}(h.default);function s(t){for(var a=[],l=0;l<t.length;l++){var u=t[l];u.kind==="subtitles"&&u.label&&a.push(t[l])}return a}C.default=e},"./src/controller/timeline-controller.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"TimelineController",function(){return s});var w=v("./src/polyfills/number.ts"),m=v("./src/events.ts"),h=v("./src/utils/cea-608-parser.ts"),c=v("./src/utils/output-filter.ts"),i=v("./src/utils/webvtt-parser.ts"),r=v("./src/utils/texttrack-utils.ts"),o=v("./src/utils/imsc1-ttml-parser.ts"),n=v("./src/types/loader.ts"),e=v("./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 g=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,g,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 g=this.hls;g.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),g.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),g.off(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),g.off(m.Events.FRAG_LOADING,this.onFragLoading,this),g.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),g.off(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),g.off(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),g.off(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),g.off(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),g.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},f.addCues=function(g,A,y,x,T){for(var S=!1,b=T.length;b--;){var _=T[b],I=a(_[0],_[1],A,y);if(I>=0&&(_[0]=Math.min(_[0],A),_[1]=Math.max(_[1],y),S=!0,I/(y-A)>.5))return}if(S||T.push([A,y]),this.config.renderTextTracksNatively){var L=this.captionsTracks[g];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:g})}},f.onInitPtsFound=function(g,A){var y=this,x=A.frag,T=A.id,S=A.initPTS,b=A.timescale,_=this.unparsedVttFrags;T==="main"&&(this.initPTS[x.cc]=S,this.timescale[x.cc]=b),_.length&&(this.unparsedVttFrags=[],_.forEach(function(I){y.onFragLoaded(m.Events.FRAG_LOADED,I)}))},f.getExistingTrack=function(g){var A=this.media;if(A)for(var y=0;y<A.textTracks.length;y++){var x=A.textTracks[y];if(x[g])return x}return null},f.createCaptionsTrack=function(g){this.config.renderTextTracksNatively?this.createNativeTrack(g):this.createNonNativeTrack(g)},f.createNativeTrack=function(g){if(this.captionsTracks[g])return;var A=this.captionsProperties,y=this.captionsTracks,x=this.media,T=A[g],S=T.label,b=T.languageCode,_=this.getExistingTrack(g);if(_)y[g]=_,Object(r.clearCurrentCues)(y[g]),Object(r.sendAddTrackEvent)(y[g],x);else{var I=this.createTextTrack("captions",S,b);I&&(I[g]=!0,y[g]=I)}},f.createNonNativeTrack=function(g){if(this.nonNativeCaptionsTracks[g])return;var A=this.captionsProperties[g];if(!A)return;var y=A.label,x={_id:g,label:y,kind:"captions",default:A.media?!!A.media.default:!1,closedCaptions:A.media};this.nonNativeCaptionsTracks[g]=x,this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[x]})},f.createTextTrack=function(g,A,y){var x=this.media;return x?x.addTextTrack(g,A,y):void 0},f.onMediaAttaching=function(g,A){this.media=A.media,this._cleanTracks()},f.onMediaDetaching=function(){var g=this.captionsTracks;Object.keys(g).forEach(function(A){Object(r.clearCurrentCues)(g[A]),delete g[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 g=this.media;if(!g)return;var A=g.textTracks;if(A)for(var y=0;y<A.length;y++)Object(r.clearCurrentCues)(A[y])},f.onSubtitleTracksUpdated=function(g,A){var y=this;this.textTracks=[];var x=A.subtitleTracks||[],T=x.some(function(I){return I.textCodec===o.IMSC1_CODEC});if(this.config.enableWebVTT||T&&this.config.enableIMSC1){var S=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(I,L){var D;if(L<b.length){for(var N=null,M=0;M<b.length;M++)if(t(b[M],I)){N=b[M];break}N&&(D=N)}D?Object(r.clearCurrentCues)(D):(D=y.createTextTrack("subtitles",I.name,I.lang),D&&(D.mode="disabled")),D&&(D.groupId=I.groupId,y.textTracks.push(D))})}else if(!S&&this.tracks&&this.tracks.length){var _=this.tracks.map(function(I){return{label:I.name,kind:I.type.toLowerCase(),default:I.default,subtitleTrack:I}});this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:_})}}},f.onManifestLoaded=function(g,A){var y=this;this.config.enableCEA708Captions&&A.captions&&A.captions.forEach(function(x){var T=/(?:CC|SERVICE)([1-4])/.exec(x.instreamId);if(!T)return;var S="textTrack"+T[1],b=y.captionsProperties[S];if(!b)return;b.label=x.name,x.lang&&(b.languageCode=x.lang),b.media=x})},f.onFragLoading=function(g,A){var y=this.cea608Parser1,x=this.cea608Parser2,T=this.lastSn,S=this.lastPartIndex;if(!this.enabled||!(y&&x))return;if(A.frag.type===n.PlaylistLevelType.MAIN){var b,_,I=A.frag.sn,L=(b=A==null||((_=A.part)===null||_===void 0)?void 0:_.index)!=null?b:-1;I===T+1||I===T&&L===S+1||(y.reset(),x.reset()),this.lastSn=I,this.lastPartIndex=L}},f.onFragLoaded=function(g,A){var y=A.frag,x=A.payload,T=this.initPTS,S=this.unparsedVttFrags;if(y.type===n.PlaylistLevelType.SUBTITLE)if(x.byteLength){if(!Object(w.isFiniteNumber)(T[y.cc])){S.push(A),T.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],I=this.vttCCs;I[y.cc]||(I[y.cc]={start:y.start,prevCC:this.prevCC,new:!0},this.prevCC=y.cc),_&&_.textCodec===o.IMSC1_CODEC?this._parseIMSC1(y,x):this._parseVTTs(y,x,I)}}else this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Empty subtitle payload")})},f._parseIMSC1=function(g,A){var y=this,x=this.hls;Object(o.parseIMSC1)(A,this.initPTS[g.cc],this.timescale[g.cc],function(T){y._appendCues(T,g.level),x.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:g})},function(T){e.logger.log("Failed to parse IMSC1: "+T),x.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:T})})},f._parseVTTs=function(g,A,y){var x=this,T=this.hls;Object(i.parseWebVTT)(A,this.initPTS[g.cc],this.timescale[g.cc],y,g.cc,g.start,function(S){x._appendCues(S,g.level),T.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:g})},function(S){x._fallbackToIMSC1(g,A),e.logger.log("Failed to parse VTT cue: "+S),T.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:S})})},f._fallbackToIMSC1=function(g,A){var y=this,x=this.tracks[g.level];x.textCodec||Object(o.parseIMSC1)(A,this.initPTS[g.cc],this.timescale[g.cc],function(){x.textCodec=o.IMSC1_CODEC,y._parseIMSC1(g,A)},function(){x.textCodec="wvtt"})},f._appendCues=function(g,A){var y=this.hls;if(this.config.renderTextTracksNatively){var x=this.textTracks[A];if(x.mode==="disabled")return;g.forEach(function(b){return Object(r.addCueToTrack)(x,b)})}else{var T=this.tracks[A],S=T.default?"default":"subtitles"+A;y.trigger(m.Events.CUES_PARSED,{type:"subtitles",cues:g,track:S})}},f.onFragDecrypted=function(g,A){var y=A.frag;if(y.type===n.PlaylistLevelType.SUBTITLE){if(!Object(w.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(g,A){var y=this.cea608Parser1,x=this.cea608Parser2;if(!this.enabled||!(y&&x))return;for(var T=0;T<A.samples.length;T++){var S=A.samples[T].bytes;if(S){var b=this.extractCea608Data(S);y.addData(A.samples[T].pts,b[0]),x.addData(A.samples[T].pts,b[1])}}},f.onBufferFlushing=function(g,A){var y=A.startOffset,x=A.endOffset,T=A.endOffsetSubtitles,S=A.type,b=this.media;if(!b||b.currentTime<x)return;if(!S||S==="video"){var _=this.captionsTracks;Object.keys(_).forEach(function(L){return Object(r.removeCuesInRange)(_[L],y,x)})}if(this.config.renderTextTracksNatively&&(y===0&&T!==void 0)){var I=this.textTracks;Object.keys(I).forEach(function(L){return Object(r.removeCuesInRange)(I[L],y,T)})}},f.extractCea608Data=function(g){for(var A=g[0]&31,y=2,x=[[],[]],T=0;T<A;T++){var S=g[y++],b=127&g[y++],_=127&g[y++],I=(4&S)!==0,L=3&S;if(b===0&&_===0)continue;I&&((L===0||L===1)&&(x[L].push(b),x[L].push(_)))}return x},u}();function t(u,f){return u&&u.label===f.name&&!(u.textTrack1||u.textTrack2)}function a(u,f,p,g){return Math.min(f,g)-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,C,v){"use strict";v.r(C),v.d(C,"default",function(){return w});var w=function(){function m(c,i){this.subtle=void 0,this.aesIV=void 0,this.subtle=c,this.aesIV=i}var h=m.prototype;return h.decrypt=function(i,r){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},r,i)},m}()},"./src/crypt/aes-decryptor.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"removePadding",function(){return m}),v.d(C,"default",function(){return h});var w=v("./src/utils/typed-array.ts");function m(c){var i=c.byteLength,r=i&&new DataView(c.buffer).getUint8(i-1);return r?Object(w.sliceUint8)(c,0,i-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 i=c.prototype;return i.uint8ArrayToUint32Array_=function(o){for(var n=new DataView(o),e=new Uint32Array(4),s=0;s<4;s++)e[s]=n.getUint32(s*4);return e},i.initTable=function(){var o=this.sBox,n=this.invSBox,e=this.subMix,s=e[0],t=e[1],a=e[2],l=e[3],u=this.invSubMix,f=u[0],p=u[1],g=u[2],A=u[3],y=new Uint32Array(256),x=0,T=0,S=0;for(S=0;S<256;S++)S<128?y[S]=S<<1:y[S]=S<<1^283;for(S=0;S<256;S++){var b=T^T<<1^T<<2^T<<3^T<<4;b=b>>>8^b&255^99,o[x]=b,n[b]=x;var _=y[x],I=y[_],L=y[I],D=y[b]*257^b*16843008;s[x]=D<<24|D>>>8,t[x]=D<<16|D>>>16,a[x]=D<<8|D>>>24,l[x]=D,D=L*16843009^I*65537^_*257^x*16843008,f[b]=D<<24|D>>>8,p[b]=D<<16|D>>>16,g[b]=D<<8|D>>>24,A[b]=D,x?(x=_^y[y[y[L^_]]],T^=y[y[T]]):x=T=1}},i.expandKey=function(o){for(var n=this.uint8ArrayToUint32Array_(o),e=!0,s=0;s<n.length&&e;)e=n[s]===this.key[s],s++;if(e)return;this.key=n;var t=this.keySize=n.length;if(t!==4&&t!==6&&t!==8)throw new Error("Invalid aes key size="+t);var a=this.ksRows=(t+6+1)*4,l,u,f=this.keySchedule=new Uint32Array(a),p=this.invKeySchedule=new Uint32Array(a),g=this.sBox,A=this.rcon,y=this.invSubMix,x=y[0],T=y[1],S=y[2],b=y[3],_,I;for(l=0;l<a;l++){if(l<t){_=f[l]=n[l];continue}I=_,l%t===0?(I=I<<8|I>>>24,I=g[I>>>24]<<24|g[I>>>16&255]<<16|g[I>>>8&255]<<8|g[I&255],I^=A[l/t|0]<<24):t>6&&l%t===4&&(I=g[I>>>24]<<24|g[I>>>16&255]<<16|g[I>>>8&255]<<8|g[I&255]),f[l]=_=(f[l-t]^I)>>>0}for(u=0;u<a;u++)l=a-u,u&3?I=f[l]:I=f[l-4],u<4||l<=4?p[u]=I:p[u]=x[g[I>>>24]]^T[g[I>>>16&255]]^S[g[I>>>8&255]]^b[g[I&255]],p[u]=p[u]>>>0},i.networkToHostOrderSwap=function(o){return o<<24|(o&65280)<<8|(o&16711680)>>8|o>>>24},i.decrypt=function(o,n,e){for(var s=this.keySize+6,t=this.invKeySchedule,a=this.invSBox,l=this.invSubMix,u=l[0],f=l[1],p=l[2],g=l[3],A=this.uint8ArrayToUint32Array_(e),y=A[0],x=A[1],T=A[2],S=A[3],b=new Int32Array(o),_=new Int32Array(b.length),I,L,D,N,M,B,R,H,F,K,U,V,z,Y,q=this.networkToHostOrderSwap;n<b.length;){for(F=q(b[n]),K=q(b[n+1]),U=q(b[n+2]),V=q(b[n+3]),M=F^t[0],B=V^t[1],R=U^t[2],H=K^t[3],z=4,Y=1;Y<s;Y++)I=u[M>>>24]^f[B>>16&255]^p[R>>8&255]^g[H&255]^t[z],L=u[B>>>24]^f[R>>16&255]^p[H>>8&255]^g[M&255]^t[z+1],D=u[R>>>24]^f[H>>16&255]^p[M>>8&255]^g[B&255]^t[z+2],N=u[H>>>24]^f[M>>16&255]^p[B>>8&255]^g[R&255]^t[z+3],M=I,B=L,R=D,H=N,z=z+4;I=a[M>>>24]<<24^a[B>>16&255]<<16^a[R>>8&255]<<8^a[H&255]^t[z],L=a[B>>>24]<<24^a[R>>16&255]<<16^a[H>>8&255]<<8^a[M&255]^t[z+1],D=a[R>>>24]<<24^a[H>>16&255]<<16^a[M>>8&255]<<8^a[B&255]^t[z+2],N=a[H>>>24]<<24^a[M>>16&255]<<16^a[B>>8&255]<<8^a[R&255]^t[z+3],_[n]=q(I^y),_[n+1]=q(N^x),_[n+2]=q(D^T),_[n+3]=q(L^S),y=F,x=K,T=U,S=V,n=n+4}return _.buffer},c}()},"./src/crypt/decrypter.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return n});var w=v("./src/crypt/aes-crypto.ts"),m=v("./src/crypt/fast-aes-key.ts"),h=v("./src/crypt/aes-decryptor.ts"),c=v("./src/utils/logger.ts"),i=v("./src/utils/mp4-tools.ts"),r=v("./src/utils/typed-array.ts"),o=16,n=function(){function e(t,a,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=t,this.config=a,this.removePKCS7Padding=p,p)try{var g=self.crypto;g&&(this.subtle=g.subtle||g.webkitSubtle)}catch(A){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var s=e.prototype;return s.destroy=function(){this.observer=null},s.isSync=function(){return this.config.enableSoftwareAES},s.flush=function(){var a=this.currentResult;if(!a){this.reset();return}var l=new Uint8Array(a);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(a,l,u,f){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(a),l,u);var p=this.flush();p&&f(p.buffer)}else this.webCryptoDecrypt(new Uint8Array(a),l,u).then(f)},s.softwareDecrypt=function(a,l,u){var f=this.currentIV,p=this.currentResult,g=this.remainderData;this.logOnce("JS AES decrypt"),g&&(a=Object(i.appendUint8Array)(g,a),this.remainderData=null);var A=this.getValidChunk(a);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(a,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(g){if(!p)return Promise.reject(new Error("web crypto not initialized"));var A=new w.default(p,u);return A.decrypt(a.buffer,g)}).catch(function(g){return f.onWebCryptoError(g,a,l,u)})},s.onWebCryptoError=function(a,l,u,f){return c.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",a),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(l,u,f)},s.getValidChunk=function(a){var l=a,u=a.length-a.length%o;return u!==a.length&&(l=Object(r.sliceUint8)(a,0,u),this.remainderData=Object(r.sliceUint8)(a,u)),l},s.logOnce=function(a){if(!this.logEnabled)return;c.logger.log("[decrypter.ts]: "+a),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return w});var w=function(){function m(c,i){this.subtle=void 0,this.key=void 0,this.subtle=c,this.key=i}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,C,v){"use strict";v.r(C);var w=v("./src/demux/base-audio-demuxer.ts"),m=v("./src/demux/adts.ts"),h=v("./src/utils/logger.ts"),c=v("./src/demux/id3.ts");function i(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,r(n,e)}function r(n,e){return r=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t},r(n,e)}var o=function(n){i(e,n);function e(t,a){var l;return l=n.call(this)||this,l.observer=void 0,l.config=void 0,l.observer=t,l.config=a,l}var s=e.prototype;return s.resetInitSegment=function(a,l,u){n.prototype.resetInitSegment.call(this,a,l,u),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:a,duration:u,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var l=c.getID3Data(a,0)||[],u=l.length,f=a.length;u<f;u++)if(m.probe(a,u))return h.logger.log("ADTS sync word found !"),!0;return!1},s.canParse=function(a,l){return m.canParse(a,l)},s.appendFrame=function(a,l,u){m.initTrackConfig(a,this.observer,l,u,a.manifestCodec);var f=m.appendFrame(a,l,u,this.initPTS,this.frameIndex);if(f&&f.missing===0)return f},e}(w.default);o.minProbeByteLength=9,C.default=o},"./src/demux/adts.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"getAudioConfig",function(){return c}),v.d(C,"isHeaderPattern",function(){return i}),v.d(C,"getHeaderLength",function(){return r}),v.d(C,"getFullFrameLength",function(){return o}),v.d(C,"canGetFrameLength",function(){return n}),v.d(C,"isHeader",function(){return e}),v.d(C,"canParse",function(){return s}),v.d(C,"probe",function(){return t}),v.d(C,"initTrackConfig",function(){return a}),v.d(C,"getFrameDuration",function(){return l}),v.d(C,"parseFrameHeader",function(){return u}),v.d(C,"appendFrame",function(){return f});var w=v("./src/utils/logger.ts"),m=v("./src/errors.ts"),h=v("./src/events.ts");function c(p,g,A,y){var x,T,S,b,_=navigator.userAgent.toLowerCase(),I=y,L=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];x=((g[A+2]&192)>>>6)+1;var D=(g[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 S=(g[A+2]&1)<<2,S|=(g[A+3]&192)>>>6,w.logger.log("manifest codec:"+y+", ADTS type:"+x+", samplingIndex:"+D),/firefox/i.test(_)?D>=6?(x=5,b=new Array(4),T=D-3):(x=2,b=new Array(2),T=D):_.indexOf("android")!==-1?(x=2,b=new Array(2),T=D):(x=5,b=new Array(4),y&&(y.indexOf("mp4a.40.29")!==-1||y.indexOf("mp4a.40.5")!==-1)||!y&&D>=6?T=D-3:((y&&y.indexOf("mp4a.40.2")!==-1&&(D>=6&&S===1||/vivaldi/i.test(_))||!y&&S===1)&&(x=2,b=new Array(2)),T=D)),b[0]=x<<3,b[0]|=(D&14)>>1,b[1]|=(D&1)<<7,b[1]|=S<<3,x===5&&(b[1]|=(T&14)>>1,b[2]=(T&1)<<7,b[2]|=2<<2,b[3]=0),{config:b,samplerate:L[D],channelCount:S,codec:"mp4a.40."+x,manifestCodec:I}}function i(p,g){return p[g]===255&&(p[g+1]&246)===240}function r(p,g){return p[g+1]&1?7:9}function o(p,g){return(p[g+3]&3)<<11|p[g+4]<<3|(p[g+5]&224)>>>5}function n(p,g){return g+5<p.length}function e(p,g){return g+1<p.length&&i(p,g)}function s(p,g){return n(p,g)&&i(p,g)&&o(p,g)<=p.length-g}function t(p,g){if(e(p,g)){var A=r(p,g);if(g+A>=p.length)return!1;var y=o(p,g);if(y<=A)return!1;var x=g+y;return x===p.length||e(p,x)}return!1}function a(p,g,A,y,x){if(!p.samplerate){var T=c(g,A,y,x);if(!T)return;p.config=T.config,p.samplerate=T.samplerate,p.channelCount=T.channelCount,p.codec=T.codec,p.manifestCodec=T.manifestCodec,w.logger.log("parsed codec:"+p.codec+", rate:"+T.samplerate+", channels:"+T.channelCount)}}function l(p){return 1024*9e4/p}function u(p,g,A,y,x){var T=r(p,g),S=o(p,g);if(S-=T,S>0){var b=A+y*x;return{headerLength:T,frameLength:S,stamp:b}}}function f(p,g,A,y,x){var T=l(p.samplerate),S=u(g,A,y,x,T);if(S){var b=S.frameLength,_=S.headerLength,I=S.stamp,L=_+b,D=Math.max(0,A+L-g.length),N;D?(N=new Uint8Array(L-_),N.set(g.subarray(A+_,g.length),0)):N=g.subarray(A+_,A+L);var M={unit:N,pts:I};return D||p.samples.push(M),{sample:M,length:L,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"initPTSFn",function(){return o});var w=v("./src/polyfills/number.ts"),m=v("./src/demux/id3.ts"),h=v("./src/demux/dummy-demuxed-track.ts"),c=v("./src/utils/mp4-tools.ts"),i=v("./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 e=n.prototype;return e.resetInitSegment=function(t,a,l){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(t,a){return!1},e.appendFrame=function(t,a,l){},e.demux=function(t,a){this.cachedData&&(t=Object(c.appendUint8Array)(this.cachedData,t),this.cachedData=null);var l=m.getID3Data(t,0),u=l?l.length:0,f,p,g=this._audioTrack,A=this._id3Track,y=l?m.getTimeStamp(l):void 0,x=t.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=o(y,a)),l&&l.length>0&&A.samples.push({pts:this.initPTS,dts:this.initPTS,data:l}),p=this.initPTS;u<x;){if(this.canParse(t,u)){var T=this.appendFrame(g,t,u);T?(this.frameIndex++,p=T.sample.pts,u+=T.length,f=u):u=x}else m.canParse(t,u)?(l=m.getID3Data(t,u),A.samples.push({pts:p,dts:p,data:l}),u+=l.length,f=u):u++;if(u===x&&f!==x){var S=Object(i.sliceUint8)(t,f);this.cachedData?this.cachedData=Object(c.appendUint8Array)(this.cachedData,S):this.cachedData=S}}return{audioTrack:g,avcTrack:Object(h.dummyTrack)(),id3Track:A,textTrack:Object(h.dummyTrack)()}},e.demuxSampleAes=function(t,a,l){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var a=this.cachedData;return a&&(this.cachedData=null,this.demux(a,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(h.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(h.dummyTrack)()}},e.destroy=function(){},n}(),o=function(e,s){return Object(w.isFiniteNumber)(e)?e*90:s*9e4};C.default=r},"./src/demux/chunk-cache.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return w});var w=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,o=this.dataLength,n;if(r.length)r.length===1?n=r[0]:n=m(r,o);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 i=new Uint8Array(c),r=0,o=0;o<h.length;o++){var n=h[o];i.set(n,r),r+=n.length}return i}},"./src/demux/dummy-demuxed-track.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"dummyTrack",function(){return w});function w(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/utils/logger.ts"),m=function(){function h(i){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=i,this.bytesAvailable=i.byteLength,this.word=0,this.bitsAvailable=0}var c=h.prototype;return c.loadWord=function(){var r=this.data,o=this.bytesAvailable,n=r.byteLength-o,e=new Uint8Array(4),s=Math.min(4,o);if(s===0)throw new Error("no bytes available");e.set(r.subarray(n,n+s)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s},c.skipBits=function(r){var o;this.bitsAvailable>r?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,o=r>>3,r-=o>>3,this.bytesAvailable-=o,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},c.readBits=function(r){var o=Math.min(this.bitsAvailable,r),n=this.word>>>32-o;return r>32&&w.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=o,this.bitsAvailable>0?this.word<<=o:this.bytesAvailable>0&&this.loadWord(),o=r-o,o>0&&this.bitsAvailable?n<<o|this.readBits(o):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 o=8,n=8,e,s=0;s<r;s++)n!==0&&(e=this.readEG(),n=(o+e+256)%256),o=n===0?o:n},c.readSPS=function(){var r=0,o=0,n=0,e=0,s,t,a,l=this.readUByte.bind(this),u=this.readBits.bind(this),f=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this),A=this.skipEG.bind(this),y=this.skipUEG.bind(this),x=this.skipScalingList.bind(this);l();var T=l();if(u(5),g(3),l(),y(),T===100||T===110||T===122||T===244||T===44||T===83||T===86||T===118||T===128){var S=f();if(S===3&&g(1),y(),y(),g(1),p())for(t=S!==3?8:12,a=0;a<t;a++)p()&&(a<6?x(16):x(64))}y();var b=f();if(b===0)f();else if(b===1)for(g(1),A(),A(),s=f(),a=0;a<s;a++)A();y(),g(1);var _=f(),I=f(),L=u(1);L===0&&g(1),g(1),p()&&(r=f(),o=f(),n=f(),e=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-o*2),height:(2-L)*(I+1)*16-(L?2:4)*(n+e),pixelRatio:D}},c.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},h}();C.default=m},"./src/demux/id3.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"isHeader",function(){return w}),v.d(C,"isFooter",function(){return m}),v.d(C,"getID3Data",function(){return h}),v.d(C,"canParse",function(){return i}),v.d(C,"getTimeStamp",function(){return r}),v.d(C,"isTimeStampFrame",function(){return o}),v.d(C,"getID3Frames",function(){return e}),v.d(C,"decodeFrame",function(){return s}),v.d(C,"utf8ArrayToStr",function(){return f}),v.d(C,"testables",function(){return p});var w=function(x,T){return T+10<=x.length&&(x[T]===73&&x[T+1]===68&&x[T+2]===51&&(x[T+3]<255&&x[T+4]<255&&(x[T+6]<128&&x[T+7]<128&&x[T+8]<128&&x[T+9]<128)))},m=function(x,T){return T+10<=x.length&&(x[T]===51&&x[T+1]===68&&x[T+2]===73&&(x[T+3]<255&&x[T+4]<255&&(x[T+6]<128&&x[T+7]<128&&x[T+8]<128&&x[T+9]<128)))},h=function(x,T){for(var S=T,b=0;w(x,T);){b+=10;var _=c(x,T+6);b+=_,m(x,T+10)&&(b+=10),T+=b}return b>0?x.subarray(S,S+b):void 0},c=function(x,T){var S=0;return S=(x[T]&127)<<21,S|=(x[T+1]&127)<<14,S|=(x[T+2]&127)<<7,S|=x[T+3]&127,S},i=function(x,T){return w(x,T)&&c(x,T+6)+10<=x.length-T},r=function(x){for(var T=e(x),S=0;S<T.length;S++){var b=T[S];if(o(b))return u(b)}return},o=function(x){return x&&x.key==="PRIV"&&x.info==="com.apple.streaming.transportStreamTimestamp"},n=function(x){var T=String.fromCharCode(x[0],x[1],x[2],x[3]),S=c(x,4),b=10;return{type:T,size:S,data:x.subarray(b,b+S)}},e=function(x){for(var T=0,S=[];w(x,T);){var b=c(x,T+6);T+=10;for(var _=T+b;T+8<_;){var I=n(x.subarray(T)),L=s(I);L&&S.push(L),T+=I.size+10}m(x,T)&&(T+=10)}return S},s=function(x){return x.type==="PRIV"?t(x):x.type[0]==="W"?l(x):a(x)},t=function(x){if(x.size<2)return;var T=f(x.data,!0),S=new Uint8Array(x.data.subarray(T.length+1));return{key:x.type,info:T,data:S.buffer}},a=function(x){if(x.size<2)return;if(x.type==="TXXX"){var T=1,S=f(x.data.subarray(T),!0);T+=S.length+1;var b=f(x.data.subarray(T));return{key:x.type,info:S,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 T=1,S=f(x.data.subarray(T),!0);T+=S.length+1;var b=f(x.data.subarray(T));return{key:x.type,info:S,data:b}}var _=f(x.data);return{key:x.type,data:_}},u=function(x){if(x.data.byteLength===8){var T=new Uint8Array(x.data),S=T[3]&1,b=(T[4]<<23)+(T[5]<<15)+(T[6]<<7)+T[7];return b/=45,S&&(b+=4772185884e-2),Math.round(b)}return},f=function(x,T){T===void 0&&(T=!1);var S=A();if(S){var b=S.decode(x);if(T){var _=b.indexOf("\0");return _!==-1?b.substring(0,_):b}return b.replace(/\0/g,"")}for(var I=x.length,L,D,N,M="",B=0;B<I;){if(L=x[B++],L===0&&T)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[B++],M+=String.fromCharCode((L&31)<<6|D&63);break;case 14:D=x[B++],N=x[B++],M+=String.fromCharCode((L&15)<<12|(D&63)<<6|(N&63)<<0);break;default:}}return M},p={decodeTextFrame:a},g;function A(){return!g&&typeof self.TextDecoder!="undefined"&&(g=new self.TextDecoder("utf-8")),g}},"./src/demux/mp3demuxer.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/demux/base-audio-demuxer.ts"),m=v("./src/demux/id3.ts"),h=v("./src/utils/logger.ts"),c=v("./src/demux/mpegaudio.ts");function i(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,r(n,e)}function r(n,e){return r=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t},r(n,e)}var o=function(n){i(e,n);function e(){return n.apply(this,arguments)||this}var s=e.prototype;return s.resetInitSegment=function(a,l,u){n.prototype.resetInitSegment.call(this,a,l,u),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:a,duration:u,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var l=m.getID3Data(a,0)||[],u=l.length,f=a.length;u<f;u++)if(c.probe(a,u))return h.logger.log("MPEG Audio sync word found !"),!0;return!1},s.canParse=function(a,l){return c.canParse(a,l)},s.appendFrame=function(a,l,u){return this.initPTS===null?void 0:c.appendFrame(a,l,u,this.initPTS,this.frameIndex)},e}(w.default);o.minProbeByteLength=4,C.default=o},"./src/demux/mp4demuxer.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/utils/mp4-tools.ts"),m=v("./src/demux/dummy-demuxed-track.ts"),h=function(){function c(r,o){this.remainderData=null,this.config=void 0,this.config=o}var i=c.prototype;return i.resetTimeStamp=function(){},i.resetInitSegment=function(){},i.resetContiguity=function(){},c.probe=function(o){return Object(w.findBox)({data:o,start:0,end:Math.min(o.length,16384)},["moof"]).length>0},i.demux=function(o){var n=o,e=Object(m.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(w.appendUint8Array)(this.remainderData,o));var s=Object(w.segmentValidRange)(n);this.remainderData=s.remainder,e.samples=s.valid||new Uint8Array}else e.samples=n;return{audioTrack:Object(m.dummyTrack)(),avcTrack:e,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},i.flush=function(){var o=Object(m.dummyTrack)();return o.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(m.dummyTrack)(),avcTrack:o,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},i.demuxSampleAes=function(o,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},i.destroy=function(){},c}();h.minProbeByteLength=1024,C.default=h},"./src/demux/mpegaudio.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"appendFrame",function(){return r}),v.d(C,"parseHeader",function(){return o}),v.d(C,"isHeaderPattern",function(){return n}),v.d(C,"isHeader",function(){return e}),v.d(C,"canParse",function(){return s}),v.d(C,"probe",function(){return t});var w=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]],i=[0,1,1,4];function r(a,l,u,f,p){if(u+24>l.length)return;var g=o(l,u);if(g&&u+g.frameLength<=l.length){var A=g.samplesPerFrame*9e4/g.sampleRate,y=f+p*A,x={unit:l.subarray(u,u+g.frameLength),pts:y,dts:y};return a.config=[],a.channelCount=g.channelCount,a.samplerate=g.sampleRate,a.samples.push(x),{sample:x,length:g.frameLength,missing:0}}}function o(a,l){var u=a[l+1]>>3&3,f=a[l+1]>>1&3,p=a[l+2]>>4&15,g=a[l+2]>>2&3;if(u!==1&&p!==0&&p!==15&&g!==3){var A=a[l+2]>>1&1,y=a[l+3]>>6,x=u===3?3-f:f===3?3:4,T=m[x*14+p-1]*1e3,S=u===3?0:u===2?1:2,b=h[S*3+g],_=y===3?1:2,I=c[u][f],L=i[f],D=I*8*L,N=Math.floor(I*T/b+A)*L;if(w===null){var M=navigator.userAgent||"",B=M.match(/Chrome\/(\d+)/i);w=B?parseInt(B[1]):0}var R=!!w&&w<=87;return R&&f===2&&T>=224e3&&y===0&&(a[l+3]=a[l+3]|128),{sampleRate:b,channelCount:_,frameLength:N,samplesPerFrame:D}}}function n(a,l){return a[l]===255&&(a[l+1]&224)===224&&(a[l+1]&6)!==0}function e(a,l){return l+1<a.length&&n(a,l)}function s(a,l){var u=4;return n(a,l)&&u<=a.length-l}function t(a,l){if(l+1<a.length&&n(a,l)){var u=4,f=o(a,l),p=u;f!=null&&f.frameLength&&(p=f.frameLength);var g=l+p;return g===a.length||e(a,g)}return!1}},"./src/demux/sample-aes.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/crypt/decrypter.ts"),m=v("./src/demux/tsdemuxer.ts"),h=function(){function c(r,o,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new w.default(r,o,{removePKCS7Padding:!1})}var i=c.prototype;return i.decryptBuffer=function(o,n){this.decrypter.decrypt(o,this.keyData.key.buffer,this.keyData.iv.buffer,n)},i.decryptAacSample=function(o,n,e,s){var t=o[n].unit,a=t.subarray(16,t.length-t.length%16),l=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),u=this;this.decryptBuffer(l,function(f){var p=new Uint8Array(f);t.set(p,16),s||u.decryptAacSamples(o,n+1,e)})},i.decryptAacSamples=function(o,n,e){for(;;n++){if(n>=o.length){e();return}if(o[n].unit.length<32)continue;var s=this.decrypter.isSync();if(this.decryptAacSample(o,n,e,s),!s)return}},i.getAvcEncryptedData=function(o){for(var n=Math.floor((o.length-48)/160)*16+16,e=new Int8Array(n),s=0,t=32;t<=o.length-16;t+=160,s+=16)e.set(o.subarray(t,t+16),s);return e},i.getAvcDecryptedUnit=function(o,n){for(var e=new Uint8Array(n),s=0,t=32;t<=o.length-16;t+=160,s+=16)o.set(e.subarray(s,s+16),t);return o},i.decryptAvcSample=function(o,n,e,s,t,a){var l=Object(m.discardEPB)(t.data),u=this.getAvcEncryptedData(l),f=this;this.decryptBuffer(u.buffer,function(p){t.data=f.getAvcDecryptedUnit(l,p),a||f.decryptAvcSamples(o,n,e+1,s)})},i.decryptAvcSamples=function(o,n,e,s){if(o instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=o.length){s();return}for(var t=o[n].units;!(e>=t.length);e++){var a=t[e];if(a.data.length<=48||a.type!==1&&a.type!==5)continue;var l=this.decrypter.isSync();if(this.decryptAvcSample(o,n,e,s,a,l),!l)return}}},c}();C.default=h},"./src/demux/transmuxer-interface.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return t});var w=v("./node_modules/webworkify-webpack/index.js"),m=v.n(w),h=v("./src/events.ts"),c=v("./src/demux/transmuxer.ts"),i=v("./src/utils/logger.ts"),r=v("./src/errors.ts"),o=v("./src/utils/mediasource-helper.ts"),n=v("./node_modules/eventemitter3/index.js"),e=v.n(n),s=Object(o.getMediaSource)()||{isTypeSupported:function(){return!1}},t=function(){function a(u,f,p,g){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=g;var y=u.config,x=function(I,L){L=L||{},L.frag=A.frag,L.id=A.id,u.trigger(I,L)};this.observer=new n.EventEmitter,this.observer.on(h.Events.FRAG_DECRYPTED,x),this.observer.on(h.Events.ERROR,x);var T={mp4:s.isTypeSupported("video/mp4"),mpeg:s.isTypeSupported("audio/mpeg"),mp3:s.isTypeSupported('audio/mp4; codecs="mp3"')},S=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){i.logger.log("demuxing in webworker");var b;try{b=this.worker=w("./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:T,vendor:S,id:f,config:JSON.stringify(y)})}catch(_){i.logger.warn("Error in worker:",_),i.logger.error("Error while initializing DemuxerWorker, fallback to inline"),b&&self.URL.revokeObjectURL(b.objectURL),this.transmuxer=new c.default(this.observer,T,y,S,f),this.worker=null}}else this.transmuxer=new c.default(this.observer,T,y,S,f)}var l=a.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 g=this.observer;g&&g.removeAllListeners(),this.observer=null},l.push=function(f,p,g,A,y,x,T,S,b,_){var I=this;b.transmuxing.start=self.performance.now();var L=this.transmuxer,D=this.worker,N=x?x.start:y.start,M=y.decryptdata,B=this.frag,R=!(B&&y.cc===B.cc),H=!(B&&b.level===B.level),F=B?b.sn-B.sn:-1,K=this.part?b.part-this.part.index:1,U=!H&&(F===1||F===0&&K===1),V=self.performance.now();(H||F||y.stats.parsing.start===0)&&(y.stats.parsing.start=V),x&&(K||!U)&&(x.stats.parsing.start=V);var z=new c.TransmuxState(R,U,S,H,N);if(!U||R){i.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: `+H+`
contiguous: `+U+`
accurateTimeOffset: `+S+`
timeOffset: `+N);var Y=new c.TransmuxConfig(g,A,p,T,_);this.configureTransmuxer(Y)}if(this.frag=y,this.part=x,D)D.postMessage({cmd:"demux",data:f,decryptdata:M,chunkMeta:b,state:z},f instanceof ArrayBuffer?[f]:[]);else if(L){var q=L.push(f,M,b,z);Object(c.isPromise)(q)?q.then(function(ce){I.handleTransmuxComplete(ce)}):this.handleTransmuxComplete(q)}},l.flush=function(f){var p=this;f.transmuxing.start=self.performance.now();var g=this.transmuxer,A=this.worker;if(A)A.postMessage({cmd:"flush",chunkMeta:f});else if(g){var y=g.flush(f);Object(c.isPromise)(y)?y.then(function(x){p.handleFlushResult(x,f)}):this.handleFlushResult(y,f)}},l.handleFlushResult=function(f,p){var g=this;f.forEach(function(A){g.handleTransmuxComplete(A)}),this.onFlush(p)},l.onWorkerMessage=function(f){var p=f.data,g=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,g.trigger(p.event,p.data);break}}},l.configureTransmuxer=function(f){var p=this.worker,g=this.transmuxer;p?p.postMessage({cmd:"configure",config:f}):g&&g.configure(f)},l.handleTransmuxComplete=function(f){f.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(f)},a}()},"./src/demux/transmuxer-worker.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return r});var w=v("./src/demux/transmuxer.ts"),m=v("./src/events.ts"),h=v("./src/utils/logger.ts"),c=v("./node_modules/eventemitter3/index.js"),i=v.n(c);function r(t){var a=new c.EventEmitter,l=function(f,p){t.postMessage({event:f,data:p})};a.on(m.Events.FRAG_DECRYPTED,l),a.on(m.Events.ERROR,l),t.addEventListener("message",function(u){var f=u.data;switch(f.cmd){case"init":{var p=JSON.parse(f.config);t.transmuxer=new w.default(a,f.typeSupported,p,f.vendor,f.id),Object(h.enableLogs)(p.debug),l("init",null);break}case"configure":{t.transmuxer.configure(f.config);break}case"demux":{var g=t.transmuxer.push(f.data,f.decryptdata,f.chunkMeta,f.state);Object(w.isPromise)(g)?g.then(function(x){o(t,x)}):o(t,g);break}case"flush":{var A=f.chunkMeta,y=t.transmuxer.flush(A);Object(w.isPromise)(y)?y.then(function(x){e(t,x,A)}):e(t,y,A);break}default:break}})}function o(t,a){if(s(a.remuxResult))return;var l=[],u=a.remuxResult,f=u.audio,p=u.video;f&&n(l,f),p&&n(l,p),t.postMessage({event:"transmuxComplete",data:a},l)}function n(t,a){a.data1&&t.push(a.data1.buffer),a.data2&&t.push(a.data2.buffer)}function e(t,a,l){a.forEach(function(u){o(t,u)}),t.postMessage({event:"flush",data:l})}function s(t){return!t.audio&&!t.video&&!t.text&&!t.id3&&!t.initSegment}},"./src/demux/transmuxer.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return p}),v.d(C,"isPromise",function(){return y}),v.d(C,"TransmuxConfig",function(){return x}),v.d(C,"TransmuxState",function(){return T});var w=v("./src/events.ts"),m=v("./src/errors.ts"),h=v("./src/crypt/decrypter.ts"),c=v("./src/demux/aacdemuxer.ts"),i=v("./src/demux/mp4demuxer.ts"),r=v("./src/demux/tsdemuxer.ts"),o=v("./src/demux/mp3demuxer.ts"),n=v("./src/remux/mp4-remuxer.ts"),e=v("./src/remux/passthrough-remuxer.ts"),s=v("./src/demux/chunk-cache.ts"),t=v("./src/utils/mp4-tools.ts"),a=v("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(S){a.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var u=[{demux:r.default,remux:n.default},{demux:i.default,remux:e.default},{demux:c.default,remux:n.default},{demux:o.default,remux:n.default}],f=1024;u.forEach(function(S){var b=S.demux;f=Math.max(f,b.minProbeByteLength)});var p=function(){function S(_,I,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=I,this.config=L,this.vendor=D,this.id=N}var b=S.prototype;return b.configure=function(I){this.transmuxConfig=I,this.decrypter&&this.decrypter.reset()},b.push=function(I,L,D,N){var M=this,B=D.transmuxing;B.executeStart=l();var R=new Uint8Array(I),H=this.cache,F=this.config,K=this.currentTransmuxState,U=this.transmuxConfig;N&&(this.currentTransmuxState=N);var V=g(R,L);if(V&&V.method==="AES-128"){var z=this.getDecrypter();if(F.enableSoftwareAES){var Y=z.softwareDecrypt(R,V.key.buffer,V.iv.buffer);if(!Y)return B.executeEnd=l(),A(D);R=new Uint8Array(Y)}else return this.decryptionPromise=z.webCryptoDecrypt(R,V.key.buffer,V.iv.buffer).then(function(G){var te=M.push(G,null,D);return M.decryptionPromise=null,te}),this.decryptionPromise}var q=N||K,ce=q.contiguous,ie=q.discontinuity,ve=q.trackSwitch,Ee=q.accurateTimeOffset,Le=q.timeOffset,He=U.audioCodec,ge=U.videoCodec,Fe=U.defaultInitPts,Q=U.duration,fe=U.initSegmentData;if((ie||ve)&&this.resetInitSegment(fe,He,ge,Q),ie&&this.resetInitialTimestamp(Fe),ce||this.resetContiguity(),this.needsProbing(R,ie,ve)){if(H.dataLength){var Je=H.flush();R=Object(t.appendUint8Array)(Je,R)}this.configureTransmuxer(R,U)}var ne=this.transmux(R,V,Le,Ee,D),X=this.currentTransmuxState;return X.contiguous=!0,X.discontinuity=!1,X.trackSwitch=!1,B.executeEnd=l(),ne},b.flush=function(I){var L=this,D=I.transmuxing;D.executeStart=l();var N=this.decrypter,M=this.cache,B=this.currentTransmuxState,R=this.decryptionPromise;if(R)return R.then(function(){return L.flush(I)});var H=[],F=B.timeOffset;if(N){var K=N.flush();K&&H.push(this.push(K,null,I))}var U=M.dataLength;M.reset();var V=this.demuxer,z=this.remuxer;if(!V||!z)return U>=f&&this.observer.emit(w.Events.ERROR,w.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(I)];var Y=V.flush(F);return y(Y)?Y.then(function(q){return L.flushRemux(H,q,I),H}):(this.flushRemux(H,Y,I),H)},b.flushRemux=function(I,L,D){var N=L.audioTrack,M=L.avcTrack,B=L.id3Track,R=L.textTrack,H=this.currentTransmuxState,F=H.accurateTimeOffset,K=H.timeOffset;a.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,B,R,K,F,!0,this.id);I.push({remuxResult:U,chunkMeta:D}),D.transmuxing.executeEnd=l()},b.resetInitialTimestamp=function(I){var L=this.demuxer,D=this.remuxer;if(!L||!D)return;L.resetTimeStamp(I),D.resetTimeStamp(I)},b.resetContiguity=function(){var I=this.demuxer,L=this.remuxer;if(!I||!L)return;I.resetContiguity(),L.resetNextTimestamp()},b.resetInitSegment=function(I,L,D,N){var M=this.demuxer,B=this.remuxer;if(!M||!B)return;M.resetInitSegment(L,D,N),B.resetInitSegment(I,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(I,L,D,N,M){var B;return L&&L.method==="SAMPLE-AES"?B=this.transmuxSampleAes(I,L,D,N,M):B=this.transmuxUnencrypted(I,D,N,M),B},b.transmuxUnencrypted=function(I,L,D,N){var M=this.demuxer.demux(I,L,!1,!this.config.progressive),B=M.audioTrack,R=M.avcTrack,H=M.id3Track,F=M.textTrack,K=this.remuxer.remux(B,R,H,F,L,D,!1,this.id);return{remuxResult:K,chunkMeta:N}},b.transmuxSampleAes=function(I,L,D,N,M){var B=this;return this.demuxer.demuxSampleAes(I,L,D).then(function(R){var H=B.remuxer.remux(R.audioTrack,R.avcTrack,R.id3Track,R.textTrack,D,N,!1,B.id);return{remuxResult:H,chunkMeta:M}})},b.configureTransmuxer=function(I,L){for(var D=this.config,N=this.observer,M=this.typeSupported,B=this.vendor,R=L.audioCodec,H=L.defaultInitPts,F=L.duration,K=L.initSegmentData,U=L.videoCodec,V,z=0,Y=u.length;z<Y;z++)if(u[z].demux.probe(I)){V=u[z];break}V||(a.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),V={demux:i.default,remux:e.default});var q=this.demuxer,ce=this.remuxer,ie=V.remux,ve=V.demux;(!ce||!(ce instanceof ie))&&(this.remuxer=new ie(N,D,M,B)),(!q||!(q instanceof ve))&&(this.demuxer=new ve(N,D,M),this.probe=ve.probe),this.resetInitSegment(K,R,U,F),this.resetInitialTimestamp(H)},b.needsProbing=function(I,L,D){return!this.demuxer||!this.remuxer||L||D},b.getDecrypter=function(){var I=this.decrypter;return I||(I=this.decrypter=new h.default(this.observer,this.config)),I},S}();function g(S,b){var _=null;return S.byteLength>0&&b!=null&&b.key!=null&&b.iv!==null&&b.method!=null&&(_=b),_}var A=function(b){return{remuxResult:{},chunkMeta:b}};function y(S){return"then"in S&&S.then instanceof Function}var x=function(b,_,I,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=I,this.duration=L,this.defaultInitPts=D},T=function(b,_,I,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=I,this.trackSwitch=L,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"discardEPB",function(){return A});var w=v("./src/demux/adts.ts"),m=v("./src/demux/mpegaudio.ts"),h=v("./src/demux/exp-golomb.ts"),c=v("./src/demux/id3.ts"),i=v("./src/demux/sample-aes.ts"),r=v("./src/events.ts"),o=v("./src/utils/mp4-tools.ts"),n=v("./src/utils/logger.ts"),e=v("./src/errors.ts"),s={video:1,audio:2,id3:3,text:4},t=function(){function y(T,S,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=T,this.config=S,this.typeSupported=b}y.probe=function(S){var b=y.syncOffset(S);return b<0?!1:(b&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+b+", junk ahead ?"),!0)},y.syncOffset=function(S){for(var b=Math.min(1e3,S.length-3*188),_=0;_<b;){if(S[_]===71&&S[_+188]===71&&S[_+2*188]===71)return _;_++}return-1},y.createTrack=function(S,b){return{container:S==="video"||S==="audio"?"video/mp2t":void 0,type:S,id:s[S],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:S==="audio"?b:void 0}};var x=y.prototype;return x.resetInitSegment=function(S,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=S,this.videoCodec=b,this._duration=_},x.resetTimeStamp=function(){},x.resetContiguity=function(){var S=this._audioTrack,b=this._avcTrack,_=this._id3Track;S&&(S.pesData=null),b&&(b.pesData=null),_&&(_.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},x.demux=function(S,b,_,I){_===void 0&&(_=!1),I===void 0&&(I=!1),_||(this.sampleAes=null);var L,D=this._avcTrack,N=this._audioTrack,M=this._id3Track,B=D.pid,R=D.pesData,H=N.pid,F=M.pid,K=N.pesData,U=M.pesData,V=!1,z=this.pmtParsed,Y=this._pmtId,q=S.length;if(this.remainderData&&(S=Object(o.appendUint8Array)(this.remainderData,S),q=S.length,this.remainderData=null),q<188&&!I)return this.remainderData=S,{audioTrack:N,avcTrack:D,id3Track:M,textTrack:this._txtTrack};var ce=Math.max(0,y.syncOffset(S));q-=(q+ce)%188,q<S.byteLength&&!I&&(this.remainderData=new Uint8Array(S.buffer,q,S.buffer.byteLength-q));for(var ie=ce;ie<q;ie+=188)if(S[ie]===71){var ve=!!(S[ie+1]&64),Ee=((S[ie+1]&31)<<8)+S[ie+2],Le=(S[ie+3]&48)>>4,He=void 0;if(Le>1){if(He=ie+5+S[ie+4],He===ie+188)continue}else He=ie+4;switch(Ee){case B:ve&&(R&&(L=f(R))&&this.parseAVCPES(L,!1),R={data:[],size:0}),R&&(R.data.push(S.subarray(He,ie+188)),R.size+=ie+188-He);break;case H:ve&&(K&&(L=f(K))&&(N.isAAC?this.parseAACPES(L):this.parseMPEGPES(L)),K={data:[],size:0}),K&&(K.data.push(S.subarray(He,ie+188)),K.size+=ie+188-He);break;case F:ve&&(U&&(L=f(U))&&this.parseID3PES(L),U={data:[],size:0}),U&&(U.data.push(S.subarray(He,ie+188)),U.size+=ie+188-He);break;case 0:ve&&(He+=S[He]+1),Y=this._pmtId=l(S,He);break;case Y:{ve&&(He+=S[He]+1);var ge=u(S,He,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,_);B=ge.avc,B>0&&(D.pid=B),H=ge.audio,H>0&&(N.pid=H,N.isAAC=ge.isAAC),F=ge.id3,F>0&&(M.pid=F),V&&!z&&(n.logger.log("reparse from beginning"),V=!1,ie=ce-188),z=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=R,N.pesData=K,M.pesData=U;var Fe={audioTrack:N,avcTrack:D,id3Track:M,textTrack:this._txtTrack};return I&&this.extractRemainingSamples(Fe),Fe},x.flush=function(){var S=this.remainderData;this.remainderData=null;var b;return S?b=this.demux(S,-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(S){var b=S.audioTrack,_=S.avcTrack,I=S.id3Track,L=_.pesData,D=b.pesData,N=I.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),I.pesData=null):I.pesData=N},x.demuxSampleAes=function(S,b,_){var I=this.demux(S,_,!0,!this.config.progressive),L=this.sampleAes=new i.default(this.observer,this.config,b);return this.decrypt(I,L)},x.decrypt=function(S,b){return new Promise(function(_){var I=S.audioTrack,L=S.avcTrack;I.samples&&I.isAAC?b.decryptAacSamples(I.samples,0,function(){L.samples?b.decryptAvcSamples(L.samples,0,0,function(){_(S)}):_(S)}):L.samples&&b.decryptAvcSamples(L.samples,0,0,function(){_(S)})})},x.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},x.parseAVCPES=function(S,b){var _=this,I=this._avcTrack,L=this.parseAVCNALu(S.data),D=!1,N=this.avcSample,M,B=!1;S.data=null,N&&L.length&&!I.audFound&&(p(N,I),N=this.avcSample=a(!1,S.pts,S.dts,"")),L.forEach(function(R){switch(R.type){case 1:{M=!0,N||(N=_.avcSample=a(!0,S.pts,S.dts,"")),D&&(N.debug+="NDR "),N.frame=!0;var H=R.data;if(B&&H.length>4){var F=new h.default(H).readSliceType();(F===2||F===4||F===7||F===9)&&(N.key=!0)}break}case 5:M=!0,N||(N=_.avcSample=a(!0,S.pts,S.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,V=0,z=!1,Y=0;!z&&K.bytesAvailable>1;){U=0;do Y=K.readUByte(),U+=Y;while(Y===255);V=0;do Y=K.readUByte(),V+=Y;while(Y===255);if(U===4&&K.bytesAvailable!==0){z=!0;var q=K.readUByte();if(q===181){var ce=K.readUShort();if(ce===49){var ie=K.readUInt();if(ie===1195456820){var ve=K.readUByte();if(ve===3){for(var Ee=K.readUByte(),Le=K.readUByte(),He=31&Ee,ge=[Ee,Le],Fe=0;Fe<He;Fe++)ge.push(K.readUByte()),ge.push(K.readUByte()),ge.push(K.readUByte());g(_._txtTrack.samples,{type:3,pts:S.pts,bytes:ge})}}}}}else if(U===5&&K.bytesAvailable!==0){if(z=!0,V>16){for(var Q=[],fe=0;fe<16;fe++)Q.push(K.readUByte().toString(16)),(fe===3||fe===5||fe===7||fe===9)&&Q.push("-");for(var Je=V-16,ne=new Uint8Array(Je),X=0;X<Je;X++)ne[X]=K.readUByte();g(_._txtTrack.samples,{pts:S.pts,payloadType:U,uuid:Q.join(""),userData:Object(c.utf8ArrayToStr)(ne),userDataBytes:ne})}}else if(V<K.bytesAvailable)for(var G=0;G<V;G++)K.readUByte()}break}case 7:if(M=!0,B=!0,D&&N&&(N.debug+="SPS "),!I.sps){var te=new h.default(R.data),we=te.readSPS();I.width=we.width,I.height=we.height,I.pixelRatio=we.pixelRatio,I.sps=[R.data],I.duration=_._duration;for(var he=R.data.subarray(1,4),Pe="avc1.",Oe=0;Oe<3;Oe++){var le=he[Oe].toString(16);le.length<2&&(le="0"+le),Pe+=le}I.codec=Pe}break;case 8:M=!0,D&&N&&(N.debug+="PPS "),I.pps||(I.pps=[R.data]);break;case 9:M=!1,I.audFound=!0,N&&p(N,I),N=_.avcSample=a(!1,S.pts,S.dts,D?"AUD ":"");break;case 12:M=!1;break;default:M=!1,N&&(N.debug+="unknown NAL "+R.type+" ");break}if(N&&M){var me=N.units;me.push(R)}}),b&&N&&(p(N,I),this.avcSample=null)},x.getLastNalUnit=function(){var S,b=this.avcSample,_;if(!b||b.units.length===0){var I=this._avcTrack.samples;b=I[I.length-1]}if((S=b)!==null&&S!==void 0&&S.units){var L=b.units;_=L[L.length-1]}return _},x.parseAVCNALu=function(S){var b=S.byteLength,_=this._avcTrack,I=_.naluState||0,L=I,D=[],N=0,M,B,R,H=-1,F=0;for(I===-1&&(H=0,F=S[0]&31,I=0,N=1);N<b;){if(M=S[N++],!I){I=M?0:1;continue}if(I===1){I=M?0:2;continue}if(!M)I=3;else if(M===1){if(H>=0){var K={data:S.subarray(H,N-I-1),type:F};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))),B=N-I-1,B>0)){var V=new Uint8Array(U.data.byteLength+B);V.set(U.data,0),V.set(S.subarray(0,B),U.data.byteLength),U.data=V,U.state=0}}N<b?(R=S[N]&31,H=N,F=R,I=0):I=-1}else I=0}if(H>=0&&I>=0){var z={data:S.subarray(H,b),type:F,state:I};D.push(z)}if(D.length===0){var Y=this.getLastNalUnit();if(Y){var q=new Uint8Array(Y.data.byteLength+S.byteLength);q.set(Y.data,0),q.set(S,Y.data.byteLength),Y.data=q}}return _.naluState=I,D},x.parseAACPES=function(S){var b=0,_=this._audioTrack,I=this.aacOverFlow,L=S.data;if(I){this.aacOverFlow=null;var D=I.sample.unit.byteLength,N=Math.min(I.missing,D),M=D-N;I.sample.unit.set(L.subarray(0,N),M),_.samples.push(I.sample),b=I.missing}var B,R;for(B=b,R=L.length;B<R-1&&!w.isHeader(L,B);B++);if(B!==b){var H,F;if(B<R-1?(H="AAC PES did not start with ADTS header,offset:"+B,F=!1):(H="no ADTS header found in AAC PES",F=!0),n.logger.warn("parsing error:"+H),this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:F,reason:H}),F)return}w.initTrackConfig(_,this.observer,L,B,this.audioCodec);var K;if(S.pts!==void 0)K=S.pts;else if(I){var U=w.getFrameDuration(_.samplerate);K=I.sample.pts+U}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var V=0;B<R;)if(w.isHeader(L,B)){if(B+5<R){var z=w.appendFrame(_,L,B,K,V);if(z)if(z.missing)this.aacOverFlow=z;else{B+=z.length,V++;continue}}break}else B++},x.parseMPEGPES=function(S){var b=S.data,_=b.length,I=0,L=0,D=S.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,I);if(N)L+=N.length,I++;else break}else L++},x.parseID3PES=function(S){if(S.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(S)},y}();t.minProbeByteLength=188;function a(y,x,T,S){return{key:y,frame:!1,pts:x,dts:T,units:[],debug:S,length:0}}function l(y,x){return(y[x+10]&31)<<8|y[x+11]}function u(y,x,T,S){var b={audio:-1,avc:-1,id3:-1,isAAC:!0},_=(y[x+1]&15)<<8|y[x+2],I=x+3+_-4,L=(y[x+10]&15)<<8|y[x+11];for(x+=12+L;x<I;){var D=(y[x+1]&31)<<8|y[x+2];switch(y[x]){case 207:if(!S){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(!S){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:T?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,T,S,b,_,I,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)}T=L[0];var N=(T[0]<<16)+(T[1]<<8)+T[2];if(N===1){if(S=(T[4]<<8)+T[5],S&&S>y.size-6)return null;var M=T[7];M&192&&(_=(T[9]&14)*536870912+(T[10]&255)*4194304+(T[11]&254)*16384+(T[12]&255)*128+(T[13]&254)/2,M&64?(I=(T[14]&14)*536870912+(T[15]&255)*4194304+(T[16]&254)*16384+(T[17]&255)*128+(T[18]&254)/2,_-I>60*9e4&&(n.logger.warn(Math.round((_-I)/9e4)+"s delta between PTS and DTS, align them"),_=I)):I=_),b=T[8];var B=b+9;if(y.size<=B)return null;y.size-=B;for(var R=new Uint8Array(y.size),H=0,F=L.length;H<F;H++){T=L[H];var K=T.byteLength;if(B)if(B>K){B-=K;continue}else T=T.subarray(B),K-=B,B=0;R.set(T,x),x+=K}return S&&(S-=b+3),{data:R,pts:_,dts:I,len:S}}return null}function p(y,x){if(y.units.length&&y.frame){if(y.pts===void 0){var T=x.samples,S=T.length;if(S){var b=T[S-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 g(y,x){var T=y.length;if(T>0){if(x.pts>=y[T-1].pts)y.push(x);else for(var S=T-1;S>=0;S--)if(x.pts<y[S].pts){y.splice(S,0,x);break}}else y.push(x)}function A(y){for(var x=y.byteLength,T=[],S=1;S<x-2;)y[S]===0&&y[S+1]===0&&y[S+2]===3?(T.push(S+2),S+=2):S++;if(T.length===0)return y;var b=x-T.length,_=new Uint8Array(b),I=0;for(S=0;S<b;I++,S++)I===T[0]&&(I++,T.shift()),_[S]=y[I];return _}C.default=t},"./src/errors.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"ErrorTypes",function(){return w}),v.d(C,"ErrorDetails",function(){return m});var w;(function(h){h.NETWORK_ERROR="networkError",h.MEDIA_ERROR="mediaError",h.KEY_SYSTEM_ERROR="keySystemError",h.MUX_ERROR="muxError",h.OTHER_ERROR="otherError"})(w||(w={}));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,C,v){"use strict";v.r(C),v.d(C,"Events",function(){return w});var w;(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"})(w||(w={}))},"./src/hls.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return y});var w=v("./node_modules/url-toolkit/src/url-toolkit.js"),m=v.n(w),h=v("./src/loader/playlist-loader.ts"),c=v("./src/loader/key-loader.ts"),i=v("./src/controller/id3-track-controller.ts"),r=v("./src/controller/latency-controller.ts"),o=v("./src/controller/level-controller.ts"),n=v("./src/controller/fragment-tracker.ts"),e=v("./src/controller/stream-controller.ts"),s=v("./src/is-supported.ts"),t=v("./src/utils/logger.ts"),a=v("./src/config.ts"),l=v("./node_modules/eventemitter3/index.js"),u=v.n(l),f=v("./src/events.ts"),p=v("./src/errors.ts");function g(x,T){for(var S=0;S<T.length;S++){var b=T[S];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,b.key,b)}}function A(x,T,S){return T&&g(x.prototype,T),S&&g(x,S),x}var y=function(){x.isSupported=function(){return Object(s.isSupported)()};function x(S){S===void 0&&(S={}),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(a.mergeConfig)(x.DefaultConfig,S);this.userConfig=S,Object(t.enableLogs)(b.debug),this._autoLevelCapping=-1,b.progressive&&Object(a.enableStreamingMode)(b);var _=b.abrController,I=b.bufferController,L=b.capLevelController,D=b.fpsController,N=this.abrController=new _(this),M=this.bufferController=new I(this),B=this.capLevelController=new L(this),R=new D(this),H=new h.default(this),F=new c.default(this),K=new i.default(this),U=this.levelController=new o.default(this),V=new n.FragmentTracker(this),z=this.streamController=new e.default(this,V);B.setStreamController(z),R.setStreamController(z);var Y=[U,z];this.networkControllers=Y;var q=[H,F,N,M,B,R,K,V];this.audioTrackController=this.createController(b.audioTrackController,null,Y),this.createController(b.audioStreamController,V,Y),this.subtitleTrackController=this.createController(b.subtitleTrackController,null,Y),this.createController(b.subtitleStreamController,V,Y),this.createController(b.timelineController,null,q),this.emeController=this.createController(b.emeController,null,q),this.cmcdController=this.createController(b.cmcdController,null,q),this.latencyController=this.createController(r.default,null,q),this.coreComponents=q}var T=x.prototype;return T.createController=function(b,_,I){if(b){var L=_?new b(this,_):new b(this);return I&&I.push(L),L}return null},T.on=function(b,_,I){I===void 0&&(I=this),this._emitter.on(b,_,I)},T.once=function(b,_,I){I===void 0&&(I=this),this._emitter.once(b,_,I)},T.removeAllListeners=function(b){this._emitter.removeAllListeners(b)},T.off=function(b,_,I,L){I===void 0&&(I=this),this._emitter.off(b,_,I,L)},T.listeners=function(b){return this._emitter.listeners(b)},T.emit=function(b,_,I){return this._emitter.emit(b,_,I)},T.trigger=function(b,_){if(this.config.debug)return this.emit(b,b,_);try{return this.emit(b,b,_)}catch(I){t.logger.error("An internal error happened while handling event "+b+'. Error message: "'+I.message+'". Here is a stacktrace:',I),this.trigger(f.Events.ERROR,{type:p.ErrorTypes.OTHER_ERROR,details:p.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:b,error:I})}return!1},T.listenerCount=function(b){return this._emitter.listenerCount(b)},T.destroy=function(){t.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},T.attachMedia=function(b){t.logger.log("attachMedia"),this._media=b,this.trigger(f.Events.MEDIA_ATTACHING,{media:b})},T.detachMedia=function(){t.logger.log("detachMedia"),this.trigger(f.Events.MEDIA_DETACHING,void 0),this._media=null},T.loadSource=function(b){this.stopLoad();var _=this.media,I=this.url,L=this.url=w.buildAbsoluteURL(self.location.href,b,{alwaysNormalize:!0});t.logger.log("loadSource:"+L),_&&I&&I!==L&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(_)),this.trigger(f.Events.MANIFEST_LOADING,{url:b})},T.startLoad=function(b){b===void 0&&(b=-1),t.logger.log("startLoad("+b+")"),this.networkControllers.forEach(function(_){_.startLoad(b)})},T.stopLoad=function(){t.logger.log("stopLoad"),this.networkControllers.forEach(function(b){b.stopLoad()})},T.swapAudioCodec=function(){t.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},T.recoverMediaError=function(){t.logger.log("recoverMediaError");var b=this._media;this.detachMedia(),b&&this.attachMedia(b)},T.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){t.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){t.logger.log("set nextLevel:"+b),this.levelController.manualLevel=b,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(b){t.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){t.logger.log("set firstLevel:"+b),this.levelController.firstLevel=b}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(b){t.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&&(t.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 I=b.length,L=0;L<I;L++)if(b[L].maxBitrate>_)return L;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,_=this.autoLevelCapping,I;return _===-1&&b&&b.length?I=b.length-1:I=_,I}},{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:a.hlsDefaultConfig},set:function(b){x.defaultConfig=b}}]),x}();y.defaultConfig=void 0},"./src/is-supported.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"isSupported",function(){return h}),v.d(C,"changeTypeSupported",function(){return c});var w=v("./src/utils/mediasource-helper.ts");function m(){return self.SourceBuffer||self.WebKitSourceBuffer}function h(){var i=Object(w.getMediaSource)();if(!i)return!1;var r=m(),o=i&&typeof i.isTypeSupported=="function"&&i.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!o&&!!n}function c(){var i,r=m();return typeof(r==null||((i=r.prototype)===null||i===void 0)?void 0:i.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return t}),v.d(C,"LoadError",function(){return l});var w=v("./src/polyfills/number.ts"),m=v("./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(g){if(g===null||!o(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(typeof f!="undefined"){if(f.has(g))return f.get(g);f.set(g,A)}function A(){return i(g,arguments,e(this).constructor)}return A.prototype=Object.create(g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),n(A,g)},c(u)}function i(u,f,p){return r()?i=Reflect.construct:i=function(A,y,x){var T=[null];T.push.apply(T,y);var S=Function.bind.apply(A,T),b=new S;return x&&n(b,x.prototype),b},i.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 o(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function n(u,f){return n=Object.setPrototypeOf||function(g,A){return g.__proto__=A,g},n(u,f)}function e(u){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},e(u)}var s=Math.pow(2,17),t=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(g,A){var y=this,x=g.url;if(!x)return Promise.reject(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,networkDetails:null},"Fragment does not have a "+(x?"part list":"url")));this.abort();var T=this.config,S=T.fLoader,b=T.loader;return new Promise(function(_,I){y.loader&&y.loader.destroy();var L=y.loader=g.loader=S?new S(T):new b(T),D=a(g),N={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:s};g.stats=L.stats,L.load(D,N,{onSuccess:function(B,R,H,F){y.resetLoader(g,L),_({frag:g,part:null,payload:B.data,networkDetails:F})},onError:function(B,R,H){y.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,response:B,networkDetails:H}))},onAbort:function(B,R,H){y.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,networkDetails:H}))},onTimeout:function(B,R,H){y.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,networkDetails:H}))},onProgress:function(B,R,H,F){A&&A({frag:g,part:null,payload:H,networkDetails:F})}})})},f.loadPart=function(g,A,y){var x=this;this.abort();var T=this.config,S=T.fLoader,b=T.loader;return new Promise(function(_,I){x.loader&&x.loader.destroy();var L=x.loader=g.loader=S?new S(T):new b(T),D=a(g,A),N={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:s};A.stats=L.stats,L.load(D,N,{onSuccess:function(B,R,H,F){x.resetLoader(g,L),x.updateStatsFromPart(g,A);var K={frag:g,part:A,payload:B.data,networkDetails:F};y(K),_(K)},onError:function(B,R,H){x.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,part:A,response:B,networkDetails:H}))},onAbort:function(B,R,H){g.stats.aborted=A.stats.aborted,x.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,part:A,networkDetails:H}))},onTimeout:function(B,R,H){x.resetLoader(g,L),I(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,part:A,networkDetails:H}))}})})},f.updateStatsFromPart=function(g,A){var y=g.stats,x=A.stats,T=x.total;if(y.loaded+=x.loaded,T){var S=Math.round(g.duration/A.duration),b=Math.min(Math.round(y.loaded/T),S),_=S-b,I=_*Math.round(y.loaded/b);y.total=y.loaded+I}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(g,A){g.loader=null,this.loader===A&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),A.destroy()},u}();function a(u,f){f===void 0&&(f=null);var p=f||u,g={frag:u,part:f,responseType:"arraybuffer",url:p.url,headers:{},rangeStart:0,rangeEnd:0},A=p.byteRangeStartOffset,y=p.byteRangeEndOffset;return Object(w.isFiniteNumber)(A)&&Object(w.isFiniteNumber)(y)&&(g.rangeStart=A,g.rangeEnd=y),g}var l=function(u){h(f,u);function f(p){for(var g,A=arguments.length,y=new Array(A>1?A-1:0),x=1;x<A;x++)y[x-1]=arguments[x];return g=u.call.apply(u,[this].concat(y))||this,g.data=void 0,g.data=p,g}return f}(c(Error))},"./src/loader/fragment.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"ElementaryStreamTypes",function(){return t}),v.d(C,"BaseSegment",function(){return a}),v.d(C,"Fragment",function(){return l}),v.d(C,"Part",function(){return u});var w=v("./src/polyfills/number.ts"),m=v("./node_modules/url-toolkit/src/url-toolkit.js"),h=v.n(m),c=v("./src/utils/logger.ts"),i=v("./src/loader/level-key.ts"),r=v("./src/loader/load-stats.ts");function o(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 e(f,p){for(var g=0;g<p.length;g++){var A=p[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}function s(f,p,g){return p&&e(f.prototype,p),g&&e(f,g),f}var t;(function(f){f.AUDIO="audio",f.VIDEO="video",f.AUDIOVIDEO="audiovideo"})(t||(t={}));var a=function(){function f(g){var A;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(A={},A[t.AUDIO]=null,A[t.VIDEO]=null,A[t.AUDIOVIDEO]=null,A),this.baseurl=g}var p=f.prototype;return p.setByteRange=function(A,y){var x=A.split("@",2),T=[];x.length===1?T[0]=y?y.byteRangeEndOffset:0:T[0]=parseInt(x[1]),T[1]=parseInt(x[0])+T[0],this._byteRange=T},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){o(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 g=p.prototype;return g.createInitializationVector=function(y){for(var x=new Uint8Array(16),T=12;T<16;T++)x[T]=y>>8*(15-T)&255;return x},g.setDecryptDataFromLevelKey=function(y,x){var T=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(T=i.LevelKey.fromURI(y.uri),T.method=y.method,T.iv=this.createInitializationVector(x),T.keyFormat="identity"),T},g.setElementaryStreamInfo=function(y,x,T,S,b,_){_===void 0&&(_=!1);var I=this.elementaryStreams,L=I[y];if(!L){I[y]={startPTS:x,endPTS:T,startDTS:S,endDTS:b,partial:_};return}L.startPTS=Math.min(L.startPTS,x),L.endPTS=Math.max(L.endPTS,T),L.startDTS=Math.min(L.startDTS,S),L.endDTS=Math.max(L.endDTS,b)},g.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[t.AUDIO]=null,y[t.VIDEO]=null,y[t.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(w.isFiniteNumber)(this.programDateTime))return null;var y=Object(w.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}(a),u=function(f){o(p,f);function p(g,A,y,x,T){var S;S=f.call(this,y)||this,S.fragOffset=0,S.duration=0,S.gap=!1,S.independent=!1,S.relurl=void 0,S.fragment=void 0,S.index=void 0,S.stats=new r.LoadStats,S.duration=g.decimalFloatingPoint("DURATION"),S.gap=g.bool("GAP"),S.independent=g.bool("INDEPENDENT"),S.relurl=g.enumeratedString("URI"),S.fragment=A,S.index=x;var b=g.enumeratedString("BYTERANGE");return b&&S.setByteRange(b,T),T&&(S.fragOffset=T.fragOffset+T.duration),S}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}(a)},"./src/loader/key-loader.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return c});var w=v("./src/events.ts"),m=v("./src/errors.ts"),h=v("./src/utils/logger.ts"),c=function(){function i(o){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=o,this._registerListeners()}var r=i.prototype;return r._registerListeners=function(){this.hls.on(w.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(w.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},r.onKeyLoading=function(n,e){var s=e.frag,t=s.type,a=this.loaders[t];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(a&&(h.logger.warn("abort previous key loader for type:"+t),a.abort()),!l){h.logger.warn("key uri is falsy");return}var f=u.loader,p=s.loader=this.loaders[t]=new f(u);this.decrypturl=l,this.decryptkey=null;var g={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(g,A,y)}else this.decryptkey&&(s.decryptdata.key=this.decryptkey,this.hls.trigger(w.Events.KEY_LOADED,{frag:s}))},r.loadsuccess=function(n,e,s){var t=s.frag;if(!t.decryptdata){h.logger.error("after key load, decryptdata unset");return}this.decryptkey=t.decryptdata.key=new Uint8Array(n.data),t.loader=null,delete this.loaders[t.type],this.hls.trigger(w.Events.KEY_LOADED,{frag:t})},r.loaderror=function(n,e){var s=e.frag,t=s.loader;t&&t.abort(),delete this.loaders[s.type],this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:s,response:n})},r.loadtimeout=function(n,e){var s=e.frag,t=s.loader;t&&t.abort(),delete this.loaders[s.type],this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:s})},i}()},"./src/loader/level-details.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"LevelDetails",function(){return i});var w=v("./src/polyfills/number.ts");function m(r,o){for(var n=0;n<o.length;n++){var e=o[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function h(r,o,n){return o&&m(r.prototype,o),n&&m(r,n),r}var c=10,i=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 o=r.prototype;return o.reloaded=function(e){if(!e){this.advanced=!0,this.updated=!0;return}var s=this.lastPartSn-e.lastPartSn,t=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!t||!!s,this.advanced=this.endSN>e.endSN||s>0||s===0&&t>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},h(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(w.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||c}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;if(e>0){var s=this.driftEnd-this.driftStart;return s*1e3/e}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return(e=this.fragments)!==null&&e!==void 0&&e.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 e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"LevelKey",function(){return i});var w=v("./node_modules/url-toolkit/src/url-toolkit.js"),m=v.n(w);function h(r,o){for(var n=0;n<o.length;n++){var e=o[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function c(r,o,n){return o&&h(r.prototype,o),n&&h(r,n),r}var i=function(){r.fromURL=function(n,e){return new r(n,e)},r.fromURI=function(n){return new r(n)};function r(o,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(w.buildAbsoluteURL)(o,n,{alwaysNormalize:!0}):this._uri=o}return c(r,[{key:"uri",get:function(){return this._uri}}]),r}()},"./src/loader/load-stats.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"LoadStats",function(){return w});var w=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,C,v){"use strict";v.r(C),v.d(C,"default",function(){return p});var w=v("./src/polyfills/number.ts"),m=v("./node_modules/url-toolkit/src/url-toolkit.js"),h=v.n(m),c=v("./src/loader/fragment.ts"),i=v("./src/loader/level-details.ts"),r=v("./src/loader/level-key.ts"),o=v("./src/utils/attr-list.ts"),n=v("./src/utils/logger.ts"),e=v("./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,t=/#EXT-X-MEDIA:(.*)/g,a=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(T){var S,b;return u.test((S=(b=m.parseURL(T))===null||b===void 0?void 0:b.path)!=null?S:"")}var p=function(){function T(){}return T.findGroup=function(b,_){for(var I=0;I<b.length;I++){var L=b[I];if(L.id===_)return L}},T.convertAVC1ToAVCOTI=function(b){var _=b.split(".");if(_.length>2){var I=_.shift()+".";return I+=parseInt(_.shift()).toString(16),I+=("000"+parseInt(_.shift()).toString(16)).substr(-4),I}return b},T.resolve=function(b,_){return m.buildAbsoluteURL(_,b,{alwaysNormalize:!0})},T.parseMasterPlaylist=function(b,_){var I=[],L={},D=!1;s.lastIndex=0;for(var N;(N=s.exec(b))!=null;)if(N[1]){var M=new o.AttrList(N[1]),B={attrs:M,bitrate:M.decimalInteger("AVERAGE-BANDWIDTH")||M.decimalInteger("BANDWIDTH"),name:M.NAME,url:T.resolve(N[2],_)},R=M.decimalResolution("RESOLUTION");R&&(B.width=R.width,B.height=R.height),g((M.CODECS||"").split(/[ ,]+/).filter(function(F){return F}),B),B.videoCodec&&B.videoCodec.indexOf("avc1")!==-1&&(B.videoCodec=T.convertAVC1ToAVCOTI(B.videoCodec)),I.push(B)}else if(N[3]){var H=new o.AttrList(N[3]);H["DATA-ID"]&&(D=!0,L[H["DATA-ID"]]=H)}return{levels:I,sessionData:D?L:null}},T.parseMasterPlaylistMedia=function(b,_,I,L){L===void 0&&(L=[]);var D,N=[],M=0;for(t.lastIndex=0;(D=t.exec(b))!==null;){var B=new o.AttrList(D[1]);if(B.TYPE===I){var R={attrs:B,bitrate:0,id:M++,groupId:B["GROUP-ID"],instreamId:B["INSTREAM-ID"],name:B.NAME||B.LANGUAGE||"",type:I,default:B.bool("DEFAULT"),autoselect:B.bool("AUTOSELECT"),forced:B.bool("FORCED"),lang:B.LANGUAGE,url:B.URI?T.resolve(B.URI,_):""};if(L.length){var H=T.findGroup(L,R.groupId)||L[0];A(R,H,"audioCodec"),A(R,H,"textCodec")}N.push(R)}}return N},T.parseLevelPlaylist=function(b,_,I,L,D){var N=new i.LevelDetails(_),M=N.fragments,B=null,R=0,H=0,F=0,K=0,U=null,V=new c.Fragment(L,_),z,Y,q,ce=-1,ie=!1;for(a.lastIndex=0,N.m3u8=b;(z=a.exec(b))!==null;){ie&&(ie=!1,V=new c.Fragment(L,_),V.start=F,V.sn=R,V.cc=K,V.level=I,B&&(V.initSegment=B,V.rawProgramDateTime=B.rawProgramDateTime));var ve=z[1];if(ve){V.duration=parseFloat(ve);var Ee=(" "+z[2]).slice(1);V.title=Ee||null,V.tagList.push(Ee?["INF",ve,Ee]:["INF",ve])}else if(z[3])Object(w.isFiniteNumber)(V.duration)&&(V.start=F,q&&(V.levelkey=q),V.sn=R,V.level=I,V.cc=K,V.urlId=D,M.push(V),V.relurl=(" "+z[3]).slice(1),x(V,U),U=V,F+=V.duration,R++,H=0,ie=!0);else if(z[4]){var Le=(" "+z[4]).slice(1);U?V.setByteRange(Le,U):V.setByteRange(Le)}else if(z[5])V.rawProgramDateTime=(" "+z[5]).slice(1),V.tagList.push(["PROGRAM-DATE-TIME",V.rawProgramDateTime]),ce===-1&&(ce=M.length);else{if(z=z[0].match(l),!z){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(Y=1;Y<z.length&&!(typeof z[Y]!="undefined");Y++);var He=(" "+z[Y]).slice(1),ge=(" "+z[Y+1]).slice(1),Fe=z[Y+2]?(" "+z[Y+2]).slice(1):"";switch(He){case"PLAYLIST-TYPE":N.type=ge.toUpperCase();break;case"MEDIA-SEQUENCE":R=N.startSN=parseInt(ge);break;case"SKIP":{var Q=new o.AttrList(ge),fe=Q.decimalInteger("SKIPPED-SEGMENTS");if(Object(w.isFiniteNumber)(fe)){N.skippedSegments=fe;for(var Je=fe;Je--;)M.unshift(null);R+=fe}var ne=Q.enumeratedString("RECENTLY-REMOVED-DATERANGES");ne&&(N.recentlyRemovedDateranges=ne.split(" "));break}case"TARGETDURATION":N.targetduration=parseFloat(ge);break;case"VERSION":N.version=parseInt(ge);break;case"EXTM3U":break;case"ENDLIST":N.live=!1;break;case"#":(ge||Fe)&&V.tagList.push(Fe?[ge,Fe]:[ge]);break;case"DIS":K++;case"GAP":V.tagList.push([He]);break;case"BITRATE":V.tagList.push([He,ge]);break;case"DISCONTINUITY-SEQ":K=parseInt(ge);break;case"KEY":{var X,G=new o.AttrList(ge),te=G.enumeratedString("METHOD"),we=G.URI,he=G.hexadecimalInteger("IV"),Pe=G.enumeratedString("KEYFORMATVERSIONS"),Oe=G.enumeratedString("KEYID"),le=(X=G.enumeratedString("KEYFORMAT"))!=null?X:"identity",me=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(me.indexOf(le)>-1){n.logger.warn("Keyformat "+le+" is not supported from the manifest");continue}else if(le!=="identity")continue;te&&(q=r.LevelKey.fromURL(_,we),we&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(te)>=0&&(q.method=te,q.keyFormat=le,Oe&&(q.keyID=Oe),Pe&&(q.keyFormatVersions=Pe),q.iv=he));break}case"START":{var _e=new o.AttrList(ge),$e=_e.decimalFloatingPoint("TIME-OFFSET");Object(w.isFiniteNumber)($e)&&(N.startTimeOffset=$e);break}case"MAP":{var gt=new o.AttrList(ge);V.relurl=gt.URI,gt.BYTERANGE&&V.setByteRange(gt.BYTERANGE),V.level=I,V.sn="initSegment",q&&(V.levelkey=q),V.initSegment=null,B=V,ie=!0;break}case"SERVER-CONTROL":{var et=new o.AttrList(ge);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 Ie=new o.AttrList(ge);N.partTarget=Ie.decimalFloatingPoint("PART-TARGET");break}case"PART":{var rt=N.partList;rt||(rt=N.partList=[]);var Ge=H>0?rt[rt.length-1]:void 0,vt=H++,Ot=new c.Part(new o.AttrList(ge),V,_,vt,Ge);rt.push(Ot),V.duration+=Ot.duration;break}case"PRELOAD-HINT":{var Et=new o.AttrList(ge);N.preloadHint=Et;break}case"RENDITION-REPORT":{var Tt=new o.AttrList(ge);N.renditionReports=N.renditionReports||[],N.renditionReports.push(Tt);break}default:n.logger.warn("line parsed but not handled: "+z);break}}}U&&!U.relurl?(M.pop(),F-=U.duration,N.partList&&(N.fragmentHint=U)):N.partList&&(x(V,U),V.cc=K,N.fragmentHint=V);var Rt=M.length,Be=M[0],Z=M[Rt-1];if(F+=N.skippedSegments*N.targetduration,F>0&&Rt&&Z){N.averagetargetduration=F/Rt;var J=Z.sn;N.endSN=J!=="initSegment"?J:0,Be&&(N.startCC=Be.cc,Be.initSegment||N.fragments.every(function(je){return je.relurl&&f(je.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),V=new c.Fragment(L,_),V.relurl=Z.relurl,V.level=I,V.sn="initSegment",Be.initSegment=V,N.needSidxRanges=!0))}else N.endSN=0,N.startCC=0;return N.fragmentHint&&(F+=N.fragmentHint.duration),N.totalduration=F,N.endCC=K,ce>0&&y(M,ce),N},T}();function g(T,S){["video","audio","text"].forEach(function(b){var _=T.filter(function(L){return Object(e.isCodecType)(L,b)});if(_.length){var I=_.filter(function(L){return L.lastIndexOf("avc1",0)===0||L.lastIndexOf("mp4a",0)===0});S[b+"Codec"]=I.length>0?I[0]:_[0],T=T.filter(function(L){return _.indexOf(L)===-1})}}),S.unknownCodecs=T}function A(T,S,b){var _=S[b];_&&(T[b]=_)}function y(T,S){for(var b=T[S],_=S;_--;){var I=T[_];if(!I)return;I.programDateTime=b.programDateTime-I.duration*1e3,b=I}}function x(T,S){T.rawProgramDateTime?T.programDateTime=Date.parse(T.rawProgramDateTime):S!=null&&S.programDateTime&&(T.programDateTime=S.endProgramDateTime),Object(w.isFiniteNumber)(T.programDateTime)||(T.programDateTime=null,T.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/polyfills/number.ts"),m=v("./src/events.ts"),h=v("./src/errors.ts"),c=v("./src/utils/logger.ts"),i=v("./src/utils/mp4-tools.ts"),r=v("./src/loader/m3u8-parser.ts"),o=v("./src/types/loader.ts"),n=v("./src/utils/attr-list.ts");function e(a){var l=a.type;switch(l){case o.PlaylistContextType.AUDIO_TRACK:return o.PlaylistLevelType.AUDIO;case o.PlaylistContextType.SUBTITLE_TRACK:return o.PlaylistLevelType.SUBTITLE;default:return o.PlaylistLevelType.MAIN}}function s(a,l){var u=a.url;return(u===void 0||u.indexOf("data:")===0)&&(u=l.url),u}var t=function(){function a(u){this.hls=void 0,this.loaders=Object.create(null),this.hls=u,this.registerListeners()}var l=a.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,g=p.pLoader,A=p.loader,y=g||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 g=p.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:o.PlaylistContextType.MANIFEST,url:g,deliveryDirectives:null})},l.onLevelLoading=function(f,p){var g=p.id,A=p.level,y=p.url,x=p.deliveryDirectives;this.load({id:g,groupId:null,level:A,responseType:"text",type:o.PlaylistContextType.LEVEL,url:y,deliveryDirectives:x})},l.onAudioTrackLoading=function(f,p){var g=p.id,A=p.groupId,y=p.url,x=p.deliveryDirectives;this.load({id:g,groupId:A,level:null,responseType:"text",type:o.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:x})},l.onSubtitleTrackLoading=function(f,p){var g=p.id,A=p.groupId,y=p.url,x=p.deliveryDirectives;this.load({id:g,groupId:A,level:null,responseType:"text",type:o.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:x})},l.load=function(f){var p,g=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,T,S,b;switch(f.type){case o.PlaylistContextType.MANIFEST:x=g.manifestLoadingMaxRetry,T=g.manifestLoadingTimeOut,S=g.manifestLoadingRetryDelay,b=g.manifestLoadingMaxRetryTimeout;break;case o.PlaylistContextType.LEVEL:case o.PlaylistContextType.AUDIO_TRACK:case o.PlaylistContextType.SUBTITLE_TRACK:x=0,T=g.levelLoadingTimeOut;break;default:x=g.levelLoadingMaxRetry,T=g.levelLoadingTimeOut,S=g.levelLoadingRetryDelay,b=g.levelLoadingMaxRetryTimeout;break}if(A=this.createInternalLoader(f),(p=f.deliveryDirectives)!==null&&p!==void 0&&p.part){var _;if(f.type===o.PlaylistContextType.LEVEL&&f.level!==null?_=this.hls.levels[f.level].details:f.type===o.PlaylistContextType.AUDIO_TRACK&&f.id!==null?_=this.hls.audioTracks[f.id].details:f.type===o.PlaylistContextType.SUBTITLE_TRACK&&f.id!==null&&(_=this.hls.subtitleTracks[f.id].details),_){var I=_.partTarget,L=_.targetduration;I&&L&&(T=Math.min(Math.max(I*3,L*.8)*1e3,T))}}var D={timeout:T,maxRetry:x,retryDelay:S,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,g,A){if(A===void 0&&(A=null),g.isSidxRequest){this.handleSidxRequest(f,g),this.handlePlaylistLoaded(f,p,g,A);return}this.resetInternalLoader(g.type);var y=f.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(f,g,"no EXTM3U delimiter",A);return}p.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(f,p,g,A):this.handleMasterPlaylist(f,p,g,A)},l.loaderror=function(f,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!1,f)},l.loadtimeout=function(f,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!0)},l.handleMasterPlaylist=function(f,p,g,A){var y=this.hls,x=f.data,T=s(f,g),S=r.default.parseMasterPlaylist(x,T),b=S.levels,_=S.sessionData;if(!b.length){this.handleManifestParsingError(f,g,"no level found in manifest",A);return}var I=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,T,"AUDIO",I),N=r.default.parseMasterPlaylistMedia(x,T,"SUBTITLES",L),M=r.default.parseMasterPlaylistMedia(x,T,"CLOSED-CAPTIONS");if(D.length){var B=D.some(function(R){return!R.url});!B&&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:T,stats:p,networkDetails:A,sessionData:_})},l.handleTrackOrLevelPlaylist=function(f,p,g,A){var y=this.hls,x=g.id,T=g.level,S=g.type,b=s(f,g),_=Object(w.isFiniteNumber)(x)?x:0,I=Object(w.isFiniteNumber)(T)?T:_,L=e(g),D=r.default.parseLevelPlaylist(f.data,b,I,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 g.level=="number"?g.level:void 0});return}if(S===o.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,B=(M=D.fragments[0].initSegment)===null||M===void 0?void 0:M.url;this.load({url:B,isSidxRequest:!0,type:S,level:T,levelDetails:D,id:x,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}g.levelDetails=D,this.handlePlaylistLoaded(f,p,g,A)},l.handleSidxRequest=function(f,p){var g=Object(i.parseSegmentIndex)(new Uint8Array(f.data));if(!g)return;var A=g.references,y=p.levelDetails;A.forEach(function(x,T){var S=x.info,b=y.fragments[T];b.byteRange.length===0&&b.setByteRange(String(1+S.end-S.start)+"@"+String(S.start)),b.initSegment&&b.initSegment.setByteRange(String(g.moovEndOffset)+"@0")})},l.handleManifestParsingError=function(f,p,g,A){this.hls.trigger(m.Events.ERROR,{type:h.ErrorTypes.NETWORK_ERROR,details:h.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:p.type===o.PlaylistContextType.MANIFEST,url:f.url,reason:g,response:f,context:p,networkDetails:A})},l.handleNetworkError=function(f,p,g,A){g===void 0&&(g=!1),c.logger.warn("[playlist-loader]: A network "+(g?"timeout":"error")+" occurred while loading "+f.type+" level: "+f.level+" id: "+f.id+' group-id: "'+f.groupId+'"');var y=h.ErrorDetails.UNKNOWN,x=!1,T=this.getInternalLoader(f);switch(f.type){case o.PlaylistContextType.MANIFEST:y=g?h.ErrorDetails.MANIFEST_LOAD_TIMEOUT:h.ErrorDetails.MANIFEST_LOAD_ERROR,x=!0;break;case o.PlaylistContextType.LEVEL:y=g?h.ErrorDetails.LEVEL_LOAD_TIMEOUT:h.ErrorDetails.LEVEL_LOAD_ERROR,x=!1;break;case o.PlaylistContextType.AUDIO_TRACK:y=g?h.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:h.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,x=!1;break;case o.PlaylistContextType.SUBTITLE_TRACK:y=g?h.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:h.ErrorDetails.SUBTITLE_LOAD_ERROR,x=!1;break}T&&this.resetInternalLoader(f.type);var S={type:h.ErrorTypes.NETWORK_ERROR,details:y,fatal:x,url:f.url,loader:T,context:f,networkDetails:p};A&&(S.response=A),this.hls.trigger(m.Events.ERROR,S)},l.handlePlaylistLoaded=function(f,p,g,A){var y=g.type,x=g.level,T=g.id,S=g.groupId,b=g.loader,_=g.levelDetails,I=g.deliveryDirectives;if(!(_!=null&&_.targetduration)){this.handleManifestParsingError(f,g,"invalid target duration",A);return}if(!b)return;_.live&&(b.getCacheAge&&(_.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(_.ageHeader))&&(_.ageHeader=0));switch(y){case o.PlaylistContextType.MANIFEST:case o.PlaylistContextType.LEVEL:this.hls.trigger(m.Events.LEVEL_LOADED,{details:_,level:x||0,id:T||0,stats:p,networkDetails:A,deliveryDirectives:I});break;case o.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(m.Events.AUDIO_TRACK_LOADED,{details:_,id:T||0,groupId:S||"",stats:p,networkDetails:A,deliveryDirectives:I});break;case o.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(m.Events.SUBTITLE_TRACK_LOADED,{details:_,id:T||0,groupId:S||"",stats:p,networkDetails:A,deliveryDirectives:I});break}},a}();C.default=t},"./src/polyfills/number.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"isFiniteNumber",function(){return w}),v.d(C,"MAX_SAFE_INTEGER",function(){return m});var w=Number.isFinite||function(h){return typeof h=="number"&&isFinite(h)},m=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(E,C,v){"use strict";v.r(C);var w=function(){function m(){}return m.getSilentFrame=function(c,i){switch(c){case"mp4a.40.2":if(i===1)return new Uint8Array([0,200,0,128,35,128]);if(i===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(i===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(i===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(i===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(i===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(i===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(i===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(i===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}();C.default=w},"./src/remux/mp4-generator.ts":function(E,C,v){"use strict";v.r(C);var w=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 i;for(i in h.types)h.types.hasOwnProperty(i)&&(h.types[i]=[i.charCodeAt(0),i.charCodeAt(1),i.charCodeAt(2),i.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]),o=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:o};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e=new Uint8Array([0,0,0,0,0,0,0,0]);h.STTS=h.STSC=h.STCO=e,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]),t=new Uint8Array([97,118,99,49]),a=new Uint8Array([0,0,0,1]);h.FTYP=h.box(h.types.ftyp,s,a,s,t),h.DINF=h.box(h.types.dinf,h.box(h.types.dref,n))},h.box=function(i){for(var r=8,o=arguments.length,n=new Array(o>1?o-1:0),e=1;e<o;e++)n[e-1]=arguments[e];for(var s=n.length,t=s;s--;)r+=n[s].byteLength;var a=new Uint8Array(r);for(a[0]=r>>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(i,4),s=0,r=8;s<t;s++)a.set(n[s],r),r+=n[s].byteLength;return a},h.hdlr=function(i){return h.box(h.types.hdlr,h.HDLR_TYPES[i])},h.mdat=function(i){return h.box(h.types.mdat,i)},h.mdhd=function(i,r){r*=i;var o=Math.floor(r/(w+1)),n=Math.floor(r%(w+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,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24,o>>16&255,o>>8&255,o&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},h.mdia=function(i){return h.box(h.types.mdia,h.mdhd(i.timescale,i.duration),h.hdlr(i.type),h.minf(i))},h.mfhd=function(i){return h.box(h.types.mfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255]))},h.minf=function(i){return i.type==="audio"?h.box(h.types.minf,h.box(h.types.smhd,h.SMHD),h.DINF,h.stbl(i)):h.box(h.types.minf,h.box(h.types.vmhd,h.VMHD),h.DINF,h.stbl(i))},h.moof=function(i,r,o){return h.box(h.types.moof,h.mfhd(i),h.traf(o,r))},h.moov=function(i){for(var r=i.length,o=[];r--;)o[r]=h.trak(i[r]);return h.box.apply(null,[h.types.moov,h.mvhd(i[0].timescale,i[0].duration)].concat(o).concat(h.mvex(i)))},h.mvex=function(i){for(var r=i.length,o=[];r--;)o[r]=h.trex(i[r]);return h.box.apply(null,[h.types.mvex].concat(o))},h.mvhd=function(i,r){r*=i;var o=Math.floor(r/(w+1)),n=Math.floor(r%(w+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24,o>>16&255,o>>8&255,o&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,e)},h.sdtp=function(i){var r=i.samples||[],o=new Uint8Array(4+r.length),n,e;for(n=0;n<r.length;n++)e=r[n].flags,o[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return h.box(h.types.sdtp,o)},h.stbl=function(i){return h.box(h.types.stbl,h.stsd(i),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(i){var r=[],o=[],n,e,s;for(n=0;n<i.sps.length;n++)e=i.sps[n],s=e.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(e));for(n=0;n<i.pps.length;n++)e=i.pps[n],s=e.byteLength,o.push(s>>>8&255),o.push(s&255),o=o.concat(Array.prototype.slice.call(e));var t=h.box(h.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|i.sps.length].concat(r).concat([i.pps.length]).concat(o))),a=i.width,l=i.height,u=i.pixelRatio[0],f=i.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,a>>8&255,a&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]),t,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(i){var r=i.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(i.config).concat([6,1,2]))},h.mp4a=function(i){var r=i.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,i.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),h.box(h.types.esds,h.esds(i)))},h.mp3=function(i){var r=i.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,i.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},h.stsd=function(i){return i.type==="audio"?!i.isAAC&&i.codec==="mp3"?h.box(h.types.stsd,h.STSD,h.mp3(i)):h.box(h.types.stsd,h.STSD,h.mp4a(i)):h.box(h.types.stsd,h.STSD,h.avc1(i))},h.tkhd=function(i){var r=i.id,o=i.duration*i.timescale,n=i.width,e=i.height,s=Math.floor(o/(w+1)),t=Math.floor(o%(w+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,t>>24,t>>16&255,t>>8&255,t&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,e>>8&255,e&255,0,0]))},h.traf=function(i,r){var o=h.sdtp(i),n=i.id,e=Math.floor(r/(w+1)),s=Math.floor(r%(w+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,e>>24,e>>16&255,e>>8&255,e&255,s>>24,s>>16&255,s>>8&255,s&255])),h.trun(i,o.length+16+20+8+16+8+8),o)},h.trak=function(i){return i.duration=i.duration||4294967295,h.box(h.types.trak,h.tkhd(i),h.mdia(i))},h.trex=function(i){var r=i.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(i,r){var o=i.samples||[],n=o.length,e=12+16*n,s=new Uint8Array(e),t,a,l,u,f,p;for(r+=8+e,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),t=0;t<n;t++)a=o[t],l=a.duration,u=a.size,f=a.flags,p=a.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*t);return h.box(h.types.trun,s)},h.initSegment=function(i){h.types||h.init();var r=h.moov(i),o=new Uint8Array(h.FTYP.byteLength+r.byteLength);return o.set(h.FTYP),o.set(r,h.FTYP.byteLength),o},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,C.default=m},"./src/remux/mp4-remuxer.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return p}),v.d(C,"normalizePts",function(){return g});var w=v("./src/polyfills/number.ts"),m=v("./src/remux/aac-helper.ts"),h=v("./src/remux/mp4-generator.ts"),c=v("./src/events.ts"),i=v("./src/errors.ts"),r=v("./src/utils/logger.ts"),o=v("./src/types/loader.ts"),n=v("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(T){for(var S=1;S<arguments.length;S++){var b=arguments[S];for(var _ in b)Object.prototype.hasOwnProperty.call(b,_)&&(T[_]=b[_])}return T},e.apply(this,arguments)}var s=10*1e3,t=1024,a=1152,l=null,u=null,f=!1,p=function(){function T(b,_,I,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=I,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 S=T.prototype;return S.destroy=function(){},S.resetTimeStamp=function(_){r.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=_},S.resetNextTimestamp=function(){r.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},S.resetInitSegment=function(){r.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},S.getVideoStartPts=function(_){var I=!1,L=_.reduce(function(D,N){var M=N.pts-D;return M<-4294967296?(I=!0,g(D,N.pts)):M>0?D:N.pts},_[0].pts);return I&&r.logger.debug("PTS rollover detected"),L},S.remux=function(_,I,L,D,N,M,B,R){var H,F,K,U,V,z,Y=N,q=N,ce=_.pid>-1,ie=I.pid>-1,ve=I.samples.length,Ee=_.samples.length>0,Le=ve>1,He=(!ce||Ee)&&(!ie||Le)||this.ISGenerated||B;if(He){this.ISGenerated||(K=this.generateIS(_,I,N));var ge=this.isVideoContiguous,Fe=-1;if(Le&&(Fe=A(I.samples),!ge&&this.config.forceKeyFrameOnDiscontinuity))if(z=!0,Fe>0){r.logger.warn("[mp4-remuxer]: Dropped "+Fe+" out of "+ve+" video samples due to a missing keyframe");var Q=this.getVideoStartPts(I.samples);I.samples=I.samples.slice(Fe),I.dropped+=Fe,q+=(I.samples[0].pts-Q)/(I.timescale||9e4)}else Fe===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+ve+" video samples"),z=!1);if(this.ISGenerated){if(Ee&&Le){var fe=this.getVideoStartPts(I.samples),Je=g(_.samples[0].pts,fe)-fe,ne=Je/I.inputTimeScale;Y+=Math.max(0,ne),q+=Math.max(0,-ne)}if(Ee){if(_.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),K=this.generateIS(_,I,N)),F=this.remuxAudio(_,Y,this.isAudioContiguous,M,ie||Le||R===o.PlaylistLevelType.AUDIO?q:void 0),Le){var X=F?F.endPTS-F.startPTS:0;I.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),K=this.generateIS(_,I,N)),H=this.remuxVideo(I,q,ge,X)}}else Le&&(H=this.remuxVideo(I,q,ge,0));H&&(H.firstKeyFrame=Fe,H.independent=Fe!==-1)}}return this.ISGenerated&&(L.samples.length&&(V=this.remuxID3(L,N)),D.samples.length&&(U=this.remuxText(D,N))),{audio:F,video:H,initSegment:K,independent:z,text:U,id3:V}},S.generateIS=function(_,I,L){var D=_.samples,N=I.samples,M=this.typeSupported,B={},R=!Object(w.isFiniteNumber)(this._initPTS),H="audio/mp4",F,K,U;if(R&&(F=K=Infinity),_.config&&D.length&&(_.timescale=_.samplerate,_.isAAC||(M.mpeg?(H="audio/mpeg",_.codec=""):M.mp3&&(_.codec="mp3")),B.audio={id:"audio",container:H,codec:_.codec,initSegment:!_.isAAC&&M.mpeg?new Uint8Array(0):h.default.initSegment([_]),metadata:{channelCount:_.channelCount}},R&&(U=_.inputTimeScale,F=K=D[0].pts-Math.round(U*L))),I.sps&&I.pps&&N.length&&(I.timescale=I.inputTimeScale,B.video={id:"main",container:"video/mp4",codec:I.codec,initSegment:h.default.initSegment([I]),metadata:{width:I.width,height:I.height}},R)){U=I.inputTimeScale;var V=this.getVideoStartPts(N),z=Math.round(U*L);K=Math.min(K,g(N[0].dts,V)-z),F=Math.min(F,V-z)}if(Object.keys(B).length)return this.ISGenerated=!0,R&&(this._initPTS=F,this._initDTS=K),{tracks:B,initPTS:F,timescale:U}},S.remuxVideo=function(_,I,L,D){var N=_.inputTimeScale,M=_.samples,B=[],R=M.length,H=this._initPTS,F=this.nextAvcDts,K=8,U,V,z,Y=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY,ce=0,ie=!1;if(!L||F===null){var ve=I*N,Ee=M[0].pts-g(M[0].dts,M[0].pts);F=ve-Ee}for(var Le=0;Le<R;Le++){var He=M[Le];if(He.pts=g(He.pts-H,F),He.dts=g(He.dts-H,F),He.dts>He.pts){var ge=9e4*.2;ce=Math.max(Math.min(ce,He.pts-He.dts),-1*ge)}He.dts<M[Le>0?Le-1:Le].dts&&(ie=!0)}ie&&M.sort(function(cn,pr){var gr=cn.dts-pr.dts,Zt=cn.pts-pr.pts;return gr||Zt}),V=M[0].dts,z=M[M.length-1].dts;var Fe=Math.round((z-V)/(R-1));if(ce<0){if(ce<Fe*-2){r.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-Fe,!0)+" ms");for(var Q=ce,fe=0;fe<R;fe++)M[fe].dts=Q=Math.max(Q,M[fe].pts-Fe),M[fe].pts=Math.max(Q,M[fe].pts)}else{r.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(ce,!0)+" ms to overcome this issue");for(var Je=0;Je<R;Je++)M[Je].dts=M[Je].dts+ce}V=M[0].dts}if(L){var ne=V-F,X=ne>Fe,G=ne<-1;if(X||G){X?r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ne,!0)+" ms ("+ne+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ne,!0)+" ms ("+ne+"dts) overlapping between fragments detected"),V=F;var te=M[0].pts-ne;M[0].dts=V,M[0].pts=te,r.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(te,!0)+"/"+Object(n.toMsFromMpegTsClock)(V,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ne,!0)+" ms")}}f&&(V=Math.max(0,V));for(var we=0,he=0,Pe=0;Pe<R;Pe++){for(var Oe=M[Pe],le=Oe.units,me=le.length,_e=0,$e=0;$e<me;$e++)_e+=le[$e].data.length;he+=_e,we+=me,Oe.length=_e,Oe.dts=Math.max(Oe.dts,V),Oe.pts=Math.max(Oe.pts,Oe.dts,0),Y=Math.min(Oe.pts,Y),q=Math.max(Oe.pts,q)}z=M[R-1].dts;var gt=he+4*we+8,et;try{et=new Uint8Array(gt)}catch(cn){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:gt,reason:"fail allocating video mdat "+gt});return}var Ie=new DataView(et.buffer);Ie.setUint32(0,gt),et.set(h.default.types.mdat,4);for(var rt=0;rt<R;rt++){for(var Ge=M[rt],vt=Ge.units,Ot=0,Et=0,Tt=vt.length;Et<Tt;Et++){var Rt=vt[Et],Be=Rt.data,Z=Rt.data.byteLength;Ie.setUint32(K,Z),K+=4,et.set(Be,K),K+=Z,Ot+=4+Z}if(rt<R-1)U=M[rt+1].dts-Ge.dts;else{var J=this.config,je=Ge.dts-M[rt>0?rt-1:rt].dts;if(J.stretchShortVideoTrack&&this.nextAudioPts!==null){var Re=Math.floor(J.maxBufferHole*N),oe=(D?Y+D*N:this.nextAudioPts)-Ge.pts;oe>Re?(U=oe-je,U<0&&(U=je),r.logger.log("[mp4-remuxer]: It is approximately "+oe/90+" ms to the next segment; using duration "+U/90+" ms for the last video frame.")):U=je}else U=je}var yt=Math.round(Ge.pts-Ge.dts);B.push(new y(Ge.key,U,Ot,yt))}if(B.length&&l&&l<70){var zt=B[0].flags;zt.dependsOn=2,zt.isNonSync=0}console.assert(U!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=F=z+U,this.isVideoContiguous=!0;var lt=h.default.moof(_.sequenceNumber++,V,e({},_,{samples:B})),$t="video",cr={data1:lt,data2:et,startPTS:Y/N,endPTS:(q+U)/N,startDTS:V/N,endDTS:F/N,type:$t,hasAudio:!1,hasVideo:!0,nb:B.length,dropped:_.dropped};return _.samples=[],_.dropped=0,console.assert(et.length,"MDAT length must not be zero"),cr},S.remuxAudio=function(_,I,L,D,N){var M=_.inputTimeScale,B=_.samplerate?_.samplerate:M,R=M/B,H=_.isAAC?t:a,F=H*R,K=this._initPTS,U=!_.isAAC&&this.typeSupported.mpeg,V=[],z=_.samples,Y=U?0:8,q=this.nextAudioPts||-1,ce=I*M;if(this.isAudioContiguous=L=L||z.length&&q>0&&(D&&Math.abs(ce-q)<9e3||Math.abs(g(z[0].pts-K,ce)-q)<20*F),z.forEach(function(Be){Be.pts=g(Be.pts-K,ce)}),!L||q<0){if(z=z.filter(function(Be){return Be.pts>=0}),!z.length)return;N===0?q=0:D?q=Math.max(0,ce):q=z[0].pts}if(_.isAAC)for(var ie=N!==void 0,ve=this.config.maxAudioFramesDrift,Ee=0,Le=q;Ee<z.length;Ee++){var He=z[Ee],ge=He.pts,Fe=ge-Le,Q=Math.abs(1e3*Fe/M);if(Fe<=-ve*F&&ie)Ee===0&&(r.logger.warn("Audio frame @ "+(ge/M).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*Fe/M)+" ms."),this.nextAudioPts=q=Le=ge);else if(Fe>=ve*F&&Q<s&&ie){var fe=Math.round(Fe/F);Le=ge-fe*F,Le<0&&(fe--,Le+=F),Ee===0&&(this.nextAudioPts=q=Le),r.logger.warn("[mp4-remuxer]: Injecting "+fe+" audio frame @ "+(Le/M).toFixed(3)+"s due to "+Math.round(1e3*Fe/M)+" ms gap.");for(var Je=0;Je<fe;Je++){var ne=Math.max(Le,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=He.unit.subarray()),z.splice(Ee,0,{unit:X,pts:ne}),Le+=F,Ee++}}He.pts=Le,Le+=F}for(var G=null,te=null,we,he=0,Pe=z.length;Pe--;)he+=z[Pe].unit.byteLength;for(var Oe=0,le=z.length;Oe<le;Oe++){var me=z[Oe],_e=me.unit,$e=me.pts;if(te!==null){var gt=V[Oe-1];gt.duration=Math.round(($e-te)/R)}else if(L&&_.isAAC&&($e=q),G=$e,he>0){he+=Y;try{we=new Uint8Array(he)}catch(Be){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:i.ErrorTypes.MUX_ERROR,details:i.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:he,reason:"fail allocating audio mdat "+he});return}if(!U){var et=new DataView(we.buffer);et.setUint32(0,he),we.set(h.default.types.mdat,4)}}else return;we.set(_e,Y);var Ie=_e.byteLength;Y+=Ie,V.push(new y(!0,H,Ie,0)),te=$e}var rt=V.length;if(!rt)return;var Ge=V[V.length-1];this.nextAudioPts=q=te+R*Ge.duration;var vt=U?new Uint8Array(0):h.default.moof(_.sequenceNumber++,G/R,e({},_,{samples:V}));_.samples=[];var Ot=G/M,Et=q/M,Tt="audio",Rt={data1:vt,data2:we,startPTS:Ot,endPTS:Et,startDTS:Ot,endDTS:Et,type:Tt,hasAudio:!0,hasVideo:!1,nb:rt};return this.isAudioContiguous=!0,console.assert(we.length,"MDAT length must not be zero"),Rt},S.remuxEmptyAudio=function(_,I,L,D){var N=_.inputTimeScale,M=_.samplerate?_.samplerate:N,B=N/M,R=this.nextAudioPts,H=(R!==null?R:D.startDTS*N)+this._initDTS,F=D.endDTS*N+this._initDTS,K=B*t,U=Math.ceil((F-H)/K),V=m.default.getSilentFrame(_.manifestCodec||_.codec,_.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!V){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var z=[],Y=0;Y<U;Y++){var q=H+Y*K;z.push({unit:V,pts:q,dts:q})}return _.samples=z,this.remuxAudio(_,I,L,!1)},S.remuxID3=function(_,I){var L=_.samples.length;if(!L)return;for(var D=_.inputTimeScale,N=this._initPTS,M=this._initDTS,B=0;B<L;B++){var R=_.samples[B];R.pts=g(R.pts-N,I*D)/D,R.dts=g(R.dts-M,I*D)/D}var H=_.samples;return _.samples=[],{samples:H}},S.remuxText=function(_,I){var L=_.samples.length;if(!L)return;for(var D=_.inputTimeScale,N=this._initPTS,M=0;M<L;M++){var B=_.samples[M];B.pts=g(B.pts-N,I*D)/D}_.samples.sort(function(H,F){return H.pts-F.pts});var R=_.samples;return _.samples=[],{samples:R}},T}();function g(T,S){var b;if(S===null)return T;for(S<T?b=-8589934592:b=8589934592;Math.abs(T-S)>4294967296;)T+=b;return T}function A(T){for(var S=0;S<T.length;S++)if(T[S].key)return S;return-1}var y=function(S,b,_,I){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=b,this.size=_,this.cts=I,this.flags=new x(S)},x=function(S){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=S?2:1,this.isNonSync=S?0:1}},"./src/remux/passthrough-remuxer.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/polyfills/number.ts"),m=v("./src/utils/mp4-tools.ts"),h=v("./src/loader/fragment.ts"),c=v("./src/utils/logger.ts"),i=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 e=n.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(t,a,l){this.audioCodec=a,this.videoCodec=l,this.generateInitSegment(t),this.emitInitSegment=!0},e.generateInitSegment=function(t){var a=this.audioCodec,l=this.videoCodec;if(!t||!t.byteLength){this.initTracks=void 0,this.initData=void 0;return}var u=this.initData=Object(m.parseInitSegment)(t);a||(a=o(u.audio,h.ElementaryStreamTypes.AUDIO)),l||(l=o(u.video,h.ElementaryStreamTypes.VIDEO));var f={};u.audio&&u.video?f.audiovideo={container:"video/mp4",codec:a+","+l,initSegment:t,id:"main"}:u.audio?f.audio={container:"audio/mp4",codec:a,initSegment:t,id:"audio"}:u.video?f.video={container:"video/mp4",codec:l,initSegment:t,id:"main"}:c.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=f},e.remux=function(t,a,l,u,f){var p=this.initPTS,g=this.lastEndDTS,A={audio:void 0,video:void 0,text:u,id3:l,initSegment:void 0};Object(w.isFiniteNumber)(g)||(g=this.lastEndDTS=f||0);var y=a.samples;if(!y||!y.length)return A;var x={initPTS:void 0,timescale:1},T=this.initData;if((!T||!T.length)&&(this.generateInitSegment(y),T=this.initData),!T||!T.length)return c.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),A;this.emitInitSegment&&(x.tracks=this.initTracks,this.emitInitSegment=!1),Object(w.isFiniteNumber)(p)||(this.initPTS=x.initPTS=p=r(T,y,g));var S=Object(m.getDuration)(y,T),b=g,_=S+b;Object(m.offsetStartDTS)(T,y,p),S>0?this.lastEndDTS=_:(c.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var I=!!T.audio,L=!!T.video,D="";I&&(D+="audio"),L&&(D+="video");var N={data1:y,startPTS:b,startDTS:b,endPTS:_,endDTS:_,type:D,hasAudio:I,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(e,s,t){return Object(m.getStartDTS)(e,s)-t};function o(n,e){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"||e===h.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}C.default=i},"./src/task-loop.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"default",function(){return w});var w=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(i){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,i),!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,C,v){"use strict";v.r(C),v.d(C,"CMCDVersion",function(){return w}),v.d(C,"CMCDObjectType",function(){return m}),v.d(C,"CMCDStreamingFormat",function(){return h}),v.d(C,"CMCDStreamType",function(){return c});var w=1,m;(function(i){i.MANIFEST="m",i.AUDIO="a",i.VIDEO="v",i.MUXED="av",i.INIT="i",i.CAPTION="c",i.TIMED_TEXT="tt",i.KEY="k",i.OTHER="o"})(m||(m={}));var h;(function(i){i.DASH="d",i.HLS="h",i.SMOOTH="s",i.OTHER="o"})(h||(h={}));var c;(function(i){i.VOD="v",i.LIVE="l"})(c||(c={}))},"./src/types/level.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"HlsSkip",function(){return h}),v.d(C,"getSkipValue",function(){return c}),v.d(C,"HlsUrlParameters",function(){return i}),v.d(C,"Level",function(){return r});function w(o,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(o,s.key,s)}}function m(o,n,e){return n&&w(o.prototype,n),e&&w(o,e),o}var h;(function(o){o.No="",o.Yes="YES",o.v2="v2"})(h||(h={}));function c(o,n){var e=o.canSkipUntil,s=o.canSkipDateRanges,t=o.endSN,a=n!==void 0?n-t:0;return e&&a<e?s?h.v2:h.Yes:h.No}var i=function(){function o(e,s,t){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=s,this.skip=t}var n=o.prototype;return n.addDirectives=function(s){var t=new self.URL(s);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.toString()},o}(),r=function(){function o(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(e){return e}).join(",").replace(/\.[^.,]+/g,"")}return m(o,[{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(e){var s=e%this.url.length;this._urlId!==s&&(this.details=void 0,this._urlId=s)}}]),o}()},"./src/types/loader.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"PlaylistContextType",function(){return w}),v.d(C,"PlaylistLevelType",function(){return m});var w;(function(h){h.MANIFEST="manifest",h.LEVEL="level",h.AUDIO_TRACK="audioTrack",h.SUBTITLE_TRACK="subtitleTrack"})(w||(w={}));var m;(function(h){h.MAIN="main",h.AUDIO="audio",h.SUBTITLE="subtitle"})(m||(m={}))},"./src/types/transmuxer.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"ChunkMetadata",function(){return w});var w=function(c,i,r,o,n,e){o===void 0&&(o=0),n===void 0&&(n=-1),e===void 0&&(e=!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=i,this.id=r,this.size=o,this.part=n,this.partial=e};function m(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"AttrList",function(){return h});var w=/^(\d+)x(\d+)$/,m=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,h=function(){function c(r){typeof r=="string"&&(r=c.parseAttrList(r));for(var o in r)r.hasOwnProperty(o)&&(this[o]=r[o])}var i=c.prototype;return i.decimalInteger=function(o){var n=parseInt(this[o],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},i.hexadecimalInteger=function(o){if(this[o]){var n=(this[o]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var e=new Uint8Array(n.length/2),s=0;s<n.length/2;s++)e[s]=parseInt(n.slice(s*2,s*2+2),16);return e}else return null},i.hexadecimalIntegerAsNumber=function(o){var n=parseInt(this[o],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},i.decimalFloatingPoint=function(o){return parseFloat(this[o])},i.optionalFloat=function(o,n){var e=this[o];return e?parseFloat(e):n},i.enumeratedString=function(o){return this[o]},i.bool=function(o){return this[o]==="YES"},i.decimalResolution=function(o){var n=w.exec(this[o]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},c.parseAttrList=function(o){var n,e={},s='"';for(m.lastIndex=0;(n=m.exec(o))!==null;){var t=n[2];t.indexOf(s)===0&&t.lastIndexOf(s)===t.length-1&&(t=t.slice(1,-1)),e[n[1]]=t}return e},c}()},"./src/utils/binary-search.ts":function(E,C,v){"use strict";v.r(C);var w={search:function(h,c){for(var i=0,r=h.length-1,o=null,n=null;i<=r;){o=(i+r)/2|0,n=h[o];var e=c(n);if(e>0)i=o+1;else if(e<0)r=o-1;else return n}return null}};C.default=w},"./src/utils/buffer-helper.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"BufferHelper",function(){return h});var w=v("./src/utils/logger.ts"),m={length:0,start:function(){return 0},end:function(){return 0}},h=function(){function c(){}return c.isBuffered=function(r,o){try{if(r){for(var n=c.getBuffered(r),e=0;e<n.length;e++)if(o>=n.start(e)&&o<=n.end(e))return!0}}catch(s){}return!1},c.bufferInfo=function(r,o,n){try{if(r){var e=c.getBuffered(r),s=[],t;for(t=0;t<e.length;t++)s.push({start:e.start(t),end:e.end(t)});return this.bufferedInfo(s,o,n)}}catch(a){}return{len:0,start:o,end:o,nextStart:void 0}},c.bufferedInfo=function(r,o,n){o=Math.max(0,o),r.sort(function(x,T){var S=x.start-T.start;return S||T.end-x.end});var e=[];if(n)for(var s=0;s<r.length;s++){var t=e.length;if(t){var a=e[t-1].end;r[s].start-a<n?r[s].end>a&&(e[t-1].end=r[s].end):e.push(r[s])}else e.push(r[s])}else e=r;for(var l=0,u,f=o,p=o,g=0;g<e.length;g++){var A=e[g].start,y=e[g].end;if(o+n>=A&&o<y)f=A,p=y,l=p-o;else if(o+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(o){return w.logger.log("failed to get media.buffered",o),m}},c}()},"./src/utils/cea-608-parser.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"Row",function(){return p}),v.d(C,"CaptionScreen",function(){return g});var w=v("./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 I=_;return m.hasOwnProperty(_)&&(I=m[_]),String.fromCharCode(I)},c=15,i=100,r={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},o={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},e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},s=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],t;(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"})(t||(t={}));var a=function(){function b(){this.time=null,this.verboseLevel=t.ERROR}var _=b.prototype;return _.log=function(L,D){this.verboseLevel>=L&&w.logger.log(this.time+" ["+L+"] "+D)},b}(),l=function(_){for(var I=[],L=0;L<_.length;L++)I.push(_[L].toString(16));return I},u=function(){function b(I,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=I||"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(I,L,D,N,M,B){this.uchar=void 0,this.penState=void 0,this.uchar=I||" ",this.penState=new u(L,D,N,M,B)}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(I){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<i;L++)this.chars.push(new f);this.logger=I,this.pos=0,this.currPenState=new u}var _=b.prototype;return _.equals=function(L){for(var D=!0,N=0;N<i;N++)if(!this.chars[N].equals(L.chars[N])){D=!1;break}return D},_.copy=function(L){for(var D=0;D<i;D++)this.chars[D].copy(L.chars[D])},_.isEmpty=function(){for(var L=!0,D=0;D<i;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(t.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>i&&(this.logger.log(t.DEBUG,"Too large cursor position "+this.pos),this.pos=i)},_.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>=i){this.logger.log(t.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<i;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<i;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}(),g=function(){function b(I){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(I));this.logger=I,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(t.INFO,"setCursor: "+L);var D=this.rows[this.currRow];D.setCursor(L)},_.setPAC=function(L){this.logger.log(t.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,B=this.lastOutputScreen;if(B){var R=B.rows[M].cueStartTime,H=this.logger.time;if(R&&H!==null&&R<H)for(var F=0;F<this.nrRollUpRows;F++)this.rows[D-this.nrRollUpRows+F+1].copy(B.rows[M+F])}}this.currRow=D;var K=this.rows[this.currRow];if(L.indent!==null){var U=L.indent,V=Math.max(U-1,0);K.setCursor(L.indent),L.color=K.chars[V].penState.foreground}var z={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(z)},_.setBkgData=function(L){this.logger.log(t.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(t.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(t.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(t.INFO,"Rolling up")},_.getDisplayText=function(L){L=L||!1;for(var D=[],N="",M=-1,B=0;B<c;B++){var R=this.rows[B].getTextString();R&&(M=B+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(I,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=I,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new g(D),this.nonDisplayedMemory=new g(D),this.lastOutputScreen=new g(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(t.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(t.INFO,N+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(t.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},_.ccRCL=function(){this.logger.log(t.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},_.ccBS=function(){if(this.logger.log(t.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(t.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},_.ccRU=function(L){this.logger.log(t.INFO,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)},_.ccFON=function(){this.logger.log(t.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},_.ccRDC=function(){this.logger.log(t.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},_.ccTR=function(){this.logger.log(t.INFO,"TR"),this.setMode("MODE_TEXT")},_.ccRTD=function(){this.logger.log(t.INFO,"RTD"),this.setMode("MODE_TEXT")},_.ccEDM=function(){this.logger.log(t.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},_.ccCR=function(){this.logger.log(t.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},_.ccENM=function(){this.logger.log(t.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},_.ccEOC=function(){if(this.logger.log(t.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(t.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},_.ccTO=function(L){this.logger.log(t.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(t.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(I,L,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var N=new a;this.channels=[null,new A(I,L,N),new A(I+1,D,N)],this.cmdHistory=S(),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,B,R=!1;this.logger.time=L;for(var H=0;H<D.length;H+=2){if(M=D[H]&127,B=D[H+1]&127,M===0&&B===0)continue;if(this.logger.log(t.DATA,"["+l([D[H],D[H+1]])+"] -> ("+l([M,B])+")"),N=this.parseCmd(M,B),N||(N=this.parseMidrow(M,B)),N||(N=this.parsePAC(M,B)),N||(N=this.parseBackgroundAttributes(M,B)),!N&&(R=this.parseChars(M,B),R)){var F=this.currentChannel;if(F&&F>0){var K=this.channels[F];K.insertChars(R)}else this.logger.log(t.WARNING,"No channel found yet. TEXT-MODE?")}!N&&!R&&this.logger.log(t.WARNING,"Couldn't parse cleaned data "+l([M,B])+" orig: "+l([D[H],D[H+1]]))}},_.parseCmd=function(L,D){var N=this.cmdHistory,M=(L===20||L===28||L===21||L===29)&&D>=32&&D<=47,B=(L===23||L===31)&&D>=33&&D<=35;if(!(M||B))return!1;if(T(L,D,N))return x(null,null,N),this.logger.log(t.DEBUG,"Repeated command ("+l([L,D])+") is dropped"),!0;var R=L===20||L===21||L===23?1:2,H=this.channels[R];return L===20||L===21||L===28||L===29?D===32?H.ccRCL():D===33?H.ccBS():D===34?H.ccAOF():D===35?H.ccAON():D===36?H.ccDER():D===37?H.ccRU(2):D===38?H.ccRU(3):D===39?H.ccRU(4):D===40?H.ccFON():D===41?H.ccRDC():D===42?H.ccTR():D===43?H.ccRTD():D===44?H.ccEDM():D===45?H.ccCR():D===46?H.ccENM():D===47&&H.ccEOC():H.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(t.ERROR,"Mismatch channel in midrow parsing"),!1;var M=this.channels[N];return M?(M.ccMIDROW(D),this.logger.log(t.DEBUG,"MIDROW ("+l([L,D])+")"),!0):!1}return!1},_.parsePAC=function(L,D){var N,M=this.cmdHistory,B=(L>=17&&L<=23||L>=25&&L<=31)&&D>=64&&D<=127,R=(L===16||L===24)&&D>=64&&D<=95;if(!(B||R))return!1;if(T(L,D,M))return x(null,null,M),!0;var H=L<=23?1:2;D>=64&&D<=95?N=H===1?r[L]:n[L]:N=H===1?o[L]:e[L];var F=this.channels[H];return F?(F.setPAC(this.interpretPAC(N,D)),x(L,D,M),this.currentChannel=H,!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,B=null;if(L>=25?(N=2,B=L-8):(N=1,B=L),B>=17&&B<=19){var R;B===17?R=D+80:B===18?R=D+112:R=D+144,this.logger.log(t.INFO,"Special char '"+h(R)+"' in channel "+N),M=[R]}else L>=32&&L<=127&&(M=D===0?[L]:[L,D]);if(M){var H=l(M);this.logger.log(t.DEBUG,"Char codes = "+H.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 B,R={};L===16||L===24?(B=Math.floor((D-32)/2),R.background=s[B],D%2===1&&(R.background=R.background+"_semi")):D===45?R.background="transparent":(R.foreground="black",D===47&&(R.underline=!0));var H=L<=23?1:2,F=this.channels[H];return F.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=S()},_.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,_,I){I.a=b,I.b=_}function T(b,_,I){return I.a===b&&I.b===_}function S(){return{a:null,b:null}}C.default=y},"./src/utils/codecs.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"isCodecType",function(){return m}),v.d(C,"isCodecSupportedInMp4",function(){return h});var w={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,i){var r=w[i];return!!r&&r[c.slice(0,4)]===!0}function h(c,i){return MediaSource.isTypeSupported((i||"video")+'/mp4;codecs="'+c+'"')}},"./src/utils/cues.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/utils/vttparser.ts"),m=v("./src/utils/webvtt-parser.ts"),h=v("./src/utils/texttrack-utils.ts"),c=/\s/,i={newCue:function(o,n,e,s){for(var t=[],a,l,u,f,p,g=self.VTTCue||self.TextTrackCue,A=0;A<s.rows.length;A++)if(a=s.rows[A],u=!0,f=0,p="",!a.isEmpty()){for(var y=0;y<a.chars.length;y++)c.test(a.chars[y].uchar)&&u?f++:(p+=a.chars[y].uchar,u=!1);a.cueStartTime=n,n===e&&(e+=1e-4),f>=16?f--:f++;var x=Object(w.fixLineBreaks)(p.trim()),T=Object(m.generateCueId)(n,e,x);(!o||!o.cues||!o.cues.getCueById(T))&&(l=new g(n,e,x),l.id=T,l.line=A+1,l.align="left",l.position=10+Math.min(80,Math.floor(f*8/32)*10),t.push(l))}return o&&t.length&&(t.sort(function(S,b){return S.line==="auto"||b.line==="auto"?0:S.line>8&&b.line>8?b.line-S.line:S.line-b.line}),t.forEach(function(S){return Object(h.addCueToTrack)(o,S)})),t}};C.default=i},"./src/utils/discontinuities.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"findFirstFragWithCC",function(){return c}),v.d(C,"shouldAlignOnDiscontinuities",function(){return i}),v.d(C,"findDiscontinuousReferenceFrag",function(){return r}),v.d(C,"adjustSlidingStart",function(){return n}),v.d(C,"alignStream",function(){return e}),v.d(C,"alignPDT",function(){return t}),v.d(C,"alignFragmentByPDTDelta",function(){return a}),v.d(C,"alignMediaPlaylistByPDT",function(){return l});var w=v("./src/polyfills/number.ts"),m=v("./src/utils/logger.ts"),h=v("./src/controller/level-helper.ts");function c(u,f){for(var p=null,g=0,A=u.length;g<A;g++){var y=u[g];if(y&&y.cc===f){p=y;break}}return p}function i(u,f,p){return!!(f.details&&(p.endCC>p.startCC||u&&u.cc<p.startCC))}function r(u,f){var p=u.fragments,g=f.fragments;if(!g.length||!p.length){m.logger.log("No fragments to align");return}var A=c(p,g[0].cc);if(!A||A&&!A.startPTS){m.logger.log("No frag in previous level to align on");return}return A}function o(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,g=0,A=p.length;g<A;g++)o(p[g],u);f.fragmentHint&&o(f.fragmentHint,u),f.alignedSliding=!0}function e(u,f,p){if(!f)return;s(u,p,f),!p.alignedSliding&&f.details&&t(p,f.details),!p.alignedSliding&&f.details&&!p.skippedSegments&&Object(h.adjustSliding)(f.details,p)}function s(u,f,p){if(i(u,p,f)){var g=r(p.details,f);g&&Object(w.isFiniteNumber)(g.start)&&(m.logger.log("Adjusting PTS using last level due to CC increase within current level "+f.url),n(g.start,f))}}function t(u,f){if(!f.fragments.length||!u.hasProgramDateTime||!f.hasProgramDateTime)return;var p=f.fragments[0].programDateTime,g=u.fragments[0].programDateTime,A=(g-p)/1e3+f.fragments[0].start;A&&Object(w.isFiniteNumber)(A)&&(m.logger.log("Adjusting PTS using programDateTime delta "+(g-p)+"ms, sliding:"+A.toFixed(3)+" "+u.url+" "),n(A,u))}function a(u,f){var p=u.programDateTime;if(!p)return;var g=(p-f)/1e3;u.start=u.startPTS=g,u.endPTS=g+u.duration}function l(u,f){if(!f.fragments.length||!u.hasProgramDateTime||!f.hasProgramDateTime)return;var p=f.fragments[0].programDateTime,g=f.fragments[0].start,A=p-g*1e3;u.fragments.forEach(function(y){a(y,A)}),u.fragmentHint&&a(u.fragmentHint,A),u.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/utils/ewma.ts"),m=function(){function h(i,r,o){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=o,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new w.default(i),this.fast_=new w.default(r)}var c=h.prototype;return c.update=function(r,o){var n=this.slow_,e=this.fast_;this.slow_.halfLife!==r&&(this.slow_=new w.default(r,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==o&&(this.fast_=new w.default(o,e.getEstimate(),e.getTotalWeight()))},c.sample=function(r,o){r=Math.max(r,this.minDelayMs_);var n=8*o,e=r/1e3,s=n/e;this.fast_.sample(e,s),this.slow_.sample(e,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}();C.default=m},"./src/utils/ewma.ts":function(E,C,v){"use strict";v.r(C);var w=function(){function m(c,i,r){i===void 0&&(i=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_=i,this.totalWeight_=r}var h=m.prototype;return h.sample=function(i,r){var o=Math.pow(this.alpha_,i);this.estimate_=r*(1-o)+o*this.estimate_,this.totalWeight_+=i},h.getTotalWeight=function(){return this.totalWeight_},h.getEstimate=function(){if(this.alpha_){var i=1-Math.pow(this.alpha_,this.totalWeight_);if(i)return this.estimate_/i}return this.estimate_},m}();C.default=w},"./src/utils/fetch-loader.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"fetchSupported",function(){return a});var w=v("./src/polyfills/number.ts"),m=v("./src/loader/load-stats.ts"),h=v("./src/demux/chunk-cache.ts");function c(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,e(g,A)}function i(g){var A=typeof Map=="function"?new Map:void 0;return i=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,T)}function T(){return r(x,arguments,s(this).constructor)}return T.prototype=Object.create(x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),e(T,x)},i(g)}function r(g,A,y){return o()?r=Reflect.construct:r=function(T,S,b){var _=[null];_.push.apply(_,S);var I=Function.bind.apply(T,_),L=new I;return b&&e(L,b.prototype),L},r.apply(null,arguments)}function o(){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(g){return!1}}function n(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function e(g,A){return e=Object.setPrototypeOf||function(x,T){return x.__proto__=T,x},e(g,A)}function s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},s(g)}function t(){return t=Object.assign||function(g){for(var A=1;A<arguments.length;A++){var y=arguments[A];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(g[x]=y[x])}return g},t.apply(this,arguments)}function a(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(g){}return!1}var l=function(){function g(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=g.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,T,S){var b=this,_=this.stats;if(_.loading.start)throw new Error("Loader can only be used once.");_.loading.start=self.performance.now();var I=u(x,this.controller.signal),L=S.onProgress,D=x.responseType==="arraybuffer",N=D?"byteLength":"length";this.context=x,this.config=T,this.callbacks=S,this.request=this.fetchSetup(x,I),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){b.abortInternal(),S.onTimeout(_,x,b.response)},T.timeout),self.fetch(this.request).then(function(M){if(b.response=b.loader=M,!M.ok){var B=M.status,R=M.statusText;throw new p(R||"fetch, bad network response",B,M)}return _.loading.first=Math.max(self.performance.now(),_.loading.start),_.total=parseInt(M.headers.get("Content-Length")||"0"),L&&Object(w.isFiniteNumber)(T.highWaterMark)?b.loadProgressively(M,_,x,T.highWaterMark,L):D?M.arrayBuffer():M.text()}).then(function(M){var B=b.response;self.clearTimeout(b.requestTimeout),_.loading.end=Math.max(self.performance.now(),_.loading.first),_.loaded=_.total=M[N];var R={url:B.url,data:M};L&&!Object(w.isFiniteNumber)(T.highWaterMark)&&L(_,x,M,B),S.onSuccess(R,_,x,B)}).catch(function(M){if(self.clearTimeout(b.requestTimeout),_.aborted)return;var B=M.code||0;S.onError({code:B,text:M.message},x,M.details)})},A.getCacheAge=function(){var x=null;if(this.response){var T=this.response.headers.get("age");x=T?parseFloat(T):null}return x},A.loadProgressively=function(x,T,S,b,_){b===void 0&&(b=0);var I=new h.default,L=x.body.getReader(),D=function N(){return L.read().then(function(M){if(M.done)return I.dataLength&&_(T,S,I.flush(),x),Promise.resolve(new ArrayBuffer(0));var B=M.value,R=B.length;return T.loaded+=R,R<b||I.dataLength?(I.push(B),I.dataLength>=b&&_(T,S,I.flush(),x)):_(T,S,B,x),N()}).catch(function(){return Promise.reject()})};return D()},g}();function u(g,A){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:A,headers:new self.Headers(t({},g.headers))};return g.rangeEnd&&y.headers.set("Range","bytes="+g.rangeStart+"-"+String(g.rangeEnd-1)),y}function f(g,A){return new self.Request(g.url,A)}var p=function(g){c(A,g);function A(y,x,T){var S;return S=g.call(this,y)||this,S.code=void 0,S.details=void 0,S.code=x,S.details=T,S}return A}(i(Error));C.default=l},"./src/utils/imsc1-ttml-parser.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"IMSC1_CODEC",function(){return n}),v.d(C,"parseIMSC1",function(){return a});var w=v("./src/utils/mp4-tools.ts"),m=v("./src/utils/vttparser.ts"),h=v("./src/utils/vttcue.ts"),c=v("./src/demux/id3.ts"),i=v("./src/utils/timescale-conversion.ts"),r=v("./src/utils/webvtt-parser.ts");function o(){return o=Object.assign||function(b){for(var _=1;_<arguments.length;_++){var I=arguments[_];for(var L in I)Object.prototype.hasOwnProperty.call(I,L)&&(b[L]=I[L])}return b},o.apply(this,arguments)}var n="stpp.ttml.im1t",e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,s=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,t={left:"start",center:"center",right:"end",start:"start",end:"end"};function a(b,_,I,L,D){var N=Object(w.findBox)(new Uint8Array(b),["mdat"]);if(N.length===0){D(new Error("Could not parse IMSC1 mdat"));return}var M=N[0],B=Object(c.utf8ArrayToStr)(new Uint8Array(b,M.start,M.end-M.start)),R=Object(i.toTimescaleFromScale)(_,1,I);try{L(l(B,R))}catch(H){D(H)}}function l(b,_){var I=new DOMParser,L=I.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},{}),B=D.getAttribute("xml:space")!=="preserve",R=f(u(D,"styling","style")),H=f(u(D,"layout","region")),F=u(D,"body","[begin]");return[].map.call(F,function(K){var U=p(K,B);if(!U||!K.hasAttribute("begin"))return null;var V=x(K.getAttribute("begin"),M),z=x(K.getAttribute("dur"),M),Y=x(K.getAttribute("end"),M);if(V===null)throw y(K);if(Y===null){if(z===null)throw y(K);Y=V+z}var q=new h.default(V-_,Y-_,U);q.id=Object(r.generateCueId)(q.startTime,q.endTime,q.text);var ce=H[K.getAttribute("region")],ie=R[K.getAttribute("style")];q.position=10,q.size=80;var ve=g(ce,ie),Ee=ve.textAlign;if(Ee){var Le=t[Ee];Le&&(q.lineAlign=Le),q.align=Ee}return o(q,ve),q}).filter(function(K){return K!==null})}function u(b,_,I){var L=b.getElementsByTagName(_)[0];return L?[].slice.call(L.querySelectorAll(I)):[]}function f(b){return b.reduce(function(_,I){var L=I.getAttribute("xml:id");return L&&(_[L]=I),_},{})}function p(b,_){return[].slice.call(b.childNodes).reduce(function(I,L,D){var N;return L.nodeName==="br"&&D?I+`
`:(N=L.childNodes)!==null&&N!==void 0&&N.length?p(L,_):_?I+L.textContent.trim().replace(/\s+/g," "):I+L.textContent},"")}function g(b,_){var I="http://www.w3.org/ns/ttml#styling",L=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return L.reduce(function(D,N){var M=A(_,I,N)||A(b,I,N);return M&&(D[N]=M),D},{})}function A(b,_,I){return b.hasAttributeNS(_,I)?b.getAttributeNS(_,I):null}function y(b){return new Error("Could not parse ttml timestamp "+b)}function x(b,_){if(!b)return null;var I=Object(m.parseTimeStamp)(b);return I===null&&(e.test(b)?I=T(b,_):s.test(b)&&(I=S(b,_))),I}function T(b,_){var I=e.exec(b),L=(I[4]|0)+(I[5]|0)/_.subFrameRate;return(I[1]|0)*3600+(I[2]|0)*60+(I[3]|0)+L/_.frameRate}function S(b,_){var I=s.exec(b),L=Number(I[1]),D=I[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,C,v){"use strict";v.r(C),v.d(C,"enableLogs",function(){return r}),v.d(C,"logger",function(){return o});var w=function(){},m={trace:w,debug:w,log:w,warn:w,info:w,error:w},h=m;function c(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):w}function i(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),t=1;t<e;t++)s[t-1]=arguments[t];s.forEach(function(a){h[a]=n[a]?n[a].bind(n):c(a)})}function r(n){if(self.console&&n===!0||typeof n=="object"){i(n,"debug","log","info","warn","error");try{h.log()}catch(e){h=m}}else h=m}var o=h},"./src/utils/mediakeys-helper.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"KeySystems",function(){return w}),v.d(C,"requestMediaKeySystemAccess",function(){return m});var w;(function(h){h.WIDEVINE="com.widevine.alpha",h.PLAYREADY="com.microsoft.playready"})(w||(w={}));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,C,v){"use strict";v.r(C),v.d(C,"getMediaSource",function(){return w});function w(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"bin2str",function(){return i}),v.d(C,"readUint16",function(){return r}),v.d(C,"readUint32",function(){return o}),v.d(C,"writeUint32",function(){return n}),v.d(C,"findBox",function(){return e}),v.d(C,"parseSegmentIndex",function(){return s}),v.d(C,"parseInitSegment",function(){return t}),v.d(C,"getStartDTS",function(){return a}),v.d(C,"getDuration",function(){return l}),v.d(C,"computeRawDurationFromSamples",function(){return u}),v.d(C,"offsetStartDTS",function(){return f}),v.d(C,"segmentValidRange",function(){return p}),v.d(C,"appendUint8Array",function(){return g});var w=v("./src/utils/typed-array.ts"),m=v("./src/loader/fragment.ts"),h=Math.pow(2,32)-1,c=[].push;function i(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 o(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 e(A,y){var x=[];if(!y.length)return x;var T,S,b;"data"in A?(T=A.data,S=A.start,b=A.end):(T=A,S=0,b=T.byteLength);for(var _=S;_<b;){var I=o(T,_),L=i(T.subarray(_+4,_+8)),D=I>1?_+I:b;if(L===y[0])if(y.length===1)x.push({data:T,start:_+8,end:D});else{var N=e({data:T,start:_+8,end:D},y.slice(1));N.length&&c.apply(x,N)}_=D}return x}function s(A){var y=e(A,["moov"]),x=y[0],T=x?x.end:null,S=e(A,["sidx"]);if(!S||!S[0])return null;var b=[],_=S[0],I=_.data[0],L=I===0?8:16,D=o(_,L);L+=4;var N=0,M=0;I===0?L+=8:L+=16,L+=2;var B=_.end+M,R=r(_,L);L+=2;for(var H=0;H<R;H++){var F=L,K=o(_,F);F+=4;var U=K&2147483647,V=(K&2147483648)>>>31;if(V===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var z=o(_,F);F+=4,b.push({referenceSize:U,subsegmentDuration:z,info:{duration:z/D,start:B,end:B+U-1}}),B+=U,F+=4,L=F}return{earliestPresentationTime:N,timescale:D,version:I,referencesCount:R,references:b,moovEndOffset:T}}function t(A){for(var y=[],x=e(A,["moov","trak"]),T=0;T<x.length;T++){var S=x[T],b=e(S,["tkhd"])[0];if(b){var _=b.data[b.start],I=_===0?12:20,L=o(b,I),D=e(S,["mdia","mdhd"])[0];if(D){_=D.data[D.start],I=_===0?12:20;var N=o(D,I),M=e(S,["mdia","hdlr"])[0];if(M){var B=i(M.data.subarray(M.start+8,M.start+12)),R={soun:m.ElementaryStreamTypes.AUDIO,vide:m.ElementaryStreamTypes.VIDEO}[B];if(R){var H=e(S,["mdia","minf","stbl","stsd"])[0],F=void 0;H&&(F=i(H.data.subarray(H.start+12,H.start+16))),y[L]={timescale:N,type:R},y[R]={timescale:N,id:L,codec:F}}}}}}var K=e(A,["moov","mvex","trex"]);return K.forEach(function(U){var V=o(U,4),z=y[V];z&&(z.default={duration:o(U,12),flags:o(U,20)})}),y}function a(A,y){return e(y,["moof","traf"]).reduce(function(x,T){var S=e(T,["tfdt"])[0],b=S.data[S.start],_=e(T,["tfhd"]).reduce(function(I,L){var D=o(L,4),N=A[D];if(N){var M=o(S,4);b===1&&(M*=Math.pow(2,32),M+=o(S,8));var B=N.timescale||9e4,R=M/B;if(isFinite(R)&&(I===null||R<I))return R}return I},null);return _!==null&&isFinite(_)&&(x===null||_<x)?_:x},null)||0}function l(A,y){for(var x=0,T=0,S=0,b=e(A,["moof","traf"]),_=0;_<b.length;_++){var I=b[_],L=e(I,["tfhd"])[0],D=o(L,4),N=y[D];if(!N)continue;var M=N.default,B=o(L,0)|(M==null?void 0:M.flags),R=M==null?void 0:M.duration;B&8&&(B&2?R=o(L,12):R=o(L,8));for(var H=N.timescale||9e4,F=e(I,["trun"]),K=0;K<F.length;K++){if(R){var U=o(F[K],4);x=R*U}else x=u(F[K]);N.type===m.ElementaryStreamTypes.VIDEO?T+=x/H:N.type===m.ElementaryStreamTypes.AUDIO&&(S+=x/H)}}if(T===0&&S===0){var V=s(A);if(V!=null&&V.references)return V.references.reduce(function(z,Y){return z+Y.info.duration||0},0)}return T||S}function u(A){var y=o(A,0),x=8;y&1&&(x+=4),y&4&&(x+=4);for(var T=0,S=o(A,4),b=0;b<S;b++){if(y&256){var _=o(A,x);T+=_,x+=4}y&512&&(x+=4),y&1024&&(x+=4),y&2048&&(x+=4)}return T}function f(A,y,x){e(y,["moof","traf"]).forEach(function(T){e(T,["tfhd"]).forEach(function(S){var b=o(S,4),_=A[b];if(!_)return;var I=_.timescale||9e4;e(T,["tfdt"]).forEach(function(L){var D=L.data[L.start],N=o(L,4);if(D===0)n(L,4,N-x*I);else{N*=Math.pow(2,32),N+=o(L,8),N-=x*I,N=Math.max(N,0);var M=Math.floor(N/(h+1)),B=Math.floor(N%(h+1));n(L,4,M),n(L,8,B)}})})})}function p(A){var y={valid:null,remainder:null},x=e(A,["moof"]);if(x){if(x.length<2)return y.remainder=A,y}else return y;var T=x[x.length-1];return y.valid=Object(w.sliceUint8)(A,0,T.start-8),y.remainder=Object(w.sliceUint8)(A,T.start-8),y}function g(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,C,v){"use strict";v.r(C),v.d(C,"default",function(){return w});var w=function(){function m(c,i){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=c,this.trackName=i}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(i,r,o){(this.startTime===null||this.startTime>i)&&(this.startTime=i),this.endTime=r,this.screen=o,this.timelineController.createCaptionsTrack(this.trackName)},h.reset=function(){this.cueRanges=[]},m}()},"./src/utils/texttrack-utils.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"sendAddTrackEvent",function(){return m}),v.d(C,"addCueToTrack",function(){return h}),v.d(C,"clearCurrentCues",function(){return c}),v.d(C,"removeCuesInRange",function(){return i}),v.d(C,"getCuesInRange",function(){return o});var w=v("./src/utils/logger.ts");function m(n,e){var s;try{s=new Event("addtrack")}catch(t){s=document.createEvent("Event"),s.initEvent("addtrack",!1,!1)}s.track=n,e.dispatchEvent(s)}function h(n,e){var s=n.mode;if(s==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(a){w.logger.debug("[texttrack-utils]: "+a);var t=new self.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,n.addCue(t)}s==="disabled"&&(n.mode=s)}function c(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var s=n.cues.length;s--;)n.removeCue(n.cues[s]);e==="disabled"&&(n.mode=e)}function i(n,e,s){var t=n.mode;if(t==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var a=o(n.cues,e,s),l=0;l<a.length;l++)n.removeCue(a[l]);t==="disabled"&&(n.mode=t)}function r(n,e){if(e<n[0].startTime)return 0;var s=n.length-1;if(e>n[s].endTime)return-1;for(var t=0,a=s;t<=a;){var l=Math.floor((a+t)/2);if(e<n[l].startTime)a=l-1;else if(e>n[l].startTime&&t<s)t=l+1;else return l}return n[t].startTime-e<e-n[a].startTime?t:a}function o(n,e,s){var t=[],a=r(n,e);if(a>-1)for(var l=a,u=n.length;l<u;l++){var f=n[l];if(f.startTime>=e&&f.endTime<=s)t.push(f);else if(f.startTime>s)return t}return t}},"./src/utils/time-ranges.ts":function(E,C,v){"use strict";v.r(C);var w={toString:function(h){for(var c="",i=h.length,r=0;r<i;r++)c+="["+h.start(r).toFixed(3)+","+h.end(r).toFixed(3)+"]";return c}};C.default=w},"./src/utils/timescale-conversion.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"toTimescaleFromBase",function(){return m}),v.d(C,"toTimescaleFromScale",function(){return h}),v.d(C,"toMsFromMpegTsClock",function(){return c}),v.d(C,"toMpegTsClockFromTimescale",function(){return i});var w=9e4;function m(r,o,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var s=r*o*n;return e?Math.round(s):s}function h(r,o,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),m(r,o,1/n,e)}function c(r,o){return o===void 0&&(o=!1),m(r,1e3,1/w,o)}function i(r,o){return o===void 0&&(o=1),m(r,w,1/o)}},"./src/utils/typed-array.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"sliceUint8",function(){return w});function w(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,C,v){"use strict";v.r(C),C.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var w=["","lr","rl"],m=["start","middle","end","left","right"];function h(n,e){if(typeof e!="string")return!1;if(!Array.isArray(n))return!1;var s=e.toLowerCase();return~n.indexOf(s)?s:!1}function c(n){return h(w,n)}function i(n){return h(m,n)}function r(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),t=1;t<e;t++)s[t-1]=arguments[t];for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var u in l)n[u]=l[u]}return n}function o(n,e,s){var t=this,a={enumerable:!0};t.hasBeenReset=!1;var l="",u=!1,f=n,p=e,g=s,A=null,y="",x=!0,T="auto",S="start",b=50,_="middle",I=50,L="middle";Object.defineProperty(t,"id",r({},a,{get:function(){return l},set:function(N){l=""+N}})),Object.defineProperty(t,"pauseOnExit",r({},a,{get:function(){return u},set:function(N){u=!!N}})),Object.defineProperty(t,"startTime",r({},a,{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(t,"endTime",r({},a,{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(t,"text",r({},a,{get:function(){return g},set:function(N){g=""+N,this.hasBeenReset=!0}})),Object.defineProperty(t,"region",r({},a,{get:function(){return A},set:function(N){A=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"vertical",r({},a,{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(t,"snapToLines",r({},a,{get:function(){return x},set:function(N){x=!!N,this.hasBeenReset=!0}})),Object.defineProperty(t,"line",r({},a,{get:function(){return T},set:function(N){if(typeof N!="number"&&N!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");T=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"lineAlign",r({},a,{get:function(){return S},set:function(N){var M=i(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");S=M,this.hasBeenReset=!0}})),Object.defineProperty(t,"position",r({},a,{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(t,"positionAlign",r({},a,{get:function(){return _},set:function(N){var M=i(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");_=M,this.hasBeenReset=!0}})),Object.defineProperty(t,"size",r({},a,{get:function(){return I},set:function(N){if(N<0||N>100)throw new Error("Size must be between 0 and 100.");I=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"align",r({},a,{get:function(){return L},set:function(N){var M=i(N);if(!M)throw new SyntaxError("An invalid or illegal string was specified.");L=M,this.hasBeenReset=!0}})),t.displayState=void 0}return o.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},o}()},"./src/utils/vttparser.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"parseTimeStamp",function(){return h}),v.d(C,"fixLineBreaks",function(){return e}),v.d(C,"VTTParser",function(){return s});var w=v("./src/utils/vttcue.ts"),m=function(){function t(){}var a=t.prototype;return a.decode=function(u,f){if(!u)return"";if(typeof u!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(u))},t}();function h(t){function a(u,f,p,g){return(u|0)*3600+(f|0)*60+(p|0)+parseFloat(g||0)}var l=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return l?parseFloat(l[2])>59?a(l[2],l[3],0,l[4]):a(l[1],l[2],l[3],l[4]):null}var c=function(){function t(){this.values=Object.create(null)}var a=t.prototype;return a.set=function(u,f){!this.get(u)&&f!==""&&(this.values[u]=f)},a.get=function(u,f,p){return p?this.has(u)?this.values[u]:f[p]:this.has(u)?this.values[u]:f},a.has=function(u){return u in this.values},a.alt=function(u,f,p){for(var g=0;g<p.length;++g)if(f===p[g]){this.set(u,f);break}},a.integer=function(u,f){/^-?\d+$/.test(f)&&this.set(u,parseInt(f,10))},a.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},t}();function i(t,a,l,u){var f=u?t.split(u):[t];for(var p in f){if(typeof f[p]!="string")continue;var g=f[p].split(l);if(g.length!==2)continue;var A=g[0],y=g[1];a(A,y)}}var r=new w.default(0,0,""),o=r.align==="middle"?"middle":"center";function n(t,a,l){var u=t;function f(){var A=h(t);if(A===null)throw new Error("Malformed timestamp: "+u);return t=t.replace(/^[^\sa-zA-Z-]+/,""),A}function p(A,y){var x=new c;i(A,function(b,_){var I;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":I=_.split(","),x.integer(b,I[0]),x.percent(b,I[0])&&x.set("snapToLines",!1),x.alt(b,I[0],["auto"]),I.length===2&&x.alt("lineAlign",I[1],["start",o,"end"]);break;case"position":I=_.split(","),x.percent(b,I[0]),I.length===2&&x.alt("positionAlign",I[1],["start",o,"end","line-left","line-right","auto"]);break;case"size":x.percent(b,_);break;case"align":x.alt(b,_,["start",o,"end","left","right"]);break}},/:/,/\s/),y.region=x.get("region",null),y.vertical=x.get("vertical","");var T=x.get("line","auto");T==="auto"&&r.line===-1&&(T=-1),y.line=T,y.lineAlign=x.get("lineAlign","start"),y.snapToLines=x.get("snapToLines",!0),y.size=x.get("size",100),y.align=x.get("align",o);var S=x.get("position","auto");S==="auto"&&r.position===50&&(S=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=S}function g(){t=t.replace(/^\s+/,"")}if(g(),a.startTime=f(),g(),t.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+u);t=t.substr(3),g(),a.endTime=f(),g(),p(t,a)}function e(t){return t.replace(/<br(?: \/)?>/gi,`
`)}var s=function(){function t(){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 a=t.prototype;return a.parse=function(u){var f=this;u&&(f.buffer+=f.decoder.decode(u,{stream:!0}));function p(){var S=f.buffer,b=0;for(S=e(S);b<S.length&&S[b]!=="\r"&&S[b]!==`
`;)++b;var _=S.substr(0,b);return S[b]==="\r"&&++b,S[b]===`
`&&++b,f.buffer=S.substr(b),_}function g(S){i(S,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)?g(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 w.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(S){f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":{var T=A.indexOf("-->")!==-1;if(!A||T&&(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(S){f.state==="CUETEXT"&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state=f.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},a.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},t}()},"./src/utils/webvtt-parser.ts":function(E,C,v){"use strict";v.r(C),v.d(C,"generateCueId",function(){return s}),v.d(C,"parseWebVTT",function(){return a});var w=v("./src/polyfills/number.ts"),m=v("./src/utils/vttparser.ts"),h=v("./src/demux/id3.ts"),c=v("./src/utils/timescale-conversion.ts"),i=v("./src/remux/mp4-remuxer.ts"),r=/\r\n|\n\r|\n|\r/g,o=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)),g=parseInt(u.substr(-9,2)),A=u.length>9?parseInt(u.substr(0,u.indexOf(":"))):0;if(!Object(w.isFiniteNumber)(f)||!Object(w.isFiniteNumber)(p)||!Object(w.isFiniteNumber)(g)||!Object(w.isFiniteNumber)(A))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+u);return f+=1e3*p,f+=60*1e3*g,f+=60*60*1e3*A,f},e=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 e(l.toString())+e(u.toString())+e(f)}var t=function(u,f,p){var g=u[f],A=u[g.prevCC];if(!A||!A.new&&g.new){u.ccOffset=u.presentationOffset=g.start,g.new=!1;return}for(;(y=A)!==null&&y!==void 0&&y.new;){var y;u.ccOffset+=g.start-A.start,g.new=!1,g=A,A=u[g.prevCC]}u.presentationOffset=p};function a(l,u,f,p,g,A,y,x){var T=new m.VTTParser,S=Object(h.utf8ArrayToStr)(new Uint8Array(l)).trim().replace(r,`
`).split(`
`),b=[],_=Object(c.toMpegTsClockFromTimescale)(u,f),I="00:00.000",L=0,D=0,N,M=!0,B=!1;T.oncue=function(R){var H=p[g],F=p.ccOffset,K=(L-_)/9e4;if(H!=null&&H.new&&(D!==void 0?F=p.ccOffset=H.start:t(p,g,K)),K&&(F=K-p.presentationOffset),B){var U=R.endTime-R.startTime,V=Object(i.normalizePts)((R.startTime+F-D)*9e4,A*9e4)/9e4;R.startTime=V,R.endTime=V+U}var z=R.text.trim();R.text=decodeURIComponent(encodeURIComponent(z)),R.id||(R.id=s(R.startTime,R.endTime,z)),R.endTime>0&&b.push(R)},T.onparsingerror=function(R){N=R},T.onflush=function(){if(N){x(N);return}y(b)},S.forEach(function(R){if(M)if(o(R,"X-TIMESTAMP-MAP=")){M=!1,B=!0,R.substr(16).split(",").forEach(function(H){o(H,"LOCAL:")?I=H.substr(6):o(H,"MPEGTS:")&&(L=parseInt(H.substr(7)))});try{D=n(I)/1e3}catch(H){B=!1,N=H}return}else R===""&&(M=!1);T.parse(R+`
`)}),T.flush()}},"./src/utils/xhr-loader.ts":function(E,C,v){"use strict";v.r(C);var w=v("./src/utils/logger.ts"),m=v("./src/loader/load-stats.ts"),h=/^age:\s*[\d.]+\s*$/m,c=function(){function i(o){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=o?o.xhrSetup:null,this.stats=new m.LoadStats,this.retryDelay=0}var r=i.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,e,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=e,this.callbacks=s,this.retryDelay=e.retryDelay,this.loadInternal()},r.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var s=this.loader=new self.XMLHttpRequest,t=this.stats;t.loading.first=0,t.loaded=0;var a=this.xhrSetup;try{if(a)try{a(s,e.url)}catch(f){s.open("GET",e.url,!0),a(s,e.url)}s.readyState||s.open("GET",e.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},e,s);return}e.rangeEnd&&s.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),s.onreadystatechange=this.readystatechange.bind(this),s.onprogress=this.loadprogress.bind(this),s.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),s.send()},r.readystatechange=function(){var n=this.context,e=this.loader,s=this.stats;if(!n||!e)return;var t=e.readyState,a=this.config;if(s.aborted)return;if(t>=2)if(self.clearTimeout(this.requestTimeout),s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start)),t===4){e.onreadystatechange=null,e.onprogress=null;var l=e.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=e.response,f=u.byteLength):(u=e.responseText,f=u.length),s.loaded=s.total=f,!this.callbacks)return;var p=this.callbacks.onProgress;if(p&&p(s,n,u,e),!this.callbacks)return;var g={url:e.responseURL,data:u};this.callbacks.onSuccess(g,s,n,e)}else s.retry>=a.maxRetry||l>=400&&l<499?(w.logger.error(l+" while loading "+n.url),this.callbacks.onError({code:l,text:e.statusText},n,e)):(w.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,a.maxRetryDelay),s.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)},r.loadtimeout=function(){w.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 e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},r.getCacheAge=function(){var n=null;if(this.loader&&h.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");n=e?parseFloat(e):null}return n},i}();C.default=c}}).default})},v56E:function(j,P,d){},v5uJ:function(j,P,d){var O=d("ProS"),E=d("2B6p"),C=E.updateCenterAndZoom;O.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(v,w){w.eachComponent({mainType:"series",subType:"tree",query:v},function(m){var h=v.dataIndex,c=m.getData().tree,i=c.getNodeByDataIndex(h);i.isExpand=!i.isExpand})}),O.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(v,w){w.eachComponent({mainType:"series",subType:"tree",query:v},function(m){var h=m.coordinateSystem,c=C(h,v);m.setCenter&&m.setCenter(c.center),m.setZoom&&m.setZoom(c.zoom)})})},"vF/C":function(j,P,d){var O=d("bLfw");O.registerSubTypeDefaulter("visualMap",function(E){return!E.categories&&(!(E.pieces?E.pieces.length>0:E.splitNumber>0)||E.calculable)?"continuous":"piecewise"})},vKoX:function(j,P,d){var O=d("SrGk"),E=d("bYtY");function C(m,h){O.call(this,m,h,["filter"],"__filter_in_use__","_shadowDom")}E.inherits(C,O),C.prototype.addWithoutUpdate=function(m,h){if(h&&v(h.style)){var c;if(h._shadowDom){c=h._shadowDom;var i=this.getDefs(!0);i.contains(h._shadowDom)||this.addDom(c)}else c=this.add(h);this.markUsed(h);var r=c.getAttribute("id");m.style.filter="url(#"+r+")"}},C.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},C.prototype.update=function(m,h){var c=h.style;if(v(c)){var i=this;O.prototype.update.call(this,h,function(){i.updateDom(h,h._shadowDom)})}else this.remove(m,h)},C.prototype.remove=function(m,h){h._shadowDomId!=null&&(this.removeDom(m),m.style.filter="")},C.prototype.updateDom=function(m,h){var c=h.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var i=m.style,r=m.scale&&m.scale[0]||1,o=m.scale&&m.scale[1]||1,n,e,s,t;if(i.shadowBlur||i.shadowOffsetX||i.shadowOffsetY)n=i.shadowOffsetX||0,e=i.shadowOffsetY||0,s=i.shadowBlur,t=i.shadowColor;else if(i.textShadowBlur)n=i.textShadowOffsetX||0,e=i.textShadowOffsetY||0,s=i.textShadowBlur,t=i.textShadowColor;else{this.removeDom(h,i);return}c.setAttribute("dx",n/r),c.setAttribute("dy",e/o),c.setAttribute("flood-color",t);var a=s/2/r,l=s/2/o,u=a+" "+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},C.prototype.markUsed=function(m){m._shadowDom&&O.prototype.markUsed.call(this,m._shadowDom)};function v(m){return m&&(m.shadowBlur||m.shadowOffsetX||m.shadowOffsetY||m.textShadowBlur||m.textShadowOffsetX||m.textShadowOffsetY)}var w=C;j.exports=w},vL6D:function(j,P,d){var O=d("bYtY"),E=d("+rIm"),C=d("IwbS"),v=d("7bkD"),w=d("Znkb"),m=d("WN+l"),h=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,i=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine"],o=w.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,s,t,a){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new C.Group;var f=v.layout(e),p=new E(e,f);O.each(i,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),O.each(r,function(g){e.get(g+".show")&&this["_"+g](e)},this),C.groupTransition(u,this._axisGroup,e),o.superCall(this,"render",e,s,t,a)},remove:function(){c(this)},_splitLine:function(e){var s=e.axis;if(s.scale.isBlank())return;var t=e.getModel("splitLine"),a=t.getModel("lineStyle"),l=a.get("width"),u=a.get("color");u=u instanceof Array?u:[u];for(var f=e.coordinateSystem.getRect(),p=s.isHorizontal(),g=[],A=0,y=s.getTicksCoords({tickModel:t}),x=[],T=[],S=0;S<y.length;++S){var b=s.toGlobalCoord(y[S].coord);p?(x[0]=b,x[1]=f.y,T[0]=b,T[1]=f.y+f.height):(x[0]=f.x,x[1]=b,T[0]=f.x+f.width,T[1]=b);var _=A++%u.length;g[_]=g[_]||[],g[_].push(new C.Line({subPixelOptimize:!0,shape:{x1:x[0],y1:x[1],x2:T[0],y2:T[1]},style:{lineWidth:l},silent:!0}))}for(var S=0;S<g.length;++S)this.group.add(C.mergePath(g[S],{style:{stroke:u[S%u.length],lineDash:a.getLineDash(l),lineWidth:l},silent:!0}))},_splitArea:function(e){h(this,this._axisGroup,e,e)}}),n=o;j.exports=n},vWvF:function(j,P,d){var O=d("Bq2U"),E=d("SUKs"),C=d("bYtY"),v=C.isString,w=C.isFunction,m=C.isObject,h=C.isArrayLike,c=C.indexOf,i=function(){this.animators=[]};i.prototype={constructor:i,animate:function(t,a){var l,u=!1,f=this,p=this.__zr;if(t){var g=t.split("."),A=f;u=g[0]==="shape";for(var y=0,x=g.length;y<x;y++){if(!A)continue;A=A[g[y]]}A&&(l=A)}else l=f;if(!l){E('Property "'+t+'" is not existed in element '+f.id);return}var T=f.animators,S=new O(l,a);return S.during(function(b){f.dirty(u)}).done(function(){T.splice(c(T,S),1)}),T.push(S),p&&p.animation.addAnimator(S),S},stopAnimation:function(t){for(var a=this.animators,l=a.length,u=0;u<l;u++)a[u].stop(t);return a.length=0,this},animateTo:function(t,a,l,u,f,p){r(this,t,a,l,u,f,p)},animateFrom:function(t,a,l,u,f,p){r(this,t,a,l,u,f,p,!0)}};function r(s,t,a,l,u,f,p,g){v(l)?(f=u,u=l,l=0):w(u)?(f=u,u="linear",l=0):w(l)?(f=l,l=0):w(a)?(f=a,a=500):a||(a=500),s.stopAnimation(),o(s,"",s,t,a,l,g);var A=s.animators.slice(),y=A.length;function x(){y--,y||f&&f()}y||f&&f();for(var T=0;T<A.length;T++)A[T].done(x).start(u,p)}function o(s,t,a,l,u,f,p){var g={},A=0;for(var y in l){if(!l.hasOwnProperty(y))continue;a[y]!=null?m(l[y])&&!h(l[y])?o(s,t?t+"."+y:y,a[y],l[y],u,f,p):(p?(g[y]=a[y],n(s,t,y,l[y])):g[y]=l[y],A++):l[y]!=null&&!p&&n(s,t,y,l[y])}A>0&&s.animate(t,!1).when(u==null?500:u,g).delay(f||0)}function n(s,t,a,l){if(!t)s.attr(a,l);else{var u={};u[t]={},u[t][a]=l,s.attr(u)}}var e=i;j.exports=e},vZ6x:function(j,P,d){var O=d("Tghj"),E=O.__DEV__,C=d("bYtY"),v=d("IwbS"),w=d("4NO4"),m=d("9KIM"),h=C.each,c=C.indexOf,i=C.curry,r=["dataToPoint","pointToData"],o=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function n(S,b,_){var I=this._targetInfoList=[],L={},D=t(b,S);h(a,function(N,M){(!_||!_.include||c(_.include,M)>=0)&&N(D,I,L)})}var e=n.prototype;e.setOutputRanges=function(S,b){this.matchOutputRanges(S,b,function(_,I,L){if((_.coordRanges||(_.coordRanges=[])).push(I),!_.coordRange){_.coordRange=I;var D=f[_.brushType](0,L,I);_.__rangeOffset={offset:g[_.brushType](D.values,_.range,[1,1]),xyMinMax:D.xyMinMax}}})},e.matchOutputRanges=function(S,b,_){h(S,function(I){var L=this.findTargetInfo(I,b);L&&L!==!0&&C.each(L.coordSyses,function(D){var N=f[I.brushType](1,D,I.range);_(I,N.values,D,b)})},this)},e.setInputRanges=function(S,b){h(S,function(_){var I=this.findTargetInfo(_,b);if(_.range=_.range||[],I&&I!==!0){_.panelId=I.panelId;var L=f[_.brushType](0,I.coordSys,_.coordRange),D=_.__rangeOffset;_.range=D?g[_.brushType](L.values,D.offset,y(L.xyMinMax,D.xyMinMax)):L.values}},this)},e.makePanelOpts=function(S,b){return C.map(this._targetInfoList,function(_){var I=_.getPanelRect();return{panelId:_.panelId,defaultBrushType:b&&b(_),clipPath:m.makeRectPanelClipPath(I),isTargetByCursor:m.makeRectIsTargetByCursor(I,S,_.coordSysModel),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(S,b,_){var I=this.findTargetInfo(S,_);return I===!0||I&&c(I.coordSyses,b.coordinateSystem)>=0},e.findTargetInfo=function(S,b){for(var _=this._targetInfoList,I=t(b,S),L=0;L<_.length;L++){var D=_[L],N=S.panelId;if(N){if(D.panelId===N)return D}else for(var L=0;L<l.length;L++)if(l[L](I,D))return D}return!0};function s(S){return S[0]>S[1]&&S.reverse(),S}function t(S,b){return w.parseFinder(S,b,{includeMainTypes:o})}var a={grid:function(S,b){var _=S.xAxisModels,I=S.yAxisModels,L=S.gridModels,D=C.createHashMap(),N={},M={};if(!_&&!I&&!L)return;h(_,function(B){var R=B.axis.grid.model;D.set(R.id,R),N[R.id]=!0}),h(I,function(B){var R=B.axis.grid.model;D.set(R.id,R),M[R.id]=!0}),h(L,function(B){D.set(B.id,B),N[B.id]=!0,M[B.id]=!0}),D.each(function(B){var R=B.coordinateSystem,H=[];h(R.getCartesians(),function(F,K){(c(_,F.getAxis("x").model)>=0||c(I,F.getAxis("y").model)>=0)&&H.push(F)}),b.push({panelId:"grid--"+B.id,gridModel:B,coordSysModel:B,coordSys:H[0],coordSyses:H,getPanelRect:u.grid,xAxisDeclared:N[B.id],yAxisDeclared:M[B.id]})})},geo:function(S,b){h(S.geoModels,function(_){var I=_.coordinateSystem;b.push({panelId:"geo--"+_.id,geoModel:_,coordSysModel:_,coordSys:I,coordSyses:[I],getPanelRect:u.geo})})}},l=[function(S,b){var _=S.xAxisModel,I=S.yAxisModel,L=S.gridModel;return!L&&_&&(L=_.axis.grid.model),!L&&I&&(L=I.axis.grid.model),L&&L===b.gridModel},function(S,b){var _=S.geoModel;return _&&_===b.geoModel}],u={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var S=this.coordSys,b=S.getBoundingRect().clone();return b.applyTransform(v.getTransform(S)),b}},f={lineX:i(p,0),lineY:i(p,1),rect:function(S,b,_){var I=b[r[S]]([_[0][0],_[1][0]]),L=b[r[S]]([_[0][1],_[1][1]]),D=[s([I[0],L[0]]),s([I[1],L[1]])];return{values:D,xyMinMax:D}},polygon:function(S,b,_){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],L=C.map(_,function(D){var N=b[r[S]](D);return I[0][0]=Math.min(I[0][0],N[0]),I[1][0]=Math.min(I[1][0],N[1]),I[0][1]=Math.max(I[0][1],N[0]),I[1][1]=Math.max(I[1][1],N[1]),N});return{values:L,xyMinMax:I}}};function p(S,b,_,I){var L=_.getAxis(["x","y"][S]),D=s(C.map([0,1],function(M){return b?L.coordToData(L.toLocalCoord(I[M])):L.toGlobalCoord(L.dataToCoord(I[M]))})),N=[];return N[S]=D,N[1-S]=[NaN,NaN],{values:D,xyMinMax:N}}var g={lineX:i(A,0),lineY:i(A,1),rect:function(S,b,_){return[[S[0][0]-_[0]*b[0][0],S[0][1]-_[0]*b[0][1]],[S[1][0]-_[1]*b[1][0],S[1][1]-_[1]*b[1][1]]]},polygon:function(S,b,_){return C.map(S,function(I,L){return[I[0]-_[0]*b[L][0],I[1]-_[1]*b[L][1]]})}};function A(S,b,_,I){return[b[0]-I[S]*_[0],b[1]-I[S]*_[1]]}function y(S,b){var _=x(S),I=x(b),L=[_[0]/I[0],_[1]/I[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function x(S){return S?[S[0][1]-S[0][0],S[1][1]-S[1][0]]:[NaN,NaN]}var T=n;j.exports=T},vZI5:function(j,P,d){var O=d("bYtY"),E=d("T4UG"),C=d("5GhG"),v=C.seriesModelMixin,w=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,i){var r=c.getItemLayout(h);return r&&i.rect(r.brushRect)}});O.mixin(w,v,!0);var m=w;j.exports=m},vafp:function(j,P,d){var O=d("bYtY"),E=d("8nly");function C(m){if(!m.UTF8Encoding)return m;var h=m.UTF8Scale;h==null&&(h=1024);for(var c=m.features,i=0;i<c.length;i++)for(var r=c[i],o=r.geometry,n=o.coordinates,e=o.encodeOffsets,s=0;s<n.length;s++){var t=n[s];if(o.type==="Polygon")n[s]=v(t,e[s],h);else if(o.type==="MultiPolygon")for(var a=0;a<t.length;a++){var l=t[a];t[a]=v(l,e[s][a],h)}}return m.UTF8Encoding=!1,m}function v(m,h,c){for(var i=[],r=h[0],o=h[1],n=0;n<m.length;n+=2){var e=m.charCodeAt(n)-64,s=m.charCodeAt(n+1)-64;e=e>>1^-(e&1),s=s>>1^-(s&1),e+=r,s+=o,r=e,o=s,i.push([e/c,s/c])}return i}function w(m,h){return C(m),O.map(O.filter(m.features,function(c){return c.geometry&&c.properties&&c.geometry.coordinates.length>0}),function(c){var i=c.properties,r=c.geometry,o=r.coordinates,n=[];r.type==="Polygon"&&n.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),r.type==="MultiPolygon"&&O.each(o,function(s){s[0]&&n.push({type:"polygon",exterior:s[0],interiors:s.slice(1)})});var e=new E(i[h||"name"],n,i.cp);return e.properties=i,e})}j.exports=w},vcCh:function(j,P,d){var O=d("ProS");d("0qV/"),O.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(E,C){C.eachComponent({mainType:"series",subType:"sankey",query:E},function(v){v.setNodePosition(E.dataIndex,[E.localX,E.localY])})})},vewr:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.getPointerEvent=O,P.stopEvent=E,P.setCapture=c,P.releaseCapture=i;function O(r){return r.changedTouches?r.changedTouches[0]:r.touches?r.touches[0]:r}function E(r){r.stopPropagation(),r.preventDefault()}var C=!1,v=null;document.captureElement=null;function w(r){if(C)return;var o=new r.constructor(r.type,r);C=!0,document.captureElement?document.captureElement.dispatchEvent(o):v.dispatchEvent(o),C=!1,r.stopPropagation(),o.defaultPrevented&&r.preventDefault(),r.type==="mouseup"&&i()}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",i);else{i();var o=document.getElementById("noVNC_mouse_capture_elem");o===null&&(o=document.createElement("div"),o.id="noVNC_mouse_capture_elem",o.style.position="fixed",o.style.top="0px",o.style.left="0px",o.style.width="100%",o.style.height="100%",o.style.zIndex=1e4,o.style.display="none",document.body.appendChild(o),o.addEventListener("contextmenu",w),o.addEventListener("mousemove",w),o.addEventListener("mouseup",w)),document.captureElement=r,h.observe(r,{attributes:!0}),m(),o.style.display="",window.addEventListener("mousemove",w),window.addEventListener("mouseup",w)}}function i(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;v=document.captureElement,document.captureElement=null,h.disconnect();var r=document.getElementById("noVNC_mouse_capture_elem");r.style.display="none",window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",w)}}},vg9a:function(j,P,d){},"vk+C":function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("RZPm"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},w4Tj:function(j,P,d){"use strict";d.d(P,"a",function(){return C});var O=d("oZsa");function E(v,w){for(;!Object.prototype.hasOwnProperty.call(v,w)&&!(v=Object(O.a)(v),v===null););return v}function C(v,w,m){return typeof Reflect!="undefined"&&Reflect.get?C=Reflect.get:C=function(c,i,r){var o=E(c,i);if(!o)return;var n=Object.getOwnPropertyDescriptor(o,i);return n.get?n.get.call(r):n.value},C(v,w,m||v)}},w5pM:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="PlusCircleOutlined";var h=P.a=E.forwardRef(m)},w6Tc:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("apAg"));function E(v){return v&&v.__esModule?v:{default:v}}var C=O;P.default=C,j.exports=C},w7YG:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.StreamCipher,w=E.algo,m=w.RC4=v.extend({_doReset:function(){for(var r=this._key,o=r.words,n=r.sigBytes,e=this._S=[],s=0;s<256;s++)e[s]=s;for(var s=0,t=0;s<256;s++){var a=s%n,l=o[a>>>2]>>>24-a%4*8&255;t=(t+e[s]+l)%256;var u=e[s];e[s]=e[t],e[t]=u}this._i=this._j=0},_doProcessBlock:function(r,o){r[o]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var i=this._S,r=this._i,o=this._j,n=0,e=0;e<4;e++){r=(r+1)%256,o=(o+i[r])%256;var s=i[r];i[r]=i[o],i[o]=s,n|=i[(i[r]+i[o])%256]<<24-e*8}return this._i=r,this._j=o,n}E.RC4=v._createHelper(m);var c=w.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=v._createHelper(c)}(),O.RC4})},wCAj:function(j,P,d){"use strict";var O=d("cDf5"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("J4zp"),m=d.n(w),h=d("pVnL"),c=d.n(h),i=d("q1tI"),r=d("TSYQ"),o=d.n(r),n=d("BGR+"),e=d("rePB"),s=d("VTBJ"),t=d("KQm4"),a=d("U8pU"),l=d("ODXe"),u=d("Gytx"),f=d.n(u),p=d("Kwbf"),g=d("1OyB"),A=d("vuIU"),y=d("Ji7U"),x=d("LK+K"),T=d("m+aA"),S=d("Zm9Q"),b=d("c+Xe"),_=d("bdgK"),I="rc-observer-key",L=function(hr){Object(y.a)(dn,hr);var Sn=Object(x.a)(dn);function dn(){var Kn;return Object(g.a)(this,dn),Kn=Sn.apply(this,arguments),Kn.resizeObserver=null,Kn.childNode=null,Kn.currentElement=null,Kn.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Kn.onResize=function(si){var vi=Kn.props.onResize,pi=si[0].target,di=pi.getBoundingClientRect(),Ki=di.width,Mi=di.height,pa=pi.offsetWidth,_i=pi.offsetHeight,da=Math.floor(Ki),na=Math.floor(Mi);if(Kn.state.width!==da||Kn.state.height!==na||Kn.state.offsetWidth!==pa||Kn.state.offsetHeight!==_i){var Sa={width:da,height:na,offsetWidth:pa,offsetHeight:_i};Kn.setState(Sa),vi&&Promise.resolve().then(function(){vi(Object(s.a)(Object(s.a)({},Sa),{},{offsetWidth:pa,offsetHeight:_i}))})}},Kn.setChildNode=function(si){Kn.childNode=si},Kn}return Object(A.a)(dn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var si=this.props.disabled;if(si){this.destroyObserver();return}var vi=Object(T.a)(this.childNode||this),pi=vi!==this.currentElement;pi&&(this.destroyObserver(),this.currentElement=vi),!this.resizeObserver&&vi&&(this.resizeObserver=new _.default(this.onResize),this.resizeObserver.observe(vi))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var si=this.props.children,vi=Object(S.a)(si);if(vi.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(vi.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var pi=vi[0];if(i.isValidElement(pi)&&Object(b.c)(pi)){var di=pi.ref;vi[0]=i.cloneElement(pi,{ref:Object(b.a)(di,this.setChildNode)})}return vi.length===1?vi[0]:vi.map(function(Ki,Mi){return!i.isValidElement(Ki)||"key"in Ki&&Ki.key!==null?Ki:i.cloneElement(Ki,{key:"".concat(I,"-").concat(Mi)})})}}]),dn}(i.Component);L.displayName="ResizeObserver";var D=L,N=d("qx4F");function M(hr){return null}var B=M;function R(hr){return null}var H=R,F=d("Ff2n"),K="RC_TABLE_KEY";function U(hr){return hr==null?[]:Array.isArray(hr)?hr:[hr]}function V(hr,Sn){if(!Sn&&typeof Sn!="number")return hr;for(var dn=U(Sn),Kn=hr,si=0;si<dn.length;si+=1){if(!Kn)return null;var vi=dn[si];Kn=Kn[vi]}return Kn}function z(hr){var Sn=[],dn={};return hr.forEach(function(Kn){for(var si=Kn||{},vi=si.key,pi=si.dataIndex,di=vi||U(pi).join("-")||K;dn[di];)di="".concat(di,"_next");dn[di]=!0,Sn.push(di)}),Sn}function Y(){var hr={};function Sn(vi,pi){pi&&Object.keys(pi).forEach(function(di){var Ki=pi[di];Ki&&Object(a.a)(Ki)==="object"?(vi[di]=vi[di]||{},Sn(vi[di],Ki)):vi[di]=Ki})}for(var dn=arguments.length,Kn=new Array(dn),si=0;si<dn;si++)Kn[si]=arguments[si];return Kn.forEach(function(vi){Sn(hr,vi)}),hr}function q(hr){return hr!=null}function ce(hr){return hr&&Object(a.a)(hr)==="object"&&!Array.isArray(hr)&&!i.isValidElement(hr)}function ie(hr){return typeof hr=="string"?!0:Object(b.c)(hr)}function ve(hr,Sn){var dn,Kn=hr.prefixCls,si=hr.className,vi=hr.record,pi=hr.index,di=hr.dataIndex,Ki=hr.render,Mi=hr.children,pa=hr.component,_i=pa===void 0?"td":pa,da=hr.colSpan,na=hr.rowSpan,Sa=hr.fixLeft,Aa=hr.fixRight,ua=hr.firstFixLeft,La=hr.lastFixLeft,sa=hr.firstFixRight,co=hr.lastFixRight,no=hr.appendNode,ca=hr.additionalProps,yo=ca===void 0?{}:ca,lo=hr.ellipsis,Na=hr.align,ho=hr.rowType,Io=hr.isSticky,eo="".concat(Kn,"-cell"),Lo,Va;if(Mi)Va=Mi;else{var Bo=V(vi,di);if(Va=Bo,Ki){var Ho=Ki(Bo,vi,pi);ce(Ho)?(Va=Ho.children,Lo=Ho.props):Va=Ho}}Object(a.a)(Va)==="object"&&!Array.isArray(Va)&&!i.isValidElement(Va)&&(Va=null),lo&&(La||sa)&&(Va=i.createElement("span",{className:"".concat(eo,"-content")},Va));var Pr=Lo||{},An=Pr.colSpan,Pn=Pr.rowSpan,qr=Pr.style,er=Pr.className,Dr=Object(F.a)(Pr,["colSpan","rowSpan","style","className"]),lr=An!==void 0?An:da,on=Pn!==void 0?Pn:na;if(lr===0||on===0)return null;var fn={},Wn=typeof Sa=="number",Dn=typeof Aa=="number";Wn&&(fn.position="sticky",fn.left=Sa),Dn&&(fn.position="sticky",fn.right=Aa);var Jn={};Na&&(Jn.textAlign=Na);var Ti,xi=lo===!0?{showTitle:!0}:lo;xi&&(xi.showTitle||ho==="header")&&(typeof Va=="string"||typeof Va=="number"?Ti=Va.toString():i.isValidElement(Va)&&typeof Va.props.children=="string"&&(Ti=Va.props.children));var Bi=Object(s.a)(Object(s.a)(Object(s.a)({title:Ti},Dr),yo),{},{colSpan:lr&&lr!==1?lr:null,rowSpan:on&&on!==1?on:null,className:o()(eo,si,(dn={},Object(e.a)(dn,"".concat(eo,"-fix-left"),Wn),Object(e.a)(dn,"".concat(eo,"-fix-left-first"),ua),Object(e.a)(dn,"".concat(eo,"-fix-left-last"),La),Object(e.a)(dn,"".concat(eo,"-fix-right"),Dn),Object(e.a)(dn,"".concat(eo,"-fix-right-first"),sa),Object(e.a)(dn,"".concat(eo,"-fix-right-last"),co),Object(e.a)(dn,"".concat(eo,"-ellipsis"),lo),Object(e.a)(dn,"".concat(eo,"-with-append"),no),Object(e.a)(dn,"".concat(eo,"-fix-sticky"),(Wn||Dn)&&Io),dn),yo.className,er),style:Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},yo.style),Jn),fn),qr),ref:ie(_i)?Sn:null});return i.createElement(_i,Object.assign({},Bi),no,Va)}var Ee=i.forwardRef(ve);Ee.displayName="Cell";var Le=i.memo(Ee,function(hr,Sn){return Sn.shouldCellUpdate?!Sn.shouldCellUpdate(Sn.record,hr.record):!1}),He=Le,ge=i.createContext(null),Fe=ge;function Q(hr,Sn,dn,Kn,si){var vi=dn[hr]||{},pi=dn[Sn]||{},di,Ki;vi.fixed==="left"?di=Kn.left[hr]:pi.fixed==="right"&&(Ki=Kn.right[Sn]);var Mi=!1,pa=!1,_i=!1,da=!1,na=dn[Sn+1],Sa=dn[hr-1];if(si==="rtl"){if(di!==void 0){var Aa=Sa&&Sa.fixed==="left";da=!Aa}else if(Ki!==void 0){var ua=na&&na.fixed==="right";_i=!ua}}else if(di!==void 0){var La=na&&na.fixed==="left";Mi=!La}else if(Ki!==void 0){var sa=Sa&&Sa.fixed==="right";pa=!sa}return{fixLeft:di,fixRight:Ki,lastFixLeft:Mi,firstFixRight:pa,lastFixRight:_i,firstFixLeft:da,isSticky:Kn.isSticky}}function fe(hr){var Sn=hr.cells,dn=hr.stickyOffsets,Kn=hr.flattenColumns,si=hr.rowComponent,vi=hr.cellComponent,pi=hr.onHeaderRow,di=hr.index,Ki=i.useContext(Fe),Mi=Ki.prefixCls,pa=Ki.direction,_i;pi&&(_i=pi(Sn.map(function(na){return na.column}),di));var da=z(Sn.map(function(na){return na.column}));return i.createElement(si,Object.assign({},_i),Sn.map(function(na,Sa){var Aa=na.column,ua=Q(na.colStart,na.colEnd,Kn,dn,pa),La;return Aa&&Aa.onHeaderCell&&(La=na.column.onHeaderCell(Aa)),i.createElement(He,Object.assign({},na,{ellipsis:Aa.ellipsis,align:Aa.align,component:vi,prefixCls:Mi,key:da[Sa]},ua,{additionalProps:La,rowType:"header"}))}))}fe.displayName="HeaderRow";var Je=fe;function ne(hr){var Sn=[];function dn(pi,di){var Ki=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Sn[Ki]=Sn[Ki]||[];var Mi=di,pa=pi.filter(Boolean).map(function(_i){var da={key:_i.key,className:_i.className||"",children:_i.title,column:_i,colStart:Mi},na=1,Sa=_i.children;return Sa&&Sa.length>0&&(na=dn(Sa,Mi,Ki+1).reduce(function(Aa,ua){return Aa+ua},0),da.hasSubColumns=!0),"colSpan"in _i&&(na=_i.colSpan),"rowSpan"in _i&&(da.rowSpan=_i.rowSpan),da.colSpan=na,da.colEnd=da.colStart+na-1,Sn[Ki].push(da),Mi+=na,na});return pa}dn(hr,0);for(var Kn=Sn.length,si=function(di){Sn[di].forEach(function(Ki){!("rowSpan"in Ki)&&!Ki.hasSubColumns&&(Ki.rowSpan=Kn-di)})},vi=0;vi<Kn;vi+=1)si(vi);return Sn}function X(hr){var Sn=hr.stickyOffsets,dn=hr.columns,Kn=hr.flattenColumns,si=hr.onHeaderRow,vi=i.useContext(Fe),pi=vi.prefixCls,di=vi.getComponent,Ki=i.useMemo(function(){return ne(dn)},[dn]),Mi=di(["header","wrapper"],"thead"),pa=di(["header","row"],"tr"),_i=di(["header","cell"],"th");return i.createElement(Mi,{className:"".concat(pi,"-thead")},Ki.map(function(da,na){var Sa=i.createElement(Je,{key:na,flattenColumns:Kn,cells:da,stickyOffsets:Sn,rowComponent:pa,cellComponent:_i,onHeaderRow:si,index:na});return Sa}))}var G=X,te="RC_TABLE_INTERNAL_COL_DEFINE";function we(hr){var Sn=hr.expandable,dn=Object(F.a)(hr,["expandable"]);return"expandable"in hr?Object(s.a)(Object(s.a)({},dn),Sn):dn}function he(hr){return Object.keys(hr).reduce(function(Sn,dn){return(dn.substr(0,5)==="data-"||dn.substr(0,5)==="aria-")&&(Sn[dn]=hr[dn]),Sn},{})}function Pe(hr){for(var Sn=hr.colWidths,dn=hr.columns,Kn=hr.columCount,si=[],vi=Kn||dn.length,pi=!1,di=vi-1;di>=0;di-=1){var Ki=Sn[di],Mi=dn&&dn[di],pa=Mi&&Mi[te];(Ki||pa||pi)&&(si.unshift(i.createElement("col",Object.assign({key:di,style:{width:Ki,minWidth:Ki}},pa))),pi=!0)}return i.createElement("colgroup",null,si)}var Oe=Pe;function le(hr,Sn){return Object(i.useMemo)(function(){for(var dn=[],Kn=0;Kn<Sn;Kn+=1){var si=hr[Kn];if(si!==void 0)dn[Kn]=si;else return null}return dn},[hr.join("_"),Sn])}var me=i.forwardRef(function(hr,Sn){var dn=hr.noData,Kn=hr.columns,si=hr.flattenColumns,vi=hr.colWidths,pi=hr.columCount,di=hr.stickyOffsets,Ki=hr.direction,Mi=hr.fixHeader,pa=hr.offsetHeader,_i=hr.stickyClassName,da=hr.onScroll,na=Object(F.a)(hr,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Sa=i.useContext(Fe),Aa=Sa.prefixCls,ua=Sa.scrollbarSize,La=Sa.isSticky,sa=La&&!Mi?0:ua,co=i.useRef(null),no=i.useCallback(function(eo){Object(b.b)(Sn,eo),Object(b.b)(co,eo)},[]);i.useEffect(function(){var eo;function Lo(Va){var Bo=Va.currentTarget,Ho=Va.deltaX;Ho&&(da({currentTarget:Bo,scrollLeft:Bo.scrollLeft+Ho}),Va.preventDefault())}return(eo=co.current)===null||eo===void 0||eo.addEventListener("wheel",Lo),function(){var Va;(Va=co.current)===null||Va===void 0||Va.removeEventListener("wheel",Lo)}},[]);var ca=si[si.length-1],yo={fixed:ca?ca.fixed:null,onHeaderCell:function(){return{className:"".concat(Aa,"-cell-scrollbar")}}},lo=Object(i.useMemo)(function(){return sa?[].concat(Object(t.a)(Kn),[yo]):Kn},[sa,Kn]),Na=Object(i.useMemo)(function(){return sa?[].concat(Object(t.a)(si),[yo]):si},[sa,si]),ho=Object(i.useMemo)(function(){var eo=di.right,Lo=di.left;return Object(s.a)(Object(s.a)({},di),{},{left:Ki==="rtl"?[].concat(Object(t.a)(Lo.map(function(Va){return Va+sa})),[0]):Lo,right:Ki==="rtl"?eo:[].concat(Object(t.a)(eo.map(function(Va){return Va+sa})),[0]),isSticky:La})},[sa,di,La]),Io=le(vi,pi);return i.createElement("div",{style:Object(s.a)({overflow:"hidden"},La?{top:pa}:{}),ref:no,className:o()("".concat(Aa,"-header"),Object(e.a)({},_i,!!_i))},i.createElement("table",{style:{tableLayout:"fixed",visibility:dn||Io?null:"hidden"}},i.createElement(Oe,{colWidths:Io?[].concat(Object(t.a)(Io),[sa]):[],columCount:pi+1,columns:Na}),i.createElement(G,Object.assign({},na,{stickyOffsets:ho,columns:lo,flattenColumns:Na}))))});me.displayName="FixedHeader";var _e=me,$e=i.createContext(null),gt=$e;function et(hr){var Sn=hr.prefixCls,dn=hr.children,Kn=hr.component,si=hr.cellComponent,vi=hr.fixHeader,pi=hr.fixColumn,di=hr.horizonScroll,Ki=hr.className,Mi=hr.expanded,pa=hr.componentWidth,_i=hr.colSpan,da=i.useContext(Fe),na=da.scrollbarSize;return i.useMemo(function(){var Sa=dn;return pi&&(Sa=i.createElement("div",{style:{width:pa-(vi?na:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Sn,"-expanded-row-fixed")},Sa)),i.createElement(Kn,{className:Ki,style:{display:Mi?null:"none"}},i.createElement(He,{component:si,prefixCls:Sn,colSpan:_i},Sa))},[dn,Kn,vi,di,Ki,Mi,pa,_i,na])}var Ie=et;function rt(hr){var Sn=hr.className,dn=hr.style,Kn=hr.record,si=hr.index,vi=hr.rowKey,pi=hr.getRowKey,di=hr.rowExpandable,Ki=hr.expandedKeys,Mi=hr.onRow,pa=hr.indent,_i=pa===void 0?0:pa,da=hr.rowComponent,na=hr.cellComponent,Sa=hr.childrenColumnName,Aa=i.useContext(Fe),ua=Aa.prefixCls,La=Aa.fixedInfoList,sa=i.useContext(gt),co=sa.fixHeader,no=sa.fixColumn,ca=sa.horizonScroll,yo=sa.componentWidth,lo=sa.flattenColumns,Na=sa.expandableType,ho=sa.expandRowByClick,Io=sa.onTriggerExpand,eo=sa.rowClassName,Lo=sa.expandedRowClassName,Va=sa.indentSize,Bo=sa.expandIcon,Ho=sa.expandedRowRender,Pr=sa.expandIconColumnIndex,An=i.useState(!1),Pn=Object(l.a)(An,2),qr=Pn[0],er=Pn[1],Dr=Ki&&Ki.has(hr.recordKey);i.useEffect(function(){Dr&&er(!0)},[Dr]);var lr=Na==="row"&&(!di||di(Kn)),on=Na==="nest",fn=Sa&&Kn&&Kn[Sa],Wn=lr||on,Dn;Mi&&(Dn=Mi(Kn,si));var Jn=function(Ga){if(ho&&Wn&&Io(Kn,Ga),Dn&&Dn.onClick){for(var Ra,ia=arguments.length,qe=new Array(ia>1?ia-1:0),rr=1;rr<ia;rr++)qe[rr-1]=arguments[rr];(Ra=Dn).onClick.apply(Ra,[Ga].concat(qe))}},Ti;typeof eo=="string"?Ti=eo:typeof eo=="function"&&(Ti=eo(Kn,si,_i));var xi=z(lo),Bi=i.createElement(da,Object.assign({},Dn,{"data-row-key":vi,className:o()(Sn,"".concat(ua,"-row"),"".concat(ua,"-row-level-").concat(_i),Ti,Dn&&Dn.className),style:Object(s.a)(Object(s.a)({},dn),Dn?Dn.style:null),onClick:Jn}),lo.map(function(Ja,Ga){var Ra=Ja.render,ia=Ja.dataIndex,qe=Ja.className,rr=xi[Ga],Rr=La[Ga],Cr;Ga===(Pr||0)&&on&&(Cr=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(Va*_i,"px")},className:"".concat(ua,"-row-indent indent-level-").concat(_i)}),Bo({prefixCls:ua,expanded:Dr,expandable:fn,record:Kn,onExpand:Io})));var pn;return Ja.onCell&&(pn=Ja.onCell(Kn,si)),i.createElement(He,Object.assign({className:qe,ellipsis:Ja.ellipsis,align:Ja.align,component:na,prefixCls:ua,key:rr,record:Kn,index:si,dataIndex:ia,render:Ra,shouldCellUpdate:Ja.shouldCellUpdate},Rr,{appendNode:Cr,additionalProps:pn}))})),ea;if(lr&&(qr||Dr)){var Ha=Ho(Kn,si,_i+1,Dr),Qa=Lo&&Lo(Kn,si,_i);ea=i.createElement(Ie,{expanded:Dr,className:o()("".concat(ua,"-expanded-row"),"".concat(ua,"-expanded-row-level-").concat(_i+1),Qa),prefixCls:ua,fixHeader:co,fixColumn:no,horizonScroll:ca,component:da,componentWidth:yo,cellComponent:na,colSpan:lo.length},Ha)}var io;return fn&&Dr&&(io=(Kn[Sa]||[]).map(function(Ja,Ga){var Ra=pi(Ja,Ga);return i.createElement(rt,Object.assign({},hr,{key:Ra,rowKey:Ra,record:Ja,recordKey:Ra,index:Ga,indent:_i+1}))})),i.createElement(i.Fragment,null,Bi,ea,io)}rt.displayName="BodyRow";var Ge=rt,vt=i.createContext(null),Ot=vt;function Et(hr){var Sn=hr.columnKey,dn=hr.onColumnResize,Kn=i.useRef();return i.useEffect(function(){Kn.current&&dn(Sn,Kn.current.offsetWidth)},[]),i.createElement(D,{onResize:function(vi){var pi=vi.offsetWidth;dn(Sn,pi)}},i.createElement("td",{ref:Kn,style:{padding:0,border:0,height:0}},i.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Tt(hr){var Sn=hr.data,dn=hr.getRowKey,Kn=hr.measureColumnWidth,si=hr.expandedKeys,vi=hr.onRow,pi=hr.rowExpandable,di=hr.emptyNode,Ki=hr.childrenColumnName,Mi=i.useContext(Ot),pa=Mi.onColumnResize,_i=i.useContext(Fe),da=_i.prefixCls,na=_i.getComponent,Sa=i.useContext(gt),Aa=Sa.fixHeader,ua=Sa.horizonScroll,La=Sa.flattenColumns,sa=Sa.componentWidth;return i.useMemo(function(){var co=na(["body","wrapper"],"tbody"),no=na(["body","row"],"tr"),ca=na(["body","cell"],"td"),yo;Sn.length?yo=Sn.map(function(Na,ho){var Io=dn(Na,ho);return i.createElement(Ge,{key:Io,rowKey:Io,record:Na,recordKey:Io,index:ho,rowComponent:no,cellComponent:ca,expandedKeys:si,onRow:vi,getRowKey:dn,rowExpandable:pi,childrenColumnName:Ki})}):yo=i.createElement(Ie,{expanded:!0,className:"".concat(da,"-placeholder"),prefixCls:da,fixHeader:Aa,fixColumn:ua,horizonScroll:ua,component:no,componentWidth:sa,cellComponent:ca,colSpan:La.length},di);var lo=z(La);return i.createElement(co,{className:"".concat(da,"-tbody")},Kn&&i.createElement("tr",{"aria-hidden":"true",className:"".concat(da,"-measure-row"),style:{height:0}},lo.map(function(Na){return i.createElement(Et,{key:Na,columnKey:Na,onColumnResize:pa})})),yo)},[Sn,da,vi,Kn,si,dn,na,sa,di,La])}var Rt=i.memo(Tt);Rt.displayName="Body";var Be=Rt;function Z(hr){return Object(S.a)(hr).filter(function(Sn){return i.isValidElement(Sn)}).map(function(Sn){var dn=Sn.key,Kn=Sn.props,si=Kn.children,vi=Object(F.a)(Kn,["children"]),pi=Object(s.a)({key:dn},vi);return si&&(pi.children=Z(si)),pi})}function J(hr){return hr.reduce(function(Sn,dn){var Kn=dn.fixed,si=Kn===!0?"left":Kn,vi=dn.children;return vi&&vi.length>0?[].concat(Object(t.a)(Sn),Object(t.a)(J(vi).map(function(pi){return Object(s.a)({fixed:si},pi)}))):[].concat(Object(t.a)(Sn),[Object(s.a)(Object(s.a)({},dn),{},{fixed:si})])},[])}function je(hr){for(var Sn=!0,dn=0;dn<hr.length;dn+=1){var Kn=hr[dn];if(Sn&&Kn.fixed!=="left")Sn=!1;else if(!Sn&&Kn.fixed==="left"){Object(p.a)(!1,"Index ".concat(dn-1," of `columns` missing `fixed='left'` prop."));break}}for(var si=!0,vi=hr.length-1;vi>=0;vi-=1){var pi=hr[vi];if(si&&pi.fixed!=="right")si=!1;else if(!si&&pi.fixed==="right"){Object(p.a)(!1,"Index ".concat(vi+1," of `columns` missing `fixed='right'` prop."));break}}}function Re(hr){return hr.map(function(Sn){var dn=Sn.fixed,Kn=Object(F.a)(Sn,["fixed"]),si=dn;return dn==="left"?si="right":dn==="right"&&(si="left"),Object(s.a)({fixed:si},Kn)})}function oe(hr,Sn){var dn=hr.prefixCls,Kn=hr.columns,si=hr.children,vi=hr.expandable,pi=hr.expandedKeys,di=hr.getRowKey,Ki=hr.onTriggerExpand,Mi=hr.expandIcon,pa=hr.rowExpandable,_i=hr.expandIconColumnIndex,da=hr.direction,na=hr.expandRowByClick,Sa=i.useMemo(function(){return Kn||Z(si)},[Kn,si]),Aa=i.useMemo(function(){if(vi){var sa,co=_i||0,no=Sa[co],ca=(sa={},Object(e.a)(sa,te,{className:"".concat(dn,"-expand-icon-col")}),Object(e.a)(sa,"title",""),Object(e.a)(sa,"fixed",no?no.fixed:null),Object(e.a)(sa,"className","".concat(dn,"-row-expand-icon-cell")),Object(e.a)(sa,"render",function(Na,ho,Io){var eo=di(ho,Io),Lo=pi.has(eo),Va=pa?pa(ho):!0,Bo=Mi({prefixCls:dn,expanded:Lo,expandable:Va,record:ho,onExpand:Ki});return na?i.createElement("span",{onClick:function(Pr){return Pr.stopPropagation()}},Bo):Bo}),sa),yo=Sa.slice();return co>=0&&yo.splice(co,0,ca),yo}return Sa},[vi,Sa,di,pi,Mi,da]),ua=i.useMemo(function(){var sa=Aa;return Sn&&(sa=Sn(sa)),sa.length||(sa=[{render:function(){return null}}]),sa},[Sn,Aa,da]),La=i.useMemo(function(){return da==="rtl"?Re(J(ua)):J(ua)},[ua,da]);return[ua,La]}var yt=oe,zt=d("xEkU"),lt=d.n(zt);function $t(hr){var Sn=Object(i.useRef)(hr),dn=Object(i.useState)({}),Kn=Object(l.a)(dn,2),si=Kn[1],vi=Object(i.useRef)(null),pi=Object(i.useRef)([]);function di(Ki){vi.current===null&&(pi.current=[],vi.current=lt()(function(){pi.current.forEach(function(Mi){Sn.current=Mi(Sn.current)}),vi.current=null,si({})})),pi.current.push(Ki)}return Object(i.useEffect)(function(){return function(){lt.a.cancel(vi.current)}},[]),[Sn.current,di]}function cr(hr){var Sn=Object(i.useRef)(hr),dn=Object(i.useRef)(null);function Kn(){window.clearTimeout(dn.current)}function si(pi){Sn.current=pi,Kn(),dn.current=window.setTimeout(function(){Sn.current=null,dn.current=null},100)}function vi(){return Sn.current}return Object(i.useEffect)(function(){return Kn},[]),[si,vi]}function cn(hr,Sn,dn){var Kn=Object(i.useMemo)(function(){for(var si=[],vi=[],pi=0,di=0,Ki=0;Ki<Sn;Ki+=1)if(dn==="rtl"){vi[Ki]=di,di+=hr[Ki]||0;var Mi=Sn-Ki-1;si[Mi]=pi,pi+=hr[Mi]||0}else{si[Ki]=pi,pi+=hr[Ki]||0;var pa=Sn-Ki-1;vi[pa]=di,di+=hr[pa]||0}return{left:si,right:vi}},[hr,Sn,dn]);return Kn}var pr=cn;function gr(hr){var Sn=hr.className,dn=hr.children;return i.createElement("div",{className:Sn},dn)}var Zt=gr;function Vt(hr){var Sn=hr.className,dn=hr.index,Kn=hr.children,si=hr.colSpan,vi=hr.rowSpan,pi=i.useContext(Fe),di=pi.prefixCls,Ki=pi.fixedInfoList,Mi=Ki[dn];return i.createElement(He,Object.assign({className:Sn,index:dn,component:"td",prefixCls:di,record:null,dataIndex:null,render:function(){return{children:Kn,props:{colSpan:si,rowSpan:vi}}}},Mi))}function mt(hr){return i.createElement("tr",Object.assign({},hr))}function Yr(hr){var Sn=hr.children,dn=i.useContext(Fe),Kn=dn.prefixCls;return i.createElement("tfoot",{className:"".concat(Kn,"-summary")},Sn)}var Tn=Yr,Hn={Cell:Vt,Row:mt};function ei(hr){var Sn,dn=hr.prefixCls,Kn=hr.record,si=hr.onExpand,vi=hr.expanded,pi=hr.expandable,di="".concat(dn,"-row-expand-icon");if(!pi)return i.createElement("span",{className:o()(di,"".concat(dn,"-row-spaced"))});var Ki=function(pa){si(Kn,pa),pa.stopPropagation()};return i.createElement("span",{className:o()(di,(Sn={},Object(e.a)(Sn,"".concat(dn,"-row-expanded"),vi),Object(e.a)(Sn,"".concat(dn,"-row-collapsed"),!vi),Sn)),onClick:Ki})}function ji(hr,Sn,dn){var Kn=[];function si(vi){(vi||[]).forEach(function(pi,di){Kn.push(Sn(pi,di)),si(pi[dn])})}return si(hr),Kn}var Ln=d("zT1h"),Vn=d("y0+3"),kt=function(Sn,dn){var Kn,si,vi=Sn.scrollBodyRef,pi=Sn.onScroll,di=Sn.offsetScroll,Ki=i.useContext(Fe),Mi=Ki.prefixCls,pa=((Kn=vi.current)===null||Kn===void 0?void 0:Kn.scrollWidth)||0,_i=((si=vi.current)===null||si===void 0?void 0:si.clientWidth)||0,da=pa&&_i*(_i/pa),na=i.useRef(),Sa=$t({scrollLeft:0,isHiddenScrollBar:!1}),Aa=Object(l.a)(Sa,2),ua=Aa[0],La=Aa[1],sa=i.useRef({delta:0,x:0}),co=i.useState(!1),no=Object(l.a)(co,2),ca=no[0],yo=no[1],lo=function(){yo(!1)},Na=function(Va){Va.persist(),sa.current.delta=Va.pageX-ua.scrollLeft,sa.current.x=0,yo(!0),Va.preventDefault()},ho=function(Va){var Bo,Ho=Va||((Bo=window)===null||Bo===void 0?void 0:Bo.event),Pr=Ho.buttons;if(!ca||Pr===0){ca&&yo(!1);return}var An=sa.current.x+Va.pageX-sa.current.x-sa.current.delta;An<=0&&(An=0),An+da>=_i&&(An=_i-da),pi({scrollLeft:An/_i*(pa+2)}),sa.current.x=Va.pageX},Io=function(){var Va=Object(Vn.b)(vi.current).top,Bo=Va+vi.current.offsetHeight,Ho=document.documentElement.scrollTop+window.innerHeight;Bo-Object(N.a)()<=Ho||Va>=Ho-di?La(function(Pr){return Object(s.a)(Object(s.a)({},Pr),{},{isHiddenScrollBar:!0})}):La(function(Pr){return Object(s.a)(Object(s.a)({},Pr),{},{isHiddenScrollBar:!1})})},eo=function(Va){La(function(Bo){return Object(s.a)(Object(s.a)({},Bo),{},{scrollLeft:Va/pa*_i||0})})};return i.useImperativeHandle(dn,function(){return{setScrollLeft:eo}}),i.useEffect(function(){var Lo=Object(Ln.a)(document.body,"mouseup",lo,!1),Va=Object(Ln.a)(document.body,"mousemove",ho,!1);return Io(),function(){Lo.remove(),Va.remove()}},[da,ca]),i.useEffect(function(){var Lo=Object(Ln.a)(window,"scroll",Io,!1),Va=Object(Ln.a)(window,"resize",Io,!1);return function(){Lo.remove(),Va.remove()}},[]),i.useEffect(function(){ua.isHiddenScrollBar||La(function(Lo){var Va,Bo;return Object(s.a)(Object(s.a)({},Lo),{},{scrollLeft:vi.current.scrollLeft/((Va=vi.current)===null||Va===void 0?void 0:Va.scrollWidth)*((Bo=vi.current)===null||Bo===void 0?void 0:Bo.clientWidth)})})},[ua.isHiddenScrollBar]),pa<=_i||!da||ua.isHiddenScrollBar?null:i.createElement("div",{style:{height:Object(N.a)(),width:_i,bottom:di},className:"".concat(Mi,"-sticky-scroll")},i.createElement("div",{onMouseDown:Na,ref:na,className:o()("".concat(Mi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(Mi,"-sticky-scroll-bar-active"),ca)),style:{width:"".concat(da,"px"),transform:"translate3d(".concat(ua.scrollLeft,"px, 0, 0)")}}))},wt=i.forwardRef(kt);function Te(hr,Sn){return i.useMemo(function(){var dn=!!hr;return{isSticky:dn,stickyClassName:dn?"".concat(Sn,"-sticky-header"):"",offsetHeader:Object(a.a)(hr)==="object"&&hr.offsetHeader||0,offsetScroll:Object(a.a)(hr)==="object"&&hr.offsetScroll||0}},[hr,Sn])}var xe=[],Ce={},Ye="rc-table-internal-hook",it=i.memo(function(hr){var Sn=hr.children;return Sn},function(hr,Sn){return f()(hr.props,Sn.props)?hr.pingLeft!==Sn.pingLeft||hr.pingRight!==Sn.pingRight:!1});function dt(hr){var Sn,dn=hr.prefixCls,Kn=hr.className,si=hr.rowClassName,vi=hr.style,pi=hr.data,di=hr.rowKey,Ki=hr.scroll,Mi=hr.tableLayout,pa=hr.direction,_i=hr.title,da=hr.footer,na=hr.summary,Sa=hr.id,Aa=hr.showHeader,ua=hr.components,La=hr.emptyText,sa=hr.onRow,co=hr.onHeaderRow,no=hr.internalHooks,ca=hr.transformColumns,yo=hr.internalRefs,lo=hr.sticky,Na=pi||xe,ho=!!Na.length,Io=i.useState(0),eo=Object(l.a)(Io,2),Lo=eo[0],Va=eo[1];i.useEffect(function(){Va(Object(N.a)())});var Bo=i.useMemo(function(){return Y(ua,{})},[ua]),Ho=i.useCallback(function(Ka,Xa){return V(Bo,Ka)||Xa},[Bo]),Pr=i.useMemo(function(){return typeof di=="function"?di:function(Ka){var Xa=Ka&&Ka[di];return Xa}},[di]),An=we(hr),Pn=An.expandIcon,qr=An.expandedRowKeys,er=An.defaultExpandedRowKeys,Dr=An.defaultExpandAllRows,lr=An.expandedRowRender,on=An.onExpand,fn=An.onExpandedRowsChange,Wn=An.expandRowByClick,Dn=An.rowExpandable,Jn=An.expandIconColumnIndex,Ti=An.expandedRowClassName,xi=An.childrenColumnName,Bi=An.indentSize,ea=Pn||ei,Ha=xi||"children",Qa=i.useMemo(function(){return lr?"row":hr.expandable&&no===Ye&&hr.expandable.__PARENT_RENDER_ICON__||Na.some(function(Ka){return Ka&&Object(a.a)(Ka)==="object"&&Ka[Ha]})?"nest":!1},[!!lr,Na]),io=i.useState(function(){return er||(Dr?ji(Na,Pr,Ha):[])}),Ja=Object(l.a)(io,2),Ga=Ja[0],Ra=Ja[1],ia=i.useMemo(function(){return new Set(qr||Ga||[])},[qr,Ga]),qe=i.useCallback(function(Ka){var Xa=Pr(Ka,Na.indexOf(Ka)),bo,Eo=ia.has(Xa);Eo?(ia.delete(Xa),bo=Object(t.a)(ia)):bo=[].concat(Object(t.a)(ia),[Xa]),Ra(bo),on&&on(!Eo,Ka),fn&&fn(bo)},[Pr,ia,Na,on,fn]),rr=i.useState(0),Rr=Object(l.a)(rr,2),Cr=Rr[0],pn=Rr[1],Vr=yt(Object(s.a)(Object(s.a)(Object(s.a)({},hr),An),{},{expandable:!!lr,expandedKeys:ia,getRowKey:Pr,onTriggerExpand:qe,expandIcon:ea,expandIconColumnIndex:Jn,direction:pa}),no===Ye?ca:null),br=Object(l.a)(Vr,2),In=br[0],Sr=br[1],gn=i.useMemo(function(){return{columns:In,flattenColumns:Sr}},[In,Sr]),$n=i.useRef(),qn=i.useRef(),Gn=i.useRef(),mi=i.useState(!1),ti=Object(l.a)(mi,2),ri=ti[0],li=ti[1],Xi=i.useState(!1),Pi=Object(l.a)(Xi,2),ga=Pi[0],tr=Pi[1],Lt=$t(new Map),yr=Object(l.a)(Lt,2),xt=yr[0],Ut=yr[1],ur=z(Sr),Ct=ur.map(function(Ka){return xt.get(Ka)}),dr=i.useMemo(function(){return Ct},[Ct.join("_")]),nr=pr(dr,Sr.length,pa),Wr=Ki&&q(Ki.y),En=Ki&&q(Ki.x),Cn=En&&Sr.some(function(Ka){var Xa=Ka.fixed;return Xa}),Nn=i.useRef(),oi=Te(lo,dn),Qn=oi.isSticky,Vi=oi.offsetHeader,wi=oi.offsetScroll,Ea=oi.stickyClassName,aa,Ca,fa;Wr&&(Ca={overflowY:"scroll",maxHeight:Ki.y}),En&&(aa={overflowX:"auto"},Wr||(Ca={overflowY:"hidden"}),fa={width:Ki.x===!0?"auto":Ki.x,minWidth:"100%"});var ha=i.useCallback(function(Ka,Xa){Ut(function(bo){var Eo=new Map(bo);return Eo.set(Ka,Xa),Eo})},[]),qi=cr(null),Ma=Object(l.a)(qi,2),za=Ma[0],la=Ma[1];function ao(Ka,Xa){if(!Xa)return;typeof Xa=="function"?Xa(Ka):Xa.scrollLeft!==Ka&&(Xa.scrollLeft=Ka)}var ka=function(Xa){var bo=Xa.currentTarget,Eo=Xa.scrollLeft,pt=typeof Eo=="number"?Eo:bo.scrollLeft,Nt=bo||Ce;if(!la()||la()===Nt){var sn;za(Nt),ao(pt,qn.current),ao(pt,Gn.current),ao(pt,(sn=Nn.current)===null||sn===void 0?void 0:sn.setScrollLeft)}if(bo){var Mn=bo.scrollWidth,hi=bo.clientWidth;li(pt>0),tr(pt<Mn-hi)}},Ba=function(){Gn.current&&ka({currentTarget:Gn.current})},oo=function(Xa){var bo=Xa.width;Ba(),pn($n.current?$n.current.offsetWidth:bo)};i.useEffect(function(){return Ba},[]),i.useEffect(function(){En&&Ba()},[En]),i.useEffect(function(){no===Ye&&yo&&(yo.body.current=Gn.current)});var ja=Ho(["table"],"table"),Pa=i.useMemo(function(){return Mi||(Cn?Ki.x==="max-content"?"auto":"fixed":Wr||Sr.some(function(Ka){var Xa=Ka.ellipsis;return Xa})?"fixed":"auto")},[Wr,Cn,Sr,Mi]),Fr,Oa={colWidths:dr,columCount:Sr.length,stickyOffsets:nr,onHeaderRow:co,fixHeader:Wr},No=i.useMemo(function(){return ho?null:typeof La=="function"?La():La},[ho,La]),Po=i.createElement(Be,{data:Na,measureColumnWidth:Wr||En||Qn,expandedKeys:ia,rowExpandable:Dn,getRowKey:Pr,onRow:sa,emptyNode:No,childrenColumnName:Ha}),Qo=i.createElement(Oe,{colWidths:Sr.map(function(Ka){var Xa=Ka.width;return Xa}),columns:Sr}),ss=na&&i.createElement(Tn,null,na(Na)),rs=Ho(["body"]);if(Wr||Qn){var Ko;typeof rs=="function"?(Ko=rs(Na,{scrollbarSize:Lo,ref:Gn,onScroll:ka}),Oa.colWidths=Sr.map(function(Ka,Xa){var bo=Ka.width,Eo=Xa===In.length-1?bo-Lo:bo;return typeof Eo=="number"&&!Number.isNaN(Eo)?Eo:(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Ko=i.createElement("div",{style:Object(s.a)(Object(s.a)({},aa),Ca),onScroll:ka,ref:Gn,className:o()("".concat(dn,"-body"))},i.createElement(ja,{style:Object(s.a)(Object(s.a)({},fa),{},{tableLayout:Pa})},Qo,Po,ss),Qn&&i.createElement(wt,{ref:Nn,offsetScroll:wi,scrollBodyRef:Gn,onScroll:ka})),Fr=i.createElement(i.Fragment,null,Aa!==!1&&i.createElement(_e,Object.assign({noData:!Na.length},Oa,gn,{direction:pa,offsetHeader:Vi,stickyClassName:Ea,ref:qn,onScroll:ka})),Ko)}else Fr=i.createElement("div",{style:Object(s.a)(Object(s.a)({},aa),Ca),className:o()("".concat(dn,"-content")),onScroll:ka,ref:Gn},i.createElement(ja,{style:Object(s.a)(Object(s.a)({},fa),{},{tableLayout:Pa})},Qo,Aa!==!1&&i.createElement(G,Object.assign({},Oa,gn)),Po,ss));var $o=he(hr),Uo=i.createElement("div",Object.assign({className:o()(dn,Kn,(Sn={},Object(e.a)(Sn,"".concat(dn,"-rtl"),pa==="rtl"),Object(e.a)(Sn,"".concat(dn,"-ping-left"),ri),Object(e.a)(Sn,"".concat(dn,"-ping-right"),ga),Object(e.a)(Sn,"".concat(dn,"-layout-fixed"),Mi==="fixed"),Object(e.a)(Sn,"".concat(dn,"-fixed-header"),Wr),Object(e.a)(Sn,"".concat(dn,"-fixed-column"),Cn),Object(e.a)(Sn,"".concat(dn,"-scroll-horizontal"),En),Object(e.a)(Sn,"".concat(dn,"-has-fix-left"),Sr[0]&&Sr[0].fixed),Object(e.a)(Sn,"".concat(dn,"-has-fix-right"),Sr[Sr.length-1]&&Sr[Sr.length-1].fixed==="right"),Sn)),style:vi,id:Sa,ref:$n},$o),i.createElement(it,{pingLeft:ri,pingRight:ga,props:Object(s.a)(Object(s.a)({},hr),{},{stickyOffsets:nr,mergedExpandedKeys:ia})},_i&&i.createElement(Zt,{className:"".concat(dn,"-title")},_i(Na)),i.createElement("div",{className:"".concat(dn,"-container")},Fr),da&&i.createElement(Zt,{className:"".concat(dn,"-footer")},da(Na))));En&&(Uo=i.createElement(D,{onResize:oo},Uo));var Wo=i.useMemo(function(){return{prefixCls:dn,getComponent:Ho,scrollbarSize:Lo,direction:pa,fixedInfoList:Sr.map(function(Ka,Xa){return Q(Xa,Xa,Sr,nr,pa)}),isSticky:Qn}},[dn,Ho,Lo,pa,Sr,nr,pa,Qn]),Go=i.useMemo(function(){return Object(s.a)(Object(s.a)({},gn),{},{tableLayout:Pa,rowClassName:si,expandedRowClassName:Ti,componentWidth:Cr,fixHeader:Wr,fixColumn:Cn,horizonScroll:En,expandIcon:ea,expandableType:Qa,expandRowByClick:Wn,expandedRowRender:lr,onTriggerExpand:qe,expandIconColumnIndex:Jn,indentSize:Bi})},[gn,Pa,si,Ti,Cr,Wr,Cn,En,ea,Qa,Wn,lr,qe,Jn,Bi]),Oo=i.useMemo(function(){return{onColumnResize:ha}},[ha]);return i.createElement(Fe.Provider,{value:Wo},i.createElement(gt.Provider,{value:Go},i.createElement(Ot.Provider,{value:Oo},Uo)))}dt.Column=H,dt.ColumnGroup=B,dt.Summary=Hn,dt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var _t=dt,vr=_t,kr=d("W9HT"),mn=d("NUBc"),Mt=d("H84U"),nt=function(hr,Sn){var dn={};for(var Kn in hr)Object.prototype.hasOwnProperty.call(hr,Kn)&&Sn.indexOf(Kn)<0&&(dn[Kn]=hr[Kn]);if(hr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var si=0,Kn=Object.getOwnPropertySymbols(hr);si<Kn.length;si++)Sn.indexOf(Kn[si])<0&&Object.prototype.propertyIsEnumerable.call(hr,Kn[si])&&(dn[Kn[si]]=hr[Kn[si]]);return dn},st=10;function Xt(hr,Sn){var dn={current:Sn.current,pageSize:Sn.pageSize},Kn=hr&&E()(hr)==="object"?hr:{};return Object.keys(Kn).forEach(function(si){var vi=Sn[si];typeof vi!="function"&&(dn[si]=vi)}),dn}function Dt(){for(var hr={},Sn=arguments.length,dn=new Array(Sn),Kn=0;Kn<Sn;Kn++)dn[Kn]=arguments[Kn];return dn.forEach(function(si){si&&Object.keys(si).forEach(function(vi){var pi=si[vi];pi!==void 0&&(hr[vi]=pi)})}),hr}function St(hr,Sn,dn){var Kn=Sn&&E()(Sn)==="object"?Sn:{},si=Kn.total,vi=si===void 0?0:si,pi=nt(Kn,["total"]),di=Object(i.useState)(function(){return{current:"defaultCurrent"in pi?pi.defaultCurrent:1,pageSize:"defaultPageSize"in pi?pi.defaultPageSize:st}}),Ki=m()(di,2),Mi=Ki[0],pa=Ki[1],_i=Dt(Mi,pi,{total:vi>0?vi:hr});if(!vi){var da=Math.ceil(hr/_i.pageSize);da<_i.current&&(_i.current=1)}var na=function(){var ua=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,La=arguments.length>1?arguments[1]:void 0;pa(c()(c()({},_i),{current:ua,pageSize:La||_i.pageSize}))},Sa=function(ua,La){var sa=_i==null?void 0:_i.pageSize;La&&La!==sa&&(ua=1,Sn&&Sn.onShowSizeChange&&Sn.onShowSizeChange(ua,La)),Sn&&Sn.onChange&&Sn.onChange(ua,La),na(ua,La),dn(ua,La||sa)};return Sn===!1?[{},function(){}]:[c()(c()({},_i),{onChange:Sa}),na]}function jt(hr,Sn,dn){var Kn=i.useRef({});function si(vi){if(!Kn.current||Kn.current.data!==hr||Kn.current.childrenColumnName!==Sn||Kn.current.getRowKey!==dn){var pi=function Ki(Mi){Mi.forEach(function(pa,_i){var da=dn(pa,_i);di.set(da,pa),pa&&E()(pa)==="object"&&Sn in pa&&Ki(pa[Sn]||[])})},di=new Map;pi(hr),Kn.current={data:hr,childrenColumnName:Sn,kvMap:di,getRowKey:dn}}return Kn.current.kvMap.get(vi)}return[si]}var At=d("SA+Z"),Ft=d.n(At),wr=d("RIqP"),sr=d.n(wr),mr=d("HQEm"),$r=d.n(mr),rn=d("c3jg"),jn=d("qOx5"),Un=d("wPhX"),ui=d("6cGi"),yi=d("kaz8"),Ii=d("jsC+"),Gi=d("BvKs"),Qe=d("9yH6"),be=d("uaoM"),Ne="SELECT_ALL",Ue="SELECT_INVERT";function Xe(hr){return hr&&hr.fixed}function ze(hr,Sn){var dn=[];return(hr||[]).forEach(function(Kn){dn.push(Kn),Kn&&E()(Kn)==="object"&&Sn in Kn&&(dn=[].concat(sr()(dn),sr()(ze(Kn[Sn],Sn))))}),dn}function Ze(hr,Sn){var dn=hr||{},Kn=dn.preserveSelectedRowKeys,si=dn.selectedRowKeys,vi=dn.getCheckboxProps,pi=dn.onChange,di=dn.onSelect,Ki=dn.onSelectAll,Mi=dn.onSelectInvert,pa=dn.onSelectMultiple,_i=dn.columnWidth,da=dn.type,na=dn.selections,Sa=dn.fixed,Aa=dn.renderCell,ua=dn.hideSelectAll,La=dn.checkStrictly,sa=La===void 0?!0:La,co=Sn.prefixCls,no=Sn.data,ca=Sn.pageData,yo=Sn.getRecordByKey,lo=Sn.getRowKey,Na=Sn.expandType,ho=Sn.childrenColumnName,Io=Sn.locale,eo=Sn.expandIconColumnIndex,Lo=Sn.getPopupContainer,Va=i.useRef(new Map),Bo=Object(ui.a)(si||[],{value:si}),Ho=m()(Bo,2),Pr=Ho[0],An=Ho[1],Pn=Object(i.useMemo)(function(){return sa?{keyEntities:null}:Object(rn.a)(no,void 0,lo)},[no,lo,sa]),qr=Pn.keyEntities,er=Object(i.useMemo)(function(){return ze(ca,ho)},[ca,ho]),Dr=Object(i.useMemo)(function(){var Ra=new Map;return er.forEach(function(ia,qe){var rr=lo(ia,qe),Rr=(vi?vi(ia):null)||{};Ra.set(rr,Rr)}),Ra},[er,lo,vi]),lr=Object(i.useCallback)(function(Ra){var ia;return!!((ia=Dr.get(lo(Ra)))===null||ia===void 0?void 0:ia.disabled)},[Dr,lo]),on=Object(i.useMemo)(function(){if(sa)return[Pr,[]];var Ra=Object(jn.a)(Pr,!0,qr,lr),ia=Ra.checkedKeys,qe=Ra.halfCheckedKeys;return[ia,qe]},[Pr,sa,qr,lr]),fn=m()(on,2),Wn=fn[0],Dn=fn[1],Jn=Object(i.useMemo)(function(){var Ra=da==="radio"?Wn.slice(0,1):Wn;return new Set(Ra)},[Wn,da]),Ti=Object(i.useMemo)(function(){return da==="radio"?new Set:new Set(Dn)},[Dn,da]),xi=Object(i.useState)(null),Bi=m()(xi,2),ea=Bi[0],Ha=Bi[1];i.useEffect(function(){hr||An([])},[!!hr]);var Qa=Object(i.useCallback)(function(Ra){var ia,qe;if(Kn){var rr=new Map;ia=Ra,qe=Ra.map(function(Rr){var Cr=yo(Rr);return!Cr&&Va.current.has(Rr)&&(Cr=Va.current.get(Rr)),rr.set(Rr,Cr),Cr}),Va.current=rr}else ia=[],qe=[],Ra.forEach(function(Rr){var Cr=yo(Rr);Cr!==void 0&&(ia.push(Rr),qe.push(Cr))});An(ia),pi&&pi(ia,qe)},[An,yo,pi,Kn]),io=Object(i.useCallback)(function(Ra,ia,qe,rr){if(di){var Rr=qe.map(function(Cr){return yo(Cr)});di(yo(Ra),ia,Rr,rr)}Qa(qe)},[di,yo,Qa]),Ja=Object(i.useMemo)(function(){if(!na||ua)return null;var Ra=na===!0?[Ne,Ue]:na;return Ra.map(function(ia){return ia===Ne?{key:"all",text:Io.selectionAll,onSelect:function(){Qa(no.map(function(rr,Rr){return lo(rr,Rr)}))}}:ia===Ue?{key:"invert",text:Io.selectInvert,onSelect:function(){var rr=new Set(Jn);ca.forEach(function(Cr,pn){var Vr=lo(Cr,pn);rr.has(Vr)?rr.delete(Vr):rr.add(Vr)});var Rr=Array.from(rr);Qa(Rr),Mi&&(Object(be.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Mi(Rr))}}:ia})},[na,Jn,ca,lo,Mi,Qa]),Ga=Object(i.useCallback)(function(Ra){if(!hr)return Ra;var ia=new Set(Jn),qe=er.map(lo).filter(function(ri){return!Dr.get(ri).disabled}),rr=qe.every(function(ri){return ia.has(ri)}),Rr=qe.some(function(ri){return ia.has(ri)}),Cr=function(){var li=[];rr?qe.forEach(function(Pi){ia.delete(Pi),li.push(Pi)}):qe.forEach(function(Pi){ia.has(Pi)||(ia.add(Pi),li.push(Pi))});var Xi=Array.from(ia);Qa(Xi),Ki&&Ki(!rr,Xi.map(function(Pi){return yo(Pi)}),li.map(function(Pi){return yo(Pi)}))},pn;if(da!=="radio"){var Vr;if(Ja){var br=i.createElement(Gi.a,{getPopupContainer:Lo},Ja.map(function(ri,li){var Xi=ri.key,Pi=ri.text,ga=ri.onSelect;return i.createElement(Gi.a.Item,{key:Xi||li,onClick:function(){ga&&ga(qe)}},Pi)}));Vr=i.createElement("div",{className:"".concat(co,"-selection-extra")},i.createElement(Ii.a,{overlay:br,getPopupContainer:Lo},i.createElement("span",null,i.createElement($r.a,null))))}var In=er.every(function(ri,li){var Xi=lo(ri,li),Pi=Dr.get(Xi)||{};return Pi.disabled});pn=!ua&&i.createElement("div",{className:"".concat(co,"-selection")},i.createElement(yi.a,{checked:!In&&!!er.length&&rr,indeterminate:!rr&&Rr,onChange:Cr,disabled:er.length===0||In}),Vr)}var Sr;da==="radio"?Sr=function(li,Xi,Pi){var ga=lo(Xi,Pi),tr=ia.has(ga);return{node:i.createElement(Qe.a,c()({},Dr.get(ga),{checked:tr,onClick:function(yr){return yr.stopPropagation()},onChange:function(yr){ia.has(ga)||io(ga,!0,[ga],yr.nativeEvent)}})),checked:tr}}:Sr=function(li,Xi,Pi){var ga,tr=lo(Xi,Pi),Lt=ia.has(tr),yr=Ti.has(tr),xt=Dr.get(tr),Ut;return Na==="nest"?(Ut=yr,Object(be.a)(!(typeof(xt==null?void 0:xt.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):Ut=(ga=xt==null?void 0:xt.indeterminate)!==null&&ga!==void 0?ga:yr,{node:i.createElement(yi.a,c()({},xt,{indeterminate:Ut,checked:Lt,onClick:function(Ct){return Ct.stopPropagation()},onChange:function(Ct){var dr=Ct.nativeEvent,nr=dr.shiftKey,Wr=-1,En=-1;if(nr&&sa){var Cn=new Set([ea,tr]);qe.some(function(qi,Ma){if(Cn.has(qi))if(Wr===-1)Wr=Ma;else return En=Ma,!0;return!1})}if(En!==-1&&Wr!==En&&sa){var Nn=qe.slice(Wr,En+1),oi=[];Lt?Nn.forEach(function(qi){ia.has(qi)&&(oi.push(qi),ia.delete(qi))}):Nn.forEach(function(qi){ia.has(qi)||(oi.push(qi),ia.add(qi))});var Qn=Array.from(ia);Qa(Qn),pa&&pa(!Lt,Qn.map(function(qi){return yo(qi)}),oi.map(function(qi){return yo(qi)}))}else{var Vi=Wn;if(sa){var wi=Lt?Object(Un.b)(Vi,tr):Object(Un.a)(Vi,tr);io(tr,!Lt,wi,dr)}else{var Ea=Object(jn.a)([].concat(sr()(Vi),[tr]),!0,qr,lr),aa=Ea.checkedKeys,Ca=Ea.halfCheckedKeys,fa=aa;if(Lt){var ha=new Set(aa);ha.delete(tr),fa=Object(jn.a)(Array.from(ha),{checked:!1,halfCheckedKeys:Ca},qr,lr).checkedKeys}io(tr,!Lt,fa,dr)}}Ha(tr)}})),checked:Lt}};var gn=function(li,Xi,Pi){var ga=Sr(li,Xi,Pi),tr=ga.node,Lt=ga.checked;return Aa?Aa(Lt,Xi,Pi,tr):tr},$n=v()({width:_i,className:"".concat(co,"-selection-column"),title:hr.columnTitle||pn,render:gn},te,{className:"".concat(co,"-selection-col")});if(Na==="row"&&Ra.length&&!eo){var qn=Ft()(Ra),Gn=qn[0],mi=qn.slice(1),ti=Sa||Xe(mi[0]);return ti&&(Gn.fixed=ti),[Gn,c()(c()({},$n),{fixed:ti})].concat(sr()(mi))}return[c()(c()({},$n),{fixed:Sa||Xe(Ra[0])})].concat(sr()(Ra))},[lo,er,hr,Wn,Jn,Ti,_i,Ja,Na,ea,Dr,pa,io,lr]);return[Ga,Jn]}var bt=d("6SEX"),ut=d.n(bt),Gt=d("i8CU"),Mr=d.n(Gt),Lr=d("3S7+");function Gr(hr,Sn){return"key"in hr&&hr.key!==void 0&&hr.key!==null?hr.key:hr.dataIndex?Array.isArray(hr.dataIndex)?hr.dataIndex.join("."):hr.dataIndex:Sn}function Ht(hr,Sn){return Sn?"".concat(Sn,"-").concat(hr):"".concat(hr)}function hn(hr,Sn){return typeof hr=="function"?hr(Sn):hr}var or="ascend",vn="descend";function nn(hr){return E()(hr.sorter)==="object"&&typeof hr.sorter.multiple=="number"?hr.sorter.multiple:!1}function Ur(hr){return typeof hr=="function"?hr:hr&&E()(hr)==="object"&&hr.compare?hr.compare:!1}function ni(hr,Sn){return Sn?hr[hr.indexOf(Sn)+1]:hr[0]}function Oi(hr,Sn,dn){var Kn=[];function si(vi,pi){Kn.push({column:vi,key:Gr(vi,pi),multiplePriority:nn(vi),sortOrder:vi.sortOrder})}return(hr||[]).forEach(function(vi,pi){var di=Ht(pi,dn);vi.children?("sortOrder"in vi&&si(vi,di),Kn=[].concat(sr()(Kn),sr()(Oi(vi.children,Sn,di)))):vi.sorter&&("sortOrder"in vi?si(vi,di):Sn&&vi.defaultSortOrder&&Kn.push({column:vi,key:Gr(vi,di),multiplePriority:nn(vi),sortOrder:vi.defaultSortOrder}))}),Kn}function Hi(hr,Sn,dn,Kn,si,vi,pi,di){return(Sn||[]).map(function(Ki,Mi){var pa=Ht(Mi,di),_i=Ki;if(_i.sorter){var da=_i.sortDirections||si,na=_i.showSorterTooltip===void 0?pi:_i.showSorterTooltip,Sa=Gr(_i,pa),Aa=dn.find(function(ho){var Io=ho.key;return Io===Sa}),ua=Aa?Aa.sortOrder:null,La=ni(da,ua),sa=da.includes(or)&&i.createElement(Mr.a,{className:o()("".concat(hr,"-column-sorter-up"),{active:ua===or})}),co=da.includes(vn)&&i.createElement(ut.a,{className:o()("".concat(hr,"-column-sorter-down"),{active:ua===vn})}),no=vi||{},ca=no.cancelSort,yo=no.triggerAsc,lo=no.triggerDesc,Na=ca;La===vn?Na=lo:La===or&&(Na=yo),_i=c()(c()({},_i),{className:o()(_i.className,v()({},"".concat(hr,"-column-sort"),ua)),title:function(Io){var eo=i.createElement("div",{className:"".concat(hr,"-column-sorters")},i.createElement("span",null,hn(Ki.title,Io)),i.createElement("span",{className:o()("".concat(hr,"-column-sorter"),v()({},"".concat(hr,"-column-sorter-full"),sa&&co))},i.createElement("span",{className:"".concat(hr,"-column-sorter-inner")},sa,co)));return na?i.createElement(Lr.a,{title:Na},i.createElement("div",{className:"".concat(hr,"-column-sorters-with-tooltip")},eo)):eo},onHeaderCell:function(Io){var eo=Ki.onHeaderCell&&Ki.onHeaderCell(Io)||{},Lo=eo.onClick;return eo.onClick=function(Va){Kn({column:Ki,key:Sa,sortOrder:La,multiplePriority:nn(Ki)}),Lo&&Lo(Va)},eo.className=o()(eo.className,"".concat(hr,"-column-has-sorters")),eo}})}return"children"in _i&&(_i=c()(c()({},_i),{children:Hi(hr,_i.children,dn,Kn,si,vi,pi,pa)})),_i})}function Ri(hr){var Sn=hr.column,dn=hr.sortOrder;return{column:Sn,order:dn,field:Sn.dataIndex,columnKey:Sn.key}}function Ni(hr){var Sn=hr.filter(function(dn){var Kn=dn.sortOrder;return Kn}).map(Ri);return Sn.length===0&&hr.length?c()(c()({},Ri(hr[hr.length-1])),{column:void 0}):Sn.length<=1?Sn[0]||{}:Sn}function Yi(hr,Sn,dn){var Kn=Sn.slice().sort(function(pi,di){return di.multiplePriority-pi.multiplePriority}),si=hr.slice(),vi=Kn.filter(function(pi){var di=pi.column.sorter,Ki=pi.sortOrder;return Ur(di)&&Ki});return vi.length?si.sort(function(pi,di){for(var Ki=0;Ki<vi.length;Ki+=1){var Mi=vi[Ki],pa=Mi.column.sorter,_i=Mi.sortOrder,da=Ur(pa);if(da&&_i){var na=da(pi,di,_i);if(na!==0)return _i===or?na:-na}}return 0}).map(function(pi){var di=pi[dn];return di?c()(c()({},pi),v()({},dn,Yi(di,Sn,dn))):pi}):si}function Qr(hr){var Sn=hr.prefixCls,dn=hr.mergedColumns,Kn=hr.onSorterChange,si=hr.sortDirections,vi=hr.tableLocale,pi=hr.showSorterTooltip,di=i.useState(Oi(dn,!0)),Ki=m()(di,2),Mi=Ki[0],pa=Ki[1],_i=i.useMemo(function(){var ua=!0,La=Oi(dn,!1);if(!La.length)return Mi;var sa=[];function co(ca){ua?sa.push(ca):sa.push(c()(c()({},ca),{sortOrder:null}))}var no=null;return La.forEach(function(ca){no===null?(co(ca),ca.sortOrder&&(ca.multiplePriority===!1?ua=!1:no=!0)):(no&&ca.multiplePriority!==!1||(ua=!1),co(ca))}),sa},[dn,Mi]),da=i.useMemo(function(){var ua=_i.map(function(La){var sa=La.column,co=La.sortOrder;return{column:sa,order:co}});return{sortColumns:ua,sortColumn:ua[0]&&ua[0].column,sortOrder:ua[0]&&ua[0].order}},[_i]);function na(ua){var La;ua.multiplePriority===!1||!_i.length||_i[0].multiplePriority===!1?La=[ua]:La=[].concat(sr()(_i.filter(function(sa){var co=sa.key;return co!==ua.key})),[ua]),pa(La),Kn(Ni(La),La)}var Sa=function(La){return Hi(Sn,La,_i,na,si,vi,pi)},Aa=function(){return Ni(_i)};return[Sa,_i,da,Aa]}var On=d("Y+p1"),zr=d.n(On),fr=d("5Uyt"),Nr=d.n(fr),Qt=d("2/Rp"),xr=d("ECub"),Jr=function(Sn){return i.createElement("div",{className:Sn.className,onClick:function(Kn){return Kn.stopPropagation()}},Sn.children)},Kr=Jr,en=d("sPtV"),ai=Gi.a.SubMenu,Yn=Gi.a.Item;function Si(hr){return hr.some(function(Sn){var dn=Sn.children;return dn})}function ln(hr){var Sn=hr.filters,dn=hr.prefixCls,Kn=hr.filteredKeys,si=hr.filterMultiple,vi=hr.locale;return Sn.length===0?i.createElement(i.Fragment,null,i.createElement(xr.a,{image:xr.a.PRESENTED_IMAGE_SIMPLE,description:vi.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Sn.map(function(pi,di){var Ki=String(pi.value);if(pi.children)return i.createElement(ai,{key:Ki||di,title:pi.text,popupClassName:"".concat(dn,"-dropdown-submenu")},ln({filters:pi.children,prefixCls:dn,filteredKeys:Kn,filterMultiple:si,locale:vi}));var Mi=si?yi.a:Qe.a;return i.createElement(Yn,{key:pi.value!==void 0?Ki:di},i.createElement(Mi,{checked:Kn.includes(Ki)}),i.createElement("span",null,pi.text))})}function Or(hr){var Sn,dn=hr.prefixCls,Kn=hr.column,si=hr.dropdownPrefixCls,vi=hr.columnKey,pi=hr.filterMultiple,di=hr.filterState,Ki=hr.triggerFilter,Mi=hr.locale,pa=hr.children,_i=hr.getPopupContainer,da=Kn.filterDropdownVisible,na=Kn.onFilterDropdownVisibleChange,Sa=i.useState(!1),Aa=m()(Sa,2),ua=Aa[0],La=Aa[1],sa=!!(di&&(((Sn=di.filteredKeys)===null||Sn===void 0?void 0:Sn.length)||di.forceFiltered)),co=function(Bi){La(Bi),na&&na(Bi)},no=typeof da=="boolean"?da:ua,ca=di&&di.filteredKeys,yo=Object(en.a)(ca||[]),lo=m()(yo,2),Na=lo[0],ho=lo[1],Io=function(Bi){var ea=Bi.selectedKeys;ho(ea)};i.useEffect(function(){Io({selectedKeys:ca||[]})},[ca]);var eo=i.useState([]),Lo=m()(eo,2),Va=Lo[0],Bo=Lo[1],Ho=i.useRef(),Pr=function(Bi){Ho.current=window.setTimeout(function(){Bo(Bi)})},An=function(){window.clearTimeout(Ho.current)};i.useEffect(function(){return function(){window.clearTimeout(Ho.current)}},[]);var Pn=function(Bi){co(!1);var ea=Bi&&Bi.length?Bi:null;if(ea===null&&(!di||!di.filteredKeys))return null;if(zr()(ea,di==null?void 0:di.filteredKeys))return null;Ki({column:Kn,key:vi,filteredKeys:ea})},qr=function(){Pn(Na())},er=function(){ho([]),Pn([])},Dr=function(Bi){Bi&&ca!==void 0&&ho(ca||[]),co(Bi),!Bi&&!Kn.filterDropdown&&qr()},lr=o()(v()({},"".concat(si,"-menu-without-submenu"),!Si(Kn.filters||[]))),on;if(typeof Kn.filterDropdown=="function")on=Kn.filterDropdown({prefixCls:"".concat(si,"-custom"),setSelectedKeys:function(Bi){return Io({selectedKeys:Bi})},selectedKeys:Na(),confirm:qr,clearFilters:er,filters:Kn.filters,visible:no});else if(Kn.filterDropdown)on=Kn.filterDropdown;else{var fn=Na()||[];on=i.createElement(i.Fragment,null,i.createElement(Gi.a,{multiple:pi,prefixCls:"".concat(si,"-menu"),className:lr,onClick:An,onSelect:Io,onDeselect:Io,selectedKeys:fn,getPopupContainer:_i,openKeys:Va,onOpenChange:Pr},ln({filters:Kn.filters||[],prefixCls:dn,filteredKeys:Na(),filterMultiple:pi,locale:Mi})),i.createElement("div",{className:"".concat(dn,"-dropdown-btns")},i.createElement(Qt.a,{type:"link",size:"small",disabled:fn.length===0,onClick:er},Mi.filterReset),i.createElement(Qt.a,{type:"primary",size:"small",onClick:qr},Mi.filterConfirm)))}var Wn=i.createElement(Kr,{className:"".concat(dn,"-dropdown")},on),Dn;typeof Kn.filterIcon=="function"?Dn=Kn.filterIcon(sa):Kn.filterIcon?Dn=Kn.filterIcon:Dn=i.createElement(Nr.a,null);var Jn=i.useContext(Mt.b),Ti=Jn.direction;return i.createElement("div",{className:o()("".concat(dn,"-column"))},i.createElement("span",{className:"".concat(dn,"-column-title")},pa),i.createElement("span",{className:o()("".concat(dn,"-trigger-container"),v()({},"".concat(dn,"-trigger-container-open"),no)),onClick:function(Bi){Bi.stopPropagation()}},i.createElement(Ii.a,{overlay:Wn,trigger:["click"],visible:no,onVisibleChange:Dr,getPopupContainer:_i,placement:Ti==="rtl"?"bottomLeft":"bottomRight"},i.createElement("span",{role:"button",tabIndex:-1,className:o()("".concat(dn,"-trigger"),{active:sa})},Dn))))}var wn=Or;function Xn(hr,Sn,dn){var Kn=[];return(hr||[]).forEach(function(si,vi){var pi=Ht(vi,dn);"children"in si?Kn=[].concat(sr()(Kn),sr()(Xn(si.children,Sn,pi))):(si.filters||"filterDropdown"in si||"onFilter"in si)&&("filteredValue"in si?Kn.push({column:si,key:Gr(si,pi),filteredKeys:si.filteredValue,forceFiltered:si.filtered}):Kn.push({column:si,key:Gr(si,pi),filteredKeys:Sn&&si.defaultFilteredValue?si.defaultFilteredValue:void 0,forceFiltered:si.filtered}))}),Kn}function Zn(hr,Sn,dn,Kn,si,vi,pi,di){return dn.map(function(Ki,Mi){var pa=Ht(Mi,di),_i=Ki.filterMultiple,da=_i===void 0?!0:_i;if(Ki.filters||"filterDropdown"in Ki){var na=Gr(Ki,pa),Sa=Kn.find(function(Aa){var ua=Aa.key;return na===ua});return c()(c()({},Ki),{title:function(ua){return i.createElement(wn,{prefixCls:"".concat(hr,"-filter"),dropdownPrefixCls:Sn,column:Ki,columnKey:na,filterState:Sa,filterMultiple:da,triggerFilter:si,locale:pi,getPopupContainer:vi},hn(Ki.title,ua))}})}return"children"in Ki?c()(c()({},Ki),{children:Zn(hr,Sn,Ki.children,Kn,si,vi,pi,pa)}):Ki})}function ii(hr){var Sn={};return hr.forEach(function(dn){var Kn=dn.key,si=dn.filteredKeys;Sn[Kn]=si||null}),Sn}function Ei(hr){var Sn=[];return(hr||[]).forEach(function(dn){var Kn=dn.value,si=dn.children;Sn.push(Kn),si&&(Sn=[].concat(sr()(Sn),sr()(Ei(si))))}),Sn}function ki(hr,Sn){return Sn.reduce(function(dn,Kn){var si=Kn.column,vi=si.onFilter,pi=si.filters,di=Kn.filteredKeys;return vi&&di&&di.length?dn.filter(function(Ki){return di.some(function(Mi){var pa=Ei(pi),_i=pa.findIndex(function(na){return String(na)===String(Mi)}),da=_i!==-1?pa[_i]:Mi;return vi(da,Ki)})}):dn},hr)}function Fi(hr){var Sn=hr.prefixCls,dn=hr.dropdownPrefixCls,Kn=hr.mergedColumns,si=hr.onFilterChange,vi=hr.getPopupContainer,pi=hr.locale,di=i.useState(Xn(Kn,!0)),Ki=m()(di,2),Mi=Ki[0],pa=Ki[1],_i=i.useMemo(function(){var Aa=Xn(Kn,!1);return Aa.every(function(ua){var La=ua.filteredKeys;return La===void 0})?Mi:Aa},[Kn,Mi]),da=i.useCallback(function(){return ii(_i)},[_i]),na=function(ua){var La=_i.filter(function(sa){var co=sa.key;return co!==ua.key});La.push(ua),pa(La),si(ii(La),La)},Sa=function(ua){return Zn(Sn,dn,ua,_i,na,vi,pi)};return[Sa,_i,da]}var ra=Fi;function _a(hr,Sn){return hr.map(function(dn){var Kn=c()({},dn);return Kn.title=hn(dn.title,Sn),"children"in Kn&&(Kn.children=_a(Kn.children,Sn)),Kn})}function wa(hr){var Sn=i.useCallback(function(dn){return _a(dn,hr)},[hr]);return[Sn]}function _o(hr){return function(dn){var Kn,si=dn.prefixCls,vi=dn.onExpand,pi=dn.record,di=dn.expanded,Ki=dn.expandable,Mi="".concat(si,"-row-expand-icon");return i.createElement("button",{type:"button",onClick:function(_i){vi(pi,_i),_i.stopPropagation()},className:o()(Mi,(Kn={},v()(Kn,"".concat(Mi,"-spaced"),!Ki),v()(Kn,"".concat(Mi,"-expanded"),Ki&&di),v()(Kn,"".concat(Mi,"-collapsed"),Ki&&!di),Kn)),"aria-label":di?hr.collapse:hr.expand})}}var bi=_o,xn=d("zAh6"),Zi=d("ZvpZ"),va=Zi.a,ta=d("3Nzz");function ma(hr){return null}var Qi=ma;function Ya(hr){return null}var Wa=Ya,Ao=d("5OYt"),es=[];function so(hr){var Sn,dn=hr.prefixCls,Kn=hr.className,si=hr.style,vi=hr.size,pi=hr.bordered,di=hr.dropdownPrefixCls,Ki=hr.dataSource,Mi=hr.pagination,pa=hr.rowSelection,_i=hr.rowKey,da=hr.rowClassName,na=hr.columns,Sa=hr.children,Aa=hr.childrenColumnName,ua=hr.onChange,La=hr.getPopupContainer,sa=hr.loading,co=hr.expandIcon,no=hr.expandable,ca=hr.expandedRowRender,yo=hr.expandIconColumnIndex,lo=hr.indentSize,Na=hr.scroll,ho=hr.sortDirections,Io=hr.locale,eo=hr.showSorterTooltip,Lo=eo===void 0?!0:eo;Object(be.a)(!(typeof _i=="function"&&_i.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var Va=Object(Ao.a)(),Bo=i.useMemo(function(){var ha=new Set(Object.keys(Va).filter(function(qi){return Va[qi]}));return(na||Z(Sa)).filter(function(qi){return!qi.responsive||qi.responsive.some(function(Ma){return ha.has(Ma)})})},[Sa,na,Va]),Ho=Object(n.default)(hr,["className","style","columns"]),Pr=i.useContext(ta.b),An=i.useContext(Mt.b),Pn=An.locale,qr=Pn===void 0?va:Pn,er=An.renderEmpty,Dr=An.direction,lr=vi||Pr,on=c()(c()({},qr.Table),Io),fn=Ki||es,Wn=i.useContext(Mt.b),Dn=Wn.getPrefixCls,Jn=Dn("table",dn),Ti=Dn("dropdown",di),xi=c()({childrenColumnName:Aa,expandIconColumnIndex:yo},no),Bi=xi.childrenColumnName,ea=Bi===void 0?"children":Bi,Ha=i.useMemo(function(){return fn.some(function(ha){var qi;return(qi=ha)===null||qi===void 0?void 0:qi[ea]})?"nest":ca||no&&no.expandedRowRender?"row":null},[fn]),Qa={body:i.useRef()},io=i.useMemo(function(){return typeof _i=="function"?_i:function(ha){var qi;return(qi=ha)===null||qi===void 0?void 0:qi[_i]}},[_i]),Ja=jt(fn,ea,io),Ga=m()(Ja,1),Ra=Ga[0],ia={},qe=function(qi,Ma){var za=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,la=c()(c()({},ia),qi);za&&(ia.resetPagination(),la.pagination.current&&(la.pagination.current=1),Mi&&Mi.onChange&&Mi.onChange(1,la.pagination.pageSize)),Na&&Na.scrollToFirstRowOnChange!==!1&&Qa.body.current&&Object(xn.a)(0,{getContainer:function(){return Qa.body.current}}),ua&&ua(la.pagination,la.filters,la.sorter,{currentDataSource:ki(Yi(fn,la.sorterStates,ea),la.filterStates),action:Ma})},rr=function(qi,Ma){qe({sorter:qi,sorterStates:Ma},"sort",!1)},Rr=Qr({prefixCls:Jn,mergedColumns:Bo,onSorterChange:rr,sortDirections:ho||["ascend","descend"],tableLocale:on,showSorterTooltip:Lo}),Cr=m()(Rr,4),pn=Cr[0],Vr=Cr[1],br=Cr[2],In=Cr[3],Sr=i.useMemo(function(){return Yi(fn,Vr,ea)},[fn,Vr]);ia.sorter=In(),ia.sorterStates=Vr;var gn=function(qi,Ma){qe({filters:qi,filterStates:Ma},"filter",!0)},$n=ra({prefixCls:Jn,locale:on,dropdownPrefixCls:Ti,mergedColumns:Bo,onFilterChange:gn,getPopupContainer:La}),qn=m()($n,3),Gn=qn[0],mi=qn[1],ti=qn[2],ri=ki(Sr,mi);ia.filters=ti(),ia.filterStates=mi;var li=i.useMemo(function(){return c()({},br)},[br]),Xi=wa(li),Pi=m()(Xi,1),ga=Pi[0],tr=function(qi,Ma){qe({pagination:c()(c()({},ia.pagination),{current:qi,pageSize:Ma})},"paginate")},Lt=St(ri.length,Mi,tr),yr=m()(Lt,2),xt=yr[0],Ut=yr[1];ia.pagination=Mi===!1?{}:Xt(Mi,xt),ia.resetPagination=Ut;var ur=i.useMemo(function(){if(Mi===!1||!xt.pageSize)return ri;var ha=xt.current,qi=ha===void 0?1:ha,Ma=xt.total,za=xt.pageSize,la=za===void 0?st:za;return ri.length<Ma?ri.length>la?(Object(be.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."),ri.slice((qi-1)*la,qi*la)):ri:ri.slice((qi-1)*la,qi*la)},[!!Mi,ri,xt&&xt.current,xt&&xt.pageSize,xt&&xt.total]),Ct=Ze(pa,{prefixCls:Jn,data:ri,pageData:ur,getRowKey:io,getRecordByKey:Ra,expandType:Ha,childrenColumnName:ea,locale:on,expandIconColumnIndex:xi.expandIconColumnIndex,getPopupContainer:La}),dr=m()(Ct,2),nr=dr[0],Wr=dr[1],En=function(qi,Ma,za){var la;return typeof da=="function"?la=o()(da(qi,Ma,za)):la=o()(da),o()(v()({},"".concat(Jn,"-row-selected"),Wr.has(io(qi,Ma))),la)};xi.__PARENT_RENDER_ICON__=xi.expandIcon,xi.expandIcon=xi.expandIcon||co||bi(on),Ha==="nest"&&xi.expandIconColumnIndex===void 0?xi.expandIconColumnIndex=pa?1:0:xi.expandIconColumnIndex>0&&pa&&(xi.expandIconColumnIndex-=1),typeof xi.indentSize!="number"&&(xi.indentSize=typeof lo=="number"?lo:15);var Cn=i.useCallback(function(ha){return ga(nr(Gn(pn(ha))))},[pn,Gn,nr]),Nn,oi;if(Mi!==!1){var Qn;xt.size?Qn=xt.size:Qn=lr==="small"||lr==="middle"?"small":void 0;var Vi=function(qi){return i.createElement(mn.a,c()({className:"".concat(Jn,"-pagination ").concat(Jn,"-pagination-").concat(qi)},xt,{size:Qn}))},wi=Dr==="rtl"?"left":"right";if(xt.position!==null&&Array.isArray(xt.position)){var Ea=xt.position.find(function(ha){return ha.indexOf("top")!==-1}),aa=xt.position.find(function(ha){return ha.indexOf("bottom")!==-1});!Ea&&!aa?oi=Vi(wi):(Ea&&(Nn=Vi(Ea.toLowerCase().replace("top",""))),aa&&(oi=Vi(aa.toLowerCase().replace("bottom",""))))}else oi=Vi(wi)}var Ca;typeof sa=="boolean"?Ca={spinning:sa}:E()(sa)==="object"&&(Ca=c()({spinning:!0},sa));var fa=o()("".concat(Jn,"-wrapper"),Kn,v()({},"".concat(Jn,"-wrapper-rtl"),Dr==="rtl"));return i.createElement("div",{className:fa,style:si},i.createElement(kr.a,c()({spinning:!1},Ca),Nn,i.createElement(vr,c()({},Ho,{columns:Bo,direction:Dr,expandable:xi,prefixCls:Jn,className:o()((Sn={},v()(Sn,"".concat(Jn,"-middle"),lr==="middle"),v()(Sn,"".concat(Jn,"-small"),lr==="small"),v()(Sn,"".concat(Jn,"-bordered"),pi),v()(Sn,"".concat(Jn,"-empty"),fn.length===0),Sn)),data:ur,rowKey:io,rowClassName:En,emptyText:Io&&Io.emptyText||er("Table"),internalHooks:Ye,internalRefs:Qa,transformColumns:Cn})),ri&&ri.length>0&&oi))}so.defaultProps={rowKey:"key"},so.SELECTION_ALL=Ne,so.SELECTION_INVERT=Ue,so.Column=Qi,so.ColumnGroup=Wa,so.Summary=Hn;var So=so,xo=P.a=So},wDdD:function(j,P,d){var O=d("ProS"),E=d("bYtY");d("98bh"),d("GrNh");var C=d("d4KN"),v=d("mOdp"),w=d("KS52"),m=d("0/Rx");C("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),O.registerVisual(v("pie")),O.registerLayout(E.curry(w,"pie")),O.registerProcessor(m("pie"))},wOnQ:function(j,P,d){/*!
* html2canvas 1.3.3 <https://html2canvas.hertzen.com>
* Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(O,E){j.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 O=function(ue,Se){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,tt){Me.__proto__=tt}||function(Me,tt){for(var Jt in tt)Object.prototype.hasOwnProperty.call(tt,Jt)&&(Me[Jt]=tt[Jt])},O(ue,Se)};function E(ar,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Class extends value "+String(ue)+" is not a constructor or null");O(ar,ue);function Se(){this.constructor=ar}ar.prototype=ue===null?Object.create(ue):(Se.prototype=ue.prototype,new Se)}var C=function(){return C=Object.assign||function(Se){for(var Me,tt=1,Jt=arguments.length;tt<Jt;tt++){Me=arguments[tt];for(var jr in Me)Object.prototype.hasOwnProperty.call(Me,jr)&&(Se[jr]=Me[jr])}return Se},C.apply(this,arguments)};function v(ar,ue,Se,Me){function tt(Jt){return Jt instanceof Se?Jt:new Se(function(jr){jr(Jt)})}return new(Se||(Se=Promise))(function(Jt,jr){function an(Ui){try{kn(Me.next(Ui))}catch(Ci){jr(Ci)}}function yn(Ui){try{kn(Me.throw(Ui))}catch(Ci){jr(Ci)}}function kn(Ui){Ui.done?Jt(Ui.value):tt(Ui.value).then(an,yn)}kn((Me=Me.apply(ar,ue||[])).next())})}function w(ar,ue){var Se={label:0,sent:function(){if(Jt[0]&1)throw Jt[1];return Jt[1]},trys:[],ops:[]},Me,tt,Jt,jr;return jr={next:an(0),throw:an(1),return:an(2)},typeof Symbol=="function"&&(jr[Symbol.iterator]=function(){return this}),jr;function an(kn){return function(Ui){return yn([kn,Ui])}}function yn(kn){if(Me)throw new TypeError("Generator is already executing.");for(;Se;)try{if(Me=1,tt&&(Jt=kn[0]&2?tt.return:kn[0]?tt.throw||((Jt=tt.return)&&Jt.call(tt),0):tt.next)&&!(Jt=Jt.call(tt,kn[1])).done)return Jt;(tt=0,Jt)&&(kn=[kn[0]&2,Jt.value]);switch(kn[0]){case 0:case 1:Jt=kn;break;case 4:return Se.label++,{value:kn[1],done:!1};case 5:Se.label++,tt=kn[1],kn=[0];continue;case 7:kn=Se.ops.pop(),Se.trys.pop();continue;default:if(!(Jt=Se.trys,Jt=Jt.length>0&&Jt[Jt.length-1])&&(kn[0]===6||kn[0]===2)){Se=0;continue}if(kn[0]===3&&(!Jt||kn[1]>Jt[0]&&kn[1]<Jt[3])){Se.label=kn[1];break}if(kn[0]===6&&Se.label<Jt[1]){Se.label=Jt[1],Jt=kn;break}if(Jt&&Se.label<Jt[2]){Se.label=Jt[2],Se.ops.push(kn);break}Jt[2]&&Se.ops.pop(),Se.trys.pop();continue}kn=ue.call(ar,Se)}catch(Ui){kn=[6,Ui],tt=0}finally{Me=Jt=0}if(kn[0]&5)throw kn[1];return{value:kn[0]?kn[1]:void 0,done:!0}}}function m(ar,ue,Se){if(Se||arguments.length===2)for(var Me=0,tt=ue.length,Jt;Me<tt;Me++)(Jt||!(Me in ue))&&(Jt||(Jt=Array.prototype.slice.call(ue,0,Me)),Jt[Me]=ue[Me]);return ar.concat(Jt||ue)}for(var h=function(){function ar(ue,Se,Me,tt){this.left=ue,this.top=Se,this.width=Me,this.height=tt}return ar.prototype.add=function(ue,Se,Me,tt){return new ar(this.left+ue,this.top+Se,this.width+Me,this.height+tt)},ar.fromClientRect=function(ue,Se){return new ar(Se.left+ue.windowBounds.left,Se.top+ue.windowBounds.top,Se.width,Se.height)},ar.fromDOMRectList=function(ue,Se){var Me=Se[0];return Me?new ar(Me.x+ue.windowBounds.left,Me.y+ue.windowBounds.top,Me.width,Me.height):ar.EMPTY},ar.EMPTY=new ar(0,0,0,0),ar}(),c=function(ue,Se){return h.fromClientRect(ue,Se.getBoundingClientRect())},i=function(ue){var Se=ue.body,Me=ue.documentElement;if(!Se||!Me)throw new Error("Unable to get document size");var tt=Math.max(Math.max(Se.scrollWidth,Me.scrollWidth),Math.max(Se.offsetWidth,Me.offsetWidth),Math.max(Se.clientWidth,Me.clientWidth)),Jt=Math.max(Math.max(Se.scrollHeight,Me.scrollHeight),Math.max(Se.offsetHeight,Me.offsetHeight),Math.max(Se.clientHeight,Me.clientHeight));return new h(0,0,tt,Jt)},r=function(ue){for(var Se=[],Me=0,tt=ue.length;Me<tt;){var Jt=ue.charCodeAt(Me++);if(Jt>=55296&&Jt<=56319&&Me<tt){var jr=ue.charCodeAt(Me++);(jr&64512)===56320?Se.push(((Jt&1023)<<10)+(jr&1023)+65536):(Se.push(Jt),Me--)}else Se.push(Jt)}return Se},o=function(){for(var ue=[],Se=0;Se<arguments.length;Se++)ue[Se]=arguments[Se];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ue);var Me=ue.length;if(!Me)return"";for(var tt=[],Jt=-1,jr="";++Jt<Me;){var an=ue[Jt];an<=65535?tt.push(an):(an-=65536,tt.push((an>>10)+55296,an%1024+56320)),(Jt+1===Me||tt.length>16384)&&(jr+=String.fromCharCode.apply(String,tt),tt.length=0)}return jr},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<n.length;s++)e[n.charCodeAt(s)]=s;var t=function(ue){var Se=ue.length*.75,Me=ue.length,tt,Jt=0,jr,an,yn,kn;ue[ue.length-1]==="="&&(Se--,ue[ue.length-2]==="="&&Se--);var Ui=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Se):new Array(Se),Ci=Array.isArray(Ui)?Ui:new Uint8Array(Ui);for(tt=0;tt<Me;tt+=4)jr=e[ue.charCodeAt(tt)],an=e[ue.charCodeAt(tt+1)],yn=e[ue.charCodeAt(tt+2)],kn=e[ue.charCodeAt(tt+3)],Ci[Jt++]=jr<<2|an>>4,Ci[Jt++]=(an&15)<<4|yn>>2,Ci[Jt++]=(yn&3)<<6|kn&63;return Ui},a=function(ue){for(var Se=ue.length,Me=[],tt=0;tt<Se;tt+=2)Me.push(ue[tt+1]<<8|ue[tt]);return Me},l=function(ue){for(var Se=ue.length,Me=[],tt=0;tt<Se;tt+=4)Me.push(ue[tt+3]<<24|ue[tt+2]<<16|ue[tt+1]<<8|ue[tt]);return Me},u=5,f=6+5,p=2,g=f-u,A=65536>>u,y=1<<u,x=y-1,T=1024>>u,S=A+T,b=S,_=2048>>6,I=b+_,L=65536>>f,D=1<<g,N=D-1,M=function(ue,Se,Me){return ue.slice?ue.slice(Se,Me):new Uint16Array(Array.prototype.slice.call(ue,Se,Me))},B=function(ue,Se,Me){return ue.slice?ue.slice(Se,Me):new Uint32Array(Array.prototype.slice.call(ue,Se,Me))},R=function(ue){var Se=t(ue),Me=Array.isArray(Se)?l(Se):new Uint32Array(Se),tt=Array.isArray(Se)?a(Se):new Uint16Array(Se),Jt=24,jr=M(tt,Jt/2,Me[4]/2),an=Me[5]===2?M(tt,(Jt+Me[4])/2):B(Me,Math.ceil((Jt+Me[4])/4));return new H(Me[0],Me[1],Me[2],Me[3],jr,an)},H=function(){function ar(ue,Se,Me,tt,Jt,jr){this.initialValue=ue,this.errorValue=Se,this.highStart=Me,this.highValueIndex=tt,this.index=Jt,this.data=jr}return ar.prototype.get=function(ue){var Se;if(ue>=0){if(ue<55296||ue>56319&&ue<=65535)return Se=this.index[ue>>u],Se=(Se<<p)+(ue&x),this.data[Se];if(ue<=65535)return Se=this.index[A+(ue-55296>>u)],Se=(Se<<p)+(ue&x),this.data[Se];if(ue<this.highStart)return Se=I-L+(ue>>f),Se=this.index[Se],Se+=ue>>u&N,Se=this.index[Se],Se=(Se<<p)+(ue&x),this.data[Se];if(ue<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ar}(),F="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,V=2,z=3,Y=4,q=5,ce=7,ie=8,ve=9,Ee=10,Le=11,He=12,ge=13,Fe=14,Q=15,fe=16,Je=17,ne=18,X=19,G=20,te=21,we=22,he=23,Pe=24,Oe=25,le=26,me=27,_e=28,$e=29,gt=30,et=31,Ie=32,rt=33,Ge=34,vt=35,Ot=36,Et=37,Tt=38,Rt=39,Be=40,Z=41,J=42,je=43,Re=[9001,65288],oe="!",yt="\xD7",zt="\xF7",lt=R(F),$t=[gt,Ot],cr=[U,V,z,q],cn=[Ee,ie],pr=[me,le],gr=cr.concat(cn),Zt=[Tt,Rt,Be,Ge,vt],Vt=[Q,ge],mt=function(ue,Se){Se===void 0&&(Se="strict");var Me=[],tt=[],Jt=[];return ue.forEach(function(jr,an){var yn=lt.get(jr);if(yn>K?(Jt.push(!0),yn-=K):Jt.push(!1),["normal","auto","loose"].indexOf(Se)!==-1&&[8208,8211,12316,12448].indexOf(jr)!==-1)return tt.push(an),Me.push(fe);if(yn===Y||yn===Le){if(an===0)return tt.push(an),Me.push(gt);var kn=Me[an-1];return gr.indexOf(kn)===-1?(tt.push(tt[an-1]),Me.push(kn)):(tt.push(an),Me.push(gt))}if(tt.push(an),yn===et)return Me.push(Se==="strict"?te:Et);if(yn===J)return Me.push(gt);if(yn===$e)return Me.push(gt);if(yn===je)return jr>=131072&&jr<=196605||jr>=196608&&jr<=262141?Me.push(Et):Me.push(gt);Me.push(yn)}),[tt,Me,Jt]},Yr=function(ue,Se,Me,tt){var Jt=tt[Me];if(Array.isArray(ue)?ue.indexOf(Jt)!==-1:ue===Jt)for(var jr=Me;jr<=tt.length;){jr++;var an=tt[jr];if(an===Se)return!0;if(an!==Ee)break}if(Jt===Ee)for(var jr=Me;jr>0;){jr--;var yn=tt[jr];if(Array.isArray(ue)?ue.indexOf(yn)!==-1:ue===yn)for(var kn=Me;kn<=tt.length;){kn++;var an=tt[kn];if(an===Se)return!0;if(an!==Ee)break}if(yn!==Ee)break}return!1},Tn=function(ue,Se){for(var Me=ue;Me>=0;){var tt=Se[Me];if(tt===Ee)Me--;else return tt}return 0},Hn=function(ue,Se,Me,tt,Jt){if(Me[tt]===0)return yt;var jr=tt-1;if(Array.isArray(Jt)&&Jt[jr]===!0)return yt;var an=jr-1,yn=jr+1,kn=Se[jr],Ui=an>=0?Se[an]:0,Ci=Se[yn];if(kn===V&&Ci===z)return yt;if(cr.indexOf(kn)!==-1)return oe;if(cr.indexOf(Ci)!==-1)return yt;if(cn.indexOf(Ci)!==-1)return yt;if(Tn(jr,Se)===ie)return zt;if(lt.get(ue[jr])===Le)return yt;if((kn===Ie||kn===rt)&&lt.get(ue[yn])===Le)return yt;if(kn===ce||Ci===ce)return yt;if(kn===ve)return yt;if([Ee,ge,Q].indexOf(kn)===-1&&Ci===ve)return yt;if([Je,ne,X,Pe,_e].indexOf(Ci)!==-1)return yt;if(Tn(jr,Se)===we)return yt;if(Yr(he,we,jr,Se))return yt;if(Yr([Je,ne],te,jr,Se))return yt;if(Yr(He,He,jr,Se))return yt;if(kn===Ee)return zt;if(kn===he||Ci===he)return yt;if(Ci===fe||kn===fe)return zt;if([ge,Q,te].indexOf(Ci)!==-1||kn===Fe)return yt;if(Ui===Ot&&Vt.indexOf(kn)!==-1)return yt;if(kn===_e&&Ci===Ot)return yt;if(Ci===G)return yt;if($t.indexOf(Ci)!==-1&&kn===Oe||$t.indexOf(kn)!==-1&&Ci===Oe)return yt;if(kn===me&&[Et,Ie,rt].indexOf(Ci)!==-1||[Et,Ie,rt].indexOf(kn)!==-1&&Ci===le)return yt;if($t.indexOf(kn)!==-1&&pr.indexOf(Ci)!==-1||pr.indexOf(kn)!==-1&&$t.indexOf(Ci)!==-1)return yt;if([me,le].indexOf(kn)!==-1&&(Ci===Oe||[we,Q].indexOf(Ci)!==-1&&Se[yn+1]===Oe)||[we,Q].indexOf(kn)!==-1&&Ci===Oe||kn===Oe&&[Oe,_e,Pe].indexOf(Ci)!==-1)return yt;if([Oe,_e,Pe,Je,ne].indexOf(Ci)!==-1)for(var zi=jr;zi>=0;){var $a=Se[zi];if($a===Oe)return yt;if([_e,Pe].indexOf($a)!==-1)zi--;else break}if([me,le].indexOf(Ci)!==-1)for(var zi=[Je,ne].indexOf(kn)!==-1?an:jr;zi>=0;){var $a=Se[zi];if($a===Oe)return yt;if([_e,Pe].indexOf($a)!==-1)zi--;else break}if(Tt===kn&&[Tt,Rt,Ge,vt].indexOf(Ci)!==-1||[Rt,Ge].indexOf(kn)!==-1&&[Rt,Be].indexOf(Ci)!==-1||[Be,vt].indexOf(kn)!==-1&&Ci===Be)return yt;if(Zt.indexOf(kn)!==-1&&[G,le].indexOf(Ci)!==-1||Zt.indexOf(Ci)!==-1&&kn===me)return yt;if($t.indexOf(kn)!==-1&&$t.indexOf(Ci)!==-1)return yt;if(kn===Pe&&$t.indexOf(Ci)!==-1)return yt;if($t.concat(Oe).indexOf(kn)!==-1&&Ci===we&&Re.indexOf(ue[yn])===-1||$t.concat(Oe).indexOf(Ci)!==-1&&kn===ne)return yt;if(kn===Z&&Ci===Z){for(var qa=Me[jr],vo=1;qa>0&&(qa--,Se[qa]===Z);)vo++;if(vo%2!==0)return yt}return kn===Ie&&Ci===rt?yt:zt},ei=function(ue,Se){Se||(Se={lineBreak:"normal",wordBreak:"normal"});var Me=mt(ue,Se.lineBreak),tt=Me[0],Jt=Me[1],jr=Me[2];(Se.wordBreak==="break-all"||Se.wordBreak==="break-word")&&(Jt=Jt.map(function(yn){return[Oe,gt,J].indexOf(yn)!==-1?Et:yn}));var an=Se.wordBreak==="keep-all"?jr.map(function(yn,kn){return yn&&ue[kn]>=19968&&ue[kn]<=40959}):void 0;return[tt,Jt,an]},ji=function(){function ar(ue,Se,Me,tt){this.codePoints=ue,this.required=Se===oe,this.start=Me,this.end=tt}return ar.prototype.slice=function(){return o.apply(void 0,this.codePoints.slice(this.start,this.end))},ar}(),Ln=function(ue,Se){var Me=r(ue),tt=ei(Me,Se),Jt=tt[0],jr=tt[1],an=tt[2],yn=Me.length,kn=0,Ui=0;return{next:function(){if(Ui>=yn)return{done:!0,value:null};for(var zi=yt;Ui<yn&&(zi=Hn(Me,jr,Jt,++Ui,an))===yt;);if(zi!==yt||Ui===yn){var $a=new ji(Me,zi,kn,Ui);return kn=Ui,{value:$a,done:!1}}return{done:!0,value:null}}}},Vn=1<<0,kt=1<<1,wt=1<<2,Te=1<<3,xe=10,Ce=47,Ye=92,it=9,dt=32,_t=34,vr=61,kr=35,mn=36,Mt=37,nt=39,st=40,Xt=41,Dt=95,St=45,jt=33,At=60,Ft=62,wr=64,sr=91,mr=93,$r=61,rn=123,jn=63,Un=125,ui=124,yi=126,Ii=128,Gi=65533,Qe=42,be=43,Ne=44,Ue=58,Xe=59,ze=46,Ze=0,bt=8,ut=11,Gt=14,Mr=31,Lr=127,Gr=-1,Ht=48,hn=97,or=101,vn=102,nn=117,Ur=122,ni=65,Oi=69,Hi=70,Ri=85,Ni=90,Yi=function(ue){return ue>=Ht&&ue<=57},Qr=function(ue){return ue>=55296&&ue<=57343},On=function(ue){return Yi(ue)||ue>=ni&&ue<=Hi||ue>=hn&&ue<=vn},zr=function(ue){return ue>=hn&&ue<=Ur},fr=function(ue){return ue>=ni&&ue<=Ni},Nr=function(ue){return zr(ue)||fr(ue)},Qt=function(ue){return ue>=Ii},xr=function(ue){return ue===xe||ue===it||ue===dt},Jr=function(ue){return Nr(ue)||Qt(ue)||ue===Dt},Kr=function(ue){return Jr(ue)||Yi(ue)||ue===St},en=function(ue){return ue>=Ze&&ue<=bt||ue===ut||ue>=Gt&&ue<=Mr||ue===Lr},ai=function(ue,Se){return ue!==Ye?!1:Se!==xe},Yn=function(ue,Se,Me){return ue===St?Jr(Se)||ai(Se,Me):Jr(ue)?!0:!!(ue===Ye&&ai(ue,Se))},Si=function(ue,Se,Me){return ue===be||ue===St?Yi(Se)?!0:Se===ze&&Yi(Me):ue===ze?Yi(Se):Yi(ue)},ln=function(ue){var Se=0,Me=1;(ue[Se]===be||ue[Se]===St)&&(ue[Se]===St&&(Me=-1),Se++);for(var tt=[];Yi(ue[Se]);)tt.push(ue[Se++]);var Jt=tt.length?parseInt(o.apply(void 0,tt),10):0;ue[Se]===ze&&Se++;for(var jr=[];Yi(ue[Se]);)jr.push(ue[Se++]);var an=jr.length,yn=an?parseInt(o.apply(void 0,jr),10):0;(ue[Se]===Oi||ue[Se]===or)&&Se++;var kn=1;(ue[Se]===be||ue[Se]===St)&&(ue[Se]===St&&(kn=-1),Se++);for(var Ui=[];Yi(ue[Se]);)Ui.push(ue[Se++]);var Ci=Ui.length?parseInt(o.apply(void 0,Ui),10):0;return Me*(Jt+yn*Math.pow(10,-an))*Math.pow(10,kn*Ci)},Or={type:2},wn={type:3},Xn={type:4},Zn={type:13},ii={type:8},Ei={type:21},ki={type:9},Fi={type:10},ra={type:11},_a={type:12},wa={type:14},_o={type:23},bi={type:1},xn={type:25},Zi={type:24},va={type:26},ta={type:27},ma={type:28},Qi={type:29},Ya={type:31},Wa={type:32},Ao=function(){function ar(){this._value=[]}return ar.prototype.write=function(ue){this._value=this._value.concat(r(ue))},ar.prototype.read=function(){for(var ue=[],Se=this.consumeToken();Se!==Wa;)ue.push(Se),Se=this.consumeToken();return ue},ar.prototype.consumeToken=function(){var ue=this.consumeCodePoint();switch(ue){case _t:return this.consumeStringToken(_t);case kr:var Se=this.peekCodePoint(0),Me=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(Kr(Se)||ai(Me,tt)){var Jt=Yn(Se,Me,tt)?kt:Vn,jr=this.consumeName();return{type:5,value:jr,flags:Jt}}break;case mn:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),Zn;break;case nt:return this.consumeStringToken(nt);case st:return Or;case Xt:return wn;case Qe:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),wa;break;case be:if(Si(ue,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ue),this.consumeNumericToken();break;case Ne:return Xn;case St:var an=ue,yn=this.peekCodePoint(0),kn=this.peekCodePoint(1);if(Si(an,yn,kn))return this.reconsumeCodePoint(ue),this.consumeNumericToken();if(Yn(an,yn,kn))return this.reconsumeCodePoint(ue),this.consumeIdentLikeToken();if(yn===St&&kn===Ft)return this.consumeCodePoint(),this.consumeCodePoint(),Zi;break;case ze:if(Si(ue,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ue),this.consumeNumericToken();break;case Ce:if(this.peekCodePoint(0)===Qe)for(this.consumeCodePoint();;){var Ui=this.consumeCodePoint();if(Ui===Qe&&(Ui=this.consumeCodePoint(),Ui===Ce))return this.consumeToken();if(Ui===Gr)return this.consumeToken()}break;case Ue:return va;case Xe:return ta;case At:if(this.peekCodePoint(0)===jt&&this.peekCodePoint(1)===St&&this.peekCodePoint(2)===St)return this.consumeCodePoint(),this.consumeCodePoint(),xn;break;case wr:var Ci=this.peekCodePoint(0),zi=this.peekCodePoint(1),$a=this.peekCodePoint(2);if(Yn(Ci,zi,$a)){var jr=this.consumeName();return{type:7,value:jr}}break;case sr:return ma;case Ye:if(ai(ue,this.peekCodePoint(0)))return this.reconsumeCodePoint(ue),this.consumeIdentLikeToken();break;case mr:return Qi;case $r:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),ii;break;case rn:return ra;case Un:return _a;case nn:case Ri:var qa=this.peekCodePoint(0),vo=this.peekCodePoint(1);return qa===be&&(On(vo)||vo===jn)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ue),this.consumeIdentLikeToken();case ui:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),ki;if(this.peekCodePoint(0)===ui)return this.consumeCodePoint(),Ei;break;case yi:if(this.peekCodePoint(0)===vr)return this.consumeCodePoint(),Fi;break;case Gr:return Wa}return xr(ue)?(this.consumeWhiteSpace(),Ya):Yi(ue)?(this.reconsumeCodePoint(ue),this.consumeNumericToken()):Jr(ue)?(this.reconsumeCodePoint(ue),this.consumeIdentLikeToken()):{type:6,value:o(ue)}},ar.prototype.consumeCodePoint=function(){var ue=this._value.shift();return typeof ue=="undefined"?-1:ue},ar.prototype.reconsumeCodePoint=function(ue){this._value.unshift(ue)},ar.prototype.peekCodePoint=function(ue){return ue>=this._value.length?-1:this._value[ue]},ar.prototype.consumeUnicodeRangeToken=function(){for(var ue=[],Se=this.consumeCodePoint();On(Se)&&ue.length<6;)ue.push(Se),Se=this.consumeCodePoint();for(var Me=!1;Se===jn&&ue.length<6;)ue.push(Se),Se=this.consumeCodePoint(),Me=!0;if(Me){var tt=parseInt(o.apply(void 0,ue.map(function(yn){return yn===jn?Ht:yn})),16),Jt=parseInt(o.apply(void 0,ue.map(function(yn){return yn===jn?Hi:yn})),16);return{type:30,start:tt,end:Jt}}var jr=parseInt(o.apply(void 0,ue),16);if(this.peekCodePoint(0)===St&&On(this.peekCodePoint(1))){this.consumeCodePoint(),Se=this.consumeCodePoint();for(var an=[];On(Se)&&an.length<6;)an.push(Se),Se=this.consumeCodePoint();var Jt=parseInt(o.apply(void 0,an),16);return{type:30,start:jr,end:Jt}}else return{type:30,start:jr,end:jr}},ar.prototype.consumeIdentLikeToken=function(){var ue=this.consumeName();return ue.toLowerCase()==="url"&&this.peekCodePoint(0)===st?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===st?(this.consumeCodePoint(),{type:19,value:ue}):{type:20,value:ue}},ar.prototype.consumeUrlToken=function(){var ue=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Gr)return{type:22,value:""};var Se=this.peekCodePoint(0);if(Se===nt||Se===_t){var Me=this.consumeStringToken(this.consumeCodePoint());return Me.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Gr||this.peekCodePoint(0)===Xt)?(this.consumeCodePoint(),{type:22,value:Me.value}):(this.consumeBadUrlRemnants(),_o)}for(;;){var tt=this.consumeCodePoint();if(tt===Gr||tt===Xt)return{type:22,value:o.apply(void 0,ue)};if(xr(tt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Gr||this.peekCodePoint(0)===Xt?(this.consumeCodePoint(),{type:22,value:o.apply(void 0,ue)}):(this.consumeBadUrlRemnants(),_o);if(tt===_t||tt===nt||tt===st||en(tt))return this.consumeBadUrlRemnants(),_o;if(tt===Ye)if(ai(tt,this.peekCodePoint(0)))ue.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),_o;else ue.push(tt)}},ar.prototype.consumeWhiteSpace=function(){for(;xr(this.peekCodePoint(0));)this.consumeCodePoint()},ar.prototype.consumeBadUrlRemnants=function(){for(;;){var ue=this.consumeCodePoint();if(ue===Xt||ue===Gr)return;ai(ue,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ar.prototype.consumeStringSlice=function(ue){for(var Se=6e4,Me="";ue>0;){var tt=Math.min(Se,ue);Me+=o.apply(void 0,this._value.splice(0,tt)),ue-=tt}return this._value.shift(),Me},ar.prototype.consumeStringToken=function(ue){var Se="",Me=0;do{var tt=this._value[Me];if(tt===Gr||tt===void 0||tt===ue)return Se+=this.consumeStringSlice(Me),{type:0,value:Se};if(tt===xe)return this._value.splice(0,Me),bi;if(tt===Ye){var Jt=this._value[Me+1];Jt!==Gr&&Jt!==void 0&&(Jt===xe?(Se+=this.consumeStringSlice(Me),Me=-1,this._value.shift()):ai(tt,Jt)&&(Se+=this.consumeStringSlice(Me),Se+=o(this.consumeEscapedCodePoint()),Me=-1))}Me++}while(!0)},ar.prototype.consumeNumber=function(){var ue=[],Se=wt,Me=this.peekCodePoint(0);for((Me===be||Me===St)&&ue.push(this.consumeCodePoint());Yi(this.peekCodePoint(0));)ue.push(this.consumeCodePoint());Me=this.peekCodePoint(0);var tt=this.peekCodePoint(1);if(Me===ze&&Yi(tt))for(ue.push(this.consumeCodePoint(),this.consumeCodePoint()),Se=Te;Yi(this.peekCodePoint(0));)ue.push(this.consumeCodePoint());Me=this.peekCodePoint(0),tt=this.peekCodePoint(1);var Jt=this.peekCodePoint(2);if((Me===Oi||Me===or)&&((tt===be||tt===St)&&Yi(Jt)||Yi(tt)))for(ue.push(this.consumeCodePoint(),this.consumeCodePoint()),Se=Te;Yi(this.peekCodePoint(0));)ue.push(this.consumeCodePoint());return[ln(ue),Se]},ar.prototype.consumeNumericToken=function(){var ue=this.consumeNumber(),Se=ue[0],Me=ue[1],tt=this.peekCodePoint(0),Jt=this.peekCodePoint(1),jr=this.peekCodePoint(2);if(Yn(tt,Jt,jr)){var an=this.consumeName();return{type:15,number:Se,flags:Me,unit:an}}return tt===Mt?(this.consumeCodePoint(),{type:16,number:Se,flags:Me}):{type:17,number:Se,flags:Me}},ar.prototype.consumeEscapedCodePoint=function(){var ue=this.consumeCodePoint();if(On(ue)){for(var Se=o(ue);On(this.peekCodePoint(0))&&Se.length<6;)Se+=o(this.consumeCodePoint());xr(this.peekCodePoint(0))&&this.consumeCodePoint();var Me=parseInt(Se,16);return Me===0||Qr(Me)||Me>1114111?Gi:Me}return ue===Gr?Gi:ue},ar.prototype.consumeName=function(){for(var ue="";;){var Se=this.consumeCodePoint();if(Kr(Se))ue+=o(Se);else if(ai(Se,this.peekCodePoint(0)))ue+=o(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Se),ue}},ar}(),es=function(){function ar(ue){this._tokens=ue}return ar.create=function(ue){var Se=new Ao;return Se.write(ue),new ar(Se.read())},ar.parseValue=function(ue){return ar.create(ue).parseComponentValue()},ar.parseValues=function(ue){return ar.create(ue).parseComponentValues()},ar.prototype.parseComponentValue=function(){for(var ue=this.consumeToken();ue.type===31;)ue=this.consumeToken();if(ue.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ue);var Se=this.consumeComponentValue();do ue=this.consumeToken();while(ue.type===31);if(ue.type===32)return Se;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},ar.prototype.parseComponentValues=function(){for(var ue=[];;){var Se=this.consumeComponentValue();if(Se.type===32)return ue;ue.push(Se),ue.push()}},ar.prototype.consumeComponentValue=function(){var ue=this.consumeToken();switch(ue.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ue.type);case 19:return this.consumeFunction(ue)}return ue},ar.prototype.consumeSimpleBlock=function(ue){for(var Se={type:ue,values:[]},Me=this.consumeToken();;){if(Me.type===32||vi(Me,ue))return Se;this.reconsumeToken(Me),Se.values.push(this.consumeComponentValue()),Me=this.consumeToken()}},ar.prototype.consumeFunction=function(ue){for(var Se={name:ue.value,values:[],type:18};;){var Me=this.consumeToken();if(Me.type===32||Me.type===3)return Se;this.reconsumeToken(Me),Se.values.push(this.consumeComponentValue())}},ar.prototype.consumeToken=function(){var ue=this._tokens.shift();return typeof ue=="undefined"?Wa:ue},ar.prototype.reconsumeToken=function(ue){this._tokens.unshift(ue)},ar}(),so=function(ue){return ue.type===15},So=function(ue){return ue.type===17},xo=function(ue){return ue.type===20},hr=function(ue){return ue.type===0},Sn=function(ue,Se){return xo(ue)&&ue.value===Se},dn=function(ue){return ue.type!==31},Kn=function(ue){return ue.type!==31&&ue.type!==4},si=function(ue){var Se=[],Me=[];return ue.forEach(function(tt){if(tt.type===4){if(Me.length===0)throw new Error("Error parsing function args, zero tokens for arg");Se.push(Me),Me=[];return}tt.type!==31&&Me.push(tt)}),Me.length&&Se.push(Me),Se},vi=function(ue,Se){return Se===11&&ue.type===12||Se===28&&ue.type===29?!0:Se===2&&ue.type===3},pi=function(ue){return ue.type===17||ue.type===15},di=function(ue){return ue.type===16||pi(ue)},Ki=function(ue){return ue.length>1?[ue[0],ue[1]]:[ue[0]]},Mi={type:17,number:0,flags:wt},pa={type:16,number:50,flags:wt},_i={type:16,number:100,flags:wt},da=function(ue,Se,Me){var tt=ue[0],Jt=ue[1];return[na(tt,Se),na(typeof Jt!="undefined"?Jt:tt,Me)]},na=function(ue,Se){if(ue.type===16)return ue.number/100*Se;if(so(ue))switch(ue.unit){case"rem":case"em":return 16*ue.number;case"px":default:return ue.number}return ue.number},Sa="deg",Aa="grad",ua="rad",La="turn",sa={name:"angle",parse:function(ue,Se){if(Se.type===15)switch(Se.unit){case Sa:return Math.PI*Se.number/180;case Aa:return Math.PI/200*Se.number;case ua:return Se.number;case La:return Math.PI*2*Se.number}throw new Error("Unsupported angle type")}},co=function(ue){return ue.type===15&&(ue.unit===Sa||ue.unit===Aa||ue.unit===ua||ue.unit===La)},no=function(ue){var Se=ue.filter(xo).map(function(Me){return Me.value}).join(" ");switch(Se){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Mi,Mi];case"to top":case"bottom":return ca(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Mi,_i];case"to right":case"left":return ca(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[_i,_i];case"to bottom":case"top":return ca(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[_i,Mi];case"to left":case"right":return ca(270)}return 0},ca=function(ue){return Math.PI*ue/180},yo={name:"color",parse:function(ue,Se){if(Se.type===18){var Me=Bo[Se.name];if(typeof Me=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Se.name+'"');return Me(ue,Se.values)}if(Se.type===5){if(Se.value.length===3){var tt=Se.value.substring(0,1),Jt=Se.value.substring(1,2),jr=Se.value.substring(2,3);return ho(parseInt(tt+tt,16),parseInt(Jt+Jt,16),parseInt(jr+jr,16),1)}if(Se.value.length===4){var tt=Se.value.substring(0,1),Jt=Se.value.substring(1,2),jr=Se.value.substring(2,3),an=Se.value.substring(3,4);return ho(parseInt(tt+tt,16),parseInt(Jt+Jt,16),parseInt(jr+jr,16),parseInt(an+an,16)/255)}if(Se.value.length===6){var tt=Se.value.substring(0,2),Jt=Se.value.substring(2,4),jr=Se.value.substring(4,6);return ho(parseInt(tt,16),parseInt(Jt,16),parseInt(jr,16),1)}if(Se.value.length===8){var tt=Se.value.substring(0,2),Jt=Se.value.substring(2,4),jr=Se.value.substring(4,6),an=Se.value.substring(6,8);return ho(parseInt(tt,16),parseInt(Jt,16),parseInt(jr,16),parseInt(an,16)/255)}}if(Se.type===20){var yn=Pr[Se.value.toUpperCase()];if(typeof yn!="undefined")return yn}return Pr.TRANSPARENT}},lo=function(ue){return(255&ue)===0},Na=function(ue){var Se=255&ue,Me=255&ue>>8,tt=255&ue>>16,Jt=255&ue>>24;return Se<255?"rgba("+Jt+","+tt+","+Me+","+Se/255+")":"rgb("+Jt+","+tt+","+Me+")"},ho=function(ue,Se,Me,tt){return(ue<<24|Se<<16|Me<<8|Math.round(tt*255)<<0)>>>0},Io=function(ue,Se){if(ue.type===17)return ue.number;if(ue.type===16){var Me=Se===3?1:255;return Se===3?ue.number/100*Me:Math.round(ue.number/100*Me)}return 0},eo=function(ue,Se){var Me=Se.filter(Kn);if(Me.length===3){var tt=Me.map(Io),Jt=tt[0],jr=tt[1],an=tt[2];return ho(Jt,jr,an,1)}if(Me.length===4){var yn=Me.map(Io),Jt=yn[0],jr=yn[1],an=yn[2],kn=yn[3];return ho(Jt,jr,an,kn)}return 0};function Lo(ar,ue,Se){return Se<0&&(Se+=1),Se>=1&&(Se-=1),Se<1/6?(ue-ar)*Se*6+ar:Se<1/2?ue:Se<2/3?(ue-ar)*6*(2/3-Se)+ar:ar}var Va=function(ue,Se){var Me=Se.filter(Kn),tt=Me[0],Jt=Me[1],jr=Me[2],an=Me[3],yn=(tt.type===17?ca(tt.number):sa.parse(ue,tt))/(Math.PI*2),kn=di(Jt)?Jt.number/100:0,Ui=di(jr)?jr.number/100:0,Ci=typeof an!="undefined"&&di(an)?na(an,1):1;if(kn===0)return ho(Ui*255,Ui*255,Ui*255,1);var zi=Ui<=.5?Ui*(kn+1):Ui+kn-Ui*kn,$a=Ui*2-zi,qa=Lo($a,zi,yn+1/3),vo=Lo($a,zi,yn),ns=Lo($a,zi,yn-1/3);return ho(qa*255,vo*255,ns*255,Ci)},Bo={hsl:Va,hsla:Va,rgb:eo,rgba:eo},Ho=function(ue,Se){return yo.parse(ue,es.create(Se).parseComponentValue())},Pr={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},An={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(ue,Se){return Se.map(function(Me){if(xo(Me))switch(Me.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pn={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qr=function(ue,Se){var Me=yo.parse(ue,Se[0]),tt=Se[1];return tt&&di(tt)?{color:Me,stop:tt}:{color:Me,stop:null}},er=function(ue,Se){var Me=ue[0],tt=ue[ue.length-1];Me.stop===null&&(Me.stop=Mi),tt.stop===null&&(tt.stop=_i);for(var Jt=[],jr=0,an=0;an<ue.length;an++){var yn=ue[an].stop;if(yn!==null){var kn=na(yn,Se);kn>jr?Jt.push(kn):Jt.push(jr),jr=kn}else Jt.push(null)}for(var Ui=null,an=0;an<Jt.length;an++){var Ci=Jt[an];if(Ci===null)Ui===null&&(Ui=an);else if(Ui!==null){for(var zi=an-Ui,$a=Jt[Ui-1],qa=(Ci-$a)/(zi+1),vo=1;vo<=zi;vo++)Jt[Ui+vo-1]=qa*vo;Ui=null}}return ue.map(function(ns,jo){var ko=ns.color;return{color:ko,stop:Math.max(Math.min(1,Jt[jo]/Se),0)}})},Dr=function(ue,Se,Me){var tt=Se/2,Jt=Me/2,jr=na(ue[0],Se)-tt,an=Jt-na(ue[1],Me);return(Math.atan2(an,jr)+Math.PI*2)%(Math.PI*2)},lr=function(ue,Se,Me){var tt=typeof ue=="number"?ue:Dr(ue,Se,Me),Jt=Math.abs(Se*Math.sin(tt))+Math.abs(Me*Math.cos(tt)),jr=Se/2,an=Me/2,yn=Jt/2,kn=Math.sin(tt-Math.PI/2)*yn,Ui=Math.cos(tt-Math.PI/2)*yn;return[Jt,jr-Ui,jr+Ui,an-kn,an+kn]},on=function(ue,Se){return Math.sqrt(ue*ue+Se*Se)},fn=function(ue,Se,Me,tt,Jt){var jr=[[0,0],[0,Se],[ue,0],[ue,Se]];return jr.reduce(function(an,yn){var kn=yn[0],Ui=yn[1],Ci=on(Me-kn,tt-Ui);return(Jt?Ci<an.optimumDistance:Ci>an.optimumDistance)?{optimumCorner:yn,optimumDistance:Ci}:an},{optimumDistance:Jt?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Wn=function(ue,Se,Me,tt,Jt){var jr=0,an=0;switch(ue.size){case 0:ue.shape===0?jr=an=Math.min(Math.abs(Se),Math.abs(Se-tt),Math.abs(Me),Math.abs(Me-Jt)):ue.shape===1&&(jr=Math.min(Math.abs(Se),Math.abs(Se-tt)),an=Math.min(Math.abs(Me),Math.abs(Me-Jt)));break;case 2:if(ue.shape===0)jr=an=Math.min(on(Se,Me),on(Se,Me-Jt),on(Se-tt,Me),on(Se-tt,Me-Jt));else if(ue.shape===1){var yn=Math.min(Math.abs(Me),Math.abs(Me-Jt))/Math.min(Math.abs(Se),Math.abs(Se-tt)),kn=fn(tt,Jt,Se,Me,!0),Ui=kn[0],Ci=kn[1];jr=on(Ui-Se,(Ci-Me)/yn),an=yn*jr}break;case 1:ue.shape===0?jr=an=Math.max(Math.abs(Se),Math.abs(Se-tt),Math.abs(Me),Math.abs(Me-Jt)):ue.shape===1&&(jr=Math.max(Math.abs(Se),Math.abs(Se-tt)),an=Math.max(Math.abs(Me),Math.abs(Me-Jt)));break;case 3:if(ue.shape===0)jr=an=Math.max(on(Se,Me),on(Se,Me-Jt),on(Se-tt,Me),on(Se-tt,Me-Jt));else if(ue.shape===1){var yn=Math.max(Math.abs(Me),Math.abs(Me-Jt))/Math.max(Math.abs(Se),Math.abs(Se-tt)),zi=fn(tt,Jt,Se,Me,!1),Ui=zi[0],Ci=zi[1];jr=on(Ui-Se,(Ci-Me)/yn),an=yn*jr}break}return Array.isArray(ue.size)&&(jr=na(ue.size[0],tt),an=ue.size.length===2?na(ue.size[1],Jt):jr),[jr,an]},Dn=function(ue,Se){var Me=ca(180),tt=[];return si(Se).forEach(function(Jt,jr){if(jr===0){var an=Jt[0];if(an.type===20&&an.value==="to"){Me=no(Jt);return}else if(co(an)){Me=sa.parse(ue,an);return}}var yn=qr(ue,Jt);tt.push(yn)}),{angle:Me,stops:tt,type:1}},Jn=function(ue,Se){var Me=ca(180),tt=[];return si(Se).forEach(function(Jt,jr){if(jr===0){var an=Jt[0];if(an.type===20&&["top","left","right","bottom"].indexOf(an.value)!==-1){Me=no(Jt);return}else if(co(an)){Me=(sa.parse(ue,an)+ca(270))%ca(360);return}}var yn=qr(ue,Jt);tt.push(yn)}),{angle:Me,stops:tt,type:1}},Ti=function(ue,Se){var Me=ca(180),tt=[],Jt=1,jr=0,an=3,yn=[];return si(Se).forEach(function(kn,Ui){var Ci=kn[0];if(Ui===0){if(xo(Ci)&&Ci.value==="linear"){Jt=1;return}else if(xo(Ci)&&Ci.value==="radial"){Jt=2;return}}if(Ci.type===18){if(Ci.name==="from"){var zi=yo.parse(ue,Ci.values[0]);tt.push({stop:Mi,color:zi})}else if(Ci.name==="to"){var zi=yo.parse(ue,Ci.values[0]);tt.push({stop:_i,color:zi})}else if(Ci.name==="color-stop"){var $a=Ci.values.filter(Kn);if($a.length===2){var zi=yo.parse(ue,$a[1]),qa=$a[0];So(qa)&&tt.push({stop:{type:16,number:qa.number*100,flags:qa.flags},color:zi})}}}}),Jt===1?{angle:(Me+ca(180))%ca(360),stops:tt,type:Jt}:{size:an,shape:jr,stops:tt,position:yn,type:Jt}},xi="closest-side",Bi="farthest-side",ea="closest-corner",Ha="farthest-corner",Qa="circle",io="ellipse",Ja="cover",Ga="contain",Ra=function(ue,Se){var Me=0,tt=3,Jt=[],jr=[];return si(Se).forEach(function(an,yn){var kn=!0;if(yn===0){var Ui=!1;kn=an.reduce(function(zi,$a){if(Ui)if(xo($a))switch($a.value){case"center":return jr.push(pa),zi;case"top":case"left":return jr.push(Mi),zi;case"right":case"bottom":return jr.push(_i),zi}else(di($a)||pi($a))&&jr.push($a);else if(xo($a))switch($a.value){case Qa:return Me=0,!1;case io:return Me=1,!1;case"at":return Ui=!0,!1;case xi:return tt=0,!1;case Ja:case Bi:return tt=1,!1;case Ga:case ea:return tt=2,!1;case Ha:return tt=3,!1}else if(pi($a)||di($a))return Array.isArray(tt)||(tt=[]),tt.push($a),!1;return zi},kn)}if(kn){var Ci=qr(ue,an);Jt.push(Ci)}}),{size:tt,shape:Me,stops:Jt,position:jr,type:2}},ia=function(ue,Se){var Me=0,tt=3,Jt=[],jr=[];return si(Se).forEach(function(an,yn){var kn=!0;if(yn===0?kn=an.reduce(function(Ci,zi){if(xo(zi))switch(zi.value){case"center":return jr.push(pa),!1;case"top":case"left":return jr.push(Mi),!1;case"right":case"bottom":return jr.push(_i),!1}else if(di(zi)||pi(zi))return jr.push(zi),!1;return Ci},kn):yn===1&&(kn=an.reduce(function(Ci,zi){if(xo(zi))switch(zi.value){case Qa:return Me=0,!1;case io:return Me=1,!1;case Ga:case xi:return tt=0,!1;case Bi:return tt=1,!1;case ea:return tt=2,!1;case Ja:case Ha:return tt=3,!1}else if(pi(zi)||di(zi))return Array.isArray(tt)||(tt=[]),tt.push(zi),!1;return Ci},kn)),kn){var Ui=qr(ue,an);Jt.push(Ui)}}),{size:tt,shape:Me,stops:Jt,position:jr,type:2}},qe=function(ue){return ue.type===1},rr=function(ue){return ue.type===2},Rr={name:"image",parse:function(ue,Se){if(Se.type===22){var Me={url:Se.value,type:0};return ue.cache.addImage(Se.value),Me}if(Se.type===18){var tt=pn[Se.name];if(typeof tt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Se.name+'"');return tt(ue,Se.values)}throw new Error("Unsupported image type "+Se.type)}};function Cr(ar){return!(ar.type===20&&ar.value==="none")&&(ar.type!==18||!!pn[ar.name])}var pn={"linear-gradient":Dn,"-moz-linear-gradient":Jn,"-ms-linear-gradient":Jn,"-o-linear-gradient":Jn,"-webkit-linear-gradient":Jn,"radial-gradient":Ra,"-moz-radial-gradient":ia,"-ms-radial-gradient":ia,"-o-radial-gradient":ia,"-webkit-radial-gradient":ia,"-webkit-gradient":Ti},Vr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(ue,Se){if(Se.length===0)return[];var Me=Se[0];return Me.type===20&&Me.value==="none"?[]:Se.filter(function(tt){return Kn(tt)&&Cr(tt)}).map(function(tt){return Rr.parse(ue,tt)})}},br={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(ue,Se){return Se.map(function(Me){if(xo(Me))switch(Me.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},In={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(ue,Se){return si(Se).map(function(Me){return Me.filter(di)}).map(Ki)}},Sr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(ue,Se){return si(Se).map(function(Me){return Me.filter(xo).map(function(tt){return tt.value}).join(" ")}).map(gn)}},gn=function(ue){switch(ue){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},$n;(function(ar){ar.AUTO="auto",ar.CONTAIN="contain",ar.COVER="cover"})($n||($n={}));var qn={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(ue,Se){return si(Se).map(function(Me){return Me.filter(Gn)})}},Gn=function(ue){return xo(ue)||di(ue)},mi=function(ue){return{name:"border-"+ue+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ti=mi("top"),ri=mi("right"),li=mi("bottom"),Xi=mi("left"),Pi=function(ue){return{name:"border-radius-"+ue,initialValue:"0 0",prefix:!1,type:1,parse:function(Me,tt){return Ki(tt.filter(di))}}},ga=Pi("top-left"),tr=Pi("top-right"),Lt=Pi("bottom-right"),yr=Pi("bottom-left"),xt=function(ue){return{name:"border-"+ue+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(Me,tt){switch(tt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ut=xt("top"),ur=xt("right"),Ct=xt("bottom"),dr=xt("left"),nr=function(ue){return{name:"border-"+ue+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Me,tt){return so(tt)?tt.number:0}}},Wr=nr("top"),En=nr("right"),Cn=nr("bottom"),Nn=nr("left"),oi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"rtl":return 1;case"ltr":default:return 0}}},Vi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(ue,Se){return Se.filter(xo).reduce(function(Me,tt){return Me|wi(tt.value)},0)}},wi=function(ue){switch(ue){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},Ea={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},aa={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(ue,Se){return Se.type===20&&Se.value==="normal"?0:Se.type===17||Se.type===15?Se.number:0}},Ca;(function(ar){ar.NORMAL="normal",ar.STRICT="strict"})(Ca||(Ca={}));var fa={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"strict":return Ca.STRICT;case"normal":default:return Ca.NORMAL}}},ha={name:"line-height",initialValue:"normal",prefix:!1,type:4},qi=function(ue,Se){return xo(ue)&&ue.value==="normal"?1.2*Se:ue.type===17?Se*ue.number:di(ue)?na(ue,Se):Se},Ma={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(ue,Se){return Se.type===20&&Se.value==="none"?null:Rr.parse(ue,Se)}},za={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"inside":return 0;case"outside":default:return 1}}},la={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},ao=function(ue){return{name:"margin-"+ue,initialValue:"0",prefix:!1,type:4}},ka=ao("top"),Ba=ao("right"),oo=ao("bottom"),ja=ao("left"),Pa={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(ue,Se){return Se.filter(xo).map(function(Me){switch(Me.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Fr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"break-word":return"break-word";case"normal":default:return"normal"}}},Oa=function(ue){return{name:"padding-"+ue,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},No=Oa("top"),Po=Oa("right"),Qo=Oa("bottom"),ss=Oa("left"),rs={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ko={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$o={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ue,Se){return Se.length===1&&Sn(Se[0],"none")?[]:si(Se).map(function(Me){for(var tt={color:Pr.TRANSPARENT,offsetX:Mi,offsetY:Mi,blur:Mi},Jt=0,jr=0;jr<Me.length;jr++){var an=Me[jr];pi(an)?(Jt===0?tt.offsetX=an:Jt===1?tt.offsetY=an:tt.blur=an,Jt++):tt.color=yo.parse(ue,an)}return tt})}},Uo={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Wo={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(ue,Se){if(Se.type===20&&Se.value==="none")return null;if(Se.type===18){var Me=Ka[Se.name];if(typeof Me=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Se.name+'"');return Me(Se.values)}return null}},Go=function(ue){var Se=ue.filter(function(Me){return Me.type===17}).map(function(Me){return Me.number});return Se.length===6?Se:null},Oo=function(ue){var Se=ue.filter(function(kn){return kn.type===17}).map(function(kn){return kn.number}),Me=Se[0],tt=Se[1];Se[2],Se[3];var Jt=Se[4],jr=Se[5];Se[6],Se[7],Se[8],Se[9],Se[10],Se[11];var an=Se[12],yn=Se[13];return Se[14],Se[15],Se.length===16?[Me,tt,Jt,jr,an,yn]:null},Ka={matrix:Go,matrix3d:Oo},Xa={type:16,number:50,flags:wt},bo=[Xa,Xa],Eo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(ue,Se){var Me=Se.filter(di);return Me.length!==2?bo:[Me[0],Me[1]]}},pt={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Nt;(function(ar){ar.NORMAL="normal",ar.BREAK_ALL="break-all",ar.KEEP_ALL="keep-all"})(Nt||(Nt={}));for(var sn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"break-all":return Nt.BREAK_ALL;case"keep-all":return Nt.KEEP_ALL;case"normal":default:return Nt.NORMAL}}},Mn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(ue,Se){if(Se.type===20)return{auto:!0,order:0};if(So(Se))return{auto:!1,order:Se.number};throw new Error("Invalid z-index number parsed")}},hi={name:"time",parse:function(ue,Se){if(Se.type===15)switch(Se.unit.toLowerCase()){case"s":return 1e3*Se.number;case"ms":return Se.number}throw new Error("Unsupported time type")}},ot={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(ue,Se){return So(Se)?Se.number:1}},ae={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},de={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(ue,Se){return Se.filter(xo).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})}},ye={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(ue,Se){var Me=[],tt=[];return Se.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:tt.push(Me.join(" ")),Me.length=0;break}}),Me.length&&tt.push(Me.join(" ")),tt.map(function(Jt){return Jt.indexOf(" ")===-1?Jt:"'"+Jt+"'"})}},Ke={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ct={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(ue,Se){if(So(Se))return Se.number;if(xo(Se))switch(Se.value){case"bold":return 700;case"normal":default:return 400}return 400}},Bt={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(ue,Se){return Se.filter(xo).map(function(Me){return Me.value})}},Ir={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(ue,Se){switch(Se){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Br=function(ue,Se){return(ue&Se)!==0},un={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(ue,Se){if(Se.length===0)return[];var Me=Se[0];return Me.type===20&&Me.value==="none"?[]:Se}},zn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(ue,Se){if(Se.length===0)return null;var Me=Se[0];if(Me.type===20&&Me.value==="none")return null;for(var tt=[],Jt=Se.filter(dn),jr=0;jr<Jt.length;jr++){var an=Jt[jr],yn=Jt[jr+1];if(an.type===20){var kn=yn&&So(yn)?yn.number:1;tt.push({counter:an.value,increment:kn})}}return tt}},Rn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(ue,Se){if(Se.length===0)return[];for(var Me=[],tt=Se.filter(dn),Jt=0;Jt<tt.length;Jt++){var jr=tt[Jt],an=tt[Jt+1];if(xo(jr)&&jr.value!=="none"){var yn=an&&So(an)?an.number:0;Me.push({counter:jr.value,reset:yn})}}return Me}},Fn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(ue,Se){return Se.filter(so).map(function(Me){return hi.parse(ue,Me)})}},Ai={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(ue,Se){if(Se.length===0)return null;var Me=Se[0];if(Me.type===20&&Me.value==="none")return null;var tt=[],Jt=Se.filter(hr);if(Jt.length%2!==0)return null;for(var jr=0;jr<Jt.length;jr+=2){var an=Jt[jr].value,yn=Jt[jr+1].value;tt.push({open:an,close:yn})}return tt}},Di=function(ue,Se,Me){if(!ue)return"";var tt=ue[Math.min(Se,ue.length-1)];return tt?Me?tt.open:tt.close:""},ya={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(ue,Se){return Se.length===1&&Sn(Se[0],"none")?[]:si(Se).map(function(Me){for(var tt={color:255,offsetX:Mi,offsetY:Mi,blur:Mi,spread:Mi,inset:!1},Jt=0,jr=0;jr<Me.length;jr++){var an=Me[jr];Sn(an,"inset")?tt.inset=!0:pi(an)?(Jt===0?tt.offsetX=an:Jt===1?tt.offsetY=an:Jt===2?tt.blur=an:tt.spread=an,Jt++):tt.color=yo.parse(ue,an)}return tt})}},Ua={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(ue,Se){var Me=[0,1,2],tt=[];return Se.filter(xo).forEach(function(Jt){switch(Jt.value){case"stroke":tt.push(1);break;case"fill":tt.push(0);break;case"markers":tt.push(2);break}}),Me.forEach(function(Jt){tt.indexOf(Jt)===-1&&tt.push(Jt)}),tt}},to={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},go={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(ue,Se){return so(Se)?Se.number:0}},wo=function(){function ar(ue,Se){var Me,tt;this.animationDuration=$i(ue,Fn,Se.animationDuration),this.backgroundClip=$i(ue,An,Se.backgroundClip),this.backgroundColor=$i(ue,Pn,Se.backgroundColor),this.backgroundImage=$i(ue,Vr,Se.backgroundImage),this.backgroundOrigin=$i(ue,br,Se.backgroundOrigin),this.backgroundPosition=$i(ue,In,Se.backgroundPosition),this.backgroundRepeat=$i(ue,Sr,Se.backgroundRepeat),this.backgroundSize=$i(ue,qn,Se.backgroundSize),this.borderTopColor=$i(ue,ti,Se.borderTopColor),this.borderRightColor=$i(ue,ri,Se.borderRightColor),this.borderBottomColor=$i(ue,li,Se.borderBottomColor),this.borderLeftColor=$i(ue,Xi,Se.borderLeftColor),this.borderTopLeftRadius=$i(ue,ga,Se.borderTopLeftRadius),this.borderTopRightRadius=$i(ue,tr,Se.borderTopRightRadius),this.borderBottomRightRadius=$i(ue,Lt,Se.borderBottomRightRadius),this.borderBottomLeftRadius=$i(ue,yr,Se.borderBottomLeftRadius),this.borderTopStyle=$i(ue,Ut,Se.borderTopStyle),this.borderRightStyle=$i(ue,ur,Se.borderRightStyle),this.borderBottomStyle=$i(ue,Ct,Se.borderBottomStyle),this.borderLeftStyle=$i(ue,dr,Se.borderLeftStyle),this.borderTopWidth=$i(ue,Wr,Se.borderTopWidth),this.borderRightWidth=$i(ue,En,Se.borderRightWidth),this.borderBottomWidth=$i(ue,Cn,Se.borderBottomWidth),this.borderLeftWidth=$i(ue,Nn,Se.borderLeftWidth),this.boxShadow=$i(ue,ya,Se.boxShadow),this.color=$i(ue,oi,Se.color),this.direction=$i(ue,Qn,Se.direction),this.display=$i(ue,Vi,Se.display),this.float=$i(ue,Ea,Se.cssFloat),this.fontFamily=$i(ue,ye,Se.fontFamily),this.fontSize=$i(ue,Ke,Se.fontSize),this.fontStyle=$i(ue,Ir,Se.fontStyle),this.fontVariant=$i(ue,Bt,Se.fontVariant),this.fontWeight=$i(ue,ct,Se.fontWeight),this.letterSpacing=$i(ue,aa,Se.letterSpacing),this.lineBreak=$i(ue,fa,Se.lineBreak),this.lineHeight=$i(ue,ha,Se.lineHeight),this.listStyleImage=$i(ue,Ma,Se.listStyleImage),this.listStylePosition=$i(ue,za,Se.listStylePosition),this.listStyleType=$i(ue,la,Se.listStyleType),this.marginTop=$i(ue,ka,Se.marginTop),this.marginRight=$i(ue,Ba,Se.marginRight),this.marginBottom=$i(ue,oo,Se.marginBottom),this.marginLeft=$i(ue,ja,Se.marginLeft),this.opacity=$i(ue,ot,Se.opacity);var Jt=$i(ue,Pa,Se.overflow);this.overflowX=Jt[0],this.overflowY=Jt[Jt.length>1?1:0],this.overflowWrap=$i(ue,Fr,Se.overflowWrap),this.paddingTop=$i(ue,No,Se.paddingTop),this.paddingRight=$i(ue,Po,Se.paddingRight),this.paddingBottom=$i(ue,Qo,Se.paddingBottom),this.paddingLeft=$i(ue,ss,Se.paddingLeft),this.paintOrder=$i(ue,Ua,Se.paintOrder),this.position=$i(ue,Ko,Se.position),this.textAlign=$i(ue,rs,Se.textAlign),this.textDecorationColor=$i(ue,ae,(Me=Se.textDecorationColor)!==null&&Me!==void 0?Me:Se.color),this.textDecorationLine=$i(ue,de,(tt=Se.textDecorationLine)!==null&&tt!==void 0?tt:Se.textDecoration),this.textShadow=$i(ue,$o,Se.textShadow),this.textTransform=$i(ue,Uo,Se.textTransform),this.transform=$i(ue,Wo,Se.transform),this.transformOrigin=$i(ue,Eo,Se.transformOrigin),this.visibility=$i(ue,pt,Se.visibility),this.webkitTextStrokeColor=$i(ue,to,Se.webkitTextStrokeColor),this.webkitTextStrokeWidth=$i(ue,go,Se.webkitTextStrokeWidth),this.wordBreak=$i(ue,sn,Se.wordBreak),this.zIndex=$i(ue,Mn,Se.zIndex)}return ar.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},ar.prototype.isTransparent=function(){return lo(this.backgroundColor)},ar.prototype.isTransformed=function(){return this.transform!==null},ar.prototype.isPositioned=function(){return this.position!==0},ar.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},ar.prototype.isFloating=function(){return this.float!==0},ar.prototype.isInlineLevel=function(){return Br(this.display,4)||Br(this.display,33554432)||Br(this.display,268435456)||Br(this.display,536870912)||Br(this.display,67108864)||Br(this.display,134217728)},ar}(),qo=function(){function ar(ue,Se){this.content=$i(ue,un,Se.content),this.quotes=$i(ue,Ai,Se.quotes)}return ar}(),Mo=function(){function ar(ue,Se){this.counterIncrement=$i(ue,zn,Se.counterIncrement),this.counterReset=$i(ue,Rn,Se.counterReset)}return ar}(),$i=function(ue,Se,Me){var tt=new Ao,Jt=Me!==null&&typeof Me!="undefined"?Me.toString():Se.initialValue;tt.write(Jt);var jr=new es(tt.read());switch(Se.type){case 2:var an=jr.parseComponentValue();return Se.parse(ue,xo(an)?an.value:Se.initialValue);case 0:return Se.parse(ue,jr.parseComponentValue());case 1:return Se.parse(ue,jr.parseComponentValues());case 4:return jr.parseComponentValue();case 3:switch(Se.format){case"angle":return sa.parse(ue,jr.parseComponentValue());case"color":return yo.parse(ue,jr.parseComponentValue());case"image":return Rr.parse(ue,jr.parseComponentValue());case"length":var yn=jr.parseComponentValue();return pi(yn)?yn:Mi;case"length-percentage":var kn=jr.parseComponentValue();return di(kn)?kn:Mi;case"time":return hi.parse(ue,jr.parseComponentValue())}break}},To="data-html2canvas-debug",fo=function(ue){var Se=ue.getAttribute(To);switch(Se){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ts=function(ue,Se){var Me=fo(ue);return Me===1||Se===Me},Jo=function(){function ar(ue,Se){if(this.context=ue,this.textNodes=[],this.elements=[],this.flags=0,ts(Se,3))debugger;this.styles=new wo(ue,window.getComputedStyle(Se,null)),ds(Se)&&(this.styles.animationDuration.some(function(Me){return Me>0})&&(Se.style.animationDuration="0s"),this.styles.transform!==null&&(Se.style.transform="none")),this.bounds=c(this.context,Se),ts(Se,4)&&(this.flags|=16)}return ar}(),zo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",is="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),gs=0;gs<is.length;gs++)Rs[is.charCodeAt(gs)]=gs;for(var ps=function(ue){var Se=ue.length*.75,Me=ue.length,tt,Jt=0,jr,an,yn,kn;ue[ue.length-1]==="="&&(Se--,ue[ue.length-2]==="="&&Se--);var Ui=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Se):new Array(Se),Ci=Array.isArray(Ui)?Ui:new Uint8Array(Ui);for(tt=0;tt<Me;tt+=4)jr=Rs[ue.charCodeAt(tt)],an=Rs[ue.charCodeAt(tt+1)],yn=Rs[ue.charCodeAt(tt+2)],kn=Rs[ue.charCodeAt(tt+3)],Ci[Jt++]=jr<<2|an>>4,Ci[Jt++]=(an&15)<<4|yn>>2,Ci[Jt++]=(yn&3)<<6|kn&63;return Ui},Ps=function(ue){for(var Se=ue.length,Me=[],tt=0;tt<Se;tt+=2)Me.push(ue[tt+1]<<8|ue[tt]);return Me},Es=function(ue){for(var Se=ue.length,Me=[],tt=0;tt<Se;tt+=4)Me.push(ue[tt+3]<<24|ue[tt+2]<<16|ue[tt+1]<<8|ue[tt]);return Me},Vs=5,Ks=6+5,Gs=2,ws=Ks-Vs,Os=65536>>Vs,$s=1<<Vs,nl=$s-1,il=1024>>Vs,hl=Os+il,Nl=hl,Al=2048>>6,yl=Nl+Al,al=65536>>Ks,Ms=1<<ws,Ws=Ms-1,Is=function(ue,Se,Me){return ue.slice?ue.slice(Se,Me):new Uint16Array(Array.prototype.slice.call(ue,Se,Me))},bl=function(ue,Se,Me){return ue.slice?ue.slice(Se,Me):new Uint32Array(Array.prototype.slice.call(ue,Se,Me))},wl=function(ue,Se){var Me=ps(ue),tt=Array.isArray(Me)?Es(Me):new Uint32Array(Me),Jt=Array.isArray(Me)?Ps(Me):new Uint16Array(Me),jr=24,an=Is(Jt,jr/2,tt[4]/2),yn=tt[5]===2?Is(Jt,(jr+tt[4])/2):bl(tt,Math.ceil((jr+tt[4])/4));return new ol(tt[0],tt[1],tt[2],tt[3],an,yn)},ol=function(){function ar(ue,Se,Me,tt,Jt,jr){this.initialValue=ue,this.errorValue=Se,this.highStart=Me,this.highValueIndex=tt,this.index=Jt,this.data=jr}return ar.prototype.get=function(ue){var Se;if(ue>=0){if(ue<55296||ue>56319&&ue<=65535)return Se=this.index[ue>>Vs],Se=(Se<<Gs)+(ue&nl),this.data[Se];if(ue<=65535)return Se=this.index[Os+(ue-55296>>Vs)],Se=(Se<<Gs)+(ue&nl),this.data[Se];if(ue<this.highStart)return Se=yl-al+(ue>>Ks),Se=this.index[Se],Se+=ue>>Vs&Ws,Se=this.index[Se],Se=(Se<<Gs)+(ue&nl),this.data[Se];if(ue<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ar}(),el="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ms=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ss=0;Ss<el.length;Ss++)ms[el.charCodeAt(Ss)]=Ss;var As=1,Ts=2,Us=3,_l=4,Il=5,Sl=7,Zl=8,iu=9,tl=10,xl=11,Ns=12,Pl=13,uu=14,$l=15,au=function(ue){for(var Se=[],Me=0,tt=ue.length;Me<tt;){var Jt=ue.charCodeAt(Me++);if(Jt>=55296&&Jt<=56319&&Me<tt){var jr=ue.charCodeAt(Me++);(jr&64512)===56320?Se.push(((Jt&1023)<<10)+(jr&1023)+65536):(Se.push(Jt),Me--)}else Se.push(Jt)}return Se},cu=function(){for(var ue=[],Se=0;Se<arguments.length;Se++)ue[Se]=arguments[Se];if(String.fromCodePoint)return String.fromCodePoint.apply(String,ue);var Me=ue.length;if(!Me)return"";for(var tt=[],Jt=-1,jr="";++Jt<Me;){var an=ue[Jt];an<=65535?tt.push(an):(an-=65536,tt.push((an>>10)+55296,an%1024+56320)),(Jt+1===Me||tt.length>16384)&&(jr+=String.fromCharCode.apply(String,tt),tt.length=0)}return jr},Xs=wl(zo),_s="\xD7",fl="\xF7",ql=function(ue){return Xs.get(ue)},yu=function(ue,Se,Me){var tt=Me-2,Jt=Se[tt],jr=Se[Me-1],an=Se[Me];if(jr===Ts&&an===Us)return _s;if(jr===Ts||jr===Us||jr===_l)return fl;if(an===Ts||an===Us||an===_l)return fl;if(jr===Zl&&[Zl,iu,xl,Ns].indexOf(an)!==-1)return _s;if((jr===xl||jr===iu)&&(an===iu||an===tl))return _s;if((jr===Ns||jr===tl)&&an===tl)return _s;if(an===Pl||an===Il)return _s;if(an===Sl)return _s;if(jr===As)return _s;if(jr===Pl&&an===uu){for(;Jt===Il;)Jt=Se[--tt];if(Jt===uu)return _s}if(jr===$l&&an===$l){for(var yn=0;Jt===$l;)yn++,Jt=Se[--tt];if(yn%2===0)return _s}return fl},du=function(ue){var Se=au(ue),Me=Se.length,tt=0,Jt=0,jr=Se.map(ql);return{next:function(){if(tt>=Me)return{done:!0,value:null};for(var yn=_s;tt<Me&&(yn=yu(Se,jr,++tt))===_s;);if(yn!==_s||tt===Me){var kn=cu.apply(null,Se.slice(Jt,tt));return Jt=tt,{value:kn,done:!1}}return{done:!0,value:null}}}},Ll=function(ue){for(var Se=du(ue),Me=[],tt;!(tt=Se.next()).done;)tt.value&&Me.push(tt.value.slice());return Me},Xl=function(ue){var Se=123;if(ue.createRange){var Me=ue.createRange();if(Me.getBoundingClientRect){var tt=ue.createElement("boundtest");tt.style.height=Se+"px",tt.style.display="block",ue.body.appendChild(tt),Me.selectNode(tt);var Jt=Me.getBoundingClientRect(),jr=Math.round(Jt.height);if(ue.body.removeChild(tt),jr===Se)return!0}}return!1},Ou=function(ue){var Se=ue.createElement("boundtest");Se.style.width="50px",Se.style.display="block",Se.style.fontSize="12px",Se.style.letterSpacing="0px",Se.style.wordSpacing="0px",ue.body.appendChild(Se);var Me=ue.createRange();Se.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var tt=Se.firstChild,Jt=r(tt.data).map(function(kn){return o(kn)}),jr=0,an={},yn=Jt.every(function(kn,Ui){Me.setStart(tt,jr),Me.setEnd(tt,jr+kn.length);var Ci=Me.getBoundingClientRect();jr+=kn.length;var zi=Ci.x>an.x||Ci.y>an.y;return an=Ci,Ui===0?!0:zi});return ue.body.removeChild(Se),yn},hu=function(){return typeof new Image().crossOrigin!="undefined"},bu=function(){return typeof new XMLHttpRequest().responseType=="string"},Dl=function(ue){var Se=new Image,Me=ue.createElement("canvas"),tt=Me.getContext("2d");if(!tt)return!1;Se.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{tt.drawImage(Se,0,0),Me.toDataURL()}catch(Jt){return!1}return!0},Fl=function(ue){return ue[0]===0&&ue[1]===255&&ue[2]===0&&ue[3]===255},jl=function(ue){var Se=ue.createElement("canvas"),Me=100;Se.width=Me,Se.height=Me;var tt=Se.getContext("2d");if(!tt)return Promise.reject(!1);tt.fillStyle="rgb(0, 255, 0)",tt.fillRect(0,0,Me,Me);var Jt=new Image,jr=Se.toDataURL();Jt.src=jr;var an=Hl(Me,Me,0,0,Jt);return tt.fillStyle="red",tt.fillRect(0,0,Me,Me),Fs(an).then(function(yn){tt.drawImage(yn,0,0);var kn=tt.getImageData(0,0,Me,Me).data;tt.fillStyle="red",tt.fillRect(0,0,Me,Me);var Ui=ue.createElement("div");return Ui.style.backgroundImage="url("+jr+")",Ui.style.height=Me+"px",Fl(kn)?Fs(Hl(Me,Me,0,0,Ui)):Promise.reject(!1)}).then(function(yn){return tt.drawImage(yn,0,0),Fl(tt.getImageData(0,0,Me,Me).data)}).catch(function(){return!1})},Hl=function(ue,Se,Me,tt,Jt){var jr="http://www.w3.org/2000/svg",an=document.createElementNS(jr,"svg"),yn=document.createElementNS(jr,"foreignObject");return an.setAttributeNS(null,"width",ue.toString()),an.setAttributeNS(null,"height",Se.toString()),yn.setAttributeNS(null,"width","100%"),yn.setAttributeNS(null,"height","100%"),yn.setAttributeNS(null,"x",Me.toString()),yn.setAttributeNS(null,"y",tt.toString()),yn.setAttributeNS(null,"externalResourcesRequired","true"),an.appendChild(yn),yn.appendChild(Jt),an},Fs=function(ue){return new Promise(function(Se,Me){var tt=new Image;tt.onload=function(){return Se(tt)},tt.onerror=Me,tt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ue))})},rl={get SUPPORT_RANGE_BOUNDS(){var ar=Xl(document);return Object.defineProperty(rl,"SUPPORT_RANGE_BOUNDS",{value:ar}),ar},get SUPPORT_WORD_BREAKING(){var ar=rl.SUPPORT_RANGE_BOUNDS&&Ou(document);return Object.defineProperty(rl,"SUPPORT_WORD_BREAKING",{value:ar}),ar},get SUPPORT_SVG_DRAWING(){var ar=Dl(document);return Object.defineProperty(rl,"SUPPORT_SVG_DRAWING",{value:ar}),ar},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ar=typeof Array.from=="function"&&typeof window.fetch=="function"?jl(document):Promise.resolve(!1);return Object.defineProperty(rl,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ar}),ar},get SUPPORT_CORS_IMAGES(){var ar=hu();return Object.defineProperty(rl,"SUPPORT_CORS_IMAGES",{value:ar}),ar},get SUPPORT_RESPONSE_TYPE(){var ar=bu();return Object.defineProperty(rl,"SUPPORT_RESPONSE_TYPE",{value:ar}),ar},get SUPPORT_CORS_XHR(){var ar="withCredentials"in new XMLHttpRequest;return Object.defineProperty(rl,"SUPPORT_CORS_XHR",{value:ar}),ar}},Kl=function(){function ar(ue,Se){this.text=ue,this.bounds=Se}return ar}(),sl=function(ue,Se,Me,tt){var Jt=Bl(Se,Me),jr=[],an=0;return Jt.forEach(function(yn){if(Me.textDecorationLine.length||yn.trim().length>0)if(rl.SUPPORT_RANGE_BOUNDS)rl.SUPPORT_WORD_BREAKING?jr.push(new Kl(yn,wu(ue,tt,an,yn.length))):jr.push(new Kl(yn,h.fromDOMRectList(ue,_u(tt,an,yn.length).getClientRects())));else{var kn=tt.splitText(yn.length);jr.push(new Kl(yn,Yl(ue,tt))),tt=kn}else rl.SUPPORT_RANGE_BOUNDS||(tt=tt.splitText(yn.length));an+=yn.length}),jr},Yl=function(ue,Se){var Me=Se.ownerDocument;if(Me){var tt=Me.createElement("html2canvaswrapper");tt.appendChild(Se.cloneNode(!0));var Jt=Se.parentNode;if(Jt){Jt.replaceChild(tt,Se);var jr=c(ue,tt);return tt.firstChild&&Jt.replaceChild(tt.firstChild,tt),jr}}return h.EMPTY},_u=function(ue,Se,Me){var tt=ue.ownerDocument;if(!tt)throw new Error("Node has no owner document");var Jt=tt.createRange();return Jt.setStart(ue,Se),Jt.setEnd(ue,Se+Me),Jt},wu=function(ue,Se,Me,tt){return h.fromClientRect(ue,_u(Se,Me,tt).getBoundingClientRect())},Bl=function(ue,Se){return Se.letterSpacing!==0?Ll(ue):Ql(ue,Se)},El=[32,160,4961,65792,65793,4153,4241],Ql=function(ue,Se){for(var Me=Ln(ue,{lineBreak:Se.lineBreak,wordBreak:Se.overflowWrap==="break-word"?"break-word":Se.wordBreak}),tt=[],Jt,jr=function(){if(Jt.value){var yn=Jt.value.slice(),kn=r(yn),Ui="";kn.forEach(function(Ci){El.indexOf(Ci)===-1?Ui+=o(Ci):(Ui.length&&tt.push(Ui),tt.push(o(Ci)),Ui="")}),Ui.length&&tt.push(Ui)}};!(Jt=Me.next()).done;)jr();return tt},Iu=function(){function ar(ue,Se,Me){this.text=Lu(Se.data,Me.textTransform),this.textBounds=sl(ue,this.text,Me,Se)}return ar}(),Lu=function(ue,Se){switch(Se){case 1:return ue.toLowerCase();case 3:return ue.replace(ou,eu);case 2:return ue.toUpperCase();default:return ue}},ou=/(^|\s|:|-|\(|\))([a-z])/g,eu=function(ue,Se,Me){return ue.length>0?Se+Me.toUpperCase():ue},su=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;return tt.src=Me.currentSrc||Me.src,tt.intrinsicWidth=Me.naturalWidth,tt.intrinsicHeight=Me.naturalHeight,tt.context.cache.addImage(tt.src),tt}return ue}(Jo),Ul=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;return tt.canvas=Me,tt.intrinsicWidth=Me.width,tt.intrinsicHeight=Me.height,tt}return ue}(Jo),fu=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this,Jt=new XMLSerializer,jr=c(Se,Me);return Me.setAttribute("width",jr.width+"px"),Me.setAttribute("height",jr.height+"px"),tt.svg="data:image/svg+xml,"+encodeURIComponent(Jt.serializeToString(Me)),tt.intrinsicWidth=Me.width.baseVal.value,tt.intrinsicHeight=Me.height.baseVal.value,tt.context.cache.addImage(tt.svg),tt}return ue}(Jo),pl=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;return tt.value=Me.value,tt}return ue}(Jo),ml=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;return tt.start=Me.start,tt.reversed=typeof Me.reversed=="boolean"&&Me.reversed===!0,tt}return ue}(Jo),Wl=[{type:15,flags:0,unit:"px",number:3}],as=[{type:16,flags:0,number:50}],uo=function(ue){return ue.width>ue.height?new h(ue.left+(ue.width-ue.height)/2,ue.top,ue.height,ue.height):ue.width<ue.height?new h(ue.left,ue.top+(ue.height-ue.width)/2,ue.width,ue.width):ue},Do=function(ue){var Se=ue.type===zl?new Array(ue.value.length+1).join("\u2022"):ue.value;return Se.length===0?ue.placeholder||"":Se},Xo="checkbox",Ls="radio",zl="password",Rl=707406591,ll=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;tt.type=Me.type.toLowerCase(),tt.checked=Me.checked,tt.value=Do(Me),(tt.type===Xo||tt.type===Ls)&&(tt.styles.backgroundColor=3739148031,tt.styles.borderTopColor=tt.styles.borderRightColor=tt.styles.borderBottomColor=tt.styles.borderLeftColor=2779096575,tt.styles.borderTopWidth=tt.styles.borderRightWidth=tt.styles.borderBottomWidth=tt.styles.borderLeftWidth=1,tt.styles.borderTopStyle=tt.styles.borderRightStyle=tt.styles.borderBottomStyle=tt.styles.borderLeftStyle=1,tt.styles.backgroundClip=[0],tt.styles.backgroundOrigin=[0],tt.bounds=uo(tt.bounds));switch(tt.type){case Xo:tt.styles.borderTopRightRadius=tt.styles.borderTopLeftRadius=tt.styles.borderBottomRightRadius=tt.styles.borderBottomLeftRadius=Wl;break;case Ls:tt.styles.borderTopRightRadius=tt.styles.borderTopLeftRadius=tt.styles.borderBottomRightRadius=tt.styles.borderBottomLeftRadius=as;break}return tt}return ue}(Jo),Tl=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this,Jt=Me.options[Me.selectedIndex||0];return tt.value=Jt&&Jt.text||"",tt}return ue}(Jo),Ml=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;return tt.value=Me.value,tt}return ue}(Jo),Jl=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;tt.src=Me.src,tt.width=parseInt(Me.width,10)||0,tt.height=parseInt(Me.height,10)||0,tt.backgroundColor=tt.styles.backgroundColor;try{if(Me.contentWindow&&Me.contentWindow.document&&Me.contentWindow.document.documentElement){tt.tree=pu(Se,Me.contentWindow.document.documentElement);var Jt=Me.contentWindow.document.documentElement?Ho(Se,getComputedStyle(Me.contentWindow.document.documentElement).backgroundColor):Pr.TRANSPARENT,jr=Me.contentWindow.document.body?Ho(Se,getComputedStyle(Me.contentWindow.document.body).backgroundColor):Pr.TRANSPARENT;tt.backgroundColor=lo(Jt)?lo(jr)?tt.styles.backgroundColor:jr:Jt}}catch(an){}return tt}return ue}(Jo),Ys=["OL","UL","MENU"],tu=function ar(ue,Se,Me,tt){for(var Jt=Se.firstChild,jr=void 0;Jt;Jt=jr)if(jr=Jt.nextSibling,ls(Jt)&&Jt.data.trim().length>0)Me.textNodes.push(new Iu(ue,Jt,Me.styles));else if(Zo(Jt))if(Xr(Jt)&&Jt.assignedNodes)Jt.assignedNodes().forEach(function(yn){return ar(ue,yn,Me,tt)});else{var an=Su(ue,Jt);an.styles.isVisible()&&(Du(Jt,an,tt)?an.flags|=4:Hu(an.styles)&&(an.flags|=2),Ys.indexOf(Jt.tagName)!==-1&&(an.flags|=8),Me.elements.push(an),Jt.slot,Jt.shadowRoot?ar(ue,Jt.shadowRoot,an,tt):!Yt(Jt)&&!vl(Jt)&&!Er(Jt)&&ar(ue,Jt,an,tt))}},Su=function(ue,Se){return mu(Se)?new su(ue,Se):lu(Se)?new Ul(ue,Se):vl(Se)?new fu(ue,Se):js(Se)?new pl(ue,Se):vs(Se)?new ml(ue,Se):ul(Se)?new ll(ue,Se):Er(Se)?new Tl(ue,Se):Yt(Se)?new Ml(ue,Se):pe(Se)?new Jl(ue,Se):new Jo(ue,Se)},pu=function(ue,Se){var Me=Su(ue,Se);return Me.flags|=4,tu(ue,Se,Me,Me),Me},Du=function(ue,Se,Me){return Se.styles.isPositionedWithZIndex()||Se.styles.opacity<1||Se.styles.isTransformed()||ru(ue)&&Me.styles.isTransparent()},Hu=function(ue){return ue.isPositioned()||ue.isFloating()},ls=function(ue){return ue.nodeType===Node.TEXT_NODE},Zo=function(ue){return ue.nodeType===Node.ELEMENT_NODE},ds=function(ue){return Zo(ue)&&typeof ue.style!="undefined"&&!Cs(ue)},Cs=function(ue){return typeof ue.className=="object"},js=function(ue){return ue.tagName==="LI"},vs=function(ue){return ue.tagName==="OL"},ul=function(ue){return ue.tagName==="INPUT"},gl=function(ue){return ue.tagName==="HTML"},vl=function(ue){return ue.tagName==="svg"},ru=function(ue){return ue.tagName==="BODY"},lu=function(ue){return ue.tagName==="CANVAS"},mu=function(ue){return ue.tagName==="IMG"},pe=function(ue){return ue.tagName==="IFRAME"},We=function(ue){return ue.tagName==="STYLE"},ht=function(ue){return ue.tagName==="SCRIPT"},Yt=function(ue){return ue.tagName==="TEXTAREA"},Er=function(ue){return ue.tagName==="SELECT"},Xr=function(ue){return ue.tagName==="SLOT"},De=function(){function ar(){this.counters={}}return ar.prototype.getCounterValue=function(ue){var Se=this.counters[ue];return Se&&Se.length?Se[Se.length-1]:1},ar.prototype.getCounterValues=function(ue){var Se=this.counters[ue];return Se||[]},ar.prototype.pop=function(ue){var Se=this;ue.forEach(function(Me){return Se.counters[Me].pop()})},ar.prototype.parse=function(ue){var Se=this,Me=ue.counterIncrement,tt=ue.counterReset,Jt=!0;Me!==null&&Me.forEach(function(an){var yn=Se.counters[an.counter];yn&&an.increment!==0&&(Jt=!1,yn.length||yn.push(1),yn[Math.max(0,yn.length-1)]+=an.increment)});var jr=[];return Jt&&tt.forEach(function(an){var yn=Se.counters[an.counter];jr.push(an.counter),yn||(yn=Se.counters[an.counter]=[]),yn.push(an.reset)}),jr},ar}(),ee={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"]},Ae={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"]},Ve={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"]},at={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"]},It=function(ue,Se,Me,tt,Jt,jr){return ue<Se||ue>Me?Wi(ue,Jt,jr.length>0):tt.integers.reduce(function(an,yn,kn){for(;ue>=yn;)ue-=yn,an+=tt.values[kn];return an},"")+jr},Wt=function(ue,Se,Me,tt){var Jt="";do Me||ue--,Jt=tt(ue)+Jt,ue/=Se;while(ue*Se>=Se);return Jt},Pt=function(ue,Se,Me,tt,Jt){var jr=Me-Se+1;return(ue<0?"-":"")+(Wt(Math.abs(ue),jr,tt,function(an){return o(Math.floor(an%jr)+Se)})+Jt)},_r=function(ue,Se,Me){Me===void 0&&(Me=". ");var tt=Se.length;return Wt(Math.abs(ue),tt,!1,function(Jt){return Se[Math.floor(Jt%tt)]})+Me},Zr=1<<0,Tr=1<<1,Ar=1<<2,Hr=1<<3,tn=function(ue,Se,Me,tt,Jt,jr){if(ue<-9999||ue>9999)return Wi(ue,4,Jt.length>0);var an=Math.abs(ue),yn=Jt;if(an===0)return Se[0]+yn;for(var kn=0;an>0&&kn<=4;kn++){var Ui=an%10;Ui===0&&Br(jr,Zr)&&yn!==""?yn=Se[Ui]+yn:Ui>1||Ui===1&&kn===0||Ui===1&&kn===1&&Br(jr,Tr)||Ui===1&&kn===1&&Br(jr,Ar)&&ue>100||Ui===1&&kn>1&&Br(jr,Hr)?yn=Se[Ui]+(kn>0?Me[kn-1]:"")+yn:Ui===1&&kn>0&&(yn=Me[kn-1]+yn),an=Math.floor(an/10)}return(ue<0?tt:"")+yn},_n="\u5341\u767E\u5343\u842C",gi="\u62FE\u4F70\u4EDF\u842C",Li="\u30DE\u30A4\u30CA\u30B9",oa="\uB9C8\uC774\uB108\uC2A4",Wi=function(ue,Se,Me){var tt=Me?". ":"",Jt=Me?"\u3001":"",jr=Me?", ":"",an=Me?" ":"";switch(Se){case 0:return"\u2022"+an;case 1:return"\u25E6"+an;case 2:return"\u25FE"+an;case 5:var yn=Pt(ue,48,57,!0,tt);return yn.length<4?"0"+yn:yn;case 4:return _r(ue,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Jt);case 6:return It(ue,1,3999,ee,3,tt).toLowerCase();case 7:return It(ue,1,3999,ee,3,tt);case 8:return Pt(ue,945,969,!1,tt);case 9:return Pt(ue,97,122,!1,tt);case 10:return Pt(ue,65,90,!1,tt);case 11:return Pt(ue,1632,1641,!0,tt);case 12:case 49:return It(ue,1,9999,Ae,3,tt);case 35:return It(ue,1,9999,Ae,3,tt).toLowerCase();case 13:return Pt(ue,2534,2543,!0,tt);case 14:case 30:return Pt(ue,6112,6121,!0,tt);case 15:return _r(ue,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Jt);case 16:return _r(ue,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Jt);case 17:case 48:return tn(ue,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",_n,"\u8CA0",Jt,Tr|Ar|Hr);case 47:return tn(ue,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",gi,"\u8CA0",Jt,Zr|Tr|Ar|Hr);case 42:return tn(ue,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",_n,"\u8D1F",Jt,Tr|Ar|Hr);case 41:return tn(ue,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",gi,"\u8D1F",Jt,Zr|Tr|Ar|Hr);case 26:return tn(ue,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Li,Jt,0);case 25:return tn(ue,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Li,Jt,Zr|Tr|Ar);case 31:return tn(ue,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",oa,jr,Zr|Tr|Ar);case 33:return tn(ue,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",oa,jr,0);case 32:return tn(ue,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",oa,jr,Zr|Tr|Ar);case 18:return Pt(ue,2406,2415,!0,tt);case 20:return It(ue,1,19999,at,3,tt);case 21:return Pt(ue,2790,2799,!0,tt);case 22:return Pt(ue,2662,2671,!0,tt);case 22:return It(ue,1,10999,Ve,3,tt);case 23:return _r(ue,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return _r(ue,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Pt(ue,3302,3311,!0,tt);case 28:return _r(ue,"\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 29:return _r(ue,"\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 34:return Pt(ue,3792,3801,!0,tt);case 37:return Pt(ue,6160,6169,!0,tt);case 38:return Pt(ue,4160,4169,!0,tt);case 39:return Pt(ue,2918,2927,!0,tt);case 40:return Pt(ue,1776,1785,!0,tt);case 43:return Pt(ue,3046,3055,!0,tt);case 44:return Pt(ue,3174,3183,!0,tt);case 45:return Pt(ue,3664,3673,!0,tt);case 46:return Pt(ue,3872,3881,!0,tt);case 3:default:return Pt(ue,48,57,!0,tt)}},ro="data-html2canvas-ignore",xa=function(){function ar(ue,Se,Me){if(this.context=ue,this.options=Me,this.scrolledElements=[],this.referenceElement=Se,this.counters=new De,this.quoteDepth=0,!Se.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Se.ownerDocument.documentElement)}return ar.prototype.toIFrame=function(ue,Se){var Me=this,tt=po(ue,Se);if(!tt.contentWindow)return Promise.reject("Unable to find iframe window");var Jt=ue.defaultView.pageXOffset,jr=ue.defaultView.pageYOffset,an=tt.contentWindow,yn=an.document,kn=k(tt).then(function(){return v(Me,void 0,void 0,function(){var Ui,Ci;return w(this,function(zi){switch(zi.label){case 0:return this.scrolledElements.forEach(ke),an&&(an.scrollTo(Se.left,Se.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(an.scrollY!==Se.top||an.scrollX!==Se.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(an.scrollX-Se.left,an.scrollY-Se.top,0,0))),Ui=this.options.onclone,Ci=this.clonedReferenceElement,typeof Ci=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:yn.fonts&&yn.fonts.ready?[4,yn.fonts.ready]:[3,2];case 1:zi.sent(),zi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,os(yn)]:[3,4];case 3:zi.sent(),zi.label=4;case 4:return typeof Ui=="function"?[2,Promise.resolve().then(function(){return Ui(yn,Ci)}).then(function(){return tt})]:[2,tt]}})})});return yn.open(),yn.write(re(document.doctype)+"<html></html>"),se(this.referenceElement.ownerDocument,Jt,jr),yn.replaceChild(yn.adoptNode(this.documentElement),yn.documentElement),yn.close(),kn},ar.prototype.createElementClone=function(ue){if(ts(ue,2))debugger;if(lu(ue))return this.createCanvasClone(ue);if(We(ue))return this.createStyleClone(ue);var Se=ue.cloneNode(!1);return mu(Se)&&(mu(ue)&&ue.currentSrc&&ue.currentSrc!==ue.src&&(Se.src=ue.currentSrc,Se.srcset=""),Se.loading==="lazy"&&(Se.loading="eager")),Se},ar.prototype.createStyleClone=function(ue){try{var Se=ue.sheet;if(Se&&Se.cssRules){var Me=[].slice.call(Se.cssRules,0).reduce(function(Jt,jr){return jr&&typeof jr.cssText=="string"?Jt+jr.cssText:Jt},""),tt=ue.cloneNode(!1);return tt.textContent=Me,tt}}catch(Jt){if(this.context.logger.error("Unable to access cssRules property",Jt),Jt.name!=="SecurityError")throw Jt}return ue.cloneNode(!1)},ar.prototype.createCanvasClone=function(ue){var Se;if(this.options.inlineImages&&ue.ownerDocument){var Me=ue.ownerDocument.createElement("img");try{return Me.src=ue.toDataURL(),Me}catch(kn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ue)}}var tt=ue.cloneNode(!1);try{tt.width=ue.width,tt.height=ue.height;var Jt=ue.getContext("2d"),jr=tt.getContext("2d");if(jr)if(!this.options.allowTaint&&Jt)jr.putImageData(Jt.getImageData(0,0,ue.width,ue.height),0,0);else{var an=(Se=ue.getContext("webgl2"))!==null&&Se!==void 0?Se:ue.getContext("webgl");if(an){var yn=an.getContextAttributes();(yn==null?void 0:yn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ue)}jr.drawImage(ue,0,0)}return tt}catch(kn){this.context.logger.info("Unable to clone canvas as it is tainted",ue)}return tt},ar.prototype.cloneNode=function(ue){if(ls(ue))return document.createTextNode(ue.data);if(!ue.ownerDocument)return ue.cloneNode(!1);var Se=ue.ownerDocument.defaultView;if(Se&&Zo(ue)&&(ds(ue)||Cs(ue))){var Me=this.createElementClone(ue);Me.style.transitionProperty="none";var tt=Se.getComputedStyle(ue),Jt=Se.getComputedStyle(ue,":before"),jr=Se.getComputedStyle(ue,":after");this.referenceElement===ue&&ds(Me)&&(this.clonedReferenceElement=Me),ru(Me)&&Bn(Me);for(var an=this.counters.parse(new Mo(this.context,tt)),yn=this.resolvePseudoContent(ue,Me,Jt,Co.BEFORE),kn=ue.firstChild;kn;kn=kn.nextSibling)(!Zo(kn)||!ht(kn)&&!kn.hasAttribute(ro)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(kn)))&&((!this.options.copyStyles||!Zo(kn)||!We(kn))&&Me.appendChild(this.cloneNode(kn)));yn&&Me.insertBefore(yn,Me.firstChild);var Ui=this.resolvePseudoContent(ue,Me,jr,Co.AFTER);return Ui&&Me.appendChild(Ui),this.counters.pop(an),tt&&(this.options.copyStyles||Cs(ue))&&!pe(ue)&&$(tt,Me),(ue.scrollTop!==0||ue.scrollLeft!==0)&&this.scrolledElements.push([Me,ue.scrollLeft,ue.scrollTop]),(Yt(ue)||Er(ue))&&(Yt(Me)||Er(Me))&&(Me.value=ue.value),Me}return ue.cloneNode(!1)},ar.prototype.resolvePseudoContent=function(ue,Se,Me,tt){var Jt=this;if(!Me)return;var jr=Me.content,an=Se.ownerDocument;if(!an||!jr||jr==="none"||jr==="-moz-alt-content"||Me.display==="none")return;this.counters.parse(new Mo(this.context,Me));var yn=new qo(this.context,Me),kn=an.createElement("html2canvaspseudoelement");$(Me,kn),yn.content.forEach(function(Ci){if(Ci.type===0)kn.appendChild(an.createTextNode(Ci.value));else if(Ci.type===22){var zi=an.createElement("img");zi.src=Ci.value,zi.style.opacity="1",kn.appendChild(zi)}else if(Ci.type===18){if(Ci.name==="attr"){var $a=Ci.values.filter(xo);$a.length&&kn.appendChild(an.createTextNode(ue.getAttribute($a[0].value)||""))}else if(Ci.name==="counter"){var qa=Ci.values.filter(Kn),vo=qa[0],ns=qa[1];if(vo&&xo(vo)){var jo=Jt.counters.getCounterValue(vo.value),ko=ns&&xo(ns)?la.parse(Jt.context,ns.value):3;kn.appendChild(an.createTextNode(Wi(jo,ko,!1)))}}else if(Ci.name==="counters"){var xs=Ci.values.filter(Kn),vo=xs[0],Ds=xs[1],ns=xs[2];if(vo&&xo(vo)){var ys=Jt.counters.getCounterValues(vo.value),Ro=ns&&xo(ns)?la.parse(Jt.context,ns.value):3,Hs=Ds&&Ds.type===0?Ds.value:"",zs=ys.map(function(Ru){return Wi(Ru,Ro,!1)}).join(Hs);kn.appendChild(an.createTextNode(zs))}}}else if(Ci.type===20)switch(Ci.value){case"open-quote":kn.appendChild(an.createTextNode(Di(yn.quotes,Jt.quoteDepth++,!0)));break;case"close-quote":kn.appendChild(an.createTextNode(Di(yn.quotes,--Jt.quoteDepth,!1)));break;default:kn.appendChild(an.createTextNode(Ci.value))}}),kn.className=qt+" "+ir;var Ui=tt===Co.BEFORE?" "+qt:" "+ir;return Cs(Se)?Se.className.baseValue+=Ui:Se.className+=Ui,kn},ar.destroy=function(ue){return ue.parentNode?(ue.parentNode.removeChild(ue),!0):!1},ar}(),Co;(function(ar){ar[ar.BEFORE=0]="BEFORE",ar[ar.AFTER=1]="AFTER"})(Co||(Co={}));var po=function(ue,Se){var Me=ue.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=Se.width.toString(),Me.height=Se.height.toString(),Me.scrolling="no",Me.setAttribute(ro,"true"),ue.body.appendChild(Me),Me},Yo=function(ue){return new Promise(function(Se){if(ue.complete){Se();return}if(!ue.src){Se();return}ue.onload=Se,ue.onerror=Se})},os=function(ue){return Promise.all([].slice.call(ue.images,0).map(Yo))},k=function(ue){return new Promise(function(Se,Me){var tt=ue.contentWindow;if(!tt)return Me("No window assigned for iframe");var Jt=tt.document;tt.onload=ue.onload=function(){tt.onload=ue.onload=null;var jr=setInterval(function(){Jt.body.childNodes.length>0&&Jt.readyState==="complete"&&(clearInterval(jr),Se(ue))},50)}})},W=["all","d","content"],$=function(ue,Se){for(var Me=ue.length-1;Me>=0;Me--){var tt=ue.item(Me);W.indexOf(tt)===-1&&Se.style.setProperty(tt,ue.getPropertyValue(tt))}return Se},re=function(ue){var Se="";return ue&&(Se+="<!DOCTYPE ",ue.name&&(Se+=ue.name),ue.internalSubset&&(Se+=ue.internalSubset),ue.publicId&&(Se+='"'+ue.publicId+'"'),ue.systemId&&(Se+='"'+ue.systemId+'"'),Se+=">"),Se},se=function(ue,Se,Me){ue&&ue.defaultView&&(Se!==ue.defaultView.pageXOffset||Me!==ue.defaultView.pageYOffset)&&ue.defaultView.scrollTo(Se,Me)},ke=function(ue){var Se=ue[0],Me=ue[1],tt=ue[2];Se.scrollLeft=Me,Se.scrollTop=tt},ft=":before",Kt=":after",qt="___html2canvas___pseudoelement_before",ir="___html2canvas___pseudoelement_after",bn=`{
content: "" !important;
display: none !important;
}`,Bn=function(ue){ci(ue,"."+qt+ft+bn+`
.`+ir+Kt+bn)},ci=function(ue,Se){var Me=ue.ownerDocument;if(Me){var tt=Me.createElement("style");tt.textContent=Se,ue.appendChild(tt)}},fi=function(){function ar(){}return ar.getOrigin=function(ue){var Se=ar._link;return Se?(Se.href=ue,Se.href=Se.href,Se.protocol+Se.hostname+Se.port):"about:blank"},ar.isSameOrigin=function(ue){return ar.getOrigin(ue)===ar._origin},ar.setContext=function(ue){ar._link=ue.document.createElement("a"),ar._origin=ar.getOrigin(ue.location.href)},ar._origin="about:blank",ar}(),Ji=function(){function ar(ue,Se){this.context=ue,this._options=Se,this._cache={}}return ar.prototype.addImage=function(ue){var Se=Promise.resolve();return this.has(ue)||(Vo(ue)||Ia(ue))&&(this._cache[ue]=this.loadImage(ue)).catch(function(){}),Se},ar.prototype.match=function(ue){return this._cache[ue]},ar.prototype.loadImage=function(ue){return v(this,void 0,void 0,function(){var Se,Me,tt,Jt,jr=this;return w(this,function(an){switch(an.label){case 0:return Se=fi.isSameOrigin(ue),Me=!Za(ue)&&this._options.useCORS===!0&&rl.SUPPORT_CORS_IMAGES&&!Se,tt=!Za(ue)&&!Se&&!Vo(ue)&&typeof this._options.proxy=="string"&&rl.SUPPORT_CORS_XHR&&!Me,!Se&&this._options.allowTaint===!1&&!Za(ue)&&!Vo(ue)&&!tt&&!Me?[2]:(Jt=ue,tt?[4,this.proxy(Jt)]:[3,2]);case 1:Jt=an.sent(),an.label=2;case 2:return this.context.logger.debug("Added image "+ue.substring(0,256)),[4,new Promise(function(yn,kn){var Ui=new Image;Ui.onload=function(){return yn(Ui)},Ui.onerror=kn,(mo(Jt)||Me)&&(Ui.crossOrigin="anonymous"),Ui.src=Jt,Ui.complete===!0&&setTimeout(function(){return yn(Ui)},500),jr._options.imageTimeout>0&&setTimeout(function(){return kn("Timed out ("+jr._options.imageTimeout+"ms) loading image")},jr._options.imageTimeout)})];case 3:return[2,an.sent()]}})})},ar.prototype.has=function(ue){return typeof this._cache[ue]!="undefined"},ar.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},ar.prototype.proxy=function(ue){var Se=this,Me=this._options.proxy;if(!Me)throw new Error("No proxy defined");var tt=ue.substring(0,256);return new Promise(function(Jt,jr){var an=rl.SUPPORT_RESPONSE_TYPE?"blob":"text",yn=new XMLHttpRequest;yn.onload=function(){if(yn.status===200)if(an==="text")Jt(yn.response);else{var Ci=new FileReader;Ci.addEventListener("load",function(){return Jt(Ci.result)},!1),Ci.addEventListener("error",function(zi){return jr(zi)},!1),Ci.readAsDataURL(yn.response)}else jr("Failed to proxy resource "+tt+" with status code "+yn.status)},yn.onerror=jr;var kn=Me.indexOf("?")>-1?"&":"?";if(yn.open("GET",""+Me+kn+"url="+encodeURIComponent(ue)+"&responseType="+an),an!=="text"&&yn instanceof XMLHttpRequest&&(yn.responseType=an),Se._options.imageTimeout){var Ui=Se._options.imageTimeout;yn.timeout=Ui,yn.ontimeout=function(){return jr("Timed out ("+Ui+"ms) proxying "+tt)}}yn.send()})},ar}(),ba=/^data:image\/svg\+xml/i,Fa=/^data:image\/.*;base64,/i,Da=/^data:image\/.*/i,Ia=function(ue){return rl.SUPPORT_SVG_DRAWING||!Fo(ue)},Za=function(ue){return Da.test(ue)},mo=function(ue){return Fa.test(ue)},Vo=function(ue){return ue.substr(0,4)==="blob"},Fo=function(ue){return ue.substr(-3).toLowerCase()==="svg"||ba.test(ue)},Ta=function(){function ar(ue,Se){this.type=0,this.x=ue,this.y=Se}return ar.prototype.add=function(ue,Se){return new ar(this.x+ue,this.y+Se)},ar}(),fs=function(ue,Se,Me){return new Ta(ue.x+(Se.x-ue.x)*Me,ue.y+(Se.y-ue.y)*Me)},ks=function(){function ar(ue,Se,Me,tt){this.type=1,this.start=ue,this.startControl=Se,this.endControl=Me,this.end=tt}return ar.prototype.subdivide=function(ue,Se){var Me=fs(this.start,this.startControl,ue),tt=fs(this.startControl,this.endControl,ue),Jt=fs(this.endControl,this.end,ue),jr=fs(Me,tt,ue),an=fs(tt,Jt,ue),yn=fs(jr,an,ue);return Se?new ar(this.start,Me,jr,yn):new ar(yn,an,Jt,this.end)},ar.prototype.add=function(ue,Se){return new ar(this.start.add(ue,Se),this.startControl.add(ue,Se),this.endControl.add(ue,Se),this.end.add(ue,Se))},ar.prototype.reverse=function(){return new ar(this.end,this.endControl,this.startControl,this.start)},ar}(),hs=function(ue){return ue.type===1},cl=function(){function ar(ue){var Se=ue.styles,Me=ue.bounds,tt=da(Se.borderTopLeftRadius,Me.width,Me.height),Jt=tt[0],jr=tt[1],an=da(Se.borderTopRightRadius,Me.width,Me.height),yn=an[0],kn=an[1],Ui=da(Se.borderBottomRightRadius,Me.width,Me.height),Ci=Ui[0],zi=Ui[1],$a=da(Se.borderBottomLeftRadius,Me.width,Me.height),qa=$a[0],vo=$a[1],ns=[];ns.push((Jt+yn)/Me.width),ns.push((qa+Ci)/Me.width),ns.push((jr+vo)/Me.height),ns.push((kn+zi)/Me.height);var jo=Math.max.apply(Math,ns);jo>1&&(Jt/=jo,jr/=jo,yn/=jo,kn/=jo,Ci/=jo,zi/=jo,qa/=jo,vo/=jo);var ko=Me.width-yn,xs=Me.height-zi,Ds=Me.width-Ci,ys=Me.height-vo,Ro=Se.borderTopWidth,Hs=Se.borderRightWidth,zs=Se.borderBottomWidth,bs=Se.borderLeftWidth,Tu=na(Se.paddingTop,ue.bounds.width),Ru=na(Se.paddingRight,ue.bounds.width),Cu=na(Se.paddingBottom,ue.bounds.width),Gl=na(Se.paddingLeft,ue.bounds.width);this.topLeftBorderDoubleOuterBox=Jt>0||jr>0?us(Me.left+bs/3,Me.top+Ro/3,Jt-bs/3,jr-Ro/3,cs.TOP_LEFT):new Ta(Me.left+bs/3,Me.top+Ro/3),this.topRightBorderDoubleOuterBox=Jt>0||jr>0?us(Me.left+ko,Me.top+Ro/3,yn-Hs/3,kn-Ro/3,cs.TOP_RIGHT):new Ta(Me.left+Me.width-Hs/3,Me.top+Ro/3),this.bottomRightBorderDoubleOuterBox=Ci>0||zi>0?us(Me.left+Ds,Me.top+xs,Ci-Hs/3,zi-zs/3,cs.BOTTOM_RIGHT):new Ta(Me.left+Me.width-Hs/3,Me.top+Me.height-zs/3),this.bottomLeftBorderDoubleOuterBox=qa>0||vo>0?us(Me.left+bs/3,Me.top+ys,qa-bs/3,vo-zs/3,cs.BOTTOM_LEFT):new Ta(Me.left+bs/3,Me.top+Me.height-zs/3),this.topLeftBorderDoubleInnerBox=Jt>0||jr>0?us(Me.left+bs*2/3,Me.top+Ro*2/3,Jt-bs*2/3,jr-Ro*2/3,cs.TOP_LEFT):new Ta(Me.left+bs*2/3,Me.top+Ro*2/3),this.topRightBorderDoubleInnerBox=Jt>0||jr>0?us(Me.left+ko,Me.top+Ro*2/3,yn-Hs*2/3,kn-Ro*2/3,cs.TOP_RIGHT):new Ta(Me.left+Me.width-Hs*2/3,Me.top+Ro*2/3),this.bottomRightBorderDoubleInnerBox=Ci>0||zi>0?us(Me.left+Ds,Me.top+xs,Ci-Hs*2/3,zi-zs*2/3,cs.BOTTOM_RIGHT):new Ta(Me.left+Me.width-Hs*2/3,Me.top+Me.height-zs*2/3),this.bottomLeftBorderDoubleInnerBox=qa>0||vo>0?us(Me.left+bs*2/3,Me.top+ys,qa-bs*2/3,vo-zs*2/3,cs.BOTTOM_LEFT):new Ta(Me.left+bs*2/3,Me.top+Me.height-zs*2/3),this.topLeftBorderStroke=Jt>0||jr>0?us(Me.left+bs/2,Me.top+Ro/2,Jt-bs/2,jr-Ro/2,cs.TOP_LEFT):new Ta(Me.left+bs/2,Me.top+Ro/2),this.topRightBorderStroke=Jt>0||jr>0?us(Me.left+ko,Me.top+Ro/2,yn-Hs/2,kn-Ro/2,cs.TOP_RIGHT):new Ta(Me.left+Me.width-Hs/2,Me.top+Ro/2),this.bottomRightBorderStroke=Ci>0||zi>0?us(Me.left+Ds,Me.top+xs,Ci-Hs/2,zi-zs/2,cs.BOTTOM_RIGHT):new Ta(Me.left+Me.width-Hs/2,Me.top+Me.height-zs/2),this.bottomLeftBorderStroke=qa>0||vo>0?us(Me.left+bs/2,Me.top+ys,qa-bs/2,vo-zs/2,cs.BOTTOM_LEFT):new Ta(Me.left+bs/2,Me.top+Me.height-zs/2),this.topLeftBorderBox=Jt>0||jr>0?us(Me.left,Me.top,Jt,jr,cs.TOP_LEFT):new Ta(Me.left,Me.top),this.topRightBorderBox=yn>0||kn>0?us(Me.left+ko,Me.top,yn,kn,cs.TOP_RIGHT):new Ta(Me.left+Me.width,Me.top),this.bottomRightBorderBox=Ci>0||zi>0?us(Me.left+Ds,Me.top+xs,Ci,zi,cs.BOTTOM_RIGHT):new Ta(Me.left+Me.width,Me.top+Me.height),this.bottomLeftBorderBox=qa>0||vo>0?us(Me.left,Me.top+ys,qa,vo,cs.BOTTOM_LEFT):new Ta(Me.left,Me.top+Me.height),this.topLeftPaddingBox=Jt>0||jr>0?us(Me.left+bs,Me.top+Ro,Math.max(0,Jt-bs),Math.max(0,jr-Ro),cs.TOP_LEFT):new Ta(Me.left+bs,Me.top+Ro),this.topRightPaddingBox=yn>0||kn>0?us(Me.left+Math.min(ko,Me.width-Hs),Me.top+Ro,ko>Me.width+Hs?0:Math.max(0,yn-Hs),Math.max(0,kn-Ro),cs.TOP_RIGHT):new Ta(Me.left+Me.width-Hs,Me.top+Ro),this.bottomRightPaddingBox=Ci>0||zi>0?us(Me.left+Math.min(Ds,Me.width-bs),Me.top+Math.min(xs,Me.height-zs),Math.max(0,Ci-Hs),Math.max(0,zi-zs),cs.BOTTOM_RIGHT):new Ta(Me.left+Me.width-Hs,Me.top+Me.height-zs),this.bottomLeftPaddingBox=qa>0||vo>0?us(Me.left+bs,Me.top+Math.min(ys,Me.height-zs),Math.max(0,qa-bs),Math.max(0,vo-zs),cs.BOTTOM_LEFT):new Ta(Me.left+bs,Me.top+Me.height-zs),this.topLeftContentBox=Jt>0||jr>0?us(Me.left+bs+Gl,Me.top+Ro+Tu,Math.max(0,Jt-(bs+Gl)),Math.max(0,jr-(Ro+Tu)),cs.TOP_LEFT):new Ta(Me.left+bs+Gl,Me.top+Ro+Tu),this.topRightContentBox=yn>0||kn>0?us(Me.left+Math.min(ko,Me.width+bs+Gl),Me.top+Ro+Tu,ko>Me.width+bs+Gl?0:yn-bs+Gl,kn-(Ro+Tu),cs.TOP_RIGHT):new Ta(Me.left+Me.width-(Hs+Ru),Me.top+Ro+Tu),this.bottomRightContentBox=Ci>0||zi>0?us(Me.left+Math.min(Ds,Me.width-(bs+Gl)),Me.top+Math.min(xs,Me.height+Ro+Tu),Math.max(0,Ci-(Hs+Ru)),zi-(zs+Cu),cs.BOTTOM_RIGHT):new Ta(Me.left+Me.width-(Hs+Ru),Me.top+Me.height-(zs+Cu)),this.bottomLeftContentBox=qa>0||vo>0?us(Me.left+bs+Gl,Me.top+ys,Math.max(0,qa-(bs+Gl)),vo-(zs+Cu),cs.BOTTOM_LEFT):new Ta(Me.left+bs+Gl,Me.top+Me.height-(zs+Cu))}return ar}(),cs;(function(ar){ar[ar.TOP_LEFT=0]="TOP_LEFT",ar[ar.TOP_RIGHT=1]="TOP_RIGHT",ar[ar.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",ar[ar.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(cs||(cs={}));var us=function(ue,Se,Me,tt,Jt){var jr=4*((Math.sqrt(2)-1)/3),an=Me*jr,yn=tt*jr,kn=ue+Me,Ui=Se+tt;switch(Jt){case cs.TOP_LEFT:return new ks(new Ta(ue,Ui),new Ta(ue,Ui-yn),new Ta(kn-an,Se),new Ta(kn,Se));case cs.TOP_RIGHT:return new ks(new Ta(ue,Se),new Ta(ue+an,Se),new Ta(kn,Ui-yn),new Ta(kn,Ui));case cs.BOTTOM_RIGHT:return new ks(new Ta(kn,Se),new Ta(kn,Se+yn),new Ta(ue+an,Ui),new Ta(ue,Ui));case cs.BOTTOM_LEFT:default:return new ks(new Ta(kn,Ui),new Ta(kn-an,Ui),new Ta(ue,Se+yn),new Ta(ue,Se))}},Cl=function(ue){return[ue.topLeftBorderBox,ue.topRightBorderBox,ue.bottomRightBorderBox,ue.bottomLeftBorderBox]},dl=function(ue){return[ue.topLeftContentBox,ue.topRightContentBox,ue.bottomRightContentBox,ue.bottomLeftContentBox]},Qs=function(ue){return[ue.topLeftPaddingBox,ue.topRightPaddingBox,ue.bottomRightPaddingBox,ue.bottomLeftPaddingBox]},Js=function(){function ar(ue,Se,Me){this.offsetX=ue,this.offsetY=Se,this.matrix=Me,this.type=0,this.target=2|4}return ar}(),Bs=function(){function ar(ue,Se){this.path=ue,this.target=Se,this.type=1}return ar}(),Vl=function(){function ar(ue){this.opacity=ue,this.type=2,this.target=2|4}return ar}(),ku=function(ue){return ue.type===0},gu=function(ue){return ue.type===1},Zs=function(ue){return ue.type===2},vu=function(ue,Se){return ue.length===Se.length?ue.some(function(Me,tt){return Me===Se[tt]}):!1},Ol=function(ue,Se,Me,tt,Jt){return ue.map(function(jr,an){switch(an){case 0:return jr.add(Se,Me);case 1:return jr.add(Se+tt,Me);case 2:return jr.add(Se+tt,Me+Jt);case 3:return jr.add(Se,Me+Jt)}return jr})},Vu=function(){function ar(ue){this.element=ue,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return ar}(),Au=function(){function ar(ue,Se){if(this.container=ue,this.parent=Se,this.effects=[],this.curves=new cl(this.container),this.container.styles.opacity<1&&this.effects.push(new Vl(this.container.styles.opacity)),this.container.styles.transform!==null){var Me=this.container.bounds.left+this.container.styles.transformOrigin[0].number,tt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Jt=this.container.styles.transform;this.effects.push(new Js(Me,tt,Jt))}if(this.container.styles.overflowX!==0){var jr=Cl(this.curves),an=Qs(this.curves);vu(jr,an)?this.effects.push(new Bs(jr,2|4)):(this.effects.push(new Bs(jr,2)),this.effects.push(new Bs(an,4)))}}return ar.prototype.getEffects=function(ue){for(var Se=[2,3].indexOf(this.container.styles.position)===-1,Me=this.parent,tt=this.effects.slice(0);Me;){var Jt=Me.effects.filter(function(yn){return!gu(yn)});if(Se||Me.container.styles.position!==0||!Me.parent){if(tt.unshift.apply(tt,Jt),Se=[2,3].indexOf(Me.container.styles.position)===-1,Me.container.styles.overflowX!==0){var jr=Cl(Me.curves),an=Qs(Me.curves);vu(jr,an)||tt.unshift(new Bs(an,2|4))}}else tt.unshift.apply(tt,Jt);Me=Me.parent}return tt.filter(function(yn){return Br(yn.target,ue)})},ar}(),xu=function ar(ue,Se,Me,tt){ue.container.elements.forEach(function(Jt){var jr=Br(Jt.flags,4),an=Br(Jt.flags,2),yn=new Au(Jt,ue);Br(Jt.styles.display,2048)&&tt.push(yn);var kn=Br(Jt.flags,8)?[]:tt;if(jr||an){var Ui=jr||Jt.styles.isPositioned()?Me:Se,Ci=new Vu(yn);if(Jt.styles.isPositioned()||Jt.styles.opacity<1||Jt.styles.isTransformed()){var zi=Jt.styles.zIndex.order;if(zi<0){var $a=0;Ui.negativeZIndex.some(function(vo,ns){return zi>vo.element.container.styles.zIndex.order?($a=ns,!1):$a>0}),Ui.negativeZIndex.splice($a,0,Ci)}else if(zi>0){var qa=0;Ui.positiveZIndex.some(function(vo,ns){return zi>=vo.element.container.styles.zIndex.order?(qa=ns+1,!1):qa>0}),Ui.positiveZIndex.splice(qa,0,Ci)}else Ui.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ci)}else Jt.styles.isFloating()?Ui.nonPositionedFloats.push(Ci):Ui.nonPositionedInlineLevel.push(Ci);ar(yn,Ci,jr?Ci:Me,kn)}else Jt.styles.isInlineLevel()?Se.inlineLevel.push(yn):Se.nonInlineLevel.push(yn),ar(yn,Se,Me,kn);Br(Jt.flags,8)&&Nu(Jt,kn)})},Nu=function(ue,Se){for(var Me=ue instanceof ml?ue.start:1,tt=ue instanceof ml?ue.reversed:!1,Jt=0;Jt<Se.length;Jt++){var jr=Se[Jt];jr.container instanceof pl&&typeof jr.container.value=="number"&&jr.container.value!==0&&(Me=jr.container.value),jr.listValue=Wi(Me,jr.container.styles.listStyleType,!0),Me+=tt?-1:1}},kl=function(ue){var Se=new Au(ue,null),Me=new Vu(Se),tt=[];return xu(Se,Me,Me,tt),Nu(Se.container,tt),Me},Eu=function(ue,Se){switch(Se){case 0:return nu(ue.topLeftBorderBox,ue.topLeftPaddingBox,ue.topRightBorderBox,ue.topRightPaddingBox);case 1:return nu(ue.topRightBorderBox,ue.topRightPaddingBox,ue.bottomRightBorderBox,ue.bottomRightPaddingBox);case 2:return nu(ue.bottomRightBorderBox,ue.bottomRightPaddingBox,ue.bottomLeftBorderBox,ue.bottomLeftPaddingBox);case 3:default:return nu(ue.bottomLeftBorderBox,ue.bottomLeftPaddingBox,ue.topLeftBorderBox,ue.topLeftPaddingBox)}},Ku=function(ue,Se){switch(Se){case 0:return nu(ue.topLeftBorderBox,ue.topLeftBorderDoubleOuterBox,ue.topRightBorderBox,ue.topRightBorderDoubleOuterBox);case 1:return nu(ue.topRightBorderBox,ue.topRightBorderDoubleOuterBox,ue.bottomRightBorderBox,ue.bottomRightBorderDoubleOuterBox);case 2:return nu(ue.bottomRightBorderBox,ue.bottomRightBorderDoubleOuterBox,ue.bottomLeftBorderBox,ue.bottomLeftBorderDoubleOuterBox);case 3:default:return nu(ue.bottomLeftBorderBox,ue.bottomLeftBorderDoubleOuterBox,ue.topLeftBorderBox,ue.topLeftBorderDoubleOuterBox)}},tc=function(ue,Se){switch(Se){case 0:return nu(ue.topLeftBorderDoubleInnerBox,ue.topLeftPaddingBox,ue.topRightBorderDoubleInnerBox,ue.topRightPaddingBox);case 1:return nu(ue.topRightBorderDoubleInnerBox,ue.topRightPaddingBox,ue.bottomRightBorderDoubleInnerBox,ue.bottomRightPaddingBox);case 2:return nu(ue.bottomRightBorderDoubleInnerBox,ue.bottomRightPaddingBox,ue.bottomLeftBorderDoubleInnerBox,ue.bottomLeftPaddingBox);case 3:default:return nu(ue.bottomLeftBorderDoubleInnerBox,ue.bottomLeftPaddingBox,ue.topLeftBorderDoubleInnerBox,ue.topLeftPaddingBox)}},bc=function(ue,Se){switch(Se){case 0:return lc(ue.topLeftBorderStroke,ue.topRightBorderStroke);case 1:return lc(ue.topRightBorderStroke,ue.bottomRightBorderStroke);case 2:return lc(ue.bottomRightBorderStroke,ue.bottomLeftBorderStroke);case 3:default:return lc(ue.bottomLeftBorderStroke,ue.topLeftBorderStroke)}},lc=function(ue,Se){var Me=[];return hs(ue)?Me.push(ue.subdivide(.5,!1)):Me.push(ue),hs(Se)?Me.push(Se.subdivide(.5,!0)):Me.push(Se),Me},nu=function(ue,Se,Me,tt){var Jt=[];return hs(ue)?Jt.push(ue.subdivide(.5,!1)):Jt.push(ue),hs(Me)?Jt.push(Me.subdivide(.5,!0)):Jt.push(Me),hs(tt)?Jt.push(tt.subdivide(.5,!0).reverse()):Jt.push(tt),hs(Se)?Jt.push(Se.subdivide(.5,!1).reverse()):Jt.push(Se),Jt},fc=function(ue){var Se=ue.bounds,Me=ue.styles;return Se.add(Me.borderLeftWidth,Me.borderTopWidth,-(Me.borderRightWidth+Me.borderLeftWidth),-(Me.borderTopWidth+Me.borderBottomWidth))},Gu=function(ue){var Se=ue.styles,Me=ue.bounds,tt=na(Se.paddingLeft,Me.width),Jt=na(Se.paddingRight,Me.width),jr=na(Se.paddingTop,Me.width),an=na(Se.paddingBottom,Me.width);return Me.add(tt+Se.borderLeftWidth,jr+Se.borderTopWidth,-(Se.borderRightWidth+Se.borderLeftWidth+tt+Jt),-(Se.borderTopWidth+Se.borderBottomWidth+jr+an))},Pu=function(ue,Se){return ue===0?Se.bounds:ue===2?Gu(Se):fc(Se)},wc=function(ue,Se){return ue===0?Se.bounds:ue===2?Gu(Se):fc(Se)},uc=function(ue,Se,Me){var tt=Pu(Qu(ue.styles.backgroundOrigin,Se),ue),Jt=wc(Qu(ue.styles.backgroundClip,Se),ue),jr=Yu(Qu(ue.styles.backgroundSize,Se),Me,tt),an=jr[0],yn=jr[1],kn=da(Qu(ue.styles.backgroundPosition,Se),tt.width-an,tt.height-yn),Ui=Sc(Qu(ue.styles.backgroundRepeat,Se),kn,jr,tt,Jt),Ci=Math.round(tt.left+kn[0]),zi=Math.round(tt.top+kn[1]);return[Ui,Ci,zi,an,yn]},Xu=function(ue){return xo(ue)&&ue.value===$n.AUTO},rc=function(ue){return typeof ue=="number"},Yu=function(ue,Se,Me){var tt=Se[0],Jt=Se[1],jr=Se[2],an=ue[0],yn=ue[1];if(!an)return[0,0];if(di(an)&&yn&&di(yn))return[na(an,Me.width),na(yn,Me.height)];var kn=rc(jr);if(xo(an)&&(an.value===$n.CONTAIN||an.value===$n.COVER)){if(rc(jr)){var Ui=Me.width/Me.height;return Ui<jr!==(an.value===$n.COVER)?[Me.width,Me.width/jr]:[Me.height*jr,Me.height]}return[Me.width,Me.height]}var Ci=rc(tt),zi=rc(Jt),$a=Ci||zi;if(Xu(an)&&(!yn||Xu(yn))){if(Ci&&zi)return[tt,Jt];if(!kn&&!$a)return[Me.width,Me.height];if($a&&kn){var qa=Ci?tt:Jt*jr,vo=zi?Jt:tt/jr;return[qa,vo]}var ns=Ci?tt:Me.width,jo=zi?Jt:Me.height;return[ns,jo]}if(kn){var ko=0,xs=0;return di(an)?ko=na(an,Me.width):di(yn)&&(xs=na(yn,Me.height)),Xu(an)?ko=xs*jr:(!yn||Xu(yn))&&(xs=ko/jr),[ko,xs]}var Ds=null,ys=null;if(di(an)?Ds=na(an,Me.width):yn&&di(yn)&&(ys=na(yn,Me.height)),Ds!==null&&(!yn||Xu(yn))&&(ys=Ci&&zi?Ds/tt*Jt:Me.height),ys!==null&&Xu(an)&&(Ds=Ci&&zi?ys/Jt*tt:Me.width),Ds!==null&&ys!==null)return[Ds,ys];throw new Error("Unable to calculate background-size for element")},Qu=function(ue,Se){var Me=ue[Se];return typeof Me=="undefined"?ue[0]:Me},Sc=function(ue,Se,Me,tt,Jt){var jr=Se[0],an=Se[1],yn=Me[0],kn=Me[1];switch(ue){case 2:return[new Ta(Math.round(tt.left),Math.round(tt.top+an)),new Ta(Math.round(tt.left+tt.width),Math.round(tt.top+an)),new Ta(Math.round(tt.left+tt.width),Math.round(kn+tt.top+an)),new Ta(Math.round(tt.left),Math.round(kn+tt.top+an))];case 3:return[new Ta(Math.round(tt.left+jr),Math.round(tt.top)),new Ta(Math.round(tt.left+jr+yn),Math.round(tt.top)),new Ta(Math.round(tt.left+jr+yn),Math.round(tt.height+tt.top)),new Ta(Math.round(tt.left+jr),Math.round(tt.height+tt.top))];case 1:return[new Ta(Math.round(tt.left+jr),Math.round(tt.top+an)),new Ta(Math.round(tt.left+jr+yn),Math.round(tt.top+an)),new Ta(Math.round(tt.left+jr+yn),Math.round(tt.top+an+kn)),new Ta(Math.round(tt.left+jr),Math.round(tt.top+an+kn))];default:return[new Ta(Math.round(Jt.left),Math.round(Jt.top)),new Ta(Math.round(Jt.left+Jt.width),Math.round(Jt.top)),new Ta(Math.round(Jt.left+Jt.width),Math.round(Jt.height+Jt.top)),new Ta(Math.round(Jt.left),Math.round(Jt.height+Jt.top))]}},Ec="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",pc="Hidden Text",Tc=function(){function ar(ue){this._data={},this._document=ue}return ar.prototype.parseMetrics=function(ue,Se){var Me=this._document.createElement("div"),tt=this._document.createElement("img"),Jt=this._document.createElement("span"),jr=this._document.body;Me.style.visibility="hidden",Me.style.fontFamily=ue,Me.style.fontSize=Se,Me.style.margin="0",Me.style.padding="0",Me.style.whiteSpace="nowrap",jr.appendChild(Me),tt.src=Ec,tt.width=1,tt.height=1,tt.style.margin="0",tt.style.padding="0",tt.style.verticalAlign="baseline",Jt.style.fontFamily=ue,Jt.style.fontSize=Se,Jt.style.margin="0",Jt.style.padding="0",Jt.appendChild(this._document.createTextNode(pc)),Me.appendChild(Jt),Me.appendChild(tt);var an=tt.offsetTop-Jt.offsetTop+2;Me.removeChild(Jt),Me.appendChild(this._document.createTextNode(pc)),Me.style.lineHeight="normal",tt.style.verticalAlign="super";var yn=tt.offsetTop-Me.offsetTop+2;return jr.removeChild(Me),{baseline:an,middle:yn}},ar.prototype.getMetrics=function(ue,Se){var Me=ue+" "+Se;return typeof this._data[Me]=="undefined"&&(this._data[Me]=this.parseMetrics(ue,Se)),this._data[Me]},ar}(),Ju=function(){function ar(ue,Se){this.context=ue,this.options=Se}return ar}(),mc=1e4,cc=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;return tt._activeEffects=[],tt.canvas=Me.canvas?Me.canvas:document.createElement("canvas"),tt.ctx=tt.canvas.getContext("2d"),Me.canvas||(tt.canvas.width=Math.floor(Me.width*Me.scale),tt.canvas.height=Math.floor(Me.height*Me.scale),tt.canvas.style.width=Me.width+"px",tt.canvas.style.height=Me.height+"px"),tt.fontMetrics=new Tc(document),tt.ctx.scale(tt.options.scale,tt.options.scale),tt.ctx.translate(-Me.x,-Me.y),tt.ctx.textBaseline="bottom",tt._activeEffects=[],tt.context.logger.debug("Canvas renderer initialized ("+Me.width+"x"+Me.height+") with scale "+Me.scale),tt}return ue.prototype.applyEffects=function(Se){for(var Me=this;this._activeEffects.length;)this.popEffect();Se.forEach(function(tt){return Me.applyEffect(tt)})},ue.prototype.applyEffect=function(Se){this.ctx.save(),Zs(Se)&&(this.ctx.globalAlpha=Se.opacity),ku(Se)&&(this.ctx.translate(Se.offsetX,Se.offsetY),this.ctx.transform(Se.matrix[0],Se.matrix[1],Se.matrix[2],Se.matrix[3],Se.matrix[4],Se.matrix[5]),this.ctx.translate(-Se.offsetX,-Se.offsetY)),gu(Se)&&(this.path(Se.path),this.ctx.clip()),this._activeEffects.push(Se)},ue.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ue.prototype.renderStack=function(Se){return v(this,void 0,void 0,function(){var Me;return w(this,function(tt){switch(tt.label){case 0:return Me=Se.element.container.styles,Me.isVisible()?[4,this.renderStackContent(Se)]:[3,2];case 1:tt.sent(),tt.label=2;case 2:return[2]}})})},ue.prototype.renderNode=function(Se){return v(this,void 0,void 0,function(){return w(this,function(Me){switch(Me.label){case 0:if(Br(Se.container.flags,16))debugger;return Se.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Se)]:[3,3];case 1:return Me.sent(),[4,this.renderNodeContent(Se)];case 2:Me.sent(),Me.label=3;case 3:return[2]}})})},ue.prototype.renderTextWithLetterSpacing=function(Se,Me,tt){var Jt=this;if(Me===0)this.ctx.fillText(Se.text,Se.bounds.left,Se.bounds.top+tt);else{var jr=Ll(Se.text);jr.reduce(function(an,yn){return Jt.ctx.fillText(yn,an,Se.bounds.top+tt),an+Jt.ctx.measureText(yn).width},Se.bounds.left)}},ue.prototype.createFontStyle=function(Se){var Me=Se.fontVariant.filter(function(jr){return jr==="normal"||jr==="small-caps"}).join(""),tt=Se.fontFamily.join(", "),Jt=so(Se.fontSize)?""+Se.fontSize.number+Se.fontSize.unit:Se.fontSize.number+"px";return[[Se.fontStyle,Me,Se.fontWeight,Jt,tt].join(" "),tt,Jt]},ue.prototype.renderTextNode=function(Se,Me){return v(this,void 0,void 0,function(){var tt,Jt,jr,an,yn,kn,Ui,Ci,zi=this;return w(this,function($a){return tt=this.createFontStyle(Me),Jt=tt[0],jr=tt[1],an=tt[2],this.ctx.font=Jt,this.ctx.direction=Me.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",yn=this.fontMetrics.getMetrics(jr,an),kn=yn.baseline,Ui=yn.middle,Ci=Me.paintOrder,Se.textBounds.forEach(function(qa){Ci.forEach(function(vo){switch(vo){case 0:zi.ctx.fillStyle=Na(Me.color),zi.renderTextWithLetterSpacing(qa,Me.letterSpacing,kn);var ns=Me.textShadow;ns.length&&qa.text.trim().length&&(ns.slice(0).reverse().forEach(function(jo){zi.ctx.shadowColor=Na(jo.color),zi.ctx.shadowOffsetX=jo.offsetX.number*zi.options.scale,zi.ctx.shadowOffsetY=jo.offsetY.number*zi.options.scale,zi.ctx.shadowBlur=jo.blur.number,zi.renderTextWithLetterSpacing(qa,Me.letterSpacing,kn)}),zi.ctx.shadowColor="",zi.ctx.shadowOffsetX=0,zi.ctx.shadowOffsetY=0,zi.ctx.shadowBlur=0),Me.textDecorationLine.length&&(zi.ctx.fillStyle=Na(Me.textDecorationColor||Me.color),Me.textDecorationLine.forEach(function(jo){switch(jo){case 1:zi.ctx.fillRect(qa.bounds.left,Math.round(qa.bounds.top+kn),qa.bounds.width,1);break;case 2:zi.ctx.fillRect(qa.bounds.left,Math.round(qa.bounds.top),qa.bounds.width,1);break;case 3:zi.ctx.fillRect(qa.bounds.left,Math.ceil(qa.bounds.top+Ui),qa.bounds.width,1);break}}));break;case 1:Me.webkitTextStrokeWidth&&qa.text.trim().length&&(zi.ctx.strokeStyle=Na(Me.webkitTextStrokeColor),zi.ctx.lineWidth=Me.webkitTextStrokeWidth,zi.ctx.lineJoin=window.chrome?"miter":"round",zi.ctx.strokeText(qa.text,qa.bounds.left,qa.bounds.top+kn)),zi.ctx.strokeStyle="",zi.ctx.lineWidth=0,zi.ctx.lineJoin="miter";break}})}),[2]})})},ue.prototype.renderReplacedElement=function(Se,Me,tt){if(tt&&Se.intrinsicWidth>0&&Se.intrinsicHeight>0){var Jt=Gu(Se),jr=Qs(Me);this.path(jr),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(tt,0,0,Se.intrinsicWidth,Se.intrinsicHeight,Jt.left,Jt.top,Jt.width,Jt.height),this.ctx.restore()}},ue.prototype.renderNodeContent=function(Se){return v(this,void 0,void 0,function(){var Me,tt,Jt,jr,an,yn,kn,kn,Ui,Ci,zi,$a,qa,vo,ns,jo,ko,xs,Ds,kn,ys,qa,jo;return w(this,function(Ro){switch(Ro.label){case 0:this.applyEffects(Se.getEffects(4)),Me=Se.container,tt=Se.curves,Jt=Me.styles,jr=0,an=Me.textNodes,Ro.label=1;case 1:return jr<an.length?(yn=an[jr],[4,this.renderTextNode(yn,Jt)]):[3,4];case 2:Ro.sent(),Ro.label=3;case 3:return jr++,[3,1];case 4:if(!(Me instanceof su))return[3,8];Ro.label=5;case 5:return Ro.trys.push([5,7,,8]),[4,this.context.cache.match(Me.src)];case 6:return kn=Ro.sent(),this.renderReplacedElement(Me,tt,kn),[3,8];case 7:return Ro.sent(),this.context.logger.error("Error loading image "+Me.src),[3,8];case 8:if(Me instanceof Ul&&this.renderReplacedElement(Me,tt,Me.canvas),!(Me instanceof fu))return[3,12];Ro.label=9;case 9:return Ro.trys.push([9,11,,12]),[4,this.context.cache.match(Me.svg)];case 10:return kn=Ro.sent(),this.renderReplacedElement(Me,tt,kn),[3,12];case 11:return Ro.sent(),this.context.logger.error("Error loading svg "+Me.svg.substring(0,255)),[3,12];case 12:return Me instanceof Jl&&Me.tree?(Ui=new ue(this.context,{scale:this.options.scale,backgroundColor:Me.backgroundColor,x:0,y:0,width:Me.width,height:Me.height}),[4,Ui.render(Me.tree)]):[3,14];case 13:Ci=Ro.sent(),Me.width&&Me.height&&this.ctx.drawImage(Ci,0,0,Me.width,Me.height,Me.bounds.left,Me.bounds.top,Me.bounds.width,Me.bounds.height),Ro.label=14;case 14:if(Me instanceof ll&&(zi=Math.min(Me.bounds.width,Me.bounds.height),Me.type===Xo?Me.checked&&(this.ctx.save(),this.path([new Ta(Me.bounds.left+zi*.39363,Me.bounds.top+zi*.79),new Ta(Me.bounds.left+zi*.16,Me.bounds.top+zi*.5549),new Ta(Me.bounds.left+zi*.27347,Me.bounds.top+zi*.44071),new Ta(Me.bounds.left+zi*.39694,Me.bounds.top+zi*.5649),new Ta(Me.bounds.left+zi*.72983,Me.bounds.top+zi*.23),new Ta(Me.bounds.left+zi*.84,Me.bounds.top+zi*.34085),new Ta(Me.bounds.left+zi*.39363,Me.bounds.top+zi*.79)]),this.ctx.fillStyle=Na(Rl),this.ctx.fill(),this.ctx.restore()):Me.type===Ls&&(Me.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Me.bounds.left+zi/2,Me.bounds.top+zi/2,zi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Na(Rl),this.ctx.fill(),this.ctx.restore()))),Mu(Me)&&Me.value.length){$a=this.createFontStyle(Jt),qa=$a[0],vo=$a[1],ns=this.fontMetrics.getMetrics(qa,vo).baseline,this.ctx.font=qa,this.ctx.fillStyle=Na(Jt.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Bu(Me.styles.textAlign),jo=Gu(Me),ko=0;switch(Me.styles.textAlign){case 1:ko+=jo.width/2;break;case 2:ko+=jo.width;break}xs=jo.add(ko,0,0,-jo.height/2+1),this.ctx.save(),this.path([new Ta(jo.left,jo.top),new Ta(jo.left+jo.width,jo.top),new Ta(jo.left+jo.width,jo.top+jo.height),new Ta(jo.left,jo.top+jo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Kl(Me.value,xs),Jt.letterSpacing,ns),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Br(Me.styles.display,2048))return[3,20];if(!(Me.styles.listStyleImage!==null))return[3,19];if(Ds=Me.styles.listStyleImage,!(Ds.type===0))return[3,18];kn=void 0,ys=Ds.url,Ro.label=15;case 15:return Ro.trys.push([15,17,,18]),[4,this.context.cache.match(ys)];case 16:return kn=Ro.sent(),this.ctx.drawImage(kn,Me.bounds.left-(kn.width+10),Me.bounds.top),[3,18];case 17:return Ro.sent(),this.context.logger.error("Error loading list-style-image "+ys),[3,18];case 18:return[3,20];case 19:Se.listValue&&Me.styles.listStyleType!==-1&&(qa=this.createFontStyle(Jt)[0],this.ctx.font=qa,this.ctx.fillStyle=Na(Jt.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",jo=new h(Me.bounds.left,Me.bounds.top+na(Me.styles.paddingTop,Me.bounds.width),Me.bounds.width,qi(Jt.lineHeight,Jt.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Kl(Se.listValue,jo),Jt.letterSpacing,qi(Jt.lineHeight,Jt.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ro.label=20;case 20:return[2]}})})},ue.prototype.renderStackContent=function(Se){return v(this,void 0,void 0,function(){var Me,tt,Jt,jr,an,Jt,yn,kn,Jt,Ui,Ci,Jt,zi,$a,Jt,qa,vo,Jt,ns,jo,Jt;return w(this,function(ko){switch(ko.label){case 0:if(Br(Se.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Se.element)];case 1:ko.sent(),Me=0,tt=Se.negativeZIndex,ko.label=2;case 2:return Me<tt.length?(Jt=tt[Me],[4,this.renderStack(Jt)]):[3,5];case 3:ko.sent(),ko.label=4;case 4:return Me++,[3,2];case 5:return[4,this.renderNodeContent(Se.element)];case 6:ko.sent(),jr=0,an=Se.nonInlineLevel,ko.label=7;case 7:return jr<an.length?(Jt=an[jr],[4,this.renderNode(Jt)]):[3,10];case 8:ko.sent(),ko.label=9;case 9:return jr++,[3,7];case 10:yn=0,kn=Se.nonPositionedFloats,ko.label=11;case 11:return yn<kn.length?(Jt=kn[yn],[4,this.renderStack(Jt)]):[3,14];case 12:ko.sent(),ko.label=13;case 13:return yn++,[3,11];case 14:Ui=0,Ci=Se.nonPositionedInlineLevel,ko.label=15;case 15:return Ui<Ci.length?(Jt=Ci[Ui],[4,this.renderStack(Jt)]):[3,18];case 16:ko.sent(),ko.label=17;case 17:return Ui++,[3,15];case 18:zi=0,$a=Se.inlineLevel,ko.label=19;case 19:return zi<$a.length?(Jt=$a[zi],[4,this.renderNode(Jt)]):[3,22];case 20:ko.sent(),ko.label=21;case 21:return zi++,[3,19];case 22:qa=0,vo=Se.zeroOrAutoZIndexOrTransformedOrOpacity,ko.label=23;case 23:return qa<vo.length?(Jt=vo[qa],[4,this.renderStack(Jt)]):[3,26];case 24:ko.sent(),ko.label=25;case 25:return qa++,[3,23];case 26:ns=0,jo=Se.positiveZIndex,ko.label=27;case 27:return ns<jo.length?(Jt=jo[ns],[4,this.renderStack(Jt)]):[3,30];case 28:ko.sent(),ko.label=29;case 29:return ns++,[3,27];case 30:return[2]}})})},ue.prototype.mask=function(Se){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(Se.slice(0).reverse()),this.ctx.closePath()},ue.prototype.path=function(Se){this.ctx.beginPath(),this.formatPath(Se),this.ctx.closePath()},ue.prototype.formatPath=function(Se){var Me=this;Se.forEach(function(tt,Jt){var jr=hs(tt)?tt.start:tt;Jt===0?Me.ctx.moveTo(jr.x,jr.y):Me.ctx.lineTo(jr.x,jr.y),hs(tt)&&Me.ctx.bezierCurveTo(tt.startControl.x,tt.startControl.y,tt.endControl.x,tt.endControl.y,tt.end.x,tt.end.y)})},ue.prototype.renderRepeat=function(Se,Me,tt,Jt){this.path(Se),this.ctx.fillStyle=Me,this.ctx.translate(tt,Jt),this.ctx.fill(),this.ctx.translate(-tt,-Jt)},ue.prototype.resizeImage=function(Se,Me,tt){var Jt;if(Se.width===Me&&Se.height===tt)return Se;var jr=(Jt=this.canvas.ownerDocument)!==null&&Jt!==void 0?Jt:document,an=jr.createElement("canvas");an.width=Math.max(1,Me),an.height=Math.max(1,tt);var yn=an.getContext("2d");return yn.drawImage(Se,0,0,Se.width,Se.height,0,0,Me,tt),an},ue.prototype.renderBackgroundImage=function(Se){return v(this,void 0,void 0,function(){var Me,tt,Jt,jr,an,yn;return w(this,function(kn){switch(kn.label){case 0:Me=Se.styles.backgroundImage.length-1,tt=function(Ci){var zi,$a,qa,vo,ns,jo,ko,xs,Ds,ys,vo,ns,jo,ko,xs,Ro,Hs,zs,bs,Tu,Ru,Cu,Gl,nc,Ds,Uu,vo,Zu,$u,ko,xs,qu,ns,jo,ic,ju,ec,ac,oc,Wu,sc,zu;return w(this,function(hc){switch(hc.label){case 0:if(!(Ci.type===0))return[3,5];zi=void 0,$a=Ci.url,hc.label=1;case 1:return hc.trys.push([1,3,,4]),[4,Jt.context.cache.match($a)];case 2:return zi=hc.sent(),[3,4];case 3:return hc.sent(),Jt.context.logger.error("Error loading background-image "+$a),[3,4];case 4:return zi&&(qa=uc(Se,Me,[zi.width,zi.height,zi.width/zi.height]),vo=qa[0],ns=qa[1],jo=qa[2],ko=qa[3],xs=qa[4],Ds=Jt.ctx.createPattern(Jt.resizeImage(zi,ko,xs),"repeat"),Jt.renderRepeat(vo,Ds,ns,jo)),[3,6];case 5:qe(Ci)?(ys=uc(Se,Me,[null,null,null]),vo=ys[0],ns=ys[1],jo=ys[2],ko=ys[3],xs=ys[4],Ro=lr(Ci.angle,ko,xs),Hs=Ro[0],zs=Ro[1],bs=Ro[2],Tu=Ro[3],Ru=Ro[4],Cu=document.createElement("canvas"),Cu.width=ko,Cu.height=xs,Gl=Cu.getContext("2d"),nc=Gl.createLinearGradient(zs,Tu,bs,Ru),er(Ci.stops,Hs).forEach(function(yc){return nc.addColorStop(yc.stop,Na(yc.color))}),Gl.fillStyle=nc,Gl.fillRect(0,0,ko,xs),ko>0&&xs>0&&(Ds=Jt.ctx.createPattern(Cu,"repeat"),Jt.renderRepeat(vo,Ds,ns,jo))):rr(Ci)&&(Uu=uc(Se,Me,[null,null,null]),vo=Uu[0],Zu=Uu[1],$u=Uu[2],ko=Uu[3],xs=Uu[4],qu=Ci.position.length===0?[pa]:Ci.position,ns=na(qu[0],ko),jo=na(qu[qu.length-1],xs),ic=Wn(Ci,ns,jo,ko,xs),ju=ic[0],ec=ic[1],ju>0&&ec>0&&(ac=Jt.ctx.createRadialGradient(Zu+ns,$u+jo,0,Zu+ns,$u+jo,ju),er(Ci.stops,ju*2).forEach(function(yc){return ac.addColorStop(yc.stop,Na(yc.color))}),Jt.path(vo),Jt.ctx.fillStyle=ac,ju!==ec?(oc=Se.bounds.left+.5*Se.bounds.width,Wu=Se.bounds.top+.5*Se.bounds.height,sc=ec/ju,zu=1/sc,Jt.ctx.save(),Jt.ctx.translate(oc,Wu),Jt.ctx.transform(1,0,0,sc,0,0),Jt.ctx.translate(-oc,-Wu),Jt.ctx.fillRect(Zu,zu*($u-Wu)+Wu,ko,xs*zu),Jt.ctx.restore()):Jt.ctx.fill())),hc.label=6;case 6:return Me--,[2]}})},Jt=this,jr=0,an=Se.styles.backgroundImage.slice(0).reverse(),kn.label=1;case 1:return jr<an.length?(yn=an[jr],[5,tt(yn)]):[3,4];case 2:kn.sent(),kn.label=3;case 3:return jr++,[3,1];case 4:return[2]}})})},ue.prototype.renderSolidBorder=function(Se,Me,tt){return v(this,void 0,void 0,function(){return w(this,function(Jt){return this.path(Eu(tt,Me)),this.ctx.fillStyle=Na(Se),this.ctx.fill(),[2]})})},ue.prototype.renderDoubleBorder=function(Se,Me,tt,Jt){return v(this,void 0,void 0,function(){var jr,an;return w(this,function(yn){switch(yn.label){case 0:return Me<3?[4,this.renderSolidBorder(Se,tt,Jt)]:[3,2];case 1:return yn.sent(),[2];case 2:return jr=Ku(Jt,tt),this.path(jr),this.ctx.fillStyle=Na(Se),this.ctx.fill(),an=tc(Jt,tt),this.path(an),this.ctx.fill(),[2]}})})},ue.prototype.renderNodeBackgroundAndBorders=function(Se){return v(this,void 0,void 0,function(){var Me,tt,Jt,jr,an,yn,kn,Ui,Ci=this;return w(this,function(zi){switch(zi.label){case 0:return this.applyEffects(Se.getEffects(2)),Me=Se.container.styles,tt=!lo(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}],jr=Fu(Qu(Me.backgroundClip,0),Se.curves),tt||Me.boxShadow.length?(this.ctx.save(),this.path(jr),this.ctx.clip(),lo(Me.backgroundColor)||(this.ctx.fillStyle=Na(Me.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Se.container)]):[3,2];case 1:zi.sent(),this.ctx.restore(),Me.boxShadow.slice(0).reverse().forEach(function($a){Ci.ctx.save();var qa=Cl(Se.curves),vo=$a.inset?0:mc,ns=Ol(qa,-vo+($a.inset?1:-1)*$a.spread.number,($a.inset?1:-1)*$a.spread.number,$a.spread.number*($a.inset?-2:2),$a.spread.number*($a.inset?-2:2));$a.inset?(Ci.path(qa),Ci.ctx.clip(),Ci.mask(ns)):(Ci.mask(qa),Ci.ctx.clip(),Ci.path(ns)),Ci.ctx.shadowOffsetX=$a.offsetX.number+vo,Ci.ctx.shadowOffsetY=$a.offsetY.number,Ci.ctx.shadowColor=Na($a.color),Ci.ctx.shadowBlur=$a.blur.number,Ci.ctx.fillStyle=$a.inset?Na($a.color):"rgba(0,0,0,1)",Ci.ctx.fill(),Ci.ctx.restore()}),zi.label=2;case 2:an=0,yn=0,kn=Jt,zi.label=3;case 3:return yn<kn.length?(Ui=kn[yn],Ui.style!==0&&!lo(Ui.color)&&Ui.width>0?Ui.style===2?[4,this.renderDashedDottedBorder(Ui.color,Ui.width,an,Se.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return zi.sent(),[3,11];case 5:return Ui.style===3?[4,this.renderDashedDottedBorder(Ui.color,Ui.width,an,Se.curves,3)]:[3,7];case 6:return zi.sent(),[3,11];case 7:return Ui.style===4?[4,this.renderDoubleBorder(Ui.color,Ui.width,an,Se.curves)]:[3,9];case 8:return zi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ui.color,an,Se.curves)];case 10:zi.sent(),zi.label=11;case 11:an++,zi.label=12;case 12:return yn++,[3,3];case 13:return[2]}})})},ue.prototype.renderDashedDottedBorder=function(Se,Me,tt,Jt,jr){return v(this,void 0,void 0,function(){var an,yn,kn,Ui,Ci,zi,$a,qa,vo,ns,jo,ko,xs,Ds,ys,Ro,ys,Ro;return w(this,function(Hs){return this.ctx.save(),an=bc(Jt,tt),yn=Eu(Jt,tt),jr===2&&(this.path(yn),this.ctx.clip()),hs(yn[0])?(kn=yn[0].start.x,Ui=yn[0].start.y):(kn=yn[0].x,Ui=yn[0].y),hs(yn[1])?(Ci=yn[1].end.x,zi=yn[1].end.y):(Ci=yn[1].x,zi=yn[1].y),tt===0||tt===2?$a=Math.abs(kn-Ci):$a=Math.abs(Ui-zi),this.ctx.beginPath(),jr===3?this.formatPath(an):this.formatPath(yn.slice(0,2)),qa=Me<3?Me*3:Me*2,vo=Me<3?Me*2:Me,jr===3&&(qa=Me,vo=Me),ns=!0,$a<=qa*2?ns=!1:$a<=qa*2+vo?(jo=$a/(2*qa+vo),qa*=jo,vo*=jo):(ko=Math.floor(($a+vo)/(qa+vo)),xs=($a-ko*qa)/(ko-1),Ds=($a-(ko+1)*qa)/ko,vo=Ds<=0||Math.abs(vo-xs)<Math.abs(vo-Ds)?xs:Ds),ns&&(jr===3?this.ctx.setLineDash([0,qa+vo]):this.ctx.setLineDash([qa,vo])),jr===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Me):this.ctx.lineWidth=Me*2+1.1,this.ctx.strokeStyle=Na(Se),this.ctx.stroke(),this.ctx.setLineDash([]),jr===2&&(hs(yn[0])&&(ys=yn[3],Ro=yn[0],this.ctx.beginPath(),this.formatPath([new Ta(ys.end.x,ys.end.y),new Ta(Ro.start.x,Ro.start.y)]),this.ctx.stroke()),hs(yn[1])&&(ys=yn[1],Ro=yn[2],this.ctx.beginPath(),this.formatPath([new Ta(ys.end.x,ys.end.y),new Ta(Ro.start.x,Ro.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ue.prototype.render=function(Se){return v(this,void 0,void 0,function(){var Me;return w(this,function(tt){switch(tt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Na(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Me=kl(Se),[4,this.renderStack(Me)];case 1:return tt.sent(),this.applyEffects([]),[2,this.canvas]}})})},ue}(Ju),Mu=function(ue){return ue instanceof Ml||ue instanceof Tl?!0:ue instanceof ll&&ue.type!==Ls&&ue.type!==Xo},Fu=function(ue,Se){switch(ue){case 0:return Cl(Se);case 2:return dl(Se);case 1:default:return Qs(Se)}},Bu=function(ue){switch(ue){case 1:return"center";case 2:return"right";case 0:default:return"left"}},dc=function(ar){E(ue,ar);function ue(Se,Me){var tt=ar.call(this,Se,Me)||this;return tt.canvas=Me.canvas?Me.canvas:document.createElement("canvas"),tt.ctx=tt.canvas.getContext("2d"),tt.options=Me,tt.canvas.width=Math.floor(Me.width*Me.scale),tt.canvas.height=Math.floor(Me.height*Me.scale),tt.canvas.style.width=Me.width+"px",tt.canvas.style.height=Me.height+"px",tt.ctx.scale(tt.options.scale,tt.options.scale),tt.ctx.translate(-Me.x,-Me.y),tt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Me.width+"x"+Me.height+" at "+Me.x+","+Me.y+") with scale "+Me.scale),tt}return ue.prototype.render=function(Se){return v(this,void 0,void 0,function(){var Me,tt;return w(this,function(Jt){switch(Jt.label){case 0:return Me=Hl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Se),[4,gc(Me)];case 1:return tt=Jt.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Na(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(tt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ue}(Ju),gc=function(ue){return new Promise(function(Se,Me){var tt=new Image;tt.onload=function(){Se(tt)},tt.onerror=Me,tt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(ue))})},xc=function(){function ar(ue){var Se=ue.id,Me=ue.enabled;this.id=Se,this.enabled=Me,this.start=Date.now()}return ar.prototype.debug=function(){for(var ue=[],Se=0;Se<arguments.length;Se++)ue[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,m([this.id,this.getTime()+"ms"],ue)):this.info.apply(this,ue))},ar.prototype.getTime=function(){return Date.now()-this.start},ar.prototype.info=function(){for(var ue=[],Se=0;Se<arguments.length;Se++)ue[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,m([this.id,this.getTime()+"ms"],ue)))},ar.prototype.warn=function(){for(var ue=[],Se=0;Se<arguments.length;Se++)ue[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,m([this.id,this.getTime()+"ms"],ue)):this.info.apply(this,ue))},ar.prototype.error=function(){for(var ue=[],Se=0;Se<arguments.length;Se++)ue[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,m([this.id,this.getTime()+"ms"],ue)):this.info.apply(this,ue))},ar.instances={},ar}(),Cc=function(){function ar(ue,Se){var Me;this.windowBounds=Se,this.instanceName="#"+ar.instanceCount++,this.logger=new xc({id:this.instanceName,enabled:ue.logging}),this.cache=(Me=ue.cache)!==null&&Me!==void 0?Me:new Ji(this,ue)}return ar.instanceCount=1,ar}(),vc=function(ue,Se){return Se===void 0&&(Se={}),Ac(ue,Se)};typeof window!="undefined"&&fi.setContext(window);var Ac=function(ue,Se){return v(void 0,void 0,void 0,function(){var Me,tt,Jt,jr,an,yn,kn,Ui,Ci,zi,$a,qa,vo,ns,jo,ko,xs,Ds,ys,Ro,Hs,zs,Hs,bs,Tu,Ru,Cu,Gl,nc,Uu,Zu,$u,qu,ic,ju,ec,ac,oc,Wu,sc;return w(this,function(zu){switch(zu.label){case 0:if(!ue||typeof ue!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Me=ue.ownerDocument,!Me)throw new Error("Element is not attached to a Document");if(tt=Me.defaultView,!tt)throw new Error("Document is not attached to a Window");return Jt={allowTaint:(bs=Se.allowTaint)!==null&&bs!==void 0?bs:!1,imageTimeout:(Tu=Se.imageTimeout)!==null&&Tu!==void 0?Tu:15e3,proxy:Se.proxy,useCORS:(Ru=Se.useCORS)!==null&&Ru!==void 0?Ru:!1},jr=C({logging:(Cu=Se.logging)!==null&&Cu!==void 0?Cu:!0,cache:Se.cache},Jt),an={windowWidth:(Gl=Se.windowWidth)!==null&&Gl!==void 0?Gl:tt.innerWidth,windowHeight:(nc=Se.windowHeight)!==null&&nc!==void 0?nc:tt.innerHeight,scrollX:(Uu=Se.scrollX)!==null&&Uu!==void 0?Uu:tt.pageXOffset,scrollY:(Zu=Se.scrollY)!==null&&Zu!==void 0?Zu:tt.pageYOffset},yn=new h(an.scrollX,an.scrollY,an.windowWidth,an.windowHeight),kn=new Cc(jr,yn),Ui=($u=Se.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Ci={allowTaint:(qu=Se.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:Se.onclone,ignoreElements:Se.ignoreElements,inlineImages:Ui,copyStyles:Ui},kn.logger.debug("Starting document clone with size "+yn.width+"x"+yn.height+" scrolled to "+-yn.left+","+-yn.top),zi=new xa(kn,ue,Ci),$a=zi.clonedReferenceElement,$a?[4,zi.toIFrame(Me,yn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return qa=zu.sent(),vo=ru($a)||gl($a)?i($a.ownerDocument):c(kn,$a),ns=vo.width,jo=vo.height,ko=vo.left,xs=vo.top,Ds=Oc(kn,$a,Se.backgroundColor),ys={canvas:Se.canvas,backgroundColor:Ds,scale:(ju=(ic=Se.scale)!==null&&ic!==void 0?ic:tt.devicePixelRatio)!==null&&ju!==void 0?ju:1,x:((ec=Se.x)!==null&&ec!==void 0?ec:0)+ko,y:((ac=Se.y)!==null&&ac!==void 0?ac:0)+xs,width:(oc=Se.width)!==null&&oc!==void 0?oc:Math.ceil(ns),height:(Wu=Se.height)!==null&&Wu!==void 0?Wu:Math.ceil(jo)},Ui?(kn.logger.debug("Document cloned, using foreign object rendering"),Hs=new dc(kn,ys),[4,Hs.render($a)]):[3,3];case 2:return Ro=zu.sent(),[3,5];case 3:return kn.logger.debug("Document cloned, element located at "+ko+","+xs+" with size "+ns+"x"+jo+" using computed rendering"),kn.logger.debug("Starting DOM parsing"),zs=pu(kn,$a),Ds===zs.styles.backgroundColor&&(zs.styles.backgroundColor=Pr.TRANSPARENT),kn.logger.debug("Starting renderer for element at "+ys.x+","+ys.y+" with size "+ys.width+"x"+ys.height),Hs=new cc(kn,ys),[4,Hs.render(zs)];case 4:Ro=zu.sent(),zu.label=5;case 5:return((sc=Se.removeContainer)!==null&&sc!==void 0?sc:!0)&&(xa.destroy(qa)||kn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),kn.logger.debug("Finished rendering"),[2,Ro]}})})},Oc=function(ue,Se,Me){var tt=Se.ownerDocument,Jt=tt.documentElement?Ho(ue,getComputedStyle(tt.documentElement).backgroundColor):Pr.TRANSPARENT,jr=tt.body?Ho(ue,getComputedStyle(tt.body).backgroundColor):Pr.TRANSPARENT,an=typeof Me=="string"?Ho(ue,Me):Me===null?Pr.TRANSPARENT:4294967295;return Se===tt.documentElement?lo(Jt)?lo(jr)?an:jr:Jt:an};return vc})},wPhX:function(j,P,d){"use strict";d.d(P,"b",function(){return r}),d.d(P,"a",function(){return o}),d.d(P,"k",function(){return n}),d.d(P,"h",function(){return e}),d.d(P,"i",function(){return s}),d.d(P,"g",function(){return t}),d.d(P,"c",function(){return a}),d.d(P,"d",function(){return l}),d.d(P,"j",function(){return p}),d.d(P,"e",function(){return g}),d.d(P,"f",function(){return A});var O=d("KQm4"),E=d("U8pU"),C=d("Ff2n"),v=d("q1tI"),w=d.n(v),m=d("Kwbf"),h=d("lr6o"),c=.25,i=2;function r(y,x){var T=y.slice(),S=T.indexOf(x);return S>=0&&T.splice(S,1),T}function o(y,x){var T=y.slice();return T.indexOf(x)===-1&&T.push(x),T}function n(y){return y.split("-")}function e(y,x){return"".concat(y,"-").concat(x)}function s(y){return y&&y.type&&y.type.isTreeNode}function t(y,x){var T=[y],S=x[y];function b(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(I){var L=I.key,D=I.children;T.push(L),b(D)})}return b(S.children),T}function a(y,x){var T=y.clientY,S=x.selectHandle.getBoundingClientRect(),b=S.top,_=S.bottom,I=S.height,L=Math.max(I*c,i);return T<=b+L?-1:T>=_-L?1:0}function l(y,x){if(!y)return;var T=x.multiple;return T?y.slice():y.length?[y[0]]:y}var u=function(x){return x};function f(y,x){if(!y)return[];var T=x||{},S=T.processProps,b=S===void 0?u:S,_=Array.isArray(y)?y:[y];return _.map(function(I){var L=I.children,D=Object(C.a)(I,["children"]),N=f(L,x);return w.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 g(y,x){var T=new Set;function S(b){if(T.has(b))return;var _=x[b];if(!_)return;T.add(b);var I=_.parent,L=_.node;if(L.disabled)return;I&&S(I.key)}return(y||[]).forEach(function(b){S(b)}),Object(O.a)(T)}function A(y){var x={};return Object.keys(y).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(x[T]=y[T])}),x}},wXyp:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("ygfH")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="CheckOutlined";var c=v.forwardRef(h);P.default=c},wYyv:function(j,P,d){"use strict";var O=d("R5yR"),E=d("5wUe"),C=function(m,h,c){var i=h<0?m.length+h:h;if(i>=0&&i<m.length){var r=c<0?m.length+c:c,o=m.splice(h,1),n=E(o,1),e=n[0];m.splice(r,0,e)}},v=function(m,h,c){return m=O(m),C(m,h,c),m};j.exports=v,j.exports.mutate=C},wZgz:function(j,P,d){(function(O,E,C){j.exports=P=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.BlockCipher,w=E.algo,m=[],h=[],c=[],i=[],r=[],o=[],n=[],e=[],s=[],t=[];(function(){for(var u=[],f=0;f<256;f++)f<128?u[f]=f<<1:u[f]=f<<1^283;for(var p=0,g=0,f=0;f<256;f++){var A=g^g<<1^g<<2^g<<3^g<<4;A=A>>>8^A&255^99,m[p]=A,h[A]=p;var y=u[p],x=u[y],T=u[x],S=u[A]*257^A*16843008;c[p]=S<<24|S>>>8,i[p]=S<<16|S>>>16,r[p]=S<<8|S>>>24,o[p]=S;var S=T*16843009^x*65537^y*257^p*16843008;n[A]=S<<24|S>>>8,e[A]=S<<16|S>>>16,s[A]=S<<8|S>>>24,t[A]=S,p?(p=y^u[u[u[T^y]]],g^=u[u[g]]):p=g=1}})();var a=[0,1,2,4,8,16,32,64,128,27,54],l=w.AES=v.extend({_doReset:function(){var f;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var p=this._keyPriorReset=this._key,g=p.words,A=p.sigBytes/4,y=this._nRounds=A+6,x=(y+1)*4,T=this._keySchedule=[],S=0;S<x;S++)S<A?T[S]=g[S]:(f=T[S-1],S%A?A>6&&S%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^=a[S/A|0]<<24),T[S]=T[S-A]^f);for(var b=this._invKeySchedule=[],_=0;_<x;_++){var S=x-_;if(_%4)var f=T[S];else var f=T[S-4];_<4||S<=4?b[_]=f:b[_]=n[m[f>>>24]]^e[m[f>>>16&255]]^s[m[f>>>8&255]]^t[m[f&255]]}},encryptBlock:function(f,p){this._doCryptBlock(f,p,this._keySchedule,c,i,r,o,m)},decryptBlock:function(f,p){var g=f[p+1];f[p+1]=f[p+3],f[p+3]=g,this._doCryptBlock(f,p,this._invKeySchedule,n,e,s,t,h);var g=f[p+1];f[p+1]=f[p+3],f[p+3]=g},_doCryptBlock:function(f,p,g,A,y,x,T,S){for(var b=this._nRounds,_=f[p]^g[0],I=f[p+1]^g[1],L=f[p+2]^g[2],D=f[p+3]^g[3],N=4,M=1;M<b;M++){var B=A[_>>>24]^y[I>>>16&255]^x[L>>>8&255]^T[D&255]^g[N++],R=A[I>>>24]^y[L>>>16&255]^x[D>>>8&255]^T[_&255]^g[N++],H=A[L>>>24]^y[D>>>16&255]^x[_>>>8&255]^T[I&255]^g[N++],F=A[D>>>24]^y[_>>>16&255]^x[I>>>8&255]^T[L&255]^g[N++];_=B,I=R,L=H,D=F}var B=(S[_>>>24]<<24|S[I>>>16&255]<<16|S[L>>>8&255]<<8|S[D&255])^g[N++],R=(S[I>>>24]<<24|S[L>>>16&255]<<16|S[D>>>8&255]<<8|S[_&255])^g[N++],H=(S[L>>>24]<<24|S[D>>>16&255]<<16|S[_>>>8&255]<<8|S[I&255])^g[N++],F=(S[D>>>24]<<24|S[_>>>16&255]<<16|S[I>>>8&255]<<8|S[L&255])^g[N++];f[p]=B,f[p+1]=R,f[p+2]=H,f[p+3]=F},keySize:256/32});E.AES=v._createHelper(l)}(),O.AES})},wbyO:function(j,P,d){(function(O,E){j.exports=P=E(d("Ib8C"))})(this,function(O){return function(){var E=O,C=E.lib,v=C.WordArray,w=E.enc,m=w.Base64url={stringify:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=i.words,n=i.sigBytes,e=r?this._safe_map:this._map;i.clamp();for(var s=[],t=0;t<n;t+=3)for(var a=o[t>>>2]>>>24-t%4*8&255,l=o[t+1>>>2]>>>24-(t+1)%4*8&255,u=o[t+2>>>2]>>>24-(t+2)%4*8&255,f=a<<16|l<<8|u,p=0;p<4&&t+p*.75<n;p++)s.push(e.charAt(f>>>6*(3-p)&63));var g=e.charAt(64);if(g)for(;s.length%4;)s.push(g);return s.join("")},parse:function(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=i.length,n=r?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var s=0;s<n.length;s++)e[n.charCodeAt(s)]=s}var t=n.charAt(64);if(t){var a=i.indexOf(t);a!==-1&&(o=a)}return h(i,o,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function h(c,i,r){for(var o=[],n=0,e=0;e<i;e++)if(e%4){var s=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=s|t;o[n>>>2]|=a<<24-n%4*8,n++}return v.create(o,n)}}(),O.enc.Base64url})},wgjA:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},whVF:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("lNSK"),E=C(d("1q3G"));function C(c){return c&&c.__esModule?c:{default:c}}function v(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")}function w(c,i){for(var r=0;r<i.length;r++){var o=i[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(c,o.key,o)}}function m(c,i,r){return i&&w(c.prototype,i),r&&w(c,r),c}var h=function(){function c(){v(this,c),this.strm=new E.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.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 o=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(o<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[n],s=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,o=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),o<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);s+=t.length,e.push(t)}while(this.strm.avail_in>0);for(var a=new Uint8Array(s),l=0,u=0;u<e.length;u++)a.set(e[u],l),l+=e[u].length;n=a}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}]),c}();P.default=h},wr5s:function(j,P,d){var O=d("IwbS"),E=O.extendShape,C=E({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(v,w){var m=w.cx,h=w.cy,c=Math.max(w.r0||0,0),i=Math.max(w.r,0),r=(i-c)*.5,o=c+r,n=w.startAngle,e=w.endAngle,s=w.clockwise,t=Math.cos(n),a=Math.sin(n),l=Math.cos(e),u=Math.sin(e),f=s?e-n<Math.PI*2:n-e<Math.PI*2;f&&(v.moveTo(t*c+m,a*c+h),v.arc(t*o+m,a*o+h,r,-Math.PI+n,n,!s)),v.arc(m,h,i,n,e,!s),v.moveTo(l*i+m,u*i+h),v.arc(l*o+m,u*o+h,r,e-Math.PI*2,e-Math.PI,!s),c!==0&&(v.arc(m,h,c,e,n,s),v.moveTo(t*c+m,u*c+h)),v.closePath()}});j.exports=C},wt3j:function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("/IIm"),v=d("EMyp"),w=v.layoutCovers,m=O.extendComponentView({type:"brush",init:function(c,i){this.ecModel=c,this.api=i,this.model,(this._brushController=new C(i.getZr())).on("brush",E.bind(this._onBrush,this)).mount()},render:function(c){return this.model=c,h.apply(this,arguments)},updateTransform:function(c,i){return w(i),h.apply(this,arguments)},updateView:h,dispose:function(){this._brushController.dispose()},_onBrush:function(c,i){var r=this.model.id;this.model.brushTargetManager.setOutputRanges(c,this.ecModel),(!i.isEnd||i.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:E.clone(c),$from:r}),i.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:E.clone(c),$from:r})}});function h(c,i,r,o){(!o||o.$from!==c.id)&&this._brushController.setPanels(c.brushTargetManager.makePanelOpts(r)).enableBrush(c.brushOption).updateCovers(c.areas.slice())}j.exports=m},wy8a:function(j,P,d){var O=d("KxBF");function E(C,v,w){var m=C.length;return w=w===void 0?m:w,!v&&w>=m?C:O(C,v,w)}j.exports=E},x3X8:function(j,P,d){var O=d("KxfA"),E=O.retrieveRawValue;function C(v,w){var m=v.mapDimension("defaultedLabel",!0),h=m.length;if(h===1)return E(v,w,m[0]);if(h){for(var c=[],i=0;i<m.length;i++){var r=E(v,w,m[i]);c.push(r)}return c.join(" ")}}P.getDefaultLabel=C},x54q:function(j,P,d){},x6Kt:function(j,P,d){var O=d("y+Vt"),E=d("VpOo"),C=d("nPnh"),v=C.subPixelOptimizeRect,w={},m=O.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(c,i){var r,o,n,e;this.subPixelOptimize?(v(w,i,this.style),r=w.x,o=w.y,n=w.width,e=w.height,w.r=i.r,i=w):(r=i.x,o=i.y,n=i.width,e=i.height),i.r?E.buildPath(c,i):c.rect(r,o,n,e),c.closePath();return}});j.exports=m},xGfz:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="PlusSquareOutlined";var h=P.a=E.forwardRef(m)},xKMd:function(j,P){function d(E,C){this.getAllNames=function(){var v=C();return v.mapArray(v.getName)},this.containName=function(v){var w=C();return w.indexOfName(v)>=0},this.indexOfName=function(v){var w=E();return w.indexOfName(v)},this.getItemVisual=function(v,w){var m=E();return m.getItemVisual(v,w)}}var O=d;j.exports=O},xO64:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=E(d("8K/p"));function E(t){return t&&t.__esModule?t:{default:t}}function C(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(l){return typeof l}:C=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},C(t)}function v(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function w(t,a){for(var l=0;l<a.length;l++){var u=a[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function m(t,a,l){return a&&w(t.prototype,a),l&&w(t,l),t}function h(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),a&&c(t,a)}function c(t,a){return c=Object.setPrototypeOf||function(u,f){return u.__proto__=f,u},c(t,a)}function i(t){var a=n();return function(){var u=e(t),f;if(a){var p=e(this).constructor;f=Reflect.construct(u,arguments,p)}else f=u.apply(this,arguments);return r(this,f)}}function r(t,a){return a&&(C(a)==="object"||typeof a=="function")?a:o(t)}function o(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}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(t){return!1}}function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},e(t)}var s=function(t){h(l,t);var a=i(l);function l(){return v(this,l),a.apply(this,arguments)}return m(l,[{key:"_pngRect",value:function(f,p,g,A,y,x,T){var S=this._readData(y);return S===null?!1:(x.imageRect(f,p,g,A,"image/png",S),!0)}},{key:"_basicRect",value:function(f,p,g,A,y,x,T,S){throw new Error("BasicCompression received in TightPNG rect")}}]),l}(O.default);P.default=s},xOOu:function(j,P,d){(function(O,E){var C,C;/*!
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(v){j.exports=v()}(function(){return function v(w,m,h){function c(o,n){if(!m[o]){if(!w[o]){var e=typeof C=="function"&&C;if(!n&&e)return C(o,!0);if(i)return i(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var t=m[o]={exports:{}};w[o][0].call(t.exports,function(a){var l=w[o][1][a];return c(l||a)},t,t.exports,v,w,m,h)}return m[o].exports}for(var i=typeof C=="function"&&C,r=0;r<h.length;r++)c(h[r]);return c}({1:[function(v,w,m){"use strict";var h=v("./utils"),c=v("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";m.encode=function(r){for(var o,n,e,s,t,a,l,u=[],f=0,p=r.length,g=p,A=h.getTypeOf(r)!=="string";f<r.length;)g=p-f,e=A?(o=r[f++],n=f<p?r[f++]:0,f<p?r[f++]:0):(o=r.charCodeAt(f++),n=f<p?r.charCodeAt(f++):0,f<p?r.charCodeAt(f++):0),s=o>>2,t=(3&o)<<4|n>>4,a=1<g?(15&n)<<2|e>>6:64,l=2<g?63&e:64,u.push(i.charAt(s)+i.charAt(t)+i.charAt(a)+i.charAt(l));return u.join("")},m.decode=function(r){var o,n,e,s,t,a,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,g=3*(r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(r.charAt(r.length-1)===i.charAt(64)&&g--,r.charAt(r.length-2)===i.charAt(64)&&g--,g%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=c.uint8array?new Uint8Array(0|g):new Array(0|g);l<r.length;)o=i.indexOf(r.charAt(l++))<<2|(s=i.indexOf(r.charAt(l++)))>>4,n=(15&s)<<4|(t=i.indexOf(r.charAt(l++)))>>2,e=(3&t)<<6|(a=i.indexOf(r.charAt(l++))),p[u++]=o,t!==64&&(p[u++]=n),a!==64&&(p[u++]=e);return p}},{"./support":30,"./utils":32}],2:[function(v,w,m){"use strict";var h=v("./external"),c=v("./stream/DataWorker"),i=v("./stream/Crc32Probe"),r=v("./stream/DataLengthProbe");function o(n,e,s,t,a){this.compressedSize=n,this.uncompressedSize=e,this.crc32=s,this.compression=t,this.compressedContent=a}o.prototype={getContentWorker:function(){var e=new c(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),s=this;return e.on("end",function(){if(this.streamInfo.data_length!==s.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},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)}},o.createWorkerFrom=function(n,e,s){return n.pipe(new i).pipe(new r("uncompressedSize")).pipe(e.compressWorker(s)).pipe(new r("compressedSize")).withStreamInfo("compression",e)},w.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(v,w,m){"use strict";var h=v("./stream/GenericWorker");m.STORE={magic:"\0\0",compressWorker:function(i){return new h("STORE compression")},uncompressWorker:function(){return new h("STORE decompression")}},m.DEFLATE=v("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(v,w,m){"use strict";var h=v("./utils"),c=function(){for(var i,r=[],o=0;o<256;o++){i=o;for(var n=0;n<8;n++)i=1&i?3988292384^i>>>1:i>>>1;r[o]=i}return r}();w.exports=function(i,r){return i!==void 0&&i.length?h.getTypeOf(i)!=="string"?function(o,n,e,s){var t=c,a=s+e;o^=-1;for(var l=s;l<a;l++)o=o>>>8^t[255&(o^n[l])];return-1^o}(0|r,i,i.length,0):function(o,n,e,s){var t=c,a=s+e;o^=-1;for(var l=s;l<a;l++)o=o>>>8^t[255&(o^n.charCodeAt(l))];return-1^o}(0|r,i,i.length,0):0}},{"./utils":32}],5:[function(v,w,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(v,w,m){"use strict";var h=null;h=typeof Promise!="undefined"?Promise:v("lie"),w.exports={Promise:h}},{lie:37}],7:[function(v,w,m){"use strict";var h=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",c=v("pako"),i=v("./utils"),r=v("./stream/GenericWorker"),o=h?"uint8array":"array";function n(e,s){r.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=s,this.meta={}}m.magic="\b\0",i.inherits(n,r),n.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(o,e.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 e=this;this._pako.onData=function(s){e.push({data:s,meta:e.meta})}},m.compressWorker=function(e){return new n("Deflate",e)},m.uncompressWorker=function(){return new n("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(v,w,m){"use strict";function h(t,a){var l,u="";for(l=0;l<a;l++)u+=String.fromCharCode(255&t),t>>>=8;return u}function c(t,a,l,u,f,p){var g,A,y=t.file,x=t.compression,T=p!==o.utf8encode,S=i.transformTo("string",p(y.name)),b=i.transformTo("string",o.utf8encode(y.name)),_=y.comment,I=i.transformTo("string",p(_)),L=i.transformTo("string",o.utf8encode(_)),D=b.length!==y.name.length,N=L.length!==_.length,M="",B="",R="",H=y.dir,F=y.date,K={crc32:0,compressedSize:0,uncompressedSize:0};a&&!l||(K.crc32=t.crc32,K.compressedSize=t.compressedSize,K.uncompressedSize=t.uncompressedSize);var U=0;a&&(U|=8),T||!D&&!N||(U|=2048);var V=0,z=0;H&&(V|=16),f==="UNIX"?(z=798,V|=function(q,ce){var ie=q;return q||(ie=ce?16893:33204),(65535&ie)<<16}(y.unixPermissions,H)):(z=20,V|=function(q){return 63&(q||0)}(y.dosPermissions)),g=F.getUTCHours(),g<<=6,g|=F.getUTCMinutes(),g<<=5,g|=F.getUTCSeconds()/2,A=F.getUTCFullYear()-1980,A<<=4,A|=F.getUTCMonth()+1,A<<=5,A|=F.getUTCDate(),D&&(B=h(1,1)+h(n(S),4)+b,M+="up"+h(B.length,2)+B),N&&(R=h(1,1)+h(n(I),4)+L,M+="uc"+h(R.length,2)+R);var Y="";return Y+=`
\0`,Y+=h(U,2),Y+=x.magic,Y+=h(g,2),Y+=h(A,2),Y+=h(K.crc32,4),Y+=h(K.compressedSize,4),Y+=h(K.uncompressedSize,4),Y+=h(S.length,2),Y+=h(M.length,2),{fileRecord:e.LOCAL_FILE_HEADER+Y+S+M,dirRecord:e.CENTRAL_FILE_HEADER+h(z,2)+Y+h(I.length,2)+"\0\0\0\0"+h(V,4)+h(u,4)+S+M+I}}var i=v("../utils"),r=v("../stream/GenericWorker"),o=v("../utf8"),n=v("../crc32"),e=v("../signature");function s(t,a,l,u){r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=a,this.zipPlatform=l,this.encodeFileName=u,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(s,r),s.prototype.push=function(t){var a=t.meta.percent||0,l=this.entriesCount,u=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,r.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:l?(a+100*(l-u-1))/l:100}}))},s.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var a=this.streamFiles&&!t.file.dir;if(a){var l=c(t,a,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:l.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(t){this.accumulate=!1;var a=this.streamFiles&&!t.file.dir,l=c(t,a,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(l.dirRecord),a)this.push({data:function(u){return e.DATA_DESCRIPTOR+h(u.crc32,4)+h(u.compressedSize,4)+h(u.uncompressedSize,4)}(t),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 t=this.bytesWritten,a=0;a<this.dirRecords.length;a++)this.push({data:this.dirRecords[a],meta:{percent:100}});var l=this.bytesWritten-t,u=function(f,p,g,A,y){var x=i.transformTo("string",y(A));return e.CENTRAL_DIRECTORY_END+"\0\0\0\0"+h(f,2)+h(f,2)+h(p,4)+h(g,4)+h(x.length,2)+x}(this.dirRecords.length,l,t,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(t){this._sources.push(t);var a=this;return t.on("data",function(l){a.processChunk(l)}),t.on("end",function(){a.closedSource(a.previous.streamInfo),a._sources.length?a.prepareNextSource():a.end()}),t.on("error",function(l){a.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(t){var a=this._sources;if(!r.prototype.error.call(this,t))return!1;for(var l=0;l<a.length;l++)try{a[l].error(t)}catch(u){}return!0},s.prototype.lock=function(){r.prototype.lock.call(this);for(var t=this._sources,a=0;a<t.length;a++)t[a].lock()},w.exports=s},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(v,w,m){"use strict";var h=v("../compressions"),c=v("./ZipFileWorker");m.generateWorker=function(i,r,o){var n=new c(r.streamFiles,o,r.platform,r.encodeFileName),e=0;try{i.forEach(function(s,t){e++;var a=function(p,g){var A=p||g,y=h[A];if(!y)throw new Error(A+" is not a valid compression method !");return y}(t.options.compression,r.compression),l=t.options.compressionOptions||r.compressionOptions||{},u=t.dir,f=t.date;t._compressWorker(a,l).withStreamInfo("file",{name:s,dir:u,date:f,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(n)}),n.entriesCount=e}catch(s){n.error(s)}return n}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(v,w,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 i in this)typeof this[i]!="function"&&(c[i]=this[i]);return c}}(h.prototype=v("./object")).loadAsync=v("./load"),h.support=v("./support"),h.defaults=v("./defaults"),h.version="3.7.1",h.loadAsync=function(c,i){return new h().loadAsync(c,i)},h.external=v("./external"),w.exports=h},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(v,w,m){"use strict";var h=v("./utils"),c=v("./external"),i=v("./utf8"),r=v("./zipEntries"),o=v("./stream/Crc32Probe"),n=v("./nodejsUtils");function e(s){return new c.Promise(function(t,a){var l=s.decompressed.getContentWorker().pipe(new o);l.on("error",function(u){a(u)}).on("end",function(){l.streamInfo.crc32!==s.decompressed.crc32?a(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}w.exports=function(s,t){var a=this;return t=h.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.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,t.optimizedBinaryString,t.base64).then(function(l){var u=new r(t);return u.load(l),u}).then(function(l){var u=[c.Promise.resolve(l)],f=l.files;if(t.checkCRC32)for(var p=0;p<f.length;p++)u.push(e(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 g=f[p];a.file(g.fileNameStr,g.decompressed,{binary:!0,optimizedBinaryString:!0,date:g.date,dir:g.dir,comment:g.fileCommentStr.length?g.fileCommentStr:null,unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions,createFolders:t.createFolders})}return u.zipComment.length&&(a.comment=u.zipComment),a})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(v,w,m){"use strict";var h=v("../utils"),c=v("../stream/GenericWorker");function i(r,o){c.call(this,"Nodejs stream input adapter for "+r),this._upstreamEnded=!1,this._bindStream(o)}h.inherits(i,c),i.prototype._bindStream=function(r){var o=this;(this._stream=r).pause(),r.on("data",function(n){o.push({data:n,meta:{percent:0}})}).on("error",function(n){o.isPaused?this.generatedError=n:o.error(n)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},i.prototype.pause=function(){return!!c.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},w.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(v,w,m){"use strict";var h=v("readable-stream").Readable;function c(i,r,o){h.call(this,r),this._helper=i;var n=this;i.on("data",function(e,s){n.push(e)||n._helper.pause(),o&&o(s)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}v("../utils").inherits(c,h),c.prototype._read=function(){this._helper.resume()},w.exports=c},{"../utils":32,"readable-stream":16}],14:[function(v,w,m){"use strict";w.exports={isNode:typeof O!="undefined",newBufferFrom:function(c,i){if(O.from&&O.from!==Uint8Array.from)return O.from(c,i);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new O(c,i)},allocBuffer:function(c){if(O.alloc)return O.alloc(c);var i=new O(c);return i.fill(0),i},isBuffer:function(c){return O.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(v,w,m){"use strict";function h(y,x,T){var S,b=i.getTypeOf(x),_=i.extend(T||{},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&&(S=u(y))&&p.call(this,S,!0);var I=b==="string"&&_.binary===!1&&_.base64===!1;T&&T.binary!==void 0||(_.binary=!I),(x instanceof e&&x.uncompressedSize===0||_.dir||!x||x.length===0)&&(_.base64=!1,_.binary=!0,x="",_.compression="STORE",b="string");var L=null;L=x instanceof e||x instanceof r?x:a.isNode&&a.isStream(x)?new l(y,x):i.prepareContent(y,x,_.binary,_.optimizedBinaryString,_.base64);var D=new s(y,L,_);this.files[y]=D}var c=v("./utf8"),i=v("./utils"),r=v("./stream/GenericWorker"),o=v("./stream/StreamHelper"),n=v("./defaults"),e=v("./compressedObject"),s=v("./zipObject"),t=v("./generate"),a=v("./nodejsUtils"),l=v("./nodejs/NodejsStreamInputAdapter"),u=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var T=x.lastIndexOf("/");return 0<T?x.substring(0,T):""},f=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},p=function(x,T){return T=T!==void 0?T:n.createFolders,x=f(x),this.files[x]||h.call(this,x,null,{dir:!0,createFolders:T}),this.files[x]};function g(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 T,S,b;for(T in this.files)b=this.files[T],(S=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&x(S,b)},filter:function(x){var T=[];return this.forEach(function(S,b){x(S,b)&&T.push(b)}),T},file:function(x,T,S){if(arguments.length!==1)return x=this.root+x,h.call(this,x,T,S),this;if(g(x)){var b=x;return this.filter(function(I,L){return!L.dir&&b.test(I)})}var _=this.files[this.root+x];return _&&!_.dir?_:null},folder:function(x){if(!x)return this;if(g(x))return this.filter(function(_,I){return I.dir&&x.test(_)});var T=this.root+x,S=p.call(this,T),b=this.clone();return b.root=S.name,b},remove:function(x){x=this.root+x;var T=this.files[x];if(T||(x.slice(-1)!=="/"&&(x+="/"),T=this.files[x]),T&&!T.dir)delete this.files[x];else for(var S=this.filter(function(_,I){return I.name.slice(0,x.length)===x}),b=0;b<S.length;b++)delete this.files[S[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 T,S={};try{if((S=i.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode})).type=S.type.toLowerCase(),S.compression=S.compression.toUpperCase(),S.type==="binarystring"&&(S.type="string"),!S.type)throw new Error("No output type specified.");i.checkSupport(S.type),S.platform!=="darwin"&&S.platform!=="freebsd"&&S.platform!=="linux"&&S.platform!=="sunos"||(S.platform="UNIX"),S.platform==="win32"&&(S.platform="DOS");var b=S.comment||this.comment||"";T=t.generateWorker(this,S,b)}catch(_){(T=new r("error")).error(_)}return new o(T,S.type||"string",S.mimeType)},generateAsync:function(x,T){return this.generateInternalStream(x).accumulate(T)},generateNodeStream:function(x,T){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(T)}};w.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(v,w,m){w.exports=v("stream")},{stream:void 0}],17:[function(v,w,m){"use strict";var h=v("./DataReader");function c(i){h.call(this,i);for(var r=0;r<this.data.length;r++)i[r]=255&i[r]}v("../utils").inherits(c,h),c.prototype.byteAt=function(i){return this.data[this.zero+i]},c.prototype.lastIndexOfSignature=function(i){for(var r=i.charCodeAt(0),o=i.charCodeAt(1),n=i.charCodeAt(2),e=i.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===r&&this.data[s+1]===o&&this.data[s+2]===n&&this.data[s+3]===e)return s-this.zero;return-1},c.prototype.readAndCheckSignature=function(i){var r=i.charCodeAt(0),o=i.charCodeAt(1),n=i.charCodeAt(2),e=i.charCodeAt(3),s=this.readData(4);return r===s[0]&&o===s[1]&&n===s[2]&&e===s[3]},c.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var r=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,r},w.exports=c},{"../utils":32,"./DataReader":18}],18:[function(v,w,m){"use strict";var h=v("../utils");function c(i){this.data=i,this.length=i.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 o,n=0;for(this.checkOffset(r),o=this.index+r-1;o>=this.index;o--)n=(n<<8)+this.byteAt(o);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))}},w.exports=c},{"../utils":32}],19:[function(v,w,m){"use strict";var h=v("./Uint8ArrayReader");function c(i){h.call(this,i)}v("../utils").inherits(c,h),c.prototype.readData=function(i){this.checkOffset(i);var r=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,r},w.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(v,w,m){"use strict";var h=v("./DataReader");function c(i){h.call(this,i)}v("../utils").inherits(c,h),c.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},c.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},c.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},c.prototype.readData=function(i){this.checkOffset(i);var r=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,r},w.exports=c},{"../utils":32,"./DataReader":18}],21:[function(v,w,m){"use strict";var h=v("./ArrayReader");function c(i){h.call(this,i)}v("../utils").inherits(c,h),c.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var r=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,r},w.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(v,w,m){"use strict";var h=v("../utils"),c=v("../support"),i=v("./ArrayReader"),r=v("./StringReader"),o=v("./NodeBufferReader"),n=v("./Uint8ArrayReader");w.exports=function(e){var s=h.getTypeOf(e);return h.checkSupport(s),s!=="string"||c.uint8array?s==="nodebuffer"?new o(e):c.uint8array?new n(h.transformTo("uint8array",e)):new i(h.transformTo("array",e)):new r(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(v,w,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(v,w,m){"use strict";var h=v("./GenericWorker"),c=v("../utils");function i(r){h.call(this,"ConvertWorker to "+r),this.destType=r}c.inherits(i,h),i.prototype.processChunk=function(r){this.push({data:c.transformTo(this.destType,r.data),meta:r.meta})},w.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(v,w,m){"use strict";var h=v("./GenericWorker"),c=v("../crc32");function i(){h.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}v("../utils").inherits(i,h),i.prototype.processChunk=function(r){this.streamInfo.crc32=c(r.data,this.streamInfo.crc32||0),this.push(r)},w.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(v,w,m){"use strict";var h=v("../utils"),c=v("./GenericWorker");function i(r){c.call(this,"DataLengthProbe for "+r),this.propName=r,this.withStreamInfo(r,0)}h.inherits(i,c),i.prototype.processChunk=function(r){if(r){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+r.data.length}c.prototype.processChunk.call(this,r)},w.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(v,w,m){"use strict";var h=v("../utils"),c=v("./GenericWorker");function i(r){c.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,r.then(function(n){o.dataIsReady=!0,o.data=n,o.max=n&&n.length||0,o.type=h.getTypeOf(n),o.isPaused||o._tickAndRepeat()},function(n){o.error(n)})}h.inherits(i,c),i.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,h.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(h.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var r=null,o=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,o);break;case"uint8array":r=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":r=this.data.slice(this.index,o)}return this.index=o,this.push({data:r,meta:{percent:this.max?this.index/this.max*100:0}})},w.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(v,w,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(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,r){return this._listeners[i].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,r){if(this._listeners[i])for(var o=0;o<this._listeners[i].length;o++)this._listeners[i][o].call(this,r)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var r=this;return i.on("data",function(o){r.processChunk(o)}),i.on("end",function(){r.end()}),i.on("error",function(o){r.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,r){return this.extraStreamInfo[i]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},w.exports=h},{}],29:[function(v,w,m){"use strict";var h=v("../utils"),c=v("./ConvertWorker"),i=v("./GenericWorker"),r=v("../base64"),o=v("../support"),n=v("../external"),e=null;if(o.nodestream)try{e=v("../nodejs/NodejsStreamOutputAdapter")}catch(a){}function s(a,l){return new n.Promise(function(u,f){var p=[],g=a._internalType,A=a._outputType,y=a._mimeType;a.on("data",function(x,T){p.push(x),l&&l(T)}).on("error",function(x){p=[],f(x)}).on("end",function(){try{var x=function(T,S,b){switch(T){case"blob":return h.newBlob(h.transformTo("arraybuffer",S),b);case"base64":return r.encode(S);default:return h.transformTo(T,S)}}(A,function(T,S){var b,_=0,I=null,L=0;for(b=0;b<S.length;b++)L+=S[b].length;switch(T){case"string":return S.join("");case"array":return Array.prototype.concat.apply([],S);case"uint8array":for(I=new Uint8Array(L),b=0;b<S.length;b++)I.set(S[b],_),_+=S[b].length;return I;case"nodebuffer":return O.concat(S);default:throw new Error("concat : unsupported type '"+T+"'")}}(g,p),y);u(x)}catch(T){f(T)}p=[]}).resume()})}function t(a,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=a.pipe(new c(f)),a.lock()}catch(p){this._worker=new i("error"),this._worker.error(p)}}t.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 e(this,{objectMode:this._outputType!=="nodebuffer"},l)}},w.exports=t},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(v,w,m){"use strict";if(m.base64=!0,m.array=!0,m.string=!0,m.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",m.nodebuffer=typeof O!="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(i){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=!!v("readable-stream").Readable}catch(i){m.nodestream=!1}},{"readable-stream":16}],31:[function(v,w,m){"use strict";for(var h=v("./utils"),c=v("./support"),i=v("./nodejsUtils"),r=v("./stream/GenericWorker"),o=new Array(256),n=0;n<256;n++)o[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;o[254]=o[254]=1;function e(){r.call(this,"utf-8 decode"),this.leftOver=null}function s(){r.call(this,"utf-8 encode")}m.utf8encode=function(t){return c.nodebuffer?i.newBufferFrom(t,"utf-8"):function(a){var l,u,f,p,g,A=a.length,y=0;for(p=0;p<A;p++)(64512&(u=a.charCodeAt(p)))==55296&&p+1<A&&(64512&(f=a.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=g=0;g<y;p++)(64512&(u=a.charCodeAt(p)))==55296&&p+1<A&&(64512&(f=a.charCodeAt(p+1)))==56320&&(u=65536+(u-55296<<10)+(f-56320),p++),u<128?l[g++]=u:(u<2048?l[g++]=192|u>>>6:(u<65536?l[g++]=224|u>>>12:(l[g++]=240|u>>>18,l[g++]=128|u>>>12&63),l[g++]=128|u>>>6&63),l[g++]=128|63&u);return l}(t)},m.utf8decode=function(t){return c.nodebuffer?h.transformTo("nodebuffer",t).toString("utf-8"):function(a){var l,u,f,p,g=a.length,A=new Array(2*g);for(l=u=0;l<g;)if((f=a[l++])<128)A[u++]=f;else if(4<(p=o[f]))A[u++]=65533,l+=p-1;else{for(f&=p===2?31:p===3?15:7;1<p&&l<g;)f=f<<6|63&a[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)}(t=h.transformTo(c.uint8array?"uint8array":"array",t))},h.inherits(e,r),e.prototype.processChunk=function(t){var a=h.transformTo(c.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(c.uint8array){var l=a;(a=new Uint8Array(l.length+this.leftOver.length)).set(this.leftOver,0),a.set(l,this.leftOver.length)}else a=this.leftOver.concat(a);this.leftOver=null}var u=function(p,g){var A;for((g=g||p.length)>p.length&&(g=p.length),A=g-1;0<=A&&(192&p[A])==128;)A--;return A<0||A===0?g:A+o[p[A]]>g?A:g}(a),f=a;u!==a.length&&(c.uint8array?(f=a.subarray(0,u),this.leftOver=a.subarray(u,a.length)):(f=a.slice(0,u),this.leftOver=a.slice(u,a.length))),this.push({data:m.utf8decode(f),meta:t.meta})},e.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=e,h.inherits(s,r),s.prototype.processChunk=function(t){this.push({data:m.utf8encode(t.data),meta:t.meta})},m.Utf8EncodeWorker=s},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(v,w,m){"use strict";var h=v("./support"),c=v("./base64"),i=v("./nodejsUtils"),r=v("set-immediate-shim"),o=v("./external");function n(u){return u}function e(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(g){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,g){var A=[],y=0,x=f.length;if(x<=g)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+g,x)))):A.push(String.fromCharCode.apply(null,f.subarray(y,Math.min(y+g,x)))),y+=g;return A.join("")},stringifyByChar:function(f){for(var p="",g=0;g<f.length;g++)p+=String.fromCharCode(f[g]);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,i.allocBuffer(1)).length===1}catch(u){return!1}}()}};function t(u){var f=65536,p=m.getTypeOf(u),g=!0;if(p==="uint8array"?g=s.applyCanBeUsed.uint8array:p==="nodebuffer"&&(g=s.applyCanBeUsed.nodebuffer),g)for(;1<f;)try{return s.stringifyByChunk(u,p,f)}catch(A){f=Math.floor(f/2)}return s.stringifyByChar(u)}function a(u,f){for(var p=0;p<u.length;p++)f[p]=u[p];return f}m.applyFromCharCode=t;var l={};l.string={string:n,array:function(f){return e(f,new Array(f.length))},arraybuffer:function(f){return l.string.uint8array(f).buffer},uint8array:function(f){return e(f,new Uint8Array(f.length))},nodebuffer:function(f){return e(f,i.allocBuffer(f.length))}},l.array={string:t,array:n,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return i.newBufferFrom(f)}},l.arraybuffer={string:function(f){return t(new Uint8Array(f))},array:function(f){return a(new Uint8Array(f),new Array(f.byteLength))},arraybuffer:n,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return i.newBufferFrom(new Uint8Array(f))}},l.uint8array={string:t,array:function(f){return a(f,new Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:n,nodebuffer:function(f){return i.newBufferFrom(f)}},l.nodebuffer={string:t,array:function(f){return a(f,new Array(f.length))},arraybuffer:function(f){return l.nodebuffer.uint8array(f).buffer},uint8array:function(f){return a(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&&i.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,g="";for(p=0;p<(u||"").length;p++)g+="\\x"+((f=u.charCodeAt(p))<16?"0":"")+f.toString(16).toUpperCase();return g},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,g,A){return o.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 o.Promise(function(x,T){var S=new FileReader;S.onload=function(b){x(b.target.result)},S.onerror=function(b){T(b.target.error)},S.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&&g!==!0&&(y=function(T){return e(T,h.uint8array?new Uint8Array(T.length):new Array(T.length))}(y))),y):o.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(v,w,m){"use strict";var h=v("./reader/readerFor"),c=v("./utils"),i=v("./signature"),r=v("./zipEntry"),o=(v("./utf8"),v("./support"));function n(e){this.files=[],this.loadOptions=e}n.prototype={checkSignature:function(s){if(!this.reader.readAndCheckSignature(s)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(t)+", expected "+c.pretty(s)+")")}},isSignature:function(s,t){var a=this.reader.index;this.reader.setIndex(s);var l=this.reader.readString(4)===t;return this.reader.setIndex(a),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),t=o.uint8array?"uint8array":"array",a=c.transformTo(t,s);this.zipComment=this.loadOptions.decodeFileName(a)},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,t,a,l=this.zip64EndOfCentralSize-44;0<l;)s=this.reader.readInt(2),t=this.reader.readInt(4),a=this.reader.readData(t),this.zip64ExtensibleData[s]={id:s,length:t,value:a}},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,t;for(s=0;s<this.files.length;s++)t=this.files[s],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.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(i.CENTRAL_DIRECTORY_END);if(s<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(s);var t=s;if(this.checkSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(s),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var a=this.centralDirOffset+this.centralDirSize;this.zip64&&(a+=20,a+=12+this.zip64EndOfCentralSize);var l=t-a;if(0<l)this.isSignature(t,i.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()}},w.exports=n},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(v,w,m){"use strict";var h=v("./reader/readerFor"),c=v("./utils"),i=v("./compressedObject"),r=v("./crc32"),o=v("./utf8"),n=v("./compressions"),e=v("./support");function s(t,a){this.options=t,this.loadOptions=a}s.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var l,u;if(a.skip(22),this.fileNameLength=a.readInt(2),u=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.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 i(this.compressedSize,this.uncompressedSize,this.crc32,l,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var l=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");a.skip(l),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),a==0&&(this.dosPermissions=63&this.externalFileAttributes),a==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(a){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(a){var l,u,f,p=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4<p;)l=a.readInt(2),u=a.readInt(2),f=a.readData(u),this.extraFields[l]={id:l,length:u,value:f};a.setIndex(p)},handleUTF8:function(){var a=e.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var l=this.findExtraFieldUnicodePath();if(l!==null)this.fileNameStr=l;else{var u=c.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var f=this.findExtraFieldUnicodeComment();if(f!==null)this.fileCommentStr=f;else{var p=c.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var l=h(a.value);return l.readInt(1)!==1||r(this.fileName)!==l.readInt(4)?null:o.utf8decode(l.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var l=h(a.value);return l.readInt(1)!==1||r(this.fileComment)!==l.readInt(4)?null:o.utf8decode(l.readData(a.length-5))}return null}},w.exports=s},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(v,w,m){"use strict";function h(a,l,u){this.name=a,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=v("./stream/StreamHelper"),i=v("./stream/DataWorker"),r=v("./utf8"),o=v("./compressedObject"),n=v("./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 g=!this._dataBinary;g&&!p&&(u=u.pipe(new r.Utf8EncodeWorker)),!g&&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 o&&this._data.compression.magic===l.magic)return this._data.getCompressedWorker();var f=this._decompressWorker();return this._dataBinary||(f=f.pipe(new r.Utf8EncodeWorker)),o.createWorkerFrom(f,l,u)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof n?this._data:new i(this._data)}};for(var e=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],s=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},t=0;t<e.length;t++)h.prototype[e[t]]=s;w.exports=h},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(v,w,m){(function(h){"use strict";var c,i,r=h.MutationObserver||h.WebKitMutationObserver;if(r){var o=0,n=new r(a),e=h.document.createTextNode("");n.observe(e,{characterData:!0}),c=function(){e.data=o=++o%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(){a(),l.onreadystatechange=null,l.parentNode.removeChild(l),l=null},h.document.documentElement.appendChild(l)}:function(){setTimeout(a,0)};else{var s=new h.MessageChannel;s.port1.onmessage=a,c=function(){s.port2.postMessage(0)}}var t=[];function a(){var l,u;i=!0;for(var f=t.length;f;){for(u=t,t=[],l=-1;++l<f;)u[l]();f=t.length}i=!1}w.exports=function(l){t.push(l)!==1||i||c()}}).call(this,typeof E!="undefined"?E:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(v,w,m){"use strict";var h=v("immediate");function c(){}var i={},r=["REJECTED"],o=["FULFILLED"],n=["PENDING"];function e(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,g){this.promise=f,typeof p=="function"&&(this.onFulfilled=p,this.callFulfilled=this.otherCallFulfilled),typeof g=="function"&&(this.onRejected=g,this.callRejected=this.otherCallRejected)}function t(f,p,g){h(function(){var A;try{A=p(g)}catch(y){return i.reject(f,y)}A===f?i.reject(f,new TypeError("Cannot resolve promise with itself")):i.resolve(f,A)})}function a(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 g=!1;function A(T){g||(g=!0,i.reject(f,T))}function y(T){g||(g=!0,i.resolve(f,T))}var x=u(function(){p(y,A)});x.status==="error"&&A(x.value)}function u(f,p){var g={};try{g.value=f(p),g.status="success"}catch(A){g.status="error",g.value=A}return g}(w.exports=e).prototype.finally=function(f){if(typeof f!="function")return this;var p=this.constructor;return this.then(function(g){return p.resolve(f()).then(function(){return g})},function(g){return p.resolve(f()).then(function(){throw g})})},e.prototype.catch=function(f){return this.then(null,f)},e.prototype.then=function(f,p){if(typeof f!="function"&&this.state===o||typeof p!="function"&&this.state===r)return this;var g=new this.constructor(c);return this.state!==n?t(g,this.state===o?f:p,this.outcome):this.queue.push(new s(g,f,p)),g},s.prototype.callFulfilled=function(f){i.resolve(this.promise,f)},s.prototype.otherCallFulfilled=function(f){t(this.promise,this.onFulfilled,f)},s.prototype.callRejected=function(f){i.reject(this.promise,f)},s.prototype.otherCallRejected=function(f){t(this.promise,this.onRejected,f)},i.resolve=function(f,p){var g=u(a,p);if(g.status==="error")return i.reject(f,g.value);var A=g.value;if(A)l(f,A);else{f.state=o,f.outcome=p;for(var y=-1,x=f.queue.length;++y<x;)f.queue[y].callFulfilled(p)}return f},i.reject=function(f,p){f.state=r,f.outcome=p;for(var g=-1,A=f.queue.length;++g<A;)f.queue[g].callRejected(p);return f},e.resolve=function(f){return f instanceof this?f:i.resolve(new this(c),f)},e.reject=function(f){var p=new this(c);return i.reject(p,f)},e.all=function(f){var p=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=f.length,A=!1;if(!g)return this.resolve([]);for(var y=new Array(g),x=0,T=-1,S=new this(c);++T<g;)b(f[T],T);return S;function b(_,I){p.resolve(_).then(function(L){y[I]=L,++x!==g||A||(A=!0,i.resolve(S,y))},function(L){A||(A=!0,i.reject(S,L))})}},e.race=function(f){var p=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=f.length,A=!1;if(!g)return this.resolve([]);for(var y=-1,x=new this(c);++y<g;)T=f[y],p.resolve(T).then(function(S){A||(A=!0,i.resolve(x,S))},function(S){A||(A=!0,i.reject(x,S))});var T;return x}},{immediate:36}],38:[function(v,w,m){"use strict";var h={};(0,v("./lib/utils/common").assign)(h,v("./lib/deflate"),v("./lib/inflate"),v("./lib/zlib/constants")),w.exports=h},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(v,w,m){"use strict";var h=v("./zlib/deflate"),c=v("./utils/common"),i=v("./utils/strings"),r=v("./zlib/messages"),o=v("./zlib/zstream"),n=Object.prototype.toString,e=0,s=-1,t=0,a=8;function l(f){if(!(this instanceof l))return new l(f);this.options=c.assign({level:s,method:a,chunkSize:16384,windowBits:15,memLevel:8,strategy:t,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 o,this.strm.avail_out=0;var g=h.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(g!==e)throw new Error(r[g]);if(p.header&&h.deflateSetHeader(this.strm,p.header),p.dictionary){var A;if(A=typeof p.dictionary=="string"?i.string2buf(p.dictionary):n.call(p.dictionary)==="[object ArrayBuffer]"?new Uint8Array(p.dictionary):p.dictionary,(g=h.deflateSetDictionary(this.strm,A))!==e)throw new Error(r[g]);this._dict_set=!0}}function u(f,p){var g=new l(p);if(g.push(f,!0),g.err)throw g.msg||r[g.err];return g.result}l.prototype.push=function(f,p){var g,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=i.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),(g=h.deflate(y,A))!==1&&g!==e)return this.onEnd(g),!(this.ended=!0);y.avail_out!==0&&(y.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(i.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)&&g!==1);return A===4?(g=h.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===e):A!==2||(this.onEnd(e),!(y.avail_out=0))},l.prototype.onData=function(f){this.chunks.push(f)},l.prototype.onEnd=function(f){f===e&&(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(v,w,m){"use strict";var h=v("./zlib/inflate"),c=v("./utils/common"),i=v("./utils/strings"),r=v("./zlib/constants"),o=v("./zlib/messages"),n=v("./zlib/zstream"),e=v("./zlib/gzheader"),s=Object.prototype.toString;function t(l){if(!(this instanceof t))return new t(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(o[f]);this.header=new e,h.inflateGetHeader(this.strm,this.header)}function a(l,u){var f=new t(u);if(f.push(l,!0),f.err)throw f.msg||o[f.err];return f.result}t.prototype.push=function(l,u){var f,p,g,A,y,x,T=this.strm,S=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"?T.input=i.binstring2buf(l):s.call(l)==="[object ArrayBuffer]"?T.input=new Uint8Array(l):T.input=l,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new c.Buf8(S),T.next_out=0,T.avail_out=S),(f=h.inflate(T,r.Z_NO_FLUSH))===r.Z_NEED_DICT&&b&&(x=typeof b=="string"?i.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);T.next_out&&(T.avail_out!==0&&f!==r.Z_STREAM_END&&(T.avail_in!==0||p!==r.Z_FINISH&&p!==r.Z_SYNC_FLUSH)||(this.options.to==="string"?(g=i.utf8border(T.output,T.next_out),A=T.next_out-g,y=i.buf2string(T.output,g),T.next_out=A,T.avail_out=S-A,A&&c.arraySet(T.output,T.output,g,A,0),this.onData(y)):this.onData(c.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(_=!0)}while((0<T.avail_in||T.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),!(T.avail_out=0))},t.prototype.onData=function(l){this.chunks.push(l)},t.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=t,m.inflate=a,m.inflateRaw=function(l,u){return(u=u||{}).raw=!0,a(l,u)},m.ungzip=a},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(v,w,m){"use strict";var h=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";m.assign=function(r){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var n=o.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(var e in n)n.hasOwnProperty(e)&&(r[e]=n[e])}}return r},m.shrinkBuf=function(r,o){return r.length===o?r:r.subarray?r.subarray(0,o):(r.length=o,r)};var c={arraySet:function(o,n,e,s,t){if(n.subarray&&o.subarray)o.set(n.subarray(e,e+s),t);else for(var a=0;a<s;a++)o[t+a]=n[e+a]},flattenChunks:function(o){var n,e,s,t,a,l;for(n=s=0,e=o.length;n<e;n++)s+=o[n].length;for(l=new Uint8Array(s),n=t=0,e=o.length;n<e;n++)a=o[n],l.set(a,t),t+=a.length;return l}},i={arraySet:function(o,n,e,s,t){for(var a=0;a<s;a++)o[t+a]=n[e+a]},flattenChunks:function(o){return[].concat.apply([],o)}};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,i))},m.setTyped(h)},{}],42:[function(v,w,m){"use strict";var h=v("./common"),c=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){c=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var r=new h.Buf8(256),o=0;o<256;o++)r[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function n(e,s){if(s<65537&&(e.subarray&&i||!e.subarray&&c))return String.fromCharCode.apply(null,h.shrinkBuf(e,s));for(var t="",a=0;a<s;a++)t+=String.fromCharCode(e[a]);return t}r[254]=r[254]=1,m.string2buf=function(e){var s,t,a,l,u,f=e.length,p=0;for(l=0;l<f;l++)(64512&(t=e.charCodeAt(l)))==55296&&l+1<f&&(64512&(a=e.charCodeAt(l+1)))==56320&&(t=65536+(t-55296<<10)+(a-56320),l++),p+=t<128?1:t<2048?2:t<65536?3:4;for(s=new h.Buf8(p),l=u=0;u<p;l++)(64512&(t=e.charCodeAt(l)))==55296&&l+1<f&&(64512&(a=e.charCodeAt(l+1)))==56320&&(t=65536+(t-55296<<10)+(a-56320),l++),t<128?s[u++]=t:(t<2048?s[u++]=192|t>>>6:(t<65536?s[u++]=224|t>>>12:(s[u++]=240|t>>>18,s[u++]=128|t>>>12&63),s[u++]=128|t>>>6&63),s[u++]=128|63&t);return s},m.buf2binstring=function(e){return n(e,e.length)},m.binstring2buf=function(e){for(var s=new h.Buf8(e.length),t=0,a=s.length;t<a;t++)s[t]=e.charCodeAt(t);return s},m.buf2string=function(e,s){var t,a,l,u,f=s||e.length,p=new Array(2*f);for(t=a=0;t<f;)if((l=e[t++])<128)p[a++]=l;else if(4<(u=r[l]))p[a++]=65533,t+=u-1;else{for(l&=u===2?31:u===3?15:7;1<u&&t<f;)l=l<<6|63&e[t++],u--;1<u?p[a++]=65533:l<65536?p[a++]=l:(l-=65536,p[a++]=55296|l>>10&1023,p[a++]=56320|1023&l)}return n(p,a)},m.utf8border=function(e,s){var t;for((s=s||e.length)>e.length&&(s=e.length),t=s-1;0<=t&&(192&e[t])==128;)t--;return t<0||t===0?s:t+r[e[t]]>s?t:s}},{"./common":41}],43:[function(v,w,m){"use strict";w.exports=function(h,c,i,r){for(var o=65535&h|0,n=h>>>16&65535|0,e=0;i!==0;){for(i-=e=2e3<i?2e3:i;n=n+(o=o+c[r++]|0)|0,--e;);o%=65521,n%=65521}return o|n<<16|0}},{}],44:[function(v,w,m){"use strict";w.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(v,w,m){"use strict";var h=function(){for(var c,i=[],r=0;r<256;r++){c=r;for(var o=0;o<8;o++)c=1&c?3988292384^c>>>1:c>>>1;i[r]=c}return i}();w.exports=function(c,i,r,o){var n=h,e=o+r;c^=-1;for(var s=o;s<e;s++)c=c>>>8^n[255&(c^i[s])];return-1^c}},{}],46:[function(v,w,m){"use strict";var h,c=v("../utils/common"),i=v("./trees"),r=v("./adler32"),o=v("./crc32"),n=v("./messages"),e=0,s=4,t=0,a=-2,l=-1,u=4,f=2,p=8,g=9,A=286,y=30,x=19,T=2*A+1,S=15,b=3,_=258,I=_+b+1,L=42,D=113,N=1,M=2,B=3,R=4;function H(Q,fe){return Q.msg=n[fe],fe}function F(Q){return(Q<<1)-(4<Q?9:0)}function K(Q){for(var fe=Q.length;0<=--fe;)Q[fe]=0}function U(Q){var fe=Q.state,Je=fe.pending;Je>Q.avail_out&&(Je=Q.avail_out),Je!==0&&(c.arraySet(Q.output,fe.pending_buf,fe.pending_out,Je,Q.next_out),Q.next_out+=Je,fe.pending_out+=Je,Q.total_out+=Je,Q.avail_out-=Je,fe.pending-=Je,fe.pending===0&&(fe.pending_out=0))}function V(Q,fe){i._tr_flush_block(Q,0<=Q.block_start?Q.block_start:-1,Q.strstart-Q.block_start,fe),Q.block_start=Q.strstart,U(Q.strm)}function z(Q,fe){Q.pending_buf[Q.pending++]=fe}function Y(Q,fe){Q.pending_buf[Q.pending++]=fe>>>8&255,Q.pending_buf[Q.pending++]=255&fe}function q(Q,fe){var Je,ne,X=Q.max_chain_length,G=Q.strstart,te=Q.prev_length,we=Q.nice_match,he=Q.strstart>Q.w_size-I?Q.strstart-(Q.w_size-I):0,Pe=Q.window,Oe=Q.w_mask,le=Q.prev,me=Q.strstart+_,_e=Pe[G+te-1],$e=Pe[G+te];Q.prev_length>=Q.good_match&&(X>>=2),we>Q.lookahead&&(we=Q.lookahead);do if(Pe[(Je=fe)+te]===$e&&Pe[Je+te-1]===_e&&Pe[Je]===Pe[G]&&Pe[++Je]===Pe[G+1]){G+=2,Je++;do;while(Pe[++G]===Pe[++Je]&&Pe[++G]===Pe[++Je]&&Pe[++G]===Pe[++Je]&&Pe[++G]===Pe[++Je]&&Pe[++G]===Pe[++Je]&&Pe[++G]===Pe[++Je]&&Pe[++G]===Pe[++Je]&&Pe[++G]===Pe[++Je]&&G<me);if(ne=_-(me-G),G=me-_,te<ne){if(Q.match_start=fe,we<=(te=ne))break;_e=Pe[G+te-1],$e=Pe[G+te]}}while((fe=le[fe&Oe])>he&&--X!=0);return te<=Q.lookahead?te:Q.lookahead}function ce(Q){var fe,Je,ne,X,G,te,we,he,Pe,Oe,le=Q.w_size;do{if(X=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=le+(le-I)){for(c.arraySet(Q.window,Q.window,le,le,0),Q.match_start-=le,Q.strstart-=le,Q.block_start-=le,fe=Je=Q.hash_size;ne=Q.head[--fe],Q.head[fe]=le<=ne?ne-le:0,--Je;);for(fe=Je=le;ne=Q.prev[--fe],Q.prev[fe]=le<=ne?ne-le:0,--Je;);X+=le}if(Q.strm.avail_in===0)break;if(te=Q.strm,we=Q.window,he=Q.strstart+Q.lookahead,Pe=X,Oe=void 0,Oe=te.avail_in,Pe<Oe&&(Oe=Pe),Je=Oe===0?0:(te.avail_in-=Oe,c.arraySet(we,te.input,te.next_in,Oe,he),te.state.wrap===1?te.adler=r(te.adler,we,Oe,he):te.state.wrap===2&&(te.adler=o(te.adler,we,Oe,he)),te.next_in+=Oe,te.total_in+=Oe,Oe),Q.lookahead+=Je,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<I&&Q.strm.avail_in!==0)}function ie(Q,fe){for(var Je,ne;;){if(Q.lookahead<I){if(ce(Q),Q.lookahead<I&&fe===e)return N;if(Q.lookahead===0)break}if(Je=0,Q.lookahead>=b&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Je=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Je!==0&&Q.strstart-Je<=Q.w_size-I&&(Q.match_length=q(Q,Je)),Q.match_length>=b)if(ne=i._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,Je=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 ne=i._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(ne&&(V(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=Q.strstart<b-1?Q.strstart:b-1,fe===s?(V(Q,!0),Q.strm.avail_out===0?B:R):Q.last_lit&&(V(Q,!1),Q.strm.avail_out===0)?N:M}function ve(Q,fe){for(var Je,ne,X;;){if(Q.lookahead<I){if(ce(Q),Q.lookahead<I&&fe===e)return N;if(Q.lookahead===0)break}if(Je=0,Q.lookahead>=b&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Je=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,Je!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-Je<=Q.w_size-I&&(Q.match_length=q(Q,Je),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,ne=i._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,Je=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++,ne&&(V(Q,!1),Q.strm.avail_out===0))return N}else if(Q.match_available){if((ne=i._tr_tally(Q,0,Q.window[Q.strstart-1]))&&V(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&&(ne=i._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0),Q.insert=Q.strstart<b-1?Q.strstart:b-1,fe===s?(V(Q,!0),Q.strm.avail_out===0?B:R):Q.last_lit&&(V(Q,!1),Q.strm.avail_out===0)?N:M}function Ee(Q,fe,Je,ne,X){this.good_length=Q,this.max_lazy=fe,this.nice_length=Je,this.max_chain=ne,this.func=X}function Le(){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*T),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(S+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 He(Q){var fe;return Q&&Q.state?(Q.total_in=Q.total_out=0,Q.data_type=f,(fe=Q.state).pending=0,fe.pending_out=0,fe.wrap<0&&(fe.wrap=-fe.wrap),fe.status=fe.wrap?L:D,Q.adler=fe.wrap===2?0:1,fe.last_flush=e,i._tr_init(fe),t):H(Q,a)}function ge(Q){var fe=He(Q);return fe===t&&function(Je){Je.window_size=2*Je.w_size,K(Je.head),Je.max_lazy_match=h[Je.level].max_lazy,Je.good_match=h[Je.level].good_length,Je.nice_match=h[Je.level].nice_length,Je.max_chain_length=h[Je.level].max_chain,Je.strstart=0,Je.block_start=0,Je.lookahead=0,Je.insert=0,Je.match_length=Je.prev_length=b-1,Je.match_available=0,Je.ins_h=0}(Q.state),fe}function Fe(Q,fe,Je,ne,X,G){if(!Q)return a;var te=1;if(fe===l&&(fe=6),ne<0?(te=0,ne=-ne):15<ne&&(te=2,ne-=16),X<1||g<X||Je!==p||ne<8||15<ne||fe<0||9<fe||G<0||u<G)return H(Q,a);ne===8&&(ne=9);var we=new Le;return(Q.state=we).strm=Q,we.wrap=te,we.gzhead=null,we.w_bits=ne,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=X+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+b-1)/b),we.window=new c.Buf8(2*we.w_size),we.head=new c.Buf16(we.hash_size),we.prev=new c.Buf16(we.w_size),we.lit_bufsize=1<<X+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new c.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=fe,we.strategy=G,we.method=Je,ge(Q)}h=[new Ee(0,0,0,0,function(Q,fe){var Je=65535;for(Je>Q.pending_buf_size-5&&(Je=Q.pending_buf_size-5);;){if(Q.lookahead<=1){if(ce(Q),Q.lookahead===0&&fe===e)return N;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var ne=Q.block_start+Je;if((Q.strstart===0||Q.strstart>=ne)&&(Q.lookahead=Q.strstart-ne,Q.strstart=ne,V(Q,!1),Q.strm.avail_out===0))return N;if(Q.strstart-Q.block_start>=Q.w_size-I&&(V(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=0,fe===s?(V(Q,!0),Q.strm.avail_out===0?B:R):(Q.strstart>Q.block_start&&(V(Q,!1),Q.strm.avail_out),N)}),new Ee(4,4,8,4,ie),new Ee(4,5,16,8,ie),new Ee(4,6,32,32,ie),new Ee(4,4,16,16,ve),new Ee(8,16,32,32,ve),new Ee(8,16,128,128,ve),new Ee(8,32,128,256,ve),new Ee(32,128,258,1024,ve),new Ee(32,258,258,4096,ve)],m.deflateInit=function(Q,fe){return Fe(Q,fe,p,15,8,0)},m.deflateInit2=Fe,m.deflateReset=ge,m.deflateResetKeep=He,m.deflateSetHeader=function(Q,fe){return Q&&Q.state?Q.state.wrap!==2?a:(Q.state.gzhead=fe,t):a},m.deflate=function(Q,fe){var Je,ne,X,G;if(!Q||!Q.state||5<fe||fe<0)return Q?H(Q,a):a;if(ne=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||ne.status===666&&fe!==s)return H(Q,Q.avail_out===0?-5:a);if(ne.strm=Q,Je=ne.last_flush,ne.last_flush=fe,ne.status===L)if(ne.wrap===2)Q.adler=0,z(ne,31),z(ne,139),z(ne,8),ne.gzhead?(z(ne,(ne.gzhead.text?1:0)+(ne.gzhead.hcrc?2:0)+(ne.gzhead.extra?4:0)+(ne.gzhead.name?8:0)+(ne.gzhead.comment?16:0)),z(ne,255&ne.gzhead.time),z(ne,ne.gzhead.time>>8&255),z(ne,ne.gzhead.time>>16&255),z(ne,ne.gzhead.time>>24&255),z(ne,ne.level===9?2:2<=ne.strategy||ne.level<2?4:0),z(ne,255&ne.gzhead.os),ne.gzhead.extra&&ne.gzhead.extra.length&&(z(ne,255&ne.gzhead.extra.length),z(ne,ne.gzhead.extra.length>>8&255)),ne.gzhead.hcrc&&(Q.adler=o(Q.adler,ne.pending_buf,ne.pending,0)),ne.gzindex=0,ne.status=69):(z(ne,0),z(ne,0),z(ne,0),z(ne,0),z(ne,0),z(ne,ne.level===9?2:2<=ne.strategy||ne.level<2?4:0),z(ne,3),ne.status=D);else{var te=p+(ne.w_bits-8<<4)<<8;te|=(2<=ne.strategy||ne.level<2?0:ne.level<6?1:ne.level===6?2:3)<<6,ne.strstart!==0&&(te|=32),te+=31-te%31,ne.status=D,Y(ne,te),ne.strstart!==0&&(Y(ne,Q.adler>>>16),Y(ne,65535&Q.adler)),Q.adler=1}if(ne.status===69)if(ne.gzhead.extra){for(X=ne.pending;ne.gzindex<(65535&ne.gzhead.extra.length)&&(ne.pending!==ne.pending_buf_size||(ne.gzhead.hcrc&&ne.pending>X&&(Q.adler=o(Q.adler,ne.pending_buf,ne.pending-X,X)),U(Q),X=ne.pending,ne.pending!==ne.pending_buf_size));)z(ne,255&ne.gzhead.extra[ne.gzindex]),ne.gzindex++;ne.gzhead.hcrc&&ne.pending>X&&(Q.adler=o(Q.adler,ne.pending_buf,ne.pending-X,X)),ne.gzindex===ne.gzhead.extra.length&&(ne.gzindex=0,ne.status=73)}else ne.status=73;if(ne.status===73)if(ne.gzhead.name){X=ne.pending;do{if(ne.pending===ne.pending_buf_size&&(ne.gzhead.hcrc&&ne.pending>X&&(Q.adler=o(Q.adler,ne.pending_buf,ne.pending-X,X)),U(Q),X=ne.pending,ne.pending===ne.pending_buf_size)){G=1;break}G=ne.gzindex<ne.gzhead.name.length?255&ne.gzhead.name.charCodeAt(ne.gzindex++):0,z(ne,G)}while(G!==0);ne.gzhead.hcrc&&ne.pending>X&&(Q.adler=o(Q.adler,ne.pending_buf,ne.pending-X,X)),G===0&&(ne.gzindex=0,ne.status=91)}else ne.status=91;if(ne.status===91)if(ne.gzhead.comment){X=ne.pending;do{if(ne.pending===ne.pending_buf_size&&(ne.gzhead.hcrc&&ne.pending>X&&(Q.adler=o(Q.adler,ne.pending_buf,ne.pending-X,X)),U(Q),X=ne.pending,ne.pending===ne.pending_buf_size)){G=1;break}G=ne.gzindex<ne.gzhead.comment.length?255&ne.gzhead.comment.charCodeAt(ne.gzindex++):0,z(ne,G)}while(G!==0);ne.gzhead.hcrc&&ne.pending>X&&(Q.adler=o(Q.adler,ne.pending_buf,ne.pending-X,X)),G===0&&(ne.status=103)}else ne.status=103;if(ne.status===103&&(ne.gzhead.hcrc?(ne.pending+2>ne.pending_buf_size&&U(Q),ne.pending+2<=ne.pending_buf_size&&(z(ne,255&Q.adler),z(ne,Q.adler>>8&255),Q.adler=0,ne.status=D)):ne.status=D),ne.pending!==0){if(U(Q),Q.avail_out===0)return ne.last_flush=-1,t}else if(Q.avail_in===0&&F(fe)<=F(Je)&&fe!==s)return H(Q,-5);if(ne.status===666&&Q.avail_in!==0)return H(Q,-5);if(Q.avail_in!==0||ne.lookahead!==0||fe!==e&&ne.status!==666){var we=ne.strategy===2?function(he,Pe){for(var Oe;;){if(he.lookahead===0&&(ce(he),he.lookahead===0)){if(Pe===e)return N;break}if(he.match_length=0,Oe=i._tr_tally(he,0,he.window[he.strstart]),he.lookahead--,he.strstart++,Oe&&(V(he,!1),he.strm.avail_out===0))return N}return he.insert=0,Pe===s?(V(he,!0),he.strm.avail_out===0?B:R):he.last_lit&&(V(he,!1),he.strm.avail_out===0)?N:M}(ne,fe):ne.strategy===3?function(he,Pe){for(var Oe,le,me,_e,$e=he.window;;){if(he.lookahead<=_){if(ce(he),he.lookahead<=_&&Pe===e)return N;if(he.lookahead===0)break}if(he.match_length=0,he.lookahead>=b&&0<he.strstart&&(le=$e[me=he.strstart-1])===$e[++me]&&le===$e[++me]&&le===$e[++me]){_e=he.strstart+_;do;while(le===$e[++me]&&le===$e[++me]&&le===$e[++me]&&le===$e[++me]&&le===$e[++me]&&le===$e[++me]&&le===$e[++me]&&le===$e[++me]&&me<_e);he.match_length=_-(_e-me),he.match_length>he.lookahead&&(he.match_length=he.lookahead)}if(he.match_length>=b?(Oe=i._tr_tally(he,1,he.match_length-b),he.lookahead-=he.match_length,he.strstart+=he.match_length,he.match_length=0):(Oe=i._tr_tally(he,0,he.window[he.strstart]),he.lookahead--,he.strstart++),Oe&&(V(he,!1),he.strm.avail_out===0))return N}return he.insert=0,Pe===s?(V(he,!0),he.strm.avail_out===0?B:R):he.last_lit&&(V(he,!1),he.strm.avail_out===0)?N:M}(ne,fe):h[ne.level].func(ne,fe);if(we!==B&&we!==R||(ne.status=666),we===N||we===B)return Q.avail_out===0&&(ne.last_flush=-1),t;if(we===M&&(fe===1?i._tr_align(ne):fe!==5&&(i._tr_stored_block(ne,0,0,!1),fe===3&&(K(ne.head),ne.lookahead===0&&(ne.strstart=0,ne.block_start=0,ne.insert=0))),U(Q),Q.avail_out===0))return ne.last_flush=-1,t}return fe!==s?t:ne.wrap<=0?1:(ne.wrap===2?(z(ne,255&Q.adler),z(ne,Q.adler>>8&255),z(ne,Q.adler>>16&255),z(ne,Q.adler>>24&255),z(ne,255&Q.total_in),z(ne,Q.total_in>>8&255),z(ne,Q.total_in>>16&255),z(ne,Q.total_in>>24&255)):(Y(ne,Q.adler>>>16),Y(ne,65535&Q.adler)),U(Q),0<ne.wrap&&(ne.wrap=-ne.wrap),ne.pending!==0?t:1)},m.deflateEnd=function(Q){var fe;return Q&&Q.state?(fe=Q.state.status)!==L&&fe!==69&&fe!==73&&fe!==91&&fe!==103&&fe!==D&&fe!==666?H(Q,a):(Q.state=null,fe===D?H(Q,-3):t):a},m.deflateSetDictionary=function(Q,fe){var Je,ne,X,G,te,we,he,Pe,Oe=fe.length;if(!Q||!Q.state)return a;if((G=(Je=Q.state).wrap)===2||G===1&&Je.status!==L||Je.lookahead)return a;for(G===1&&(Q.adler=r(Q.adler,fe,Oe,0)),Je.wrap=0,Oe>=Je.w_size&&(G===0&&(K(Je.head),Je.strstart=0,Je.block_start=0,Je.insert=0),Pe=new c.Buf8(Je.w_size),c.arraySet(Pe,fe,Oe-Je.w_size,Je.w_size,0),fe=Pe,Oe=Je.w_size),te=Q.avail_in,we=Q.next_in,he=Q.input,Q.avail_in=Oe,Q.next_in=0,Q.input=fe,ce(Je);Je.lookahead>=b;){for(ne=Je.strstart,X=Je.lookahead-(b-1);Je.ins_h=(Je.ins_h<<Je.hash_shift^Je.window[ne+b-1])&Je.hash_mask,Je.prev[ne&Je.w_mask]=Je.head[Je.ins_h],Je.head[Je.ins_h]=ne,ne++,--X;);Je.strstart=ne,Je.lookahead=b-1,ce(Je)}return Je.strstart+=Je.lookahead,Je.block_start=Je.strstart,Je.insert=Je.lookahead,Je.lookahead=0,Je.match_length=Je.prev_length=b-1,Je.match_available=0,Q.next_in=we,Q.input=he,Q.avail_in=te,Je.wrap=G,t},m.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(v,w,m){"use strict";w.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(v,w,m){"use strict";w.exports=function(h,c){var i,r,o,n,e,s,t,a,l,u,f,p,g,A,y,x,T,S,b,_,I,L,D,N,M;i=h.state,r=h.next_in,N=h.input,o=r+(h.avail_in-5),n=h.next_out,M=h.output,e=n-(c-h.avail_out),s=n+(h.avail_out-257),t=i.dmax,a=i.wsize,l=i.whave,u=i.wnext,f=i.window,p=i.hold,g=i.bits,A=i.lencode,y=i.distcode,x=(1<<i.lenbits)-1,T=(1<<i.distbits)-1;e:do{g<15&&(p+=N[r++]<<g,g+=8,p+=N[r++]<<g,g+=8),S=A[p&x];t:for(;;){if(p>>>=b=S>>>24,g-=b,(b=S>>>16&255)===0)M[n++]=65535&S;else{if(!(16&b)){if((64&b)==0){S=A[(65535&S)+(p&(1<<b)-1)];continue t}if(32&b){i.mode=12;break e}h.msg="invalid literal/length code",i.mode=30;break e}_=65535&S,(b&=15)&&(g<b&&(p+=N[r++]<<g,g+=8),_+=p&(1<<b)-1,p>>>=b,g-=b),g<15&&(p+=N[r++]<<g,g+=8,p+=N[r++]<<g,g+=8),S=y[p&T];r:for(;;){if(p>>>=b=S>>>24,g-=b,!(16&(b=S>>>16&255))){if((64&b)==0){S=y[(65535&S)+(p&(1<<b)-1)];continue r}h.msg="invalid distance code",i.mode=30;break e}if(I=65535&S,g<(b&=15)&&(p+=N[r++]<<g,(g+=8)<b&&(p+=N[r++]<<g,g+=8)),t<(I+=p&(1<<b)-1)){h.msg="invalid distance too far back",i.mode=30;break e}if(p>>>=b,g-=b,(b=n-e)<I){if(l<(b=I-b)&&i.sane){h.msg="invalid distance too far back",i.mode=30;break e}if(D=f,(L=0)===u){if(L+=a-b,b<_){for(_-=b;M[n++]=f[L++],--b;);L=n-I,D=M}}else if(u<b){if(L+=a+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-I,D=M}}}else if(L+=u-b,b<_){for(_-=b;M[n++]=f[L++],--b;);L=n-I,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-I;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<o&&n<s);r-=_=g>>3,p&=(1<<(g-=_<<3))-1,h.next_in=r,h.next_out=n,h.avail_in=r<o?o-r+5:5-(r-o),h.avail_out=n<s?s-n+257:257-(n-s),i.hold=p,i.bits=g}},{}],49:[function(v,w,m){"use strict";var h=v("../utils/common"),c=v("./adler32"),i=v("./crc32"),r=v("./inffast"),o=v("./inftrees"),n=1,e=2,s=0,t=-2,a=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 g(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=a,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):t}function A(L){var D;return L&&L.state?((D=L.state).wsize=0,D.whave=0,D.wnext=0,g(L)):t}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)?t:(M.window!==null&&M.wbits!==D&&(M.window=null),M.wrap=N,M.wbits=D,A(L))):t}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):t}var T,S,b=!0;function _(L){if(b){var D;for(T=new h.Buf32(512),S=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(o(n,L.lens,0,288,T,0,L.work,{bits:9}),D=0;D<32;)L.lens[D++]=5;o(e,L.lens,0,32,S,0,L.work,{bits:5}),b=!1}L.lencode=T,L.lenbits=9,L.distcode=S,L.distbits=5}function I(L,D,N,M){var B,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<(B=R.wsize-R.wnext)&&(B=M),h.arraySet(R.window,D,N-M,B,R.wnext),(M-=B)?(h.arraySet(R.window,D,N-M,M,0),R.wnext=M,R.whave=R.wsize):(R.wnext+=B,R.wnext===R.wsize&&(R.wnext=0),R.whave<R.wsize&&(R.whave+=B))),0}m.inflateReset=A,m.inflateReset2=y,m.inflateResetKeep=g,m.inflateInit=function(L){return x(L,15)},m.inflateInit2=x,m.inflate=function(L,D){var N,M,B,R,H,F,K,U,V,z,Y,q,ce,ie,ve,Ee,Le,He,ge,Fe,Q,fe,Je,ne,X=0,G=new h.Buf8(4),te=[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 t;(N=L.state).mode===12&&(N.mode=13),H=L.next_out,B=L.output,K=L.avail_out,R=L.next_in,M=L.input,F=L.avail_in,U=N.hold,V=N.bits,z=F,Y=K,fe=s;e:for(;;)switch(N.mode){case a:if(N.wrap===0){N.mode=13;break}for(;V<16;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if(2&N.wrap&&U===35615){G[N.check=0]=255&U,G[1]=U>>>8&255,N.check=i(N.check,G,2,0),V=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(V-=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,V=U=0;break;case 2:for(;V<16;){if(F===0)break e;F--,U+=M[R++]<<V,V+=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=i(N.check,G,2,0)),V=U=0,N.mode=3;case 3:for(;V<32;){if(F===0)break e;F--,U+=M[R++]<<V,V+=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=i(N.check,G,4,0)),V=U=0,N.mode=4;case 4:for(;V<16;){if(F===0)break e;F--,U+=M[R++]<<V,V+=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=i(N.check,G,2,0)),V=U=0,N.mode=5;case 5:if(1024&N.flags){for(;V<16;){if(F===0)break e;F--,U+=M[R++]<<V,V+=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=i(N.check,G,2,0)),V=U=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(F<(q=N.length)&&(q=F),q&&(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,q,Q)),512&N.flags&&(N.check=i(N.check,M,q,R)),F-=q,R+=q,N.length-=q),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(F===0)break e;for(q=0;Q=M[R+q++],N.head&&Q&&N.length<65536&&(N.head.name+=String.fromCharCode(Q)),Q&&q<F;);if(512&N.flags&&(N.check=i(N.check,M,q,R)),F-=q,R+=q,Q)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(F===0)break e;for(q=0;Q=M[R+q++],N.head&&Q&&N.length<65536&&(N.head.comment+=String.fromCharCode(Q)),Q&&q<F;);if(512&N.flags&&(N.check=i(N.check,M,q,R)),F-=q,R+=q,Q)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;V<16;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if(U!==(65535&N.check)){L.msg="header crc mismatch",N.mode=30;break}V=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(;V<32;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}L.adler=N.check=f(U),V=U=0,N.mode=11;case 11:if(N.havedict===0)return L.next_out=H,L.avail_out=K,L.next_in=R,L.avail_in=F,N.hold=U,N.bits=V,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&V,V-=7&V,N.mode=27;break}for(;V<3;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}switch(N.last=1&U,V-=1,3&(U>>>=1)){case 0:N.mode=14;break;case 1:if(_(N),N.mode=20,D!==6)break;U>>>=2,V-=2;break e;case 2:N.mode=17;break;case 3:L.msg="invalid block type",N.mode=30}U>>>=2,V-=2;break;case 14:for(U>>>=7&V,V-=7&V;V<32;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if((65535&U)!=(U>>>16^65535)){L.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&U,V=U=0,N.mode=15,D===6)break e;case 15:N.mode=16;case 16:if(q=N.length){if(F<q&&(q=F),K<q&&(q=K),q===0)break e;h.arraySet(B,M,R,q,H),F-=q,R+=q,K-=q,H+=q,N.length-=q;break}N.mode=12;break;case 17:for(;V<14;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if(N.nlen=257+(31&U),U>>>=5,V-=5,N.ndist=1+(31&U),U>>>=5,V-=5,N.ncode=4+(15&U),U>>>=4,V-=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(;V<3;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}N.lens[te[N.have++]]=7&U,U>>>=3,V-=3}for(;N.have<19;)N.lens[te[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,Je={bits:N.lenbits},fe=o(0,N.lens,0,19,N.lencode,0,N.work,Je),N.lenbits=Je.bits,fe){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(;Ee=(X=N.lencode[U&(1<<N.lenbits)-1])>>>16&255,Le=65535&X,!((ve=X>>>24)<=V);){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if(Le<16)U>>>=ve,V-=ve,N.lens[N.have++]=Le;else{if(Le===16){for(ne=ve+2;V<ne;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if(U>>>=ve,V-=ve,N.have===0){L.msg="invalid bit length repeat",N.mode=30;break}Q=N.lens[N.have-1],q=3+(3&U),U>>>=2,V-=2}else if(Le===17){for(ne=ve+3;V<ne;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}V-=ve,Q=0,q=3+(7&(U>>>=ve)),U>>>=3,V-=3}else{for(ne=ve+7;V<ne;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}V-=ve,Q=0,q=11+(127&(U>>>=ve)),U>>>=7,V-=7}if(N.have+q>N.nlen+N.ndist){L.msg="invalid bit length repeat",N.mode=30;break}for(;q--;)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,Je={bits:N.lenbits},fe=o(n,N.lens,0,N.nlen,N.lencode,0,N.work,Je),N.lenbits=Je.bits,fe){L.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,Je={bits:N.distbits},fe=o(e,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,Je),N.distbits=Je.bits,fe){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<=F&&258<=K){L.next_out=H,L.avail_out=K,L.next_in=R,L.avail_in=F,N.hold=U,N.bits=V,r(L,Y),H=L.next_out,B=L.output,K=L.avail_out,R=L.next_in,M=L.input,F=L.avail_in,U=N.hold,V=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;Ee=(X=N.lencode[U&(1<<N.lenbits)-1])>>>16&255,Le=65535&X,!((ve=X>>>24)<=V);){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if(Ee&&(240&Ee)==0){for(He=ve,ge=Ee,Fe=Le;Ee=(X=N.lencode[Fe+((U&(1<<He+ge)-1)>>He)])>>>16&255,Le=65535&X,!(He+(ve=X>>>24)<=V);){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}U>>>=He,V-=He,N.back+=He}if(U>>>=ve,V-=ve,N.back+=ve,N.length=Le,Ee===0){N.mode=26;break}if(32&Ee){N.back=-1,N.mode=12;break}if(64&Ee){L.msg="invalid literal/length code",N.mode=30;break}N.extra=15&Ee,N.mode=22;case 22:if(N.extra){for(ne=N.extra;V<ne;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}N.length+=U&(1<<N.extra)-1,U>>>=N.extra,V-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;Ee=(X=N.distcode[U&(1<<N.distbits)-1])>>>16&255,Le=65535&X,!((ve=X>>>24)<=V);){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if((240&Ee)==0){for(He=ve,ge=Ee,Fe=Le;Ee=(X=N.distcode[Fe+((U&(1<<He+ge)-1)>>He)])>>>16&255,Le=65535&X,!(He+(ve=X>>>24)<=V);){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}U>>>=He,V-=He,N.back+=He}if(U>>>=ve,V-=ve,N.back+=ve,64&Ee){L.msg="invalid distance code",N.mode=30;break}N.offset=Le,N.extra=15&Ee,N.mode=24;case 24:if(N.extra){for(ne=N.extra;V<ne;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}N.offset+=U&(1<<N.extra)-1,U>>>=N.extra,V-=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(q=Y-K,N.offset>q){if((q=N.offset-q)>N.whave&&N.sane){L.msg="invalid distance too far back",N.mode=30;break}ce=q>N.wnext?(q-=N.wnext,N.wsize-q):N.wnext-q,q>N.length&&(q=N.length),ie=N.window}else ie=B,ce=H-N.offset,q=N.length;for(K<q&&(q=K),K-=q,N.length-=q;B[H++]=ie[ce++],--q;);N.length===0&&(N.mode=21);break;case 26:if(K===0)break e;B[H++]=N.length,K--,N.mode=21;break;case 27:if(N.wrap){for(;V<32;){if(F===0)break e;F--,U|=M[R++]<<V,V+=8}if(Y-=K,L.total_out+=Y,N.total+=Y,Y&&(L.adler=N.check=N.flags?i(N.check,B,Y,H-Y):c(N.check,B,Y,H-Y)),Y=K,(N.flags?U:f(U))!==N.check){L.msg="incorrect data check",N.mode=30;break}V=U=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;V<32;){if(F===0)break e;F--,U+=M[R++]<<V,V+=8}if(U!==(4294967295&N.total)){L.msg="incorrect length check",N.mode=30;break}V=U=0}N.mode=29;case 29:fe=1;break e;case 30:fe=-3;break e;case 31:return-4;case 32:default:return t}return L.next_out=H,L.avail_out=K,L.next_in=R,L.avail_in=F,N.hold=U,N.bits=V,(N.wsize||Y!==L.avail_out&&N.mode<30&&(N.mode<27||D!==4))&&I(L,L.output,L.next_out,Y-L.avail_out)?(N.mode=31,-4):(z-=L.avail_in,Y-=L.avail_out,L.total_in+=z,L.total_out+=Y,N.total+=Y,N.wrap&&Y&&(L.adler=N.check=N.flags?i(N.check,B,Y,L.next_out-Y):c(N.check,B,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),(z==0&&Y===0||D===4)&&fe===s&&(fe=-5),fe)},m.inflateEnd=function(L){if(!L||!L.state)return t;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?t:((N.head=D).done=!1,s):t},m.inflateSetDictionary=function(L,D){var N,M=D.length;return L&&L.state?(N=L.state).wrap!==0&&N.mode!==11?t:N.mode===11&&c(1,D,M,0)!==N.check?-3:I(L,D,M,M)?(N.mode=31,-4):(N.havedict=1,s):t},m.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(v,w,m){"use strict";var h=v("../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],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];w.exports=function(n,e,s,t,a,l,u,f){var p,g,A,y,x,T,S,b,_,I=f.bits,L=0,D=0,N=0,M=0,B=0,R=0,H=0,F=0,K=0,U=0,V=null,z=0,Y=new h.Buf16(16),q=new h.Buf16(16),ce=null,ie=0;for(L=0;L<=15;L++)Y[L]=0;for(D=0;D<t;D++)Y[e[s+D]]++;for(B=I,M=15;1<=M&&Y[M]===0;M--);if(M<B&&(B=M),M===0)return a[l++]=20971520,a[l++]=20971520,f.bits=1,0;for(N=1;N<M&&Y[N]===0;N++);for(B<N&&(B=N),L=F=1;L<=15;L++)if(F<<=1,(F-=Y[L])<0)return-1;if(0<F&&(n===0||M!==1))return-1;for(q[1]=0,L=1;L<15;L++)q[L+1]=q[L]+Y[L];for(D=0;D<t;D++)e[s+D]!==0&&(u[q[e[s+D]]++]=D);if(T=n===0?(V=ce=u,19):n===1?(V=c,z-=257,ce=i,ie-=257,256):(V=r,ce=o,-1),L=N,x=l,H=D=U=0,A=-1,y=(K=1<<(R=B))-1,n===1&&852<K||n===2&&592<K)return 1;for(;;){for(S=L-H,_=u[D]<T?(b=0,u[D]):u[D]>T?(b=ce[ie+u[D]],V[z+u[D]]):(b=96,0),p=1<<L-H,N=g=1<<R;a[x+(U>>H)+(g-=p)]=S<<24|b<<16|_|0,g!==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=e[s+u[D]]}if(B<L&&(U&y)!==A){for(H===0&&(H=B),x+=N,F=1<<(R=L-H);R+H<M&&!((F-=Y[R+H])<=0);)R++,F<<=1;if(K+=1<<R,n===1&&852<K||n===2&&592<K)return 1;a[A=U&y]=B<<24|R<<16|x-l|0}}return U!==0&&(a[x+U]=L-H<<24|64<<16|0),f.bits=B,0}},{"../utils/common":41}],51:[function(v,w,m){"use strict";w.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(v,w,m){"use strict";var h=v("../utils/common"),c=0,i=1;function r(X){for(var G=X.length;0<=--G;)X[G]=0}var o=0,n=29,e=256,s=e+1+n,t=30,a=19,l=2*s+1,u=15,f=16,p=7,g=256,A=16,y=17,x=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],S=[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],I=new Array(2*(s+2));r(I);var L=new Array(2*t);r(L);var D=new Array(512);r(D);var N=new Array(256);r(N);var M=new Array(n);r(M);var B,R,H,F=new Array(t);function K(X,G,te,we,he){this.static_tree=X,this.extra_bits=G,this.extra_base=te,this.elems=we,this.max_length=he,this.has_stree=X&&X.length}function U(X,G){this.dyn_tree=X,this.max_code=0,this.stat_desc=G}function V(X){return X<256?D[X]:D[256+(X>>>7)]}function z(X,G){X.pending_buf[X.pending++]=255&G,X.pending_buf[X.pending++]=G>>>8&255}function Y(X,G,te){X.bi_valid>f-te?(X.bi_buf|=G<<X.bi_valid&65535,z(X,X.bi_buf),X.bi_buf=G>>f-X.bi_valid,X.bi_valid+=te-f):(X.bi_buf|=G<<X.bi_valid&65535,X.bi_valid+=te)}function q(X,G,te){Y(X,te[2*G],te[2*G+1])}function ce(X,G){for(var te=0;te|=1&X,X>>>=1,te<<=1,0<--G;);return te>>>1}function ie(X,G,te){var we,he,Pe=new Array(u+1),Oe=0;for(we=1;we<=u;we++)Pe[we]=Oe=Oe+te[we-1]<<1;for(he=0;he<=G;he++){var le=X[2*he+1];le!==0&&(X[2*he]=ce(Pe[le]++,le))}}function ve(X){var G;for(G=0;G<s;G++)X.dyn_ltree[2*G]=0;for(G=0;G<t;G++)X.dyn_dtree[2*G]=0;for(G=0;G<a;G++)X.bl_tree[2*G]=0;X.dyn_ltree[2*g]=1,X.opt_len=X.static_len=0,X.last_lit=X.matches=0}function Ee(X){8<X.bi_valid?z(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 Le(X,G,te,we){var he=2*G,Pe=2*te;return X[he]<X[Pe]||X[he]===X[Pe]&&we[G]<=we[te]}function He(X,G,te){for(var we=X.heap[te],he=te<<1;he<=X.heap_len&&(he<X.heap_len&&Le(G,X.heap[he+1],X.heap[he],X.depth)&&he++,!Le(G,we,X.heap[he],X.depth));)X.heap[te]=X.heap[he],te=he,he<<=1;X.heap[te]=we}function ge(X,G,te){var we,he,Pe,Oe,le=0;if(X.last_lit!==0)for(;we=X.pending_buf[X.d_buf+2*le]<<8|X.pending_buf[X.d_buf+2*le+1],he=X.pending_buf[X.l_buf+le],le++,we===0?q(X,he,G):(q(X,(Pe=N[he])+e+1,G),(Oe=T[Pe])!==0&&Y(X,he-=M[Pe],Oe),q(X,Pe=V(--we),te),(Oe=S[Pe])!==0&&Y(X,we-=F[Pe],Oe)),le<X.last_lit;);q(X,g,G)}function Fe(X,G){var te,we,he,Pe=G.dyn_tree,Oe=G.stat_desc.static_tree,le=G.stat_desc.has_stree,me=G.stat_desc.elems,_e=-1;for(X.heap_len=0,X.heap_max=l,te=0;te<me;te++)Pe[2*te]!==0?(X.heap[++X.heap_len]=_e=te,X.depth[te]=0):Pe[2*te+1]=0;for(;X.heap_len<2;)Pe[2*(he=X.heap[++X.heap_len]=_e<2?++_e:0)]=1,X.depth[he]=0,X.opt_len--,le&&(X.static_len-=Oe[2*he+1]);for(G.max_code=_e,te=X.heap_len>>1;1<=te;te--)He(X,Pe,te);for(he=me;te=X.heap[1],X.heap[1]=X.heap[X.heap_len--],He(X,Pe,1),we=X.heap[1],X.heap[--X.heap_max]=te,X.heap[--X.heap_max]=we,Pe[2*he]=Pe[2*te]+Pe[2*we],X.depth[he]=(X.depth[te]>=X.depth[we]?X.depth[te]:X.depth[we])+1,Pe[2*te+1]=Pe[2*we+1]=he,X.heap[1]=he++,He(X,Pe,1),2<=X.heap_len;);X.heap[--X.heap_max]=X.heap[1],function($e,gt){var et,Ie,rt,Ge,vt,Ot,Et=gt.dyn_tree,Tt=gt.max_code,Rt=gt.stat_desc.static_tree,Be=gt.stat_desc.has_stree,Z=gt.stat_desc.extra_bits,J=gt.stat_desc.extra_base,je=gt.stat_desc.max_length,Re=0;for(Ge=0;Ge<=u;Ge++)$e.bl_count[Ge]=0;for(Et[2*$e.heap[$e.heap_max]+1]=0,et=$e.heap_max+1;et<l;et++)je<(Ge=Et[2*Et[2*(Ie=$e.heap[et])+1]+1]+1)&&(Ge=je,Re++),Et[2*Ie+1]=Ge,Tt<Ie||($e.bl_count[Ge]++,vt=0,J<=Ie&&(vt=Z[Ie-J]),Ot=Et[2*Ie],$e.opt_len+=Ot*(Ge+vt),Be&&($e.static_len+=Ot*(Rt[2*Ie+1]+vt)));if(Re!==0){do{for(Ge=je-1;$e.bl_count[Ge]===0;)Ge--;$e.bl_count[Ge]--,$e.bl_count[Ge+1]+=2,$e.bl_count[je]--,Re-=2}while(0<Re);for(Ge=je;Ge!==0;Ge--)for(Ie=$e.bl_count[Ge];Ie!==0;)Tt<(rt=$e.heap[--et])||(Et[2*rt+1]!==Ge&&($e.opt_len+=(Ge-Et[2*rt+1])*Et[2*rt],Et[2*rt+1]=Ge),Ie--)}}(X,G),ie(Pe,_e,X.bl_count)}function Q(X,G,te){var we,he,Pe=-1,Oe=G[1],le=0,me=7,_e=4;for(Oe===0&&(me=138,_e=3),G[2*(te+1)+1]=65535,we=0;we<=te;we++)he=Oe,Oe=G[2*(we+1)+1],++le<me&&he===Oe||(le<_e?X.bl_tree[2*he]+=le:he!==0?(he!==Pe&&X.bl_tree[2*he]++,X.bl_tree[2*A]++):le<=10?X.bl_tree[2*y]++:X.bl_tree[2*x]++,Pe=he,_e=(le=0)===Oe?(me=138,3):he===Oe?(me=6,3):(me=7,4))}function fe(X,G,te){var we,he,Pe=-1,Oe=G[1],le=0,me=7,_e=4;for(Oe===0&&(me=138,_e=3),we=0;we<=te;we++)if(he=Oe,Oe=G[2*(we+1)+1],!(++le<me&&he===Oe)){if(le<_e)for(;q(X,he,X.bl_tree),--le!=0;);else he!==0?(he!==Pe&&(q(X,he,X.bl_tree),le--),q(X,A,X.bl_tree),Y(X,le-3,2)):le<=10?(q(X,y,X.bl_tree),Y(X,le-3,3)):(q(X,x,X.bl_tree),Y(X,le-11,7));Pe=he,_e=(le=0)===Oe?(me=138,3):he===Oe?(me=6,3):(me=7,4)}}r(F);var Je=!1;function ne(X,G,te,we){Y(X,(o<<1)+(we?1:0),3),function(he,Pe,Oe,le){Ee(he),le&&(z(he,Oe),z(he,~Oe)),h.arraySet(he.pending_buf,he.window,Pe,Oe,he.pending),he.pending+=Oe}(X,G,te,!0)}m._tr_init=function(X){Je||(function(){var G,te,we,he,Pe,Oe=new Array(u+1);for(he=we=0;he<n-1;he++)for(M[he]=we,G=0;G<1<<T[he];G++)N[we++]=he;for(N[we-1]=he,he=Pe=0;he<16;he++)for(F[he]=Pe,G=0;G<1<<S[he];G++)D[Pe++]=he;for(Pe>>=7;he<t;he++)for(F[he]=Pe<<7,G=0;G<1<<S[he]-7;G++)D[256+Pe++]=he;for(te=0;te<=u;te++)Oe[te]=0;for(G=0;G<=143;)I[2*G+1]=8,G++,Oe[8]++;for(;G<=255;)I[2*G+1]=9,G++,Oe[9]++;for(;G<=279;)I[2*G+1]=7,G++,Oe[7]++;for(;G<=287;)I[2*G+1]=8,G++,Oe[8]++;for(ie(I,s+1,Oe),G=0;G<t;G++)L[2*G+1]=5,L[2*G]=ce(G,5);B=new K(I,T,e+1,s,u),R=new K(L,S,0,t,u),H=new K(new Array(0),b,0,a,p)}(),Je=!0),X.l_desc=new U(X.dyn_ltree,B),X.d_desc=new U(X.dyn_dtree,R),X.bl_desc=new U(X.bl_tree,H),X.bi_buf=0,X.bi_valid=0,ve(X)},m._tr_stored_block=ne,m._tr_flush_block=function(X,G,te,we){var he,Pe,Oe=0;0<X.level?(X.strm.data_type===2&&(X.strm.data_type=function(le){var me,_e=4093624447;for(me=0;me<=31;me++,_e>>>=1)if(1&_e&&le.dyn_ltree[2*me]!==0)return c;if(le.dyn_ltree[18]!==0||le.dyn_ltree[20]!==0||le.dyn_ltree[26]!==0)return i;for(me=32;me<e;me++)if(le.dyn_ltree[2*me]!==0)return i;return c}(X)),Fe(X,X.l_desc),Fe(X,X.d_desc),Oe=function(le){var me;for(Q(le,le.dyn_ltree,le.l_desc.max_code),Q(le,le.dyn_dtree,le.d_desc.max_code),Fe(le,le.bl_desc),me=a-1;3<=me&&le.bl_tree[2*_[me]+1]===0;me--);return le.opt_len+=3*(me+1)+5+5+4,me}(X),he=X.opt_len+3+7>>>3,(Pe=X.static_len+3+7>>>3)<=he&&(he=Pe)):he=Pe=te+5,te+4<=he&&G!==-1?ne(X,G,te,we):X.strategy===4||Pe===he?(Y(X,2+(we?1:0),3),ge(X,I,L)):(Y(X,4+(we?1:0),3),function(le,me,_e,$e){var gt;for(Y(le,me-257,5),Y(le,_e-1,5),Y(le,$e-4,4),gt=0;gt<$e;gt++)Y(le,le.bl_tree[2*_[gt]+1],3);fe(le,le.dyn_ltree,me-1),fe(le,le.dyn_dtree,_e-1)}(X,X.l_desc.max_code+1,X.d_desc.max_code+1,Oe+1),ge(X,X.dyn_ltree,X.dyn_dtree)),ve(X),we&&Ee(X)},m._tr_tally=function(X,G,te){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&te,X.last_lit++,G===0?X.dyn_ltree[2*te]++:(X.matches++,G--,X.dyn_ltree[2*(N[te]+e+1)]++,X.dyn_dtree[2*V(G)]++),X.last_lit===X.lit_bufsize-1},m._tr_align=function(X){Y(X,2,3),q(X,g,I),function(G){G.bi_valid===16?(z(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(v,w,m){"use strict";w.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(v,w,m){"use strict";w.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("IyRk"))},xRUu:function(j,P,d){d("hJvP"),d("hFmY"),d("sAZ8")},xSIq:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={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"};P.default=O},xSat:function(j,P){var d={axisPointer:1,tooltip:1,brush:1};function O(E,C,v){var w=C.getComponentByElement(E.topTarget),m=w&&w.coordinateSystem;return w&&w!==v&&!d[w.mainType]&&m&&m.model!==v}P.onIrrelevantElement=O},xTNl:function(j,P){var d=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],O={color:d,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],d]};j.exports=O},xb2K:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("5yev")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="RedoOutlined";var c=v.forwardRef(h);P.default=c},xiyX:function(j,P,d){var O=d("bYtY"),E=d("bLfw"),C=d("nkfE"),v=d("ICMv"),w=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(i,r){return r.type||(r.data?"category":"value")}O.merge(w.prototype,v),C("single",w,h,m);var c=w;j.exports=c},xlC8:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=O;function O(E,C,v,w){for(var m=E&65535|0,h=E>>>16&65535|0,c=0;v!==0;){c=v>2e3?2e3:v,v-=c;do m=m+C[w++]|0,h=h+m|0;while(--c);m%=65521,h%=65521}return m|h<<16|0}},xvlK:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="PlusOutlined";var h=P.a=E.forwardRef(m)},xzDV:function(j,P,d){},"y+Vt":function(j,P,d){var O=d("Gev7"),E=d("bYtY"),C=d("IMiH"),v=d("2DNl"),w=d("3C/r"),m=w.prototype.getCanvasPattern,h=Math.abs,c=new C(!0);function i(o){O.call(this,o),this.path=null}i.prototype={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var s=this.style,t=this.path||c,a=s.hasStroke(),l=s.hasFill(),u=s.fill,f=s.stroke,p=l&&!!u.colorStops,g=a&&!!f.colorStops,A=l&&!!u.image,y=a&&!!f.image;if(s.bind(n,this,e),this.setTransform(n),this.__dirty){var x;p&&(x=x||this.getBoundingRect(),this._fillGradient=s.getGradient(n,u,x)),g&&(x=x||this.getBoundingRect(),this._strokeGradient=s.getGradient(n,f,x))}p?n.fillStyle=this._fillGradient:A&&(n.fillStyle=m.call(u,n)),g?n.strokeStyle=this._strokeGradient:y&&(n.strokeStyle=m.call(f,n));var T=s.lineDash,S=s.lineDashOffset,b=!!n.setLineDash,_=this.getGlobalScale();if(t.setScale(_[0],_[1],this.segmentIgnoreThreshold),this.__dirtyPath||T&&!b&&a?(t.beginPath(n),T&&!b&&(t.setLineDash(T),t.setLineDashOffset(S)),this.buildPath(t,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),l)if(s.fillOpacity!=null){var I=n.globalAlpha;n.globalAlpha=s.fillOpacity*s.opacity,t.fill(n),n.globalAlpha=I}else t.fill(n);if(T&&b&&(n.setLineDash(T),n.lineDashOffset=S),a)if(s.strokeOpacity!=null){var I=n.globalAlpha;n.globalAlpha=s.strokeOpacity*s.opacity,t.stroke(n),n.globalAlpha=I}else t.stroke(n);T&&b&&n.setLineDash([]),s.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,s){},createPathProxy:function(){this.path=new C},getBoundingRect:function(){var n=this._rect,e=this.style,s=!n;if(s){var t=this.path;t||(t=this.path=new C),this.__dirtyPath&&(t.beginPath(),this.buildPath(t,this.shape,!1)),n=t.getBoundingRect()}if(this._rect=n,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||s){a.copy(n);var l=e.lineWidth,u=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(l=Math.max(l,this.strokeContainThreshold||4)),u>1e-10&&(a.width+=l/u,a.height+=l/u,a.x-=l/u/2,a.y-=l/u/2)}return a}return n},contain:function(n,e){var s=this.transformCoordToLocal(n,e),t=this.getBoundingRect(),a=this.style;if(n=s[0],e=s[1],t.contain(n,e)){var l=this.path.data;if(a.hasStroke()){var u=a.lineWidth,f=a.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),v.containStroke(l,u/f,n,e)))return!0}if(a.hasFill())return v.contain(l,n,e)}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,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var s=this.shape;if(s){if(E.isObject(n))for(var t in n)n.hasOwnProperty(t)&&(s[t]=n[t]);else s[n]=e;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}},i.extend=function(o){var n=function(t){i.call(this,t),o.style&&this.style.extendFrom(o.style,!1);var a=o.shape;if(a){this.shape=this.shape||{};var l=this.shape;for(var u in a)!l.hasOwnProperty(u)&&a.hasOwnProperty(u)&&(l[u]=a[u])}o.init&&o.init.call(this,t)};E.inherits(n,i);for(var e in o)e!=="style"&&e!=="shape"&&(n.prototype[e]=o[e]);return n},E.inherits(i,O);var r=i;j.exports=r},"y+lR":function(j,P,d){var O=d("bYtY"),E=d("mFDi"),C=d("z35g");function v(m){C.call(this,m)}v.prototype={constructor:v,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 i=this.getAxis("x"),r=this.getAxis("y");return c=c||[],c[0]=i.toGlobalCoord(i.dataToCoord(m[0])),c[1]=r.toGlobalCoord(r.dataToCoord(m[1])),c},clampData:function(m,h){var c=this.getAxis("x").scale,i=this.getAxis("y").scale,r=c.getExtent(),o=i.getExtent(),n=c.parse(m[0]),e=i.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(o[0],o[1]),e),Math.max(o[0],o[1])),h},pointToData:function(m,h){var c=this.getAxis("x"),i=this.getAxis("y");return h=h||[],h[0]=c.coordToData(c.toLocalCoord(m[0])),h[1]=i.coordToData(i.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]),i=Math.min(h[0],h[1]),r=Math.max(m[0],m[1])-c,o=Math.max(h[0],h[1])-i,n=new E(c,i,r,o);return n}},O.inherits(v,C);var w=v;j.exports=w},"y0+3":function(j,P,d){"use strict";d.d(P,"a",function(){return o}),d.d(P,"b",function(){return e});var O=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},C={cssFloat:1,styleFloat:1,float:1};function v(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function w(s,t,a){if(t=t.toLowerCase(),a==="auto"){if(t==="height")return s.offsetHeight;if(t==="width")return s.offsetWidth}return t in E||(E[t]=O.test(t)),E[t]?parseFloat(a)||0:a}function m(s,t){var a=arguments.length,l=v(s);return t=C[t]?"cssFloat"in s.style?"cssFloat":"styleFloat":t,a===1?l:w(s,t,l[t]||s.style[t])}function h(s,t,a){var l=arguments.length;if(t=C[t]?"cssFloat"in s.style?"cssFloat":"styleFloat":t,l===3)return typeof a=="number"&&O.test(t)&&(a="".concat(a,"px")),s.style[t]=a,a;for(var u in t)t.hasOwnProperty(u)&&h(s,u,t[u]);return v(s)}function c(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function i(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function r(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:t}}function o(){var s=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:t}}function n(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(s){var t=s.getBoundingClientRect(),a=document.documentElement;return{left:t.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},y23F:function(j,P){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(v){for(var w=v.target;w&&!w.draggable;)w=w.parent;w&&(this._draggingTarget=w,w.dragging=!0,this._x=v.offsetX,this._y=v.offsetY,this.dispatchToElement(O(w,v),"dragstart",v.event))},_drag:function(v){var w=this._draggingTarget;if(w){var m=v.offsetX,h=v.offsetY,c=m-this._x,i=h-this._y;this._x=m,this._y=h,w.drift(c,i,v),this.dispatchToElement(O(w,v),"drag",v.event);var r=this.findHover(m,h,w).target,o=this._dropTarget;this._dropTarget=r,w!==r&&(o&&r!==o&&this.dispatchToElement(O(o,v),"dragleave",v.event),r&&r!==o&&this.dispatchToElement(O(r,v),"dragenter",v.event))}},_dragEnd:function(v){var w=this._draggingTarget;w&&(w.dragging=!1),this.dispatchToElement(O(w,v),"dragend",v.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,v),"drop",v.event),this._draggingTarget=null,this._dropTarget=null}};function O(C,v){return{target:C,topTarget:v&&v.topTarget}}var E=d;j.exports=E},y2l5:function(j,P,d){var O=d("MwEJ"),E=d("T4UG"),C=E.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(v,w){return O(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var v=this.option.progressive;return v==null?this.option.large?5e3:this.get("progressive"):v},getProgressiveThreshold:function(){var v=this.option.progressiveThreshold;return v==null?this.option.large?1e4:this.get("progressiveThreshold"):v},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});j.exports=C},y3Kf:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="UpOutlined";var h=P.a=E.forwardRef(m)},y3NT:function(j,P,d){var O=d("OELB"),E=O.parsePercent,C=d("bYtY"),v=Math.PI/180;function w(c,i,r,o){i.eachSeriesByType(c,function(n){var e=n.get("center"),s=n.get("radius");C.isArray(s)||(s=[0,s]),C.isArray(e)||(e=[e,e]);var t=r.getWidth(),a=r.getHeight(),l=Math.min(t,a),u=E(e[0],t),f=E(e[1],a),p=E(s[0],l/2),g=E(s[1],l/2),A=-n.get("startAngle")*v,y=n.get("minAngle")*v,x=n.getData().tree.root,T=n.getViewRoot(),S=T.depth,b=n.get("sort");b!=null&&m(T,b);var _=0;C.each(T.children,function(z){!isNaN(z.getValue())&&_++});var I=T.getValue(),L=Math.PI/(I||_)*2,D=T.depth>0,N=T.height-(D?-1:1),M=(g-p)/(N||1),B=n.get("clockwise"),R=n.get("stillShowZeroSum"),H=B?1:-1,F=function(z,Y){if(!z)return;var q=Y;if(z!==x){var ce=z.getValue(),ie=I===0&&R?L:ce*L;ie<y&&(ie=y),q=Y+H*ie;var ve=z.depth-S-(D?-1:1),Ee=p+M*ve,Le=p+M*(ve+1),He=z.getModel();He.get("r0")!=null&&(Ee=E(He.get("r0"),l/2)),He.get("r")!=null&&(Le=E(He.get("r"),l/2)),z.setLayout({angle:ie,startAngle:Y,endAngle:q,clockwise:B,cx:u,cy:f,r0:Ee,r:Le})}if(z.children&&z.children.length){var ge=0;C.each(z.children,function(Fe){ge+=F(Fe,Y+ge)})}return q-Y};if(D){var K=p,U=p+M,V=Math.PI*2;x.setLayout({angle:V,startAngle:A,endAngle:A+V,clockwise:B,cx:u,cy:f,r0:K,r:U})}F(T,A)})}function m(c,i){var r=c.children||[];c.children=h(r,i),r.length&&C.each(c.children,function(o){m(o,i)})}function h(c,i){if(typeof i=="function")return c.sort(i);var r=i==="asc";return c.sort(function(o,n){var e=(o.getValue()-n.getValue())*(r?1:-1);return e===0?(o.dataIndex-n.dataIndex)*(r?-1:1):e})}j.exports=w},y3Yb:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("HBhm")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="PaperClipOutlined";var c=v.forwardRef(h);P.default=c},"y4/Y":function(j,P,d){var O=d("ProS"),E=d("bYtY"),C=d("zTMp"),v=d("62sa");d("SKx+"),d("1LEl"),d("Sp2Z"),O.registerPreprocessor(function(w){if(w){(!w.axisPointer||w.axisPointer.length===0)&&(w.axisPointer={});var m=w.axisPointer.link;m&&!E.isArray(m)&&(w.axisPointer.link=[m])}}),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,function(w,m){w.getComponent("axisPointer").coordSysAxesInfo=C.collect(w,m)}),O.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},v)},y7Aq:function(j,P,d){var O=d("bYtY"),E=d("+TT/"),C=E.getLayoutRect;function v(m,h,c){var i=m.option,r=i.align;if(r!=null&&r!=="auto")return r;for(var o={width:h.getWidth(),height:h.getHeight()},n=i.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],s=e[n],t=[0,null,10],a={},l=0;l<3;l++)a[e[1-n][l]]=t[l],a[s[l]]=l===2?c[0]:i[s[l]];var u=[["x","width",3],["y","height",0]][n],f=C(a,o,i.padding);return s[(f.margin[u[2]]||0)+f[u[0]]+f[u[1]]*.5<o[u[1]]*.5?0:1]}function w(m,h){return O.each(m||[],function(c){c.dataIndex!=null&&(c.dataIndexInside=c.dataIndex,c.dataIndex=null),c.highlightKey="visualMap"+(h?h.componentIndex:"")}),m}P.getItemAlign=v,P.makeHighDownBatch=w},y8nQ:function(j,P,d){"use strict";var O=d("cIOH"),E=d.n(O),C=d("gwTy"),v=d.n(C),w=d("1GLa")},yEEn:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="ArrowDownOutlined";var h=P.a=E.forwardRef(m)},yO87:function(j,P,d){var O=d("bYtY"),E=d("oVpE"),C=E.createSymbol,v=d("IwbS"),w=v.Group,m=d("OELB"),h=m.parsePercent,c=d("FBjb"),i=3;function r(t){return O.isArray(t)||(t=[+t,+t]),t}function o(t,a){var l=a.rippleEffectColor||a.color;t.eachChild(function(u){u.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?l:null,fill:a.brushType==="fill"?l:null}})})}function n(t,a){w.call(this);var l=new c(t,a),u=new w;this.add(l),this.add(u),u.beforeUpdate=function(){this.attr(l.getScale())},this.updateData(t,a)}var e=n.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(t){for(var a=t.symbolType,l=t.color,u=this.childAt(1),f=0;f<i;f++){var p=C(a,-1,-1,2,2,l);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var g=-f/i*t.period+t.effectOffset;p.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(g).start(),p.animateStyle(!0).when(t.period,{opacity:0}).delay(g).start(),u.add(p)}o(u,t)},e.updateEffectAnimation=function(t){for(var a=this._effectCfg,l=this.childAt(1),u=["symbolType","period","rippleScale"],f=0;f<u.length;f++){var p=u[f];if(a[p]!==t[p]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}o(l,t)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(t,a){var l=t.hostModel;this.childAt(0).updateData(t,a);var u=this.childAt(1),f=t.getItemModel(a),p=t.getItemVisual(a,"symbol"),g=r(t.getItemVisual(a,"symbolSize")),A=t.getItemVisual(a,"color");u.attr("scale",g),u.traverse(function(L){L.attr({fill:A})});var y=f.getShallow("symbolOffset");if(y){var x=u.position;x[0]=h(y[0],g[0]),x[1]=h(y[1],g[1])}var T=t.getItemVisual(a,"symbolRotate");u.rotation=(T||0)*Math.PI/180||0;var S={};if(S.showEffectOn=l.get("showEffectOn"),S.rippleScale=f.get("rippleEffect.scale"),S.brushType=f.get("rippleEffect.brushType"),S.period=f.get("rippleEffect.period")*1e3,S.effectOffset=a/t.count(),S.z=f.getShallow("z")||0,S.zlevel=f.getShallow("zlevel")||0,S.symbolType=p,S.color=A,S.rippleEffectColor=f.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),S.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(S):this.startEffectAnimation(S),this._effectCfg=S;else{this._effectCfg=null,this.stopEffectAnimation();var b=this.childAt(0),_=function(){b.highlight(),S.showEffectOn!=="render"&&this.startEffectAnimation(S)},I=function(){b.downplay(),S.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",_,this).on("mouseout",I,this).on("emphasis",_,this).on("normal",I,this)}this._effectCfg=S},e.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},O.inherits(n,w);var s=n;j.exports=s},yS9w:function(j,P,d){var O=d("MEGo"),E=O.parseSVG,C=O.makeViewBoxTransform,v=d("4fz+"),w=d("x6Kt"),m=d("bYtY"),h=m.assert,c=m.createHashMap,i=d("mFDi"),r=d("4NO4"),o=r.makeInner,n=o(),e={load:function(t,a){var l=n(a).originRoot;if(l)return{root:l,boundingRect:n(a).boundingRect};var u=s(a);return n(a).originRoot=u.root,n(a).boundingRect=u.boundingRect,u},makeGraphic:function(t,a,l){var u=n(a),f=u.rootMap||(u.rootMap=c()),p=f.get(l);if(p)return p;var g=u.originRoot,A=u.boundingRect;return u.originRootHostKey?p=s(a,A).root:(u.originRootHostKey=l,p=g),f.set(l,p)},removeGraphic:function(t,a,l){var u=n(a),f=u.rootMap;f&&f.removeKey(l),l===u.originRootHostKey&&(u.originRootHostKey=null)}};function s(t,a){var l=t.svgXML,u,f;try{u=l&&E(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},f=u.root,h(f!=null)}catch(T){throw new Error(`Invalid svg format
`+T.message)}var p=u.width,g=u.height,A=u.viewBoxRect;if(a||(a=p==null||g==null?f.getBoundingRect():new i(0,0,0,0),p!=null&&(a.width=p),g!=null&&(a.height=g)),A){var y=C(A,a.width,a.height),x=f;f=new v,f.add(x),x.scale=y.scale,x.position=y.position}return f.setClipPath(new w({shape:a.plain()})),{root:f,boundingRect:a}}j.exports=e},yWXo:function(j,P,d){var O=d("IwbS"),E=d("oVpE"),C=E.createSymbol,v=d("OS9S"),w=4,m=O.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(r,o){var n=o.points,e=o.size,s=this.symbolProxy,t=s.shape,a=r.getContext?r.getContext():r,l=a&&e[0]<w;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;t.x=f-e[0]/2,t.y=p-e[1]/2,t.width=e[0],t.height=e[1],s.buildPath(r,t,!0)}},afterBrush:function(r){var o=this.shape,n=o.points,e=o.size,s=e[0]<w;if(!s)return;this.setTransform(r);for(var t=0;t<n.length;){var a=n[t++],l=n[t++];if(isNaN(a)||isNaN(l))continue;if(this.softClipShape&&!this.softClipShape.contain(a,l))continue;r.fillRect(a-e[0]/2,l-e[1]/2,e[0],e[1])}this.restoreTransform(r)},findDataIndex:function(r,o){for(var n=this.shape,e=n.points,s=n.size,t=Math.max(s[0],4),a=Math.max(s[1],4),l=e.length/2-1;l>=0;l--){var u=l*2,f=e[u]-t/2,p=e[u+1]-a/2;if(r>=f&&o>=p&&r<=f+t&&o<=p+a)return l}return-1}});function h(){this.group=new O.Group}var c=h.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(r,o){this.group.removeAll();var n=new m({rectHover:!0,cursor:"default"});n.setShape({points:r.getLayout("symbolPoints")}),this._setCommon(n,r,!1,o),this.group.add(n),this._incremental=null},c.updateLayout=function(r){if(this._incremental)return;var o=r.getLayout("symbolPoints");this.group.eachChild(function(n){if(n.startIndex!=null){var e=(n.endIndex-n.startIndex)*2,s=n.startIndex*4*2;o=new Float32Array(o.buffer,s,e)}n.setShape("points",o)})},c.incrementalPrepareUpdate=function(r){this.group.removeAll(),this._clearIncremental(),r.count()>2e6?(this._incremental||(this._incremental=new v({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(r,o,n){var e;this._incremental?(e=new m,this._incremental.addDisplayable(e,!0)):(e=new m({rectHover:!0,cursor:"default",startIndex:r.start,endIndex:r.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:o.getLayout("symbolPoints")}),this._setCommon(e,o,!!this._incremental,n)},c._setCommon=function(r,o,n,e){var s=o.hostModel;e=e||{};var t=o.getVisual("symbolSize");r.setShape("size",t instanceof Array?t:[t,t]),r.softClipShape=e.clipShape||null,r.symbolProxy=C(o.getVisual("symbol"),0,0,0,0),r.setColor=r.symbolProxy.setColor;var a=r.shape.size[0]<w;r.useStyle(s.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var l=o.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 i=h;j.exports=i},ycre:function(j,P,d){var O=d("711d"),E=O("length");j.exports=E},ye1Q:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="LoadingOutlined";var h=P.a=E.forwardRef(m)},ygfH:function(j,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={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"};P.default=O},yik8:function(j,P,d){var O=d("bZqE"),E=O.eachAfter,C=O.eachBefore,v=d("Itpr"),w=v.init,m=v.firstWalk,h=v.secondWalk,c=v.separation,i=v.radialCoordinate,r=v.getViewRect;function o(e,s){e.eachSeriesByType("tree",function(t){n(t,s)})}function n(e,s){var t=r(e,s);e.layoutInfo=t;var a=e.get("layout"),l=0,u=0,f=null;a==="radial"?(l=2*Math.PI,u=Math.min(t.height,t.width)/2,f=c(function(N,M){return(N.parentNode===M.parentNode?1:2)/N.depth})):(l=t.width,u=t.height,f=c());var p=e.getData().tree.root,g=p.children[0];if(g){w(p),E(g,m,f),p.hierNode.modifier=-g.hierNode.prelim,C(g,h);var A=g,y=g,x=g;C(g,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 T=A===y?1:f(A,y)/2,S=T-A.getLayout().x,b=0,_=0,I=0,L=0;if(a==="radial")b=l/(y.getLayout().x+T+S),_=u/(x.depth-1||1),C(g,function(N){I=(N.getLayout().x+S)*b,L=(N.depth-1)*_;var M=i(I,L);N.setLayout({x:M.x,y:M.y,rawX:I,rawY:L},!0)});else{var D=e.getOrient();D==="RL"||D==="LR"?(_=u/(y.getLayout().x+T+S),b=l/(x.depth-1||1),C(g,function(N){L=(N.getLayout().x+S)*_,I=D==="LR"?(N.depth-1)*b:l-(N.depth-1)*b,N.setLayout({x:I,y:L},!0)})):(D==="TB"||D==="BT")&&(b=l/(y.getLayout().x+T+S),_=u/(x.depth-1||1),C(g,function(N){I=(N.getLayout().x+S)*b,L=D==="TB"?(N.depth-1)*_:u-(N.depth-1)*_,N.setLayout({x:I,y:L},!0)}))}}}j.exports=o},ynwM:function(j,P,d){var O=d("MFOe"),E=O.Global;j.exports={name:"oldFF-globalStorage",read:v,write:w,each:m,remove:h,clearAll:c};var C=E.globalStorage;function v(i){return C[i]}function w(i,r){C[i]=r}function m(i){for(var r=C.length-1;r>=0;r--){var o=C.key(r);i(C[o],o)}}function h(i){return C.removeItem(i)}function c(){m(function(i,r){delete C[i]})}},ypgQ:function(j,P,d){var O=d("bYtY"),E=d("4NO4"),C=d("bLfw"),v=O.each,w=O.clone,m=O.map,h=O.merge,c=/^(min|max)?(.+)$/;function i(a){this._api=a,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}i.prototype={constructor:i,setOption:function(a,l){a&&O.each(E.normalizeToArray(a.series),function(p){p&&p.data&&O.isTypedArray(p.data)&&O.setAsPrimitive(p.data)}),a=w(a);var u=this._optionBackup,f=r.call(this,a,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(a){var l=this._optionBackup;return this._timelineOptions=m(l.timelineOptions,w),this._mediaList=m(l.mediaList,w),this._mediaDefault=w(l.mediaDefault),this._currentMediaIndices=[],w(a?l.baseOption:this._newBaseOption)},getTimelineOption:function(a){var l,u=this._timelineOptions;if(u.length){var f=a.getComponent("timeline");f&&(l=w(u[f.getCurrentIndex()],!0))}return l},getMediaOption:function(a){var l=this._api.getWidth(),u=this._api.getHeight(),f=this._mediaList,p=this._mediaDefault,g=[],A=[];if(!f.length&&!p)return A;for(var y=0,x=f.length;y<x;y++)o(f[y].query,l,u)&&g.push(y);return!g.length&&p&&(g=[-1]),g.length&&!e(g,this._currentMediaIndices)&&(A=m(g,function(T){return w(T===-1?p.option:f[T].option)})),this._currentMediaIndices=g,A}};function r(a,l,u){var f=[],p=[],g,A,y=a.timeline;if(a.baseOption&&(A=a.baseOption),(y||a.options)&&(A=A||{},f=(a.options||[]).slice()),a.media){A=A||{};var x=a.media;v(x,function(T){T&&T.option&&(T.query?p.push(T):g||(g=T))})}return A||(A=a),A.timeline||(A.timeline=y),v([A].concat(f).concat(O.map(p,function(T){return T.option})),function(T){v(l,function(S){S(T,u)})}),{baseOption:A,timelineOptions:f,mediaDefault:g,mediaList:p}}function o(a,l,u){var f={width:l,height:u,aspectratio:l/u},p=!0;return O.each(a,function(g,A){var y=A.match(c);if(!y||!y[1]||!y[2])return;var x=y[1],T=y[2].toLowerCase();n(f[T],g,x)||(p=!1)}),p}function n(a,l,u){return u==="min"?a>=l:u==="max"?a<=l:a===l}function e(a,l){return a.join(",")===l.join(",")}function s(a,l){l=l||{},v(l,function(u,f){if(u==null)return;var p=a[f];if(!C.hasClass(f))a[f]=h(p,u,!0);else{u=E.normalizeToArray(u),p=E.normalizeToArray(p);var g=E.mappingToExists(p,u);a[f]=m(g,function(A){return A.option&&A.exist?h(A.exist,A.option,!0):A.exist||A.option})}})}var t=i;j.exports=t},yxFR:function(j,P,d){var O=d("y+Vt"),E=d("nPnh"),C=E.subPixelOptimizeLine,v={},w=O.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(h,c){var i,r,o,n;this.subPixelOptimize?(C(v,c,this.style),i=v.x1,r=v.y1,o=v.x2,n=v.y2):(i=c.x1,r=c.y1,o=c.x2,n=c.y2);var e=c.percent;if(e===0)return;h.moveTo(i,r),e<1&&(o=i*(1-e)+o*e,n=r*(1-e)+n*e),h.lineTo(o,n)},pointAt:function(h){var c=this.shape;return[c.x1*(1-h)+c.x2*h,c.y1*(1-h)+c.y2*h]}});j.exports=w},z35g:function(j,P,d){var O=d("bYtY");function E(w){return this._axes[w]}var C=function(w){this._axes={},this._dimList=[],this.name=w||""};C.prototype={constructor:C,type:"cartesian",getAxis:function(w){return this._axes[w]},getAxes:function(){return O.map(this._dimList,E,this)},getAxesByScale:function(w){return w=w.toLowerCase(),O.filter(this.getAxes(),function(m){return m.scale.type===w})},addAxis:function(w){var m=w.dim;this._axes[m]=w,this._dimList.push(m)},dataToCoord:function(w){return this._dataCoordConvert(w,"dataToCoord")},coordToData:function(w){return this._dataCoordConvert(w,"coordToData")},_dataCoordConvert:function(w,m){for(var h=this._dimList,c=w instanceof Array?[]:{},i=0;i<h.length;i++){var r=h[i],o=this._axes[r];c[r]=o[m](w[r])}return c}};var v=C;j.exports=v},z7Xi:function(j,P,d){"use strict";var O=d("VTBJ"),E=d("q1tI"),C={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"},v=C,w=d("6VBw"),m=function(i,r){return E.createElement(w.a,Object(O.a)(Object(O.a)({},i),{},{ref:r,icon:v}))};m.displayName="UploadOutlined";var h=P.a=E.forwardRef(m)},zAh6:function(j,P,d){"use strict";d.d(P,"a",function(){return w});var O=d("xEkU"),E=d.n(O),C=d("i6bk");function v(m,h,c,i){var r=c-h;return m/=i/2,m<1?r/2*m*m*m+h:r/2*((m-=2)*m*m+2)+h}function w(m){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=h.getContainer,i=c===void 0?function(){return window}:c,r=h.callback,o=h.duration,n=o===void 0?450:o,e=i(),s=Object(C.a)(e,!0),t=Date.now(),a=function l(){var u=Date.now(),f=u-t,p=v(f>n?n:f,s,m,n);Object(C.b)(e)?e.scrollTo(window.pageXOffset,p):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=p:e.scrollTop=p,f<n?E()(l):typeof r=="function"&&r()};E()(a)}},zDms:function(j,P,d){var O=d("bYtY"),E=d("OELB"),C=d("UOVi"),v=d("72pK"),w=O.each,m=E.asc,h=function(e,s,t,a){this._dimName=e,this._axisIndex=s,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=a,this._dataZoomModel=t};h.prototype={constructor:h,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],s=this.ecModel;return s.eachSeries(function(t){if(C.isCoordSupported(t.get("coordinateSystem"))){var a=this._dimName,l=s.queryComponents({mainType:a+"Axis",index:t.get(a+"AxisIndex"),id:t.get(a+"AxisId")})[0];this._axisIndex===(l&&l.componentIndex)&&e.push(t)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,s=this.ecModel,t=this.getAxisModel(),a=e==="x"||e==="y",l,u;a?(u="gridIndex",l=e==="x"?"y":"x"):(u="polarIndex",l=e==="angle"?"radius":"angle");var f;return s.eachComponent(l+"Axis",function(p){(p.get(u)||0)===(t.get(u)||0)&&(f=p)}),f},getMinMaxSpan:function(){return O.clone(this._minMaxSpan)},calculateDataWindow:function(e){var s=this._dataExtent,t=this.getAxisModel(),a=t.axis.scale,l=this._dataZoomModel.getRangePropMode(),u=[0,100],f=[],p=[],g;w(["start","end"],function(x,T){var S=e[x],b=e[x+"Value"];l[T]==="percent"?(S==null&&(S=u[T]),b=a.parse(E.linearMap(S,u,s))):(g=!0,b=b==null?s[T]:a.parse(b),S=E.linearMap(b,s,u)),p[T]=b,f[T]=S}),m(p),m(f);var A=this._minMaxSpan;g?y(p,f,s,u,!1):y(f,p,u,s,!0);function y(x,T,S,b,_){var I=_?"Span":"ValueSpan";v(0,x,S,"all",A["min"+I],A["max"+I]);for(var L=0;L<2;L++)T[L]=E.linearMap(x[L],S,b,!0),_&&(T[L]=a.parse(T[L]))}return{valueWindow:p,percentWindow:f}},reset:function(e){if(e!==this._dataZoomModel)return;var s=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,s),o(this);var t=this.calculateDataWindow(e.settledOption);this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,r(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,r(this,!0)},filterData:function(e,s){if(e!==this._dataZoomModel)return;var t=this._dimName,a=this.getTargetSeriesModels(),l=e.get("filterMode"),u=this._valueWindow;if(l==="none")return;w(a,function(p){var g=p.getData(),A=g.mapDimension(t,!0);if(!A.length)return;l==="weakFilter"?g.filterSelf(function(y){for(var x,T,S,b=0;b<A.length;b++){var _=g.get(A[b],y),I=!isNaN(_),L=_<u[0],D=_>u[1];if(I&&!L&&!D)return!0;I&&(S=!0),L&&(x=!0),D&&(T=!0)}return S&&x&&T}):w(A,function(y){if(l==="empty")p.setData(g=g.map(y,function(T){return f(T)?T:NaN}));else{var x={};x[y]=u,g.selectRange(x)}}),w(A,function(y){g.setApproximateExtent(u,y)})});function f(p){return p>=u[0]&&p<=u[1]}}};function c(e,s,t){var a=[Infinity,-Infinity];return w(t,function(l){var u=l.getData();u&&w(u.mapDimension(s,!0),function(f){var p=u.getApproximateExtent(f);p[0]<a[0]&&(a[0]=p[0]),p[1]>a[1]&&(a[1]=p[1])})}),a[1]<a[0]&&(a=[NaN,NaN]),i(e,a),a}function i(e,s){var t=e.getAxisModel(),a=t.getMin(!0),l=t.get("type")==="category",u=l&&t.getCategories().length;a!=null&&a!=="dataMin"&&typeof a!="function"?s[0]=a:l&&(s[0]=u>0?0:NaN);var f=t.getMax(!0);return f!=null&&f!=="dataMax"&&typeof f!="function"?s[1]=f:l&&(s[1]=u>0?u-1:NaN),t.get("scale",!0)||(s[0]>0&&(s[0]=0),s[1]<0&&(s[1]=0)),s}function r(e,s){var t=e.getAxisModel(),a=e._percentWindow,l=e._valueWindow;if(!a)return;var u=E.getPixelPrecision(l,[0,500]);u=Math.min(u,20);var f=s||a[0]===0&&a[1]===100;t.setRange(f?null:+l[0].toFixed(u),f?null:+l[1].toFixed(u))}function o(e){var s=e._minMaxSpan={},t=e._dataZoomModel,a=e._dataExtent;w(["min","max"],function(l){var u=t.get(l+"Span"),f=t.get(l+"ValueSpan");f!=null&&(f=e.getAxisModel().axis.scale.parse(f)),f!=null?u=E.linearMap(a[0]+f,a,[0,100],!0):u!=null&&(f=E.linearMap(u,[0,100],a,!0)-a[0]),s[l+"Span"]=u,s[l+"ValueSpan"]=f})}var n=h;j.exports=n},zM3Q:function(j,P,d){var O=d("4NO4"),E=O.makeInner;function C(){var v=E();return function(w){var m=v(w),h=w.pipelineContext,c=m.large,i=m.progressiveRender,r=m.large=h&&h.large,o=m.progressiveRender=h&&h.progressiveRender;return!!(c^r||i^o)&&"reset"}}j.exports=C},zRKj:function(j,P,d){d("Ae16"),d("Sp2Z"),d("y4/Y")},zTMp:function(j,P,d){var O=d("bYtY"),E=d("Qxkt"),C=O.each,v=O.curry;function w(a,l){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return m(u,a,l),u.seriesInvolved&&c(u,a),u}function m(a,l,u){var f=l.getComponent("tooltip"),p=l.getComponent("axisPointer"),g=p.get("link",!0)||[],A=[];C(u.getCoordinateSystems(),function(y){if(!y.axisPointerEnabled)return;var x=t(y.model),T=a.coordSysAxesInfo[x]={};a.coordSysMap[x]=y;var S=y.model,b=S.getModel("tooltip",f);if(C(y.getAxes(),v(D,!1,null)),y.getTooltipAxes&&f&&b.get("show")){var _=b.get("trigger")==="axis",I=b.get("axisPointer.type")==="cross",L=y.getTooltipAxes(b.get("axisPointer.axis"));(_||I)&&C(L.baseAxes,v(D,I?"cross":!0,_)),I&&C(L.otherAxes,v(D,"cross",!1))}function D(N,M,B){var R=B.model.getModel("axisPointer",p),H=R.get("show");if(!H||H==="auto"&&!N&&!s(R))return;M==null&&(M=R.get("triggerTooltip")),R=N?h(B,b,p,l,N,M):R;var F=R.get("snap"),K=t(B.model),U=M||F||B.type==="category",V=a.axesInfo[K]={key:K,axis:B,coordSys:y,axisPointerModel:R,triggerTooltip:M,involveSeries:U,snap:F,useHandle:s(R),seriesModels:[]};T[K]=V,a.seriesInvolved|=U;var z=i(g,B);if(z!=null){var Y=A[z]||(A[z]={axesInfo:{}});Y.axesInfo[K]=V,Y.mapper=g[z].mapper,V.linkGroup=Y}}})}function h(a,l,u,f,p,g){var A=l.getModel("axisPointer"),y={};C(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){y[b]=O.clone(A.get(b))}),y.snap=a.type!=="category"&&!!g,A.get("type")==="cross"&&(y.type="line");var x=y.label||(y.label={});if(x.show==null&&(x.show=!1),p==="cross"){var T=A.get("label.show");if(x.show=T!=null?T:!0,!g){var S=y.lineStyle=A.get("crossStyle");S&&O.defaults(x,S.textStyle)}}return a.model.getModel("axisPointer",new E(y,u,f))}function c(a,l){l.eachSeries(function(u){var f=u.coordinateSystem,p=u.get("tooltip.trigger",!0),g=u.get("tooltip.show",!0);if(!f||p==="none"||p===!1||p==="item"||g===!1||u.get("axisPointer.show",!0)===!1)return;C(a.coordSysAxesInfo[t(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 i(a,l){for(var u=l.model,f=l.dim,p=0;p<a.length;p++){var g=a[p]||{};if(r(g[f+"AxisId"],u.id)||r(g[f+"AxisIndex"],u.componentIndex)||r(g[f+"AxisName"],u.name))return p}}function r(a,l){return a==="all"||O.isArray(a)&&O.indexOf(a,l)>=0||a===l}function o(a){var l=n(a);if(!l)return;var u=l.axisPointerModel,f=l.axis.scale,p=u.option,g=u.get("status"),A=u.get("value");A!=null&&(A=f.parse(A));var y=s(u);g==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(a){var l=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return l&&l.axesInfo[t(a)]}function e(a){var l=n(a);return l&&l.axisPointerModel}function s(a){return!!a.get("handle.show")}function t(a){return a.type+"||"+a.id}P.collect=w,P.fixValue=o,P.getAxisInfo=n,P.getAxisPointerModel=e,P.makeKey=t},zYTA:function(j,P,d){var O=d("bYtY"),E=256;function C(){var w=O.createCanvas();this.canvas=w,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}C.prototype={update:function(w,m,h,c,i,r){var o=this._getBrush(),n=this._getGradient(w,i,"inRange"),e=this._getGradient(w,i,"outOfRange"),s=this.pointSize+this.blurSize,t=this.canvas,a=t.getContext("2d"),l=w.length;t.width=m,t.height=h;for(var u=0;u<l;++u){var f=w[u],p=f[0],g=f[1],A=f[2],y=c(A);a.globalAlpha=y,a.drawImage(o,p-s,g-s)}if(!t.width||!t.height)return t;for(var x=a.getImageData(0,0,t.width,t.height),T=x.data,S=0,b=T.length,_=this.minOpacity,I=this.maxOpacity,L=I-_;S<b;){var y=T[S+3]/256,D=Math.floor(y*(E-1))*4;if(y>0){var N=r(y)?n:e;y>0&&(y=y*L+_),T[S++]=N[D],T[S++]=N[D+1],T[S++]=N[D+2],T[S++]=N[D+3]*y*256}else S+=4}return a.putImageData(x,0,0),t},_getBrush:function(){var w=this._brushCanvas||(this._brushCanvas=O.createCanvas()),m=this.pointSize+this.blurSize,h=m*2;w.width=h,w.height=h;var c=w.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(),w},_getGradient:function(w,m,h){for(var c=this._gradientPixels,i=c[h]||(c[h]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],o=0,n=0;n<256;n++)m[h](n/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i}};var v=C;j.exports=v},zarK:function(j,P,d){var O=d("YH21"),E=O.addEventListener,C=O.removeEventListener,v=O.normalizeEvent,w=O.getNativeEvent,m=d("bYtY"),h=d("H6uX"),c=d("ItGF"),i=300,r=c.domSupported,o=function(){var N=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],M=["touchstart","touchend","touchmove"],B={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},R=m.map(N,function(H){var F=H.replace("mouse","pointer");return B.hasOwnProperty(F)?F:H});return{mouse:N,touch:M,pointer:R}}(),n={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(N){return N==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":N}function s(N){var M=N.pointerType;return M==="pen"||M==="touch"}function t(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 a(N){N&&(N.zrByTouch=!0)}function l(N,M){return v(N.dom,new f(N,M),!0)}function u(N,M){for(var B=M,R=!1;B&&B.nodeType!==9&&!(R=B.domBelongToZr||B!==M&&B===N.painterRoot);)B=B.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 g={mousedown:function(M){M=v(this.dom,M),this._mayPointerCapture=[M.zrX,M.zrY],this.trigger("mousedown",M)},mousemove:function(M){M=v(this.dom,M);var B=this._mayPointerCapture;B&&(M.zrX!==B[0]||M.zrY!==B[1])&&b(this,!0),this.trigger("mousemove",M)},mouseup:function(M){M=v(this.dom,M),b(this,!1),this.trigger("mouseup",M)},mouseout:function(M){M=v(this.dom,M),this._pointerCapturing&&(M.zrEventControl="no_globalout");var B=M.toElement||M.relatedTarget;M.zrIsToLocalDOM=u(this,B),this.trigger("mouseout",M)},touchstart:function(M){M=v(this.dom,M),a(M),this._lastTouchMoment=new Date,this.handler.processGesture(M,"start"),g.mousemove.call(this,M),g.mousedown.call(this,M)},touchmove:function(M){M=v(this.dom,M),a(M),this.handler.processGesture(M,"change"),g.mousemove.call(this,M)},touchend:function(M){M=v(this.dom,M),a(M),this.handler.processGesture(M,"end"),g.mouseup.call(this,M),+new Date-this._lastTouchMoment<i&&g.click.call(this,M)},pointerdown:function(M){g.mousedown.call(this,M)},pointermove:function(M){s(M)||g.mousemove.call(this,M)},pointerup:function(M){g.mouseup.call(this,M)},pointerout:function(M){s(M)||g.mouseout.call(this,M)}};m.each(["click","mousewheel","dblclick","contextmenu"],function(N){g[N]=function(M){M=v(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 B=this._pointerCapturing;b(this,!1),this.trigger("mouseup",M),B&&(M.zrEventControl="only_globalout",this.trigger("mouseout",M))}};function y(N,M){var B=M.domHandlers;c.pointerEventsSupported?m.each(o.pointer,function(R){T(M,R,function(H){B[R].call(N,H)})}):(c.touchEventsSupported&&m.each(o.touch,function(R){T(M,R,function(H){B[R].call(N,H),t(M)})}),m.each(o.mouse,function(R){T(M,R,function(H){H=w(H),M.touching||B[R].call(N,H)})}))}function x(N,M){c.pointerEventsSupported?m.each(n.pointer,B):c.touchEventsSupported||m.each(n.mouse,B);function B(R){function H(F){F=w(F),u(N,F.target)||(F=l(N,F),M.domHandlers[R].call(N,F))}T(M,R,H,{capture:!0})}}function T(N,M,B,R){N.mounted[M]=B,N.listenerOpts[M]=R,E(N.domTarget,e(M),B,R)}function S(N){var M=N.mounted;for(var B in M)M.hasOwnProperty(B)&&C(N.domTarget,e(B),M[B],N.listenerOpts[B]);N.mounted={}}function b(N,M){if(N._mayPointerCapture=null,r&&N._pointerCapturing^M){N._pointerCapturing=M;var B=N._globalHandlerScope;M?x(N,B):S(B)}}function _(N,M){this.domTarget=N,this.domHandlers=M,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(N,M){h.call(this),this.dom=N,this.painterRoot=M,this._localHandlerScope=new _(N,g),r&&(this._globalHandlerScope=new _(document,A)),this._pointerCapturing=!1,this._mayPointerCapture=null,y(this,this._localHandlerScope)}var L=I.prototype;L.dispose=function(){S(this._localHandlerScope),r&&S(this._globalHandlerScope)},L.setCursor=function(N){this.dom.style&&(this.dom.style.cursor=N||"default")},m.mixin(I,h);var D=I;j.exports=D},zdCA:function(j,P,d){"use strict";var O=d("284h"),E=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var C=E(d("3tO9")),v=O(d("q1tI")),w=E(d("PSzr")),m=E(d("KQxl")),h=function(r,o){return v.createElement(m.default,(0,C.default)((0,C.default)({},r),{},{ref:o,icon:w.default}))};h.displayName="BarsOutlined";var c=v.forwardRef(h);P.default=c},zeV3:function(j,P,d){"use strict";var O=d("pVnL"),E=d.n(O),C=d("lSNA"),v=d.n(C),w=d("q1tI"),m=d.n(w),h=d("TSYQ"),c=d.n(h),i=d("H84U"),r=function(e,s){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&s.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)s.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(t[a[l]]=e[a[l]]);return t},o={small:8,middle:16,large:24},n=function(s){var t,a=w.useContext(i.b),l=a.getPrefixCls,u=a.space,f=a.direction,p=s.size,g=p===void 0?(u==null?void 0:u.size)||"small":p,A=s.align,y=s.className,x=s.children,T=s.direction,S=T===void 0?"horizontal":T,b=s.prefixCls,_=r(s,["size","align","className","children","direction","prefixCls"]),I=w.Children.count(x);if(I===0)return null;var L=A===void 0&&S==="horizontal"?"center":A,D=l("space",b),N=c()(D,"".concat(D,"-").concat(S),(t={},v()(t,"".concat(D,"-rtl"),f==="rtl"),v()(t,"".concat(D,"-align-").concat(L),L),t),y),M="".concat(D,"-item"),B=f==="rtl"?"marginLeft":"marginRight";return w.createElement("div",E()({className:N},_),w.Children.map(x,function(R,H){return w.createElement("div",{className:M,key:"".concat(M,"-").concat(H),style:H===I-1||R===null||R===void 0?{}:v()({},S==="vertical"?"marginBottom":B,typeof g=="string"?o[g]:g)},R)}))};P.a=n},zoYe:function(j,P,d){var O=d("nmnc"),E=d("eUgh"),C=d("Z0cm"),v=d("/9aa"),w=1/0,m=O?O.prototype:void 0,h=m?m.toString:void 0;function c(i){if(typeof i=="string")return i;if(C(i))return E(i,c)+"";if(v(i))return h?h.call(i):"";var r=i+"";return r=="0"&&1/i==-w?"-0":r}j.exports=c},zuHt:function(j,P,d){var O=d("bYtY");function E(C){var v={};C.eachSeriesByType("map",function(w){var m=w.getMapType();if(w.getHostGeoModel()||v[m])return;var h={};O.each(w.seriesGroup,function(i){var r=i.coordinateSystem,o=i.originalData;i.get("showLegendSymbol")&&C.getComponent("legend")&&o.each(o.mapDimension("value"),function(n,e){var s=o.getName(e),t=r.getRegion(s);if(!t||isNaN(n))return;var a=h[s]||0,l=r.dataToPoint(t.center);h[s]=a+1,o.setItemLayout(e,{point:l,offset:a})})});var c=w.getData();c.each(function(i){var r=c.getName(i),o=c.getItemLayout(i)||{};o.showLabel=!h[r],c.setItemLayout(i,o)}),v[m]=!0})}j.exports=E}}]);